(function(config){!function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?module.exports=factory():"function"==typeof define&&define.amd?define(factory):(global=global||self).AMap=factory()}(this,function(){"use strict";var shared,worker,AMap;function define(_,chunk){var sharedChunk,workerBundleString;shared?worker?(workerBundleString='var sharedChunk = {key:"'+config[0]+'",db:"'+(config[14]||"")+'",nebulaVersion:"'+(config[15]||"")+'",movingDraw:'+Boolean(window.movingDraw)+',host:"'+config[2]+'",}; ('+shared+")(sharedChunk); ("+worker+")(sharedChunk);",sharedChunk={key:config[0],movingDraw:window.movingDraw},shared(sharedChunk),sharedChunk=chunk(sharedChunk),workerBundleString="undefined"!=typeof URL?window.URL.createObjectURL(new Blob([workerBundleString],{type:"text/javascript"})):"",(AMap=sharedChunk(config)).getConfig().workerUrl=workerBundleString):worker=chunk:shared=chunk}define(["exports"],function(exports){var extend=function(t){for(var r,n,i=Array.prototype.slice.call(arguments,1),a=0,o=i.length;a=HOT_COUNT)return arguments[0]}else n=0;return r.apply(undefined,arguments)}}function constant(t){return function(){return t}}var defineProperty=function(){try{var t=getNative(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),baseSetToString=defineProperty?function(t,e){return defineProperty(t,"toString",{configurable:!0,enumerable:!1,value:constant(e),writable:!0})}:identity,setToString=shortOut(baseSetToString);function arrayEach(t,e){for(var r=-1,n=null==t?0:t.length;++r>16)/255,((65280&t)>>8)/255,(255&t)/255,1]},Xj:function(t,e){for(var r=[],n=(e=void 0===e?{}:e).qw,i=e.fail,a=e.complete,o=0,s=t;o=zoomRange[1]&&(t[1]=r),t[0]<=zoomRange[0]&&(t[0]=e),t},toString:function(t,e){void 0===e&&(e=4);var r="";if(t)for(var n=0,i=t;n=LocalZoom?n.centerCoord:[0,0])[0],n.transform.wu(t+u,e+s[1],r,o)):"relative"===a?i.H(t,e):i._u(t,e)},r0:function(t,e,r,n,i){var a,o,s,u,f;if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=0),i)return u=i.viewState,a=i.view,o=void 0===(o=i.positionType)?"relative":o,"2D"===i.viewMode?(s={center:u.centerCoord,rotation:u.rotation,size:i.size},f=(u=u.optimalZoom>=LocalZoom?i.centerCoord:[0,0])[0],i.transform.wu(t+f,e+u[1],n,s)):"relative"===o?a.H(t,e,r):a._u(t,e,r)},kz:function(t,e,r,n){if(void 0===t&&(t=[]),n=(n=void 0===n?{}:n).centerCoord,e=i&&t[1]<=a):(i=Math.min(e[0],r[0]),a=Math.max(e[0],r[0]),r=(r[1]-e[1])/(r[0]-e[0])*(t[0]-e[0])+e[1],Math.abs(r-t[1])=i&&t[0]<=a)},closestOnSegment:function(t,e){var r,n=t[0],i=e[0],e=e[1],a=i[0],o=e[0],s=o-a,u=(e=e[1])-(i=i[1]),t=(n=0==s&&0==u?0:(s*(n-a)+u*(t[1]-i))/(s*s+u*u||0))<=0?(r=a,i):1<=n?(r=o,e):(r=a+n*s,i+n*u);return[r,t]},isClockwise:function(t){for(var e,r,n=t.length,i=0,a=t[n-1],o=a[0],s=a[1],u=0;u(r[1]-e[1])*(t[0]-e[0])},i=function(t,e,r,n){var i=[t[0]-e[0],t[1]-e[1]],a=[r[0]-n[0],r[1]-n[1]],t=t[0]*e[1]-t[1]*e[0],e=r[0]*n[1]-r[1]*n[0],r=1/(i[0]*a[1]-i[1]*a[0]);return[(t*a[0]-e*i[0])*r,(t*a[1]-e*i[1])*r]},a=t,o=e[e.length-2],s=0,u=e.length-1;s=H*o)?s:-function(t,e,r,n,i,a,o){var s,u,f,c,l,h,d,v,g,y=t-i,p=r-i,m=e-a,b=n-a,w=y*b,T=C*y,S=T-(T-y),A=y-S,x=A*(f=b-(u=(T=C*b)-(T-b)))-(w-S*u-A*u-S*f),M=(S=(T=C*m)-(T-m),T=C*p,L[0]=x-((c=x-(v=(A=m-S)*(f=p-(u=T-(T-p)))-((d=m*p)-S*u-A*u-S*f)))+(s=x-c))+(s-v),L[1]=(h=w-((l=w+c)-(s=l-w))+(c-s))-((c=h-d)+(s=h-c))+(s-d),L[2]=l-((g=l+c)-(s=g-l))+(c-s),L[3]=g,function(e){for(var r=e[0],n=1;n<4;n++)r+=e[n];return r}(L)),P=W*o;return P<=M||P<=-M||(t=t-(y+(s=t-y))+(s-i),r=r-(p+(s=r-p))+(s-i),i=e-(m+(s=e-m))+(s-a),e=n-(b+(s=n-b))+(s-a),0==t&&0==i&&0==r&&0==e)||(P=q*o+z*Math.abs(M))<=(M+=y*e+b*t-(m*r+p*i))||P<=-M?M:(x=(A=t-(S=(T=C*t)-(T-t)))*(f=b-(u=(T=C*b)-(T-b)))-((w=t*b)-S*u-A*u-S*f),S=(T=C*i)-(T-i),T=C*p,E[0]=x-((c=x-(v=(A=i-S)*(f=p-(u=T-(T-p)))-((d=i*p)-S*u-A*u-S*f)))+(s=x-c))+(s-v),E[1]=(h=w-((l=w+c)-(s=l-w))+(c-s))-((c=h-d)+(s=h-c))+(s-d),E[2]=l-((g=l+c)-(s=g-l))+(c-s),E[3]=g,n=I(4,L,4,E,_),x=(A=y-(S=(T=C*y)-(T-y)))*(f=e-(u=(T=C*e)-(T-e)))-((w=y*e)-S*u-A*u-S*f),S=(T=C*m)-(T-m),T=C*r,E[0]=x-((c=x-(v=(A=m-S)*(f=r-(u=T-(T-r)))-((d=m*r)-S*u-A*u-S*f)))+(s=x-c))+(s-v),E[1]=(h=w-((l=w+c)-(s=l-w))+(c-s))-((c=h-d)+(s=h-c))+(s-d),E[2]=l-((g=l+c)-(s=g-l))+(c-s),E[3]=g,a=I(n,_,4,E,N),x=(A=t-(S=(T=C*t)-(T-t)))*(f=e-(u=(T=C*e)-(T-e)))-((w=t*e)-S*u-A*u-S*f),S=(T=C*i)-(T-i),T=C*r,E[0]=x-((c=x-(v=(A=i-S)*(f=r-(u=T-(T-r)))-((d=i*r)-S*u-A*u-S*f)))+(s=x-c))+(s-v),E[1]=(h=w-((l=w+c)-(s=l-w))+(c-s))-((c=h-d)+(s=h-c))+(s-d),E[2]=l-((g=l+c)-(s=g-l))+(c-s),E[3]=g,o=I(a,N,4,E,F),F[o-1])}(n,t,i,e,a,r,o);return 0n[0]?1:r[0]n[1]?1:-1:(n=e,e=r,(r=t).left===n.left?0===i(e,r.IP.point,n.IP.point)?!r._P&&n._P?1:-1:r.FP(n.IP.point)?-1:1:r.left?1:-1)}function g(t,e,r){var n=new h(e,!1,t,t._P),e=new h(e,!0,t.IP,t._P);v(t.point,t.IP.point)&&console.warn("what is that, a collapsed segment?",t),n.UP=e.UP=t.UP,0e.UP?1:-1):1===m(t,e)?1:-1)}function l(t,e){return tu[2]||s[2]o||n===k&&h.point[0]>e[2])break;h.left?(f=u=i.Xc(h),u=u!==(s=i.MP())?i.NM(u):null,f=i.next(f),p(h,c=u?u.key:null,n),f&&2===w(h,f.key,t)&&(p(h,c,n),p(h,f.key,n)),u&&2===w(u.key,h,t)&&(p(c,(l=(l=u)!==s?i.NM(l):null)?l.key:null,n),p(h,c,n))):(h=h.IP,f=u=i.find(h),u&&f&&(u=u!==s?i.NM(u):null,f=i.next(f),i.remove(h),f)&&u&&w(u.key,f.key,t))}return a}(f,s,u,r)),l=[],h=0;h>1],o=r-1,s=n+1;;){for(;i(t[++o],a)<0;);for(;0>1)-1;0<=r;r--)this.zP(r)}).prototype={push:function(t){this.data.push(t),this.length++,this.El(this.length-1)},pop:function(){var t;return 0===this.length?undefined:(t=this.data[0],this.length--,0>1,a=e[i];if(0<=r(n,a))break;e[t]=a,t=i}e[t]=n},zP:function(t){for(var e=this.data,r=this.compare,n=this.length>>1,i=e[t];tr&&t[0]n&&t[1](f[1]-o[1])*(t[0]-o[0])},n=function(){var t=[o[0]-f[0],o[1]-f[1]],e=[l[0]-a[0],l[1]-a[1]],r=o[0]*f[1]-o[1]*f[0],n=l[0]*a[1]-l[1]*a[0],i=1/(t[0]*e[1]-t[1]*e[0]);return[(r*e[0]-n*t[0])*i,(r*e[1]-n*t[1])*i]},i=t=this.makesureAntiClockwise(t),o=(e=this.makesureClockwise(e))[e.length-1],s=0,u=e.length;s>=0),n},createObjectURL:function(t,e){void 0===e&&(e="text/javascript; charset=utf-8");var r=null;try{r=(globalInstance.URL||globalInstance.webkitURL).createObjectURL(new Blob([t],{type:e}))}catch(n){r=null}return r},revokeObjectURL:function(t){try{(globalInstance.URL||globalInstance.webkitURL).revokeObjectURL(t)}catch(e){}},Og:function(t){for(var e={},r=0,n=t.length;re.length&&(o=e.length);for(var s=a;s>24&255)/255,(t>>16&255)/255,(t>>8&255)/255,(255&t)/255]},isEmpty:function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},Wg:function(t,e){return 0<=e&&t.splice(e,1),t},startsWith:function(t,e){return t.startsWith?t.startsWith(e):t.substr(0,e.length)===e},deleteItemFromArray:function(t,e){return e=v.indexOf(t,e),v.Wg(t,e)},deleteItemFromArrayByIndex:function(t,e){return v.Wg(t,e)},filter:function(t,r,n){var i=[];return v.Cg(t,function(t,e){r.call(n,t,e)&&i.push(t)}),i},indexOf:function(t,e){if(t&&t.length){if(t.indexOf)return t.indexOf(e);for(var r=0;r=e[0]&&t<=e[1]},kD:function(t,e,r){return void 0===r&&(r=!1),t=(t=void 0===t?"":t).split(",")[0]||"",!r&&t&&e&&TagMap[e]||"all"},VF:function(t,e,r){return!(r=void 0!==r&&r)&&t&&e&&TagMap[e]||"all"},LD:function(t,e){return!(!t||!e)&&(t=this.iN(t),this.iN(e)<=t)},SD:function(t){var e;switch(t=void 0===t?"all":t){case"lite":e=0;break;case"left":e=1;break;default:e=2}return e},pW:function(t){var e;switch(t=void 0===t?2:t){case 0:e=exports.zB.LITE;break;case 1:e=exports.zB.LEFT;break;default:e=exports.zB.ALL}return e},iN:function(t){var e=0;switch(t){case"lite":e=0;break;case"left":e=1;break;case"all":e=2}return e},loadBaxia:function(e){var t,r;window||e({code:"0",I8t:"霸下加载失败"}),window.__AMap_web_baxia__?e({code:"2",I8t:"霸下已加载,无需重复加载"}):(window.__AMap_web_baxia__=!0,t=document.body||document.head,(r=document.createElement("script")).type="text/javascript",r.src="//g.alicdn.com/??AWSC/AWSC/awsc.js,sd/baxia-entry/baxiaCommon.js",r.onerror=function(t){window.__AMap_web_baxia__=!1,e({code:"0",I8t:"霸下加载失败"})},r.onload=function(){e({code:"1",I8t:"霸下加载成功"})},t.appendChild(r))},getMarkUrl:function(){return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAMAAABrrFhUAAAAM1BMVEUAAAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AADpjjcQAAAAEHRSTlMA3yAQQO+/n2CPcM+vgFAwuy68RwAACZhJREFUeNrswYEAAAAAgKD9qRepAgAAAAAAAAAAAAAAAAAAmL14uQEQBKAAhohi/OXtP60HlyChvRQAAAAAAACGV4+zTGt9+5KkzKX19v/sSbb7Si1T+cgzlySHQRiItoTEH7vvf9opwFRmjuDM2yRF4kVL0JKwMQHoTjIOA9J/CwDYAETnFTAZNPwDdLBiE6lLd8Zi/IcdoMmZjs7KfNcCESzK9wcgRzJpyHr2AklHZgXwzR6gj+kLZWq/luDSSLJYAETWP/q3lsHOAGShJMsDQF2ZjpIGt+1lJgAQwXdSeQGa8jG8uIQG4CY5AoDECgRGfCf3SrBK2lkOXvTS3QjQKQaoUGEs+DJMgbO3FYMDyClkOrfWi04TloCbouW72oC7RnIcE+gegSR7lXFI22ej0LRRgUFxD/gSNHeZOhlX5ZelGTqikC1d4fFFFF4sCHV3Qez4BsKVGkmZOtuUaZTEvhxPelYsrhxWIQhseGhkf/0WeOY6NgV2hncX0BwA4ydGHRPviFQsjE3o490hSCRjNQjDZ9ybFN5A9F8x2j+XVSInQWgYPp9/cQwyS1iB2Kqssp30Vk01We5OtmIezwY5MSosAMJw+ov64ax/b7OUEZOLRZdWUjEJdGGG09OlgPHxvQC47K8SsLCM11Ap5zbrUS6+5GZOWrHKLUedkgFLW3niVnsB6LyB8aq8f0hMJe5zfxbM1gq339/sT4nbhyI0FsDm6iEzw+g33sddG8nWx43DRZIea2fGQmTvlMKCSYhsl/xOt7ID+XX515yElJQVnYpDoBf7bf+JN4AR4A2b6mQzBQ7xTROAlQzgXqO8lPuTZLNHDQMmvhbn/yoWnzAlLuR1w+9do2+z69Pf9LnFUKbc/dS7wesJxHPVzfg56hNtTLCaorQ3vQbZO95jFQZAA07lClcnKf00dMbyGQWGAY1Y6D4UWTjwMsLayYzFnt7lUNPYJeAGrifBgW2PAmwBk0L72KE1yovK/MRqPJPN3+b2rk9Th54M0LPeHmsU4vREHxMYTO+y++Kk96yjbgc0PNObyorKVQNCcfoITY5OwyTtz/NAafQAvKPNVxwSiy0RZV9kVJzpTfwGgsSlsUb2whuT85l35o8JVHlP7jMND9fp2bcBegAq86nv50VGsAnrn9dbygbolYRvq3afu8lzT6suxYC6JBr7Cc1g3Saxlhj/BACNikJK+WHfypLdCGEgQohlgKHvf9pkJMDOUtl/SNJV743L5Y8BtLTU4piTXzDSxhr2IvSfdHZD4qI4VvcF1NwE1HIT1Tg39dvNED6H4vpqbdo24zU35JnEOnqCxEXgm62wiite5BrLaS47esLmTccsXiF1Z+2M7AlI5g5q89wWfU0Z1/5lI9u956uB4k4WNxr8JnKIgk409yWwsr4RrpJSuj3ijhQZQxmybpamhCDnENyRbjPVYbH/3oYgoHtKtRHe+Ds7wzZyRA31NFu9/rbgwGek+nmGRvH7kq9GeBbsI6YjmILvC9Bz+og+JsXZdR9pENAtQjzF53k+MmTS1gdehFDdhU6IuLRRYftSnqU91l8pTHK7Fc9EzpDPifcsaVF8Oz7/+PjUMlSvvSySVZo1zO0+AaNOkzmF2n6KjhxEizuqJuNk5wq19Dy5YHfwG/zO6+HqqcUYa7O4cLCaz0KOrbirEoFa6ElzZvJMgHHcMG3cxlcChGJsKbWuNa3aRDtTy5wjWUNJXKqPZqsUzuSr1DOy5TguyKtnyfwu+cJK30Oc3t/73YvGuvp4fQZignNZjMctasMz9klkgHjty5Z8rTquBzV1GOR3R4sf/w2a/5CdR3j++EKfabHvBUdwDkblC8KWfON13ghDRyyvd2cq5tyP49fiAghY3UlE1+nd/x2S9oB6NJ3nQJ8f1/u7z5wXhXVYI4pMHuDZqE0DsRqCH84tdqsJ8pw0r9g+a++u8l3+JI/fEEi8xux53kZtUPi9nPGiWe+s0Z3QlZKGVDFXqGJdRXs5RXWOYwnW89SfeVt/3xzXujla+N3nCPbWqUXW9B1LMDHDpnJENhEA/LQQI0T2dYLcU/PtsxNeT2phPwemR26Na2abTtpTORVhGwCyCybtNa9TTDav45fhw3jxMQfPj2C3z9ILbd2VhnuxnrwMIKC5Is/OsMpbQzRV+u1FqeSj1OoLfRJ0vtV019tXsFmGrTaU+4l+yVWyKiawJ2LdgWNO+2uY7ep+Rc14yt4VBa0qA1jlX9SxFitw8n3jdqO70cZ93ogef2YAbqjbev0Uly0bA/BrNInkrd1PaclZuFw/iNzuWtxn7Wn5OWEqst29ugljAJvIJIRXu1+KVfyj45w23j55oVJhE8dVDXm4hnslgjdOsMjAuPqbUBmhndyCnuis+cxInyu2N4rJMXlL2D63x6Vn22OVQnVPsenvM4LzgnpQtrOjU64j8WW2mc38vS5lmbxRXp7ifuwhwWtaWP3Qu/FRLdx9vdSiulXthl3IGumFYLzmdQakTEvJKldtGeQ4dLV7xDl4MXwLL7t4ity4BhYQXLiWTkm0qsL2pnvm2x2HaoMXsmw4CyjYajTB08yC7kIVIMzlJoQ8qRCHhOTOQWj5i/i/j06ic5mIbc6awM6/eUnLfhl6NqeZVUA+yenDJjSe9yNIf91E41y6jnF03DsE2CTX1vv8chp3XhffqM3uV7gohaP4Sf+uSW6ZiAOSuywE8OY7U91qh5G8N0RkXSRimFUaBJeV8va9KTtDpxZCyuH6dDBrHOXyn8PnCuBTppKAbs0e7XtsbBWHwtauDhZvdhca8mkvMqMSxqVVD83T3cauD0GfBEBxYh/3wbLvHc12L4c9iIep9G81zCZGvmZ/J8GhC1+ItYTX1Rtj/9lxa/xqbRE1+2QgeW0T4lH9nG8gI63eJfrKjauIr0yy+ZxFfsNZ1c034UGJPtElmKjKCvCeUHit+qii/mcuIe76fgmYKl3ZkKKvoG5bw3/ZzWvt8CvIfxIGi105YxGe1+zO0m1+DNPu7wiISHcLF+o8675iAl9/18kbSLSaYYkQ/3bHgJM3Edf/RTfNv4axG1fRLtRSZ7fAaEw4SbT6VQxEa3lzMl6kXh8arhHPLXB+AhFBN2EFO2EjgOmvtv4XLhvW2bS+Z9NAD5xU+CUEu07ccGD37k/Ak608H13S/9b6i33AgQ3s3we/qv32NxKd7yP8E3nuP/7jP/7jP/7jPz6wBwcCAAAAAED+r42gqqqqqqqqqqqqqqqqqqq0BwckAAAAAIL+v+5HqAAAAADwEBZschjmcBcQAAAAAElFTkSuQmCC"},getReferrerUrl:function(){var t=window.location.href;return-1!==t.indexOf("?")&&(t=t.split("?")[0]),encodeURIComponent(t)}};function h(t){var e=+new Date,r=Math.max(0,(Browser.android?50:20)-(e-a));return a=e+r,globalInstance.setTimeout(t,50)}function d(t){for(var e,r=["webkit","moz","o","ms"],n=0;no[0]&&t[1]this.AU.uf&&(this.AU.ff(e),this.TU.ff(e)),0<=ua.indexOf("Gecko/")||0<=ua.indexOf("Windows"));this.wU=Math.round(t/2*(e?1.2:1))},t.prototype.RU=function(t){var e=this.SU(t,ControlChars),t=this.SU(t,ZeroWidthChars);return e||t},t.prototype.SU=function(t,e){for(var r=0,n=e;r=i[0]&&t<=i[1])return!0}},t}();function expandTypeArray(t){f.ff(t),d.ff(t),z.ff(t),v.ff(t)}function edt(t,e,r){f.uf>>16&255,t>>>8&255,255&t,t>>>24&255],U8t:e.normalize(t),type:"AMap.Color"}},e=__decorate([InnerClass("Color")],t)}(),colorNames={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},BaseConfig={feitianHost:"https://pre-vdata.amap.com/web/rendering/vdata/getTiles",needKey:["vdata.amap.com","pre-lbs-jsapi-vdata.amap.com","c-webapi.amap.com"],ifNeedKey:function(t){for(var e=!1,r=0;re){var o,t=a[e=t[e]];for(o in r!==undefined&&n!==undefined&&Array.isArray(t)&&(t=i?t.slice(r,n+1):__spreadArrays(t.slice(0,r),t.slice(n+1))),a)a.hasOwnProperty(o)&&delete a[o];a[e]=t}}},t.prototype.J8t=function(t){for(var e=0,r=0;r=t.ja&&e.Ea>=t.Fa}function createNode(t){return{children:t,height:1,Zc:!0,ja:Infinity,Fa:Infinity,Oa:-Infinity,Ea:-Infinity}}function multiSelect(t,e,r,n,i){for(var a,o=[e,r];o.length;)(r=o.pop())-(e=o.pop())<=n||(quickselect(t,a=e+Math.ceil((r-e)/n/2)*n,e,r,i),o.push(e,a,a,r))}function getModule(){return M=M||{nS:function(clsName,clsText){try{eval(clsText)}catch(e){throw e}},eS:{iS:"1773639622895",BY:!Browser.DW&&config[13]}},M}rbush.prototype={all:function(){return this.qc(this.data,[])},search:function(t){var e=this.data,r=[],n=this.Yc;if(intersects(t,e))for(var i,a,o,s,u=[];e;){for(i=0,a=e.children.length;ithis.Bc;)this.af(i,e),e--;this.sf(r,i,e)},af:function(t,e){var r=t[e],n=r.children.length,i=this.Wc,i=(this.rf(r,i,n),this.hf(r,i,n));(n=createNode(r.children.splice(i,r.children.length-i))).height=r.height,n.Zc=r.Zc,calcBBox(r,this.Yc),calcBBox(n,this.Yc),e?t[e-1].children.push(n):this.Jc(r,n)},Jc:function(t,e){this.data=createNode([t,e]),this.data.height=t.height+1,this.data.Zc=!1,calcBBox(this.data,this.Yc)},hf:function(t,e,r){for(var n,i,a,o,s,u=o=Infinity,f=e;f<=r-e;f++)i=intersectionArea(a=distBBox(t,0,f,this.Yc),n=distBBox(t,f,r,this.Yc)),a=bboxArea(a)+bboxArea(n),ithis.yM&&(this.yM=Math.max(t,Math.floor(this.yM*RESIZE_MULTIPLIER),DEFAULT_CAPACITY),t=this.wM,this.arrayBuffer=new ArrayBuffer(this.yM*this.constructor.Rb),this.mM(),t)&&this.wM.set(t)},t}(),FillArray=function(e){function t(){var t=e.call(this)||this;return t.pM=!1,t.resize(0),t}return __extends(t,e),t.prototype.kb=function(t,e){var r=this.length;this.resize(this.length+1),this.MM(r,t,e)},t.prototype.MM=function(t,e,r){this.Mb[t*=2]=e,this.Mb[1+t]=r},t.prototype.mM=function(){this.wM=new Uint8Array(this.arrayBuffer),this.Mb=new Float32Array(this.arrayBuffer)},t.Rb=8,t}(StructArray),FillExtrusionArray=function(e){function t(){var t=e.call(this)||this;return t.pM=!1,t.resize(0),t}return __extends(t,e),t.prototype.kb=function(t,e,r,n,i,a){var o=this.length;this.resize(o+1),this.MM(o,t,e,r,n,i,a)},t.prototype.MM=function(t,e,r,n,i,a,o){var s=8*t,e=(this.Mb[s]=e,this.Mb[1+s]=r,this.Mb[2+s]=n,this.Mb[3+s]=i,this.Mb[4+s]=a[0],this.Mb[5+s]=a[1],this.Mb[6+s]=a[2],16*t);this.jM[14+e]=o[0],this.jM[15+e]=o[1]},t.prototype.mM=function(){this.wM=new Uint8Array(this.arrayBuffer),this.Mb=new Float32Array(this.arrayBuffer),this.jM=new Uint16Array(this.arrayBuffer)},t.Rb=32,t}(StructArray),LinesIndexArray=function(e){function t(){var t=e.call(this)||this;return t.length=0,t.resize(0),t}return __extends(t,e),t.prototype.kb=function(t,e){var r=this.length;this.resize(this.length+1),this.MM(r,t,e)},t.prototype.MM=function(t,e,r){this.jM[t*=2]=e,this.jM[1+t]=r},t.prototype.mM=function(){this.wM=new Uint8Array(this.arrayBuffer),this.jM=new Uint16Array(this.arrayBuffer)},t.Rb=4,t}(StructArray),LinesIndexArrayUint=function(e){function t(){var t=e.call(this)||this;return t.length=0,t.resize(0),t}return __extends(t,e),t.prototype.kb=function(t,e){var r=this.length;this.resize(this.length+1),this.MM(r,t,e)},t.prototype.MM=function(t,e,r){this.UI[t*=2]=e,this.UI[1+t]=r},t.prototype.mM=function(){this.wM=new Uint8Array(this.arrayBuffer),this.UI=new Uint32Array(this.arrayBuffer)},t.Rb=8,t}(StructArray),LineArrayBuffer=function(e){function t(){var t=e.call(this)||this;return t.resize(0),t}return __extends(t,e),t.prototype.kb=function(t,e,r,n){var i=this.length;this.resize(i+1),this.MM(i,t,e,r,n)},t.prototype.MM=function(t,e,r,n,i){t*=this.constructor.Rb/4,this.Mb[t]=e[0],this.Mb[1+t]=e[1],this.Mb[2+t]=r[0],this.Mb[3+t]=r[1],this.Mb[4+t]=n,this.Mb[5+t]=i[0],this.Mb[6+t]=i[1]},t.prototype.mM=function(){this.wM=new Uint8Array(this.arrayBuffer),this.Mb=new Float32Array(this.arrayBuffer)},t.Rb=28,t}(StructArray),TriangleIndexArray=function(e){function t(){var t=e.call(this)||this;return t.resize(0),t}return __extends(t,e),t.prototype.kb=function(t,e,r){var n=this.length;this.resize(n+1),this.MM(n,t,e,r)},t.prototype.MM=function(t,e,r,n){this.jM[t*=3]=e,this.jM[1+t]=r,this.jM[2+t]=n},t.prototype.mM=function(){this.wM=new Uint8Array(this.arrayBuffer),this.jM=new Uint16Array(this.arrayBuffer)},t.Rb=6,t}(StructArray),TriangleIndexArrayUint=function(e){function t(){var t=e.call(this)||this;return t.resize(0),t}return __extends(t,e),t.prototype.kb=function(t,e,r){var n=this.length;this.resize(n+1),this.MM(n,t,e,r)},t.prototype.MM=function(t,e,r,n){this.UI[t*=3]=e,this.UI[1+t]=r,this.UI[2+t]=n},t.prototype.mM=function(){this.wM=new Uint8Array(this.arrayBuffer),this.UI=new Uint32Array(this.arrayBuffer)},t.Rb=12,t}(StructArray),SymbolArray=function(e){function t(){var t=e.call(this)||this;return t.pM=!1,t.resize(0),t}return __extends(t,e),t.prototype.kb=function(t,e,r){var n=this.length;this.resize(this.length+1),this.MM(n,t,e,r)},t.prototype.MM=function(t,e,r,n){var t=13*t,e=(this.Mb[t]=e,this.Mb[1+t]=r,n.color),r=n.borderColor,i=n.borderWidth;this.Mb[2+t]=n.radius,this.Mb[3+t]=i,this.Mb[4+t]=e[0],this.Mb[5+t]=e[1],this.Mb[6+t]=e[2],this.Mb[7+t]=e[3],this.Mb[8+t]=r[0],this.Mb[9+t]=r[1],this.Mb[10+t]=r[2],this.Mb[11+t]=r[3],this.Mb[12+t]=+(n.visible&&n.filter)},t.prototype.mM=function(){this.wM=new Uint8Array(this.arrayBuffer),this.Mb=new Float32Array(this.arrayBuffer)},t.Rb=52,t}(StructArray),SimpleSymbolArray=function(e){function t(){var t=e.call(this)||this;return t.pM=!1,t.resize(0),t}return __extends(t,e),t.prototype.kb=function(t,e){var r=this.length;this.resize(this.length+1),this.MM(r,t,e)},t.prototype.MM=function(t,e,r){this.Mb[t*=2]=e,this.Mb[1+t]=r},t.prototype.mM=function(){this.wM=new Uint8Array(this.arrayBuffer),this.Mb=new Float32Array(this.arrayBuffer)},t.Rb=4,t}(StructArray),SmartArrayBuffer=function(){function t(t,e,r,n){void 0===n&&(n="ARRAY_BUFFER"),this.AM=t,this.kM=r,this.type=n,t&&(this.buffer="ARRAY_BUFFER"===n?t.fe(e,r,"DYNAMIC_DRAW"):t.ve(e),this.uf=e.byteLength,this.byteLength=e.byteLength)}return t.prototype.update=function(t){var e,r,n;0!==t.length&&this.AM&&(e="ARRAY_BUFFER"===this.type,r=this.AM.gl,n=(e?this.AM.de:this.AM.me).current,(e?this.AM.de:this.AM.me).set(this.buffer),this.uf80*r){for(var h=n=t[0],d=i=t[1],v=r;v=f&&d.x<=l&&d.y>=c&&d.y<=h&&pointInTriangle(n,o,i,s,a,u,d.x,d.y)&&0<=area(d.NM,d,d.next))return;d=d.next}return 1}}function isEarHashed(t,e,r,n){var i=t.NM,a=t,o=t.next;if(!(0<=area(i,a,o))){for(var s=i.x,u=a.x,f=o.x,c=i.y,l=a.y,h=o.y,d=s=p&&w&&w.z<=m;){if(b.x>=d&&b.x<=g&&b.y>=v&&b.y<=y&&b!==i&&b!==o&&pointInTriangle(s,c,u,l,f,h,b.x,b.y)&&0<=area(b.NM,b,b.next))return;if(b=b.DM,w.x>=d&&w.x<=g&&w.y>=v&&w.y<=y&&w!==i&&w!==o&&pointInTriangle(s,c,u,l,f,h,w.x,w.y)&&0<=area(w.NM,w,w.next))return;w=w.RM}for(;b&&b.z>=p;){if(b.x>=d&&b.x<=g&&b.y>=v&&b.y<=y&&b!==i&&b!==o&&pointInTriangle(s,c,u,l,f,h,b.x,b.y)&&0<=area(b.NM,b,b.next))return;b=b.DM}for(;w&&w.z<=m;){if(w.x>=d&&w.x<=g&&w.y>=v&&w.y<=y&&w!==i&&w!==o&&pointInTriangle(s,c,u,l,f,h,w.x,w.y)&&0<=area(w.NM,w,w.next))return;w=w.RM}return 1}}function cureLocalIntersections(t,e,r){var n=t;do{var i=n.NM,a=n.next.next}while(!equals$2(i,a)&&intersects$1(i,n,n.next,a)&&locallyInside(i,a)&&locallyInside(a,i)&&(e.push(i.i/r|0),e.push(n.i/r|0),e.push(a.i/r|0),removeNode(n),removeNode(n.next),n=t=a),(n=n.next)!==t);return filterPoints(n)}function splitEarcut(t,e,r,n,i,a){var o=t;do{for(var s,u=o.next.next;u!==o.NM;){if(o.i!==u.i&&isValidDiagonal(o,u))return s=splitPolygon(o,u),o=filterPoints(o,o.next),s=filterPoints(s,s.next),earcutLinked(o,e,r,n,i,a,0),earcutLinked(s,e,r,n,i,a,0);u=u.next}}while((o=o.next)!==t)}function eliminateHoles(t,e,r,n){for(var i,a=[],o=0,s=e.length;o=n.next.y&&n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=i&&o=n.x&&n.x>=c&&i!==n.x&&pointInTriangle(ar.x||n.x===r.x&§orContainsSector(r,n)))&&(r=n,h=u),(n=n.next)!==f;);return r}function sectorContainsSector(t,e){return area(t.NM,t,e.NM)<0&&area(e.next,t,t.next)<0}function indexCurve(t,e,r,n){for(var i=t;0===i.z&&(i.z=zOrder(i.x,i.y,e,r,n)),i.DM=i.NM,i.RM=i.next,(i=i.next)!==t;);i.DM.RM=null,i.DM=null,sortLinked(i)}function sortLinked(t){var e,r,n,i,a,o,s,u,f=1;do{for(r=t,a=t=null,o=0;r;){for(o++,n=r,e=s=0;e=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function sign(t){return 0a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),(r=r.next)!==t;);return n}function splitPolygon(t,e){var r=new Node(t.i,t.x,t.y),n=new Node(e.i,e.x,e.y),i=t.next,a=e.NM;return(t.next=e).NM=t,(r.next=i).NM=r,(n.next=r).NM=n,(a.next=n).NM=a,n}function insertNode(t,e,r,n){return t=new Node(t,e,r),n?(t.next=n.next,(t.NM=n).next.NM=t,n.next=t):(t.NM=t).next=t,t}function removeNode(t){t.next.NM=t.NM,t.NM.next=t.next,t.DM&&(t.DM.RM=t.RM),t.RM&&(t.RM.DM=t.DM)}function Node(t,e,r){this.i=t,this.x=e,this.y=r,this.NM=null,this.next=null,this.z=0,this.DM=null,this.RM=null,this.LM=!1}function signedArea(t,e,r,n){for(var i=0,a=e,o=r-n;a=n}))&&r.style?r.style:undefined},t.prototype.nX=function(t,e,r,n){return null},t.prototype.destroy=function(){this.styles&&(this.styles={})},t.prototype.U9t=function(t){for(var e={},r=0,n=t;r>3),i--,1===n||2===n)a+=e.lA(),o+=e.lA(),1===n&&(u&&0>3),i--,1===n||2===n)(a+=e.lA())>3,e=1==n?t.aw():2==n?t.pA():3==n?t.yA():4==n?t.mA():5==n?t.ow():6==n?t.lA():7==n?t.vw():null;return e}VectorTileLayer.prototype.Gw=function(t){if(t<0||t>=this.Cw.length)throw new Error("feature index out of bounds");return this.fA.pos=this.Cw[t],t=this.fA.ow()+this.fA.pos,new VectorTileFeature(this.fA,t,this.extent,this.cA,this.vA)};var VectorTile$1=function(t,e){this.type="vector",this.layers=t.nw(readTile,{},e)};function readTile(t,e,r){3===t&&(t=new VectorTileLayer(r,r.ow()+r.pos)).length&&(e[t.name]=t)}VectorTile$1.Wb=function(t){return t},VectorTile$1.Gb=function(t){return t},VectorTile$1.prototype.nG=function(t){this.type=t};var SHIFT_LEFT_32=4294967296,SHIFT_RIGHT_32=1/SHIFT_LEFT_32,Pbf=function(){function n(t){this.gA=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.gA.length}return n.prototype.destroy=function(){this.gA=new Uint8Array(0)},n.prototype.nw=function(t,e,r){for(r=r||this.length;this.pos>3,a=this.pos;this.type=7&n,t(i,e,this),this.pos===a&&this.wA(n)}return e},n.prototype.MA=function(t,e){return this.nw(t,e,this.ow()+this.pos)},n.prototype.jA=function(){var t=readUInt32(this.gA,this.pos);return this.pos+=4,t},n.prototype.AA=function(){var t=readInt32(this.gA,this.pos);return this.pos+=4,t},n.prototype.kA=function(){var t=readUInt32(this.gA,this.pos)+readUInt32(this.gA,this.pos+4)*SHIFT_LEFT_32;return this.pos+=8,t},n.prototype.OA=function(){var t=readUInt32(this.gA,this.pos)+readInt32(this.gA,this.pos+4)*SHIFT_LEFT_32;return this.pos+=8,t},n.prototype.pA=function(){var t=this.xA(this.gA,this.pos,!0,23,4);return this.pos+=4,t},n.prototype.yA=function(){var t=this.xA(this.gA,this.pos,!0,52,8);return this.pos+=8,t},n.prototype.ow=function(t){var e=this.gA,r=e[this.pos++],n=127&r;return r<128||(n|=(127&(r=e[this.pos++]))<<7,r<128)||(n|=(127&(r=e[this.pos++]))<<14,r<128)||(n|=(127&(r=e[this.pos++]))<<21,r<128)?n:readVarintRemainder(n|=(15&e[this.pos])<<28,t,this)},n.prototype.mA=function(){return this.ow(!0)},n.prototype.lA=function(){var t=this.ow();return t%2==1?(t+1)/-2:t/2},n.prototype.vw=function(){return Boolean(this.ow())},n.prototype.aw=function(){var t=this.ow()+this.pos,e=readUtf8(this.gA,this.pos,t);return this.pos=t,e},n.prototype.mw=function(){var t=this.ow()+this.pos,e=this.gA.subarray(this.pos,t);return this.pos=t,e},n.prototype.tw=function(t,e){var r=readPackedEnd(this);for(t=t||[];this.pos>>=7)|(127>>=7)|(127>>7&127))},n.prototype.VA=function(t){this.BA(t<0?2*-t-1:2*t)},n.prototype.$A=function(t){this.BA(Boolean(t))},n.prototype.YA=function(t){t=String(t),this.zA(4*t.length),this.pos++;var e=this.pos;this.pos=writeUtf8(this.gA,t,this.pos),128<=(t=this.pos-e)&&makeRoomForExtraLength(e,t,this),this.pos=e-1,this.BA(t),this.pos+=t},n.prototype.KA=function(t){this.zA(4),this.XA(this.gA,t,this.pos,!0,23,4),this.pos+=4},n.prototype.JA=function(t){this.zA(8),this.XA(this.gA,t,this.pos,!0,52,8),this.pos+=8},n.prototype.ZA=function(t){var e=t.length;this.BA(e),this.zA(e);for(var r=0;r>1,c=-7,l=r?i-1:0,h=r?-1:1,i=t[e+l];for(l+=h,a=i&(1<<-c)-1,i>>=-c,c+=s;0>=-c,c+=n;0>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:a-1,d=n?1:-1,a=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===Infinity?(s=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(n=Math.pow(2,-o))<1&&(o--,n*=2),2<=(e+=1<=o+c?l/n:l*Math.pow(2,1-c))*n&&(o++,n/=2),f<=o+c?(s=0,o=f):1<=o+c?(s=(e*n-1)*Math.pow(2,i),o+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,i),o=0));8<=i;t[r+h]=255&s,h+=d,s/=256,i-=8);for(o=o<>4;if(i<128)return toNum(t,a,e);if(a|=(127&(i=n[r.pos++]))<<3,i<128)return toNum(t,a,e);if(a|=(127&(i=n[r.pos++]))<<10,i<128)return toNum(t,a,e);if(a|=(127&(i=n[r.pos++]))<<17,i<128)return toNum(t,a,e);if(a|=(127&(i=n[r.pos++]))<<24,i<128)return toNum(t,a,e);if(a|=(1&(i=n[r.pos++]))<<31,i<128)return toNum(t,a,e);throw new Error("Expected varint not more than 10 bytes")}function readPackedEnd(t){return t.type===Pbf.DA?t.ow()+t.pos:t.pos+1}function toNum(t,e,r){return r?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function writeBigVarint(t,e){var r,n;if(0<=t?(r=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:n=n+1|(r=0)),0x10000000000000000<=t||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.zA(10),writeBigVarintLow(r,n,e),writeBigVarintHigh(n,e)}function writeBigVarintLow(t,e,r){r.gA[r.pos++]=127&t|128,t>>>=7,r.gA[r.pos++]=127&t|128,t>>>=7,r.gA[r.pos++]=127&t|128,t>>>=7,r.gA[r.pos++]=127&t|128,r.gA[r.pos]=127&(t>>>=7)}function writeBigVarintHigh(t,e){var r=(7&t)<<4;e.gA[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.gA[e.pos++]=127&t|((t>>>=7)?128:0),t)&&(e.gA[e.pos++]=127&t|((t>>>=7)?128:0),t)&&(e.gA[e.pos++]=127&t|((t>>>=7)?128:0),t)&&(e.gA[e.pos++]=127&t|((t>>>=7)?128:0),t)&&(e.gA[e.pos++]=127&t)}function makeRoomForExtraLength(t,e,r){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.ceil(Math.log(e)/(7*Math.LN2));r.zA(n);for(var i=r.pos-1;t<=i;i--)r.gA[i+n]=r.gA[i]}function writePackedVarint(t,e){for(var r=0;r>>8,t[r+2]=e>>>16,t[r+3]=e>>>24}function readInt32(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function readUtf8(t,e,r){for(var n="",i=e;i>>10&1023|55296),o=56320|1023&o),n+=String.fromCharCode(o),i+=s}return n}function writeUtf8(t,e,r){for(var n=0,i=void 0,a=void 0;n>6|192:(i<65536?t[r++]=i>>12|224:(t[r++]=i>>18|240,t[r++]=i>>12&63|128),t[r++]=i>>6&63|128),t[r++]=63&i|128)}return r}var StyleOptionsBuilding=function(){this.hideWithoutStyle=!1,this.areas=[]},VectorTileSegements=function(){function t(){this.jc=[],this.VM=0}return t.prototype.add=function(t,e,r,n,i){VTLineSegement.getKey(t,e,i,n)!==(this.WM?this.WM.getKey():"-1")&&(this.VM+=this.WM?this.WM.length:0,this.WM=new VTLineSegement(t,e,this.VM,n,i),this.jc.push(this.WM)),this.WM.add(r)},t}(),VTLineSegement=function(){function t(t,e,r,n,i){this.mainkey=t,this.subkey=e,this.offset=r,this.minzoom=n,this.maxzoom=i,this.length=0}return t.getKey=function(t,e,r,n){return t+":"+e+":"+r+":"+n},t.prototype.add=function(t){this.length+=t},t.prototype.getKey=function(){return this.mainkey+":"+this.subkey+":"+this.maxzoom+":"+this.minzoom},t}(),MapboxSegements=function(){function t(){this.jc=[],this.GM=-1,this.HM=-1,this.VM=0}return t.prototype.add=function(t,e){MBLineSegement.getKey(t),this.WM&&this.WM.getKey(),this.GM=t,this.VM+=this.WM?this.WM.length:0,this.WM=new MBLineSegement(t,this.VM),this.jc.push(this.WM),this.WM.add(e)},t}(),MBLineSegement=function(){function t(t,e){this.style=t,this.offset=e,this.length=0}return t.getKey=function(t){return""+t},t.prototype.add=function(t){this.length+=t},t.prototype.getKey=function(){return""+this.style},t}(),ImageDataWraperType,ImageDataWraper=(function(t){t.base64="base64",t.arraybuffer="arraybuffer",t.bitmap="bitmap",t.empty="empty"}(ImageDataWraperType=ImageDataWraperType||{}),function(){function t(t,e,r){this.hash=t,this.IV=!1,"string"!=typeof e?r&&r.imageBitmap&&typeof createImageBitmap!==undefined?(this.type=ImageDataWraperType.bitmap,this.status="success",this.data=e):(t=new Blob([e],{type:"image/png"}),(r=URLObject.createObjectURL(t))?(this.data=r,this.type=ImageDataWraperType.arraybuffer,this.status="success"):(this.data="",this.type=ImageDataWraperType.arraybuffer,this.status="error")):(this.data=e,this.type=ImageDataWraperType.base64,this.status="success")}return t.AV=function(t){return createImageBitmap(new Blob([new Uint8Array(t)]))},t.Wb=function(t){var e={data:t.data,type:t.type,status:t.status,IV:t.IV,hash:t.hash};return t.transform(),e},t.prototype.transform=function(){this.IV=!0,this.type===ImageDataWraperType.bitmap&&(this.data="")},t.prototype.destroy=function(){"destroyed"!==this.status&&(this.type===ImageDataWraperType.arraybuffer&&URLObject.revokeObjectURL(this.data),this.data="",this.status="destroyed")},t.prototype.IZ=function(t){var e;this.type===ImageDataWraperType.bitmap?t(this.data):((e=new Image).crossOrigin="",e.onload=function(){t(e)},e.src=this.data)},t}()),EmptyImageDataWraper=new ImageDataWraper("",""),CircleBucket=(EmptyImageDataWraper.type=ImageDataWraperType.empty,function(){function t(){this._b=new SymbolArray,this.uploaded=!1}return t.prototype.wb=function(t,e){var r=this._b.length;return this._b.kb(t[0],t[1],e),this._b.length-r},t.prototype.upload=function(t){this.uploaded||(this.destroy(),this.uploaded=!0,this.zs=t.fe(this._b.Mb,SymbolArray.Rb))},t.prototype.destroy=function(){this.uploaded=!1,this.zs&&this.zs.context&&(this.zs.context.deleteBuffer(this.zs),delete this.zs)},t.prototype.reset=function(){this._b=new SymbolArray,this.uploaded=!1},t}()),SimpleCircleBucket=function(){function t(){this._b=new SimpleSymbolArray,this.uploaded=!1}return t.prototype.wb=function(t){var e=this._b.length;return this._b.kb(t[0],t[1]),this._b.length-e},t.prototype.upload=function(t){this.uploaded||(this.destroy(),this.uploaded=!0,this.zs=t.fe(this._b.Mb,SimpleSymbolArray.Rb))},t.prototype.destroy=function(){this.uploaded=!1,this.zs&&this.zs.context&&(this.zs.context.deleteBuffer(this.zs),delete this.zs)},t.prototype.reset=function(){this._b=new SimpleSymbolArray,this.uploaded=!1},t}(),DistrictLayerStyle=function(){this["stroke-width"]="",this["coastline-stroke"]="",this["nation-stroke"]="",this["province-stroke"]="",this["city-stroke"]="",this["county-stroke"]="",this.fill=""},registry={};function register(t,e,r){void 0===r&&(r={}),Object.defineProperty(e,"yk",{value:t,writable:!1}),registry[t]={mk:e,gk:r.gk||[],wk:r.wk||[]}}function serialize(t,e){if(null===t||t===undefined||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(t instanceof ArrayBuffer)return e&&e.push(t),t;if(Browser.imageBitmap&&t instanceof ImageBitmap)return e&&e.indexOf(t)<0&&e.push(t),t;if(ArrayBuffer.isView(t))return o=t,e&&e.push(o.buffer),o;if(t instanceof ImageData)return e&&e.push(t.data.buffer),t;if(Array.isArray(t)){for(var r=[],n=0,i=t;n=t[n]&&ee[2]&&(r|=2),t[1]e[3]&&(r|=8),r}function bboxClip(t,e){var r=getGeom(t),n=r.type,i="Feature"===t.type?t.properties:{},a=r.coordinates;switch(n){case"LineString":case"MultiLineString":var o=[];return(a="LineString"===n?[a]:a).forEach(function(t){lineclip(t,e,o)}),1===o.length?lineString(o[0],i):multiLineString(o,i);case"Polygon":return polygon(clipPolygon(a,e),i);case"MultiPolygon":return multiPolygon(a.map(function(t){return clipPolygon(t,e)}),i);default:throw new Error("geometry "+n+" not supported")}}function clipPolygon(t,e){for(var r=[],n=0,i=t;n>a;return[(r=r>>a)-(a=getTileSWCoord(i,e))[0],n-a[1]]}var cache={};function lnglat2WGSCoord2(t){var e,r;return cache[t]||(r=33-t,e=degree2Coord(180)/(1<>1,c=-7,l=r?i-1:0,h=r?-1:1,i=t[e+l];for(l+=h,a=i&(1<<-c)-1,i>>=-c,c+=s;0>=-c,c+=n;0>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:a-1,d=n?1:-1,a=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===Infinity?(s=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(n=Math.pow(2,-o))<1&&(o--,n*=2),2<=(e+=1<=o+c?l/n:l*Math.pow(2,1-c))*n&&(o++,n/=2),f<=o+c?(s=0,o=f):1<=o+c?(s=(e*n-1)*Math.pow(2,i),o+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,i),o=0));8<=i;t[r+h]=255&s,h+=d,s/=256,i-=8);for(o=o<>4;if(i<128)return toNum$1(t,a,e);if(a|=(127&(i=n[r.pos++]))<<3,i<128)return toNum$1(t,a,e);if(a|=(127&(i=n[r.pos++]))<<10,i<128)return toNum$1(t,a,e);if(a|=(127&(i=n[r.pos++]))<<17,i<128)return toNum$1(t,a,e);if(a|=(127&(i=n[r.pos++]))<<24,i<128)return toNum$1(t,a,e);if(a|=(1&(i=n[r.pos++]))<<31,i<128)return toNum$1(t,a,e);throw new Error("Expected varint not more than 10 bytes")}function readPackedEnd$1(t){return t.type===Pbf$1.DA?t.ow()+t.pos:t.pos+1}function toNum$1(t,e,r){return r?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function writeBigVarint$1(t,e){var r,n;if(0<=t?(r=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:n=n+1|(r=0)),0x10000000000000000<=t||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.zA(10),writeBigVarintLow$1(r,n,e),writeBigVarintHigh$1(n,e)}function writeBigVarintLow$1(t,e,r){r.gA[r.pos++]=127&t|128,t>>>=7,r.gA[r.pos++]=127&t|128,t>>>=7,r.gA[r.pos++]=127&t|128,t>>>=7,r.gA[r.pos++]=127&t|128,r.gA[r.pos]=127&(t>>>=7)}function writeBigVarintHigh$1(t,e){var r=(7&t)<<4;e.gA[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.gA[e.pos++]=127&t|((t>>>=7)?128:0),t)&&(e.gA[e.pos++]=127&t|((t>>>=7)?128:0),t)&&(e.gA[e.pos++]=127&t|((t>>>=7)?128:0),t)&&(e.gA[e.pos++]=127&t|((t>>>=7)?128:0),t)&&(e.gA[e.pos++]=127&t)}function makeRoomForExtraLength$1(t,e,r){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.zA(n);for(var i=r.pos-1;t<=i;i--)r.gA[i+n]=r.gA[i]}function writePackedVarint$1(t,e){for(var r=0;r>>8,t[r+2]=e>>>16,t[r+3]=e>>>24}function readInt32$1(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function readUtf8$1(t,e,r){for(var n="",i=e;i>>10&1023|55296),f=56320|1023&f),n+=String.fromCharCode(f),i+=c}return n}function readUtf8TextDecoder(t,e,r){return utf8TextDecoder.decode(t.subarray(e,r))}function writeUtf8$1(t,e,r){for(var n,i,a=0;a>6|192:(n<65536?t[r++]=n>>12|224:(t[r++]=n>>18|240,t[r++]=n>>12&63|128),t[r++]=n>>6&63|128),t[r++]=63&n|128)}return r}Pbf$1.prototype={destroy:function(){this.gA=null},nw:function(t,e,r){for(r=r||this.length;this.pos>3,a=this.pos;this.type=7&n,t(i,e,this),this.pos===a&&this.wA(n)}return e},MA:function(t,e){return this.nw(t,e,this.ow()+this.pos)},jA:function(){var t=readUInt32$1(this.gA,this.pos);return this.pos+=4,t},AA:function(){var t=readInt32$1(this.gA,this.pos);return this.pos+=4,t},kA:function(){var t=readUInt32$1(this.gA,this.pos)+readUInt32$1(this.gA,this.pos+4)*SHIFT_LEFT_32$1;return this.pos+=8,t},OA:function(){var t=readUInt32$1(this.gA,this.pos)+readInt32$1(this.gA,this.pos+4)*SHIFT_LEFT_32$1;return this.pos+=8,t},pA:function(){var t=ieee754.read(this.gA,this.pos,!0,23,4);return this.pos+=4,t},yA:function(){var t=ieee754.read(this.gA,this.pos,!0,52,8);return this.pos+=8,t},ow:function(t){var e=this.gA,r=e[this.pos++],n=127&r;return r<128||(n|=(127&(r=e[this.pos++]))<<7,r<128)||(n|=(127&(r=e[this.pos++]))<<14,r<128)||(n|=(127&(r=e[this.pos++]))<<21,r<128)?n:readVarintRemainder$1(n|=(15&e[this.pos])<<28,t,this)},mA:function(){return this.ow(!0)},lA:function(){var t=this.ow();return t%2==1?(t+1)/-2:t/2},vw:function(){return Boolean(this.ow())},aw:function(){var t=this.ow()+this.pos,e=this.pos;return this.pos=t,(TEXT_DECODER_MIN_LENGTH<=t-e&&utf8TextDecoder?readUtf8TextDecoder:readUtf8$1)(this.gA,e,t)},mw:function(){var t=this.ow()+this.pos,e=this.gA.subarray(this.pos,t);return this.pos=t,e},tw:function(t,e){if(this.type!==Pbf$1.DA)return t.push(this.ow(e));var r=readPackedEnd$1(this);for(t=t||[];this.pos>>=7)|(127>>=7)|(127>>7&127))},VA:function(t){this.BA(t<0?2*-t-1:2*t)},$A:function(t){this.BA(Boolean(t))},YA:function(t){t=String(t),this.zA(4*t.length),this.pos++;var e=this.pos;this.pos=writeUtf8$1(this.gA,t,this.pos),128<=(t=this.pos-e)&&makeRoomForExtraLength$1(e,t,this),this.pos=e-1,this.BA(t),this.pos+=t},KA:function(t){this.zA(4),ieee754.write(this.gA,t,this.pos,!0,23,4),this.pos+=4},JA:function(t){this.zA(8),ieee754.write(this.gA,t,this.pos,!0,52,8),this.pos+=8},ZA:function(t){var e=t.length;this.BA(e),this.zA(e);for(var r=0;r>>7)]},bt=function bt(t,e){t.Nti[t.pending++]=255&e,t.Nti[t.pending++]=e>>>8&255},c=function c(t,e,r){t.Cti>16-r?(t.Lti|=e<>16-t.Cti,t.Cti+=r-16):(t.Lti|=e<>>=1,r<<=1,0<--e;);return r>>>1},Tt=function Tt(t){16===t.Cti?(bt(t,t.Lti),t.Lti=0,t.Cti=0):8<=t.Cti&&(t.Nti[t.pending++]=255&t.Lti,t.Lti>>=8,t.Cti-=8)},St=function St(t,e){for(var f,c,l,d,v,r=e.Dti,n=e.Oti,i=e.Mti._ti,a=e.Mti.Iti,o=e.Mti.Eti,s=e.Mti.Tti,u=e.Mti.c1,g=0,h=0;h<=y;h++)t.$ti[h]=0;for(r[2*t.Zti[t.Bti]+1]=0,f=t.Bti+1;f<573;f++)u<(h=r[2*r[2*(c=t.Zti[f])+1]+1]+1)&&(h=u,g++),r[2*c+1]=h,n>=7;n>1;1<=o;o--)kt(t,r,o);for(f=a;o=t.Zti[1],t.Zti[1]=t.Zti[t.Wti--],kt(t,r,1),s=t.Zti[1],t.Zti[--t.Bti]=o,t.Zti[--t.Bti]=s,r[2*f]=r[2*o]+r[2*s],t.depth[f]=(t.depth[o]>=t.depth[s]?t.depth[o]:t.depth[s])+1,r[2*o+1]=r[2*s+1]=f,t.Zti[1]=f++,kt(t,r,1),2<=t.Wti;);t.Zti[--t.Bti]=t.Zti[1],St(t,e),At(r,u,t.$ti)},Lt=function Lt(t,e,r){var n,a,i=-1,o=e[1],s=0,u=7,f=4;for(0===o&&(u=138,f=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)a=o,o=e[2*(n+1)+1],++s>>=1)if(1&e&&0!==t.Uti[2*r])return 0;if(0!==t.Uti[18]||0!==t.Uti[20]||0!==t.Uti[26])return 1;for(r=32;r>>3,(a=t.Fti+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==e?jt(t,e,r,n):4===t.qti||a===i?(c(t,2+(n?1:0),3),$t(t,s,ut)):(c(t,4+(n?1:0),3),Ft(t,t.Yti.Oti+1,t.Gti.Oti+1,o+1),$t(t,t.Uti,t.Pti)),Mt(t),n&&Pt(t)},qt_rei=function u(t,e,r){return t.Nti[t.Xti+t.Kti++]=e,t.Nti[t.Xti+t.Kti++]=e>>8,t.Nti[t.Xti+t.Kti++]=r,0===e?t.Uti[2*r]++:(t.matches++,e--,t.Uti[2*(ct[r]+W+1)]++,t.Pti[2*mt(e)]++),t.Kti===t.Qti},qt_nei=function re(t){c(t,2,3),l(t,256,s),Tt(t)},Kt=function(t,e,r,n){for(var i=65535&t|0,a=t>>>16&65535|0,o=0;0!==r;){for(r-=o=2e3>>1:t>>>1;e[r]=t}return e}()),$=function(t,e,r,n){var i=Xt,a=n+r;t^=-1;for(var o=n;o>>8^i[255&(t^e[o])];return-1^t},i={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},r={lei:0,oei:1,aei:2,hei:3,sei:4,fei:5,dei:6,uei:0,cei:1,_ei:2,pei:-1,yei:-2,xei:-3,vei:-4,bei:-5,gei:0,wei:1,Rei:9,Eei:-1,Sei:1,mei:2,Tei:3,Aei:4,Iei:0,Dei:0,Oei:1,Mei:2,Nei:8},Qt=qt_iei,te=qt_tei,ee=qt_eei,u=qt_rei,re=qt_nei,g=r.lei,ne=r.oei,ie=r.hei,p=r.sei,ae=r.fei,m=r.uei,oe=r.cei,b=r.yei,se=r.xei,ue=r.bei,fe=r.Eei,ce=r.Sei,le=r.mei,he=r.Tei,de=r.Aei,ve=r.Iei,ge=r.Mei,ye=r.Nei,Se=286,Ae=30,xe=19,Me=2*Se+1,Pe=15,w=258,T=262,S=113,M=function M(t,e){return t.Aj=i[e],e},je=function je(t){return 2*t-(4>>8&255,t.Nti[t.pending++]=255&e},Ge=function Ge(t,e,r,n){var i=t.zei;return 0===(i=n>=2),t.qeiu&&0!=--r);return o<=t.qei?o:t.qei},v=function v(t){var n,i,e=t.kei;do{if(n=t.iri-t.qei-t.Pei,e+(e-T)<=t.Pei&&(t.window.set(t.window.subarray(e,e+e-n),0),t.Qei-=e,t.Pei-=e,t.Uei-=e,t.Peit.kei?t.kei:t.eri-5,o=0,s=t.Jti.zei;n=65535,a=t.Cti+42>>3,!(t.Jti.Zei(i=t.Pei-t.Uei)+t.Jti.zei?i+t.Jti.zei:n)?a:n)>8,t.Nti[t.pending-2]=~n,t.Nti[t.pending-1]=~n>>8,I(t.Jti),i&&(n=t.kei?(t.matches=2,t.window.set(t.Jti.input.subarray(t.Jti.Kei-t.kei,t.Jti.Kei),0),t.Pei=t.kei,t.Xc=t.Pei):(t.iri-t.Pei<=s&&(t.Pei-=t.kei,t.window.set(t.window.subarray(t.kei,t.kei+t.Pei),0),t.matches<2&&t.matches++,t.Pei(a=t.iri-t.Pei)&&t.Uei>=t.kei&&(t.Uei-=t.kei,t.Pei-=t.kei,t.window.set(t.window.subarray(t.kei,t.kei+t.Pei),0),t.matches<2&&t.matches++,a+=t.kei,t.Peit.Jti.zei?t.Jti.zei:a)&&(Ge(t.Jti,t.window,t.Pei,a),t.Pei+=a,t.Xc+=t.kei-t.Xc>3)?65535:t.eri-a,((r=t.kei=le||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.Pei&&(n|=32),Be(r,n+=31-n%31),0!==r.Pei&&(Be(r,t.Wei>>>16),Be(r,65535&t.Wei)),t.Wei=1,r.status=S,I(t),0!==r.pending)return r.yri=-1,m}if(57===r.status)if(t.Wei=0,k(r,31),k(r,139),k(r,8),r._ri)k(r,(r._ri.text?1:0)+(r._ri.gri?2:0)+(r._ri.wri?4:0)+(r._ri.name?8:0)+(r._ri.Rri?16:0)),k(r,255&r._ri.time),k(r,r._ri.time>>8&255),k(r,r._ri.time>>16&255),k(r,r._ri.time>>24&255),k(r,9===r.level?2:r.qti>=le||r.level<2?4:0),k(r,255&r._ri.os),r._ri.wri&&r._ri.wri.length&&(k(r,255&r._ri.wri.length),k(r,r._ri.wri.length>>8&255)),r._ri.gri&&(t.Wei=$(t.Wei,r.Nti,r.pending,0)),r.pri=0,r.status=69;else if(k(r,0),k(r,0),k(r,0),k(r,0),k(r,0),k(r,9===r.level?2:r.qti>=le||r.level<2?4:0),k(r,3),r.status=S,I(t),0!==r.pending)return r.yri=-1,m;if(69===r.status){if(r._ri.wri){for(var o=r.pending,s=(65535&r._ri.wri.length)-r.pri;r.pending+s>r.eri;){var u=r.eri-r.pending;if(r.Nti.set(r._ri.wri.subarray(r.pri,r.pri+u),r.pending),r.pending=r.eri,r._ri.gri&&r.pending>o&&(t.Wei=$(t.Wei,r.Nti,r.pending-o,o)),r.pri+=u,I(t),0!==r.pending)return r.yri=-1,m;o=0,s-=u}n=new Uint8Array(r._ri.wri);r.Nti.set(n.subarray(r.pri,r.pri+s),r.pending),r.pending+=s,r._ri.gri&&r.pending>o&&(t.Wei=$(t.Wei,r.Nti,r.pending-o,o)),r.pri=0}r.status=73}if(73===r.status){if(r._ri.name){var l,c=r.pending;do{if(r.pending===r.eri){if(r._ri.gri&&r.pending>c&&(t.Wei=$(t.Wei,r.Nti,r.pending-c,c)),I(t),0!==r.pending)return r.yri=-1,m;c=0}}while(l=r.pric&&(t.Wei=$(t.Wei,r.Nti,r.pending-c,c)),r.pri=0}r.status=91}if(91===r.status){if(r._ri.Rri){var d,h=r.pending;do{if(r.pending===r.eri){if(r._ri.gri&&r.pending>h&&(t.Wei=$(t.Wei,r.Nti,r.pending-h,h)),I(t),0!==r.pending)return r.yri=-1,m;h=0}}while(d=r.prih&&(t.Wei=$(t.Wei,r.Nti,r.pending-h,h))}r.status=103}if(103===r.status){if(r._ri.gri){if(r.pending+2>r.eri&&(I(t),0!==r.pending))return r.yri=-1,m;k(r,255&t.Wei),k(r,t.Wei>>8&255),t.Wei=0}if(r.status=S,I(t),0!==r.pending)return r.yri=-1,m}if(0!==t.zei||0!==r.qei||e!==g&&666!==r.status){n=0===r.level?ze(r,e):r.qti===le?qe(r,e):r.qti===he?We(r,e):Ze[r.level].cri(r,e);if(3!==n&&4!==n||(r.status=666),1===n||3===n)return 0===t.Zei&&(r.yri=-1),m;if(2===n&&(e===ne?re(r):e!==ae&&(te(r,0,0,!1),e===ie)&&(P(r.head),0===r.qei)&&(r.Pei=0,r.Uei=0,r.Xc=0),I(t),0===t.Zei))return r.yri=-1,m}return e!==p||!(r.wrap<=0)&&(2===r.wrap?(k(r,255&t.Wei),k(r,t.Wei>>8&255),k(r,t.Wei>>16&255),k(r,t.Wei>>24&255),k(r,255&t.Xei),k(r,t.Xei>>8&255),k(r,t.Xei>>16&255),k(r,t.Xei>>24&255)):(Be(r,t.Wei>>>16),Be(r,65535&t.Wei)),I(t),0>>6:(r<65536?e[a++]=224|r>>>12:(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63),e[a++]=128|r>>>6&63),e[a++]=128|63&r);return e},Ir_Cri=function(t,e){var r=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));for(var a=new Array(2*r),i=0,n=0;n>10&1023,a[i++]=56320|1023&o)}}}return xr(a,i)},Ir_Lri=function(t,e){for(var r=(e=(e=e||t.length)>t.length?t.length:e)-1;0<=r&&128==(192&t[r]);)r--;return!(r<0)&&0!==r&&r+Sr[t[r]]>e?r:e};var $r=function(){this.input=null,this.Kei=0,this.zei=0,this.Xei=0,this.output=null,this.Hei=0,this.Zei=0,this.Fei=0,this.Aj="",this.state=null,this.Vti=2,this.Wei=0},Cr=Object.prototype.toString,Lr=r.lei,_r=r.aei,Nr=r.hei,Fr=r.sei,Er=r.uei,Or=r.cei,Ur=r.Eei,jr=r.Iei,Dr=r.Nei;function Rr(t){this.options=wr_assign({level:Ur,method:Dr,$ri:16384,Zri:15,Bri:8,qti:jr},t||{});t=this.options;if(t.raw&&0=M?(C=k[o[c]-M],x[o[c]-M]):(C=96,0),b=1<<($=f-g),l=w=1<>g)+(w-=b)]=$<<24|C<<16|L|0,0!==w;);for(b=1<>=1;if(m=0!==b?(m&b-1)+b:0,c++,0==--P[f]){if(f===h)break;f=e[r+o[c]]}if(d>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)};function ai(){this.Jti=null,this.mode=0,this.oni=!1,this.wrap=0,this.ani=!1,this.flags=0,this.jri=0,this.check=0,this.total=0,this.head=null,this.hni=0,this.Vri=0,this.Jri=0,this.qri=0,this.window=null,this.Qri=0,this.ini=0,this.length=0,this.offset=0,this.wri=0,this.tni=null,this.eni=null,this.rni=0,this.nni=0,this.sni=0,this.fni=0,this.dni=0,this.uni=0,this.next=null,this.cni=new Uint16Array(320),this._ni=new Uint16Array(288),this.pni=null,this.yni=null,this.lni=0,this.back=0,this.xni=0}var oi,si,ui,fi,hi,di,F=function F(t){var e;return!t||!(e=t.state)||e.Jti!==t||e.mode>4),e<48&&(e&=15)),e&&(e<8||15>>8&255,r.check=$(r.check,M,2,0),c=f=0,r.mode=16181):(r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&f)<<8)+(f>>8))%31?(t.Aj="incorrect header check",r.mode=N):(15&f)!==An?(t.Aj="unknown compression method",r.mode=N):(c-=4,A=8+(15&(f>>>=4)),0===r.hni&&(r.hni=A),15r.hni?(t.Aj="invalid window size",r.mode=N):(r.jri=1<>8&1),512&r.flags&&4&r.wrap&&(M[0]=255&f,M[1]=f>>>8&255,r.check=$(r.check,M,2,0)),c=f=0,r.mode=16182;case 16182:for(;c<32;){if(0===s)break t;s--,f+=n[a++]<>>8&255,M[2]=f>>>16&255,M[3]=f>>>24&255,r.check=$(r.check,M,4,0)),c=f=0,r.mode=16183;case 16183:for(;c<16;){if(0===s)break t;s--,f+=n[a++]<>8),512&r.flags&&4&r.wrap&&(M[0]=255&f,M[1]=f>>>8&255,r.check=$(r.check,M,2,0)),c=f=0,r.mode=16184;case 16184:if(1024&r.flags){for(;c<16;){if(0===s)break t;s--,f+=n[a++]<>>8&255,r.check=$(r.check,M,2,0)),c=f=0}else r.head&&(r.head.wri=null);r.mode=16185;case 16185:if(1024&r.flags&&((d=s<(d=r.length)?s:d)&&(r.head&&(A=r.head.bni-r.length,r.head.wri||(r.head.wri=new Uint8Array(r.head.bni)),r.head.wri.set(n.subarray(a,a+d),A)),512&r.flags&&4&r.wrap&&(r.check=$(r.check,n,d,a)),s-=d,a+=d,r.length-=d),r.length))break t;r.length=0,r.mode=16186;case 16186:if(2048&r.flags){if(0===s)break t;for(d=0;A=n[a+d++],r.head&&A&&r.length<65536&&(r.head.name+=String.fromCharCode(A)),A&&d>9&1,r.head.done=!0),t.Wei=r.check=0,r.mode=_;break;case 16189:for(;c<32;){if(0===s)break t;s--,f+=n[a++]<>>=7&c,c-=7&c,r.mode=16206;else{for(;c<3;){if(0===s)break t;s--,f+=n[a++]<>>=1)){case 0:r.mode=16193;break;case 1:if(vi(r),r.mode=Gn,e!==pn)break;f>>>=2,c-=2;break t;case 2:r.mode=16196;break;case 3:t.Aj="invalid block type",r.mode=N}f>>>=2,c-=2}break;case 16193:for(f>>>=7&c,c-=7&c;c<32;){if(0===s)break t;s--,f+=n[a++]<>>16^65535)){t.Aj="invalid stored block lengths",r.mode=N;break}if(r.length=65535&f,c=f=0,r.mode=16194,e===pn)break t;case 16194:r.mode=16195;case 16195:if(d=r.length){if(0===(d=u<(d=s>>=5,c-=5,r.dni=1+(31&f),f>>>=5,c-=5,r.sni=4+(15&f),f>>>=4,c-=4,286>>=3,c-=3}for(;r.uni<19;)r.cni[k[r.uni++]]=0;if(r.tni=r.pni,r.rni=7,P={ini:r.rni},x=ln(0,r.cni,0,19,r.tni,0,r._ni,P),r.rni=P.ini,x){t.Aj="invalid code lengths set",r.mode=N;break}r.uni=0,r.mode=16198;case 16198:for(;r.uni>>16&255,b=65535&y,!((p=y>>>24)<=c);){if(0===s)break t;s--,f+=n[a++]<>>=p,c-=p,r.cni[r.uni++]=b;else{if(16===b){for(I=p+2;c>>=p,c-=p,0===r.uni){t.Aj="invalid bit length repeat",r.mode=N;break}A=r.cni[r.uni-1],d=3+(3&f),f>>>=2,c-=2}else if(17===b){for(I=p+3;c>>=p)),f>>>=3,c=c-p-3}else{for(I=p+7;c>>=p)),f>>>=7,c=c-p-7}if(r.uni+d>r.fni+r.dni){t.Aj="invalid bit length repeat",r.mode=N;break}for(;d--;)r.cni[r.uni++]=A}}if(r.mode===N)break;if(0===r.cni[256]){t.Aj="invalid code -- missing end-of-block",r.mode=N;break}if(r.rni=9,P={ini:r.rni},x=ln(1,r.cni,0,r.fni,r.tni,0,r._ni,P),r.rni=P.ini,x){t.Aj="invalid literal/lengths set",r.mode=N;break}if(r.nni=6,r.eni=r.yni,P={ini:r.nni},x=ln(2,r.cni,r.fni,r.dni,r.eni,0,r._ni,P),r.nni=P.ini,x){t.Aj="invalid distances set",r.mode=N;break}if(r.mode=Gn,e===pn)break t;case Gn:r.mode=Vn;case Vn:if(6<=s&&258<=u){t.Hei=o,t.Zei=u,t.Kei=a,t.zei=s,r.Qri=f,r.ini=c,!function(t,e){var m,b,w,T,S,A,P=t.state,r=t.Kei,x=t.input,n=r+(t.zei-5),i=t.Hei,M=t.output,a=i-(e-t.Zei),o=i+(t.Zei-257),s=P.jri,u=P.Vri,f=P.Jri,c=P.qri,l=P.window,h=P.Qri,d=P.ini,v=P.tni,g=P.eni,y=(1<>>=b=m>>>24,d-=b,0===(b=m>>>16&255))M[i++]=65535&m;else{if(!(16&b)){if(0==(64&b)){m=v[(65535&m)+(h&(1<>>=b,d-=b),d<15&&(h+=x[r++]<>>=b=m>>>24,d-=b,!(16&(b=m>>>16&255))){if(0==(64&b)){m=g[(65535&m)+(h&(1<>>=b,d-=b,(b=i-a)>3)<<3))-1,t.Kei=r-=w,t.Hei=i,t.zei=r>>16&255,b=65535&y,!((p=y>>>24)<=c);){if(0===s)break t;s--,f+=n[a++]<>w)])>>>16&255,b=65535&y,!(w+(p=y>>>24)<=c);){if(0===s)break t;s--,f+=n[a++]<>>=w,c-=w,r.back+=w}if(f>>>=p,c-=p,r.back+=p,r.length=b,0===m){r.mode=16205;break}if(32&m){r.back=-1,r.mode=_;break}if(64&m){t.Aj="invalid literal/length code",r.mode=N;break}r.wri=15&m,r.mode=16201;case 16201:if(r.wri){for(I=r.wri;c>>=r.wri,c-=r.wri,r.back+=r.wri}r.xni=r.length,r.mode=16202;case 16202:for(;m=(y=r.eni[f&(1<>>16&255,b=65535&y,!((p=y>>>24)<=c);){if(0===s)break t;s--,f+=n[a++]<>w)])>>>16&255,b=65535&y,!(w+(p=y>>>24)<=c);){if(0===s)break t;s--,f+=n[a++]<>>=w,c-=w,r.back+=w}if(f>>>=p,c-=p,r.back+=p,64&m){t.Aj="invalid distance code",r.mode=N;break}r.offset=b,r.wri=15&m,r.mode=16203;case 16203:if(r.wri){for(I=r.wri;c>>=r.wri,c-=r.wri,r.back+=r.wri}if(r.offset>r.jri){t.Aj="invalid distance too far back",r.mode=N;break}r.mode=16204;case 16204:if(0===u)break t;if(r.offset>(d=h-u)){if((d=r.offset-d)>r.Jri&&r.lni){t.Aj="invalid distance too far back",r.mode=N;break}v=d>r.qri?(d-=r.qri,r.Vri-d):r.qri-d,d>r.length&&(d=r.length),g=r.window}else g=i,v=o-r.offset,d=r.length;for(u-=d=ut.byteLength-i){console.log("Invalid packet length:",a);var o=new TextDecoder("utf-8").decode(t);console.log(o);break}var s=void 0;try{s=new Uint8Array(t.slice(i,i+a))}catch(c){console.log("Failed to create Uint8Array:",c);break}i+=a;var u=pako.Nni(s),f=decodeTiles(new Uint8Array(u));r?r.tiles&&0"===t&&i&&i.cancel&&i.cancel(),n(t)):r(e)})}),cancel:function(){i&&i.cancel&&i.cancel()}}}function createLineBucket(t,e){var r=t.data,n=new NebulaSegements;if(r.Uc=n,!r.$c){r.$c=new PolylineBucket,r.road=r.road||[];var i=t.Mw.slice(0);if(t.zo.z<=LocalTileZoom&&(i[0]=0,i[1]=0),r.road.push({name:"",rank:1,maxzoom:zoomRange[1],minzoom:zoomRange[0],path:[t.Ro[0]-i[0],t.Ro[1]-i[1],t.Ro[2]-i[0],t.Ro[1]-i[1],t.Ro[2]-i[0],t.Ro[3]-i[1],t.Ro[0]-i[0],t.Ro[3]-i[1],t.Ro[0]-i[0],t.Ro[1]-i[1]],Fp:-2,Ep:-2,shield:"",shieldType:0,du:13,lineCap:"butt",RQ:"butt"}),r.road)for(var a=0,o=r.road;a=o.SN.length?(o.status=exports.b6t.finish,o.dgt({data:t,err:undefined}),Promise.resolve({data:undefined})):(e=o.SN[n],t=0===n?e.data:e.options?exports.Ln(exports.Ln({},e.options),{data:t}):t,e=o.DN.add(e.type,t),i=e.E6t,o._6t=e.cancel,new Promise(function(e,r){o.DN.once("task:"+i,function(t){o._6t=null,t.data.err?(o.status=exports.b6t.fail,o.dgt({data:undefined,err:t.data.err}),e({data:undefined,err:t.data.err})):a(n+1,t.data.data).then(e)["catch"](r)})}))})(0,undefined)},e}(BaseTaskList),RecordTaskList=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.play=function(){var a,o=this;return 0===this.SN.length?Promise.resolve({data:undefined}):(a=function(n,t){var e,i;return n>=o.SN.length?(o.status=exports.b6t.finish,o.dgt({data:t,err:undefined}),Promise.resolve({data:undefined})):(e=o.SN[n],t=0===n?e.data:e.options?exports.Ln(exports.Ln({},e.options),{data:t}):t,e=o.DN.add(e.type,t),i=e.E6t,o._6t=e.cancel,new Promise(function(e,r){o.DN.once("task:"+i,function(t){o._6t=null,t.data.err?(o.status=exports.b6t.fail,o.dgt({data:undefined,err:t.data.err}),e({data:undefined,err:t.data.err})):a(n+1,t.data.data).then(e)["catch"](r)})}))})(0,undefined)},e}(BaseTaskList),TaskManager=(function(t){t[t.stop=0]="stop",t[t.finish=1]="finish",t[t.pause=2]="pause",t[t.fail=3]="fail"}(exports.b6t||(exports.b6t={})),function(e){function t(){var t=e.call(this)||this;return t.id=0,t.LV=[],t._V={},t.CV={},t.register("flydata_auth",function(t){return new FlyDataAuthTask(t)},{kY:Infinity,qti:"now"}),t.register("flydata_request",function(t){return new FlyDataRequestTask(t)},{kY:Infinity,qti:"now"}),t.register("flydata_comborequest",function(t){return new FlyDataComboRequestTask(t)},{kY:10,qti:"now"}),t.register("flydata_decodebuilding",function(t){return new FlyDataDecodeBuildingTask(t)},{kY:10,qti:"now"}),t.register("flydata_decodelabel",function(t){return new FlyDataDecodeLabelTask(t)},{kY:10,qti:"now"}),t}return __extends(t,e),t.prototype.register=function(t,e,r){if(this.CV[t])throw new Error("TaskManager: Exist Task Creator");this.CV[t]={PV:e,OV:r}},t.prototype.add=function(t,e){var r,n,i,a,o=this;if(this.CV[t])return r=this.CV[t],n=this.id++,i=r.PV(e),a=null!=(a=r.OV.qti)?a:"queue",this.emit("addTask",{E6t:n,type:t,data:e}),"now"===a?(Promise.resolve().then(function(){var t=i.play(Infinity);t instanceof Promise?t.then(function(t){o.emit("task:"+n,{data:t})})["catch"](function(t){o.emit("task:"+n,{data:{data:null,err:t}})}):o.emit("task:"+n,{data:{data:t}})}),{E6t:n,cancel:function(){i.cancel?i.cancel():console.info("task.cancel is undefined")}}):(this.LV.push({UQ:i,OV:{id:n,kY:r.OV.kY}}),{E6t:n,cancel:function(){i.cancel&&i.cancel()}});throw new Error("TaskManager: Not Exist Task Type")},t.prototype.XQ=function(t,e,r){void 0===e&&(e={kY:Infinity}),void 0===r&&(r=!1);var n=this.id++,e={UQ:t,OV:{id:n,kY:e.kY}};return r?this.LV.unshift(e):this.LV.push(e),this.emit("addTask",{E6t:n,type:t.type}),{E6t:n,cancel:function(){t.cancel&&t.cancel()}}},t.prototype.exec=function(r){for(var n=this,i=(this.jV(),r),a=Date.now(),t=this;0",id:String(a),key:e.ya}),a&&delete i.pI[a]}}},t.prototype.gI=function(t){var n,e,i=this;Browser.DW&&"destroy"===t.data.type&&self.close();var a=(t=t.data).id;t.yI&&this.dI!==t.yI||(""===t.type?(e=this.pI[t.id],delete this.pI[t.id],e&&e("")):""===t.type?(e=this.pI[t.id],delete this.pI[t.id],e&&t.error?e(deserialize(t.error)):e&&e(null,deserialize(t.data))):"undefined"!=typeof t.id&&this.parent[t.type]&&(n=function(t,e){delete i.pI[a];var r=[],e=serialize(e,r);i.target.postMessage({mI:i.dI,type:"",id:String(a),error:t?serialize(t):null,data:e},r),n=undefined},this.pI[t.id]=null,e=this.parent[t.type](t.mI,deserialize(t.data),n))&&null===this.pI[t.id]&&(this.pI[t.id]=e.cancel))},t.prototype.remove=function(){this.target.removeEventListener("message",this.gI,!1)},t}(),TaskPool=function(){function t(){this.listener={},this.SN={}}return t.prototype.nS=function(r,t){var n=this;return this.SN[r]=!0,this.listener[r]||(this.listener[r]=[]),t(function(t,e){n.$N(r,t,e)})},t.prototype.cancel=function(t){delete this.SN[t]},t.prototype.has=function(t){return Boolean(this.SN[t])},t.prototype.GN=function(t){return this.listener[t]&&0=h[h.length-1][0])return this.HU(i,h[h.length-1][1],e);for(var l=1,n=h.length;lh[l-1][0]&&e<=h[l][0]){var a=this.HU(i,h[l-1][1],e),r=this.HU(i,h[l][1],e);if(a instanceof Array){for(var s=new Array(a.length),x=0;xt){e=i.stops[o][1];break}e=i.stops[h-1][1]}else if("interpolate"===i[0]){for(var l=i.slice(3),n=[],a=0;at){e=n[o][1];break}e=n[h-1][1]}}return e}},Tr:function(i,t){if(i){var e=void 0;if(i.stops)for(var o=0,h=i.stops.length;ot){e=i.stops[o][1];break}e=i.stops[h-1][1]}else e=i;return e}},Ir:function(i,t){var e;if(i===undefined)return 0;if("function"==typeof i)return i(t);if("number"!=typeof i){if(i.stops)e=this.Sr(i.base||1,i.stops,t);else if("interpolate"===i[0]){for(var o=i.slice(3),h=[],l=0;lt||o.maxzoom!==undefined&&o.maxzoom","<",">=","<=","in","!in"],i[0])||"object"==typeof i&&i.stops},KU:function(i,t){if(i&&i.length){if(i.indexOf)return i.indexOf(t);for(var e=0;et||(o=Math.max(o,d.zIndex),s=(r=d.paint)["line-color"],l=this.HU(e,s,t),n=this.HU(e,r["line-width"],t),s=r["line-opacity"]===undefined?1:r["line-opacity"],a=this.HU(e,s,t)):"fill"!==i[h].type||d.minzoom&&d.minzoom>t||(o=Math.max(o,d.zIndex),s=(r=d.paint)["fill-color"],x=this.HU(e,s,t))}return{zIndex:o,fillColor:x,fillOpacity:1,strokeWeight:n,strokeColor:l,strokeOpacity:a}},Xr:function(i,t,e){var o,h,l,n,a,r,s,x,d,f,u,p,y=(i=i[0]).paint,c=i.layout;if("symbol"===i.type)return o=this.HU(e,y["text-color"],t),h=this.HU(e,y["text-halo-color"],t),r=this.HU(e,y["text-halo-width"],t),l=y["icon-opacity"]===undefined?1:y["icon-opacity"],l=this.HU(e,l,t),y=y["text-opacity"]===undefined?1:y["text-opacity"],y=this.HU(e,y,t),n=a=void 0,0===r&&(h=""),c["icon-image"]&&(a=this.HU(e,c["icon-image"],t),r=this.kr[a])&&l&&(r.height,n=[-r.width/2,-r.height/2,r.width,r.height,r.x,r.y,r.width,r.height]),r=this.HU(e,c["icon-rotation-alignment"],t),s=c["text-max-width"],x=this.HU(e,c["text-anchor"]||"center",t),(d=this.HU(e,c["text-font"],t)||"Microsoft YaHei")instanceof Array&&(d=d.join(" ")),f=c["text-offset"]?this.HU(e,c["text-offset"],t):[0,0],u=this.HU(e,c["text-size"],t),p="",y&&c["text-field"]&&(p=this.HU(e,c["text-field"]||"{name}",t)),{zIndex:i.zIndex,Jr:r,Kr:o||"black",Qr:h,th:(i.minzoom||1)+.5,ih:(i.maxzoom||20)+.5,eh:l,nh:a,qU:n,oh:s,textAnchor:x,ah:d,sh:f,rh:u,name:p}},lh:function(i,t,e){var o=[],h=this.Pr(i,t,e);return h&&(h.type="line",o.push(h)),(h=this.uh(i,t,e)).length&&o.push.apply(o,h),o},uh:function(i,t,e){for(var o=[],h=0;h=o[o.length-1][0])return this.HU(i,o[o.length-1][1],e);for(h=1,l=o.length;h"===t[0]?this.HU(i,t[1],e)>this.HU(i,t[2],e):"<"===t[0]?this.HU(i,t[1],e)="===t[0]?this.HU(i,t[1],e)>=this.HU(i,t[2],e):"<="===t[0]?this.HU(i,t[1],e)<=this.HU(i,t[2],e):"in"===t[0]?-1t[1].zIndex?1:-1}),i.polygons=e,i.Dh=o,delete i.layers},Ph:function(i){i.type},jh:function(i,t,e,o){this.mh=3;var h,l=t.vt,n=(l.labels=[],[]);for(h in l.layers)if(l.layers.hasOwnProperty(h)){var a=l.layers[h],r=a.Ah;n.push(h);for(var s=0,x=r.length;sthis.layers.length&&(this.layers=n),o(null,{vt:l})}},MapboxStyle=function(){function i(i){var t=null,e="";i&&((i=i.KG)&&i.styles&&(t=JSON.parse(i.styles).layers),i)&&i.vectorMapForeign&&(e=i.vectorMapForeign),mbStyle.Rr(t,e)}return i.prototype.getMapboxStyle=function(){return mbStyle},i}(),MapboxSourceWorker=function(){function i(i){this.parent=i,this.id="mapbox",this.sQ={},this.yQ={},this.kQ={}}return i.prototype.YE=function(i){var t=polyfill.Util.getOptimalZoom(this.WW);i(this.sQ,{ZL:this.WW,optimalZoom:t,cb:function(){}}),this.sQ={}},i.prototype.bw=function(i,h,l,n,t,e,a){var r=this,s=new XMLHttpRequest;return s.onreadystatechange=function(){var i,t,e,o;4===s.readyState&&200===s.status&&(o=new polyfill.pw(new Uint8Array(s.response)),(o=new polyfill.tW(o)).nG("mapbox"),i=h.z,t=h.x,e=h.y,o.data={},o=r.Ow(o,{x:h.x,y:h.y,z:h.z,projectionId:l,tileSize:n}),r.wQ(o),o.zo=new polyfill.ca(i,t,e),r.FQ(o),delete o.road,a(null,polyfill.Ln({zo:h},o)))},s.open("GET",i,!0),s.responseType="arraybuffer",s.send(),{cancel:function(){s.abort()}}},i.prototype.wQ=function(i){i.stencil={};var t=new polyfill.fQ,i=(i.stencil.Oc=t,i.stencil.Dc=new polyfill.K_,i.stencil.Dc.Nx(i.MQ));t.add({},i)},i.prototype.Ow=function(e,i){var o=i.x,h=i.y,s=i.z,l=i.tileSize,x=i.projectionId;e.z=s,e.x=o,e.y=h;for(var i=polyfill.ProjectionManager.getProjection(x).getResolution(s),i=polyfill.$Q(o,h,s,i,l),n=(e.Ro=i,e.MQ=[i[0],i[1],i[2],i[1],i[2],i[3],i[0],i[3]],e.zS=polyfill.lcs.getLocalByCoord([e.Ro[0],e.Ro[1]]),e.localCoord=e.zS,Object.keys(e.layers)),t=0;tt.style.zIndex?1:-1}),o.sort(function(i,t){return i.style&&t.style&&i.style.zIndex>t.style.zIndex?1:-1}),i.polygons=o,i.Dh=h,i.data.poilabel=((n={})[i.z+","+i.x+","+i.y]=l,n),delete i.layers},i.prototype.startsWith=function(i,t){return i.startsWith?i.startsWith(t):i.substr(0,t.length)===t},i.prototype.argbHex2Rgba=function(i){for(var t=[],e=0,o=i.length;e=this.data.length?polyfill.b6t.finish:polyfill.b6t.pause},eb:!1,nb:!0}),i.prototype.hQ=function(i,t){if(i)for(var e=this.SQ(i)||[],o=0,h=e=new LabelFormatMap[i.type]({vn:this.vn}).DQ(e,{zoom:t});o=this.PS&&(this.FS=0),this.BS=this.FS}},L.TS.prototype.NS=function(){this.flush(),this.ES=null},L.TS.prototype.US=function(i){this.NS(),this.ES=i},L.TS.prototype.init=function(i){i||(this.BS=0,this.FS=0)},L.TS.prototype.WS=function(i,t){var e=this.FS-i-1;for(e<0&&(e+=this.PS);t--;)e>=this.PS&&(e=0),this.OS[this.FS++]=this.OS[e++],this.FS>=this.PS&&this.flush()},L.TS.prototype.GS=function(i){this.OS[this.FS++]=i,this.FS>=this.PS&&this.flush()},L.TS.prototype.HS=function(i){return(i=this.FS-i-1)<0&&(i+=this.PS),this.OS[i]},L.VS=function(){},L.VS.prototype.US=function(i){this.ES=i},L.VS.prototype.NS=function(){this.ES=null},L.VS.prototype.init=function(){var i=5;for(this.ZS=0,this.YS=-1;i--;)this.ZS=this.ZS<<8|this.ES.JS()},L.VS.prototype.XS=function(i){for(var t,e=0,o=i;o--;)this.YS>>>=1,t=this.ZS-this.YS>>>31,this.ZS-=this.YS&t-1,e=e<<1|1-t,0==(4278190080&this.YS)&&(this.ZS=this.ZS<<8|this.ES.JS(),this.YS<<=8);return e},L.VS.prototype.qS=function(i,t){var e=i[t],o=(this.YS>>>11)*e;return(2147483648^this.ZS)<(2147483648^o)?(this.YS=o,i[t]+=2048-e>>>5,0==(4278190080&this.YS)&&(this.ZS=this.ZS<<8|this.ES.JS(),this.YS<<=8),0):(this.YS-=o,this.ZS-=o,i[t]-=e>>>5,0==(4278190080&this.YS)&&(this.ZS=this.ZS<<8|this.ES.JS(),this.YS<<=8),1)},L.QS=function(i,t){for(;t--;)i[t]=1024},L.KS=function(i){this.tR=[],this.iR=i},L.KS.prototype.init=function(){L.QS(this.tR,1<>7&1,t<<=1,h=h<<1|(o=i.qS(this.uR,(1+e<<8)+h)),e!==o){for(;h<256;)h=h<<1|i.qS(this.uR,h);break}}while(h<256);return 255&h},L.pR=function(){},L.pR.prototype.create=function(i,t){var e;if(!this.vR||this.mR!==t||this.yR!==i)for(this.yR=i,this.xR=(1<>>8-this.mR)]},L.gR=function(){this.wR=new L.TS,this._R=new L.VS,this.kR=[],this.MR=[],this.SR=[],this.RR=[],this.zR=[],this.CR=[],this.AR=[],this.IR=[],this.$R=new L.KS(4),this.LR=new L.oR,this.DR=new L.oR,this.TR=new L.pR,this.PR=-1,this.OR=-1,this.AR[0]=new L.KS(6),this.AR[1]=new L.KS(6),this.AR[2]=new L.KS(6),this.AR[3]=new L.KS(6)},L.gR.prototype.FR=function(i){return!(i<0||(this.PR!==i&&(this.PR=i,this.OR=Math.max(this.PR,1),this.wR.create(Math.max(this.OR,4096))),0))},L.gR.prototype.BR=function(i,t,e){var o=1<>1)-1),l<14)r+=L.nR(this.IR,r-l-1,this._R,n);else if((r=(r+=this._R.XS(n-4)<<4)+this.$R.eR(this._R))<0){if(-1===r)break;return!1}}else r=l;if(f<=r||r>=this.OR)return!1;this.wR.WS(r,o),f+=o,u=this.wR.HS(0)}return this.wR.flush(),this.wR.NS(),this._R.NS(),!0},L.gR.prototype.ER=function(i){var t;return!(i.size<5||(t=i.JS(),!this.BR(t%9,(t=~~(t/9))%5,~~(t/5))))&&(t=i.JS(),t=(t=(t|=i.JS()<<8)|i.JS()<<16)+16777216*i.JS(),this.FR(t))},L.NR=function(i,t){var e,o=new L.gR;if(!o.ER(i))throw new Error("Incorrect stream properties");if(e=i.JS(),e=((e|=i.JS()<<8)|i.JS()<<16)+16777216*i.JS(),i.JS(),i.JS(),i.JS(),i.JS(),o.decode(i,t,e))return!0;throw new Error("Error in data stream")},1e-9);function Vi(i,t,e){for(var o,r,h=i.subarray(t,e),l=0,n="",a=0,l=0;l>>7==0?("0"!==(o=String.fromCharCode(h[l])).charCodeAt(0).toString(16)&&(n+=o),l+=1):252==(252&r)?(a=(a=(a=(a=(3&h[l])<<30)|(63&h[l+1])<<24|(63&h[l+2])<<18)|(63&h[l+3])<<12)|(63&h[l+4])<<6|63&h[l+5],n+=String.fromCharCode(a),l+=6):248==(248&r)?(a=(7&h[l])<<24,a=(a=(a|=(63&h[l+1])<<18)|(63&h[l+2])<<12)|(63&h[l+3])<<6|63&h[l+4],n+=String.fromCharCode(a),l+=5):240==(240&r)?(a=(15&h[l])<<18,a=(a|=(63&h[l+1])<<12)|(63&h[l+2])<<6|63&h[l+3],n+=String.fromCharCode(a),l+=4):224==(224&r)?(a=(a=(31&h[l])<<12)|(63&h[l+1])<<6|63&h[l+2],n+=String.fromCharCode(a),l+=3):192==(192&r)?(a=(63&h[l])<<6,a|=63&h[l+1],n+=String.fromCharCode(a),l+=2):("0"!==(o=String.fromCharCode(h[l])).charCodeAt(0).toString(16)&&(n+=o),l+=1);return n.trim()}var o=new RegExp("^[+\\-]?[0-1]*[.]?[0-1]*$","gi");function Ji(i,t){i=i.toString(),t=t.toString(),i=new Array(32-i.length+1).join("0")+i,t=new Array(32-t.length+1).join("0")+t;var e=o;return e.lastIndex=0,(t=(t+i).toString().match(e))?(i=-1===t[i=0].indexOf(".")?parseInt(t,2):i).toString(36).toUpperCase():"error"}i.getUnifyJson=function(i){var t=[];if(i instanceof ArrayBuffer){var e=new DataView(i),o=0,h=e.getInt16(o+=4,!1);o+=2;try{for(;0e[2]||t[3]>e[3])&&(i[0]=t[0]-e[0],i[1]=t[1]-e[1],i[2]=t[2]-e[2],i[3]=t[3]-e[3],i[0]<0&&0=this.xt[1]||(s=0,n=function(){o+=16;var t=h+a.h(o/r);t>=e.xt[1]||(e.bt(i,t),h+1<=t&&(U.Util.cancelAnimFrame(s),e.lt=!1,e.R="enabled",e.tt(),e.N()),(e.lt||o<400)&&(s=U.Util.requestAnimFrame(n)))},s=U.Util.requestAnimFrame(n))},tt.prototype.gt=function(t){var i,n,s=w.mousePos(this.j,t,this._map);s[0]-this.$[0]==0&&s[1]-this.$[1]==0||(this.yt=-1,this.ct<2?this.ct=0:this.rt&&(this.lt=!0,this.wt=!0,this.ft.disable(),s=t.changedTouches.length,i=this._map.getView(),n=this._map.getView().getStatus().zoom-(t.changedTouches[s-1].clientY-this.pt[1])/100,i.setOptions({zoom:n}),this.pt=[t.changedTouches[s-1].clientX,t.changedTouches[s-1].clientY]))},tt.prototype.N=function(){this.wt&&2<=this.ct&&(this.ft.enable(),this.tt(),this.lt=!1,this.wt=!1)},tt.prototype.bt=function(t,i){var n,s,e,r=this._map.getView(),h=(o=r.getStatus()).center,a=o.zoom,u=o.rotation,o=o.projectionId;this._map.getStatus().zoomEnable&&(t=w.mousePos(this.j,t,this._map),e=[this.j.clientWidth/2,this.j.clientHeight/2],s=this._t(e,t),n=Math.atan((t[1]-e[1])/(t[0]-e[0])),u=-u/180*Math.PI+n,n=[-Math.cos(u)*s,Math.sin(u)*s],t[0]-e[0]<0&&(n[0]=-n[0],n[1]=-n[1]),u=U.V[o].nt(n[0],n[1],a),s=U.V[o].nt(n[0],n[1],i),e=Math.pow(2,i-a),r.setOptions({kt:{pos:t,Mt:i,Rt:s,zt:u,scale:e,center:U.set(U.create(),h[0],h[1])}}),this.G("zooming"))},tt.prototype.tt=function(t){t&&0!==t.button||(this.S(),this.C(),this.G("zoomend"))},tt.prototype.S=function(){this.j.removeEventListener("dblclick",this.St),this.j.removeEventListener("touchmove",this.dt)},tt.prototype.C=function(){delete this.$,delete this.U,delete this.U},tt.prototype._t=function(t,i){var n=i[0]-t[0],i=i[1]-t[1];return Math.sqrt(n*n+i*i)},tt.prototype.G=function(t,i){this._map.getBindHandler().fireEvent(t,i)};var $=tt;function tt(t,i){this.lt=!1,this.wt=!1,this.rt=!0,this.xt=U.zoomRange,this.yt=0,this.ct=0,this.pt=[0,0],this._map=i,this.j=t,this.R="disabled",this.St=this.ut.bind(this),this.dt=this.gt.bind(this)}nt.prototype.isEnabled=function(){return"disabled"!==this.R},nt.prototype.isActive=function(){return"active"===this.R},nt.prototype.enable=function(){this.isEnabled()||(this.R="enabled")},nt.prototype.disable=function(){if(this.isEnabled())switch(w.removeClass(this.j,"mapboxgl-touch-drag-pan"),this.R){case"active":this.R="disabled",this.S(),this.G("zoomstart");break;case"pending":this.R="disabled",this.S();break;default:this.R="disabled"}},nt.prototype.ht=function(){return!!this.lt},nt.prototype.P=function(t){2===t.touches.length&&(t.stopPropagation(),this.G("zoomstart"),this.$=[{clientX:t.touches[0].clientX,clientY:t.touches[0].clientY,pageX:t.touches[0].pageX,pageY:t.touches[0].pageY},{clientX:t.touches[1].clientX,clientY:t.touches[1].clientY,pageX:t.touches[1].pageX,pageY:t.touches[1].pageY}],this.B=this.$,t=this._map.getView(),this.zY=t.getStatus(),this.j.addEventListener("touchmove",this.T),this.j.addEventListener("touchend",this.At))},nt.prototype.Z=function(t){var i,n,s,e,r,o,h,a,u,f,c,l,d,p,v,m,y,b,g,M,k;t.touches.length<2||(this.G("touchmove"),this._map.getStatus().touchZoom&&this.isEnabled()&&(this.lt=!0,i=-this.CF(t),s=(o=(n=this._map.getView()).getStatus()).rotation,e=o.center,r=o.zoom,g=void 0===(g=o.Tt)?o.projectionId:g,o=o.pitch,h=(f=this._map.getStatus()).rotateEnable,a=f.zoomEnable,u=f.pitchEnable,f=f.touchZoomCenter,c=this.MW.CY,d=l=!1,y=this.It(this.B[0],this.B[1]),v=this.It(t.touches[0],t.touches[1]),p=this.Dt(this.$[0],this.$[1]),k=this.Dt(t.touches[0],t.touches[1]),v=r+(v-y)/180,y=[((y=U.Pt(w.mousePos(this.j,this.$[0],this._map),w.mousePos(this.j,this.$[1],this._map)))[0]+y[2])/2,(y[1]+y[3])/2],b=[this.j.clientWidth/2,this.j.clientHeight/2],m=this.jt(b,y),M=Math.atan((y[1]-b[1])/(y[0]-b[0])),M=s*Math.PI/180+M,M=[-Math.cos(M)*m,Math.sin(M)*m],y[0]-b[0]<0&&(M[0]=-M[0],M[1]=-M[1]),m=U.V[g].nt(M[0],M[1],r),y=U.V[g].nt(M[0],M[1],v),b=Math.pow(2,v-r),g=this.zY.rotation+(k-p),10st?1/450:.01,o=2/(1+Math.exp(-Math.abs(this.$t*o))),this.$t<0&&0!==o&&(o=1/o),r=this.Yt(n),r=Math.min(this._map.getZooms()[1],Math.max(2,this.Vt(r*o))),o=w.mousePos(this.j,t,this._map),t=[this.j.clientWidth/2,this.j.clientHeight/2],u=this._t(t,o),h=Math.atan((o[1]-t[1])/(o[0]-t[0])),a=-a/180*Math.PI+h,h=[-Math.cos(a)*u,Math.sin(a)*u],o[0]-t[0]<0&&(h[0]=-h[0],h[1]=-h[1]),a=U.V[e].nt(h[0],h[1],n),u=U.V[e].nt(h[0],h[1],r),t=Math.pow(2,r-n),this._map.XT(h),i.setOptions({kt:{pos:o,Mt:r,Rt:u,zt:a,scale:t,center:U.set(U.create(),s[0],s[1])}}),this.$t=0)},rt.prototype.Yt=function(t){return Math.pow(2,t)},rt.prototype.Vt=function(t){return Math.log(t)/Math.LN2},rt.prototype._t=function(t,i){var n=i[0]-t[0],i=i[1]-t[1];return Math.sqrt(n*n+i*i)},rt.prototype.C=function(){delete this.q,delete this.$,delete this.U,delete this.B},rt.prototype.G=function(t,i){this._map.getBindHandler().fireEvent(t,i)},rt);function rt(t,i){this._map=i,this.j=t,this.R="disabled",this.Wt="wheel",this.$t=0}ht.prototype.isEnabled=function(){return"disabled"!==this.R},ht.prototype.isActive=function(){return"active"===this.R},ht.prototype.enable=function(){this.isEnabled()||(this.R="enabled")},ht.prototype.disable=function(){if(this.isEnabled()){switch(this.R){case"active":this.S(),this.C();break;case"pending":this.S()}this.R="disabled"}},ht.prototype.L=function(t){this.A&&clearInterval(this.A),(2===t.button||t.ctrlKey&&0===t.button)&&(this.j.addEventListener("mousemove",this.T,{passive:!0}),this.j.addEventListener("mouseup",this.I),this.j.addEventListener("mouseleave",this.I),this.D(t))},ht.prototype.D=function(t){this.$=this.U=this.B=w.mousePos(this.j,t,this._map),this.W=[[Date.now(),this.$]],this.R="active"},ht.prototype.Z=function(t){var i,n,s;this.W.length<2&&"active"===this.R&&this.G("dragstart",t),this.G("dragging",t),this.isEnabled()&&(n=w.mousePos(this.j,t,this._map),this.q=t,this.B=U.set(U.create(),n[0],n[1]),this.Y(),this.W.push([Date.now(),this.B]),this.W.length<2||("active"===this.R&&(this.R="pending"),"disabled"!==this.R&&(i=(n=(t=this._map.getView()).getStatus()).rotation,n=n.pitch,s=[this.B[0]-this.W[this.W.length-2][1][0],this.B[1]-this.W[this.W.length-2][1][1]],(!this._map.getStatus().pitchEnable||Math.abs(s[0])>Math.abs(s[1]))&&(s[1]=0),(!this._map.getStatus().rotateEnable||Math.abs(s[0])this.j.clientHeight/2?i-=s[0]/10:i+=s[0]/10),n-=s[1]/this._map.getZooms()[1]*2,t.setOptions({rotation:i,pitch:n}))))},ht.prototype.tt=function(t){switch(this.R){case"active":this.R="enabled",this.C();break;case"pending":this.R="enabled",this.G("dragend",t);break;default:this.G("dragend",t)}this.S()},ht.prototype.S=function(){this.j.removeEventListener("mousemove",this.T),this.j.removeEventListener("mouseup",this.I),this.j.removeEventListener("mouseleave",this.I)},ht.prototype.C=function(){delete this.q,delete this.$,delete this.U,delete this.B},ht.prototype.Y=function(){for(var t=this.W,i=Date.now();0this.Bo&&this.MN()),this},s.prototype.shift=function(){var t=this.Wo;if(t)return this.Wo[o]?(this.Wo=this.Wo[o],this.Wo[h]=undefined):(this.Wo=undefined,this.Zo=undefined),t[o]=t[h]=undefined,t.value.destroy(),this.qo["delete"](t.key),--this.size,[t.key,t.value]},s.prototype.find=function(t){return(t=this.qo.get(t))?t.value:undefined},s.prototype.has=function(t){return this.qo.has(t)},s.prototype["delete"]=function(t){if(t=this.qo.get(t))return this.qo["delete"](t.key),t[o]&&t[h]?(t[h][o]=t[o],t[o][h]=t[h]):t[o]?(t[o][h]=undefined,this.Wo=t[o]):t[h]?(t[h][o]=undefined,this.Zo=t[h]):this.Wo=this.Zo=undefined,this.size--,t.value},s.prototype.clear=function(){this.Wo=this.Zo=undefined,this.size=0,this.qo.clear()},s.prototype.AN=function(t){return"loaded"!==t.value.status||(t=t.value.stamp)&&this.wN&&t===this.wN},s.prototype.QF=function(t){this.wN=t},s.prototype.MN=function(){if(this.Wo&&this.Zo)for(var t=this.Wo,i=this.Zo.key;t&&i&&t.key!==i;){if(this.AN(t))this.Go(t);else if(this.shift(),this.size<=this.Bo)return;t=this.Wo}},s);function s(t,i){this.entries=i,"number"!=typeof(this.Bo=t)&&(i=t,t=0),this.size=0,this.Bo=t,this.Wo=this.Zo=undefined,this.qo=new("undefined"!=typeof Map?Map:lt),i&&(this.assign(i),t<1)&&(this.Bo=this.size)}var pt=function(t,i){this.key=t,this.value=i,this[o]=undefined,this[h]=undefined},vt=(mt.prototype.next=function(){var t=this.Yo;return t?(this.Yo=t[o],{done:!1,value:t.key}):{done:!0,value:undefined}},mt);function mt(t){this.Vo=t}bt.prototype.next=function(){var t=this.Yo;return t?(this.Yo=t[o],{done:!1,value:t.value}):{done:!0,value:undefined}};var yt=bt;function bt(t){this.Vo=t}gt=n,U.Ei(kt,gt),kt.prototype.shift=function(){var t=this.Wo;if(t)return this.Wo[o]?(this.Wo=this.Wo[o],this.Wo[h]=undefined):(this.Wo=undefined,this.Zo=undefined),t[o]=t[h]=undefined,this.qo["delete"](t.key),this.emit("delete",{key:t.key}),--this.size,[t.key,t.value]},kt.prototype.on=function(t,i,n,s){void 0===n&&(n=this),void 0===s&&(s=!1);for(var e=0,r=Array.isArray(t)?t:[t];e=U.Ra?(u=U.lcs.getSize(),l=c.localCoord.x-v.x,d=c.localCoord.y-v.y,0!=l&&(l*=u[0],p[0]=l),0!=d&&(d*=u[1],p[1]=d),i.optimalZoom>=U.Ra&&U.za>=c.zo.z&&(p[0]=-v.center[0],p[1]=-v.center[1])):i.optimalZoom=u)&&(v=Math.floor(f.x/u),p[0]+=20037508.342789244*v*2),l=d.tag,c.Ro=d.Ro,c.ID(d),c.Sa=p,c.status=d.status,c.tag=l)),c&&(c.stamp=h,c.Sa=p,r.push(c))}var m=i.optimalZoom,t=U.every(e,function(s){return U.some(r,function(t){var i=t.zo.key,n=t.zo.z,n=U.Util.VF(n,m),t=t.tag,t=U.Util.LD(t,n);return i===s.key&&t})}),e=this.jE(r),e=(t&&(this.a_=!0,this.map.bZ.dynamic.set("firstAllLoaded",!0)),e&&this.map.bZ.dynamic.set("firstLabelDataAllLoaded",!0),{s_:this.a_,fo:!!t&&e,yZ:e,tiles:r,Ca:o,outseaData:undefined});return 0!==r.length&&!t||this.Fo(!0),e.tiles=this.UE(r,s),e},r.prototype.pe=function(t){return t=new U.ca(t[0],t[1],t[2]),this.ua.getTile(t)},r.prototype.ra=function(t){return("fast"!==this.map.bZ.MZ.drawMode||this.map.bZ.dynamic.get("firstPaint")?{2:3,3:3,4:3,5:3,6:6,7:6,8:8,9:8,10:10,11:10,12:10,13:12,14:12,15:14,16:14,17:14,18:14,19:14,20:14,21:14,22:14,23:14,24:14,25:14,26:14,27:14,28:14,29:14,30:14}:{2:3,3:3,4:3,5:3,6:6,7:6,8:8,9:8,10:8,11:8,12:8,13:12,14:12,15:14,16:14,17:14,18:14,19:14,20:14,21:14,22:14,23:14,24:14,25:14,26:14,27:14,28:14,29:14,30:14})[t]},r.prototype.Ept=function(t){return{10:10,11:10,12:10,13:12,14:12,15:14,16:14,17:14,18:14,19:14,20:14,21:14,22:14}[t]},r.prototype.YE=function(t){var i=this;return t(null,{GW:"worker",cb:function(t){i.dynamicTextVerticeLoadedByTile(t)}}),!0},r.prototype.destroy=function(){this.ua.forEach(function(t){t.status!==U.TileState.LOADED&&t.request&&(t.request.cancel(),delete t.request),t.destroy()}),this.ua.destroy(),this.sa=[],this.la=[],this.mapStyle&&this.mapStyle.destroy&&(this.mapStyle.destroy(),delete this.mapStyle),this.R_&&this.R_.destroy&&(this.R_.destroy(),delete this.R_)},r.prototype.reload=function(){this.ua.forEach(function(t){t.status!==U.TileState.LOADED&&t.request&&(t.request.cancel(),delete t.request),t.reload()}),this.sa=[],this.la=[]},r.prototype.Aa=function(t){var i;t.zo&&(i=this.ua.getTile(t.zo))&&(i.rO({Ta:!0},t.tag),i.xa({Ta:!0},t.tag),i.JE({Ta:!0},t.tag))},r.prototype.setTileCacheSize=function(t){t=t||(U.Support.$e?50:200),this.ua.Xo(t)},r.prototype.UH=function(t){this.Dbt.UH(t)},r.prototype.dynamicTextVerticeLoaded=function(t){console.log("errorr")},r.prototype.dynamicTextVerticeLoadedByTile=function(t){for(var i=0,n=t.data;i>w,v=k.y>>w;g[k=(m=new U.ca(a,p,v)).key]||(w=new U.ca(a,this.fa(p,a),v),y=new U.ca(a,p,v),M=this.ua.getTile(w,!0),g[k]=!0,(M&&M.status===U.TileState.LOADED?f:u).push(y))}f.length&&i.push.apply(i,f),n=u}return i},r.prototype.Da=function(t){var e,r,o;t.length&&(e=this.Pa.z,r=(this.Pa.ja+this.Pa.Oa)/2,o=(this.Pa.Fa+this.Pa.Ea)/2,t.sort(function(t,i){var n=(t.x<=i[0]&&t[1]<=i[3]&&t[3]>=i[1]},a.prototype.isEmpty=function(t){return t[2]=i)&&t.kT>=s.kT&&t.KL<=n&&t.kT<=e.kT},u.prototype.intersects=function(t){var i=this.southWest,n=this.northEast,s=t.southWest,e=(t=t.northEast).kT>=i.kT&&s.kT<=n.kT,i=i.KL<=t.KL&&s.KL<=n.KL;return e&&i},u.prototype.getCenter=function(){var t=this.southWest.KL>this.northEast.KL?(this.southWest.KL+this.northEast.KL+360)/2%360:(this.southWest.KL+this.northEast.KL)/2,i=(this.southWest.kT+this.northEast.kT)/2;return new U.LngLat(t,i)},u.prototype.extend=function(t){return this.southWest.setLng(Math.min(this.southWest.KL,t.KL)),this.southWest.setLat(Math.min(this.southWest.kT,t.kT)),this.northEast.setLng(Math.max(this.northEast.KL,t.KL)),this.northEast.setLat(Math.max(this.northEast.kT,t.kT)),this},u.prototype.union=function(t){return this.extend(t.southWest).extend(t.northEast)},u.prototype.toString=function(){return this.southWest.toString()+";"+this.northEast.toString()},u.prototype.toJSON=function(){return[this.southWest.lng,this.southWest.lat,this.northEast.lng,this.northEast.lat]},u.prototype.getWidth=function(){return Math.abs(this.northEast.lng-this.southWest.lng)},u.prototype.getHeight=function(){return Math.abs(this.southWest.lat-this.northEast.lat)},u.prototype.clone=function(){return u.from([this])},u.prototype.check=function(){return!!(this.northEast&&this.southWest&&this.northEast.lat&&this.southWest.lat)},u);function u(){this.className="AMap.Bounds";var i,n,s,e,r,o="undefined"!=typeof Float64Array;if(1===arguments.length&&(arguments[0]instanceof Array||o&&arguments[0]instanceof Float64Array))e=new U.LngLat(arguments[0][0],arguments[0][1],!0),r=new U.LngLat(arguments[0][2],arguments[0][3],!0);else if(2===arguments.length)e=U.parseLngLatData(arguments[0]),r=U.parseLngLatData(arguments[1]);else if(4===arguments.length)e=new U.LngLat(arguments[0],arguments[1]),r=new U.LngLat(arguments[2],arguments[3]);else{if(0!==arguments.length)throw Error("Invalid Object: Bounds("+arguments+")");e=new U.LngLat(-180,-90),r=new U.LngLat(180,90)}(e.KL>r.KL||e.kT>r.kT)&&(o=Math.max(e.KL,r.KL),i=Math.min(e.KL,r.KL),n=Math.max(e.kT,r.kT),s=Math.min(e.kT,r.kT),e=new U.LngLat(i,s),r=new U.LngLat(o,n)),this.southWest=e,this.northEast=r}Bt=ft,U.Ei(Wt,Bt),Wt.prototype.loadData=function(t,i,n){return this.ze=i,!(this.Oo&&!this.io||!this.map.isDOMMode()&&!i||(t=this.c0(t,i,n),this.io?t(this.io,"canvas"):((i=new Image).crossOrigin="",i.onload=t,i.src=this.gs.getImageUrl(),this.Rs=i),0))},Wt.prototype.reLoadImgage=function(t){var s=this;t&&this.Rs&&((t=new Image).crossOrigin="",t.onload=function(t,i){var n;"image"===(i=void 0===i?"image":i)?n=t.target:"canvas"===i&&(n=t),s._s&&s._s.update(n),s.Fo(!0)},t.src=this.gs.getImageUrl(),this.Rs=t)},Wt.prototype.c0=function(t,e,r){var o=this;return function(t,i){var n,s;void 0===i&&(i="image"),e&&(n=void 0,"image"===i?(n=t.target,s=n,o._s?o._s.update(s):(o._s=e.createTexture(s,{Zi:!0}),o._s.bind(e.gl.CLAMP_TO_EDGE,e.gl.LINEAR,e.gl.LINEAR)),o.Fo(!0)):"canvas"===i&&(s=o.mmt(n=t,function(){o._s?o._s.update(s):(o._s=e.createTexture(s,{Zi:!0}),o._s.bind(e.gl.CLAMP_TO_EDGE,e.gl.LINEAR,e.gl.LINEAR)),o.Fo(!0)}))),r()}},Wt.prototype.getData=function(t){if(this.Oo&&this._s){(i=this.gs.getBounds())instanceof l&&(i=i.toJSON());var n=U.lcs.getLocalByCoord([t.centerCoord[0],t.centerCoord[1]]),e=(s=U.ProjectionManager.getProjection(t.projectionId)).project(i[0],i[1]),i=s.project(i[2],i[3]),r=[0,0,0,0];if(t.optimalZoom>=U.Ra){for(var s=U.lcs.getLocalByCoord([e[0],e[1]]),t=U.lcs.getLocalByCoord([i[0],i[1]]),o=U.lcs.getSize(),r=[s.x-n.x,s.y-n.y,t.x-n.x,t.y-n.y],h=0;h>>25)+s|0)&s|~n&e)+i[1]-389564586|0)<<12|r>>>20)+n|0)&n|~r&s)+i[2]+606105819|0)<<17|e>>>15)+r|0)&r|~e&n)+i[3]-1044525330|0)<<22|s>>>10)+e|0;s=((s+=((e=((e+=((r=((r+=((n=((n+=(s&e|~s&r)+i[4]-176418897|0)<<7|n>>>25)+s|0)&s|~n&e)+i[5]+1200080426|0)<<12|r>>>20)+n|0)&n|~r&s)+i[6]-1473231341|0)<<17|e>>>15)+r|0)&r|~e&n)+i[7]-45705983|0)<<22|s>>>10)+e|0,s=((s+=((e=((e+=((r=((r+=((n=((n+=(s&e|~s&r)+i[8]+1770035416|0)<<7|n>>>25)+s|0)&s|~n&e)+i[9]-1958414417|0)<<12|r>>>20)+n|0)&n|~r&s)+i[10]-42063|0)<<17|e>>>15)+r|0)&r|~e&n)+i[11]-1990404162|0)<<22|s>>>10)+e|0,s=((s+=((e=((e+=((r=((r+=((n=((n+=(s&e|~s&r)+i[12]+1804603682|0)<<7|n>>>25)+s|0)&s|~n&e)+i[13]-40341101|0)<<12|r>>>20)+n|0)&n|~r&s)+i[14]-1502002290|0)<<17|e>>>15)+r|0)&r|~e&n)+i[15]+1236535329|0)<<22|s>>>10)+e|0,s=((s+=((e=((e+=((r=((r+=((n=((n+=(s&r|e&~r)+i[1]-165796510|0)<<5|n>>>27)+s|0)&e|s&~e)+i[6]-1069501632|0)<<9|r>>>23)+n|0)&s|n&~s)+i[11]+643717713|0)<<14|e>>>18)+r|0)&n|r&~n)+i[0]-373897302|0)<<20|s>>>12)+e|0,s=((s+=((e=((e+=((r=((r+=((n=((n+=(s&r|e&~r)+i[5]-701558691|0)<<5|n>>>27)+s|0)&e|s&~e)+i[10]+38016083|0)<<9|r>>>23)+n|0)&s|n&~s)+i[15]-660478335|0)<<14|e>>>18)+r|0)&n|r&~n)+i[4]-405537848|0)<<20|s>>>12)+e|0,s=((s+=((e=((e+=((r=((r+=((n=((n+=(s&r|e&~r)+i[9]+568446438|0)<<5|n>>>27)+s|0)&e|s&~e)+i[14]-1019803690|0)<<9|r>>>23)+n|0)&s|n&~s)+i[3]-187363961|0)<<14|e>>>18)+r|0)&n|r&~n)+i[8]+1163531501|0)<<20|s>>>12)+e|0,s=((s+=((e=((e+=((r=((r+=((n=((n+=(s&r|e&~r)+i[13]-1444681467|0)<<5|n>>>27)+s|0)&e|s&~e)+i[2]-51403784|0)<<9|r>>>23)+n|0)&s|n&~s)+i[7]+1735328473|0)<<14|e>>>18)+r|0)&n|r&~n)+i[12]-1926607734|0)<<20|s>>>12)+e|0,s=((s+=((e=((e+=((r=((r+=((n=((n+=(s^e^r)+i[5]-378558|0)<<4|n>>>28)+s|0)^s^e)+i[8]-2022574463|0)<<11|r>>>21)+n|0)^n^s)+i[11]+1839030562|0)<<16|e>>>16)+r|0)^r^n)+i[14]-35309556|0)<<23|s>>>9)+e|0,s=((s+=((e=((e+=((r=((r+=((n=((n+=(s^e^r)+i[1]-1530992060|0)<<4|n>>>28)+s|0)^s^e)+i[4]+1272893353|0)<<11|r>>>21)+n|0)^n^s)+i[7]-155497632|0)<<16|e>>>16)+r|0)^r^n)+i[10]-1094730640|0)<<23|s>>>9)+e|0,s=((s+=((e=((e+=((r=((r+=((n=((n+=(s^e^r)+i[13]+681279174|0)<<4|n>>>28)+s|0)^s^e)+i[0]-358537222|0)<<11|r>>>21)+n|0)^n^s)+i[3]-722521979|0)<<16|e>>>16)+r|0)^r^n)+i[6]+76029189|0)<<23|s>>>9)+e|0,s=((s+=((e=((e+=((r=((r+=((n=((n+=(s^e^r)+i[9]-640364487|0)<<4|n>>>28)+s|0)^s^e)+i[12]-421815835|0)<<11|r>>>21)+n|0)^n^s)+i[15]+530742520|0)<<16|e>>>16)+r|0)^r^n)+i[2]-995338651|0)<<23|s>>>9)+e|0,s=((s+=((r=((r+=(s^((n=((n+=(e^(s|~r))+i[0]-198630844|0)<<6|n>>>26)+s|0)|~e))+i[7]+1126891415|0)<<10|r>>>22)+n|0)^((e=((e+=(n^(r|~s))+i[14]-1416354905|0)<<15|e>>>17)+r|0)|~n))+i[5]-57434055|0)<<21|s>>>11)+e|0,s=((s+=((r=((r+=(s^((n=((n+=(e^(s|~r))+i[12]+1700485571|0)<<6|n>>>26)+s|0)|~e))+i[3]-1894986606|0)<<10|r>>>22)+n|0)^((e=((e+=(n^(r|~s))+i[10]-1051523|0)<<15|e>>>17)+r|0)|~n))+i[1]-2054922799|0)<<21|s>>>11)+e|0,s=((s+=((r=((r+=(s^((n=((n+=(e^(s|~r))+i[8]+1873313359|0)<<6|n>>>26)+s|0)|~e))+i[15]-30611744|0)<<10|r>>>22)+n|0)^((e=((e+=(n^(r|~s))+i[6]-1560198380|0)<<15|e>>>17)+r|0)|~n))+i[13]+1309151649|0)<<21|s>>>11)+e|0,s=((s+=((r=((r+=(s^((n=((n+=(e^(s|~r))+i[4]-145523070|0)<<6|n>>>26)+s|0)|~e))+i[11]-1120210379|0)<<10|r>>>22)+n|0)^((e=((e+=(n^(r|~s))+i[2]+718787259|0)<<15|e>>>17)+r|0)|~n))+i[9]-343485551|0)<<21|s>>>11)+e|0,t[0]=n+t[0]|0,t[1]=s+t[1]|0,t[2]=e+t[2]|0,t[3]=r+t[3]|0}function c(t){for(var i=[],n=0;n<64;n+=4)i[n>>2]=t.charCodeAt(n)+(t.charCodeAt(n+1)<<8)+(t.charCodeAt(n+2)<<16)+(t.charCodeAt(n+3)<<24);return i}function l(t){for(var i=[],n=0;n<64;n+=4)i[n>>2]=t[n]+(t[n+1]<<8)+(t[n+2]<<16)+(t[n+3]<<24);return i}function e(t){for(var e,r,h,o,i=t.length,n=[1732584193,-271733879,-1732584194,271733878],s=64;s<=i;s+=64)u(n,c(t.substring(s-64,s)));for(e=(t=t.substring(s-64)).length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],s=0;s>2]|=t.charCodeAt(s)<<(s%4<<3);if(r[s>>2]|=128<<(s%4<<3),55>8*n+4&15]+s[t>>8*n&15];return i}(t[i]);return t.join("")}function h(t){return t=/[\u0080-\uFFFF]/.test(t)?unescape(encodeURIComponent(t)):t}function p(t){for(var i=[],n=t.length,s=0;s>2]|=i.charCodeAt(s)<<(s%4<<3);return this.$N(e,n),r=o(this.Jpt),t&&(r=p(r)),this.reset(),r},v.prototype.reset=function(){return this.Zpt="",this.Xpt=0,this.Jpt=[1732584193,-271733879,-1732584194,271733878],this},v.prototype.getState=function(){return{Hpt:this.Zpt,length:this.Xpt,hash:this.Jpt.slice()}},v.prototype.Mz=function(t){return this.Zpt=t.Hpt,this.Xpt=t.length,this.Jpt=t.hash,this},v.prototype.destroy=function(){delete this.Jpt,delete this.Zpt,delete this.Xpt},v.prototype.$N=function(t,i){var e,n=i;if(t[n>>2]|=128<<(n%4<<3),55>2]|=i[e]<<(e%4<<3);return this.$N(s,n),r=o(this.Jpt),t&&(r=p(r)),this.reset(),r},v.ArrayBuffer.prototype.reset=function(){return this.Zpt=new Uint8Array(0),this.Xpt=0,this.Jpt=[1732584193,-271733879,-1732584194,271733878],this},v.ArrayBuffer.prototype.getState=function(){var t=v.prototype.getState.call(this);return t.Hpt=function(t){return String.fromCharCode.apply(null,new Uint8Array(t))}(t.Hpt),t},v.ArrayBuffer.prototype.Mz=function(t){return t.Hpt=function(t,i){for(var n=t.length,s=new ArrayBuffer(n),e=new Uint8Array(s),r=0;r>2]|=t[s]<<(s%4<<3);if(r[s>>2]|=128<<(s%4<<3),55'+t+"",s.scrollWidth),r=Math.log2?1<'+(new XMLSerializer).serializeToString(c)+document.querySelector("style").outerHTML+"").replace(/\n/g,"").replace(/\t/g,"").replace(/#/g,"%23"))&&((i=new Image).onload=function(t){a(i,n,s)},i.src=t)},o.src=r.attributes.src.nodeValue}(i)}else{var n,t=(t='data:image/svg+xml;charset=utf-8,'+(new XMLSerializer).serializeToString(c)+document.querySelector("style").outerHTML+"").replace(/\n/g,"").replace(/\t/g,"").replace(/#/g,"%23"),s=h.offsetWidth,e=h.offsetHeight;t&&((n=new Image).onload=function(t){a(n,s,e)},n.src=t)}}else console.log("未获取都转换dom节点")},f.prototype.Spt=function(t,i,n,s){var e=new Image;DomToImage.dpt(t,{width:i,height:n,ppt:1}).then(function(t){e.src=t,s(e,i,n)})["catch"](function(t){console.error(t)})},f.prototype.Wpt=function(t,s){var e=this,r=t.querySelectorAll("img"),o=r.length,h=new Map;if(0===o)s(h);else for(var i=0;i\n '+n+"\n ","data:image/svg+xml;charset=utf-8,"+encodeURIComponent(t)},f.prototype.Npt=function(t,i){var n=new Image;n.onload=function(){i(n)},n.onerror=function(){console.error("无法从SVG数据创建图像")},n.src=t},f.prototype.imt=function(s){return new Promise(function(t,i){var n=new Image;n.onload=function(){return t(n)},n.onerror=i,n.src=s})},f.prototype.qL=function(t,i){void 0===t&&(t={});var n=this.R_,s=this.z_,n=(this.CL=new U.eG({R_:n,z_:s}),this.CL.setRichtoImage(this.Qpt),this.Us),s={from:"labelsLayer",zoom:this._map.getView().getOptions().zoom,center:n.center},t=(U.assign(s,t),this.CL.Ns(this.Ts,s));this._map&&this._map.isDOMMode()?this.gS=t:this.gS=new U.La(null,t),this.gS.zo=n,i&&i(t)},f.prototype.Ps=function(t){var i,n,s,e,r,o,h,a,u,f,c,l,d,p,v;if(!t||"AMap.LabelMarker"===t.type)return i=this._map.getProjection(),this.AL={},f=t.getOptions(),(n=t._position)?(s=[U.tc.Mp,U.tc.Rp],e=void 0===(e=f.zooms)?s:e,r=f.opacity,o=f.rank,d=f.icon,h=f.richText,p=f.text,a=f.zIndex,u=f.rotation,f=void 0===(f=f.visible)||f,c=U.Bs(n)?n.toJSON():n,l=p&&p.content||"",v=p&&p.style,this._bt(d),this.Ubt(p),d=this.Nbt(d),v=this.Gbt(v),p=this.Zbt(p,l,e,v,s),v=i.project(c[0],c[1]),{data:{id:t.hS,name:l,txt:l,position:[v[0],v[1],n[2]||0],positionType:"lnglat",extData:{id:t.hS},rank:o,rotation:u,richText:h,zooms:e},opts:{visible:f,opacity:r,zooms:e,zIndex:a,icon:d,richText:h,text:p,rotation:u,height:n[2]||0}}):null},f.prototype._bt=function(t){if(t)if(Array.isArray(t))for(var i=0,n=t;i=U.Ra&&(b.Ro[0]-=f.center[0],b.Ro[1]-=f.center[1],b.Ro[2]-=f.center[0],b.Ro[3]-=f.center[1]),this.ze?b.data={Hs:f,texture:h.data.texture,Js:h.data.Js,zs:this.ze.fe(new Float32Array([b.Ro[0],b.Ro[1],0,1,b.Ro[2],b.Ro[1],1,1,b.Ro[0],b.Ro[3],0,0,b.Ro[2],b.Ro[1],1,1,b.Ro[2],b.Ro[3],1,0,b.Ro[0],b.Ro[3],0,0]),16)}:(b.data=h.data,b.data.Hs=f),b.data)&&(b.status=U.TileState.LOADED)),b.data&&(t.optimalZoom>=U.Ra&&b.data.Hs?(d=U.lcs.getSize(),a=b.data.Hs.x-y.x,u=b.data.Hs.y-y.y,0!=a&&(a*=d[0],m[0]=a),0!=u&&(u*=d[1],m[1]=u),t.optimalZoom>=U.Ra&&U.za>=b.zo.z&&(m[0]=-y.center[0],m[1]=-y.center[1])):t.optimalZoomthis.Qs[1]&&(i=this.Qs[1],n=s.getResolution(i)),this.Xa),e=20037508.342789244,r=(t[0]+e)/n,o=-(t[3]-e)/n,h=-(t[1]-e)/n;return{Oa:Math.floor((t[2]+e)/n/s),Ea:Math.min((1<this.Qs[1]&&(s=this.Qs[1]),o.getResolution(s),[]),a=[],u=!0,f=r,c=f.ja;c<=f.Oa;c+=1)for(var l=f.Fa;l<=f.Ea;l+=1){var d=new U.ca(s,this.fa(c,s),l),p=this.ua.getTile(d),v=(this.PF(d,t.projectionId),new U.ca(s,c,l));(p?p.status===U.TileState.LOADED||p.status===U.TileState.ERROR?a:(u=!1,n):(u=!1,h.push(d),n)).push(v)}return a.length&&i.push(a),this.Pa=r,this.Fo(u),h},Yt.prototype.da=function(t,i,n,s){if(t=t.optimalZoom,this.Za="overlay"!==this.layer.type,this.qa="overlay"!==this.layer.type,this.Za)for(var e=Math.min(this.xt[1],t+2),r=t+1;n.length&&r<=e;r+=1){for(var o=[],h=[],a=r,u=n.length-1;0<=u;--u)for(var f=n[u],c=f.x<<1,l=f.y<<1,d=1;0<=d;--d)for(var p=1;0<=p;--p){var v=new U.ca(a,this.fa(c+d,a),l+p),m=this.ua.getTile(v),y=new U.ca(a,c+d,l+p);(m&&m.status===U.TileState.LOADED?h:o).push(y)}h.length&&i.push(h),n=o}if(this.qa)for(var b=this.xt[0],r=t-1;n.length&&b<=r;--r){for(var h=[],o=[],g={},u=n.length-1;0<=u;--u){var M=n[u],a=r,k=M.z-a,d=M.x>>k,p=M.y>>k;g[M=(v=new U.ca(a,this.fa(d,a),p)).key]||(m=this.ua.getTile(v),g[M]=!0,(m&&m.status===U.TileState.LOADED?h:o).push(new U.ca(a,d,p)))}h.length&&i.push(h),n=o}return i},Yt.prototype.ma=function(){var t,i=new RegExp(/\{(\w|\,)+\}/g);return i.test(this._tileUrl)?(t=this._tileUrl.match(i)[0].replace(/[\{|\}]/g,"").split(","),this.tr++,t&&this.tr>=t.length&&(this.tr=0),this._tileUrl.replace(i,t[this.tr])):this._tileUrl},Yt.prototype.Ys=function(c,l,d,p){var v;if(!(this.aa.optimalZoomthis.xt[1])){this.Da(c);for(var m=this,i=0,n=c.length;iU.za&&(o.Ro[0]-=i.center[0],o.Ro[1]-=i.center[1],o.Ro[2]-=i.center[0],o.Ro[3]-=i.center[1]),n=l.fe(new Float32Array([o.Ro[0],o.Ro[1],0,1,o.Ro[2],o.Ro[1],1,1,o.Ro[0],o.Ro[3],0,0,o.Ro[2],o.Ro[1],1,1,o.Ro[2],o.Ro[3],1,0,o.Ro[0],o.Ro[3],0,0]),16),(e=(s=document.createElement("canvas")).getContext("2d"))&&(r=this.Xa,s.height=s.width=r,s.style.height=s.style.width=r+"px",e.beginPath(),e.moveTo(0,0),e.lineTo(r,0),e.lineTo(r,r),e.lineTo(0,r),e.lineTo(0,0),e.lineWidth=1,e.font="20px Verdana",e.fillStyle="#ff0000",e.strokeStyle="#FF0000",e.strokeRect(0,0,r,r),e.fillText("z: "+o.zo.z,10,30),e.fillText("x: "+o.zo.x,10,60),e.fillText("y: "+o.zo.y,10,90),e.stroke()),(r=l.createTexture(s,{Zi:!0})).bind(l.gl.MIRRORED_REPEAT,l.gl.LINEAR,l.gl.LINEAR_MIPMAP_NEAREST),o.data={texture:t,zs:n,Js:r,Hs:i}),o.status=U.TileState.LOADED,p()}r=a[0],h=u[0],e=a[1],o.Ro=[r,u[1],h,e],o.status=U.TileState.LOADING,"AMap.TileLayer.Flexible"===m.layer.CLASS_NAME||"AMap.TileLayer.WMTS"===m.layer.CLASS_NAME||"AMap.TileLayer.WMS"===m.layer.CLASS_NAME?n.createTile(t.x,t.y,t.z,function(t){l?f.call(this,t):(o.data=t,o.status=U.TileState.LOADED)}.bind(m),function(){o.status=U.TileState.ERROR,p()}):(a=new Image,"w"===(null==(v=m.map)?void 0:v.baseRender)&&(a.crossOrigin="anonymous"),a.onload=f.bind(m),"d"===(null==(v=m.map)?void 0:v.baseRender)&&0i[2]&&s>i[3])},Yt.prototype.TB=function(){var t=!1;return this.layer.getState().detectRetina&&(t=!0),!("d"!==U.Support.baseRender||!U.Support.Ue||!U.Support.$e)||t};var Gt,Zt=Yt;function Yt(t,i,n,s){return(i=Gt.call(this,t,i,n,s)||this).ua=new xt(U.Support.$e?200:400),i.Xa=256,i.sa=[],i.Zs=[],i.tr=-1,i.qa=!0,i.Za=!0,i.xt=t.zooms,i.Qs=t.dataZooms,i.Xa=t.tileSize,i._tileUrl=t.tileUrl,i}Jt=ft,U.Ei(Vt,Jt),Vt.prototype.loadData=function(t,i,n){return this.ze=i,this.Oo||(this.Fo(!0),n()),!0},Vt.prototype.getData=function(t){if(this.ir=t.bounds,this.Oo){var i=U.lcs.getLocalByCoord([t.centerCoord[0],t.centerCoord[1]]),s=(n=U.ProjectionManager.getProjection(t.projectionId)).project(this.ir[0],this.ir[1]),n=n.project(this.ir[2],this.ir[3]),e=[0,0,0,0];if(t.optimalZoom>=U.Ra){for(var t=U.lcs.getLocalByCoord([s[0],s[1]]),s=U.lcs.getLocalByCoord([n[0],n[1]]),r=U.lcs.getSize(),e=[t.x-i.x,t.y-i.y,s.x-i.x,s.y-i.y],o=0;o=U.Ra&&c.data.Hs?(u=U.lcs.getSize(),f=c.data.Hs.x-d.x,a=c.data.Hs.y-d.y,0!=f&&(f*=u[0],l[0]=f),0!=a&&(a*=u[1],l[1]=a),n>=U.Ra&&U.za>=c.zo.z&&(l[0]=-d.center[0],l[1]=-d.center[1])):n>k,p=M.y>>k;g[M=(v=new U.ca(a,this.fa(d,a),p)).key]||(m=this.ua.getTile(v),g[M]=!0,(m&&m.status===U.TileState.LOADED?h:o).push(new U.ca(a,d,p)))}h.length&&i.push.apply(i,h),n=o}return i},ti.prototype.fa=function(t,i){for(var n=1<<(i=i||this.aa.optimalZoom);t<0||n<=t;)t=n<=t?t-n:t<0?n+t:t;return t},ti.prototype.vX=function(t,i){var n=[-180,-90],s=[180,90],e=U.ProjectionManager.getProjection("EPSG:3857"),r=e.project(256*t+n[0],s[1]-256*i),t=e.project(256*(t+1)+n[0],s[1]-256*(i+1));return[r[0],r[1],t[0],t[1]]},ti.prototype.jE=function(t){for(var i=!!t.length,n=0,s=t;nthis.xt[1])){this.Da(o);var i=this.map.mapStyle.vn.MS("traffic");i&&i.multiFillColors&&((i=i.multiFillColors).congested&&i.congested,i.unknown)&&i.unknown;for(var S=this.layer.getOptions().rZ,h=this,n=0,s=o.length;nU.za;C&&(w.Ro[0]-=A.center[0],w.Ro[1]-=A.center[1],w.Ro[2]-=A.center[0],w.Ro[3]-=A.center[1]),w.request=mi.Ajax(i,{},function(t,i){w.data={};try{i=JSON.parse(i.data)}catch(M){return w.status=U.TileState.LOADED,void T()}if(i=i.data[k.join("_")],"complete"===t&&i){for(var n=new yi,s=new U.J_,e=0,r=i.length;e=U.Ra?(c=U.lcs.getSize(),p=d.localCoord.x-u.x,v=d.localCoord.y-u.y,0!=p&&(p*=c[0],m[0]=p),0!=v&&(v*=c[1],m[1]=v),i.optimalZoom>=U.Ra&&U.za>=d.zo.z&&(m[0]=-u.center[0],m[1]=-u.center[1])):i.optimalZoom=c)&&(p=Math.floor(l.x/c),m[0]+=20037508.342789244*p*2),v=y.gB,d.Ro=y.Ro,d.ID(y),d.Sa=m,d.status=y.status,d.tag=v,d.gB=v)),d&&(d.stamp=h,d.Sa=m,r.push(d))}var b=i.optimalZoom,t=U.every(e,function(s){return U.some(r,function(t){var i=t.zo.key,n=t.zo.z,n=U.Util.VF(n,b),t=t.gB,t=U.Util.LD(t,n);return i===s.key&&t})}),e=(r&&0<=r.length&&this.Fo(!0),this.jE(r));return t&&(this.a_=!0,this.map.bZ.dynamic.set("firstAllLoaded",!0)),e&&this.map.bZ.dynamic.set("firstLabelDataAllLoaded",!0),t&&e&&this.Fo(!0),(t={s_:this.a_,fo:!!t&&e,yZ:e,tiles:r,Ca:o,outseaData:undefined}).tiles=this.UE(r,s),t},c.prototype.pe=function(t){return t=new U.ca(t[0],t[1],t[2]),this.ua.getTile(t)},c.prototype.jpt=function(t){return("fast"!==this.map.bZ.MZ.drawMode||this.map.bZ.dynamic.get("firstPaint")?{2:3,3:3,4:3,5:3,6:6,7:6,8:8,9:8,10:10,11:10,12:10,13:12,14:12,15:14,16:14,17:14,18:14,19:14,20:14,21:14,22:14,23:14,24:14,25:14,26:14,27:14,28:14,29:14,30:14}:{2:3,3:3,4:3,5:3,6:6,7:6,8:8,9:8,10:8,11:8,12:8,13:12,14:12,15:14,16:14,17:14,18:14,19:14,20:14,21:14,22:14,23:14,24:14,25:14,26:14,27:14,28:14,29:14,30:14})[t]},c.prototype.ra=function(t){return("fast"!==this.map.bZ.MZ.drawMode||this.map.bZ.dynamic.get("firstPaint")?{2:3,3:3,4:3,5:3,6:6,7:6,8:8,9:8,10:10,11:10,12:10,13:12,14:12,15:14,16:14,17:14,18:14,19:14,20:14,21:14,22:14,23:14,24:14,25:14,26:14,27:14,28:14,29:14,30:14}:{2:3,3:3,4:3,5:3,6:6,7:6,8:8,9:8,10:8,11:8,12:8,13:12,14:12,15:14,16:14,17:14,18:14,19:14,20:14,21:14,22:14,23:14,24:14,25:14,26:14,27:14,28:14,29:14,30:14})[t]},c.prototype.YE=function(t){var i=this;return t(null,{GW:"worker",cb:function(t){i.dynamicTextVerticeLoadedByTile(t)}}),!0},c.prototype.destroy=function(){this.ua.forEach(function(t){t.status!==U.TileState.LOADED&&t.request&&(t.request.cancel(),delete t.request),t.destroy()}),this.ua.destroy(),this.sa=[],this.la=[],this.mapStyle&&this.mapStyle.destroy&&(this.mapStyle.destroy(),delete this.mapStyle),this.R_&&this.R_.destroy&&(this.R_.destroy(),delete this.R_)},c.prototype.reload=function(){this.ua.forEach(function(t){t.status!==U.TileState.LOADED&&t.request&&(t.request.cancel(),delete t.request),t.reload()}),this.sa=[],this.la=[]},c.prototype.Aa=function(t){var i;t.zo&&(i=this.ua.getTile(t.zo))&&(i.rO({Ta:!0},t.tag),i.xa({Ta:!0},t.tag),i.JE({Ta:!0},t.tag))},c.prototype.setTileCacheSize=function(t){t=t||(U.Support.$e?30:100),this.ua.Xo(t)},c.prototype.UH=function(t){this.VH=t},c.prototype.dynamicTextVerticeLoaded=function(t){var i=t.data,n=t.XE;if(i instanceof U.ca)return(s=this.ua.getTile(i))?(s.data||s.xa({},t.tag),void s.rO({},t.tag)):void 0;var s=i[Object.keys(i)[0]];if(s=this.ua.getTile(s.zo,!0)){s.data||s.xa({},t.tag);var e,r,o={};for(e in i)i.hasOwnProperty(e)&&(r=i[e],o[e]=new U.La(r.zo,r));s.rO({Ta:!0,labels:o,XE:n},t.tag),s.xa({Ta:!0},t.tag),s.JE({Ta:!0},t.tag),s.xB=U.TileState.LOADED,this.map.Mv.t0(s.zo),this.Eo()}},c.prototype.dynamicTextVerticeLoadedByTile=function(t){for(var i=0,n=t.data;i>w,v=k.y>>w;g[k=(m=new U.ca(a,p,v)).key]||(w=new U.ca(a,this.fa(p,a),v),y=new U.ca(a,p,v),M=this.ua.getTile(w,!0),g[k]=!0,(M&&M.status===U.TileState.LOADED?f:u).push(y))}f.length&&i.push.apply(i,f),n=u}return i},c.prototype.Da=function(t){var e,r,o;t.length&&(e=this.Pa.z,r=(this.Pa.ja+this.Pa.Oa)/2,o=(this.Pa.Fa+this.Pa.Ea)/2,t.sort(function(t,i){var n=(t.x<this.xt[1])){this.Da(h);for(var l=this,i=0,n=h.length;iU.za&&(o.Ro[0]-=t.center[0],o.Ro[1]-=t.center[1],o.Ro[2]-=t.center[0],o.Ro[3]-=t.center[1]),i=a.fe(new Float32Array([o.Ro[0],o.Ro[1],0,1,o.Ro[2],o.Ro[1],1,1,o.Ro[0],o.Ro[3],0,0,o.Ro[2],o.Ro[1],1,1,o.Ro[2],o.Ro[3],1,0,o.Ro[0],o.Ro[3],0,0]),16),!c.Rs){var n=document.createElement("canvas"),s=n.getContext("2d");if(s){n.height=n.width=256,n.style.height=n.style.width="256px",s.font="20px PingFangSC-Light, sans-serif",s.fillStyle="rgba(255, 0, 0, 1)",s.rotate(-15*Math.PI/180);for(var e="未获得高德地图商用授权",r=0;r=this.map.getZooms()[0]&&(this.bt=r,this.du=n.getResolution(this.bt),r=(t=this.mu).Rt,t=t.zt,(s=this.lu(n))[0]=s[0]-t[0]+r[0],s[1]=s[1]-t[1]+r[1],e=n.unproject(s[0],s[1]),this.hu=e,U.Pl(this.uu,s[0],s[1],0),this.vu(),this.cu.setPosition(this.fu()),this.mu=undefined)}!this.h_()&&i&&this.map.setNeedUpdate(!0)},v.prototype.getOptions=function(){return{zoom:this.bt,center:this.hu,rotation:this.nu,projectionId:this.su,pitch:0}},v.prototype.getStatus=function(){var t=U.Zl(),i=U.Zl(),n=U.Zl(),s=(this.xu(t,i,n),U.Util.getOptimalZoom(this.bt));return{pitch:this.Pu,size:this._size,rotation:this.nu,zoom:this.bt,optimalZoom:s,resolution:this.du,optimalResolution:U.ProjectionManager.getProjection(this.su).getResolution(s),center:this.hu,bounds:t,boundsCoord:i,transformedBoundsCoord:n,centerCoord:this.uu,projectionId:this.su,mvpMatrix:this.cu.Vl(),viewMode:this.type,skyHeight:this.EF(),fov:60}},v.prototype.bu=function(t){this.hu=[t[0],t[1]],t=U.ProjectionManager.getProjection(this.su).project(this.hu[0],this.hu[1]),U.Pl(this.uu,t[0],t[1],0)},v.prototype.containerTolnglat=function(t,i,n){var s,r=(e=this.getStatus()).centerCoord,e=e.rotation,r=U.V[this.su].transform(r[0],r[1],n),o=(r=0!==e?(n=e/180*Math.PI,e=t-this._size[0]/2,s=-(i-this._size[1]/2),o=Math.sqrt(e*e+s*s),e=Math.atan(e/s)-n,s<0&&(e+=Math.PI),n=o*Math.sin(e),s=o*Math.cos(e),[r[0]+n*this.du,r[1]-s*this.du]):[r[0]+(t-this._size[0]/2)*this.du,r[1]+(i-this._size[1]/2)*this.du],r=U.V[this.su].Xs(r[0],r[1]),U.ProjectionManager.getProjection(this.su).unproject(r[0],r[1]));return o[0]=180=U.Ra||U.Util.getOptimalZoom(t.zoom)>=U.Ra&&U.Util.getOptimalZoom(n)this.$u()||this.Pu>this.$u()?t.pitch=this.$u():(t.pitch<0||this.Pu<0)&&(t.pitch=0),this.Pu=Math.min(t.pitch,this.$u()),this.cu.setPitch(t.pitch)),t.center&&(this.hu=t.center,r=this.lu(i),U.Pl(this.uu,r[0],r[1],0),e=this.fu(),s=i.unproject(r[0],r[1]),this.hu=s,this.cu.Fu(e[0],e[1],0),this.cu.Ou()),t.kt){if(!this.map.getStatus().zoomEnable)return;var n=this.bt,n=(this.bt=Math.min(Math.max(t.kt.Mt,this.map.getZooms()[0]),this.map.getZooms()[1]),this.du=i.getResolution(this.bt),(U.Util.getOptimalZoom(t.kt.Mt)=U.Ra||U.Util.getOptimalZoom(t.kt.Mt)>=U.Ra&&U.Util.getOptimalZoom(n)=U.Ra&&(e.x!==t.x||t.y!==e.y)&&(n=e.x-t.x,s=e.y-t.y,i[0]-=n*U.lcs.getSize()[0],i[1]-=s*U.lcs.getSize()[1]),this.cu.Fu(i[0],i[1],0),this.cu.Ou(),this.bu(r)}this.h_()||this.map.setNeedUpdate(!0)},y.prototype.bu=function(t){var i=U.ProjectionManager.getProjection(this.su),t=(U.Pl(this.uu,t[0],t[1],0),i.unproject(t[0],t[1]));this.hu=t},y.prototype.getOptions=function(){return{size:this._size,zoom:this.bt,center:this.hu,rotation:this.nu,projectionId:this.su,pitch:this.Pu,resolution:this.du}},y.prototype.au=function(){return this.su},y.prototype.ru=function(){return U.ProjectionManager.getProjection(this.su)},y.prototype.getStatus=function(){var t=U.Zl(),i=U.Zl(),n=U.Zl(),s=(this.xu(t,i,n),U.Util.getOptimalZoom(this.bt));return{size:this._size,pitch:this.Pu,rotation:this.nu,zoom:this.bt,optimalZoom:s,resolution:this.du,optimalResolution:U.ProjectionManager.getProjection(this.su).getResolution(s),center:this.hu,bounds:t,boundsCoord:i,transformedBoundsCoord:n,centerCoord:this.uu,projectionId:this.su,mvpMatrix:this.cu.Vl(),modelMatrix:this.cu.Au(),viewMode:this.type,skyHeight:this.EF(),fov:this.cu.Tu}},y.prototype.$u=function(t){return 80},y.prototype.Uu=function(t){var t=void 0!==t?t:this.Pu,i=this.bt,t=Math.max(t/100-.4,0),i=Math.max(4*(i-22),0)/100;return this._size[1]*(t-i)-10},y.prototype.EF=function(){var t=1;return 0<(t=this.Uu())?1-t/this._size[1]*2:1},y.prototype.X=function(t,i){var n,s=this.cu.Cu(),e=this.cu.Au(),r=this._size;return t=t/r[0]*2-1,s?(r=U.Bu(t,i=1-i/r[1]*2,-1,1),this.Wu(r,this.tu),n=U.Zl(),U.Gu(n,r,s),r=U.Bu(t,i,1,1),this.Wu(r,this.iu),t=U.Zl(),U.Gu(t,r,s),i=U.Zl(),U.Gu(i,n,e),r=U.Zl(),U.Gu(r,t,e),s=+i[2]/(i[2]-r[2]),[i[0]-s*(i[0]-r[0]),i[1]-s*(i[1]-r[1])]):[0,0]},y.prototype.ku=function(t,i){var n=U.Util.getOptimalZoom(this.bt),s=this.uu,e=this.X(t,i);return t=e[0],i=e[1],n>=U.Ra&&(t+=(e=U.lcs.getLocalByCoord([s[0],s[1]])).center[0],i+=e.center[1]),[t,i]},y.prototype.H=function(t,i,n){void 0===n&&(n=0);var s=this.cu.Su(),e=this.cu.Lu(),t=((r=this.fG)[0]=t,r[1]=i,r[2]=n,this.uG),i=this.cG,n=(U.Gu(t,r,e),U.Gu(i,t,s),U.scale(i,i,1/i[3]),(i[0]+1)/2*this._size[0]),r=(1-i[1])/2*this._size[1];return this.lG(i),this.lG(t),[n,r]},y.prototype._u=function(t,i,n){void 0===n&&(n=0);var s=U.Util.getOptimalZoom(this.bt),e=this.uu;return s>=U.Ra&&(t-=(s=U.lcs.getLocalByCoord([e[0],e[1]])).center[0],i-=s.center[1]),this.H(t,i,n)},y.prototype.containerTolnglat=function(t,i){var t=this.X(t,i),i=0,n=0,s=(U.Util.getOptimalZoom(this.bt)>=U.Ra&&(i=(s=U.lcs.getLocalByCoord([this.uu[0],this.uu[1]]).center)[0],n=s[1]),t[0]+=i,t[1]+=n,U.ProjectionManager.getProjection(this.su).unproject(t[0],t[1]));return s[0]=180=U.Ra&&(i=U.lcs.getLocalByCoord([this.uu[0],this.uu[1]]),t[0]-=i.center[0],t[1]-=i.center[1]),this.H(t[0],t[1],n)},y.prototype.pz=function(){return this.cu},y.prototype.h_=function(){return U.Ru(this.Xl,this.cu.Vl())},y.prototype.aD=function(){return this.Xl=this.cu.Vl(),this.Xl},y.prototype.xu=function(t,i,n){var s=0,e=0,r=this.Uu(),o=(U.Util.getOptimalZoom(this.bt)>=U.Ra&&(s=(o=U.lcs.getLocalByCoord([this.uu[0],this.uu[1]]).center)[0],e=o[1]),U.ProjectionManager.getProjection(this.su)),h=this.X(0,r),a=this.X.apply(this,this._size),r=this.X(this._size[0],r),u=this.X(0,this._size[1]),f=Math.min(h[0],u[0],r[0],a[0])+s,s=Math.max(h[0],u[0],r[0],a[0])+s,c=Math.min(h[1],u[1],r[1],a[1])+e,h=Math.max(h[1],u[1],r[1],a[1])+e,u=o.unproject(f,c),r=o.unproject(s,h),a=(i[0]=f,i[1]=c,i[2]=s,i[3]=h,t[0]=u[0],t[1]=u[1],t[2]=r[0],t[3]=r[1],U.V[this.su].transform(i[0],i[3])),e=U.V[this.su].transform(i[2],i[1]);return n[0]=a[0],n[1]=a[1],n[2]=e[0],n[3]=e[1],t},y.prototype.vu=function(){var t=this._size,i=t[0]*this.du,n=t[1]*this.du,s=(this.cu.setSize([i,n]),this.cu.Eu(),this.cu.dz()),s=(this.tu=s/10,this.iu=50*s,56-this.bt);this.cu.setOptions([i,n],s,t[0]/t[1],this.tu,this.iu),this.cu.Eu()},y.prototype.fu=function(){var t;return U.Util.getOptimalZoom(this.bt)=this.mG.length?U.b6t.finish:U.b6t.pause},eb:!1,nb:!0});var Vn=Hn;function Hn(t,i){this.lang=t,this.mG=i,this.type="LangSDFTask",this.offset=0,this.result=[]}Kn.prototype.loadImage=function(t,i,n){var s=i.name,e=i.cb,r=this.Fs[s=s||t];r&&r.status===U.uc.LOADED?e(r,i):r&&r.status===U.uc.LOADING?(this.Mc[s]||(this.Mc[s]=[]),this.Mc[s].push({cb:e,opts:i})):t?this.Rc(t,i,n):e(null,i)},Kn.prototype.TZ=function(t,i){this.Rc(t.data,{name:t.hash,cb:i})},Kn.prototype.loadImages=function(t,i,n){var s=t.length,e=i.cb,r=0;if(t.length){i.cb=function(){(r+=1)===s&&e()};for(var o=0,h=t;o KEY异常。")))},e.onerror=function(t){s("error")},e.open("GET",n,!0),e.responseType="arraybuffer",e.send(),{cancel:function(){e.abort()}}},g.prototype.requestPost=function(t,i,n){window.amap_sdk_log&&window.amap_sdk_log("data-requestPost: "+i.url+" - "+Date.now());var s=new XMLHttpRequest,e=(s.open(i.method,i.url,!0),s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.onreadystatechange=function(){var t;4===s.readyState&&200===s.status&&(t="application/x-protobuf"===s.getResponseHeader("content-type")?s.response:s.responseText,n(null,t))},{});return e.content=i.body,s.responseType="arraybuffer",s.send(e.content),s.onerror=function(t){n(null,"error")},{cancel:function(){s.abort()}}},g.prototype.jD=function(){var t=this.GD%this.ND;return this.GD=1+t,this.ED[t]},g.prototype.syncLoggerStartTime=function(i){this.rbt.send("syncLoggerStartTime",i),U.forEach(this.ED,function(t){t.send("syncLoggerStartTime",i)})},g.prototype.updateDataVersion=function(t,i){this.emit("updateDataVersion",{version:i})},g.prototype.tv=function(){var t=this;this._map.on("movestart",function(){t.iv=!0,t.ev()}),this._map.on("moveend",function(){t.iv=!1,t.ev()}),this._map.on("dragstart",function(){t._dragging=!0,t.ev()}),this._map.on("dragend",function(){t._dragging=!1,t.ev()}),this._map.on("zoomstart",function(){t.lt=!0,t.ev()}),this._map.on("zoomend",function(){t.lt=!1,t.ev()})},g.prototype.ev=function(){var i=!1;(this._dragging||this.lt||this.iv)&&(i=!0),this.nv!==i&&(this.rbt.send("setMainThreadBusy",i),U.forEach(this.ED,function(t){t.send("setMainThreadBusy",i)})),this.nv=i},g.prototype.WD=function(){for(var t=0;t=this.mG.length?U.b6t.finish:U.b6t.pause},eb:!1,nb:!0});var Es=Ps;function Ps(t,i){this.bY=t,this.mG=i,this.type="SDFCombineTask",this.offset=0,this.result=[]}Fs.prototype.dynamicTextSDFInfoLoaded=function(t){var i=this.map.R_;i&&"SDFManagerBase"!==i.CLASS_NAME&&(i.Ju(t.data),this.Eo())},Fs.prototype.iconImageLoaded=function(t){for(var i=this,t=t.data,e=[],n=0,s=t;nc?Math.floor(c):Math.ceil(c))-c)&&(this.bo=d,e=U.V[this._view.au()],r=200*Math.abs(p)+100,o=new V(0,.6,.15,1),u=h=0,a=function(){h+=16;var t=f._view.getStatus().zoom,i=c+p*o.h(h/r),t=(re[1]),e=n.visible,r=(void 0!==r&&(n.visible=r),r&&(n.visible=!s),this.ZF(i));n.visible&&(n.visible=!r);var r=(s=this._opts).zIndex,o=void 0===(o=s.anchor)?ye.Nm:o,h=void 0===(h=s.offset)?[0,0]:h,a=s.rotate,u=s.scale,f=s.noSelect,c=[0,0];return"number"==typeof(s=s.orientation)?n.rotate=this.dP(s):void 0!==a&&(n.rotate=a),e!==n.visible&&this._map&&(this._map.render(),this._parent)?!(this._parent.aZ=!0):(t?i&&(n.left=i[0]+"px",n.top=i[1]+"px",c=n.translate):(this._getContentSize(),(s=this._getStyleZIndex(r))&&(n.zIndex=s),void 0!==u&&(n.scale=u),i&&(n.left=i[0]+"px",n.top=i[1]+"px"),(o||h)&&(c=this._getOffset(o,h),n.translate=c,n.transformOrigin=-c[0]+"px "+-c[1]+"px"),n.pointerEvents=!0===f?"none":"auto"),a="translate("+c[0]+"px, "+c[1]+"px) scale("+n.scale+") rotate("+n.rotate+"deg)",U.Support.ie&&(n.msTransform=a),n.transform=a,!0)},A.prototype._getStyleZIndex=function(t){return t},A.prototype._getSize=function(){var i=(t=(t=this._opts.size||[])instanceof U.Size?t.toArray():t)[0],t=void 0===(t=t[1])?0:t,s=(n=this._size)[0],n=n[1];return[(void 0===i?0:i)||(void 0===s?0:s),t||(void 0===n?0:n)]},A.prototype._getContentSize=function(){var t=this._style,i=this._getSize(),n=0,s=0;i[0]&&i[1]?(n=i[0],s=i[1]):this.dom&&(i=this.dom,n=Math.ceil(i.offsetWidth)||0,s=Math.ceil(i.offsetHeight)||0,this._size=[n,s]),t.width=n+"px",t.height=s+"px",t.size=[n,s]},A.prototype._applyStyle=function(t){void 0===t&&(t=!1);var i,n,s=this._style,e=this.dom;for(i in s)s.hasOwnProperty(i)&&("visible"===i?(n=s[i]?"block":"none",e.style.display=n):t?"top"!==i&&"left"!==i&&"transform"!==i&&"msTransform"!==i||(e.style[i]=s[i]):"width"===i||"height"===i?"0px"!==s[i]&&(n=this._opts.size)&&"AMap.InfoWindow"!==this.type&&("width"===i&&(e.style[i]=n[0]+"px"),"height"===i)&&(e.style[i]=n[1]+"px"):"translate"!==i&&"scale"!==i&&"rotate"!==i&&(e.style[i]=s[i]))},A.prototype._getOffset=function(t,i){return[(t=this._getAnchorOffset(t))[0]+i[0],t[1]+i[1]]},A.prototype._getAnchorOffset=function(t){var n=(i=this._style.size)[0],s=i[1],i=ye,e=0,r=0;if(Array.isArray(t))return t;switch(t){case i.Nm:e=0;break;case i.$m:e=-n/2;break;case i.Um:e=-n;break;case i.Bm:e=0,r=-s/2;break;case i.center:e=-n/2,r=-s/2;break;case i.Wm:e=-n,r=-s/2;break;case i.Gm:r=-s;break;case i.Zm:e=-n/2,r=-s;break;case i.qm:e=-n,r=-s}return[e,r]},A.prototype._createDom=function(t,i){return i&&("object"==typeof i&&i instanceof HTMLElement?t.appendChild(i):t.innerHTML=i),t.addEventListener("touchstart",function(t){t.cH="markerContent"}),t},A.prototype._removeContent=function(){this.dom.innerHTML=""},A.prototype._formatSize=function(t){return[t.getWidth(),t.getHeight()]},A.prototype.ZF=function(t){var i,n=this._map;return!!(n&&t&&"3D"===(n=n.getView()).type&&(n=n.Uu(),i=ge,t)&&t[1]-n-i[0]<=0)},A.prototype._getRotationByPoints=function(t,i){var n=i.y-t.y,s=i.x-t.x,e=0;return(0!=n||0!=s)&&(i.x-t.x!=0?(e=Math.atan((i.y-t.y)/(i.x-t.x)),0<=n&&s<0||n<0&&s<=0?e=Math.PI+e:n<0&&0<=s&&(e=2*Math.PI+e)):e=i.y>t.y?Math.PI/2:3*Math.PI/2,Math.round(180*e/Math.PI*10)/10)},A.prototype._getRotationByLngLats=function(t,i){var n=null==(n=this._map)?void 0:n.getProjection().project(t.KL,t.kT),i=(t=null==(t=this._map)?void 0:t.getProjection().project(i.KL,i.kT))[0]-n[0],t=t[1]-n[1],n=0;return(0!=i||0!=t)&&(0!=t?(n=Math.atan(i/t),0<=i&&0h.getWidth()?s=20-r[0]:h.getWidth()h.getHeight()?e=5-r[1]:h.getHeight()h&&(e=h-f[0]-s[1],o=!0),u=U.Ra?(i=U.lcs.getLocalByCoord([t[0],t[1]]),this.Us=i.center):this.Us=[0,0]},er.prototype.pB=function(t,i){var n=[0,0];return n[0]=t[0]-i[0],n[1]=t[1]-i[1],n};var nr,sr=er;function er(t){this.Us=[0,0],t||console.error("需要传入 map 实例对象。new AMap.CustomCoords(map);"),this.map=t,this.mB()}var rr=[116.397128,39.916527],or=te;U.Ei(S,or),S.prototype.setMapDataset=function(t){var i;null!==t&&(this.Wyt=t,t=this.Wyt)&&(i=JSON.parse(t.style),AMap.getConfig().styleVersion=i.v,AMap.getConfig().styleClass=i.t,i=JSON.parse(t.icon),AMap.getConfig().iconVersion=i.v,AMap.getConfig().iconClass=i.t,i=JSON.parse(t.tile),AMap.getConfig().tileVersion=i.v,t=!0,"false"===i.combo&&(t=!1),AMap.getConfig().tileCombo=t)},S.prototype.setCenter=function(t,i,n){void 0===i&&(i=!1),t instanceof U.LngLat&&(t=t.toJSON()),!i&&this.Ev?this.viewChange({lng:t[0],lat:t[1]},n):this.om({center:t})},S.prototype.getStyleByUserId=function(t,i){return this.qY(t,i)},S.prototype.getCustomTypeByContainerPos=function(t){var i,n,s,e=this.getCustomTypeByPos(t);return e&&e[0]?(i={},s=e[0][0],e={x:e[0][1],y:e[0][2],z:s},n=(t=t.lnglat).lng,s=U.ZY(s,s,n,t.lat,e),i.tileInnerCoord=s,i.tileCoord=e,i):null},S.prototype.getTileInnerCoordByPos=function(t,i,n){var s={},e=(i=i.lnglat).lng,n=U.ZY(t.z,n,e,i.lat,t);return s.tileInnerCoord=n,s},S.prototype.getScreenShot=function(t,i){for(var n=this.getSize(),s=document.createElement("canvas"),e=s.getContext("2d"),r=(t=t||n.width,i=i||n.height,s.width=t,s.height=i,n.width,n.height,this["do"].childNodes),o=[],h=0;ht.y?Math.PI/2:3*Math.PI/2,Math.round(180*e/Math.PI*10)/10)},L.prototype.Ydt=function(n){return U.T8t(this,void 0,void 0,function(){var i;return U.x8t(this,function(t){switch(t.label){case 0:return[4,ce.Ydt(n)];case 1:return i=t.y8t(),this.setPosition(i),[2]}})})},L.prototype.dP=function(t){var i=0,n=this._position,s=(n instanceof AMap.LngLat&&(n=[n.lng,n.lat]),this._map);return s&&n&&(t=this.pP(n,t),n=s.lngLatToContainer(n),t=s.lngLatToContainer(t),i=!1===(s=this._getRotationByPoints(n,t))?0:s+Math.PI),i+90},L.prototype.pP=function(t,i){var n=null==(n=this._map)?void 0:n.getProjection().project(t[0],t[1]);return n[0]+=Math.sin(i*Math.PI/180)*Math.pow(2,18-this._map.getZoom()),n[1]+=Math.cos(i*Math.PI/180)*Math.pow(2,18-this._map.getZoom()),null==(t=this._map)?void 0:t.getProjection().unproject(n[0],n[1])},L);function L(t){var i=Dr.call(this)||this,t=(i.type=Rr.uy,i.className=Rr.uy,i.hS=U.Util.stamp(i),i._originOpts=t,i._opts=i.nY(t),t.position&&i.setPosition(t.position),i.Ndt=jr,(new Date).getTime()),n=0;return"performance"in window&&"function"==typeof performance.now&&(n=performance.now()),i.Ndt.constructor={time:t,highResTime:n},i}Pr=U.Event,U.Ei(Fr,Pr),Fr.prototype.addTo=function(t){this.map=t,this.map.controls.push(this),t.getControlContainer().appendChild(this._container),t.on("beforeDestroy",this.remove.bind(this))},Fr.prototype.removeFrom=function(t){t?(t.off("beforeDestroy",this.remove.bind(this)),t.getControlContainer().removeChild(this._container),delete this.map):this.map&&(this.map.off("beforeDestroy",this.remove.bind(this)),this.map.getControlContainer().removeChild(this._container),delete this.map)},Fr.prototype.remove=function(){this.map&&(this.map.off("beforeDestroy",this.remove.bind(this)),this.map.getControlContainer().removeChild(this._container),delete this.map)},Fr.prototype.show=function(){this._container.style.display="block",this.emit("show"),this.il=!0},Fr.prototype.hide=function(){this._container.style.display="none",this.emit("hide"),this.il=!1},Fr.prototype.initContainer=function(){this._className?(this._container=w.create("div",null,"amap-control amap-"+this._className),this._config.visible===undefined||this._config.visible||(this._container.style.display="none")):this._container=w.create("div",null,"amap-control"),this.Pb()},Fr.prototype.Pb=function(){var t=0,i=0,n=0,s=0;switch(this._config.offset&&0this._opts.zooms[1])},O);function O(t){void 0===t&&(t={});var n=Jo.call(this)||this,i=(n.Ix=function(t){var i;n._opts.path=U.jsonLngLatData(t),(t=mo(t))&&(n.ir=l.ms(t),i=n._map)&&("d"===i.baseRender?n.X$(t):n.cE())},t.path),i=(U.iL(i)?(s=i[0],n.Tx(s)):U.eL(i)?(s=i[0][0],n.Tx(s)):U.yL(i)&&(s=i[0][0][0],n.Tx(s)),n.className="Overlay.Polygon",n._opts={fillColor:"#00D3FC",fillOpacity:.5,strokeColor:"#00B2D5",strokeWeight:2,strokeOpacity:.9,strokeStyle:"solid",draggable:!1,extrusionHeight:0,wallColor:"#00D3FC",roofColor:"#00B2D5",bubble:!1,strokeDasharray:[10,5],zIndex:50,extData:{},noSelect:!1,innerOverlay:!1,zooms:U.zoomRange,"async":!1},n._opts=n.nY(t),n._checkMap(),n.Ndt=Vo,(new Date).getTime()),s=0;return"performance"in window&&"function"==typeof performance.now&&(s=performance.now()),n.Ndt.constructor={time:i,highResTime:s},n}function Ko(){var n=null!==qo&&qo.apply(this,arguments)||this;return n.contains=function(t){var i;return!(!n.aE||n.ir&&!n.ir.contains(t))&&(i=n.aE,t=U.parseLngLatData(t),(U.ys(i)?yo:U.Ox(i)?bo:go)([t.lng,t.lat],i))},n}qo=Di,U.Ei(Ko,qo),Ko.prototype.getOptions=function(){return U.extend({},this._opts)},Ko.prototype.getArea=function(){var t=this.aE;return t?+zo(t).toFixed(2):0},Qo=Xt=Ko,U.Ei(th,Qo),th.prototype.init=function(t){t=t||this._opts,this._opts=this.nY(t),this.setBounds(t.bounds)},th.prototype.setBounds=function(t){t&&(U.xs(t)||(t=new l(t)),this._opts.bounds=t,this.ir=t.clone(),this.cE(),this.to())},th.prototype.ZB=function(t){var i,n,s;this._map&&(this._needUpdate=!1,i=this._opts.bounds)&&(n=this._map,(s=mo(jo(i)))&&(this.ir=i.clone(),this.aE=s,"d"===n.baseRender?this.X$(s):this.Q$(s,t)),this.to())},th.prototype.moveWithPixel=function(t,i){var n,s,e;this._map&&(n=this._map,s=(e=this._opts.bounds).southWest.toJSON(),e=e.northEast.toJSON(),s=this._map.getView().ru().moveWithPixel(s,[t,i],n.getZoom()),e=this._map.getView().ru().moveWithPixel(e,[t,i],n.getZoom()),t=new l(s,e),this.setBounds(t))},th.prototype.moveWithPos=function(t,i){var n,s;this._map&&(n=(s=this._opts.bounds).southWest.toJSON(),s=s.northEast.toJSON(),n=this._map.getView().ru().moveWithPos(n,[t,i]),s=this._map.getView().ru().moveWithPos(s,[t,i]),t=new l(n,s),this.setBounds(t))},th.prototype.setOptions=function(t){var t=this.nY(t),i=!U.isEqual(this._opts.bounds,t.bounds);this._opts=t,this._checkMap(),i&&this.setBounds(t.bounds),this.to()},th.prototype.getPath=function(){var t,i,n;if(!this.ir){var s=this._opts.bounds;if(!s)return;this.ir=s.clone()}if(s=this.ir)return this.P$&&(i=s.getSouthWest(),n=s.getNorthEast(),i=this._map.getView().ru().moveWithPos([i.KL,i.kT],this.zx),n=this._map.getView().ru().moveWithPos([n.KL,n.kT],this.zx),s=new l(i,n)),s?jo(s):t},th.prototype.getBounds=function(){var t;if(!this.ir){var i=this._opts.bounds;if(!i)return;this.ir=i.clone()}if(i=this.ir)return this.P$?(t=i.getSouthWest(),i=i.getNorthEast(),t=this._map.getView().ru().moveWithPos([t.KL,t.kT],this.zx),i=this._map.getView().ru().moveWithPos([i.KL,i.kT],this.zx),new l(t,i)):this.ir},th.prototype.getCenter=function(){if(this._opts.bounds)return this._opts.bounds.getCenter()};var Qo,$o=th;function th(t){void 0===t&&(t={});var n=Qo.call(this)||this;return n.className="Overlay.Rectangle",n.contains=function(t){var i=n.getBounds();return!!i&&i.contains(t)},n._opts={fillColor:"#00D3FC",fillOpacity:.5,strokeColor:"#00B2D5",strokeWeight:2,strokeOpacity:.9,strokeStyle:"solid",draggable:!1,bubble:!1,strokeDasharray:[10,5],zIndex:50,extData:{},noSelect:!1,innerOverlay:!1,zooms:U.zoomRange,"async":!1},n._opts=n.nY(t),n._checkMap(),n}ih=Xt,U.Ei(sh,ih),sh.prototype.init=function(t){t=t||this._opts,this._opts=this.nY(t),this.setCenterAndRadius(this._opts.center,this._opts.radius)},sh.prototype.setCenter=function(t){this.setCenterAndRadius(t,this._opts.radius)},sh.prototype.setRadius=function(t){this.setCenterAndRadius(this._opts.center,t)},sh.prototype.getCenter=function(){var t=U.parseLngLatData(this._opts.center),t=this._map.getView().ru().moveWithPos([t.KL,t.kT],this.zx);return new U.LngLat(t[0],t[1])},sh.prototype.getRadius=function(){return this._opts.radius},sh.prototype.getPath=function(){var t;return this._opts.center&&this._opts.radius&&(t=Ro(this._opts.center,this._opts.radius,U.Support.$e))&&0i)||Math.abs(n.y-t.y)>i)&&(t=t.toJSON(),n=n.toJSON(),s=Math.abs(t[0]-n[0]),t=Math.abs(t[1]-n[1]),s=Math.sqrt(s*s+t*t),t=e._map.getView().Pu||0,s/Math.cos(t)n*n*1&&h.push([o[a][0],o[a][1]]);s.push(h)}u.D_(s)}else u.EI=i,u.D_(u.q$)}},u}lh=pi,U.Ei(dh,lh),dh.prototype.Tx=function(t){t&&(t=U.Bs(t)?U.ProjectionManager.getProjection("EPSG:3857").project(t.KL,t.kT):U.ProjectionManager.getProjection("EPSG:3857").project(t[0],t[1]),this.Sx=U.lcs.getLocalByCoord(t))},dh.prototype.destroy=function(){this.Px&&(this.Px.destroy(),delete this.Px),lh.prototype.destroy.call(this)},dh.prototype.toGeometry=function(){var t=this._opts.path;if(t)return U.ys(t)?{type:"LineString",coordinates:t}:U.Ox(t)?{type:"MultiLineString",coordinates:t}:void 0},dh.prototype.U_=function(t){this.F_&&!this.E_&&(this.E_=t.createTexture(this.F_,{Zi:!0}),this.E_.bind(t.gl.CLAMP_TO_EDGE,t.gl.LINEAR,t.gl.LINEAR))},dh.prototype.aC=function(t,i){this.rC||(i=function(t){for(var i=document.createElement("canvas"),n=(i.height=1,i.width=4096,i.getContext("2d")),s=n.createImageData(4096,1),e=0,r=0;r<4096;r++){for(var o=void 0;e>1,o=n-i,h=n,a=t[i][0],u=t[i][1],f=t[n][0],c=t[n][1],l=i+1;l 使用 JSAPI 安全模式,代理服务请以_AMapService 作为一级路由"))),ia["default"]),_t=(window._AMapServiceConfig&&(n=(sa=window._AMapServiceConfig).type,qt=sa.customSet,n&&"oversea"===n?Zt=ia.oversea:qt&&(Zt=ia.custom(qt)),wi=Zt.rest.host),""),_t=Di?Di+"/v3/log/init?":wi+"/v3/log/init?",ra=(ea&&(_t+="jscode="+ea+"&"),{key:config[0],host:config[2],domain:config[17],server:wi,protocol:ji,version:config[4],adcode:config[6],callback:config[5],appname:ri,client:ft,markers:Ft,pc:"http://gaode.com",mo:"http://m.amap.com",tileCombo:!0,defaultLocation:config[1],tileVersion:"",styleVersion:"",iconVersion:"",iconClass:"",styleClass:"",workerUrl:"",YT:$t,qT:Ti,y_:U.Support.$e?Ti:$t,v_:"\x3c!--v2.0--\x3e © "+(new Date).getFullYear()+" AutoNavi ",db:config[14]||"",JH:config[15]||"",jscode:ea,gaodeserver:Di,vdataProxy:"",keytype:config[19],poiImgVersion:config[20],serviceConfig:Zt,Wbt:_t}),oa=function oa(){return ra};return Un.track("resource.load",{resolution:window.screen.width+"*"+window.screen.height,mob:U.Support.$e?1:0,vt:U.Support.isWebGL?1:0,dpr:window.devicePixelRatio,sdkversion:ra.version,key:ra.key,scale:U.Support.Ue?2:1},ra.Wbt),function(t){return t[1]&&(rr=t[1].slice(-2),nr=t[1].slice(0,4)),{Map:hr,ImageLayer:lr,createDefaultLayer:Hr,TileLayer:p,NebulaLayer:Ji,Buildings:Zr,Indoor:Oh,SkyLayer:ks,DistrictLayer:Nh,CanvasLayer:yr,CustomLayer:kr,GLCustomLayer:$r,LabelsLayer:ys,MassMarks:Cr,Event:U.Event,version:"2.0",plugin:na,LngLat:U.LngLat,Pixel:U.Pixel,Size:U.Size,Icon:se,Bounds:l,extent:Pt,Marker:Ie,Text:Ir,InfoWindow:Fe,ContextMenu:Ve,LabelMarker:Er,Polygon:Ho,Rectangle:$o,Ellipse:nh,Circle:oh,CircleMarker:fh,Polyline:mh,BezierCurve:Ah,OverlayGroup:co,VectorLayer:ns,LayerGroup:no,Control:Br,DomUtil:w,Util:U.Util,GeometryUtil:U.GeometryUtil,Browser:Nr,UA:{ie:Nr.ie,ie9:Nr.ie9,ie11:Nr.ie11,mobile:Nr.mobile,android:Nr.android,ios:Nr.ios},PlaneGeometryUtil:U.PlaneGeometryUtil,getConfig:oa,WebService:$e,extend:U.extend,Http:mi,addCss:_,BuryPoint:Jr,lcs:U.lcs,convertFrom:ir,Heatmap:ro,IndoorMap:jh,Mapbox:ao,BuildingLayer:Zr,Mark:Hh,Tracker:Un}}});var __AMap_callback=AMap.getConfig().callback,tryGetCallback,tryCallback;return __AMap_callback&&(tryGetCallback=function(){var c=__AMap_callback.split("."),context=window;do{if(!(context=context[c.shift()]))return null}while(c.length);return context||null},tryCallback=function(isFinalTry){var func=tryGetCallback();if(func){if("function"!=typeof func)throw new Error(__AMap_callback+" is not a function!");setTimeout(func,1)}else if(isFinalTry)throw new Error("Can not find callback: "+__AMap_callback+", try define it before load JsApi!")},document.body&&tryGetCallback()?tryCallback():setTimeout(function(){tryCallback(!0)},1)),AMap}); (typeof _cssload_=="function")&&_cssload_("logo",".amap-logo{display:block!important;pointer-events:none;}",true)})(["875a77a18a6355b388766c2e41de78e0",[113.839859,22.151077,114.447264,22.558639,114.173355,22.320048],"https://webapi.amap.com",1,"2.3.5.6",null,"810000","",true,false,false,true,null,false,"A",0,"https","webapi.amap.com",1,"0","20230111","0",""])