(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-96aa3c66"],{"72be":function(t,e,i){"use strict";var s=i("aaaf");class a extends s["a"]{constructor(t){t=t||{},super(t)}}var n=a,r=i("5df6"),o=i("0e0c"),h=i("6b8e"),c=i("ac76"),g=i("93f7"),l=i("b91b");class u extends r["b"]{constructor(t){super(t),this.image_=null}getImage(){return this.image_?this.image_.getImage():null}prepareFrame(t){const e=t.layerStatesArray[t.layerIndex],i=t.pixelRatio,s=t.viewState,a=s.resolution,n=this.getLayer().getSource(),r=t.viewHints;let c=t.extent;if(void 0!==e.extent&&(c=Object(g["A"])(c,Object(l["h"])(e.extent,s.projection))),!r[h["a"].ANIMATING]&&!r[h["a"].INTERACTING]&&!Object(g["H"])(c))if(n){const t=s.projection,e=n.getImage(c,a,i,t);e&&(this.loadImage(e)?this.image_=e:e.getState()===o["a"].EMPTY&&(this.image_=null))}else this.image_=null;return!!this.image_}getData(t){const e=this.frameState;if(!e)return null;const i=this.getLayer(),s=Object(c["a"])(e.pixelToCoordinateTransform,t.slice()),a=i.getExtent();if(a&&!Object(g["f"])(a,s))return null;const n=this.image_.getExtent(),r=this.image_.getImage(),o=Object(g["E"])(n),h=Math.floor(r.width*((s[0]-n[0])/o));if(h<0||h>=r.width)return null;const l=Object(g["z"])(n),u=Math.floor(r.height*((n[3]-s[1])/l));return u<0||u>=r.height?null:this.getImageData(r,h,u)}renderFrame(t,e){const i=this.image_,s=i.getExtent(),a=i.getResolution(),n=i.getPixelRatio(),r=t.layerStatesArray[t.layerIndex],o=t.pixelRatio,h=t.viewState,u=h.center,m=h.resolution,d=o*a/(m*n),_=t.extent,I=h.resolution,p=h.rotation,b=Math.round(Object(g["E"])(_)/I*o),j=Math.round(Object(g["z"])(_)/I*o);Object(c["b"])(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/o,1/o,p,-b/2,-j/2),Object(c["d"])(this.inversePixelTransform,this.pixelTransform);const E=Object(c["g"])(this.pixelTransform);this.useContainer(e,E,this.getBackground(t));const O=this.context,x=O.canvas;x.width!=b||x.height!=j?(x.width=b,x.height=j):this.containerReused||O.clearRect(0,0,b,j);let R=!1,f=!0;if(r.extent){const e=Object(l["h"])(r.extent,h.projection);f=Object(g["F"])(e,t.extent),R=f&&!Object(g["g"])(e,t.extent),R&&this.clipUnrotated(O,t,e)}const A=i.getImage(),S=Object(c["b"])(this.tempTransform,b/2,j/2,d,d,0,n*(s[0]-u[0])/a,n*(u[1]-s[3])/a);this.renderedResolution=a*o/n;const v=A.width*S[0],D=A.height*S[3];if(this.getLayer().getSource().getInterpolate()||(O.imageSmoothingEnabled=!1),this.preRender(O,t),f&&v>=.5&&D>=.5){const t=S[4],e=S[5],i=r.opacity;let s;1!==i&&(s=O.globalAlpha,O.globalAlpha=i),O.drawImage(A,0,0,+A.width,+A.height,t,e,v,D),1!==i&&(O.globalAlpha=s)}return this.postRender(O,t),R&&O.restore(),O.imageSmoothingEnabled=!0,E!==x.style.transform&&(x.style.transform=E),this.container}}var m=u;class d extends n{constructor(t){super(t)}createRenderer(){return new m(this)}getData(t){return super.getData(t)}}e["a"]=d},a31a:function(t,e,i){"use strict";var s=i("8f60"),a=i("8a11"),n=i("0e0c"),r=i("887b"),o=i("1bcb"),h=i("1d14"),c=i("7013"),g=i("93f7"),l=i("1005");class u extends o["a"]{constructor(t,e,i,s,a,o,l){const u=t.getExtent(),m=e.getExtent(),d=m?Object(g["A"])(i,m):i,_=Object(g["w"])(d),I=Object(c["b"])(t,e,_,s),p=r["a"],b=new h["a"](t,e,d,u,I*p,s),j=b.calculateSourceExtent(),E=o(j,I,a),O=E?n["a"].IDLE:n["a"].EMPTY,x=E?E.getPixelRatio():1;super(i,s,x,O),this.targetProj_=e,this.maxSourceExtent_=u,this.triangulation_=b,this.targetResolution_=s,this.targetExtent_=i,this.sourceImage_=E,this.sourcePixelRatio_=x,this.interpolate_=l,this.canvas_=null,this.sourceListenerKey_=null}disposeInternal(){this.state==n["a"].LOADING&&this.unlistenSource_(),super.disposeInternal()}getImage(){return this.canvas_}getProjection(){return this.targetProj_}reproject_(){const t=this.sourceImage_.getState();if(t==n["a"].LOADED){const t=Object(g["E"])(this.targetExtent_)/this.targetResolution_,e=Object(g["z"])(this.targetExtent_)/this.targetResolution_;this.canvas_=Object(c["d"])(t,e,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_)}this.state=t,this.changed()}load(){if(this.state==n["a"].IDLE){this.state=n["a"].LOADING,this.changed();const t=this.sourceImage_.getState();t==n["a"].LOADED||t==n["a"].ERROR?this.reproject_():(this.sourceListenerKey_=Object(l["a"])(this.sourceImage_,s["a"].CHANGE,(function(t){const e=this.sourceImage_.getState();e!=n["a"].LOADED&&e!=n["a"].ERROR||(this.unlistenSource_(),this.reproject_())}),this),this.sourceImage_.load())}}unlistenSource_(){Object(l["c"])(this.sourceListenerKey_),this.sourceListenerKey_=null}}var m=u,d=i("1d8e"),_=i("2fc48"),I=i("b91b"),p=i("b485");const b={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"};class j extends a["a"]{constructor(t,e){super(t),this.image=e}}class E extends d["a"]{constructor(t){super({attributions:t.attributions,projection:t.projection,state:t.state,interpolate:void 0===t.interpolate||t.interpolate}),this.on,this.once,this.un,this.resolutions_=void 0!==t.resolutions?t.resolutions:null,this.reprojectedImage_=null,this.reprojectedRevision_=0}getResolutions(){return this.resolutions_}findNearestResolution(t){if(this.resolutions_){const e=Object(p["e"])(this.resolutions_,t,0);t=this.resolutions_[e]}return t}getImage(t,e,i,s){const a=this.getProjection();if(a&&s&&!Object(I["e"])(a,s)){if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&Object(I["e"])(this.reprojectedImage_.getProjection(),s)&&this.reprojectedImage_.getResolution()==e&&Object(g["o"])(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new m(a,s,t,e,i,function(t,e,i){return this.getImageInternal(t,e,i,a)}.bind(this),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}return a&&(s=a),this.getImageInternal(t,e,i,s)}getImageInternal(t,e,i,s){return Object(_["a"])()}handleImageChange(t){const e=t.target;let i;switch(e.getState()){case n["a"].LOADING:this.loading=!0,i=b.IMAGELOADSTART;break;case n["a"].LOADED:this.loading=!1,i=b.IMAGELOADEND;break;case n["a"].ERROR:this.loading=!1,i=b.IMAGELOADERROR;break;default:return}this.hasListener(i)&&this.dispatchEvent(new j(i,e))}}function O(t,e){t.getImage().src=e}var x=E,R=i("7bf1"),f=i("d72a");class A extends x{constructor(t){const e=void 0!==t.crossOrigin?t.crossOrigin:null,i=void 0!==t.imageLoadFunction?t.imageLoadFunction:O;super({attributions:t.attributions,interpolate:t.interpolate,projection:Object(I["j"])(t.projection)}),this.url_=t.url,this.imageExtent_=t.imageExtent,this.image_=new R["a"](this.imageExtent_,void 0,1,this.url_,e,i),this.imageSize_=t.imageSize?t.imageSize:null,this.image_.addEventListener(s["a"].CHANGE,this.handleImageChange.bind(this))}getImageExtent(){return this.imageExtent_}getImageInternal(t,e,i,s){return Object(g["F"])(t,this.image_.getExtent())?this.image_:null}getUrl(){return this.url_}handleImageChange(t){if(this.image_.getState()==n["a"].LOADED){const t=this.image_.getExtent(),e=this.image_.getImage();let i,s;this.imageSize_?(i=this.imageSize_[0],s=this.imageSize_[1]):(i=e.width,s=e.height);const a=Object(g["E"])(t),n=Object(g["z"])(t),r=a/i,o=n/s;let h=i,c=s;if(r>o?h=Math.round(a/o):c=Math.round(n/r),h!==i||c!==s){const t=Object(f["a"])(h,c);this.getInterpolate()||(t.imageSmoothingEnabled=!1);const a=t.canvas;t.drawImage(e,0,0,i,s,0,0,a.width,a.height),this.image_.setImage(a)}}super.handleImageChange(t)}}e["a"]=A}}]);