(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.Aw,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,h,l,d,v,g,y=t-i,p=r-i,m=e-a,b=n-a,w=y*b,A=L*y,T=A-(A-y),S=y-T,x=S*(f=b-(u=(A=L*b)-(A-b)))-(w-T*u-S*u-T*f),M=(T=(A=L*m)-(A-m),A=L*p,C[0]=x-((c=x-(v=(S=m-T)*(f=p-(u=A-(A-p)))-((d=m*p)-T*u-S*u-T*f)))+(s=x-c))+(s-v),C[1]=(l=w-((h=w+c)-(s=h-w))+(c-s))-((c=l-d)+(s=l-c))+(s-d),C[2]=h-((g=h+c)-(s=g-h))+(c-s),C[3]=g,function(e){for(var r=e[0],n=1;n<4;n++)r+=e[n];return r}(C)),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=(S=t-(T=(A=L*t)-(A-t)))*(f=b-(u=(A=L*b)-(A-b)))-((w=t*b)-T*u-S*u-T*f),T=(A=L*i)-(A-i),A=L*p,O[0]=x-((c=x-(v=(S=i-T)*(f=p-(u=A-(A-p)))-((d=i*p)-T*u-S*u-T*f)))+(s=x-c))+(s-v),O[1]=(l=w-((h=w+c)-(s=h-w))+(c-s))-((c=l-d)+(s=l-c))+(s-d),O[2]=h-((g=h+c)-(s=g-h))+(c-s),O[3]=g,n=I(4,C,4,O,N),x=(S=y-(T=(A=L*y)-(A-y)))*(f=e-(u=(A=L*e)-(A-e)))-((w=y*e)-T*u-S*u-T*f),T=(A=L*m)-(A-m),A=L*r,O[0]=x-((c=x-(v=(S=m-T)*(f=r-(u=A-(A-r)))-((d=m*r)-T*u-S*u-T*f)))+(s=x-c))+(s-v),O[1]=(l=w-((h=w+c)-(s=h-w))+(c-s))-((c=l-d)+(s=l-c))+(s-d),O[2]=h-((g=h+c)-(s=g-h))+(c-s),O[3]=g,a=I(n,N,4,O,_),x=(S=t-(T=(A=L*t)-(A-t)))*(f=e-(u=(A=L*e)-(A-e)))-((w=t*e)-T*u-S*u-T*f),T=(A=L*i)-(A-i),A=L*r,O[0]=x-((c=x-(v=(S=i-T)*(f=r-(u=A-(A-r)))-((d=i*r)-T*u-S*u-T*f)))+(s=x-c))+(s-v),O[1]=(l=w-((h=w+c)-(s=h-w))+(c-s))-((c=l-d)+(s=l-c))+(s-d),O[2]=h-((g=h+c)-(s=g-h))+(c-s),O[3]=g,o=I(a,_,4,O,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 l(e,!1,t,t._P),e=new l(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 h(t,e){return tu[2]||s[2]o||n===$&&l.point[0]>e[2])break;l.left?(f=u=i.Xc(l),u=u!==(s=i.MP())?i.NM(u):null,f=i.next(f),p(l,c=u?u.key:null,n),f&&2===w(l,f.key,t)&&(p(l,c,n),p(l,f.key,n)),u&&2===w(u.key,l,t)&&(p(c,(h=(h=u)!==s?i.NM(h):null)?h.key:null,n),p(l,c,n))):(l=l.IP,f=u=i.find(l),u&&f&&(u=u!==s?i.NM(u):null,f=i.next(f),i.remove(l),f)&&u&&w(u.key,f.key,t))}return a}(f,s,u,r)),h=[],l=0;l>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=[h[0]-a[0],h[1]-a[1]],r=o[0]*f[1]-o[1]*f[0],n=h[0]*a[1]-h[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"}};function l(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;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:"1756187598305",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 l=n=t[0],d=i=t[1],v=r;v=f&&d.x<=h&&d.y>=c&&d.y<=l&&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,h=a.y,l=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,h,f,l,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,h,f,l,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,h,f,l,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,h,f,l,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,l=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,h=r?i-1:0,l=r?-1:1,i=t[e+h];for(h+=l,a=i&(1<<-c)-1,i>>=-c,c+=s;0>=-c,c+=n;0>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=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?h/n:h*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+l]=255&s,l+=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,h=r?i-1:0,l=r?-1:1,i=t[e+h];for(h+=l,a=i&(1<<-c)-1,i>>=-c,c+=s;0>=-c,c+=n;0>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=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?h/n:h*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+l]=255&s,l+=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},At=function At(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)},Tt=function Tt(t,e){for(var f,c,h,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,l=0;l<=y;l++)t.$ti[l]=0;for(r[2*t.Zti[t.Bti]+1]=0,f=t.Bti+1;f<573;f++)u<(l=r[2*r[2*(c=t.Zti[f])+1]+1]+1)&&(l=u,g++),r[2*c+1]=l,n>=7;n>1;1<=o;o--)$t(t,r,o);for(f=a;o=t.Zti[1],t.Zti[1]=t.Zti[t.Wti--],$t(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++,$t(t,r,1),2<=t.Wti;);t.Zti[--t.Bti]=t.Zti[1],Tt(t,e),St(r,u,t.$ti)},Ct=function Ct(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),kt(t,s,ut)):(c(t,4+(n?1:0),3),Ft(t,t.Yti.Oti+1,t.Gti.Oti+1,o+1),kt(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),h(t,256,s),At(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}()),k=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,he=r.mei,le=r.Tei,de=r.Aei,ve=r.Iei,ge=r.Mei,ye=r.Nei,Te=286,Se=30,xe=19,Me=2*Te+1,Pe=15,w=258,A=262,T=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-A)<=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=he||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=T,I(t),0!==r.pending)return r.yri=-1,m}if(57===r.status)if(t.Wei=0,$(r,31),$(r,139),$(r,8),r._ri)$(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)),$(r,255&r._ri.time),$(r,r._ri.time>>8&255),$(r,r._ri.time>>16&255),$(r,r._ri.time>>24&255),$(r,9===r.level?2:r.qti>=he||r.level<2?4:0),$(r,255&r._ri.os),r._ri.wri&&r._ri.wri.length&&($(r,255&r._ri.wri.length),$(r,r._ri.wri.length>>8&255)),r._ri.gri&&(t.Wei=k(t.Wei,r.Nti,r.pending,0)),r.pri=0,r.status=69;else if($(r,0),$(r,0),$(r,0),$(r,0),$(r,0),$(r,9===r.level?2:r.qti>=he||r.level<2?4:0),$(r,3),r.status=T,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=k(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=k(t.Wei,r.Nti,r.pending-o,o)),r.pri=0}r.status=73}if(73===r.status){if(r._ri.name){var h,c=r.pending;do{if(r.pending===r.eri){if(r._ri.gri&&r.pending>c&&(t.Wei=k(t.Wei,r.Nti,r.pending-c,c)),I(t),0!==r.pending)return r.yri=-1,m;c=0}}while(h=r.pric&&(t.Wei=k(t.Wei,r.Nti,r.pending-c,c)),r.pri=0}r.status=91}if(91===r.status){if(r._ri.Rri){var d,l=r.pending;do{if(r.pending===r.eri){if(r._ri.gri&&r.pending>l&&(t.Wei=k(t.Wei,r.Nti,r.pending-l,l)),I(t),0!==r.pending)return r.yri=-1,m;l=0}}while(d=r.pril&&(t.Wei=k(t.Wei,r.Nti,r.pending-l,l))}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;$(r,255&t.Wei),$(r,t.Wei>>8&255),t.Wei=0}if(r.status=T,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===he?qe(r,e):r.qti===le?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?($(r,255&t.Wei),$(r,t.Wei>>8&255),$(r,t.Wei>>16&255),$(r,t.Wei>>24&255),$(r,255&t.Xei),$(r,t.Xei>>8&255),$(r,t.Xei>>16&255),$(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+Tr[t[r]]>e?r:e};var kr=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},Lr=Object.prototype.toString,Cr=r.lei,Nr=r.aei,_r=r.hei,Fr=r.sei,Or=r.uei,Er=r.cei,Ur=r.Eei,jr=r.Iei,Rr=r.Nei;function Dr(t){this.options=wr_assign({level:Ur,method:Rr,$ri:16384,Zri:15,Bri:8,qti:jr},t||{});t=this.options;if(t.raw&&0=M?(L=$[o[c]-M],x[o[c]-M]):(L=96,0),b=1<<(k=f-g),h=w=1<>g)+(w-=b)]=k<<24|L<<16|C|0,0!==w;);for(b=1<>=1;if(m=0!==b?(m&b-1)+b:0,c++,0==--P[f]){if(f===l)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,li,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=k(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=_):(15&f)!==Sn?(t.Aj="unknown compression method",r.mode=_):(c-=4,S=8+(15&(f>>>=4)),0===r.hni&&(r.hni=S),15r.hni?(t.Aj="invalid window size",r.mode=_):(r.jri=1<>8&1),512&r.flags&&4&r.wrap&&(M[0]=255&f,M[1]=f>>>8&255,r.check=k(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=k(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=k(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=k(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&&(S=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),S)),512&r.flags&&4&r.wrap&&(r.check=k(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;S=n[a+d++],r.head&&S&&r.length<65536&&(r.head.name+=String.fromCharCode(S)),S&&d>9&1,r.head.done=!0),t.Wei=r.check=0,r.mode=N;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=_}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=_;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[$[r.uni++]]=0;if(r.tni=r.pni,r.rni=7,P={ini:r.rni},x=hn(0,r.cni,0,19,r.tni,0,r._ni,P),r.rni=P.ini,x){t.Aj="invalid code lengths set",r.mode=_;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=_;break}S=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=_;break}for(;d--;)r.cni[r.uni++]=S}}if(r.mode===_)break;if(0===r.cni[256]){t.Aj="invalid code -- missing end-of-block",r.mode=_;break}if(r.rni=9,P={ini:r.rni},x=hn(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=_;break}if(r.nni=6,r.eni=r.yni,P={ini:r.nni},x=hn(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=_;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,A,T,S,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,h=P.window,l=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)+(l&(1<>>=b,d-=b),d<15&&(l+=x[r++]<>>=b=m>>>24,d-=b,!(16&(b=m>>>16&255))){if(0==(64&b)){m=g[(65535&m)+(l&(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=N;break}if(64&m){t.Aj="invalid literal/length code",r.mode=_;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=_;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=_;break}r.mode=16204;case 16204:if(0===u)break t;if(r.offset>(d=l-u)){if((d=r.offset-d)>r.Jri&&r.lni){t.Aj="invalid distance too far back",r.mode=_;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",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=polyfill.Ra&&(F[0]-=y[0],F[1]-=y[1]),I.path[2*T]=F[0],I.path[2*T+1]=F[1]}M&&C[0]&&"zh-Hans"!==C[0].lang&&(I.lang="global"),I.du=u,I.Fp=s,I.Ep=f,I.zIndex=b,I.lineCap=x[0],I.RQ=x[1],I.id=0=polyfill.Ra&&(e[0]-=h.center[0],e[1]-=h.center[1]),e},i.prototype.A0=function(i,t){return i.minzoom-t.minzoom||i.maxzoom-t.maxzoom},i.prototype.Tw=function(i){return i.sort(function(i,t){return i.zIndex-t.zIndex}),i},i.prototype.Na=function(i){return i.sort(function(i,t){return i.rank-t.rank}),i},i.prototype.xw=function(i,t){var e=i.data,o=new polyfill._w;if(e.Uc=o,!e.$c){e.$c=new polyfill.J_,e.road=e.road||[];var l=i.Mw.slice(0);if(i.zo.z<=polyfill.za&&(l[0]=0,l[1]=0),e.road.push({name:"",rank:1,maxzoom:polyfill.zoomRange[1],minzoom:polyfill.zoomRange[0],path:[i.Ro[0]-l[0],i.Ro[1]-l[1],i.Ro[2]-l[0],i.Ro[1]-l[1],i.Ro[2]-l[0],i.Ro[3]-l[1],i.Ro[0]-l[0],i.Ro[3]-l[1],i.Ro[0]-l[0],i.Ro[1]-l[1]],Fp:-2,Ep:-2,shield:"",shieldType:0,du:13,lineCap:"butt",RQ:"butt"}),e.road)for(var n=0,h=e.road;n KEY异常,错误信息:"+i.info)):o(null,i)})["catch"](function(i){"AbortError"!==i.name&&o(i.message||"unknown error")}),{cancel:function(){l.abort()}}):(h={url:t,method:e.tileCombo?"POST":"GET",body:"key="+e.key+"&oversea="+e.oversea,headers:{"Content-Type":"application/x-www-form-urlencoded"}},r=i.send("requestPost",h,function(i,t){i?(""===i&&r&&r.cancel&&r.cancel(),r=undefined,o(i)):(r=undefined,o(null,t))}))}var DistrictSourceWorker=function(){function DistrictSourceWorker(i){this.parent=i,this.fW={}}return DistrictSourceWorker.prototype.bw=function(i,t,e,o,l){var n=this,h=new XMLHttpRequest;return h.onreadystatechange=function(){var i;4!==h.readyState||200!==h.status&&204!==h.status||(i=new polyfill.tW(new polyfill.pw(new Uint8Array(h.response))),i=n.Ow(i,{x:t.x,y:t.y,z:t.z,projectionId:e,tileSize:o}),l(null,polyfill.Ln({zo:t},i)))},h.open("GET",i,!0),h.responseType="arraybuffer",h.send(),{cancel:function(){h.abort()}}},DistrictSourceWorker.prototype.Ow=function(s,i){var e=i.x,o=i.y,l=i.z,n=i.tileSize,h=i.projectionId,i=(s.z=l,s.x=e,s.y=o,polyfill.ProjectionManager.getProjection(h).getResolution(l)),r=(s.Ro=polyfill.$Q(e,o,l,i,n),s.zS=polyfill.lcs.getLocalByCoord([s.Ro[0],s.Ro[1]]),polyfill.ProjectionManager.getProjection(h).getResolution(l));return polyfill.vx(s.layers,function(a){var i=a.Cw,t=(a.Ah=[],a.scale=r*n/a.extent,polyfill.V[h].Xs(n*e,n*o,l));a.ox=t[0],a.oy=t[1],polyfill.forEach(i,function(i,t){if((i=a.Gw(t)).Dw(),a.Ah.push(i),i.lines&&0=l[l.length-1][0])return this.HU(i,l[l.length-1][1],e);for(var n=1,h=l.length;nl[n-1][0]&&e<=l[n][0]){var r=this.HU(i,l[n-1][1],e),a=this.HU(i,l[n][1],e);if(r instanceof Array){for(var s=new Array(r.length),f=0;ft){e=i.stops[o][1];break}e=i.stops[l-1][1]}else if("interpolate"===i[0]){for(var n=i.slice(3),h=[],r=0;rt){e=h[o][1];break}e=h[l-1][1]}}return e}},Tr:function(i,t){if(i){var e=void 0;if(i.stops)for(var o=0,l=i.stops.length;ot){e=i.stops[o][1];break}e=i.stops[l-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),l=[],n=0;nt||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,u.zIndex),s=(a=u.paint)["line-color"],n=this.HU(e,s,t),h=this.HU(e,a["line-width"],t),s=a["line-opacity"]===undefined?1:a["line-opacity"],r=this.HU(e,s,t)):"fill"!==i[l].type||u.minzoom&&u.minzoom>t||(o=Math.max(o,u.zIndex),s=(a=u.paint)["fill-color"],f=this.HU(e,s,t))}return{zIndex:o,fillColor:f,fillOpacity:1,strokeWeight:h,strokeColor:n,strokeOpacity:r}},Xr:function(i,t,e){var o,l,n,h,r,a,s,f,u,d,p,x,y=(i=i[0]).paint,c=i.layout;if("symbol"===i.type)return o=this.HU(e,y["text-color"],t),l=this.HU(e,y["text-halo-color"],t),a=this.HU(e,y["text-halo-width"],t),n=y["icon-opacity"]===undefined?1:y["icon-opacity"],n=this.HU(e,n,t),y=y["text-opacity"]===undefined?1:y["text-opacity"],y=this.HU(e,y,t),h=r=void 0,0===a&&(l=""),c["icon-image"]&&(r=this.HU(e,c["icon-image"],t),a=this.kr[r])&&n&&(a.height,h=[-a.width/2,-a.height/2,a.width,a.height,a.x,a.y,a.width,a.height]),a=this.HU(e,c["icon-rotation-alignment"],t),s=c["text-max-width"],f=this.HU(e,c["text-anchor"]||"center",t),(u=this.HU(e,c["text-font"],t)||"Microsoft YaHei")instanceof Array&&(u=u.join(" ")),d=c["text-offset"]?this.HU(e,c["text-offset"],t):[0,0],p=this.HU(e,c["text-size"],t),x="",y&&c["text-field"]&&(x=this.HU(e,c["text-field"]||"{name}",t)),{zIndex:i.zIndex,Jr:a,Kr:o||"black",Qr:l,th:(i.minzoom||1)+.5,ih:(i.maxzoom||20)+.5,eh:n,nh:r,qU:h,oh:s,textAnchor:f,ah:u,sh:d,rh:p,name:x}},lh:function(i,t,e){var o=[],l=this.Pr(i,t,e);return l&&(l.type="line",o.push(l)),(l=this.uh(i,t,e)).length&&o.push.apply(o,l),o},uh:function(i,t,e){for(var o=[],l=0;l=o[o.length-1][0])return this.HU(i,o[o.length-1][1],e);for(l=1,n=o.length;l"===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 l,n=t.vt,h=(n.labels=[],[]);for(l in n.layers)if(n.layers.hasOwnProperty(l)){var r=n.layers[l],a=r.Ah;h.push(l);for(var s=0,f=a.length;sthis.layers.length&&(this.layers=h),o(null,{vt:n})}},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,l,n,h,t,e,r){var a=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=l.z,t=l.x,e=l.y,o.data={},o=a.Ow(o,{x:l.x,y:l.y,z:l.z,projectionId:n,tileSize:h}),a.wQ(o),o.zo=new polyfill.ca(i,t,e),a.FQ(o),delete o.road,r(null,polyfill.Ln({zo:l},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,l=i.y,s=i.z,n=i.tileSize,f=i.projectionId;e.z=s,e.x=o,e.y=l;for(var i=polyfill.ProjectionManager.getProjection(f).getResolution(s),i=polyfill.$Q(o,l,s,i,n),h=(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=l,i.data.poilabel=((h={})[i.z+","+i.x+","+i.y]=n,h),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.vY.finish:polyfill.vY.pause},eb:!1,nb:!0}),i.prototype.hQ=function(i,t){if(i)for(var e=this.SQ(i)||[],o=0,l=e=new LabelFormatMap$1[i.type]({vn:this.vn}).DQ(e,{zoom:t});o=this.PS&&(this.FS=0),this.BS=this.FS}},z.TS.prototype.NS=function(){this.flush(),this.ES=null},z.TS.prototype.US=function(i){this.NS(),this.ES=i},z.TS.prototype.init=function(i){i||(this.BS=0,this.FS=0)},z.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()},z.TS.prototype.GS=function(i){this.OS[this.FS++]=i,this.FS>=this.PS&&this.flush()},z.TS.prototype.HS=function(i){return(i=this.FS-i-1)<0&&(i+=this.PS),this.OS[i]},z.VS=function(){},z.VS.prototype.US=function(i){this.ES=i},z.VS.prototype.NS=function(){this.ES=null},z.VS.prototype.init=function(){var i=5;for(this.ZS=0,this.YS=-1;i--;)this.ZS=this.ZS<<8|this.ES.JS()},z.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},z.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)},z.QS=function(i,t){for(;t--;)i[t]=1024},z.KS=function(i){this.tR=[],this.iR=i},z.KS.prototype.init=function(){z.QS(this.tR,1<>7&1,t<<=1,l=l<<1|(o=i.qS(this.uR,(1+e<<8)+l)),e!==o){for(;l<256;)l=l<<1|i.qS(this.uR,l);break}}while(l<256);return 255&l},z.pR=function(){},z.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)]},z.gR=function(){this.wR=new z.TS,this._R=new z.VS,this.kR=[],this.MR=[],this.SR=[],this.RR=[],this.zR=[],this.CR=[],this.AR=[],this.IR=[],this.$R=new z.KS(4),this.LR=new z.oR,this.DR=new z.oR,this.TR=new z.pR,this.PR=-1,this.OR=-1,this.AR[0]=new z.KS(6),this.AR[1]=new z.KS(6),this.AR[2]=new z.KS(6),this.AR[3]=new z.KS(6)},z.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))},z.gR.prototype.BR=function(i,t,e){var o=1<>1)-1),n<14)a+=z.nR(this.IR,a-n-1,this._R,h);else if((a=(a+=this._R.XS(h-4)<<4)+this.$R.eR(this._R))<0){if(-1===a)break;return!1}}else a=n;if(d<=a||a>=this.OR)return!1;this.wR.WS(a,o),d+=o,p=this.wR.HS(0)}return this.wR.flush(),this.wR.NS(),this._R.NS(),!0},z.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))},z.NR=function(i,t){var e,o=new z.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,a,l=i.subarray(t,e),n=0,h="",r=0,n=0;n>>7==0?("0"!==(o=String.fromCharCode(l[n])).charCodeAt(0).toString(16)&&(h+=o),n+=1):252==(252&a)?(r=(r=(r=(r=(3&l[n])<<30)|(63&l[n+1])<<24|(63&l[n+2])<<18)|(63&l[n+3])<<12)|(63&l[n+4])<<6|63&l[n+5],h+=String.fromCharCode(r),n+=6):248==(248&a)?(r=(7&l[n])<<24,r=(r=(r|=(63&l[n+1])<<18)|(63&l[n+2])<<12)|(63&l[n+3])<<6|63&l[n+4],h+=String.fromCharCode(r),n+=5):240==(240&a)?(r=(15&l[n])<<18,r=(r|=(63&l[n+1])<<12)|(63&l[n+2])<<6|63&l[n+3],h+=String.fromCharCode(r),n+=4):224==(224&a)?(r=(r=(31&l[n])<<12)|(63&l[n+1])<<6|63&l[n+2],h+=String.fromCharCode(r),n+=3):192==(192&a)?(r=(63&l[n])<<6,r|=63&l[n+1],h+=String.fromCharCode(r),n+=2):("0"!==(o=String.fromCharCode(l[n])).charCodeAt(0).toString(16)&&(h+=o),n+=1);return h.trim()}var o=new RegExp("^[+\\-]?[0-1]*[.]?[0-1]*$","gi");function Ni(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,l=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(){h+=16;var t=o+a.h(h/r);t>=e.xt[1]||(e.bt(i,t),o+1<=t&&(U.Util.cancelAnimFrame(s),e.lt=!1,e.R="enabled",e.tt(),e.N()),(e.lt||h<400)&&(s=U.Util.requestAnimFrame(n)))},s=U.Util.requestAnimFrame(n))},i.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]))},i.prototype.N=function(){this.wt&&2<=this.ct&&(this.ft.enable(),this.tt(),this.lt=!1,this.wt=!1)},i.prototype.bt=function(t,i){var n,s,e,r=this._map.getView(),o=(h=r.getStatus()).center,a=h.zoom,u=h.rotation,h=h.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[h].nt(n[0],n[1],a),s=U.V[h].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(),o[0],o[1])}}),this.G("zooming"))},i.prototype.tt=function(t){t&&0!==t.button||(this.S(),this.C(),this.G("zoomend"))},i.prototype.S=function(){this.j.removeEventListener("dblclick",this.St),this.j.removeEventListener("touchmove",this.dt)},i.prototype.C=function(){delete this.$,delete this.U,delete this.U},i.prototype._t=function(t,i){var n=i[0]-t[0],i=i[1]-t[1];return Math.sqrt(n*n+i*i)},i.prototype.G=function(t,i){this._map.getBindHandler().fireEvent(t,i)};var $=i;function i(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)}it.prototype.isEnabled=function(){return"disabled"!==this.R},it.prototype.isActive=function(){return"active"===this.R},it.prototype.enable=function(){this.isEnabled()||(this.R="enabled")},it.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"}},it.prototype.ht=function(){return!!this.lt},it.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))},it.prototype.Z=function(t){var i,n,s,e,r,h,o,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=(h=(n=this._map.getView()).getStatus()).rotation,e=h.center,r=h.zoom,g=void 0===(g=h.Tt)?h.projectionId:g,h=h.pitch,o=(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),10nt?1/450:.01,h=2/(1+Math.exp(-Math.abs(this.$t*h))),this.$t<0&&0!==h&&(h=1/h),r=this.Yt(n),r=Math.min(this._map.getZooms()[1],Math.max(2,this.Vt(r*h))),h=w.mousePos(this.j,t,this._map),t=[this.j.clientWidth/2,this.j.clientHeight/2],u=this._t(t,h),o=Math.atan((h[1]-t[1])/(h[0]-t[0])),a=-a/180*Math.PI+o,o=[-Math.cos(a)*u,Math.sin(a)*u],h[0]-t[0]<0&&(o[0]=-o[0],o[1]=-o[1]),a=U.V[e].nt(o[0],o[1],n),u=U.V[e].nt(o[0],o[1],r),t=Math.pow(2,r-n),this._map.XT(o),i.setOptions({kt:{pos:h,Mt:r,Rt:u,zt:a,scale:t,center:U.set(U.create(),s[0],s[1])}}),this.$t=0)},et.prototype.Yt=function(t){return Math.pow(2,t)},et.prototype.Vt=function(t){return Math.log(t)/Math.LN2},et.prototype._t=function(t,i){var n=i[0]-t[0],i=i[1]-t[1];return Math.sqrt(n*n+i*i)},et.prototype.C=function(){delete this.q,delete this.$,delete this.U,delete this.B},et.prototype.G=function(t,i){this._map.getBindHandler().fireEvent(t,i)},et);function et(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},e.prototype.shift=function(){var t=this.Wo;if(t)return this.Wo[h]?(this.Wo=this.Wo[h],this.Wo[o]=undefined):(this.Wo=undefined,this.Zo=undefined),t[h]=t[o]=undefined,t.value.destroy(),this.qo["delete"](t.key),--this.size,[t.key,t.value]},e.prototype.find=function(t){return(t=this.qo.get(t))?t.value:undefined},e.prototype.has=function(t){return this.qo.has(t)},e.prototype["delete"]=function(t){if(t=this.qo.get(t))return this.qo["delete"](t.key),t[h]&&t[o]?(t[o][h]=t[h],t[h][o]=t[o]):t[h]?(t[h][o]=undefined,this.Wo=t[h]):t[o]?(t[o][h]=undefined,this.Zo=t[o]):this.Wo=this.Zo=undefined,this.size--,t.value},e.prototype.clear=function(){this.Wo=this.Zo=undefined,this.size=0,this.qo.clear()},e.prototype.AN=function(t){return"loaded"!==t.value.status||(t=t.value.stamp)&&this.wN&&t===this.wN},e.prototype.QF=function(t){this.wN=t},e.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}},e);function e(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:ct),i&&(this.assign(i),t<1)&&(this.Bo=this.size)}var dt=function(t,i){this.key=t,this.value=i,this[h]=undefined,this[o]=undefined},pt=(vt.prototype.next=function(){var t=this.Yo;return t?(this.Yo=t[h],{done:!1,value:t.key}):{done:!0,value:undefined}},vt);function vt(t){this.Vo=t}yt.prototype.next=function(){var t=this.Yo;return t?(this.Yo=t[h],{done:!1,value:t.value}):{done:!0,value:undefined}};var mt=yt;function yt(t){this.Vo=t}bt=s,U.Ei(Mt,bt),Mt.prototype.shift=function(){var t=this.Wo;if(t)return this.Wo[h]?(this.Wo=this.Wo[h],this.Wo[o]=undefined):(this.Wo=undefined,this.Zo=undefined),t[h]=t[o]=undefined,this.qo["delete"](t.key),this.emit("delete",{key:t.key}),--this.size,[t.key,t.value]},Mt.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=o,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:h,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.VH=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,h;t.length&&(e=this.Pa.z,r=(this.Pa.ja+this.Pa.Oa)/2,h=(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,h="undefined"!=typeof Float64Array;if(1===arguments.length&&(arguments[0]instanceof Array||h&&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)&&(h=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(h,n)),this.southWest=e,this.northEast=r}jt=ut,U.Ei(Bt,jt),Bt.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))},Bt.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)},Bt.prototype.c0=function(t,e,r){var h=this;return function(t,i){var n,s;void 0===i&&(i="image"),e&&(n=void 0,"image"===i?(n=t.target,s=n,h._s?h._s.update(s):(h._s=e.createTexture(s,{Zi:!0}),h._s.bind(e.gl.CLAMP_TO_EDGE,e.gl.LINEAR,e.gl.LINEAR)),h.Fo(!0)):"canvas"===i&&(s=h.mmt(n=t,function(){h._s?h._s.update(s):(h._s=e.createTexture(s,{Zi:!0}),h._s.bind(e.gl.CLAMP_TO_EDGE,e.gl.LINEAR,e.gl.LINEAR)),h.Fo(!0)}))),r()}},Bt.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]]),h=U.lcs.getSize(),r=[s.x-n.x,s.y-n.y,t.x-n.x,t.y-n.y],o=0;o>>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,o,h,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 o(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=h(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=h(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)},h.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=o.offsetWidth,e=o.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"),h=r.length,o=new Map;if(0===h)s(o);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,h,o,a,u,f,c,l,d,p,v,m,y,b,g;if(!t||"AMap.LabelMarker"===t.type)return i=this._map.getProjection(),this.AL={},c=t.getOptions(),(n=t._position)?(s=[U.tc.Mp,U.tc.Rp],e=void 0===(e=c.zooms)?s:e,r=c.opacity,h=c.rank,v=c.icon,o=c.richText,a=c.text,u=c.zIndex,f=c.rotation,c=void 0===(c=c.visible)||c,l=U.Bs(n)?n.toJSON():n,d=a&&a.content||"",p=a&&a.style,v&&v.image&&(this.Fs[v.image]=1),a&&a.content&&this.Ws(a.content),v=v&&v.image?[{type:"image",image:v.image||"",size:v.size,clipOrigin:v.clipOrigin,clipSize:v.clipSize,offset:v.offset,anchor:v.anchor,retina:v.retina}]:{},g=y=0,p&&(y=!p.strokeWidth&&p.strokeColor?1:p.strokeWidth||0,m=!p.strokeColor&&p.strokeWidth?"#fcfcfc":p.strokeColor,g=!p.borderWidth&&p.borderColor?1:p.borderWidth||0,b=!p.borderColor&&p.strokeWidth?"#ccc":p.borderColor),m=p?{fontFamily:p.fontFamily,fontSize:p.fontSize,fontWeight:p.fontWeight,fillColor:p.fillColor,strokeColor:m,strokeWidth:y,borderColor:b,borderWidth:g,padding:this.Gs(p.padding||[3]),backgroundColor:p.backgroundColor,fold:p.fold}:{},y=U.labelsUtil.Jj(e,a&&a.zooms||s),b=a&&d?{txt:a.content||"",direction:a.direction,offset:a.offset,zooms:y,style:m}:{},g=i.project(l[0],l[1]),{data:{id:t.hS,name:d,txt:d,position:[g[0],g[1],n[2]||0],positionType:"lnglat",extData:{id:t.hS},rank:h,rotation:f,richText:o,zooms:e},opts:{visible:c,opacity:r,zooms:e,zIndex:u,icon:v,richText:o,text:b,rotation:f,height:n[2]||0}}):null},f.prototype.Ws=function(t){var i=this;void 0===t&&(t=""),Array.from(t).forEach(function(t){i.Es[t]=1})},f.prototype.Os=function(t){U.Bs(t)?this.Us=U.lcs.getLocalByCoord([t.KL,t.kT]):this.Us=U.lcs.getLocalByCoord(t)},f.prototype.Gs=function(t){if("string"==typeof t&&(t=(t=t.trim()).split(" ")),"[object Array]"!==Object.prototype.toString.apply(t))return[3,3,3,3];for(var i=t.length,n=0;n=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:o.data.texture,Js:o.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=o.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,h=-(t[3]-e)/n,o=-(t[1]-e)/n;return{Oa:Math.floor((t[2]+e)/n/s),Ea:Math.min((1<this.Qs[1]&&(s=this.Qs[1]),h.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,o.push(d),n)).push(v)}return a.length&&i.push(a),this.Pa=r,this.Fo(u),o},_t.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 h=[],o=[],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?o:h).push(y)}o.length&&i.push(o),n=h}if(this.qa)for(var b=this.xt[0],r=t-1;n.length&&b<=r;--r){for(var o=[],h=[],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?o:h).push(new U.ca(a,d,p)))}o.length&&i.push(o),n=h}return i},_t.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},_t.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&&(h.Ro[0]-=i.center[0],h.Ro[1]-=i.center[1],h.Ro[2]-=i.center[0],h.Ro[3]-=i.center[1]),n=l.fe(new Float32Array([h.Ro[0],h.Ro[1],0,1,h.Ro[2],h.Ro[1],1,1,h.Ro[0],h.Ro[3],0,0,h.Ro[2],h.Ro[1],1,1,h.Ro[2],h.Ro[3],1,0,h.Ro[0],h.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: "+h.zo.z,10,30),e.fillText("x: "+h.zo.x,10,60),e.fillText("y: "+h.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),h.data={texture:t,zs:n,Js:r,Hs:i}),h.status=U.TileState.LOADED,p()}r=a[0],o=u[0],e=a[1],h.Ro=[r,u[1],o,e],h.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):(h.data=t,h.status=U.TileState.LOADED)}.bind(m),function(){h.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])},_t.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 Ut,Gt=_t;function _t(t,i,n,s){return(i=Ut.call(this,t,i,n,s)||this).ua=new wt(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}Yt=ut,U.Ei(Xt,Yt),Xt.prototype.loadData=function(t,i,n){return this.ze=i,this.Oo||(this.Fo(!0),n()),!0},Xt.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],h=0;h=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?o:h).push(new U.ca(a,d,p)))}o.length&&i.push.apply(i,o),n=h}return i},Qt.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},Qt.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]]},Qt.prototype.jE=function(t){for(var i=!!t.length,n=0,s=t;nthis.xt[1])){this.Da(h);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,o=this,n=0,s=h.length;nU.za;z&&(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=pi.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 vi,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=o,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:h,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,h={};for(e in i)i.hasOwnProperty(e)&&(r=i[e],h[e]=new U.La(r.zo,r));s.rO({Ta:!0,labels:h,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,h;t.length&&(e=this.Pa.z,r=(this.Pa.ja+this.Pa.Oa)/2,h=(this.Pa.Fa+this.Pa.Ea)/2,t.sort(function(t,i){var n=(t.x<this.xt[1])){this.Da(o);for(var l=this,i=0,n=o.length;iU.za&&(h.Ro[0]-=t.center[0],h.Ro[1]-=t.center[1],h.Ro[2]-=t.center[0],h.Ro[3]-=t.center[1]),i=a.fe(new Float32Array([h.Ro[0],h.Ro[1],0,1,h.Ro[2],h.Ro[1],1,1,h.Ro[0],h.Ro[3],0,0,h.Ro[2],h.Ro[1],1,1,h.Ro[2],h.Ro[3],1,0,h.Ro[0],h.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),h=(r=0!==e?(n=e/180*Math.PI,e=t-this._size[0]/2,s=-(i-this._size[1]/2),h=Math.sqrt(e*e+s*s),e=Math.atan(e/s)-n,s<0&&(e+=Math.PI),n=h*Math.sin(e),s=h*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 h[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(),h=(U.Util.getOptimalZoom(this.bt)>=U.Ra&&(s=(h=U.lcs.getLocalByCoord([this.uu[0],this.uu[1]]).center)[0],e=h[1]),U.ProjectionManager.getProjection(this.su)),o=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(o[0],u[0],r[0],a[0])+s,s=Math.max(o[0],u[0],r[0],a[0])+s,c=Math.min(o[1],u[1],r[1],a[1])+e,o=Math.max(o[1],u[1],r[1],a[1])+e,u=h.unproject(f,c),r=h.unproject(s,o),a=(i[0]=f,i[1]=c,i[2]=s,i[3]=o,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.vY.finish:U.vY.pause},eb:!1,nb:!0});var Xn=Jn;function Jn(t,i){this.lang=t,this.mG=i,this.type="LangSDFTask",this.offset=0,this.result=[]}Hn.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)},Hn.prototype.TZ=function(t,i){this.Rc(t.data,{name:t.hash,cb:i})},Hn.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 h=0,o=t;h 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.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.Uh.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.vY.finish:U.vY.pause},eb:!1,nb:!0});var Rs=Es;function Es(t,i){this.bY=t,this.mG=i,this.type="SDFCombineTask",this.offset=0,this.result=[]}Ps.prototype.dynamicTextSDFInfoLoaded=function(t){var i=this.map.R_;i&&"SDFManagerBase"!==i.CLASS_NAME&&(i.Ju(t.data),this.Eo())},Ps.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,h=new V(0,.6,.15,1),u=o=0,a=function(){o+=16;var t=f._view.getStatus().zoom,i=c+p*h.h(o/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,h=void 0===(h=s.anchor)?ve.Nm:h,o=void 0===(o=s.offset)?[0,0]:o,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"),(h||o)&&(c=this._getOffset(h,o),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=ve,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=ye,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&&0o.getWidth()?s=20-r[0]:o.getWidth()o.getHeight()?e=5-r[1]:o.getHeight()o&&(e=o-f[0]-s[1],h=!0),u=U.Ra?(i=U.lcs.getLocalByCoord([t[0],t[1]]),this.Us=i.center):this.Us=[0,0]},nr.prototype.pB=function(t,i){var n=[0,0];return n[0]=t[0]-i[0],n[1]=t[1]-i[1],n};var tr,ir=nr;function nr(t){this.Us=[0,0],t||console.error("需要传入 map 实例对象。new AMap.CustomCoords(map);"),this.map=t,this.mB()}var sr=[116.397128,39.916527],er=Qs;U.Ei(S,er),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),h=[],o=0;othis._opts.zooms[1])},O);function O(t){void 0===t&&(t={});var n=_h.call(this)||this,i=(n.Ix=function(t){var i;n._opts.path=U.jsonLngLatData(t),(t=dh(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=Zh,(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 Vh(){var n=null!==Jh&&Jh.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)?ph:U.Ox(i)?vh:mh)([t.lng,t.lat],i))},n}Jh=Ii,U.Ei(Vh,Jh),Vh.prototype.getOptions=function(){return U.extend({},this._opts)},Vh.prototype.getArea=function(){var t=this.aE;return t?+xh(t).toFixed(2):0},Hh=Zt=Vh,U.Ei(Kh,Hh),Kh.prototype.init=function(t){t=t||this._opts,this._opts=this.nY(t),this.setBounds(t.bounds)},Kh.prototype.setBounds=function(t){t&&(U.xs(t)||(t=new l(t)),this._opts.bounds=t,this.ir=t.clone(),this.cE(),this.to())},Kh.prototype.ZB=function(t){var i,n,s;this._map&&(this._needUpdate=!1,i=this._opts.bounds)&&(n=this._map,(s=dh(Dh(i)))&&(this.ir=i.clone(),this.aE=s,"d"===n.baseRender?this.X$(s):this.Q$(s,t)),this.to())},Kh.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))},Kh.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))},Kh.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()},Kh.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?Dh(s):t},Kh.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},Kh.prototype.getCenter=function(){if(this._opts.bounds)return this._opts.bounds.getCenter()};var Hh,qh=Kh;function Kh(t){void 0===t&&(t={});var n=Hh.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}Qh=Zt,U.Ei(to,Qh),to.prototype.init=function(t){t=t||this._opts,this._opts=this.nY(t),this.setCenterAndRadius(this._opts.center,this._opts.radius)},to.prototype.setCenter=function(t){this.setCenterAndRadius(t,this._opts.radius)},to.prototype.setRadius=function(t){this.setCenterAndRadius(this._opts.center,t)},to.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])},to.prototype.getRadius=function(){return this._opts.radius},to.prototype.getPath=function(){var t;return this._opts.center&&this._opts.radius&&(t=Lh(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&&o.push([h[a][0],h[a][1]]);s.push(o)}u.D_(s)}else u.EI=i,u.D_(u.q$)}},u}uo=li,U.Ei(fo,uo),fo.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))},fo.prototype.destroy=function(){this.Px&&(this.Px.destroy(),delete this.Px),uo.prototype.destroy.call(this)},fo.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},fo.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))},fo.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 h=void 0;e>1,h=n-i,o=n,a=t[i][0],u=t[i][1],f=t[n][0],c=t[n][1],l=i+1;l 使用 JSAPI 安全模式,代理服务请以_AMapService 作为一级路由"))),{key:config[0],host:config[2],domain:config[17],server:ut,protocol:Mi,version:config[4],adcode:config[6],callback:config[5],appname:Oi,client:Pt,markers:Kt,pc:"http://gaode.com",mo:"http://m.amap.com",tileCombo:!0,tileVersion:"",styleVersion:"",iconVersion:"",iconClass:"",styleClass:"",workerUrl:"",YT:zi,qT:$o,y_:U.Support.$e?$o:zi,v_:"\x3c!--v2.0--\x3e © "+(new Date).getFullYear()+" AutoNavi ",db:config[14]||"",JH:config[15]||"",jscode:Ii,gaodeserver:Zt,vdataProxy:"",keytype:config[19],poiImgVersion:config[20]}),ia=function ia(){return ta};return s=(new Date).getTime(),Vt=["platform=JS&s=rsv3&logversion=2.0&product=JsInit&key="+ta.key,"t="+s],Nt=ta.server+"/v3/log/init?",Vt.push("sdkversion=2.0"),Vt.push("appname="+Oi),Vt.push("csid="+U.Util.uuid()),Vt.push("resolution="+window.screen.width+"*"+window.screen.height),Vt.push("mob="+(U.Support.$e?1:0)),Vt.push("vt="+(U.Support.isWebGL?1:0)),Vt.push("dpr="+window.devicePixelRatio),Vt.push("scale="+(U.Support.Ue?2:1)),Vt.push("detect="+U.Support.Ue),ta.jscode?Vt.push("jscode="+ta.jscode):ta.gaodeserver&&(Nt=ta.gaodeserver+"/v3/log/init?"),Nt+=Vt.join("&"),pi.JSONP(Nt),function(t){return t[1]&&(sr=t[1].slice(-2),tr=t[1].slice(0,4)),{Map:rr,ImageLayer:fr,createDefaultLayer:Jr,TileLayer:p,NebulaLayer:Yi,Buildings:Gr,Indoor:Lo,SkyLayer:gs,DistrictLayer:Fo,CanvasLayer:vr,CustomLayer:gr,GLCustomLayer:Kr,LabelsLayer:vs,MassMarks:xr,Event:U.Event,version:"2.0",plugin:Qo,LngLat:U.LngLat,Pixel:U.Pixel,Size:U.Size,Icon:ie,Bounds:l,extent:Et,Marker:Te,Text:Tr,InfoWindow:Pe,ContextMenu:Xe,LabelMarker:Rr,Polygon:Xh,Rectangle:qh,Ellipse:$h,Circle:so,CircleMarker:oo,Polyline:po,BezierCurve:wo,OverlayGroup:uh,VectorLayer:ts,LayerGroup:th,Control:jr,DomUtil:w,Util:U.Util,GeometryUtil:U.GeometryUtil,Browser:Fr,UA:{ie:Fr.ie,ie9:Fr.ie9,ie11:Fr.ie11,mobile:Fr.mobile,android:Fr.android,ios:Fr.ios},PlaneGeometryUtil:U.PlaneGeometryUtil,getConfig:ia,WebService:Ke,extend:U.extend,Http:pi,addCss:G,BuryPoint:Yr,lcs:U.lcs,convertFrom:$e,Heatmap:sh,IndoorMap:Oo,Mapbox:hh,BuildingLayer:Gr,Mark:Jo}}});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)})(["d1f15ad3fdf0c704434eaf23c7c18698",[115.423411,39.442758,117.514625,41.060816,116.405285,39.904989],"https://webapi.amap.com",1,"2.3.3.2",null,"110000","AMap.Adaptor",true,false,false,true,"20230103011500-20201123-1",false,"A","3_23_10_10_00","https","webapi.amap.com",1,"0","20230111"]) _jsload_('AMap.Adaptor', '(function(){"use strict";var extendStatics=function(d,b){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(Object.prototype.hasOwnProperty.call(b,p))d[p]=b[p]};return extendStatics(d,b)};function __extends(d,b){if(typeof b!=="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}var _SuppressedError=typeof SuppressedError==="function"?SuppressedError:function(error,suppressed,message){var e=new Error(message);return e.name="SuppressedError",e.error=error,e.suppressed=suppressed,e};var commonjsGlobal=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function unwrapExports(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x["default"]:x}function createCommonjsModule(fn,module){return module={exports:{}},fn(module,module.exports),module.exports}var eventemitter=createCommonjsModule(function(module,exports){Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i=0){var _listeners$i2=listeners[i],fn=_listeners$i2.fn,ctx=_listeners$i2.ctx;if(ctx!==context)continue;if(fn===listener||fn===fn.listener){listeners.splice(i,1);fn=function fn(){}}}}return this}},{key:"emit",value:function emit(type,data){var listeners=this.__events__[type];if(listeners){var event=assign({},data,{target:this,type:type});var i=-1,len=listeners.length;while(++i0){var index=indexes[length];array.splice(index,1)}return array}function remove(array,predicate){var result=[];if(!(array&&array.length)){return result}if(typeof predicate==="function"){var index=-1,indexes=[],length=array.length;while(++index1&&arguments[1]!==undefined?arguments[1]:{};if(!Array.isArray(arr)){return arr}var _options$type=options.type,type=_options$type===undefined?"":_options$type,_options$range=options.range,range=_options$range===undefined?[0,1]:_options$range,_options$min=options.min,min=_options$min===undefined?Math.min.apply(Math,arr):_options$min,_options$max=options.max,max=_options$max===undefined?Math.max.apply(Math,arr):_options$max;type=type.toLowerCase();var normalizationArr=[];var diff=max-min;var i=-1,len=arr.length;while(++imax){v=max}if(v2&&arguments[2]!==undefined?arguments[2]:true;this._stopAni();var clips=this._clips,len=clips.length;if(len){var i=-1;while(++i1&&arguments[1]!==undefined?arguments[1]:true;if(!Array.isArray(clips)){clips=[clips]}var i=-1,len=clips.length;while(++i1){return fn(v[m],v[m-1],m-f)}return fn(v[i],v[i+1>m?m:i+1],f-i)},Bezier:function Bezier(v,k){var b=0;var n=v.length-1;var pw=Math.pow;var bn=Interpolation.Utils.Bernstein;for(var i=0;i<=n;i++){b+=pw(1-k,n-i)*pw(k,i)*v[i]*bn(n,i)}return b},CatmullRom:function CatmullRom(v,k){var m=v.length-1;var f=m*k;var i=Math.floor(f);var fn=Interpolation.Utils.CatmullRom;if(v[0]===v[m]){if(k<0){i=Math.floor(f=m*(1+k))}return fn(v[(i-1+m)%m],v[i],v[(i+1)%m],v[(i+2)%m],f-i)}else{if(k<0){return v[0]-(fn(v[0],v[0],v[1],v[1],-f)-v[0])}if(k>1){return v[m]-(fn(v[m],v[m],v[m-1],v[m-1],f-m)-v[m])}return fn(v[i?i-1:0],v[i],v[m1;i--){s*=i}a[n]=s;return s}}(),CatmullRom:function CatmullRom(p0,p1,p2,p3,t){var v0=(p2-p0)*.5;var v1=(p3-p1)*.5;var t2=t*t;var t3=t*t2;return(2*p1-2*p2+v0+v1)*t3+(-3*p1+3*p2-2*v0-v1)*t2+v0*t+p1}}};exports["default"]=Interpolation});unwrapExports(Interpolation_1);var clip=createCommonjsModule(function(module,exports){Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i1&&repeat===this._repeat_0&&onceRepeat){this.emit(define.Ev.REPEAT,{remain:0})}return this}},{key:"stop",value:function stop(reset){if(!this._stopped){this._stopped=true;this._paused=false;this._pauseTime=0;this._pauseStart=0;this.emit(define.Ev.STOP);this.stopChain()}if(reset){this._repeat=this._repeat_0}return this}},{key:"pause",value:function pause(){if(this._stopped||this._paused){return this}this._paused=true;this._pauseStart=window.performance.now();this.emit(define.Ev.PAUSE);return this}},{key:"update",value:function update(time){if(this._stopped){return true}if(this._paused||time&&time1){if(isFinite(repeat)){repeat--}this._startTime=time+this._interval;this._startAt=0;if(this._yoyo){this._reversed=!this._reversed}this._repeat=repeat;this.emit(define.Ev.REPEAT_COMPLETE,{repeat:repeat});this.emit(define.Ev.REPEAT,{remain:repeat_0-repeat});return true}else{this._stopped=true;this._pauseTime=0;this._pauseStart=0;this._repeat=repeat_0;if(repeat_0>1){this.emit(define.Ev.REPEAT_COMPLETE,{repeat:0})}this.emit(define.Ev.COMPLETE);var i=-1,chains=this._chainClips,len=chains.length;var ani=this._animation;while(++i255?255:i}function clamp_css_float(f){return f<0?0:f>1?1:f}function parse_css_int(str){if(str[str.length-1]==="%")return clamp_css_byte(parseFloat(str)/100*255);return clamp_css_byte(parseInt(str))}function parse_css_float(str){if(str[str.length-1]==="%")return clamp_css_float(parseFloat(str)/100);return clamp_css_float(parseFloat(str))}function css_hue_to_rgb(m1,m2,h){if(h<0)h+=1;else if(h>1)h-=1;if(h*6<1)return m1+(m2-m1)*h*6;if(h*2<1)return m2;if(h*3<2)return m1+(m2-m1)*(2/3-h)*6;return m1}function parseCSSColor(css_str){var str=css_str.replace(/ /g,"").toLowerCase();if(str in kCSSColorTable)return kCSSColorTable[str].slice();if(str[0]==="#"){if(str.length===4){var iv=parseInt(str.substr(1),16);if(!(iv>=0&&iv<=4095))return null;return[(iv&3840)>>4|(iv&3840)>>8,iv&240|(iv&240)>>4,iv&15|(iv&15)<<4,1]}else if(str.length===7){var iv=parseInt(str.substr(1),16);if(!(iv>=0&&iv<=16777215))return null;return[(iv&16711680)>>16,(iv&65280)>>8,iv&255,1]}return null}var op=str.indexOf("("),ep=str.indexOf(")");if(op!==-1&&ep+1===str.length){var fname=str.substr(0,op);var params=str.substr(op+1,ep-(op+1)).split(",");var alpha=1;switch(fname){case"rgba":if(params.length!==4)return null;alpha=parse_css_float(params.pop());case"rgb":if(params.length!==3)return null;return[parse_css_int(params[0]),parse_css_int(params[1]),parse_css_int(params[2]),alpha];case"hsla":if(params.length!==4)return null;alpha=parse_css_float(params.pop());case"hsl":if(params.length!==3)return null;var h=(parseFloat(params[0])%360+360)%360/360;var s=parse_css_float(params[1]);var l=parse_css_float(params[2]);var m2=l<=.5?l*(s+1):l+s-l*s;var m1=l*2-m2;return[clamp_css_byte(css_hue_to_rgb(m1,m2,h+1/3)*255),clamp_css_byte(css_hue_to_rgb(m1,m2,h)*255),clamp_css_byte(css_hue_to_rgb(m1,m2,h-1/3)*255),alpha];default:return null}}return null}try{exports.parseCSSColor=parseCSSColor}catch(e){}});var csscolorparser_1=csscolorparser.parseCSSColor;var colorhelper=createCommonjsModule(function(module,exports){Object.defineProperty(exports,"__esModule",{value:true});var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break}}catch(err){_d=true;_e=err}finally{try{if(!_n&&_i["return"])_i["return"]()}finally{if(_d)throw _e}}return _arr}return function(arr,i){if(Array.isArray(arr)){return arr}else if(Symbol.iterator in Object(arr)){return sliceIterator(arr,i)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var _csscolorparser2=_interopRequireDefault(csscolorparser);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var parseCSSColor=_csscolorparser2["default"].parseCSSColor;function _clamp_css_byte(i){i=Math.round(i);return i<0?0:i>255?255:i}function _clamp_css_float(f){return f<0?0:f>1?1:f}var ColorHelper={isColor:function isColor(color){if(typeof color==="string"){return!!(0,_csscolorparser2["default"])(color)}else if(Array.isArray(color)){var i=0,len=color.length;while(i1&&arguments[1]!==undefined?arguments[1]:0;var interpolation=arguments.length>2&&arguments[2]!==undefined?arguments[2]:ColorHelper.Utils.Linear;var m=steps.length-1;var f=m*progress;var i=f>>0;var fn=interpolation;var fns=function fns(p0,p1,t){var _p=_slicedToArray(p0,4),r0=_p[0],g0=_p[1],b0=_p[2],a0=_p[3];var _p2=_slicedToArray(p1,4),r1=_p2[0],g1=_p2[1],b1=_p2[2],a1=_p2[3];var rgba=[fn(r0,r1,t)>>0,fn(g0,g1,t)>>0,fn(b0,b1,t)>>0,fn(a0,a1,t)];return rgba};var s0=steps[i];var s1=steps[i+1>m?m:i+1];var t=f-i;return fns(s0,s1,t)},mixColors:function mixColors(color,increase){var c=this.toNormal(color);if(Array.isArray(increase)&&c){var _ref=[_clamp_css_byte(c[0]+increase[0]||0),_clamp_css_byte(c[1]+increase[1]||0),_clamp_css_byte(c[2]+increase[2]||0),_clamp_css_float(c[3]+increase[3]||0)],r=_ref[0],g=_ref[1],b=_ref[2],a=_ref[3];var rgba=[r,g,b,a].join(",");return"rgba("+rgba+")"}else{return color}},toRGBA:function toRGBA(color){if(color&&color.length>=3){var alpha=typeof color[3]==="undefined"?1:color[3];var r=_clamp_css_byte(color[0]),g=_clamp_css_byte(color[1]),b=_clamp_css_byte(color[2]),a=_clamp_css_float(alpha);return"rgba("+r+","+g+","+b+","+a+")"}else{return"transparent"}},Utils:{Linear:function Linear(p0,p1,t){return(p1-p0)*t+p0}}};exports["default"]=ColorHelper});unwrapExports(colorhelper);var color=createCommonjsModule(function(module,exports){Object.defineProperty(exports,"__esModule",{value:true});var _clip2=_interopRequireDefault(clip);var _colorhelper2=_interopRequireDefault(colorhelper);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var plugin={type:"color",test:function test(value,key){return _colorhelper2["default"].isColor(value)},parse:function parse(value,key){return _colorhelper2["default"].toNormalArray(value)},valueOf:function valueOf(parsedValue,progress,elapsed,key){var val=_colorhelper2["default"].linearGradient(parsedValue,progress);val=_colorhelper2["default"].toRGBA(val);return val}};_clip2["default"].registerPlugin(plugin);exports["default"]=plugin});unwrapExports(color);var vector_1=createCommonjsModule(function(module,exports){Object.defineProperty(exports,"__esModule",{value:true});var ArrayCons=typeof Float32Array==="undefined"?Array:Float32Array;var vector={create:function create(){var x=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var y=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var out=new ArrayCons(2);out[0]=x;out[1]=y;return out},copy:function copy(out,v){out[0]=v[0];out[1]=v[1];return out},clone:function clone(v){var out=new ArrayCons(2);out[0]=v[0];out[1]=v[1];return out},set:function set(out,x,y){out[0]=x;out[1]=y;return out},add:function add(out,v1,v2){out[0]=v1[0]+v2[0];out[1]=v1[1]+v2[1];return out},scaleAndAdd:function scaleAndAdd(out,v1,v2,scale){out[0]=v1[0]+v2[0]*scale;out[1]=v1[1]+v2[1]*scale;return out},sub:function sub(out,v1,v2){out[0]=v1[0]-v2[0];out[1]=v1[1]-v2[1];return out},length:function length(v){return Math.sqrt(this.lengthSquare(v))},lengthSquare:function lengthSquare(v){return v[0]*v[0]+v[1]*v[1]},multiply:function multiply(out,v1,v2){out[0]=v1[0]*v2[0];out[1]=v1[1]*v2[1];return out},divide:function divide(out,v1,v2){out[0]=v1[0]/v2[0];out[1]=v1[1]/v2[1];return out},dot:function dot(v1,v2){return v1[0]*v2[0]+v1[1]*v2[1]},scale:function scale(out,v,s){out[0]=v[0]*s;out[1]=v[1]*s;return out},normalize:function normalize(out,v){var d=this.len(v);if(d===0){out[0]=0;out[1]=0}else{out[0]=v[0]/d;out[1]=v[1]/d}return out},distance:function distance(v1,v2){return Math.sqrt(this.distanceSquare(v1,v2))},distanceSquare:function distanceSquare(v1,v2){return(v1[0]-v2[0])*(v1[0]-v2[0])+(v1[1]-v2[1])*(v1[1]-v2[1])},negate:function negate(out,v){out[0]=-v[0];out[1]=-v[1];return out},lerp:function lerp(out,v1,v2,t){out[0]=v1[0]+t*(v2[0]-v1[0]);out[1]=v1[1]+t*(v2[1]-v1[1]);return out},applyTransform:function applyTransform(out,v,m){var x=v[0];var y=v[1];out[0]=m[0]*x+m[2]*y+m[4];out[1]=m[1]*x+m[3]*y+m[5];return out},min:function min(out,v1,v2){out[0]=Math.min(v1[0],v2[0]);out[1]=Math.min(v1[1],v2[1]);return out},max:function max(out,v1,v2){out[0]=Math.max(v1[0],v2[0]);out[1]=Math.max(v1[1],v2[1]);return out},getAngle:function getAngle(v1,v2){var angle=0;var _dx=v1[0]-v2[0];if(_dx!=0){angle=Math.atan2(v1[1]-v2[1],v1[0]-v2[0])}return angle}};vector.len=vector.length;vector.lenSquare=vector.lengthSquare;vector.dist=vector.distance;vector.distSquare=vector.distanceSquare;exports["default"]=vector});unwrapExports(vector_1);var coordinate2d=createCommonjsModule(function(module,exports){Object.defineProperty(exports,"__esModule",{value:true});var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break}}catch(err){_d=true;_e=err}finally{try{if(!_n&&_i["return"])_i["return"]()}finally{if(_d)throw _e}}return _arr}return function(arr,i){if(Array.isArray(arr)){return arr}else if(Symbol.iterator in Object(arr)){return sliceIterator(arr,i)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var _clip2=_interopRequireDefault(clip);var _vector2=_interopRequireDefault(vector_1);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function parseMovingSteps(path){var i=0,len=path.length,length=0,_path=[],steps=[],angle=0;while(i0){if(++count>=HOT_COUNT){return arguments[0]}}else{count=0}return func.apply(undefined,arguments)}}function constant(value){return function(){return value}}var defineProperty=function(){try{var func=getNative(Object,"defineProperty");func({},"",{});return func}catch(e){}}();var baseSetToString=!defineProperty?identity:function(func,string){return defineProperty(func,"toString",{configurable:true,enumerable:false,value:constant(string),writable:true})};var setToString=shortOut(baseSetToString);var MAX_SAFE_INTEGER=9007199254740991;var reIsUint=/^(?:0|[1-9]\\d*)$/;function isIndex(value,length){var type=typeof value;length=length==null?MAX_SAFE_INTEGER:length;return!!length&&(type=="number"||type!="symbol"&&reIsUint.test(value))&&(value>-1&&value%1==0&&value-1&&value%1==0&&value<=MAX_SAFE_INTEGER$1}function isArrayLike(value){return value!=null&&isLength(value.length)&&!isFunction(value)}function isIterateeCall(value,index,object){if(!isObject(object)){return false}var type=typeof index;if(type=="number"?isArrayLike(object)&&isIndex(index,object.length):type=="string"&&index in object){return eq(object[index],value)}return false}function createAssigner(assigner){return baseRest(function(object,sources){var index=-1,length=sources.length,customizer=length>1?sources[length-1]:undefined,guard=length>2?sources[2]:undefined;customizer=assigner.length>3&&typeof customizer=="function"?(length--,customizer):undefined;if(guard&&isIterateeCall(sources[0],sources[1],guard)){customizer=length<3?undefined:customizer;length=1}object=Object(object);while(++index-1}function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){++this.size;data.push([key,value])}else{data[index][1]=value}return this}function ListCache(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++indexarrLength)){return false}var arrStacked=stack.get(array);var othStacked=stack.get(other);if(arrStacked&&othStacked){return arrStacked==other&&othStacked==array}var index=-1,result=true,seen=bitmask&COMPARE_UNORDERED_FLAG?new SetCache:undefined;stack.set(array,other);stack.set(other,array);while(++index=minY&&p[1]<=maxY}var minX=Math.min(p1[0],p2[0]);var maxX=Math.max(p1[0],p2[0]);var tx=(p2[1]-p1[1])/(p2[0]-p1[0])*(p[0]-p1[0])+p1[1];return Math.abs(tx-p[1])=minX&&p[0]<=maxX},closestOnSegment:function(coordinate,segment){var x0=coordinate[0];var y0=coordinate[1];var start=segment[0];var end=segment[1];var x1=start[0];var y1=start[1];var x2=end[0];var y2=end[1];var dx=x2-x1;var dy=y2-y1;var along=dx===0&&dy===0?0:(dx*(x0-x1)+dy*(y0-y1))/(dx*dx+dy*dy||0);var x;var y;if(along<=0){x=x1;y=y1}else if(along>=1){x=x2;y=y2}else{x=x1+along*dx;y=y1+along*dy}return[x,y]},isClockwise:function(coordinates){var length=coordinates.length;var edge=0;var last=coordinates[length-1];var x1=last[0];var y1=last[1];var x2;var y2;var coord;for(var i=0;i0},containsCoordinate:function(coordinate,vertices,containBounds){var x=coordinate[0];var y=coordinate[1];var inside=false;var xi;var yi;var xj;var yj;var numVertices=vertices.length;for(var i=0,j=numVertices-1;i=y){var xx=(xj-xi)*(y-yi)/(yj-yi)+xi;if(x===xx){return containBounds?true:false}else{intersect=x(cp2[1]-cp1[1])*(p[0]-cp1[0])};var clipIntersection=function(cp1,cp2,s,e){var dc=[cp1[0]-cp2[0],cp1[1]-cp2[1]],dp=[s[0]-e[0],s[1]-e[1]],n1=cp1[0]*cp2[1]-cp1[1]*cp2[0],n2=s[0]*e[1]-s[1]*e[0],n3=1/(dc[0]*dp[1]-dc[1]*dp[0]);return[(n1*dp[0]-n2*dc[0])*n3,(n1*dp[1]-n2*dc[1])*n3]};var cp1,cp2,s,e;var outputList=subjectPolygon;cp1=clipPolygon[clipPolygon.length-2];for(var j=0,jlen=clipPolygon.length-1;j0?90:270}var angle=Math.atan(y/x)*180/Math.PI;if(x<0&&y>0){return angle+180}else if(x<0&&y<0){return angle+180}else if(x>0&&y<0){return angle+360}else{return angle}};Pixel.prototype.toJSON=function(){return[this.x,this.y]};return Pixel}();var dist=createCommonjsModule(function(module,exports){(function(global,factory){factory(exports)})(commonjsGlobal,function(exports){function DEFAULT_COMPARE(a,b){return a>b?1:a0){z=z.left}else{return z}}return null};SplayTree.prototype.contains=function contains(key){var node=this._root;var comparator=this._compare;while(node){var cmp=comparator(key,node.key);if(cmp===0){return true}else if(cmp<0){node=node.left}else{node=node.right}}return false};SplayTree.prototype.remove=function remove(key){var z=this.find(key);if(!z){return false}this.splay(z);if(!z.left){this.replace(z,z.right)}else if(!z.right){this.replace(z,z.left)}else{var y=this.minNode(z.right);if(y.parent!==z){this.replace(y,y.right);y.right=z.right;y.right.parent=y}this.replace(z,y);y.left=z.left;y.left.parent=y}this._size--;return true};SplayTree.prototype.removeNode=function removeNode(z){if(!z){return false}this.splay(z);if(!z.left){this.replace(z,z.right)}else if(!z.right){this.replace(z,z.left)}else{var y=this.minNode(z.right);if(y.parent!==z){this.replace(y,y.right);y.right=z.right;y.right.parent=y}this.replace(z,y);y.left=z.left;y.left.parent=y}this._size--;return true};SplayTree.prototype.erase=function erase(key){var z=this.find(key);if(!z){return}this.splay(z);var s=z.left;var t=z.right;var sMax=null;if(s){s.parent=null;sMax=this.maxNode(s);this.splay(sMax);this._root=sMax}if(t){if(s){sMax.right=t}else{this._root=t}t.parent=sMax}this._size--};SplayTree.prototype.pop=function pop(){var node=this._root,returnValue=null;if(node){while(node.left){node=node.left}returnValue={key:node.key,data:node.data};this.remove(node.key)}return returnValue};SplayTree.prototype.next=function next(node){var successor=node;if(successor){if(successor.right){successor=successor.right;while(successor&&successor.left){successor=successor.left}}else{successor=node.parent;while(successor&&successor.right===node){node=successor;successor=successor.parent}}}return successor};SplayTree.prototype.prev=function prev(node){var predecessor=node;if(predecessor){if(predecessor.left){predecessor=predecessor.left;while(predecessor&&predecessor.right){predecessor=predecessor.right}}else{predecessor=node.parent;while(predecessor&&predecessor.left===node){node=predecessor;predecessor=predecessor.parent}}}return predecessor};SplayTree.prototype.forEach=function forEach(callback){var current=this._root;var s=[],done=false,i=0;while(!done){if(current){s.push(current);current=current.left}else{if(s.length>0){current=s.pop();callback(current,i++);current=current.right}else{done=true}}}return this};SplayTree.prototype.range=function range(low,high,fn,ctx){var Q=[];var compare=this._compare;var node=this._root,cmp;while(Q.length!==0||node){if(node){Q.push(node);node=node.left}else{node=Q.pop();cmp=compare(node.key,high);if(cmp>0){break}else if(compare(node.key,low)>=0){if(fn.call(ctx,node)){return this}}node=node.right}}return this};SplayTree.prototype.keys=function keys(){var current=this._root;var s=[],r=[],done=false;while(!done){if(current){s.push(current);current=current.left}else{if(s.length>0){current=s.pop();r.push(current.key);current=current.right}else{done=true}}}return r};SplayTree.prototype.values=function values(){var current=this._root;var s=[],r=[],done=false;while(!done){if(current){s.push(current);current=current.left}else{if(s.length>0){current=s.pop();r.push(current.data);current=current.right}else{done=true}}}return r};SplayTree.prototype.at=function at(index){var current=this._root;var s=[],done=false,i=0;while(!done){if(current){s.push(current);current=current.left}else{if(s.length>0){current=s.pop();if(i===index){return current}i++;current=current.right}else{done=true}}}return null};SplayTree.prototype.load=function load(keys,values,presort){if(keys===void 0)keys=[];if(values===void 0)values=[];if(presort===void 0)presort=false;if(this._size!==0){throw new Error("bulk-load: tree is not empty")}var size=keys.length;if(presort){sort(keys,values,0,size-1,this._compare)}this._root=loadRecursive(null,keys,values,0,size);this._size=size;return this};SplayTree.prototype.min=function min(){var node=this.minNode(this._root);if(node){return node.key}else{return null}};SplayTree.prototype.max=function max(){var node=this.maxNode(this._root);if(node){return node.key}else{return null}};SplayTree.prototype.isEmpty=function isEmpty(){return this._root===null};prototypeAccessors.size.get=function(){return this._size};SplayTree.createTree=function createTree(keys,values,comparator,presort,noDuplicates){return new SplayTree(comparator,noDuplicates).load(keys,values,presort)};Object.defineProperties(SplayTree.prototype,prototypeAccessors);function loadRecursive(parent,keys,values,start,end){var size=end-start;if(size>0){var middle=start+Math.floor(size/2);var key=keys[middle];var data=values[middle];var node={key:key,data:data,parent:parent};node.left=loadRecursive(node,keys,values,start,middle);node.right=loadRecursive(node,keys,values,middle+1,end);return node}return null}function sort(keys,values,left,right,compare){if(left>=right){return}var pivot=keys[left+right>>1];var i=left-1;var j=right+1;while(true){do{i++}while(compare(keys[i],pivot)<0);do{j--}while(compare(keys[j],pivot)>0);if(i>=j){break}var tmp=keys[i];keys[i]=keys[j];keys[j]=tmp;tmp=values[i];values[i]=values[j];values[j]=tmp}sort(keys,values,left,j,compare);sort(keys,values,j+1,right,compare)}var NORMAL=0;var NON_CONTRIBUTING=1;var SAME_TRANSITION=2;var DIFFERENT_TRANSITION=3;var INTERSECTION=0;var UNION=1;var DIFFERENCE=2;var XOR=3;function computeFields(event,prev,operation){if(prev===null){event.inOut=false;event.otherInOut=true}else{if(event.isSubject===prev.isSubject){event.inOut=!prev.inOut;event.otherInOut=prev.otherInOut}else{event.inOut=!prev.otherInOut;event.otherInOut=prev.isVertical()?!prev.inOut:prev.inOut}if(prev){event.prevInResult=!inResult(prev,operation)||prev.isVertical()?prev.prevInResult:prev}}var isInResult=inResult(event,operation);if(isInResult){event.resultTransition=determineResultTransition(event,operation)}else{event.resultTransition=0}}function inResult(event,operation){switch(event.type){case NORMAL:switch(operation){case INTERSECTION:return!event.otherInOut;case UNION:return event.otherInOut;case DIFFERENCE:return event.isSubject&&event.otherInOut||!event.isSubject&&!event.otherInOut;case XOR:return true}break;case SAME_TRANSITION:return operation===INTERSECTION||operation===UNION;case DIFFERENT_TRANSITION:return operation===DIFFERENCE;case NON_CONTRIBUTING:return false}return false}function determineResultTransition(event,operation){var thisIn=!event.inOut;var thatIn=!event.otherInOut;var isIn;switch(operation){case INTERSECTION:isIn=thisIn&&thatIn;break;case UNION:isIn=thisIn||thatIn;break;case XOR:isIn=thisIn^thatIn;break;case DIFFERENCE:if(event.isSubject){isIn=thisIn&&!thatIn}else{isIn=thatIn&&!thisIn}break}return isIn?+1:-1}var SweepEvent=function SweepEvent(point,left,otherEvent,isSubject,edgeType){this.left=left;this.point=point;this.otherEvent=otherEvent;this.isSubject=isSubject;this.type=edgeType||NORMAL;this.inOut=false;this.otherInOut=false;this.prevInResult=null;this.resultTransition=0;this.otherPos=-1;this.outputContourId=-1;this.isExteriorRing=true};var prototypeAccessors$1={inResult:{configurable:true}};SweepEvent.prototype.isBelow=function isBelow(p){var p0=this.point,p1=this.otherEvent.point;return this.left?(p0[0]-p[0])*(p1[1]-p[1])-(p1[0]-p[0])*(p0[1]-p[1])>0:(p1[0]-p[0])*(p0[1]-p[1])-(p0[0]-p[0])*(p1[1]-p[1])>0};SweepEvent.prototype.isAbove=function isAbove(p){return!this.isBelow(p)};SweepEvent.prototype.isVertical=function isVertical(){return this.point[0]===this.otherEvent.point[0]};prototypeAccessors$1.inResult.get=function(){return this.resultTransition!==0};SweepEvent.prototype.clone=function clone(){var copy=new SweepEvent(this.point,this.left,this.otherEvent,this.isSubject,this.type);copy.contourId=this.contourId;copy.resultTransition=this.resultTransition;copy.prevInResult=this.prevInResult;copy.isExteriorRing=this.isExteriorRing;copy.inOut=this.inOut;copy.otherInOut=this.otherInOut;return copy};Object.defineProperties(SweepEvent.prototype,prototypeAccessors$1);function equals(p1,p2){if(p1[0]===p2[0]){if(p1[1]===p2[1]){return true}else{return false}}return false}var epsilon=11102230246251565e-32;var splitter=134217729;var resulterrbound=(3+8*epsilon)*epsilon;function sum(elen,e,flen,f,h){var Q,Qnew,hh,bvirt;var enow=e[0];var fnow=f[0];var eindex=0;var findex=0;if(fnow>enow===fnow>-enow){Q=enow;enow=e[++eindex]}else{Q=fnow;fnow=f[++findex]}var hindex=0;if(eindexenow===fnow>-enow){Qnew=enow+Q;hh=Q-(Qnew-enow);enow=e[++eindex]}else{Qnew=fnow+Q;hh=Q-(Qnew-fnow);fnow=f[++findex]}Q=Qnew;if(hh!==0){h[hindex++]=hh}while(eindexenow===fnow>-enow){Qnew=Q+enow;bvirt=Qnew-Q;hh=Q-(Qnew-bvirt)+(enow-bvirt);enow=e[++eindex]}else{Qnew=Q+fnow;bvirt=Qnew-Q;hh=Q-(Qnew-bvirt)+(fnow-bvirt);fnow=f[++findex]}Q=Qnew;if(hh!==0){h[hindex++]=hh}}}while(eindex=errbound||-det>=errbound){return det}bvirt=ax-acx;acxtail=ax-(acx+bvirt)+(bvirt-cx);bvirt=bx-bcx;bcxtail=bx-(bcx+bvirt)+(bvirt-cx);bvirt=ay-acy;acytail=ay-(acy+bvirt)+(bvirt-cy);bvirt=by-bcy;bcytail=by-(bcy+bvirt)+(bvirt-cy);if(acxtail===0&&acytail===0&&bcxtail===0&&bcytail===0){return det}errbound=ccwerrboundC*detsum+resulterrbound*Math.abs(det);det+=acx*bcytail+bcy*acxtail-(acy*bcxtail+bcx*acytail);if(det>=errbound||-det>=errbound){return det}s1=acxtail*bcy;c=splitter*acxtail;ahi=c-(c-acxtail);alo=acxtail-ahi;c=splitter*bcy;bhi=c-(c-bcy);blo=bcy-bhi;s0=alo*blo-(s1-ahi*bhi-alo*bhi-ahi*blo);t1=acytail*bcx;c=splitter*acytail;ahi=c-(c-acytail);alo=acytail-ahi;c=splitter*bcx;bhi=c-(c-bcx);blo=bcx-bhi;t0=alo*blo-(t1-ahi*bhi-alo*bhi-ahi*blo);_i=s0-t0;bvirt=s0-_i;u[0]=s0-(_i+bvirt)+(bvirt-t0);_j=s1+_i;bvirt=_j-s1;_0=s1-(_j-bvirt)+(_i-bvirt);_i=_0-t1;bvirt=_0-_i;u[1]=_0-(_i+bvirt)+(bvirt-t1);u3=_j+_i;bvirt=u3-_j;u[2]=_j-(u3-bvirt)+(_i-bvirt);u[3]=u3;var C1len=sum(4,B,4,u,C1);s1=acx*bcytail;c=splitter*acx;ahi=c-(c-acx);alo=acx-ahi;c=splitter*bcytail;bhi=c-(c-bcytail);blo=bcytail-bhi;s0=alo*blo-(s1-ahi*bhi-alo*bhi-ahi*blo);t1=acy*bcxtail;c=splitter*acy;ahi=c-(c-acy);alo=acy-ahi;c=splitter*bcxtail;bhi=c-(c-bcxtail);blo=bcxtail-bhi;t0=alo*blo-(t1-ahi*bhi-alo*bhi-ahi*blo);_i=s0-t0;bvirt=s0-_i;u[0]=s0-(_i+bvirt)+(bvirt-t0);_j=s1+_i;bvirt=_j-s1;_0=s1-(_j-bvirt)+(_i-bvirt);_i=_0-t1;bvirt=_0-_i;u[1]=_0-(_i+bvirt)+(bvirt-t1);u3=_j+_i;bvirt=u3-_j;u[2]=_j-(u3-bvirt)+(_i-bvirt);u[3]=u3;var C2len=sum(C1len,C1,4,u,C2);s1=acxtail*bcytail;c=splitter*acxtail;ahi=c-(c-acxtail);alo=acxtail-ahi;c=splitter*bcytail;bhi=c-(c-bcytail);blo=bcytail-bhi;s0=alo*blo-(s1-ahi*bhi-alo*bhi-ahi*blo);t1=acytail*bcxtail;c=splitter*acytail;ahi=c-(c-acytail);alo=acytail-ahi;c=splitter*bcxtail;bhi=c-(c-bcxtail);blo=bcxtail-bhi;t0=alo*blo-(t1-ahi*bhi-alo*bhi-ahi*blo);_i=s0-t0;bvirt=s0-_i;u[0]=s0-(_i+bvirt)+(bvirt-t0);_j=s1+_i;bvirt=_j-s1;_0=s1-(_j-bvirt)+(_i-bvirt);_i=_0-t1;bvirt=_0-_i;u[1]=_0-(_i+bvirt)+(bvirt-t1);u3=_j+_i;bvirt=u3-_j;u[2]=_j-(u3-bvirt)+(_i-bvirt);u[3]=u3;var Dlen=sum(C2len,C2,4,u,D);return D[Dlen-1]}function orient2d(ax,ay,bx,by,cx,cy){var detleft=(ay-cy)*(bx-cx);var detright=(ax-cx)*(by-cy);var det=detleft-detright;if(detleft===0||detright===0||detleft>0!==detright>0){return det}var detsum=Math.abs(detleft+detright);if(Math.abs(det)>=ccwerrboundA*detsum){return det}return-orient2dadapt(ax,ay,bx,by,cx,cy,detsum)}function signedArea(p0,p1,p2){var res=orient2d(p0[0],p0[1],p1[0],p1[1],p2[0],p2[1]);if(res>0){return-1}if(res<0){return 1}return 0}function compareEvents(e1,e2){var p1=e1.point;var p2=e2.point;if(p1[0]>p2[0]){return 1}if(p1[0]p2[1]?1:-1}return specialCases(e1,e2,p1)}function specialCases(e1,e2,p1,p2){if(e1.left!==e2.left){return e1.left?1:-1}if(signedArea(p1,e1.otherEvent.point,e2.otherEvent.point)!==0){return!e1.isBelow(e2.otherEvent.point)?1:-1}return!e1.isSubject&&e2.isSubject?1:-1}function divideSegment(se,p,queue){var r=new SweepEvent(p,false,se,se.isSubject);var l=new SweepEvent(p,true,se.otherEvent,se.isSubject);if(equals(se.point,se.otherEvent.point)){console.warn("what is that, a collapsed segment?",se)}r.contourId=l.contourId=se.contourId;if(compareEvents(l,se.otherEvent)>0){se.otherEvent.left=true;l.left=false}se.otherEvent.otherEvent=l;se.otherEvent=r;queue.push(l);queue.push(r);return queue}function crossProduct(a,b){return a[0]*b[1]-a[1]*b[0]}function dotProduct(a,b){return a[0]*b[0]+a[1]*b[1]}function intersection(a1,a2,b1,b2,noEndpointTouch){var va=[a2[0]-a1[0],a2[1]-a1[1]];var vb=[b2[0]-b1[0],b2[1]-b1[1]];function toPoint(p,s,d){return[p[0]+s*d[0],p[1]+s*d[1]]}var e=[b1[0]-a1[0],b1[1]-a1[1]];var kross=crossProduct(va,vb);var sqrKross=kross*kross;var sqrLenA=dotProduct(va,va);if(sqrKross>0){var s=crossProduct(e,vb)/kross;if(s<0||s>1){return null}var t=crossProduct(e,va)/kross;if(t<0||t>1){return null}if(s===0||s===1){return noEndpointTouch?null:[toPoint(a1,s,va)]}if(t===0||t===1){return noEndpointTouch?null:[toPoint(b1,t,vb)]}return[toPoint(a1,s,va)]}kross=crossProduct(e,va);sqrKross=kross*kross;if(sqrKross>0){return null}var sa=dotProduct(va,e)/sqrLenA;var sb=sa+dotProduct(va,vb)/sqrLenA;var smin=Math.min(sa,sb);var smax=Math.max(sa,sb);if(smin<=1&&smax>=0){if(smin===1){return noEndpointTouch?null:[toPoint(a1,smin>0?smin:0,va)]}if(smax===0){return noEndpointTouch?null:[toPoint(a1,smax<1?smax:1,va)]}if(noEndpointTouch&&smin===0&&smax===1){return null}return[toPoint(a1,smin>0?smin:0,va),toPoint(a1,smax<1?smax:1,va)]}return null}function possibleIntersection(se1,se2,queue){var inter=intersection(se1.point,se1.otherEvent.point,se2.point,se2.otherEvent.point);var nintersections=inter?inter.length:0;if(nintersections===0){return 0}if(nintersections===1&&(equals(se1.point,se2.point)||equals(se1.otherEvent.point,se2.otherEvent.point))){return 0}if(nintersections===2&&se1.isSubject===se2.isSubject){return 0}if(nintersections===1){if(!equals(se1.point,inter[0])&&!equals(se1.otherEvent.point,inter[0])){divideSegment(se1,inter[0],queue)}if(!equals(se2.point,inter[0])&&!equals(se2.otherEvent.point,inter[0])){divideSegment(se2,inter[0],queue)}return 1}var events=[];var leftCoincide=false;var rightCoincide=false;if(equals(se1.point,se2.point)){leftCoincide=true}else if(compareEvents(se1,se2)===1){events.push(se2,se1)}else{events.push(se1,se2)}if(equals(se1.otherEvent.point,se2.otherEvent.point)){rightCoincide=true}else if(compareEvents(se1.otherEvent,se2.otherEvent)===1){events.push(se2.otherEvent,se1.otherEvent)}else{events.push(se1.otherEvent,se2.otherEvent)}if(leftCoincide&&rightCoincide||leftCoincide){se2.type=NON_CONTRIBUTING;se1.type=se2.inOut===se1.inOut?SAME_TRANSITION:DIFFERENT_TRANSITION;if(leftCoincide&&!rightCoincide){divideSegment(events[1].otherEvent,events[0].point,queue)}return 2}if(rightCoincide){divideSegment(events[0],events[1].point,queue);return 3}if(events[0]!==events[3].otherEvent){divideSegment(events[0],events[1].point,queue);divideSegment(events[1],events[2].point,queue);return 3}divideSegment(events[0],events[1].point,queue);divideSegment(events[3].otherEvent,events[2].point,queue);return 3}function compareSegments(le1,le2){if(le1===le2){return 0}if(signedArea(le1.point,le1.otherEvent.point,le2.point)!==0||signedArea(le1.point,le1.otherEvent.point,le2.otherEvent.point)!==0){if(equals(le1.point,le2.point)){return le1.isBelow(le2.otherEvent.point)?-1:1}if(le1.point[0]===le2.point[0]){return le1.point[1]le2.contourId?1:-1}}}else{return le1.isSubject?-1:1}return compareEvents(le1,le2)===1?1:-1}function subdivide(eventQueue,subject,clipping,sbbox,cbbox,operation){var sweepLine=new SplayTree(compareSegments);var sortedEvents=[];var rightbound=Math.min(sbbox[2],cbbox[2]);var prev,next,begin;while(eventQueue.length!==0){var event=eventQueue.pop();sortedEvents.push(event);if(operation===INTERSECTION&&event.point[0]>rightbound||operation===DIFFERENCE&&event.point[0]>sbbox[2]){break}if(event.left){next=prev=sweepLine.insert(event);begin=sweepLine.minNode();if(prev!==begin){prev=sweepLine.prev(prev)}else{prev=null}next=sweepLine.next(next);var prevEvent=prev?prev.key:null;var prevprevEvent=void 0;computeFields(event,prevEvent,operation);if(next){if(possibleIntersection(event,next.key,eventQueue)===2){computeFields(event,prevEvent,operation);computeFields(event,next.key,operation)}}if(prev){if(possibleIntersection(prev.key,event,eventQueue)===2){var prevprev=prev;if(prevprev!==begin){prevprev=sweepLine.prev(prevprev)}else{prevprev=null}prevprevEvent=prevprev?prevprev.key:null;computeFields(prevEvent,prevprevEvent,operation);computeFields(event,prevEvent,operation)}}}else{event=event.otherEvent;next=prev=sweepLine.find(event);if(prev&&next){if(prev!==begin){prev=sweepLine.prev(prev)}else{prev=null}next=sweepLine.next(next);sweepLine.remove(event);if(next&&prev){possibleIntersection(prev.key,next.key,eventQueue)}}}}return sortedEvents}var Contour=function Contour(){this.points=[];this.holeIds=[];this.holeOf=null;this.depth=null};Contour.prototype.isExterior=function isExterior(){return this.holeOf==null};function orderEvents(sortedEvents){var event,i,len,tmp;var resultEvents=[];for(i=0,len=sortedEvents.length;iorigPos){newPos--}return newPos}function initializeContourFromContext(event,contours,contourId){var contour=new Contour;if(event.prevInResult!=null){var prevInResult=event.prevInResult;var lowerContourId=prevInResult.outputContourId;var lowerResultTransition=prevInResult.resultTransition;if(lowerResultTransition>0){var lowerContour=contours[lowerContourId];if(lowerContour.holeOf!=null){var parentContourId=lowerContour.holeOf;contours[parentContourId].holeIds.push(contourId);contour.holeOf=parentContourId;contour.depth=contours[lowerContourId].depth}else{contours[lowerContourId].holeIds.push(contourId);contour.holeOf=lowerContourId;contour.depth=contours[lowerContourId].depth+1}}else{contour.holeOf=null;contour.depth=contours[lowerContourId].depth}}else{contour.holeOf=null;contour.depth=0}return contour}function connectEdges(sortedEvents){var i,len;var resultEvents=orderEvents(sortedEvents);var processed={};var contours=[];var loop=function(){if(processed[i]){return}var contourId=contours.length;var contour=initializeContourFromContext(resultEvents[i],contours,contourId);var markAsProcessed=function(pos){processed[pos]=true;resultEvents[pos].outputContourId=contourId};var pos=i;var origPos=i;var initial=resultEvents[i].point;contour.points.push(initial);while(true){markAsProcessed(pos);pos=resultEvents[pos].otherPos;markAsProcessed(pos);contour.points.push(resultEvents[pos].point);pos=nextPos(pos,resultEvents,processed,origPos);if(pos==origPos){break}}contours.push(contour)};for(i=0,len=resultEvents.length;i0){for(var i=(this.length>>1)-1;i>=0;i--){this._down(i)}}}function defaultCompare(a,b){return ab?1:0}TinyQueue.prototype={push:function(item){this.data.push(item);this.length++;this._up(this.length-1)},pop:function(){if(this.length===0){return undefined}var top=this.data[0];this.length--;if(this.length>0){this.data[0]=this.data[this.length];this._down(0)}this.data.pop();return top},peek:function(){return this.data[0]},_up:function(pos){var data=this.data;var compare=this.compare;var item=data[pos];while(pos>0){var parent=pos-1>>1;var current=data[parent];if(compare(item,current)>=0){break}data[pos]=current;pos=parent}data[pos]=item},_down:function(pos){var data=this.data;var compare=this.compare;var halfLength=this.length>>1;var item=data[pos];while(pos=0){break}data[pos]=best;pos=left}data[pos]=item}};tinyqueue["default"]=default_1;var max=Math.max;var min=Math.min;var contourId=0;function processPolygon(contourOrHole,isSubject,depth,Q,bbox,isExteriorRing){var i,len,s1,s2,e1,e2;for(i=0,len=contourOrHole.length-1;i0){e2.left=true}else{e1.left=true}var x=s1[0],y=s1[1];bbox[0]=min(bbox[0],x);bbox[1]=min(bbox[1],y);bbox[2]=max(bbox[2],x);bbox[3]=max(bbox[3],y);Q.push(e1);Q.push(e2)}}function fillQueue(subject,clipping,sbbox,cbbox,operation){var eventQueue=new tinyqueue(null,compareEvents);var polygonSet,isExteriorRing,i,ii,j,jj;for(i=0,ii=subject.length;icbbox[2]||cbbox[0]>sbbox[2]||sbbox[1]>cbbox[3]||cbbox[1]>sbbox[3]){if(operation===INTERSECTION){result=EMPTY}else if(operation===DIFFERENCE){result=subject}else if(operation===UNION||operation===XOR){result=subject.concat(clipping)}}return result}function boolean(subject,clipping,operation){if(typeof subject[0][0][0]==="number"){subject=[subject]}if(typeof clipping[0][0][0]==="number"){clipping=[clipping]}var trivial=trivialOperation(subject,clipping,operation);if(trivial){return trivial===EMPTY?null:trivial}var sbbox=[Infinity,Infinity,-Infinity,-Infinity];var cbbox=[Infinity,Infinity,-Infinity,-Infinity];var eventQueue=fillQueue(subject,clipping,sbbox,cbbox,operation);trivial=compareBBoxes(subject,clipping,sbbox,cbbox,operation);if(trivial){return trivial===EMPTY?null:trivial}var sortedEvents=subdivide(eventQueue,subject,clipping,sbbox,cbbox,operation);var contours=connectEdges(sortedEvents);var polygons=[];for(var i=0;i0}var GeometryUtilCls=function(){function GeometryUtilCls(opts){this.CLASS_NAME="AMap.GeometryUtil";this._opts=assign({onSegmentTolerance:5,crs:"EPSG3857",maxZoom:zoomRange[1]},opts);this["setCrs"](this._opts["crs"])}GeometryUtilCls.prototype["clone"]=function(opts){return new GeometryUtilCls(assign({},this._opts,opts))};GeometryUtilCls.prototype["isPoint"]=function(a){return a&&(a instanceof LngLat$1||Util.isArray(a)&&!isNaN(a[0]))};GeometryUtilCls.prototype["normalizePoint"]=function(a){return a};GeometryUtilCls.prototype["normalizeLine"]=function(p){var items=[];for(var i=0,len=p.length;ipt[1]!==yj>pt[1]&&pt[0]<(xj-xi)*(pt[1]-yi)/(yj-yi)+xi;if(intersect){isInside=!isInside}}return isInside}return insidePoly};GeometryUtilCls.prototype["isPointInBbox"]=function(pt,bbox){var minX=Infinity;var minY=Infinity;var maxX=-Infinity;var maxY=-Infinity;for(var i=0;iminX&&pt[0]minY&&pt[1]0){containsCoordinate=!containsCoordinate}if(!containsCoordinate){break}}return Boolean(containsCoordinate)};GeometryUtilCls.prototype["isPointInPolygons"]=function(a,polys){for(var c=0;c0){containsCoordinate=!containsCoordinate}if(!containsCoordinate){break}}if(containsCoordinate){return true}}return false};GeometryUtilCls.prototype["doesSegmentsIntersect"]=function(a1,a2,b1,b2){var pairs=this._lineToRawCoords([a1,a2,b1,b2]);a1=pairs[0];a2=pairs[1];b1=pairs[2];b2=pairs[3];var result=false;var ua_t=(b2[0]-b1[0])*(a1[1]-b1[1])-(b2[1]-b1[1])*(a1[0]-b1[0]);var ub_t=(a2[0]-a1[0])*(a1[1]-b1[1])-(a2[1]-a1[1])*(a1[0]-b1[0]);var u_b=(b2[1]-b1[1])*(a2[0]-a1[0])-(b2[0]-b1[0])*(a2[1]-a1[1]);if(u_b!==0){var ua=ua_t/u_b;var ub=ub_t/u_b;if(0<=ua&&ua<=1&&0<=ub&&ub<=1){result=true}}return result};GeometryUtilCls.prototype["doesSegmentLineIntersect"]=function(p1,p2,line){line=this["normalizeLine"](line);for(var i=0,len=line.length;i(cp2[1]-cp1[1])*(p[0]-cp1[0])};var intersection=function(){var dc=[cp1[0]-cp2[0],cp1[1]-cp2[1]],dp=[s[0]-e[0],s[1]-e[1]],n1=cp1[0]*cp2[1]-cp1[1]*cp2[0],n2=s[0]*e[1]-s[1]*e[0],n3=1/(dc[0]*dp[1]-dc[1]*dp[0]);return[(n1*dp[0]-n2*dc[0])*n3,(n1*dp[1]-n2*dc[1])*n3]};var outputList=subjectPolygon;cp1=clipPolygon[clipPolygon.length-1];for(var j=0,jlen=clipPolygon.length;j2&&(polygon[0][0][0].length===2||polygon[0][0][0]instanceof LngLat$1)){return"MultiPolygon"}else{return"never"}};return GeometryUtilCls}();var GeometryUtilInstance=new GeometryUtilCls({});var PlaneGeometryUtilInstance=new GeometryUtilCls({});PlaneGeometryUtilInstance["setCrs"]("plane");var GeometryUtil={distance:GeometryUtilInstance.distance.bind(GeometryUtilInstance),ringArea:GeometryUtilInstance.ringArea.bind(GeometryUtilInstance),isClockwise:GeometryUtilInstance.isClockwise.bind(GeometryUtilInstance),typePolygon:GeometryUtilInstance.typePolygon.bind(GeometryUtilInstance),makesureClockwise:GeometryUtilInstance.makesureClockwise.bind(GeometryUtilInstance),makesureAntiClockwise:GeometryUtilInstance.makesureAntiClockwise.bind(GeometryUtilInstance),distanceOfLine:GeometryUtilInstance.distanceOfLine.bind(GeometryUtilInstance),ringRingClip:GeometryUtilInstance.ringRingClip.bind(GeometryUtilInstance),doesSegmentsIntersect:GeometryUtilInstance.doesSegmentsIntersect.bind(GeometryUtilInstance),doesSegmentLineIntersect:GeometryUtilInstance.doesSegmentLineIntersect.bind(GeometryUtilInstance),doesSegmentRingIntersect:GeometryUtilInstance.doesSegmentRingIntersect.bind(GeometryUtilInstance),doesSegmentPolygonIntersect:GeometryUtilInstance.doesSegmentPolygonIntersect.bind(GeometryUtilInstance),doesLineLineIntersect:GeometryUtilInstance.doesLineLineIntersect.bind(GeometryUtilInstance),doesLineRingIntersect:GeometryUtilInstance.doesLineRingIntersect.bind(GeometryUtilInstance),doesRingRingIntersect:GeometryUtilInstance.doesRingRingIntersect.bind(GeometryUtilInstance),pointInRing:GeometryUtilInstance.pointInRing.bind(GeometryUtilInstance),isPointInRing:GeometryUtilInstance.isPointInRing.bind(GeometryUtilInstance),isPointInBbox:GeometryUtilInstance.isPointInBbox.bind(GeometryUtilInstance),isRingInRing:GeometryUtilInstance.isRingInRing.bind(GeometryUtilInstance),isPointInPolygon:GeometryUtilInstance.isPointInPolygon.bind(GeometryUtilInstance),isPointInPolygons:GeometryUtilInstance.isPointInPolygons.bind(GeometryUtilInstance),isPointOnSegment:GeometryUtilInstance.isPointOnSegment.bind(GeometryUtilInstance),isPointOnLine:GeometryUtilInstance.isPointOnLine.bind(GeometryUtilInstance),isPointOnRing:GeometryUtilInstance.isPointOnRing.bind(GeometryUtilInstance),isPointOnPolygon:GeometryUtilInstance.isPointOnPolygon.bind(GeometryUtilInstance),closestOnSegment:GeometryUtilInstance.closestOnSegment.bind(GeometryUtilInstance),closestOnLine:GeometryUtilInstance.closestOnLine.bind(GeometryUtilInstance),distanceToSegment:GeometryUtilInstance.distanceToSegment.bind(GeometryUtilInstance),distanceToLine:GeometryUtilInstance.distanceToLine.bind(GeometryUtilInstance)};var PlaneGeometryUtil={distance:PlaneGeometryUtilInstance.distance.bind(PlaneGeometryUtilInstance),ringArea:PlaneGeometryUtilInstance.ringArea.bind(PlaneGeometryUtilInstance),isClockwise:PlaneGeometryUtilInstance.isClockwise.bind(PlaneGeometryUtilInstance),typePolygon:PlaneGeometryUtilInstance.typePolygon.bind(PlaneGeometryUtilInstance),makesureClockwise:PlaneGeometryUtilInstance.makesureClockwise.bind(PlaneGeometryUtilInstance),makesureAntiClockwise:PlaneGeometryUtilInstance.makesureAntiClockwise.bind(PlaneGeometryUtilInstance),distanceOfLine:PlaneGeometryUtilInstance.distanceOfLine.bind(PlaneGeometryUtilInstance),ringRingClip:PlaneGeometryUtilInstance.ringRingClip.bind(PlaneGeometryUtilInstance),doesSegmentsIntersect:PlaneGeometryUtilInstance.doesSegmentsIntersect.bind(PlaneGeometryUtilInstance),doesSegmentLineIntersect:PlaneGeometryUtilInstance.doesSegmentLineIntersect.bind(PlaneGeometryUtilInstance),doesSegmentRingIntersect:PlaneGeometryUtilInstance.doesSegmentRingIntersect.bind(PlaneGeometryUtilInstance),doesSegmentPolygonIntersect:PlaneGeometryUtilInstance.doesSegmentPolygonIntersect.bind(PlaneGeometryUtilInstance),doesLineLineIntersect:PlaneGeometryUtilInstance.doesLineLineIntersect.bind(PlaneGeometryUtilInstance),doesLineRingIntersect:PlaneGeometryUtilInstance.doesLineRingIntersect.bind(PlaneGeometryUtilInstance),doesRingRingIntersect:PlaneGeometryUtilInstance.doesRingRingIntersect.bind(PlaneGeometryUtilInstance),pointInRing:PlaneGeometryUtilInstance.pointInRing.bind(PlaneGeometryUtilInstance),isPointInRing:PlaneGeometryUtilInstance.isPointInRing.bind(PlaneGeometryUtilInstance),isPointInBbox:PlaneGeometryUtilInstance.isPointInBbox.bind(PlaneGeometryUtilInstance),isRingInRing:PlaneGeometryUtilInstance.isRingInRing.bind(PlaneGeometryUtilInstance),isPointInPolygon:PlaneGeometryUtilInstance.isPointInPolygon.bind(PlaneGeometryUtilInstance),isPointInPolygons:PlaneGeometryUtilInstance.isPointInPolygons.bind(PlaneGeometryUtilInstance),isPointOnSegment:PlaneGeometryUtilInstance.isPointOnSegment.bind(PlaneGeometryUtilInstance),isPointOnLine:PlaneGeometryUtilInstance.isPointOnLine.bind(PlaneGeometryUtilInstance),isPointOnRing:PlaneGeometryUtilInstance.isPointOnRing.bind(PlaneGeometryUtilInstance),isPointOnPolygon:PlaneGeometryUtilInstance.isPointOnPolygon.bind(PlaneGeometryUtilInstance),closestOnSegment:PlaneGeometryUtilInstance.closestOnSegment.bind(PlaneGeometryUtilInstance),closestOnLine:PlaneGeometryUtilInstance.closestOnLine.bind(PlaneGeometryUtilInstance),distanceToSegment:PlaneGeometryUtilInstance.distanceToSegment.bind(PlaneGeometryUtilInstance),distanceToLine:PlaneGeometryUtilInstance.distanceToLine.bind(PlaneGeometryUtilInstance)};var LngLat$1=function(){function LngLat(lng,lat,noWrap){if(noWrap===void 0){noWrap=false}this.className="AMap.LngLat";if(isNumberArray(lng)){lng=parseFloat(lng[0]);lat=parseFloat(lng[1])}else{lat=parseFloat(lat);lng=parseFloat(lng)}if(isNaN(lng)||isNaN(lat)){if(!window._AMapConfig){throw Error("Invalid Object: LngLat("+lng+", "+lat+")")}}if(noWrap!==true){lat=Math.max(Math.min(lat,90),-90);lng=(lng+180)%360+(lng<-180||lng===180?180:-180)}this._highLat=lat;this._highLng=lng;this.lng=Math.round(lng*1e6)/1e6;this.lat=Math.round(lat*1e6)/1e6;this.pos=ProjectionManager.getProjection("EPSG:3857").project(lng,lat)}LngLat.from=function(point){if(isLngLat(point)){return new LngLat(point._highLng,point._highLat)}return new LngLat(point[0],point[1])};LngLat.prototype["setLng"]=function(lng){this._highLng=lng;this.lng=Math.round(lng*1e6)/1e6;return this};LngLat.prototype["setLat"]=function(lat){this._highLat=lat;this.lat=Math.round(lat*1e6)/1e6;return this};LngLat.prototype["getLng"]=function(){return this.lng};LngLat.prototype["getLat"]=function(){return this.lat};LngLat.prototype["equals"]=function(another){another=parseLngLatData(another);if(!(another instanceof LngLat)){return false}var margin=Math.max(Math.abs(this._highLat-another._highLat),Math.abs(this._highLng-another._highLng));return margin<=1e-9};LngLat.prototype["add"]=function(another,noWrap){return new LngLat(this._highLng+another._highLng,this._highLat+another._highLat,noWrap)};LngLat.prototype["subtract"]=function(another,noWrap){return new LngLat(this._highLng-another._highLng,this._highLat-another._highLat,noWrap)};LngLat.prototype["divideBy"]=function(num,noWrap){return new LngLat(this._highLng/num,this._highLat/num,noWrap)};LngLat.prototype["multiplyBy"]=function(num,noWrap){return new LngLat(this._highLng*num,this._highLat*num,noWrap)};LngLat.prototype["offset"]=function(E,N){if(isNaN(E)||isNaN(N)){throw Error("valid offset args, require number")}var aLng=2*Math.asin(Math.sin(Math.round(E)/(2*6378137))/Math.cos(this._highLat*Math.PI/180));var lng=this._highLng+aLng*180/Math.PI;var aLat=2*Math.asin(Math.round(N)/(2*6378137));var lat=this._highLat+aLat*180/Math.PI;return new LngLat(lng,lat)};LngLat.prototype["toString"]=function(){return this.lng+","+this.lat};LngLat.prototype["toArray"]=function(){return[this.lng,this.lat]};LngLat.prototype["toJSON"]=function(){return[this.lng,this.lat]};LngLat.prototype["distanceTo"]=function(another){return GeometryUtil["distance"](this,another)};LngLat.prototype["distance"]=function(another){return GeometryUtil["distance"](this,another)};return LngLat}();var Size=function(){function Size(width,height,isRound){if(isRound===void 0){isRound=false}this.className="AMap.Size";if(isNaN(width)||isNaN(height)){throw new Error("Invalid Object: Pixel("+width+", "+height+")")}this["width"]=isRound?Math.round(width):Number(width);this["height"]=isRound?Math.round(height):Number(height)}Size.prototype["getWidth"]=function(){return this.width};Size.prototype["getHeight"]=function(){return this.height};Size.prototype["toString"]=function(){return this.width+","+this.height};Size.prototype["toArray"]=function(){return[this.width,this.height]};return Size}();var extend=function(dest){var args=[];for(var _i=1;_i=0){forShort=["Intel"];if(0<=graphicVersion.indexOf("mobile")){forShort.push("Mobile")}if(0<=graphicVersion.indexOf("gma")||0<=graphicVersion.indexOf("graphics media accelerator")){forShort.push("GMA")}if(0<=graphicVersion.indexOf("haswell")){forShort.push("Haswell")}else if(0<=graphicVersion.indexOf("ivy")){forShort.push("HD 4000")}else if(0<=graphicVersion.indexOf("sandy")){forShort.push("HD 3000")}else if(0<=graphicVersion.indexOf("ironlake")){forShort.push("HD")}else{if(0<=graphicVersion.indexOf("hd")){forShort.push("HD")}var number=graphicVersion.match(numberRegex_1);if(number){forShort.push(number[1].toUpperCase())}}forShort=forShort.join(" ");return forShort}if(graphicVersion.indexOf("nvidia")>=0||graphicVersion.indexOf("quadro")>=0||graphicVersion.indexOf("geforce")>=0||graphicVersion.indexOf("nvs")>=0){forShort=["nVidia"];if(0<=graphicVersion.indexOf("geforce")){forShort.push("geForce")}if(0<=graphicVersion.indexOf("quadro")){forShort.push("Quadro")}if(0<=graphicVersion.indexOf("nvs")){forShort.push("NVS")}if(graphicVersion.match(/\\bion\\b/)){forShort.push("ION")}if(graphicVersion.match(/gtx\\b/)){forShort.push("GTX")}else if(graphicVersion.match(/gts\\b/)){forShort.push("GTS")}else if(graphicVersion.match(/gt\\b/)){forShort.push("GT")}else if(graphicVersion.match(/gs\\b/)){forShort.push("GS")}else if(graphicVersion.match(/ge\\b/)){forShort.push("GE")}else if(graphicVersion.match(/fx\\b/)){forShort.push("FX")}var number=graphicVersion.match(numberRegex_1);if(number){forShort.push(number[1].toUpperCase().replace("GS",""))}if(0<=graphicVersion.indexOf("titan")){forShort.push("TITAN")}else if(0<=graphicVersion.indexOf("ti")){forShort.push("Ti")}forShort=forShort.join(" ");return forShort}if(graphicVersion.indexOf("amd")>=0||graphicVersion.indexOf("ati")>=0||graphicVersion.indexOf("radeon")>=0||graphicVersion.indexOf("firegl")>=0||graphicVersion.indexOf("firepro")>=0){forShort=["AMD"];if(0<=graphicVersion.indexOf("mobil")){forShort.push("Mobility")}var radeonIndex=graphicVersion.indexOf("radeon");if(0<=radeonIndex){forShort.push("Radeon")}if(0<=graphicVersion.indexOf("firepro")){forShort.push("FirePro")}else if(0<=graphicVersion.indexOf("firegl")){forShort.push("FireGL")}if(0<=graphicVersion.indexOf("hd")){forShort.push("HD")}if(radeonIndex>=0){graphicVersion=graphicVersion.substring(radeonIndex)}var number=graphicVersion.match(numberRegex_1);if(number){forShort.push(number[1].toUpperCase().replace("HD",""))}forShort=forShort.join(" ");return forShort}return graphicVersion.substring(0,100)},blackGraphicCard_1="google swiftshader;microsoft basic render driver;vmware svga 3d;Intel 965GM;Intel B43;Intel G41;Intel G45;Intel G965;Intel GMA 3600;Intel Mobile 4;Intel Mobile 45;Intel Mobile 965".split(";"),ie="ActiveXObject"in win_1,retina=window["detectRetina"]==false?false:"devicePixelRatio"in win_1&&win_1["devicePixelRatio"]>1||ie&&"matchMedia"in win_1&&win_1.matchMedia("(min-resolution:144dpi)")&&win_1.matchMedia("(min-resolution:144dpi)").matches,windows=uaHas("windows nt"),windowslt7=ua.search(/windows nt [1-5]\\./)!==-1,windowsXP=ua.search(/windows nt 5\\.[12]/)!==-1,windows10=uaHas("windows nt 10"),winPhone=uaHas("windows phone"),mb2345Browser=uaHas("Mb2345Browser"),ioslt7=ios&&ua.search(/ os [456]_/)!==-1,ioslt9=ios&&ua.search(/ os [4-8]_/)!==-1,ios78=ios&&ua.search(/ os [78]_/)!==-1,ios8=ios&&uaHas("os 8_"),ios10=ios&&uaHas("os 10_"),android_1=uaHas("android");var androidVersion=0;if(android_1){androidVersion=parseInt(ua.split("android")[1])||0}var android23=android_1&&androidVersion<4,android5plus=android_1&&androidVersion>=5,android44plus=android5plus||ua.search(/android 4.4/)!==-1,plat_1=android_1?"android":ios?"ios":windows?"windows":mac?"mac":"other",ie6=ie&&!win_1["XMLHttpRequest"],ie7=ie&&!doc.querySelector,ielt9=ie&&!doc.addEventListener,ie9=ie&&uaHas("msie 9"),ie10=ie&&uaHas("msie 10"),ie11=ie&&uaHas("rv:11"),ielt10=ielt9||ie9,edge=uaHas("edge"),QtWeb=uaHas("qtweb"),uc=uaHas("ucbrowser"),gaodeCoords=uaHas("alipay")||android_1&&uc,xiaomi=uaHas("miuibrowser"),wechat=uaHas("micromessenger"),dingding=uaHas("dingtalk"),qq=uaHas("mqqbrowser"),baidu=uaHas("baidubrowser"),crios=uaHas("crios/"),chrome=uaHas("chrome/"),chromium=(chrome||crios)&&uaHas("chromium"),chrome30plus=!chromium&&(chrome&&parseInt(ua.split("chrome/")[1])>30||crios&&parseInt(ua.split("crios/")[1])>30),firefox=uaHas("firefox"),firefox27plus=firefox&&parseInt(ua.split("firefox/")[1])>27,safari7plus=safari&&parseInt(ua.split("version/")[1])>7,aliApp=ios&&uaHas("aliapp"),mobile_1=android_1||ios||winPhone||uaHas("mobile"),touchDev="ontouchstart"in doc,msPointer=win_1["navigator"]&&win_1["navigator"]["msPointerEnabled"]&&!!win_1["navigator"]["msMaxTouchPoints"],pointer=win_1["navigator"]&&!!win_1["navigator"]["maxTouchPoints"],pointerDev=!touchDev&&(pointer||msPointer),touch_1=touchDev||pointerDev,getScale=function(){if(!mobile_1){return win_1.devicePixelRatio||1}var metas=document.getElementsByTagName("meta");if(window.parent&&window.parent!==window){try{if(window.parent.location.origin===window.location.origin){metas=window.parent.document.getElementsByTagName("meta")}else{return 1}}catch(e){return 1}}for(var i=metas.length-1;i>=0;i-=1){if(metas[i].name==="viewport"){var content=metas[i].content;var initial_scale=void 0,minimum_scale=void 0,maximum_scale=void 0;if(content.indexOf("initial-scale")!==-1){initial_scale=parseFloat(content.split("initial-scale=")[1])}if(content.indexOf("minimum-scale")!==-1){minimum_scale=parseFloat(content.split("minimum-scale=")[1])}else{minimum_scale=0}if(content.indexOf("maximum-scale")!==-1){maximum_scale=parseFloat(content.split("maximum-scale=")[1])}else{maximum_scale=Infinity}if(initial_scale){if(maximum_scale>=minimum_scale){if(initial_scale>maximum_scale){return maximum_scale}else if(initial_scale=minimum_scale){if(minimum_scale>=1){return 1}else{return Math.min(maximum_scale,1)}}else{console&&console.log&&console.log("viewport参数不合法");return null}}}}return undefined},viewportScale=getScale(),needFitRetina_1=retina&&(!mobile_1||!!viewportScale&&viewportScale>=1),ie3d=ie&&"transition"in docE.style,isSvg=!!doc.createElementNS&&!!doc.createElementNS("http://www.w3.org/2000/svg","svg")["createSVGRect"],canvas_1=doc.createElement("canvas"),isCanvas_1=!!(canvas_1&&canvas_1.getContext),UrlLib=window["URL"]||window["webkitURL"],DataUrl2Blob=false;var isWorker_1=window["disableWorker"]!==true&&!ie&&!(uc&&android_1&&!chrome30plus)&&window["Worker"]&&UrlLib&&UrlLib["createObjectURL"]&&window["Blob"],webglContextName_1="",graphicCard_1="",maxRenderSize_1=0,needAntialias=window["higtQualityRender"]==false?retina?false:true:true,movingDraw=window["movingDraw"],webglParams_1=window["forceWebGL"]?{alpha:true,antialias:needAntialias,depth:true,stencil:true}:{alpha:true,antialias:needAntialias,depth:true,stencil:true},checkWebgl=function(){if(!isCanvas_1||!isWorker_1){return false}var contextName=["webgl","experimental-webgl","moz-webgl"];var gl=null;for(var i=0;imaxRenderSize_1){return false}if(23>gl.getShaderPrecisionFormat(35632,36338).precision||23>gl.getShaderPrecisionFormat(35633,36338).precision){return false}graphicCard_1=gl.getExtension("WEBGL_debug_renderer_info")?gl.getParameter(37446):null;var graphicCardShort=getGraphicCardShortStr_1(graphicCard_1);if(graphicCardShort){if(graphicCardShort.indexOf("google swiftshader")>-1){hardwareAccEnabled=false;return false}if(-1!==blackGraphicCard_1.indexOf(graphicCardShort)){return false}}webglContextName_1=contextName[i];return true}}return false},canWebGL=checkWebgl(),enableVector=config[8]!==undefined?config[8]:true,byWebgl=window["Uint8Array"]&&enableVector&&!window["forbidenWebGL"]&&canWebGL&&(window["forceWebGL"]||(chrome30plus||firefox27plus||safari7plus||edge||wechat||dingding)&&plat_1!=="other"),baseRender=window["forceWebGLBaseRender"]?"w":byWebgl?"w":"d",webkit_1=uaHas("webkit"),webkit3d="WebKitCSSMatrix"in win_1&&"m11"in new window["WebKitCSSMatrix"],gecko3d="MozPerspective"in docE.style,opera3d="OTransition"in docE.style,any3d=ie3d||webkit3d||gecko3d||opera3d,enableLabelImage=false,vdataVersion=config[12]!==undefined?config[12]:null;var localStore=true;try{if(typeof win_1.localStorage==="undefined"){localStore=false}else{var tmpData=(new Date).getTime()+"";win_1.localStorage.setItem("_test",tmpData);if(win_1.localStorage.getItem("_test")!==tmpData){localStore=false}win_1.localStorage.removeItem("_test")}}catch(e){localStore=false}var getContext=function(canvas,opt){var params={};extend(params,webglParams_1);extend(params,opt);return canvas.getContext(webglContextName_1,params)};var chromeversion=parseInt(ua.split("chrome/")[1]);Browser={iPad:iPad,iPhone:iPhone,size:iPhone?100:android_1?200:500,mac:mac,windows:windows,ios:ios,ios10:ios10,android:android_1,android23:android23,gaodeCoords:gaodeCoords,plat:plat_1,baidu:baidu,qq:qq,safari:safari,wechat:wechat,ie:ie,ie6:ie6,ie7:ie7,ie9:ie9,ie10:ie10,ielt9:ielt9,ielt10:ielt10,ie11:ie11,edge:edge,ielt11:ie&&!ie11,mb2345Browser:mb2345Browser,localStore:localStore,vdataVersion:vdataVersion,geolocation:mobile_1||ie&&!ielt9||edge,uc_:uc,uc:uc&&!chrome,chrome:chrome,drawTextDir:true,firefox:firefox,hardwareAccEnabled:hardwareAccEnabled,isMobile:mobile_1,mobileWebkit:mobile_1&&webkit_1,mobileWebkit3d:mobile_1&&webkit3d,mobileOpera:mobile_1&&win_1.opera,isRetina:retina,viewportScale:viewportScale,needFitRetina:needFitRetina_1,touch:touch_1,msPointer:msPointer,pointer:pointer,pointerDev:pointerDev,chrome57:chrome&&chromeversion>=57,chrome64:!mobile_1&&chrome&&chromeversion>=64,webkit:webkit_1,ie3d:ie3d,webkit3d:webkit3d,gecko3d:gecko3d,opera3d:opera3d,any3d:any3d,isSvg:isSvg,isCanvas:isCanvas_1,isWorker:isWorker_1,aliApps:aliApps,useLabelImage:enableLabelImage,isWebGL:byWebgl,webglContextName:webglContextName_1,webglParams:webglParams_1,graphicCard:graphicCard_1,maxRenderSize:maxRenderSize_1,DataUrl2Blob:DataUrl2Blob,movingDraw:movingDraw,baseRender:enableVector?baseRender:"d",scale:retina?2:1,getContext:getContext,isWebp:false,wasm:wasm,amapRunTime:amapRunTime,checkWebgl:checkWebgl};testWepP(function(isWebp){Browser.isWebp=isWebp})}return Browser}var Browser=getSupport(typeof config==="undefined"?[]:config);if(typeof createImageBitmap!=="undefined"&&typeof ImageBitmap!=="undefined"){Browser.imageBitmap=true}var canceledWorkerFetch=Boolean(Browser.isWorkerEnv?!Browser.safari&&!Browser.macWechat&&!Browser.windowsWechat&&self.fetch&&self.Request&&self.AbortController&&self.Request.prototype.hasOwnProperty("signal"):!Browser.safari&&!Browser.macWechat&&!Browser.windowsWechat&&!Browser.aliApps&&window.fetch&&window.Request&&window.AbortController&&window.Request.prototype.hasOwnProperty("signal"));Browser.canceledWorkerFetch=canceledWorkerFetch;Browser["amapRunTime"]={workerTime:{},dataTime:{}};var easing$1=function(){var records={};var NEWTON_ITERATIONS=4;var NEWTON_MIN_SLOPE=.001;var SUBDIVISION_PRECISION=1e-7;var SUBDIVISION_MAX_ITERATIONS=10;var kSplineTableSize=11;var kSampleStepSize=1/(kSplineTableSize-1);var float32ArraySupported=typeof Float32Array==="function";function A(aA1,aA2){return 1-3*aA2+3*aA1}function B(aA1,aA2){return 3*aA2-6*aA1}function C(aA1){return 3*aA1}function calcBezier(aT,aA1,aA2){return((A(aA1,aA2)*aT+B(aA1,aA2))*aT+C(aA1))*aT}function getSlope(aT,aA1,aA2){return 3*A(aA1,aA2)*aT*aT+2*B(aA1,aA2)*aT+C(aA1)}function binarySubdivide(aX,aA,aB,mX1,mX2){var currentX,currentT,i=0;do{currentT=aA+(aB-aA)/2;currentX=calcBezier(currentT,mX1,mX2)-aX;if(currentX>0){aB=currentT}else{aA=currentT}}while(Math.abs(currentX)>SUBDIVISION_PRECISION&&++i=NEWTON_MIN_SLOPE){return newtonRaphsonIterate(aX,guessForT,mX1,mX2)}else if(initialSlope===0){return guessForT}else{return binarySubdivide(aX,intervalStart,intervalStart+kSampleStepSize,mX1,mX2)}}var easingFunction=function(x){if(x===0){return 0}if(x===1){return 1}return calcBezier(getTForX(x),mY1,mY2)};records[easingKey]=easingFunction;return easingFunction}}();function getQuadBezierValue(t,p1,p2,p3){if(t>=1){return p3}var iT=1-t;return iT*iT*p1+2*iT*t*p2+t*t*p3}function cubic(t,p0,p1,p2,p3){if(t>=1){return p3}var cX=3*(p1.pos[0]-p0.pos[0]),bX=3*(p2.pos[0]-p1.pos[0])-cX,aX=p3.pos[0]-p0.pos[0]-cX-bX;var cY=3*(p1.pos[1]-p0.pos[1]),bY=3*(p2.pos[1]-p1.pos[1])-cY,aY=p3.pos[1]-p0.pos[1]-cY-bY;var x=aX*Math.pow(t,3)+bX*Math.pow(t,2)+cX*t+p0.pos[0];var y=aY*Math.pow(t,3)+bY*Math.pow(t,2)+cY*t+p0.pos[1];return ProjectionManager.getProjection("EPSG:3857").unproject(x,y)}function quad(t,p0,p1,p2){return ProjectionManager.getProjection("EPSG:3857").unproject(getQuadBezierValue(t,p0.pos[0],p1.pos[0],p2.pos[0]),getQuadBezierValue(t,p0.pos[1],p1.pos[1],p2.pos[1]))}function p20CoordsToLngLat(crs,a){if(Array.isArray(a)){a=new Pixel(a[0],a[1])}return crs.containerTolnglat(a,20)}function getSplitNum(pList,scaleFactor){var opts={tolerance:4,interpolateNumLimit:[3,300]};var tolerance=opts["tolerance"],interpolateLimit=opts["interpolateNumLimit"];tolerance=Math.max(2,tolerance);var xLen=0,yLen=0;for(var i=0,len=pList.length;i>0}return deltaValue}},createObjectURL:function(code,contentType){if(contentType===void 0){contentType="text/javascript; charset=utf-8"}var url=null;try{var urlLib=globalInstance["URL"]||globalInstance["webkitURL"];url=urlLib["createObjectURL"](new Blob([code],{type:contentType}))}catch(e){url=null}return url},revokeObjectURL:function(url){try{var urlLib=globalInstance["URL"]||globalInstance["webkitURL"];urlLib["revokeObjectURL"](url)}catch(e){}},arrayToVIObj:function(array){var obj={};for(var i=0,l=array.length;i0){fun(collection[0],0);if(l>1){fun(collection[1],1);for(var i=2;i"v5"){charactersLength=characters.length;offset=512}else{charactersLength=27;characters=characters.substr(0,27);offset=333}var d,res,temp,_i,_len;res=[];temp=NaN;for(_i=0,_len=ori.length;_i<_len;_i++){d=ori[_i];d=characters.indexOf(d);if(isNaN(temp)){temp=d*charactersLength}else{res.push(temp+d-offset);temp=NaN}}return res},separateDoForLoop:function(func,array){var unit=1;if(array.length>512){unit=Math.round(Math.pow(array.length,.5))}else{unit=array.length}var groups=Math.ceil(array.length/unit);for(var i=0;iarray.length){e=array.length}for(var j=s;j1){t-=1}if(t<1/6){return p+(q-p)*6*t}if(t<1/2){return q}if(t<2/3){return p+(q-p)*(2/3-t)*6}return p},rgbHex2Rgba:function(hex){if(hex.startsWith("#")){hex=hex.slice(1)}return Util.argbHex2Rgba("ff"+hex)},argbHex2Rgba:function(hex){if(hex.startsWith("#")){hex=hex.slice(1)}var parts=[];for(var i=0,len=hex.length;i>24&255)/255,(color>>16&255)/255,(color>>8&255)/255,(color&255)/255];return parts},isEmpty:function(obj){for(var i in obj){if(obj.hasOwnProperty(i)){return false}}return true},delArrayItem:function(array,n){if(n>=0){array.splice(n,1)}return array},startsWith:function(_long,_short){if(_long["startsWith"]){return _long["startsWith"](_short)}else{return _long.substr(0,_short.length)===_short}},deleteItemFromArray:function(array,item){var index=Util.indexOf(array,item);return Util.delArrayItem(array,index)},deleteItemFromArrayByIndex:function(array,index){return Util.delArrayItem(array,index)},filter:function(array,fun,context){var ret=[];Util.each(array,function(item,i){if(fun.call(context,item,i)){ret.push(item)}});return ret},indexOf:function(array,item){if(!array||!array.length){return-1}if(array["indexOf"]){return array["indexOf"](item)}else{for(var i=0;i2?Array.prototype.slice.call(arguments,2):null;if(supportNativeBind){if(args){args.unshift(context);return fn.bind.apply(fn,args)}else{return fn.bind(context)}}else{return function(){return fn.apply(context,args||arguments)}}}}(),setOptions:function(obj,opts){opts=opts||{};obj.opts=assign({},obj.opts,opts);return obj.opts},cloneDeep:function(value,customizer,thisArg){return typeof customizer=="function"?this.baseClone(value,true,this.bindCallback(customizer,thisArg,1)):this.baseClone(value,true)},baseClone:function(value,isDeep,customizer,key,object,stackA,stackB){var result;if(customizer){result=object?customizer(value,key,object):customizer(value)}if(result!==undefined){return result}if(!this.isObject(value)){return value}var isArr=this.isArray(value);if(isArr){result=this.initCloneArray(value);if(!isDeep){return this.arrayCopy(value,result)}}else{var tag=Object.prototype.toString.call(value),isFunc=tag=="[object Function]";if(tag=="[object Object]"||tag=="[object Arguments]"||isFunc&&!object){result=this.initCloneObject(isFunc?{}:value);if(!isDeep){return this.baseAssign(result,value)}}else{return object?value:{}}}stackA||(stackA=[]);stackB||(stackB=[]);var length=stackA.length;while(length--){if(stackA[length]==value){return stackB[length]}}stackA.push(value);stackB.push(result);(isArr?this.arrayEach:this.baseForOwn)(value,function(subValue,key){result[key]=Util.baseClone(subValue,isDeep,customizer,key,value,stackA,stackB)});return result},baseAssign:function(object,source){return source==null?object:this.baseCopy(source,Object.keys(source),object)},isObject:function(value){var type=typeof value;return!!value&&(type=="object"||type=="function")},isObjectLike:function(value){return!!value&&typeof value=="object"},isLength:function(value){return typeof value=="number"&&value>-1&&value%1==0&&value<=9007199254740991},initCloneArray:function(array){var length=array.length,result=new Array(length);if(length&&typeof array[0]=="string"&&Object.hasOwnProperty.call(array,"index")){result.index=array.index;result.input=array.input}return result},arrayCopy:function(source,array){var index=-1,length=source.length;array||(array=Array(length));while(++index1?1:-1;var lngFactor=parseInt("1"+lngKey)/3e3;var latFactor=parseInt("1"+latKey)/3e3;lng-=lngFactor*lngDir;lat-=latFactor*latDir;return new LngLat$1(parseFloat(lng).toFixed(5),parseFloat(lat).toFixed(5))},objHashCode:function(obj){if(typeof JSON!=="undefined"&&JSON.stringify){return Util.strHashCode(JSON.stringify(obj))}return null},stampHashCode:function(obj,refresh){var key="_amap_hash";if(refresh||!obj.hasOwnProperty(key)){var hash=Util.objHashCode(obj);if(hash){obj[key]=hash}}return obj[key]},parseLngLatData:function(data){if(Util.isArray(data)){if(Util.isArray(data[0])){for(var i=0;i=LocalZoom){var size=lcs.getSize();var centerCoord=frameState.viewState.centerCoord;var centerLocal=lcs.getLocalByCoord([centerCoord[0],centerCoord[1]]);var deltaX=localCenter.x-centerLocal.x;var deltaY=localCenter.y-centerLocal.y;if(deltaX!==0){deltaX*=size[0];localDeltaCenter[0]=deltaX}if(deltaY!==0){deltaY*=size[1];localDeltaCenter[1]=deltaY}}else if(localCenter){localDeltaCenter[0]+=localCenter.center[0];localDeltaCenter[1]+=localCenter.center[1]}return localDeltaCenter},checkInZooms:function(zoom,zooms){return zoom>=zooms[0]&&zoom<=zooms[1]},getTileTagByZoom:function(key,optimalZoom,forceAll){if(key===void 0){key=""}if(forceAll===void 0){forceAll=false}var z=key.split(",")[0]||"";if(forceAll){return"all"}if(z&&optimalZoom){return TagMap[optimalZoom]||"all"}return"all"},getTileTagByZ:function(z,optimalZoom,forceAll){if(forceAll===void 0){forceAll=false}if(forceAll){return"all"}if(z&&optimalZoom){return TagMap[optimalZoom]||"all"}return"all"},containTag:function(tag1,tag2){var flag=false;if(!tag1||!tag2){return flag}var tag1Number=this.getNumberByTag(tag1);var tag2Number=this.getNumberByTag(tag2);return tag1Number>=tag2Number},getNumberTag:function(tag){if(tag===void 0){tag="all"}var numberTag;switch(tag){case"lite":{numberTag=0;break}case"left":{numberTag=1;break}case"all":default:{numberTag=2}}return numberTag},getStringTag:function(tag){if(tag===void 0){tag=2}var numberTag;switch(tag){case 0:{numberTag=NebulaTagType.LITE;break}case 1:{numberTag=NebulaTagType.LEFT;break}case 2:default:{numberTag=NebulaTagType.ALL}}return numberTag},getNumberByTag:function(tag){var tagNumber=0;switch(tag){case"lite":{tagNumber=0;break}case"left":{tagNumber=1;break}case"all":{tagNumber=2;break}}return tagNumber},loadBaxia:function(callback){if(!window){callback({code:"0",mesage:"霸下加载失败"})}if(window["__AMap_web_baxia__"]){callback({code:"2",mesage:"霸下已加载,无需重复加载"})}else{window["__AMap_web_baxia__"]=true;var parentNode=document.body||document.head;var script=document.createElement("script");script.type="text/javascript";script.src="//g.alicdn.com/??AWSC/AWSC/awsc.js,sd/baxia-entry/baxiaCommon.js";script.onerror=function(e){window["__AMap_web_baxia__"]=false;callback({code:"0",mesage:"霸下加载失败"})};script.onload=function(){callback({code:"1",mesage:"霸下加载成功"})};parentNode.appendChild(script)}},getMarkUrl:function(){var src="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";return src}};(function(){var lastTime=0;function timeoutDefer(fn){var time=+new Date,timeToCall=Math.max(0,(Browser.android?50:20)-(time-lastTime));lastTime=time+timeToCall;return globalInstance.setTimeout(fn,50)}var timeoutClear=function(id){globalInstance.clearTimeout(id)};if(Browser.isWorkerEnv){var requestFn_1=timeoutDefer;var cancelFn_1=timeoutClear;originUtil["requestAnimFrame"]=function(fn,context,immediate,element){if(immediate){if(context){Util.bind(fn,context).call(context,element)}else{fn()}}else{return requestFn_1(function(){if(context){Util.bind(fn,context).call(context,element)}else{fn()}})}};originUtil["cancelAnimFrame"]=function(id){if(id){cancelFn_1.call(globalInstance,id)}};return}function getPrefixed(name){var i,fn,prefixes=["webkit","moz","o","ms"];for(i=0;i