@mapgis/webclient-common 17.6.20 → 17.6.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -93,7 +93,7 @@ function(e){if(null==e)throw new TypeError("Object.assign cannot be called with
93
93
  *
94
94
  * You should have received a copy of the GNU Affero General Public License
95
95
  * along with MarchingSquaresJS. If not, see <http://www.gnu.org/licenses/>.
96
- */(e,n),a=[],s=0;s<o.length;s++){for(var u=o[s],l=[],c=0;c<u.length;c++){var f=u[c];f.properties[r]?l.push(f.properties[r]):l.push(0),!0===i&&(f.properties.matrixPosition=[s,c])}a.push(l)}return a}(e,{zProperty:n,flip:!0}),s=function(e,t,r){for(var n=[],i=1;i<t.length;i++){var o=+t[i-1],a=+t[i],s=Eo(wo(Mi(e,o,a-o))),u={};u.groupedRings=s,u[r]=o+"-"+a,n.push(u)}return n}(a,t,n);return p((s=function(e,t,r){var n=Z(r),i=n[2]-n[0],o=n[3]-n[1],a=n[0],s=n[1],u=i/(t[0].length-1),l=o/(t.length-1),c=function(e){e[0]=e[0]*u+a,e[1]=e[1]*l+s};return e.forEach(function(e){e.groupedRings.forEach(function(e){e.forEach(function(e){e.forEach(c)})})}),e}(s,a,e)).map(function(e,t){if(o[t]&&!P(o[t]))throw new Error("Each mappedProperty is required to be an Object");var r=ce({},i,o[t]);return r[n]=e[n],m(e.groupedRings,r)}))},t.isolines=function(e,t,r){if(!P(r=r||{}))throw new Error("options is invalid");var n=r.zProperty||"elevation",i=r.commonProperties||{},o=r.breaksProperties||[];if(ne(e,"Point","Input must contain Points"),!t)throw new Error("breaks is required");if(!Array.isArray(t))throw new Error("breaks must be an Array");if(!P(i))throw new Error("commonProperties must be an Object");if(!Array.isArray(o))throw new Error("breaksProperties must be an Array");var a=function(e,t){if(!P(t=t||{}))throw new Error("options is invalid");var r=t.zProperty||"elevation",n=t.flip,i=t.flags;ne(e,"Point","input must contain Points");for(var o=function(e,t){var r={};return V(e,function(e){var t=$(e)[1];r[t]||(r[t]=[]),r[t].push(e)}),Object.keys(r).map(function(e){return r[e].sort(function(e,t){return $(e)[0]-$(t)[0]})}).sort(function(e,r){return t?$(e[0])[1]-$(r[0])[1]:$(r[0])[1]-$(e[0])[1]})}(e,n),a=[],s=0;s<o.length;s++){for(var u=o[s],l=[],c=0;c<u.length;c++){var f=u[c];f.properties[r]?l.push(f.properties[r]):l.push(0),!0===i&&(f.properties.matrixPosition=[s,c])}a.push(l)}return a}(e,{zProperty:n,flip:!0});return p(function(e,t,r){var n=Z(r),i=n[2]-n[0],o=n[3]-n[1],a=n[0],s=n[1],u=i/(t[0].length-1),l=o/(t.length-1),c=function(e){e[0]=e[0]*u+a,e[1]=e[1]*l+s};return e.forEach(function(e){N(e,c)}),e}(function(e,t,r,n,i){for(var o=[],a=1;a<t.length;a++){var s=+t[a],u=ce({},n,i[a]);u[r]=s;var l=y(de(e,s),u);o.push(l)}return o}(a,t,n,i,o),a,e))},t.kinks=function(e){var t,r,n={type:"FeatureCollection",features:[]};if("LineString"===(r="Feature"===e.type?e.geometry:e).type)t=[r.coordinates];else if("MultiLineString"===r.type)t=r.coordinates;else if("MultiPolygon"===r.type)t=[].concat.apply([],r.coordinates);else{if("Polygon"!==r.type)throw new Error("Input must be a LineString, MultiLineString, Polygon, or MultiPolygon Feature or Geometry");t=r.coordinates}return t.forEach(function(e){t.forEach(function(t){for(var r=0;r<e.length-1;r++)for(var i=r;i<t.length-1;i++){if(e===t){if(1===Math.abs(r-i))continue;if(0===r&&i===e.length-2&&e[r][0]===e[e.length-1][0]&&e[r][1]===e[e.length-1][1])continue}var o=yn(e[r][0],e[r][1],e[r+1][0],e[r+1][1],t[i][0],t[i][1],t[i+1][0],t[i+1][1]);o&&n.features.push(u([o[0],o[1]]))}})}),n},t.length=wn,t.lengthToDegrees=x,t.lengthToRadians=b,t.lineArc=Zn,t.lineChunk=function(e,t,r){if(!P(r=r||{}))throw new Error("options is invalid");var n=r.units,i=r.reverse;if(!e)throw new Error("geojson is required");if(t<=0)throw new Error("segmentLength must be greater than 0");var o=[];return q(e,function(e){i&&(e.geometry.coordinates=e.geometry.coordinates.reverse()),function(e,t,r,n){var i=wn(e,{units:r});if(i<=t)return n(e);var o=i/t;Number.isInteger(o)||(o=Math.floor(o)+1);for(var a=0;a<o;a++)n(En(e,t*a,t*(a+1),{units:r}))}(e,t,n,function(e){o.push(e)})}),p(o)},t.lineDistance=wn,t.lineEach=W,t.lineIntersect=un,t.lineOffset=function(e,t,r){if(!P(r=r||{}))throw new Error("options is invalid");var n=r.units;if(!e)throw new Error("geojson is required");if(null==t||isNaN(t))throw new Error("distance is required");var i=oe(e),o=e.properties;switch(i){case"LineString":return Co(e,t,n);case"MultiLineString":var a=[];return q(e,function(e){a.push(Co(e,t,n).geometry.coordinates)}),y(a,o);default:throw new Error("geometry "+i+" is not supported")}},t.lineOverlap=hi,t.lineReduce=H,t.lineSegment=Ar,t.lineSlice=function(e,t,r){var n=$(r);if("LineString"!==oe(r))throw new Error("line must be a LineString");for(var i,o=cn(r,e),a=cn(r,t),s=[(i=o.properties.index<=a.properties.index?[o,a]:[a,o])[0].geometry.coordinates],u=i[0].properties.index+1;u<i[1].properties.index+1;u++)s.push(n[u]);return s.push(i[1].geometry.coordinates),h(s,r.properties)},t.lineSliceAlong=En,t.lineSplit=function(e,t){if(!e)throw new Error("line is required");if(!t)throw new Error("splitter is required");var r=oe(e),n=oe(t);if("LineString"!==r)throw new Error("line must be LineString");if("FeatureCollection"===n)throw new Error("splitter cannot be a FeatureCollection");if("GeometryCollection"===n)throw new Error("splitter cannot be a GeometryCollection");var i=Cn(t,{precision:7});switch(n){case"Point":return Yn(e,i);case"MultiPoint":return Hn(e,i);case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":return Hn(e,un(e,i))}},t.lineString=h,t.lineStringToPolygon=ri,t.lineStrings=d,t.lineToPolygon=ri,t.mask=function(e,t){var r,n=c(t&&t.geometry.coordinates||[[[180,90],[-180,90],[-180,-90],[180,-90],[180,90]]]);return("FeatureCollection"===e.type?py(2===(r=e).features.length?yu.union(r.features[0].geometry.coordinates,r.features[1].geometry.coordinates):yu.union.apply(yu,r.features.map(function(e){return e.geometry.coordinates}))):py(yu.union(e.geometry.coordinates))).geometry.coordinates.forEach(function(e){n.geometry.coordinates.push(e[0])}),n},t.meta=K,t.midpoint=function(e,t){return nr(e,mt(e,t)/2,or(e,t))},t.moranIndex=function(e,t){var r=t.inputField,n=t.threshold||1e5,i=t.p||2,o=t.binary||!1,a=ls(e,{alpha:t.alpha||-1,binary:o,p:i,standardization:t.standardization||!0,threshold:n}),s=[];V(e,function(e){var t=e.properties||{};s.push(t[r])});for(var u=cs(s),l=function(e){for(var t=cs(e),r=0,n=0,i=e;n<i.length;n++){var o=i[n];r+=Math.pow(o-t,2)}return r/e.length}(s),c=0,f=0,h=0,d=0,p=a.length,y=0;y<p;y++){for(var g=0,m=0;m<p;m++)c+=a[y][m]*(s[y]-u)*(s[m]-u),f+=a[y][m],h+=Math.pow(a[y][m]+a[m][y],2),g+=a[y][m]+a[m][y];d+=Math.pow(g,2)}var v=c/f/l,_=-1/(p-1),S=(p*p*(h*=.5)-p*d+f*f*3)/((p-1)*(p+1)*(f*f))-_*_,b=Math.sqrt(S);return{expectedMoranIndex:_,moranIndex:v,stdNorm:b,zNorm:(v-_)/b}},t.multiLineString=y,t.multiPoint=g,t.multiPolygon=m,t.nearest=Gr,t.nearestPoint=Gr,t.nearestPointOnLine=cn,t.nearestPointToLine=function(e,t,r){void 0===r&&(r={});var n=r.units,i=r.properties||{},o=function(e){var t=[];switch(e.geometry?e.geometry.type:e.type){case"GeometryCollection":return j(e,function(e){"Point"===e.type&&t.push({type:"Feature",properties:{},geometry:e})}),{type:"FeatureCollection",features:t};case"FeatureCollection":return e.features=e.features.filter(function(e){return"Point"===e.geometry.type}),e;default:throw new Error("points must be a Point Collection")}}(e);if(!o.features.length)throw new Error("points must contain features");if(!t)throw new Error("line is required");if("LineString"!==oe(t))throw new Error("line must be a LineString");var a=1/0,s=null;return V(o,function(e){var r=hn(e,t,{units:n});r<a&&(a=r,s=e)}),s&&(s.properties=ce({dist:a},s.properties,i)),s},t.planepoint=function(e,t){var r=Q(e),n=ie(t).coordinates[0];if(n.length<4)throw new Error("OuterRing of a Polygon must have 4 or more Positions.");var i=t.properties||{},o=i.a,a=i.b,s=i.c,u=r[0],l=r[1],c=n[0][0],f=n[0][1],h=void 0!==o?o:n[0][2],d=n[1][0],p=n[1][1],y=void 0!==a?a:n[1][2],g=n[2][0],m=n[2][1],v=void 0!==s?s:n[2][2];return(v*(u-c)*(l-p)+h*(u-d)*(l-m)+y*(u-g)*(l-f)-y*(u-c)*(l-m)-v*(u-d)*(l-f)-h*(u-g)*(l-p))/((u-c)*(l-p)+(u-d)*(l-m)+(u-g)*(l-f)-(u-c)*(l-m)-(u-d)*(l-f)-(u-g)*(l-p))},t.point=u,t.pointGrid=On,t.pointOnFeature=gn,t.pointOnLine=cn,t.pointOnSurface=gn,t.pointToLineDistance=hn,t.points=l,t.pointsWithinPolygon=gt,t.polygon=c,t.polygonSmooth=function(e,t){var r=[],n=t.iterations||1;if(!e)throw new Error("inputPolys is required");return j(e,function(e,t,i){var o,a,s;switch(e.type){case"Polygon":o=[[]];for(var u=0;u<n;u++)s=[[]],a=e,u>0&&(a=c(o).geometry),as(a,s),o=s.slice(0);r.push(c(o,i));break;case"MultiPolygon":o=[[[]]];for(var l=0;l<n;l++)s=[[[]]],a=e,l>0&&(a=m(o).geometry),ss(a,s),o=s.slice(0);r.push(m(o,i));break;default:throw new Error("geometry is invalid, must be Polygon or MultiPolygon")}}),p(r)},t.polygonTangents=function(e,t){var r,n,i,o,a=$(e),s=$(t),l=Z(t),c=0,f=null;switch(a[0]>l[0]&&a[0]<l[2]&&a[1]>l[1]&&a[1]<l[3]&&(c=(f=Gr(e,ur(t))).properties.featureIndex),oe(t)){case"Polygon":r=s[0][c],n=s[0][0],null!==f&&f.geometry.coordinates[1]<a[1]&&(n=s[0][c]),o=Si(s[0][0],s[0][s[0].length-1],a);var h=vi(s[0],a,o,i,r,n);r=h[0],n=h[1];break;case"MultiPolygon":for(var d=0,y=0,g=0,m=0;m<s[0].length;m++){d=m;for(var v=!1,_=0;_<s[0][m].length;_++){if(y=_,g===c){v=!0;break}g++}if(v)break}r=s[0][d][y],n=s[0][d][y],o=Si(s[0][0][0],s[0][0][s[0][0].length-1],a),s.forEach(function(e){var t=vi(e[0],a,o,i,r,n);r=t[0],n=t[1]})}return p([u(r),u(n)])},t.polygonToLine=$n,t.polygonToLineString=$n,t.polygonize=function(e){var t=Do.fromGeoJson(e);t.deleteDangles(),t.deleteCutEdges();var r=[],n=[];return t.getEdgeRings().filter(function(e){return e.isValid()}).forEach(function(e){e.isHole()?r.push(e):n.push(e)}),r.forEach(function(e){Vo.findEdgeRingContaining(e,n)&&n.push(e)}),p(n.map(function(e){return e.toPolygon()}))},t.polygons=f,t.projection=gs,t.propEach=G,t.propReduce=A,t.propertiesContainsFilter=Ls,t.radians2degrees=E,t.radiansToDegrees=E,t.radiansToDistance=S,t.radiansToLength=S,t.random=Es,t.randomLineString=bs,t.randomPoint=_s,t.randomPolygon=Ss,t.randomPosition=vs,t.rewind=function(e,t){if(!P(t=t||{}))throw new Error("options is invalid");var r=t.reverse||!1,n=t.mutate||!1;if(!e)throw new Error("<geojson> is required");if("boolean"!=typeof r)throw new Error("<reverse> must be a boolean");if("boolean"!=typeof n)throw new Error("<mutate> must be a boolean");!1===n&&(e=xt(e));var i=[];switch(e.type){case"GeometryCollection":return j(e,function(e){xi(e,r)}),e;case"FeatureCollection":return V(e,function(e){V(xi(e,r),function(e){i.push(e)})}),p(i)}return xi(e,r)},t.rhumbBearing=yi,t.rhumbDestination=mi,t.rhumbDistance=fn,t.round=_,t.sample=function(e,t){if(!e)throw new Error("featurecollection is required");if(null==t)throw new Error("num is required");if("number"!=typeof t)throw new Error("num must be a number");return p(function(e,t){for(var r,n,i=e.slice(0),o=e.length,a=o-t;o-- >a;)r=i[n=Math.floor((o+1)*Math.random())],i[n]=i[o],i[o]=r;return i.slice(a)}(e.features,t))},t.sector=function(e,t,r,n,i){if(!P(i=i||{}))throw new Error("options is invalid");var o=i.properties;if(!e)throw new Error("center is required");if(null==r)throw new Error("bearing1 is required");if(null==n)throw new Error("bearing2 is required");if(!t)throw new Error("radius is required");if("object"!=typeof i)throw new Error("options must be an object");if(pi(r)===pi(n))return ir(e,t,i);var a=$(e),s=[[a]];return N(Zn(e,t,r,n,i),function(e){s[0].push(e)}),s[0].push(a),c(s,o)},t.segmentEach=J,t.segmentReduce=z,t.shortestPath=function(e,t,r){if(!P(r=r||{}))throw new Error("options is invalid");var n=r.resolution,i=r.minDistance,o=r.obstacles||p([]);if(!e)throw new Error("start is required");if(!t)throw new Error("end is required");if(n&&!k(n)||n<=0)throw new Error("options.resolution must be a number, greater than 0");if(i)throw new Error("options.minDistance is not yet implemented");var s=Q(e),l=Q(t);switch(e=u(s),t=u(l),oe(o)){case"FeatureCollection":if(0===o.features.length)return h([s,l]);break;case"Polygon":o=p([a(ie(o))]);break;default:throw new Error("invalid obstacles")}var c=o;c.features.push(e),c.features.push(t);var f=Z(ko(er(Z(c)),1.15));n||(n=mt([f[0],f[1]],[f[2],f[1]],r)/100),c.features.pop(),c.features.pop();for(var d=f[0],y=f[1],g=f[2],m=f[3],v=n/mt([d,y],[g,y],r)*(g-d),_=n/mt([d,y],[d,m],r)*(m-y),S=g-d,b=m-y,x=(S-Math.floor(S/v)*v)/2,w=[],E=[],T=[],I=[],M=1/0,L=1/0,O=m-(b-Math.floor(b/_)*_)/2,C=0;O>=y;){for(var N=[],R=[],G=d+x,A=0;G<=g;){var V=u([G,O]),D=_a(V,o);N.push(D?0:1),R.push(G+"|"+O);var F=mt(V,e);!D&&F<M&&(M=F,T={x:A,y:C});var j=mt(V,t);!D&&j<L&&(L=j,I={x:A,y:C}),G+=v,A++}E.push(N),w.push(R),O-=_,C++}var B=new ga(E,{diagonal:!0}),q=B.grid[T.y][T.x],U=B.grid[I.y][I.x],J=[s];return ya.search(B,q,U).forEach(function(e){var t=w[e.x][e.y].split("|");J.push([+t[0],+t[1]])}),J.push(l),Ut(h(J))},t.simplify=function(e,t){if(!P(t=t||{}))throw new Error("options is invalid");var r=void 0!==t.tolerance?t.tolerance:1,n=t.highQuality||!1,i=t.mutate||!1;if(!e)throw new Error("geojson is required");if(r&&r<0)throw new Error("invalid tolerance");return!0!==i&&(e=xt(e)),j(e,function(e){!function(e,t,r){var n=e.type;if("Point"===n||"MultiPoint"===n)return e;Ut(e,!0);var i=e.coordinates;switch(n){case"LineString":e.coordinates=Xt(i,t,r);break;case"MultiLineString":e.coordinates=i.map(function(e){return Xt(e,t,r)});break;case"Polygon":e.coordinates=Kt(i,t,r);break;case"MultiPolygon":e.coordinates=i.map(function(e){return Kt(e,t,r)})}}(e,r,n)}),e},t.square=rr,t.squareGrid=yy,t.standardDeviationalEllipse=function(e,t){if(!P(t=t||{}))throw new Error("options is invalid");var r=t.steps||64,n=t.weight,i=t.properties||{};if(!k(r))throw new Error("steps must be a number");if(!P(i))throw new Error("properties must be a number");var o=F(e).length,a=is(e,{weight:n}),s=0,u=0,l=0;V(e,function(e){var t=e.properties[n]||1,r=os($(e),$(a));s+=Math.pow(r.x,2)*t,u+=Math.pow(r.y,2)*t,l+=r.x*r.y*t});var c=s-u,f=Math.sqrt(Math.pow(c,2)+4*Math.pow(l,2)),h=2*l,d=Math.atan((c+f)/h),y=180*d/Math.PI,g=0,m=0,v=0;V(e,function(e){var t=e.properties[n]||1,r=os($(e),$(a));g+=Math.pow(r.x*Math.cos(d)-r.y*Math.sin(d),2)*t,m+=Math.pow(r.x*Math.sin(d)+r.y*Math.cos(d),2)*t,v+=t});var _=Math.sqrt(2*g/v),S=Math.sqrt(2*m/v),b=rs(a,_,S,{units:"degrees",angle:y,steps:r,properties:i}),x=gt(e,p([b])),w={meanCenterCoordinates:$(a),semiMajorAxis:_,semiMinorAxis:S,numberOfFeatures:o,angle:y,percentageWithinEllipse:100*F(x).length/o};return b.properties.standardDeviationalEllipse=w,b},t.tag=function(e,t,r,n){return e=xt(e),t=xt(t),V(e,function(e){e.properties||(e.properties={}),V(t,function(t){void 0===e.properties[n]&&pt(e,t)&&(e.properties[n]=t.properties[r])})}),e},t.tesselate=function(e){if(!e.geometry||"Polygon"!==e.geometry.type&&"MultiPolygon"!==e.geometry.type)throw new Error("input must be a Polygon or MultiPolygon");var t={type:"FeatureCollection",features:[]};return"Polygon"===e.geometry.type?t.features=Rr(e.geometry.coordinates):e.geometry.coordinates.forEach(function(e){t.features=t.features.concat(Rr(e))}),t},t.tin=vt,t.toMercator=fs,t.toWgs84=hs,t.transformRotate=Mo,t.transformScale=ko,t.transformTranslate=function(e,t,r,n){if(!P(n=n||{}))throw new Error("options is invalid");var i=n.units,o=n.zTranslation,a=n.mutate;if(!e)throw new Error("geojson is required");if(null==t||isNaN(t))throw new Error("distance is required");if(o&&"number"!=typeof o&&isNaN(o))throw new Error("zTranslation is not a number");if(o=void 0!==o?o:0,0===t&&0===o)return e;if(null==r||isNaN(r))throw new Error("direction is required");return t<0&&(t=-t,r+=180),!1!==a&&void 0!==a||(e=xt(e)),N(e,function(e){var n=$(mi(e,t,r,{units:i}));e[0]=n[0],e[1]=n[1],o&&3===e.length&&(e[2]+=o)}),e},t.triangleGrid=gy,t.truncate=Cn,t.union=function(e,t,r){void 0===r&&(r={});var n=ie(e),i=ie(t),o=yu.union(n.coordinates,i.coordinates);return 0===o.length?null:1===o.length?c(o[0],r.properties):m(o,r.properties)},t.unitsFactors=i,t.unkinkPolygon=function(e){var t=[];return q(e,function(e){"Polygon"===e.geometry.type&&V(function(e){if("Feature"!=e.type)throw new Error("The input must a geojson object of type Feature");if(void 0===e.geometry||null==e.geometry)throw new Error("The input must a geojson object with a non-empty geometry");if("Polygon"!=e.geometry.type)throw new Error("The input must be a geojson Polygon");for(var t=e.geometry.coordinates.length,r=[],n=0;n<t;n++){var i=e.geometry.coordinates[n];Fn(i[0],i[i.length-1])||i.push(i[0]),r.push.apply(r,i.slice(0,i.length-1))}if(!function(e){for(var t={},r=1,n=0,i=e.length;n<i;++n){if(Object.prototype.hasOwnProperty.call(t,e[n])){r=0;break}t[e[n]]=1}return r}(r))throw new Error("The input polygon may not have duplicate vertices (except for the first and last vertex of each ring)");var o=r.length,a=function(e,t,r){if("Polygon"!==e.geometry.type)throw new Error("The input feature must be a Polygon");void 0===r&&(r=1);var n=e.geometry.coordinates,i=[],o={};if(r){for(var a=[],s=0;s<n.length;s++)for(var u=0;u<n[s].length-1;u++)a.push(y(s,u));var l=we();l.load(a)}for(var c=0;c<n.length;c++)for(var f=0;f<n[c].length-1;f++)if(r)l.search(y(c,f)).forEach(function(e){var t=e.ring,r=e.edge;p(c,f,t,r)});else for(var h=0;h<n.length;h++)for(var d=0;d<n[h].length-1;d++)p(c,f,h,d);return t||(i={type:"Feature",geometry:{type:"MultiPoint",coordinates:i}}),i;function p(e,r,a,s){var u,l,c=n[e][r],f=n[e][r+1],h=n[a][s],d=n[a][s+1],p=function(e,t,r,n){if(Rn(e,r)||Rn(e,n)||Rn(t,r)||Rn(n,r))return null;var i=e[0],o=e[1],a=t[0],s=t[1],u=r[0],l=r[1],c=n[0],f=n[1],h=(i-a)*(l-f)-(o-s)*(u-c);return 0===h?null:[((i*s-o*a)*(u-c)-(i-a)*(u*f-l*c))/h,((i*s-o*a)*(l-f)-(o-s)*(u*f-l*c))/h]}(c,f,h,d);if(null!==p&&(u=f[0]!==c[0]?(p[0]-c[0])/(f[0]-c[0]):(p[1]-c[1])/(f[1]-c[1]),l=d[0]!==h[0]?(p[0]-h[0])/(d[0]-h[0]):(p[1]-h[1])/(d[1]-h[1]),!(u>=1||u<=0||l>=1||l<=0))){var y=p,g=!o[y];g&&(o[y]=!0),t?i.push(t(p,e,r,c,f,u,a,s,h,d,l,g)):i.push(p)}}function y(e,t){var r,i,o,a,s=n[e][t],u=n[e][t+1];return s[0]<u[0]?(r=s[0],i=u[0]):(r=u[0],i=s[0]),s[1]<u[1]?(o=s[1],a=u[1]):(o=u[1],a=s[1]),{minX:r,minY:o,maxX:i,maxY:a,ring:e,edge:t}}}(e,function(e,t,r,n,i,o,a,s,u,l,c,f){return[e,t,r,n,i,o,a,s,u,l,c,f]}),s=a.length;if(0==s){var u=[];for(n=0;n<t;n++)u.push(c([e.geometry.coordinates[n]],{parent:-1,winding:Dn(e.geometry.coordinates[n])}));var l=p(u);return D(),F(),l}var f=[],h=[];for(n=0;n<t;n++){f.push([]);for(var d=0;d<e.geometry.coordinates[n].length-1;d++)f[n].push([new Gn(e.geometry.coordinates[n][jn(d+1,e.geometry.coordinates[n].length-1)],1,[n,d],[n,jn(d+1,e.geometry.coordinates[n].length-1)],void 0)]),h.push(new An(e.geometry.coordinates[n][d],[n,jn(d-1,e.geometry.coordinates[n].length-1)],[n,d],void 0,void 0,!1,!0))}for(n=0;n<s;n++)f[a[n][1]][a[n][2]].push(new Gn(a[n][0],a[n][5],[a[n][1],a[n][2]],[a[n][6],a[n][7]],void 0)),a[n][11]&&h.push(new An(a[n][0],[a[n][1],a[n][2]],[a[n][6],a[n][7]],void 0,void 0,!0,!0));var y=h.length;for(n=0;n<f.length;n++)for(d=0;d<f[n].length;d++)f[n][d].sort(function(e,t){return e.param<t.param?-1:1});var g=[];for(n=0;n<y;n++)g.push({minX:h[n].coord[0],minY:h[n].coord[1],maxX:h[n].coord[0],maxY:h[n].coord[1],index:n});var m=we();for(m.load(g),n=0;n<f.length;n++)for(d=0;d<f[n].length;d++)for(var v=0;v<f[n][d].length;v++){S=v==f[n][d].length-1?f[n][jn(d+1,e.geometry.coordinates[n].length-1)][0].coord:f[n][d][v+1].coord;var _=m.search({minX:S[0],minY:S[1],maxX:S[0],maxY:S[1]})[0];f[n][d][v].nxtIsectAlongEdgeIn=_.index}for(n=0;n<f.length;n++)for(d=0;d<f[n].length;d++)for(v=0;v<f[n][d].length;v++){var S=f[n][d][v].coord,b=(_=m.search({minX:S[0],minY:S[1],maxX:S[0],maxY:S[1]})[0]).index;b<o?h[b].nxtIsectAlongRingAndEdge2=f[n][d][v].nxtIsectAlongEdgeIn:Fn(h[b].ringAndEdge1,f[n][d][v].ringAndEdgeIn)?h[b].nxtIsectAlongRingAndEdge1=f[n][d][v].nxtIsectAlongEdgeIn:h[b].nxtIsectAlongRingAndEdge2=f[n][d][v].nxtIsectAlongEdgeIn}var x=[];for(n=0,d=0;d<t;d++){var w=n;for(v=0;v<e.geometry.coordinates[d].length-1;v++)h[n].coord[0]<h[w].coord[0]&&(w=n),n++;var E=h[w].nxtIsectAlongRingAndEdge2;for(v=0;v<h.length;v++)if(h[v].nxtIsectAlongRingAndEdge1==w||h[v].nxtIsectAlongRingAndEdge2==w){var T=v;break}var I=Vn([h[T].coord,h[w].coord,h[E].coord],!0)?1:-1;x.push({isect:w,parent:-1,winding:I})}for(x.sort(function(e,t){return h[e.isect].coord>h[t.isect].coord?-1:1}),u=[];x.length>0;){var M=x.pop(),k=M.isect,P=M.parent,L=M.winding,O=u.length,C=[h[k].coord],N=k;if(h[k].ringAndEdge1Walkable)var R=h[k].ringAndEdge1,G=h[k].nxtIsectAlongRingAndEdge1;else R=h[k].ringAndEdge2,G=h[k].nxtIsectAlongRingAndEdge2;for(;!Fn(h[k].coord,h[G].coord);){C.push(h[G].coord);var A=void 0;for(n=0;n<x.length;n++)if(x[n].isect==G){A=n;break}if(null!=A&&x.splice(A,1),Fn(R,h[G].ringAndEdge1)){if(R=h[G].ringAndEdge2,h[G].ringAndEdge2Walkable=!1,h[G].ringAndEdge1Walkable){var V={isect:G};Vn([h[N].coord,h[G].coord,h[h[G].nxtIsectAlongRingAndEdge2].coord],1==L)?(V.parent=P,V.winding=-L):(V.parent=O,V.winding=L),x.push(V)}N=G,G=h[G].nxtIsectAlongRingAndEdge2}else R=h[G].ringAndEdge1,h[G].ringAndEdge1Walkable=!1,h[G].ringAndEdge2Walkable&&(V={isect:G},Vn([h[N].coord,h[G].coord,h[h[G].nxtIsectAlongRingAndEdge1].coord],1==L)?(V.parent=P,V.winding=-L):(V.parent=O,V.winding=L),x.push(V)),N=G,G=h[G].nxtIsectAlongRingAndEdge1}C.push(h[G].coord),u.push(c([C],{index:O,parent:P,winding:L,netWinding:void 0}))}function D(){for(var e=[],t=0;t<l.features.length;t++)-1==l.features[t].properties.parent&&e.push(t);if(e.length>1)for(t=0;t<e.length;t++){for(var r=-1,n=0;n<l.features.length;n++)e[t]!=n&&pt(l.features[e[t]].geometry.coordinates[0][0],l.features[n],{ignoreBoundary:!0})&&_n(l.features[n])<1/0&&(r=n);l.features[e[t]].properties.parent=r}}function F(){for(var e=0;e<l.features.length;e++)if(-1==l.features[e].properties.parent){var t=l.features[e].properties.winding;l.features[e].properties.netWinding=t,j(e,t)}}function j(e,t){for(var r=0;r<l.features.length;r++)if(l.features[r].properties.parent==e){var n=t+l.features[r].properties.winding;l.features[r].properties.netWinding=n,j(r,n)}}return l=p(u),D(),F(),l}(e),function(r){t.push(c(r.geometry.coordinates,e.properties))})}),p(t)},t.validateBBox=L,t.validateId=O,t.voronoi=function(e,t){if(!P(t=t||{}))throw new Error("options is invalid");var r=t.bbox||[-180,-85,180,85];if(!e)throw new Error("points is required");if(!Array.isArray(r))throw new Error("bbox is invalid");return ne(e,"Point","points"),p(function(){var e=ba,t=xa,r=null;function n(n){return new es(n.map(function(r,i){var o=[Math.round(e(r,i,n)/Za)*Za,Math.round(t(r,i,n)/Za)*Za];return o.index=i,o.data=r,o}),r)}return n.polygons=function(e){return n(e).polygons()},n.links=function(e){return n(e).links()},n.triangles=function(e){return n(e).triangles()},n.x=function(t){return arguments.length?(e="function"==typeof t?t:Sa(+t),n):e},n.y=function(e){return arguments.length?(t="function"==typeof e?e:Sa(+e),n):t},n.extent=function(e){return arguments.length?(r=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],n):r&&[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},n.size=function(e){return arguments.length?(r=null==e?null:[[0,0],[+e[0],+e[1]]],n):r&&[r[1][0]-r[0][0],r[1][1]-r[0][1]]},n}().x(function(e){return e.geometry.coordinates[0]}).y(function(e){return e.geometry.coordinates[1]}).extent([[r[0],r[1]],[r[2],r[3]]]).polygons(e.features).map(ts))},t.within=gt,Object.defineProperty(t,"__esModule",{value:!0})}(t)}).call(this,r(170))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=m(r(13)),i=m(r(10)),o=m(r(3)),a=m(r(0)),s=m(r(2)),u=m(r(4)),l=m(r(5)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(39)),f=m(r(93)),h=r(1),d=r(6),p=r(49),y=m(r(70)),g=r(9);function m(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return e=(0,h.defaultValue)(e,{}),r.spatialReference=(0,h.defaultValue)(y.default.fromJSON(e.spatialReference),new y.default("EPSG:4326")),r.hasZ=!1,r.type=d.GeometryType.geometry,r.extensionOptions=(0,h.defaultValue)(e.extensionOptions,{}),r}return(0,l.default)(t,e),(0,s.default)(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){return{spatialReference:this.spatialReference instanceof y.default?this.spatialReference.toJSON():this.spatialReference,hasZ:this.hasZ,type:this.type,extensionOptions:(0,h.cloneObject)(this.extensionOptions)}}},{key:"toGeoJSON",value:function(){return{type:this.type,coordinates:this.coordinates}}},{key:"fromGeoJSON",value:function(e){(e||e.type!==this.type)&&new Error("GeoJSON类型和几何类型不一致"),(0,h.defined)(this.coordinates)&&(this.coordinates=e.coordinates)}},{key:"toXML",value:function(){return""}},{key:"getType",value:function(){return this.type}},{key:"getIGSType",value:function(){return d.IGSGeometryType.geometry}},{key:"getGeometryType",value:function(){return this.type}},{key:"toString",value:function(){return""}}],[{key:"fromGeoJSON",value:function(e){return(0,p.createGeometryByGeoJSON)(e,new y.default("EPSG:4326"))}},{key:"fromJSON",value:function(e){return e=(0,h.defaultValue)(e,{}),(0,p.createGeometry)(e)}},{key:"isClockwise",value:function(e){e=(0,h.defaultValue)(e,void 0),(0,h.isNull)(e)&&h.Log.error("geometry1不能为空!"),e instanceof Array||h.Log.error("输入参数类型错误,需要输入点数组!");for(var t=0;t<e.length;t++)if(e[t]instanceof Array)for(var r=0;r<e[t].length;r++)e[t][r]instanceof Array&&h.Log.error("输入参数类型错误,需要输入二维数组!");else h.Log.error("输入参数类型错误,需要输入二维数组!");if(e[0].length===e[e.length-1].length&&(0,i.default)(e[0])===(0,i.default)(e[e.length-1])||h.Log.error("输入的点数组必须首尾闭合!"),!(0,h.isNull)(e)){var n=c.lineString(e);return c.booleanClockwise(n)}}},{key:"fromRings",value:function(e,t){e=(0,h.defaultValue)(e,void 0);var r=(0,h.defaultValue)(y.default.fromJSON(t),new y.default("EPSG:4326"));(0,h.isNull)(e)&&h.Log.error("geometry1不能为空!"),e instanceof Array||h.Log.error("输入参数类型错误,需要输入点数组!"),3!==this._multiarr(e)&&h.Log.error("输入参数错误,需要输入三维数组!");var n=void 0;if(1===e.length){var o=e[0];return o[0].length===o[o.length-1].length&&(0,i.default)(o[0])===(0,i.default)(o[o.length-1])||o.push(o[0]),new g.Polygon({coordinates:[o],spatialReference:r})}for(var a=[],s=0;s<e.length;s++){var u={geometry:void 0,area:null,inner:[]};(0,i.default)(e[s][0])!==(0,i.default)(e[s][e[s].length-1])&&e[s].push(e[s][0]);var l=new g.Polygon({coordinates:[e[s]],spatialReference:r});u.geometry=l,u.area=g.GeometryEngine.planarArea(l),a.push(u)}for(var c=this._processArr([],a),f=[],d=function(e){var t=[c[e].geometry.coordinates[0]];c[e].inner.length>=1&&c[e].inner.forEach(function(e){t.push(e.geometry.coordinates[0])}),f.push(t)},p=0;p<c.length;p++)d(p);for(var m=[],v=0;v<c.length;v++)n=new g.Polygon({coordinates:f[v],spatialReference:r}),m.push(n);return m}},{key:"_processArr",value:function(e,t){t.sort(function(e,t){return t.area-e.area});for(var r=t[0],n=[],i=1;i<t.length;i++)g.GeometryEngine.disjoint(r.geometry,t[i].geometry)?n.push(t[i]):g.GeometryEngine.contains(r.geometry,t[i].geometry)?r.inner.push(t[i]):n.push(t[i]);if(r.inner.length>1)for(var o=0;o<r.inner.length;o++)for(var a=r.inner[o],s=o+1;s<r.inner.length;s++)g.GeometryEngine.intersects(a.geometry,r.inner[s].geometry)&&(g.GeometryEngine.contains(a.geometry,r.inner[s].geometry)?(n.push(r.inner[s]),r.inner.splice(s,1),s--):h.Log.error("输入的几何存在拓扑错误,请检查"));return e.push(r),n.length>1?this._processArr(e,n):1===n.length&&e.push(n[0]),e}},{key:"_multiarr",value:function(e){for(var t=[],r=1,n=0;n<e.length;n++)if(e[n]instanceof Array)for(var i=0;i<e[n].length;i++)t.push(e[n][i]);return t.length&&(r=1,r+=this._multiarr(t)),r}},{key:"_parseString",value:function(e){for(var t=[],r=e.split("*"),n=0;n<r.length;n++){for(var i=r[n].split(" "),o=[],a=0;a<i.length;a++)if(o.push(i[a].split(",")),i[a].indexOf("#")>-1){i[a]=i[a].replace("#",""),o.splice(a-1,2);var s=[i[a-1].split(","),i[a].split(","),i[a+1].split(",")];o.push(s),a++}for(var u=[],l=0;l<o.length;l++){var c=void 0;if(o[l][0]instanceof Array){for(var f=[],h=0;h<o[l].length;h++)c=o[l][h].map(function(e){return Number(e)}),f.push(c);u.push(f)}else c=o[l].map(function(e){return Number(e)}),u.push(c)}t.push(u)}return t}},{key:"reduceDimension",value:function(e){if(e){var r=t.fromJSON(e).toJSON();switch(e.type){case d.GeometryType.point:r.coordinates=n(r.coordinates);break;case d.GeometryType.multiPoint:case d.GeometryType.lineString:r.coordinates=i(r.coordinates,0);break;case d.GeometryType.multiLineString:case d.GeometryType.polygon:r.coordinates=i(r.coordinates,1);break;case d.GeometryType.multiPolygon:r.coordinates=i(r.coordinates,2);break;case d.GeometryType.extent:delete r.zmin,delete r.zmax;break;case d.GeometryType.circle:r.center=[r.center[0],r.center[1]]}return t.fromJSON(r)}function n(e){return[e[0],e[1]]}function i(e,t){for(var r=[],o=e.length,a=0;a<o;a++){var s=t?i(e[a],t-1):n(e[a]);r.push(s)}return r}}}]),t}(f.default);(0,n.default)(v.prototype,{extent:{configurable:!1,get:function(){}}}),t.default=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BasemapChangeEvent=t.LayerLoadedEvent=t.LayerChangeEvent=t.CollectionChangeEvent=t.ProxyEvent=t.LayerViewScaleVisibleEvent=t.LayerViewUpdateEvent=t.LayerEvent=t.ErrorEvent=t.Event=void 0;var n=d(r(56)),i=d(r(336)),o=d(r(139)),a=r(110),s=d(r(340)),u=d(r(341)),l=d(r(342)),c=d(r(343)),f=d(r(344)),h=d(r(345));function d(e){return e&&e.__esModule?e:{default:e}}t.Event=n.default,t.ErrorEvent=i.default,t.LayerEvent=o.default,t.LayerViewUpdateEvent=a.LayerViewUpdateEvent,t.LayerViewScaleVisibleEvent=h.default,t.ProxyEvent=s.default,t.CollectionChangeEvent=u.default,t.LayerChangeEvent=l.default,t.LayerLoadedEvent=c.default,t.BasemapChangeEvent=f.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorMaterial=t.TextHalo=t.Edges3D=t.IconResource=t.PointSymbol3DOutline=t.FillSymbol3DOutline=t.LineStylePattern3D=t.LineStyleMarker3D=t.Symbol3DVerticalOffset=t.Callout3D=t.LineCallout3D=void 0;var n=p(r(412)),i=p(r(194)),o=p(r(413)),a=p(r(414)),s=p(r(415)),u=p(r(416)),l=p(r(417)),c=p(r(418)),f=p(r(419)),h=p(r(195)),d=r(420);function p(e){return e&&e.__esModule?e:{default:e}}t.LineCallout3D=n.default,t.Callout3D=i.default,t.Symbol3DVerticalOffset=o.default,t.LineStyleMarker3D=a.default,t.LineStylePattern3D=s.default,t.FillSymbol3DOutline=u.default,t.PointSymbol3DOutline=l.default,t.IconResource=c.default,t.Edges3D=f.default,t.TextHalo=h.default,t.ColorMaterial=d.ColorMaterial},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VisualVariable=t.OpacityVariable=t.ColorVariable=t.SizeVariable=t.HeatmapColorStop=t.getIGSDynamicLayer=t.createRender=t.HeatmapRenderer=t.RankRenderer=t.RandomRenderer=t.ClusterRenderer=t.SimpleRenderer=t.ClassBreakRenderer=t.UniqueValueRenderer=t.BaseRenderer=void 0;var n=g(r(62)),i=g(r(498)),o=g(r(505)),a=g(r(506)),s=g(r(507)),u=g(r(510)),l=g(r(511)),c=g(r(512)),f=r(6),h=r(1),d=r(513),p=g(r(226)),y=r(98);function g(e){return e&&e.__esModule?e:{default:e}}t.BaseRenderer=n.default,t.UniqueValueRenderer=i.default,t.ClassBreakRenderer=o.default,t.SimpleRenderer=a.default,t.ClusterRenderer=s.default,t.RandomRenderer=u.default,t.RankRenderer=l.default,t.HeatmapRenderer=c.default,t.createRender=function(e){switch((e=(0,h.defaultValue)(e,{})).type){case f.RendererType.simple:return new a.default(e);case f.RendererType.uniqueValue:return new i.default(e);case f.RendererType.classBreak:return new o.default(e);case f.RendererType.cluster:return new s.default(e);case f.RendererType.random:return new u.default(e);case f.RendererType.rank:return new l.default(e);case f.RendererType.heatmap:return new c.default(e);default:return new a.default(e)}},t.getIGSDynamicLayer=d.getIGSDynamicLayer,t.HeatmapColorStop=p.default,t.SizeVariable=y.SizeVariable,t.ColorVariable=y.ColorVariable,t.OpacityVariable=y.OpacityVariable,t.VisualVariable=y.VisualVariable},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.default=function e(t){(0,n.default)(this,e),t=(0,i.defaultValue)(t,{}),(0,i.extend)(this,t),this.Name=t&&t.Name?t.Name:null,this.IsBaseTheme=!t||!t.IsBaseTheme||t.IsBaseTheme,this.Visible=!t||!t.Visible||t.Visible}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(13)),i=c(r(261)),o=c(r(0)),a=c(r(2)),s=r(8),u=r(28),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(){function e(t){var r;(0,o.default)(this,e),t=(0,l.defaultValue)(t,{}),this._vertexStyle=(0,l.defaultValue)(t.vertexStyle,new u.SimpleMarkerSymbol({color:new s.Color(24,144,255,1),size:10,outline:new u.SimpleLineSymbol({color:new s.Color(255,255,255,1),width:1})})),this._lineStyle=(0,l.defaultValue)(t.lineStyle,new u.SimpleLineSymbol({color:new s.Color(24,144,255,1),width:3})),this._fillStyle=(0,l.defaultValue)(t.fillStyle,new u.SimpleFillSymbol({color:new s.Color(24,144,255,.3),outline:new u.SimpleLineSymbol({color:new s.Color(24,144,255,1),width:2})})),this._textStyle=(0,l.defaultValue)(t.textStyle,new u.TextSymbol({color:new s.Color(24,144,255,1),text:"默认文字",font:{family:"微软雅黑",size:20,style:"normal",weight:"normal"}})),this._movingLineStyle=(0,l.defaultValue)(t.lineStyle,new u.SimpleLineSymbol({color:new s.Color(255,255,0,1),width:2})),this._selectBoxScaleStyle=(0,l.defaultValue)(t.selectBoxScaleStyle,new u.SimpleFillSymbol({color:new s.Color(241,188,0,.05),outline:new u.SimpleLineSymbol({color:new s.Color(241,188,0,.8),width:2})})),this._selectBoxStyle=(0,l.defaultValue)(t.selectBoxStyle,new u.SimpleFillSymbol({color:new s.Color(241,188,0,.1),outline:new u.SimpleLineSymbol({color:new s.Color(241,188,0,.8),width:2})})),this._selectBoxVertexStyle=(0,l.defaultValue)(t.selectBoxVertexStyle,new u.SimpleMarkerSymbol({color:new s.Color(255,255,255,1),size:10,outline:new u.SimpleLineSymbol({color:new s.Color(241,188,0,1),width:3})})),this._selectVertexStyle=(0,l.defaultValue)(t.selectVertexStyle,new u.SimpleMarkerSymbol({color:new s.Color(241,188,0,1),size:11,outline:new u.SimpleLineSymbol({color:new s.Color(255,255,255,1),width:1})})),this._selectTextStyle=(0,l.defaultValue)(t.selectTextStyle,new u.TextSymbol({color:new s.Color(241,188,0,1),text:"默认文字",font:{family:"微软雅黑",size:20,style:"normal",weight:"normal"}})),this._selectMidVertexStyle=(0,l.defaultValue)(t.selectMidVertexStyle,new u.SimpleMarkerSymbol({color:new s.Color(255,255,255,1),size:8,outline:new u.SimpleLineSymbol({color:new s.Color(241,188,0,1),width:1})})),this._coincidentPointStyle=(0,l.defaultValue)(t.coincidentPointStyle,new u.SimpleMarkerSymbol({color:new s.Color(255,255,0,1),size:10,outline:new u.SimpleLineSymbol({color:new s.Color(255,255,255,1),width:1})})),this._highlightPointStyle=(0,l.defaultValue)(t.highlightPointStyle,new u.SimpleMarkerSymbol({color:new s.Color(255,255,0,1),size:10,outline:new u.SimpleLineSymbol({color:new s.Color(255,255,255,1),width:1})})),this._highlightLineStyle=(0,l.defaultValue)(t.highlightLineStyle,new u.SimpleLineSymbol({color:new s.Color(255,255,0,1),width:3})),this._parallelLineStyle=(0,l.defaultValue)(t.parallelLineStyle,this._highlightLineStyle),this._perpendicularLineStyle=(0,l.defaultValue)(t.perpendicularLineStyle,this._highlightLineStyle),this._tipTextStyle=(0,l.defaultValue)(t.tipTextStyle,new u.TextSymbol((r={color:new s.Color(256,256,256,1),text:"默认文字",backgroundColor:new s.Color(60,71,79,1),haloColor:new s.Color(60,71,79,1),haloSize:3},(0,i.default)(r,"backgroundColor",new s.Color(60,71,79,1)),(0,i.default)(r,"borderLineSize",1),(0,i.default)(r,"xoffset",10),(0,i.default)(r,"horizontalAlignment","left"),(0,i.default)(r,"kerning",!1),(0,i.default)(r,"font",{family:"微软雅黑",size:12,style:"normal",weight:"normal"}),(0,i.default)(r,"extensionOptions",{disableDepthTestDistance:1/0}),r)))}return(0,a.default)(e,[{key:"clone",value:function(){return new e(this.toJSON())}},{key:"toJSON",value:function(){var e={};return e.vertexStyle=this._vertexStyle.clone(),e.lineStyle=this._lineStyle.clone(),e.fillStyle=this._fillStyle.clone(),e.movingLineStyle=this._movingLineStyle.clone(),e.selectBoxStyle=this._selectBoxStyle.clone(),e.selectBoxScaleStyle=this._selectBoxScaleStyle.clone(),e.selectBoxVertexStyle=this._selectBoxVertexStyle.clone(),e.selectVertexStyle=this._selectVertexStyle.clone(),e.selectMidVertexStyle=this._selectMidVertexStyle.clone(),e.coincidentPointStyle=this._coincidentPointStyle.clone(),e.highlightPointStyle=this._highlightPointStyle.clone(),e.highlightLineStyle=this._highlightLineStyle.clone(),e.parallelLineStyle=this._parallelLineStyle.clone(),e.perpendicularLineStyle=this._perpendicularLineStyle.clone(),e.textStyle=this._textStyle.clone(),e.selectTextStyle=this._selectTextStyle.clone(),e.tipTextStyle=this._tipTextStyle.clone(),e}},{key:"fromJSON",value:function(){}}]),e}();(0,n.default)(f.prototype,{vertexStyle:{get:function(){return this._vertexStyle},set:function(e){this._vertexStyle=e}},lineStyle:{get:function(){return this._lineStyle},set:function(e){this._lineStyle=e}},fillStyle:{get:function(){return this._fillStyle},set:function(e){this._fillStyle=e}},textStyle:{get:function(){return this._textStyle},set:function(e){this._textStyle=e}},selectBoxStyle:{get:function(){return this._selectBoxStyle},set:function(e){this._selectBoxStyle=e}},selectBoxScaleStyle:{get:function(){return this._selectBoxScaleStyle},set:function(e){this._selectBoxScaleStyle=e}},selectBoxVertexStyle:{get:function(){return this._selectBoxVertexStyle},set:function(e){this._selectBoxVertexStyle=e}},selectVertexStyle:{get:function(){return this._selectVertexStyle},set:function(e){this._selectVertexStyle=e}},selectTextStyle:{get:function(){return this._selectTextStyle},set:function(e){this._selectTextStyle=e}},selectMidVertexStyle:{get:function(){return this._selectMidVertexStyle},set:function(e){this._selectMidVertexStyle=e}},coincidentPointStyle:{get:function(){return this._coincidentPointStyle},set:function(e){this._coincidentPointStyle=e}},highlightPointStyle:{get:function(){return this._highlightPointStyle},set:function(e){this._highlightPointStyle=e}},highlightLineStyle:{get:function(){return this._highlightLineStyle},set:function(e){this._highlightLineStyle=e}},parallelLineStyle:{get:function(){return this._parallelLineStyle},set:function(e){this._parallelLineStyle=e}},perpendicularLineStyle:{get:function(){return this._perpendicularLineStyle},set:function(e){this._perpendicularLineStyle=e}},tipTextStyle:{get:function(){return this._tipTextStyle},set:function(e){this._tipTextStyle=e}}}),t.default=f},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(88);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){e.exports={default:r(330),__esModule:!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calcExtent=t.editGeometryByArc3=t.editFeatureByArc3=t.createGeometryByGeoJSON=t.createGeometry=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(39)),i=r(1),o=r(6),a=r(9),s=r(148);t.createGeometry=function(e){switch((e=(0,i.defaultValue)(e,{})).type){case o.GeometryType.point:return new a.Point(e);case o.GeometryType.multiPoint:return new a.MultiPoint(e);case o.GeometryType.lineString:return new a.LineString(e);case o.GeometryType.multiLineString:return new a.MultiLineString(e);case o.GeometryType.polygon:return new a.Polygon(e);case o.GeometryType.multiPolygon:return new a.MultiPolygon(e);case o.GeometryType.circle:return new a.Circle(e);case o.GeometryType.extent:return new a.Extent(e);default:i.Log.error("未输入正确的几何类型")}},t.createGeometryByGeoJSON=function(e,t){var r;switch((r="Feature"===e.type?e.geometry:e).type){case o.GeometryType.point:return new a.Point({coordinates:r.coordinates,spatialReference:t});case o.GeometryType.multiPoint:case o.GeometryType.lineString:return new a.LineString({coordinates:r.coordinates,spatialReference:t});case o.GeometryType.multiLineString:return new a.MultiLineString({coordinates:r.coordinates,spatialReference:t});case o.GeometryType.polygon:return new a.Polygon({coordinates:r.coordinates,spatialReference:t});case o.GeometryType.multiPolygon:return new a.MultiPolygon({coordinates:r.coordinates,spatialReference:t});default:i.Log.error("无法解析type类型为"+r.type+"的geojson")}},t.editFeatureByArc3=function(e){var t=s.Feature.fromJSON(e),r=a.GeometryEngine.getArcFromGeometry({geometry:t.geometry,arcInfo:t.additional.arc3}),n=t.toJSON();return n.geometry.coordinates=r.coordinates,s.Feature.fromJSON(n)},t.editGeometryByArc3=function(e,t){return t&&t.arc3?a.GeometryEngine.getArcFromGeometry({geometry:e,arcInfo:t.arc3}):e},t.calcExtent=function(e,t,r,s){var u=void 0;switch(r=(0,i.defaultValue)(r,o.GeometryType.polygon)){case o.GeometryType.polygon:u=n.polygon(e);break;case o.GeometryType.lineString:u=n.lineString(e);break;case o.GeometryType.multiPolygon:u=n.multiPolygon(e);break;case o.GeometryType.multiLineString:u=n.multiLineString(e)}var l=n.bbox(u);if(!t)return new a.Extent({xmin:l[0],ymin:l[1],xmax:l[2],ymax:l[3],spatialReference:s});var c=[];switch(r){case o.GeometryType.polygon:case o.GeometryType.multiLineString:for(var f=0;f<e.length;f++)for(var h=0;h<e[f].length;h++)c.push(e[f][h][2]);break;case o.GeometryType.lineString:for(var d=0;d<e.length;d++)c.push(e[d][2]);break;case o.GeometryType.multiPolygon:for(var p=0;p<e.length;p++)for(var y=0;y<e[p].length;y++)for(var g=0;g<e[p][y].length;g++)c.push(e[p][y][g][2])}c.sort(function(e,t){return e-t});var m=c[0],v=c[c.length-1];return new a.Extent({xmin:l[0],ymin:l[1],xmax:l[2],ymax:l[3],zmin:m,zmax:v,spatialReference:s})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(13)),i=y(r(10)),o=y(r(3)),a=y(r(0)),s=y(r(2)),u=y(r(4)),l=y(r(7)),c=y(r(5)),f=r(1),h=y(r(40)),d=r(6),p=y(r(79));function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,f.defaultValue)(e,{}),r.coordinates=(0,f.defaultValue)(e.coordinates,[]),r.type=d.GeometryType.point,!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");if(r.coordinates.length<2||r.coordinates.length>3)throw new Error("坐标数组的长度必须在合理范围内(2或者3)");if(!(0,f.isNumber)(r.coordinates[0])||!(0,f.isNumber)(r.coordinates[1]))throw new Error("坐标数组成员必须为数字");return 3===r.coordinates.length?r.hasZ=!0:r.hasZ=!1,r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"copy",value:function(e){return t.fromJSON(e.toJSON()),this}},{key:"distance",value:function(e){if(!e)throw new Error("输入参数不合法.");var r=t.toCoordinates(e),n=Math.abs(this.coordinates[0]-r[0]),i=Math.abs(this.coordinates[1]-r[1]),o=0;return this.hasZ&&r.length>=3&&(o=Math.abs(this.coordinates[2]-e.coordinates[[2]])),Math.sqrt(Math.pow(n,2)+Math.pow(i,2)+Math.pow(o,2))}},{key:"equals",value:function(e){if(e instanceof t)return this.hasZ?!!Math.abs(this.coordinates[0]-e.coordinates[0])<=1e-7&&!!Math.abs(this.coordinates[1]-e.coordinates[1])<=1e-7&&!!Math.abs(this.coordinates[2]-e.coordinates[2])<=1e-7:!!Math.abs(this.coordinates[0]-e.coordinates[0])<=1e-7&&!!Math.abs(this.coordinates[1]-e.coordinates[1])<=1e-7;if(e instanceof Array){if(2===e.length)return!!Math.abs(this.coordinates[0]-e[0])<=1e-7&&!!Math.abs(this.coordinates[1]-e[1])<=1e-7;if(3===e.length)return!!Math.abs(this.coordinates[0]-e[0])<=1e-7&&!!Math.abs(this.coordinates[1]-e[1])<=1e-7&&!!Math.abs(this.coordinates[2]-e[2])<=1e-7;throw new Error("坐标数组的数量有误!")}throw new Error("必须为点对象或坐标数组才能比较是否相等!")}},{key:"normalize",value:function(){var e;e=this.hasZ?new t({coordinates:[0,0,0]}):new t({coordinates:[0,0]});var r=this.distance(e),n=this._cloneCoordinates();return n[0]/=r,n[1]/=r,this.hasZ&&(n[2]/=r),this.coordinates=n,this}},{key:"toString",value:function(){return this.hasZ?this.coordinates[0]+","+this.coordinates[1]+","+this.coordinates[2]:this.coordinates[0]+","+this.coordinates[1]}},{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=(0,f.toJSON)(this.extent,p.default),e}},{key:"getIGSType",value:function(){return this.hasZ?d.IGSGeometryType.point3D:d.IGSGeometryType.point}},{key:"toOldIGSGeometry",value:function(){return{PntGeom:[{Dot:{x:this.coordinates[0],y:this.coordinates[1]}}],GID:parseInt(String(1e7*Math.random()))}}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return t?new p.default({xmin:e[0],ymin:e[1],zmin:e[2],xmax:e[0],ymax:e[1],zmax:e[2],spatialReference:this.spatialReference}):new p.default({xmin:e[0],ymin:e[1],xmax:e[0],ymax:e[1],spatialReference:this.spatialReference})}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"toCoordinates",value:function(e){if(!e)throw new Error("输入参数不合法.");var r=JSON.parse((0,i.default)(e));if(e instanceof t)r=e._cloneCoordinates();else{if(e instanceof Array)return r;e instanceof Object&&(r=t.fromJSON(e)._cloneCoordinates())}return r}},{key:"fromJSON",value:function(e){return new t(e=(0,f.defaultValue)(e,{}))}}]),t}(h.default);(0,n.default)(g.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(10)),i=y(r(3)),o=y(r(0)),a=y(r(2)),s=y(r(4)),u=y(r(5)),l=r(8),c=r(9),f=y(r(52)),h=y(r(45)),d=r(1),p=r(85);function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r._initEvent(),r.type="sketchPointDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._tipText=r._getTipTextObject(),r._editOption=r._getEditOption(),r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent)}},{key:"getPanEvent",value:function(e,t,r){return{event:e,target:t,type:r}}},{key:"drawFeature",value:function(){var e=this;this._editMode=l.SketchEditMode.drawing,this.view._mapActionControl("video-map-active",!0),this.cursorStyle=this.view.cursor,(0,d.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair"),this._setInitSnap(),this._fireStartDrawEvent();var t=function(t){if(t&&t.x&&t.y){e.view.off(l.ViewEventType.pointerMove,e._handlerInitMouseMove),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var r,n={x:t.x,y:t.y};r=e._snapPoint?e._snapPoint:e.view.toMap({x:n.x,y:n.y});var i=e._getFeature(r);e.sketchStage.entityGraphic=i,e._addFeatureToLayer(i,e.layer),e.stop(),e._editMode=l.SketchEditMode.none,e.view.cursor=e.cursorStyle,e._fireDrawVertexEvent(i),e.fire("drawn",{geometry:i.geometry,feature:i},self),e._fireStopDrawEvent(i),e.view._mapActionControl("video-map-active",!1)}};this._drawEventHandlers.push(t),this.view.on(l.ViewEventType.pointerDown,t)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.vertexStyle?t.vertexStyle:this.sketchStyle._vertexStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.vertexStyle?t.vertexStyle:this.sketchStyle._vertexStyle;var o=new l.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e,t){return e||(e=l.Projection.project(new c.Point({coordinates:[0,0,0]}),this._spatialReference)),t||((t=this._sketchDataType===l.SketchDataType.text?this.sketchStyle.textStyle.clone():this.sketchStyle.vertexStyle.clone()).id=(0,d.getGUID)()),new l.Feature({geometry:e,symbol:t,elevationInfo:this.elevationInfo})}},{key:"hitTestFeature",value:function(e,t){this.view._mapActionControl("video-map-active",!0),this._getEditOptionMode(this._editOption),this.editOption.showSelectBox?(this._editMode=l.SketchEditMode.editGraphic,this.selectFeature(e)):this._parent._sketchDataType===l.SketchDataType.point||this._parent._sketchDataType===l.SketchDataType.text?this.startPanGraphics(e,t):this._parent&&this._parent._editMode===l.SketchEditMode.editGraphic?"circleVertex"===e.attributes.type?this.startCircleVertexScaleGraphics(e,t):"midVertex"===e.attributes.type?this.startMidVertexScaleGraphics(e,t):this.startVertexScaleGraphics(e,t):this._parent&&this._parent._editMode===l.SketchEditMode.editVertex&&this.startVertexMoveGraphics(e,t)}},{key:"selectFeature",value:function(e){var r=this;if(this.editOption.showSelectBox){var n=void 0;this._sketchDataType===l.SketchDataType.text?(this.sketchStyle._selectTextStyle.text=this.sketchStage.entityGraphic&&this.sketchStage.entityGraphic.symbol&&this.sketchStage.entityGraphic.symbol.text?this.sketchStage.entityGraphic.symbol.text:this.sketchStyle._textStyle.text,n=this.sketchStyle._selectTextStyle):n=this.sketchStyle._selectVertexStyle;var i=new t({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new h.default({vertexStyle:n}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),o=e.geometry;if(this._drawTools.push(i),i.addFeatureByGeometry(o,null,null,this._sketchInnerLayer),this.sketchStage.selectBoxGraphics=[i.sketchStage.entityGraphic],this._otherDrawTools.push(i),this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage),!this._parent||this._parent&&!this._parent._mapClickEvent){var a=function(){r._preventFirstCall?r._preventFirstCall=void 0:(r.sketchStage.selectBoxGraphics.forEach(function(e){r._removeFeatureFromLayer(e,r._sketchInnerLayer)}),r.view.off(l.ViewEventType.immediateClick,r._mapClickEvent),r._mapClickEvent=void 0,r.fire("selected",{isSelected:!1},self),r._fireRemoveSelectEvent(r.sketchStage.entityGraphic),r.sketchStage.selectBoxGraphics=[],r._editMode=l.SketchEditMode.none,r._isAddTip&&r._updateTipText((0,p.getTipTextByEditOption)("draw-end",r._tipText,r._editOption),r._sketchInnerLayer),r.view._mapActionControl("video-map-active",!1))};this._mapClickEvent||(this._mapClickEvent=a,this._hitTestEventHandlers.push(this._mapClickEvent),this.view.on(l.ViewEventType.immediateClick,a)),this._preventFirstCall=!0}}}},{key:"startPanGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var i=null;i=t.mapPoint,this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._parent._mapClickEvent),this._parent&&this._fireStartPanEvent(this._parent.sketchStage.entityGraphic,this._parent);var o=function(e){if(e&&e.x&&e.y&&!n&&r._startPan){clearTimeout(null),n=!0;var t={x:e.x,y:e.y},o=r.view.toMap({x:t.x,y:t.y}),a=o.coordinates[0]-i.coordinates[0],s=o.coordinates[1]-i.coordinates[1];if(0!==a||0!==s){var u=r.getPanCoordinates(r.sketchStage.entityGraphic.geometry.coordinates,a,s);i.coordinates=u,r.sketchStage.entityGraphic.geometry.coordinates=u,n=!1,r._parent&&(r._parent.sketchStage.entityGraphic.geometry.coordinates=u,r._firePanningEvent(r._parent.sketchStage.entityGraphic,r._parent))}else n=!1}},a=function e(){r._startPan&&(r._startPan=!1,r.view.off(l.ViewEventType.pointerUp,e),r.view.off(l.ViewEventType.pointerMove,o),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent),r._parent&&r._fireStopPanEvent(r._parent.sketchStage.entityGraphic,r._parent),setTimeout(function(){r.view._mapActionControl("drag-pan",!0)},0))};this._hitTestEventHandlers.push(o),this._hitTestEventHandlers.push(a),this.view.on(l.ViewEventType.pointerUp,a),this.view.on(l.ViewEventType.pointerMove,o)}},{key:"startVertexScaleGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n,i=!1;this._startPan=!0,n=t.mapPoint;var o;o=this._parent.sketchStage.entityGraphic.geometry instanceof c.Extent?this._parent.sketchStage.entityGraphic.geometry:this._parent.sketchStage.entityGraphic.geometry.extent,this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._mapClickEvent);var a=e.attributes.direction;this._parent&&this._fireStartScaleEvent(this._parent.sketchStage.entityGraphic,this._parent);var s=function(t){if(t&&t.x&&t.y&&!i&&r._startPan){clearTimeout(null),i=!0;var s={x:t.x,y:t.y},u=r.view.toMap({x:s.x,y:s.y}),l=u.coordinates[0]-n.coordinates[0],c=u.coordinates[1]-n.coordinates[1],f=u.coordinates[0]/n.coordinates[0],h=u.coordinates[1]/n.coordinates[1];0!==l||0!==c?(r._dispatchEvent("vertexScale",{startPoint:n,movePoint:u,deltaPosition:{x:l,y:c},scale:{x:f,y:h},direction:a,extent:o,feature:e,action:"scale"},r),i=!1,r._parent&&r._fireScalingEvent(r._parent.sketchStage.entityGraphic,r._parent)):i=!1}},u=function e(){r._startPan&&(r._dispatchEvent("vertexScale",{action:"stop"},r),r._startPan=!1,r.view.off(l.ViewEventType.pointerUp,e),r.view.off(l.ViewEventType.pointerMove,s),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent)},0),r.view._mapActionControl("drag-pan",!0),r._parent&&r._fireStopScaleEvent(r._parent.sketchStage.entityGraphic,r._parent))};this._hitTestEventHandlers.push(s),this._hitTestEventHandlers.push(u),this.view.on(l.ViewEventType.pointerUp,u),this.view.on(l.ViewEventType.pointerMove,s)}},{key:"startMidVertexScaleGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n,i=!1;this._startPan=!0,n=t.mapPoint;var o;o=this._parent.sketchStage.entityGraphic.geometry instanceof c.Extent?this._parent.sketchStage.entityGraphic.geometry:this._parent.sketchStage.entityGraphic.geometry.extent,this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._parent._mapClickEvent);var a=e.attributes.direction;this._parent&&this._fireStartScaleEvent(this._parent.sketchStage.entityGraphic,this._parent);var s=function(e){if(e&&e.x&&e.y&&!i&&r._startPan){clearTimeout(null),i=!0;var t={x:e.x,y:e.y},s=r.view.toMap({x:t.x,y:t.y}),u=s.coordinates[0]-n.coordinates[0],l=s.coordinates[1]-n.coordinates[1],c=s.coordinates[0]/n.coordinates[0],f=s.coordinates[1]/n.coordinates[1];0!==u||0!==l?(r._dispatchEvent("midVertexScale",{startPoint:n,movePoint:s,deltaPosition:{x:u,y:l},scale:{x:c,y:f},direction:a,extent:o,action:"scale"},r),i=!1,r._parent&&r._fireScalingEvent(r._parent.sketchStage.entityGraphic,r._parent)):i=!1}},u=function e(){r._startPan&&(r._dispatchEvent("vertexScale",{action:"stop"},r),r._startPan=!1,r.view.off(l.ViewEventType.pointerUp,e),r.view.off(l.ViewEventType.pointerMove,s),r.view._mapActionControl("drag-pan",!0),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent)},0),r.view._mapActionControl("drag-pan",!0),r._parent&&r._fireStopScaleEvent(r._parent.sketchStage.entityGraphic,r._parent))};this._hitTestEventHandlers.push(s),this._hitTestEventHandlers.push(u),this.view.on(l.ViewEventType.pointerUp,u),this.view.on(l.ViewEventType.pointerMove,s)}},{key:"startCircleVertexScaleGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n,i=!1;this._startPan=!0,n=t.mapPoint;var o=this._parent.sketchStage.entityGraphic.geometry.extent;this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._mapClickEvent);var a=e.attributes.direction;this._parent&&this._fireStartScaleEvent(this._parent.sketchStage.entityGraphic,this._parent);var s=function(t){if(t&&t.x&&t.y&&!i&&r._startPan){clearTimeout(null),i=!0;var s={x:t.x,y:t.y},u=r.view.toMap({x:s.x,y:s.y}),l=u.coordinates[0]-n.coordinates[0],c=u.coordinates[1]-n.coordinates[1],f=u.coordinates[0]/n.coordinates[0],h=u.coordinates[1]/n.coordinates[1];0!==l||0!==c?(r._dispatchEvent("circleVertexScale",{startPoint:n,movePoint:u,deltaPosition:{x:l,y:c},scale:{x:f,y:h},direction:a,extent:o,feature:e,action:"scale"},r),i=!1,r._parent&&r._fireScalingEvent(r._parent.sketchStage.entityGraphic,r._parent)):i=!1}},u=function e(){r._startPan&&(r._dispatchEvent("circleVertexScale",{action:"stop"},r),r._startPan=!1,r.view.off(l.ViewEventType.pointerUp,e),r.view.off(l.ViewEventType.pointerMove,s),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent)},0),r.view._mapActionControl("drag-pan",!0),r._parent&&r._fireStopScaleEvent(r._parent.sketchStage.entityGraphic,r._parent))};this._hitTestEventHandlers.push(s),this._hitTestEventHandlers.push(u),this.view.on(l.ViewEventType.pointerUp,u),this.view.on(l.ViewEventType.pointerMove,s)}},{key:"startVertexMoveGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var i=null;i=t.mapPoint;var o=e.attributes?e.attributes.vertexIndex:-2;"midVertex"===e.attributes.type?(this._fireAddVertexEvent(this._parent.sketchStage.entityGraphic,this._parent),this._dispatchEvent("midVertexAdd",{point:i,vertexIndex:e.attributes?o:void 0,action:"changeFeature"},this),this._startPan=!0):this._startPan=!0,this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._parent._mapClickEvent),this._parent&&this._fireStartVertexMoveEvent(this._parent.sketchStage.entityGraphic,this._parent);var a=function(t){if(t&&t.x&&t.y&&!n&&r._startPan){clearTimeout(null),n=!0;var a={x:t.x,y:t.y},s=r.view.toMap({x:a.x,y:a.y}),u=s.coordinates[0]-i.coordinates[0],l=s.coordinates[1]-i.coordinates[1];0!==u||0!==l?("midVertex"===e.attributes.type?r._dispatchEvent("midVertexAdd",{startPoint:i,movePoint:s,vertexIndex:o,vertexType:e.attributes?e.attributes.type:void 0,action:"moveMidVertex"},r):r._dispatchEvent("vertexMove",{startPoint:i,movePoint:s,vertexIndex:o,vertexType:e.attributes?e.attributes.type:void 0},r),i=s,n=!1,r._parent&&r._fireUpdateVertex(r._parent.sketchStage.entityGraphic,r._parent)):n=!1}},s=function t(o){if(o&&o.x&&o.y&&r._startPan){if(r.view._mapActionControl("drag-pan",!1),r._startPan=!1,r.view.off(l.ViewEventType.pointerUp,t),r.view.off(l.ViewEventType.pointerMove,a),r.view._mapActionControl("drag-pan",!0),"midVertex"===e.attributes.type){var s=e.attributes.vertexIndex;r._dispatchEvent("midVertexAdd",{point:i,vertexIndex:e.attributes?s:void 0,action:"addVertex"},r)}n=!1,r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent)},0),r.view._mapActionControl("drag-pan",!0),r._parent&&r._fireStopVertexMoveEvent(r._parent.sketchStage.entityGraphic,r._parent)}};this._hitTestEventHandlers.push(a),this._hitTestEventHandlers.push(s),this.view.on(l.ViewEventType.pointerUp,s),this.view.on(l.ViewEventType.pointerMove,a)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type?this._handlerMidVertexScaleEvent(e):"circleVertexScale"===e.type&&this._handlerCircleVertexScaleEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this.getPanCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.deltaPosition.x,e.deltaPosition.y,this.sketchStage.entityGraphic.attributes.direction,e.extent),r=new c.Point({coordinates:t,spatialReference:this._spatialReference});this.sketchStage.entityGraphic.geometry=r}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var t=JSON.parse((0,n.default)([this.sketchStage.entityGraphic.geometry.coordinates]));this.sketchStage.entityGraphic.attributes.lastCoordinates=t}this.sketchStage.entityGraphic.attributes=this.sketchStage.entityGraphic.attributes?this.sketchStage.entityGraphic.attributes:{};var r=void 0;if(this._parent){var i=this._parent.sketchStage.entityGraphic.geometry instanceof c.Extent?this._parent.sketchStage.entityGraphic.geometry:this._parent.sketchStage.entityGraphic.geometry.extent,o=this.sketchStage.entityGraphic.attributes.direction;"e"===o?r=this._getCenterCoordinate([i.xmax,i.ymin],[i.xmax,i.ymax]):"s"===o?r=this._getCenterCoordinate([i.xmax,i.ymin],[i.xmin,i.ymin]):"w"===o?r=this._getCenterCoordinate([i.xmin,i.ymin],[i.xmin,i.ymax]):"n"===o?r=this._getCenterCoordinate([i.xmax,i.ymax],[i.xmin,i.ymax]):"ne"===o?r=[i.xmax,i.ymax]:"se"===o?r=[i.xmax,i.ymin]:"sw"===o?r=[i.xmin,i.ymin]:"nw"===o&&(r=[i.xmin,i.ymax])}r||(r=this.getScaleCoordinates([this.sketchStage.entityGraphic.geometry.coordinates],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates,this.sketchStage.entityGraphic.attributes.direction)[0]);var a=new c.Point({coordinates:r,spatialReference:this._spatialReference});this.sketchStage.entityGraphic.geometry=a}"stop"===e.action&&this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0)}},{key:"_handlerMidVertexScaleEvent",value:function(e){if("scale"===e.action){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)([this.sketchStage.entityGraphic.geometry.coordinates]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getMidScaleCoordinates([this.sketchStage.entityGraphic.geometry.coordinates],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new c.Point({coordinates:i[0],spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t,this._parent&&this._parent.sketchStage.updateGraphic(this.sketchStage.entityGraphic)}else"stop"===e.action&&this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0)}},{key:"_handlerCircleVertexScaleEvent",value:function(e){this._handlerMidVertexScaleEvent(e)}}]),t}(f.default);t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(r(24)),i=v(r(3)),o=v(r(0)),a=v(r(2)),s=v(r(4)),u=v(r(5)),l=r(8),c=r(1),f=r(9),h=v(r(634)),d=r(167),p=r(59),y=r(260),g=v(r(45)),m=r(85);function v(e){return e&&e.__esModule?e:{default:e}}var _=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this));return r.type="SketchBaseDrawTool",r._id=(0,c.defaultValue)(e.id,(0,c.getGUID)()),r.view=(0,c.defaultValue)(e.view,null),r.layer=(0,c.defaultValue)(e.layer,void 0),r._sketchInnerLayer=(0,c.defaultValue)(e.sketchInnerLayer,void 0),r.sketchStage=new h.default,void 0!==e.sketchStyle&&(r.sketchStyle=e.sketchStyle.clone()),r.elevationInfo=(0,c.defaultValue)(e.elevationInfo,void 0),r.type="sketchBaseDrawTool",r.extensionOptions=(0,c.defaultValue)(e.extensionOptions,void 0),r._editMode=l.SketchEditMode.none,r._spatialReference=e.view._spatialReference?e.view._spatialReference:new f.SpatialReference("EPSG:4326"),r._drawEventHandlers=[],r._hitTestEventHandlers=[],r._sketchDataType=null,r._parent=(0,c.defaultValue)(e._parent,void 0),r.undoRedoManager=(0,c.defaultValue)(e.undoRedoManager,void 0),r.editOption=(0,c.defaultValue)(e.editOption,{showSelectBox:!0,showSelectVertex:!1,canEditFeature:!0,canEditVertex:!0,_hitTestMode:0}),r._drawTools=[],r._hitTestDrawToolStack=[],r._clampToGround=!0,r.snapAndReferGeometries=[],r._sketchEditor=(0,c.defaultValue)(e._sketchEditor,void 0),r._sketchEditor&&(r.sketchSnappingTool=r._sketchEditor._sketchSnappingTool,r.snapAndReferGeometries=r._sketchEditor.snapAndReferGeometries,r._isAddTip=r._sketchEditor._isAddTip,r._isShowTip=r._sketchEditor._isShowTip,r._tipTextGraphics=r._sketchEditor._tipTextGraphics),r.cursorStyle=null,r._snapPoint=null,r._sketchDataType=e.sketchDataType,r.arcType=e.arcType,r._getCenterCoordinate=e._getCenterCoordinate,r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"start",value:function(){this.stop(),this._isAddTip&&this._updateTipText(this._tipText.drawStart,this._sketchInnerLayer),this.drawFeature()}},{key:"stop",value:function(){this._editMode===l.SketchEditMode.drawing||this._editMode===l.SketchEditMode.none?this._stopDraw():this._editMode===l.SketchEditMode.editGraphic||this._editMode===l.SketchEditMode.editVertex?this._stopHitTest():(this._stopDraw(),this._stopHitTest())}},{key:"hitTestFeature",value:function(e,t){switch(this.type){case"sketchPolygonDrawTool":case"sketchPolylineDrawTool":case"sketchFreehandPolygonDrawTool":case"sketchFreehandPolylineDrawTool":case"sketchCircleDrawTool":case"sketchExtentDrawTool":default:this._hitTestFeatureInPolygon(e,t);break;case"sketchPointDrawTool":}}},{key:"selectFeature",value:function(e){switch(this.type){case"sketchPolygonDrawTool":case"sketchPolylineDrawTool":case"sketchFreehandPolygonDrawTool":case"sketchFreehandPolylineDrawTool":default:this._selectFeatureInPolygon(e,e.geometry.extent);break;case"sketchPointDrawTool":break;case"sketchCircleDrawTool":this._selectFeatureInCircle(e,e.geometry);break;case"sketchExtentDrawTool":this._selectFeatureInPolygon(e,e.geometry)}}},{key:"_hitTestFeatureInPolygon",value:function(e,t){this.view._mapActionControl("video-map-active",!0);var r=this._getEditOptionMode(this._editOption);!r||r.editGraphic&&r.editVertex?(this._parent&&this._parent._editMode===l.SketchEditMode.editGraphic&&this.startPanGraphics(e,t,r),!this._parent&&this.editOption.showSelectBox&&(this._editMode===l.SketchEditMode.none?this._editMode=l.SketchEditMode.editGraphic:this._editMode===l.SketchEditMode.editVertex&&(this.view.off(l.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=l.SketchEditMode.editGraphic),this.selectFeature(e))):r.editGraphic?(this.selectFeature(e),this._parent&&this._parent._editMode===l.SketchEditMode.editGraphic&&this.startPanGraphics(e,t),this._parent||(this._editMode=l.SketchEditMode.editGraphic)):r.editVertex&&(this._mapClickEvent||this._parent||this._registeMapClickEvent(),this._editMode!==l.SketchEditMode.editVertex&&this.selectFeatureVertex&&this.selectFeatureVertex(this.sketchStage.entityGraphic),this._parent||(this._editMode=l.SketchEditMode.editVertex))}},{key:"_selectFeatureInPolygon",value:function(e,t){var r=this;if(this.editOption.showSelectBox){if(this._clearEditGraphics(2),this._editOption.graphic.move||this._editOption.graphic.scale){var n=this.sketchStyle._selectBoxStyle;!this._editOption.graphic.move&&this._editOption.graphic.scale&&(n=this.sketchStyle._selectBoxScaleStyle);var i=new y.SketchPolygonDrawTool({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new g.default({fillStyle:n,isShowSegmentLength:!0,isShowArea:!0}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,arcType:this.arcType,_getCenterCoordinate:this._getCenterCoordinate,_parent:this});this._drawTools.push(i),i.addFeature([[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax]],void 0,void 0,this._sketchInnerLayer),this.sketchStage.selectBoxGraphics=[i.sketchStage.entityGraphic],this._otherDrawTools?this._otherDrawTools.push(i):this._otherDrawTools=[i]}if(this._editOption.graphic.scale){var o=[];if(o=[{point:new f.Point({coordinates:[t.xmax,t.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new f.Point({coordinates:[t.xmax,t.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new f.Point({coordinates:[t.xmin,t.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new f.Point({coordinates:[t.xmin,t.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._getCenterCoordinate){var a=[{point:new f.Point({coordinates:this._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new f.Point({coordinates:this._getCenterCoordinate([t.xmax,t.ymin],[t.xmin,t.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new f.Point({coordinates:this._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new f.Point({coordinates:this._getCenterCoordinate([t.xmin,t.ymax],[t.xmax,t.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];o=o.concat(a)}var s=[],u=[];o.forEach(function(e){var t=new y.SketchPointDrawTool({view:r.view,layer:r._sketchInnerLayer,sketchInnerLayer:r._sketchInnerLayer,sketchStyle:new g.default({vertexStyle:r.sketchStyle._selectBoxVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},arcType:r.arcType,_getCenterCoordinate:r._getCenterCoordinate,elevationInfo:r.elevationInfo,_parent:r});r._drawTools.push(t),t.addFeature(e.point,r.sketchStage,{direction:e.direction,type:e.type},r._sketchInnerLayer),s.push(t),u.push(t.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=u,this._otherDrawTools=this._otherDrawTools.concat(s)}this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage,this._editMode),this._mapClickEvent||this._parent&&(!this._parent||this._parent._mapClickEvent)||this._registeMapClickEvent()}}},{key:"_selectFeatureInCircle",value:function(e){var t=this;if(this.editOption.showSelectBox){this._clearEditGraphics(2);var r=e.geometry.extent;if(this._editOption.graphic.move||this._editOption.graphic.scale){var n=this.sketchStyle._selectBoxStyle,i=1;!this._editOption.graphic.move&&this._editOption.graphic.scale&&(n=this.sketchStyle._selectBoxScaleStyle),!this._editOption.graphic.scale||this._editOption.vertex.move||this._editOption.vertex.add||(i=void 0);var o=new y.SketchPolygonDrawTool({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new g.default({fillStyle:n,isShowSegmentLength:!0,isShowArea:!0}),editOption:{showSelectBox:!1,_hitTestMode:i},elevationInfo:this.elevationInfo,arcType:this.arcType,_getCenterCoordinate:this._getCenterCoordinate,_parent:this});this._drawTools.push(o),o.addFeature([[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax]],void 0,void 0,this._sketchInnerLayer),this.sketchStage.selectBoxGraphics=[o.sketchStage.entityGraphic],this._otherDrawTools?this._otherDrawTools.push(o):this._otherDrawTools=[o]}var a=[];if(this._editOption.graphic.scale){if(this._sketchEditor&&this._sketchEditor._getCenterCoordinate){var s=[{point:new f.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"circleVertex"}];a=a.concat(s)}var u=[],l=[];a.forEach(function(e){var r=new y.SketchPointDrawTool({view:t.view,layer:t.layer,sketchStyle:new g.default({vertexStyle:t.sketchStyle._selectBoxVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_getCenterCoordinate:t._getCenterCoordinate,_parent:t});t._drawTools.push(r),r.addFeature(e.point,t.sketchStage,{direction:e.direction,type:e.type},t._sketchInnerLayer),u.push(r),l.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=l,this._otherDrawTools=this._otherDrawTools.concat(u)}this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage),this._mapClickEvent||this._parent&&(!this._parent||this._parent._mapClickEvent)||this._registeMapClickEvent()}}},{key:"_registeMapClickEvent",value:function(){var e=this;this._mapClickEvent=function(){e._preventFirstCall?e._preventFirstCall=void 0:(e.sketchStage.selectBoxGraphics.concat(e.sketchStage.selectBoxVertexGraphics).concat(e.sketchStage.vertexGraphics).concat(e.sketchStage.midVertexGraphics).forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.view.off(l.ViewEventType.immediateClick,e._mapClickEvent),e.view._mapActionControl("drag-pan",!0),e._mapClickEvent=null,e.fire("selected",{isSelected:!1},self),e._fireRemoveSelectEvent(e.sketchStage.entityGraphic),e.sketchStage.selectBoxGraphics=[],e.sketchStage.selectBoxVertexGraphics=[],e.sketchStage.vertexGraphics=[],e.sketchStage.midVertexGraphics=[],e._editMode=l.SketchEditMode.none,e._isAddTip&&e._updateTipText((0,m.getTipTextByEditOption)("draw-end",e._tipText,e._editOption),e._sketchInnerLayer),e.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),setTimeout(function(){e.view.on(l.ViewEventType.immediateClick,e._mapClickEvent)},0)}},{key:"_stopAll",value:function(){this._stopDraw(),this._stopHitTest()}},{key:"_stopDraw",value:function(){var e=this;this._drawEventHandlers&&(this._drawEventHandlers.forEach(function(t){e.view.off(l.ViewEventType.immediateClick,t),e.view.off(l.ViewEventType.pointerUp,t),e.view.off(l.ViewEventType.pointerMove,t),e.view.off(l.ViewEventType.pointerDown,t),e.view.off(l.ViewEventType.doubleClick,t),e.view.off(l.ViewEventType.drag,t)}),this._drawEventHandlers=[]),this._stopInitSnap()}},{key:"_stopHitTest",value:function(){var e=this;this._hitTestEventHandlers&&(this._hitTestEventHandlers.forEach(function(t){t&&(e.view.off(l.ViewEventType.pointerUp,t),e.view.off(l.ViewEventType.pointerMove,t),e.view.off(l.ViewEventType.pointerDown,t),e.view.off(l.ViewEventType.click,t),e.view.off(l.ViewEventType.immediateClick,e._mapClickEvent))}),this._mapClickEvent=null,this._hitTestEventHandlers=[])}},{key:"setSketchStyle",value:function(e){this.sketchStyle=e}},{key:"_clearEditGraphics",value:function(e){var t=this,r=function(){t.sketchStage.selectBoxGraphics.concat(t.sketchStage.selectBoxVertexGraphics).forEach(function(e){t._removeFeatureFromLayer(e,t._sketchInnerLayer)}),t._otherDrawTools=[],t.sketchStage.selectBoxGraphics=[],t.sketchStage.selectBoxVertexGraphics=[]},n=function(){var e=null;(e=t._parent?t._parent:t).sketchStage.vertexGraphics.concat(e.sketchStage.midVertexGraphics).forEach(function(e){t._removeFeatureFromLayer(e,t._sketchInnerLayer)}),e._otherDrawTools=[],e.sketchStage.vertexGraphics=[],e.sketchStage.midVertexGraphics=[]};e===l.SketchEditMode.editGraphic?r():e===l.SketchEditMode.editVertex?n():(r(),n())}},{key:"_isDrawToolFeature",value:function(e){var t=this,r=e.id,n=!1;return this.sketchStage.entityGraphic.id===r&&(n=!0,this._editMode=l.SketchEditMode.editGraphic),this.sketchStage.vertexGraphics.forEach(function(e){e.id===r&&(n=!0,t._editMode=l.SketchEditMode.editVertex)}),this.sketchStage.midVertexGraphics.forEach(function(e){e.id===r&&(n=!0,t._editMode=l.SketchEditMode.editVertex)}),n||(this._editMode=l.SketchEditMode.none),n}},{key:"_getDrawToolByFeature",value:function(e){var t=e.id,r=null;return this.sketchStage.entityGraphic.id===t&&(r=this.sketchStage.entityGraphic),r.length>0?r[0]:null}},{key:"_addFeatureToLayer",value:function(e,t){if(t instanceof p.GraphicsLayer)t.add(e);else if(t instanceof p.GroupLayer){var r=t.allLayers.find(function(e){return e instanceof p.GraphicsLayer});r&&r.add(e)}}},{key:"_removeFeatureFromLayer",value:function(e,t){if(t instanceof p.GraphicsLayer)t.remove(e);else if(t instanceof p.GroupLayer){var r=t.allLayers.find(function(e){return e instanceof p.GraphicsLayer});r&&r.remove(e)}}},{key:"_dispatchEvent",value:function(e,t,r){return this._parent&&this._parent.fire(e,t,r),this}},{key:"updateFeature",value:function(e,t){var r=t.id;this.sketchStage.entityGraphic.id===r&&(this.sketchStage.entityGraphic.coordinates=e.coordinates,this.sketchStage.entityGraphic.geometry=e,t=this.sketchStage.entityGraphic)}},{key:"_clearDrawToolSketchStage",value:function(){this._removeFeatureFromLayer(this.sketchStage.entityGraphic,this.layer),this._removeEditGraphics()}},{key:"removeDrawTool",value:function(){this._stopAll(),this.sketchStage=null}},{key:"removeEntityGraphic",value:function(){this._removeFeatureFromLayer(this.sketchStage.entityGraphic,this._layer),this.sketchStage.entityGraphic=null}},{key:"removeVertexGraphics",value:function(){var e=this;this.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),this.sketchStage.vertexGraphics=[]}},{key:"addVertex",value:function(e,t){}},{key:"updateVertex",value:function(e,t){}},{key:"removeVertex",value:function(e,t){}},{key:"getDistanceByPixel",value:function(e){return this.view.getResolution?this.view.getResolution()*e:1e3}},{key:"getPanCoordinates",value:function(e,t,r,n,i){return"e"===n?this._getCenterCoordinate([i.xmax,i.ymin],[i.xmax,i.ymax]):"s"===n?this._getCenterCoordinate([i.xmax,i.ymin],[i.xmin,i.ymin]):"w"===n?this._getCenterCoordinate([i.xmin,i.ymin],[i.xmin,i.ymax]):"n"===n?this._getCenterCoordinate([i.xmax,i.ymax],[i.xmin,i.ymax]):[e[0]+t,e[1]+r]}},{key:"getScaleCoordinates",value:function(e,t,r,n,i,o,a){var s=[];return o=o||[],e.forEach(function(e,a){var u=function(e,t,r,o,a){var s=1,u=1,l=Number(e[0].toString()),c=Number(e[1].toString()),f=n.coordinates,h=i.coordinates;return o=o||[],"ne"===r&&(s=(h[0]-t.xmin)/(f[0]-t.xmin),l=([o[0]]-t.xmin)*s+t.xmin,u=(h[1]-t.ymin)/(f[1]-t.ymin),c=(o[1]-t.ymin)*u+t.ymin),"se"===r&&(s=(h[0]-t.xmin)/(f[0]-t.xmin),l=([o[0]]-t.xmin)*s+t.xmin,u=(h[1]-t.ymax)/(f[1]-t.ymax),c=(o[1]-t.ymax)*u+t.ymax),"sw"===r&&(s=(h[0]-t.xmax)/(f[0]-t.xmax),l=([o[0]]-t.xmax)*s+t.xmax,u=(h[1]-t.ymax)/(f[1]-t.ymax),c=(o[1]-t.ymax)*u+t.ymax),"nw"===r&&(s=(h[0]-t.xmax)/(f[0]-t.xmax),l=([o[0]]-t.xmax)*s+t.xmax,u=(h[1]-t.ymin)/(f[1]-t.ymin),c=(o[1]-t.ymin)*u+t.ymin),[l,c]}(e,r,t,o[a]);void 0!==e[2]&&(u[2]=e[2]),s.push(u)}),s}},{key:"getMidScaleCoordinates",value:function(e,t,r,n,i,o){var a=[];return o=o||[],e.forEach(function(e,s){var u=function(e,t,r,o){var a=1,s=1,u=e[0],l=e[1],c=n.coordinates,f=i.coordinates;return o=o||[],"e"===r&&(a=(f[0]-t.xmin)/(c[0]-t.xmin),u=([o[0]]-t.xmin)*a+t.xmin),"s"===r&&(s=(f[1]-t.ymax)/(c[1]-t.ymax),l=(o[1]-t.ymax)*s+t.ymax),"w"===r&&(a=(f[0]-t.xmax)/(c[0]-t.xmax),u=([o[0]]-t.xmax)*a+t.xmax),"n"===r&&(s=(f[1]-t.ymin)/(c[1]-t.ymin),l=(o[1]-t.ymin)*s+t.ymin),[u,l]}(e,r,t,o[s]);e[2]&&(u[2]=e[2]),a.push(u)}),a}},{key:"getCenterScaleCoordinates",value:function(e,t,r,n,i,o){var a=[];return o=o||[],e.forEach(function(e,s){var u=function(e,t,r,o){var a=1,s=1,u=e[0],l=e[1],c=n.coordinates,f=i.coordinates;return o=o||[],"e"===r&&(a=(f[0]-t.xmin)/(c[0]-t.xmin),u=([o[0]]-t.xmin)*a+t.xmin),"s"===r&&(s=(f[1]-t.ymax)/(c[1]-t.ymax),l=(o[1]-t.ymax)*s+t.ymax),"w"===r&&(a=(f[0]-t.xmax)/(c[0]-t.xmax),u=([o[0]]-t.xmax)*a+t.xmax),"n"===r&&(s=(f[1]-t.ymin)/(c[1]-t.ymin),l=(o[1]-t.ymin)*s+t.ymin),[u,l]}(e,r,t,o[s]);e[2]&&(u[2]=e[2]),a.push(u)}),a}},{key:"_setSketchStage",value:function(e){this.sketchStage=e}},{key:"_getDrawToolByFeatureId",value:function(e){return this._drawTools.find(function(t){return t.sketchStage.entityGraphic&&t.sketchStage.entityGraphic.id===e})}},{key:"_removeEditGraphics",value:function(){var e=this;this.sketchStage.selectBoxGraphics.concat(this.sketchStage.selectBoxVertexGraphics).concat(this.sketchStage.vertexGraphics).concat(this.sketchStage.midVertexGraphics).concat(this.sketchStage.snapGraphics).forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),this.sketchStage.selectBoxGraphics=[],this.sketchStage.selectBoxVertexGraphics=[],this.sketchStage.vertexGraphics=[],this.sketchStage.midVertexGraphics=[],this.sketchStage.snapGraphics=[]}},{key:"_getInteractiveDom",value:function(){for(var e=[],t=document.getElementsByClassName("leaflet-interactive"),r=0;r<t.length;r++)e.push(t[r]);return e}},{key:"_removeInteractiveStyle",value:function(e){for(var t=0;t<e.length;t++)e[t].classList.remove("leaflet-interactive")}},{key:"_addInteractiveStyle",value:function(e){for(var t=0;t<e.length;t++)e[t].classList.add("leaflet-interactive")}},{key:"_setInitSnap",value:function(){var e=this;this._snapPoint=null,this._handlerInitMouseMove=function(t){if(t&&t.x&&t.y){var r={x:t.x,y:t.y},n=e.view.toMap({x:r.x,y:r.y});e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._snapPoint=e.getSnapGraphics(n)}},this._drawEventHandlers.push(this._handlerInitMouseMove),this.view.on(l.ViewEventType.pointerMove,this._handlerInitMouseMove)}},{key:"_stopInitSnap",value:function(){this._handlerInitMouseMove&&(this.view.off(l.ViewEventType.pointerMove,this._handlerInitMouseMove),this._handlerInitMouseMove=void 0)}},{key:"_fireStartDrawEvent",value:function(e){e=e||this;var t=new d.SketchEditorEvent({type:l.SketchEditorEventType.create,toolEventInfo:{},state:l.SketchEditorState.start});e.fire(l.SketchEditorEventType.create,t,self)}},{key:"_fireDrawVertexEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.create,toolEventInfo:{type:l.SketchEditorToolEventType.vertexAdd},state:l.SketchEditorState.active,feature:e,geometry:e?e.geometry:void 0});t.fire(l.SketchEditorEventType.create,r,self)}},{key:"_fireChangeCursorEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.create,toolEventInfo:{type:l.SketchEditorToolEventType.cursorChange},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.create,r,self)}},{key:"_fireStopDrawEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.create,toolEventInfo:null,state:l.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.create,r,self)}},{key:"_fireStartPanEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.moveStart},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_firePanningEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.move},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireStopPanEvent",value:function(e,t){var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.moveStop},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireStartScaleEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.scaleStart},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireScalingEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.scale},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireStopScaleEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.scaleStop},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireStartVertexMoveEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.vertexMoveStart},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireUpdateVertex",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.vertexUpdate},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireStopVertexMoveEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.vertexMoveStop},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireAddVertexEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.vertexAdd},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireAddVertexEventByFun",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.vertexAdd},state:l.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,this)}},{key:"_fireUpdateVertexByFun",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.vertexUpdate},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireRemoveVertexByFun",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.vertexRemove},state:l.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,this)}},{key:"_fireRemoveSelectEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:null,state:l.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireUnsimpleDraw",value:function(e){e=e||this;var t=new d.SketchEditorEvent({type:l.SketchEditorEventType.create,toolEventInfo:{type:l.SketchEditorToolEventType.geometryUnsimple},state:l.SketchEditorState.active});e.fire(l.SketchEditorEventType.create,t,self)}},{key:"_fireUnsimpleUpdate",value:function(e){e=e||this;var t=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.geometryUnsimple},state:l.SketchEditorState.active});e.fire(l.SketchEditorEventType.update,t,self)}},{key:"_fireUnsimpleUpdateByFun",value:function(e){e=e||this;var t=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.geometryUnsimple},state:l.SketchEditorState.complete});e.fire(l.SketchEditorEventType.update,t,self)}},{key:"getSnapGraphics",value:function(e,t){var r=this,n=null,i=null,o=[],a=null;t&&0!==t.length?1===t.length?i=new f.LineString({coordinates:[t[0],e.coordinates],spatialReference:this._spatialReference}):(i=new f.LineString({coordinates:t.slice(-2),spatialReference:this._spatialReference}),"sketchFreehandPolylineDrawTool"!==this.type&&"sketchFreehandPolygonDrawTool"!==this.type&&(a=new f.LineString({coordinates:t.slice(0,t.length),spatialReference:this._spatialReference}))):i=e,o=this.snapAndReferGeometries,this.sketchSnappingTool.snapSketchGeometry&&a&&(o=this.snapAndReferGeometries.concat([a])),t&&t.length>0&&("sketchFreehandPolylineDrawTool"===this.type||"sketchFreehandPolygonDrawTool"===this.type)&&o.push(new f.Point({coordinates:t[0],spatialReference:this._spatialReference}));var s=this.sketchSnappingTool.snapGeometries(e,i,o);if(s.coincidentPoint){var u=new l.Feature({geometry:s.coincidentPoint.realPoint,symbol:this.sketchStyle._coincidentPointStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(u),n=s.coincidentPoint.realPoint}else if(s.inLineAndParallel){s.inLineAndParallel.lines.forEach(function(e){var t=new l.Feature({geometry:e,symbol:r.sketchStyle._parallelLineStyle,elevationInfo:r.elevationInfo});r.sketchStage.snapGraphics.push(t)});var c=new l.Feature({geometry:s.inLineAndParallel.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(c),s.inLineAndParallel.symbolGeometry){var h=new l.Feature({geometry:s.inLineAndParallel.symbolGeometry,symbol:this.sketchStyle._parallelLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(h)}n=s.inLineAndParallel.realPoint}else if(s.inLineAndPerpendicular){s.inLineAndPerpendicular.lines.forEach(function(e){var t=new l.Feature({geometry:e,symbol:r.sketchStyle._perpendicularLineStyle,elevationInfo:r.elevationInfo});r.sketchStage.snapGraphics.push(t)});var d=new l.Feature({geometry:s.inLineAndPerpendicular.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(d),s.inLineAndPerpendicular.symbolGeometry){var p=new l.Feature({geometry:s.inLineAndPerpendicular.symbolGeometry,symbol:this.sketchStyle._perpendicularLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(p)}n=s.inLineAndPerpendicular.realPoint}else if(s.pointInLine){var y=new l.Feature({geometry:s.pointInLine.line,symbol:this.sketchStyle._highlightLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(y);var g=new l.Feature({geometry:s.pointInLine.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(g),n=s.pointInLine.realPoint}else if(s.parallelLine){var m=new l.Feature({geometry:s.parallelLine.line,symbol:this.sketchStyle._parallelLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(m);var v=new l.Feature({geometry:s.parallelLine.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(v),s.parallelLine.symbolGeometry){var _=new l.Feature({geometry:s.parallelLine.symbolGeometry,symbol:this.sketchStyle._parallelLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(_)}n=s.parallelLine.realPoint}else if(s.perpendicularLine){var S=new l.Feature({geometry:s.perpendicularLine.line,symbol:this.sketchStyle._perpendicularLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(S);var b=new l.Feature({geometry:s.perpendicularLine.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(b),s.perpendicularLine.symbolGeometry){var x=new l.Feature({geometry:s.perpendicularLine.symbolGeometry,symbol:this.sketchStyle._perpendicularLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(x)}n=s.perpendicularLine.realPoint}return this.sketchStage.snapGraphics.forEach(function(e){r._addFeatureToLayer(e,r._sketchInnerLayer)}),n}},{key:"setSnapAndReferGeometries",value:function(e){e?this.snapAndReferGeometries=e:this._sketchEditor&&(this.snapAndReferGeometries=this._sketchEditor.snapAndReferGeometries)}},{key:"debounce",value:function(e,t){var r=void 0;return function(){var n=this,i=arguments;clearTimeout(r),r=setTimeout(function(){e.apply(n,i)},t)}}},{key:"_updateTipText",value:function(e,t,r){if(e&&(t=t||this._sketchInnerLayer,this.sketchStyle&&this.sketchStyle.tipTextStyle)){var n=this.sketchStyle.tipTextStyle.clone();n.id=(0,c.getGUID)(),e.text&&(n.text=e.text),e.lineWidth&&(n.lineWidth=e.lineWidth),this._tipTextGraphics&&this._tipTextGraphics.length>0&&(this._tipTextGraphics[0].symbol=n,this._tipTextGraphics[0].visible=this._isShowTip)}}},{key:"_getTipTextObject",value:function(){var e=void 0;switch(this.type){case"sketchPolygonDrawTool":case"sketchPolylineDrawTool":case"sketchFreehandPolygonDrawTool":case"sketchFreehandPolylineDrawTool":e={drawStart:{text:"左键单击增加一个顶点,双击完成绘制;",lineWidth:150},editGraphic:{text:"左键拖动外包盒,更改位置;左键拖动外包盒顶点,更改大小;左键单击外包盒,进入顶点编辑",lineWidth:200},beforeEditGraphic:{text:"左键单击外包盒,进入顶点编辑;",lineWidth:160},moveGraphic:{text:"左键拖动外包盒,更改位置;",lineWidth:200},scaleGraphic:{text:"左键拖动外包盒顶点,更改大小;",lineWidth:200},editVertex:{text:"左键拖动外包盒顶点,更改顶点位置;左键拖动中点,增加一个顶点;",lineWidth:250},beforeEditVertex:{text:"左键单击外包盒,进入顶点编辑;",lineWidth:160},moveVertex:{text:"左键拖动外包盒顶点,更改顶点位置;",lineWidth:120},addVertex:{text:"左键拖动中点,增加一个顶点;",lineWidth:120}};break;case"sketchCircleDrawTool":default:e={drawStart:{text:"左键按下确定圆心,拖动确定半径;",lineWidth:200},editGraphic:{text:"左键拖动外包盒,更改位置;左键拖动外包盒顶点,更改大小;",lineWidth:200},beforeEditGraphic:{text:"左键单击外包盒,进入顶点编辑;",lineWidth:160},moveGraphic:{text:"左键拖动外包盒,更改位置;",lineWidth:200},scaleGraphic:{text:"左键拖动外包盒顶点,更改大小;",lineWidth:200}};break;case"sketchExtentDrawTool":e={drawStart:{text:"左键按下确定矩形左上角,拖动确定矩形右下角;",lineWidth:200},editGraphic:{text:"左键拖动外包盒,更改位置;左键拖动外包盒顶点,更改大小;",lineWidth:200},beforeEditGraphic:{text:"左键单击外包盒,进入顶点编辑;",lineWidth:160},moveGraphic:{text:"左键拖动外包盒,更改位置;",lineWidth:200},scaleGraphic:{text:"左键拖动外包盒顶点,更改大小;",lineWidth:200}};break;case"sketchPointDrawTool":e={drawStart:{text:"左键单击绘制点;",lineWidth:140},editGraphic:{text:"左键按下移动选中要素;",lineWidth:140},beforeEditGraphic:{text:"左键按下移动选中要素;",lineWidth:140},moveGraphic:{text:"左键按下移动选中要素;",lineWidth:140},beforeEditVertex:{text:"左键按下移动选中要素;",lineWidth:160},editVertex:{text:"左键按下移动选中要素;",lineWidth:250},moveVertex:{text:"左键按下移动选中要素;",lineWidth:120}}}return e}},{key:"_getEditOption",value:function(){var e=void 0;switch(this._sketchEditor?e=this._sketchEditor._editOption:this._parent&&this._parent._editOption&&(e=this._parent._editOption),e=(0,c.defaultValue)(e,{graphic:{},vertex:{}}),e=(0,c.extendDeep)({graphic:{move:!0,scale:!0},vertex:{move:!0,add:!0}},e),this.type){case"sketchCircleDrawTool":case"sketchExtentDrawTool":e.vertex.move=!1,e.vertex.add=!1;break;case"sketchPointDrawTool":e.graphic.scale=!1,e.vertex.add=!1}return e}},{key:"_getEditOptionMode",value:function(e){var t={editGraphic:!0,editVertex:!0};return e&&0!==(0,n.default)(e).length||(this._editOption={graphic:{move:!0,scale:!0},vertex:{move:!0,add:!0}}),e.graphic.move||e.graphic.scale||(t.editGraphic=!1),e.vertex.move||e.vertex.add||(t.editVertex=!1),t}}]),t}(l.Evented);t.default=_},function(e,t,r){var n=r(120),i=r(119);e.exports=function(e){return n(i(e))}},function(e,t,r){var n=r(37),i=r(76);e.exports=r(33)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib,n=r.Base,i=r.WordArray,o=t.algo,a=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,o=n.hasher.create(),a=i.create(),s=a.words,u=n.keySize,l=n.iterations;s.length<u;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var c=1;c<l;c++)r=o.finalize(r),o.reset();a.concat(r)}return a.sigBytes=4*u,a}});t.EvpKDF=function(e,t,r){return s.create(r).compute(e,t)}}(),e.EvpKDF}(r(14),r(171),r(130))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),this.initPropertys(t),this.sourceTarget=(0,o.defaultValue)(t.sourceTarget,null),this.target=(0,o.defaultValue)(t.target,null)}return(0,i.default)(e,[{key:"initPropertys",value:function(e){var t=e||{};return this.type=t.type,this.target=t.target,t}},{key:"addProperty",value:function(e,t){e&&(this[e]=t)}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=s(r(185));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t,r,i,a){(0,n.default)(this,e),this.red=(0,o.defaultValue)(t,0),this.green=(0,o.defaultValue)(r,0),this.blue=(0,o.defaultValue)(i,0),this.alpha=(0,o.defaultValue)(a,1)}return(0,i.default)(e,[{key:"toCesiumRGB",value:function(){return{red:this.red/255,green:this.green/255,blue:this.blue/255,alpha:this.alpha}}},{key:"toCssRGBAString",value:function(){return"rgba("+this.red+","+this.green+","+this.blue+","+this.alpha+")"}},{key:"toCssRGBString",value:function(){return"rgb("+this.red+","+this.green+","+this.blue+")"}},{key:"clone",value:function(){return new e(this.red,this.green,this.blue,this.alpha)}},{key:"toJSON",value:function(){return{red:this.red,green:this.green,blue:this.blue,alpha:this.alpha}}}]),e}();u.fromRGBString=function(e){if(u.isRGB(e))if(e.indexOf("rgba")>-1||e.indexOf("RGBA")>-1){var t=e.substring(5,e.length-1);if(4===(t=t.split(",")).length)return new u(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3]))}else if(e.indexOf("rgb")>-1||e.indexOf("RGB")>-1){var r=e.substring(4,e.length-1);if(3===(r=r.split(",")).length)return new u(Number(r[0]),Number(r[1]),Number(r[2]))}},u.fromHexString=function(e){if(u.isHex(e)){var t=u.hexToRgb(e);if(t.indexOf("rgba")>-1||t.indexOf("RGBA")>-1)return u.fromRGBString(t);if(t.indexOf("rgb")>-1||t.indexOf("RGB")>-1)return u.fromRGBString(t)}},u.fromJSON=function(e){e=(0,o.defaultValue)(e,{});var t=(0,o.defaultValue)(e.red,255),r=(0,o.defaultValue)(e.green,255),n=(0,o.defaultValue)(e.blue,255),i=(0,o.defaultValue)(e.alpha,1);return new u(t,r,n,i)},u.hexToRgb=function(e){if(/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/.test(e)){var t=e.toLowerCase().replace(/\#/g,""),r=t.length;if(3===r||4===r){for(var n="",i=0;i<r;i++)n+=t.slice(i,i+1).concat(t.slice(i,i+1));r=(t=n).length}for(var o=[],a=0;a<r;a+=2){var s=t.slice(a,a+2);o.push(parseInt("0x"+s))}var u=void 0;if(6===r)u="rgb("+o.join(",")+")";else if(8===r){u="rgba(";for(var l=0;l<3;l++)u+=o[l]+",";u+=o[3]/255+")"}return u}},u.rgbToHex=function(e){if(/^(rgb|rgba|RGB|RGBA)/.test(e)){var t;t=e.indexOf("rgba")>-1||e.indexOf("RGBA")>-1?e.slice(5,e.length-1).split(","):e.slice(4,e.length-1).split(",");for(var r="#",n=0;n<3;n++)r+=i(t[n]);return 4===t.length&&(r+=i(255*Number(t[3]))),r}function i(e){var t=Number(e).toString(16);return"0"===t&&(t+="0"),1===t.length&&(t="0"+t),t}},u.fromCssString=function(e){if(!e||"string"!=typeof e)return u.fromHexString("#000000");var t=e.toLowerCase(),r=a.default[t];return r?u.fromHexString(r):u.fromHexString("#000000")},u.fromColor=function(e){return"string"==typeof e?u.isHex(e)?u.fromHexString(e):u.isRGB(e)?u.fromRGBString(e):u.fromCssString(e):e instanceof u?e:Array.isArray(e)?3===e.length?new u(e[0],e[1],e[2]):4===e.length?new u(e[0],e[1],e[2],e[3]):(o.Log.info("非法颜色值数组!"),new u):e instanceof Object?u.fromJSON(e):new u},u.isHex=function(e){return/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/.test(e)},u.isRGB=function(e){return/^(rgb|rgba|RGB|RGBA)/.test(e)},t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(0)),i=o(r(2));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(){(0,n.default)(this,e),this.type="unkown"}return(0,i.default)(e,[{key:"toJSON",value:function(){return{type:this.type}}},{key:"clone",value:function(){}}],[{key:"fromJSON",value:function(){}}]),e}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatWebTileUrl=t.RasterInfo=t.RasterFunction=t.IGSImageryTileLayer=t.IGSImageryLayer=t.SubLayer=t.VoxelFilter=t.FeatureFilter=t.S3MTilesCacheLayer=t.OverlayLayer=t.UnknownLayer=t.TileLayer=t.VectorTileLayer=t.LOD=t.getFullBaseUrl=t.appendUrlParams=t.TileInfo=t.FeatureCollection=t.getZoomOffset=t.WebTileLayer=t.ArcGISVectorTileSubLayer=t.ArcGISVectorTileLayer=t.VisualVariable=t.OpacityVariable=t.ColorVariable=t.SizeVariable=t.HeatmapColorStop=t.setElevationInfo=t.Layer=t.TileInfoUtil=t.getIGSDynamicLayer=t.isCustomSP=t.is4326=t.getUrlType=t.ArcGISTileLayer=t.ArcGISMapImageSubLayer=t.ArcGISMapImageLayer=t.LabelClass=t.Projection=t.Basemap=t.Map=t.M3DModelCacheLayer=t.BaseRenderer=t.HeatmapRenderer=t.RankRenderer=t.RandomRenderer=t.ClusterRenderer=t.SimpleRenderer=t.ClassBreakRenderer=t.UniqueValueRenderer=t.VideoLayer=t.TerrainCacheLayer=t.Cesium3DTilesCacheLayer=t.GeoJSONLayer=t.GraphicsLayer=t.GroupLayer=t.MapVLayer=t.EchartsLayer=t.ISSceneModelCacheSubLayer=t.ISSceneSubLayer=t.ISSceneLayer=t.IGSFeatureLayer=t.BaseScene=t.ISScene=t.IGSScene=t.IGSTileLayer=t.IGSSceneTerrainSubLayer=t.IGSSceneMapRefSubLayer=t.IGSSceneModelCacheSubLayer=t.IGSSceneLabelSubLayer=t.IGSSceneSubLayer=t.IGSSceneLayer=t.IGSMapImageSubLayer=t.IGSMapImageLayer=t.IGSVectorTileSubLayer=t.IGSVectorTileLayer=t.WMTSSubLayer=t.WFSLayer=t.WMSSubLayer=t.WMSLayer=t.WMTSLayer=t.OGCLayer=void 0;var n=r(60),i=r(43),o=r(561),a=function(e){return e&&e.__esModule?e:{default:e}}(r(83));t.OGCLayer=n.OGCLayer,t.WMTSLayer=n.WMTSLayer,t.WMSLayer=n.WMSLayer,t.WMSSubLayer=n.WMSSubLayer,t.WFSLayer=n.WFSLayer,t.WMTSSubLayer=n.WMTSSubLayer,t.IGSVectorTileLayer=n.IGSVectorTileLayer,t.IGSVectorTileSubLayer=n.IGSVectorTileSubLayer,t.IGSMapImageLayer=n.IGSMapImageLayer,t.IGSMapImageSubLayer=n.IGSMapImageSubLayer,t.IGSSceneLayer=n.IGSSceneLayer,t.IGSSceneSubLayer=n.IGSSceneSubLayer,t.IGSSceneLabelSubLayer=n.IGSSceneLabelSubLayer,t.IGSSceneModelCacheSubLayer=n.IGSSceneModelCacheSubLayer,t.IGSSceneMapRefSubLayer=n.IGSSceneMapRefSubLayer,t.IGSSceneTerrainSubLayer=n.IGSSceneTerrainSubLayer,t.IGSTileLayer=n.IGSTileLayer,t.IGSScene=n.IGSScene,t.ISScene=n.ISScene,t.BaseScene=n.BaseScene,t.IGSFeatureLayer=n.IGSFeatureLayer,t.ISSceneLayer=n.ISSceneLayer,t.ISSceneSubLayer=n.ISSceneSubLayer,t.ISSceneModelCacheSubLayer=n.ISSceneModelCacheSubLayer,t.EchartsLayer=n.EchartsLayer,t.MapVLayer=n.MapVLayer,t.GroupLayer=n.GroupLayer,t.GraphicsLayer=n.GraphicsLayer,t.GeoJSONLayer=n.GeoJSONLayer,t.Cesium3DTilesCacheLayer=n.Cesium3DTilesCacheLayer,t.TerrainCacheLayer=n.TerrainCacheLayer,t.VideoLayer=n.VideoLayer,t.UniqueValueRenderer=i.UniqueValueRenderer,t.ClassBreakRenderer=i.ClassBreakRenderer,t.SimpleRenderer=i.SimpleRenderer,t.ClusterRenderer=i.ClusterRenderer,t.RandomRenderer=i.RandomRenderer,t.RankRenderer=i.RankRenderer,t.HeatmapRenderer=i.HeatmapRenderer,t.BaseRenderer=i.BaseRenderer,t.M3DModelCacheLayer=n.M3DModelCacheLayer,t.Map=o.Map,t.Basemap=o.Basemap,t.Projection=n.Projection,t.LabelClass=a.default,t.ArcGISMapImageLayer=n.ArcGISMapImageLayer,t.ArcGISMapImageSubLayer=n.ArcGISMapImageSubLayer,t.ArcGISTileLayer=n.ArcGISTileLayer,t.getUrlType=n.getUrlType,t.is4326=n.is4326,t.isCustomSP=n.isCustomSP,t.getIGSDynamicLayer=i.getIGSDynamicLayer,t.TileInfoUtil=n.TileInfoUtil,t.Layer=n.Layer,t.setElevationInfo=n.setElevationInfo,t.HeatmapColorStop=i.HeatmapColorStop,t.SizeVariable=i.SizeVariable,t.ColorVariable=i.ColorVariable,t.OpacityVariable=i.OpacityVariable,t.VisualVariable=i.VisualVariable,t.ArcGISVectorTileLayer=n.ArcGISVectorTileLayer,t.ArcGISVectorTileSubLayer=n.ArcGISVectorTileSubLayer,t.WebTileLayer=n.WebTileLayer,t.getZoomOffset=n.getZoomOffset,t.FeatureCollection=n.FeatureCollection,t.TileInfo=n.TileInfo,t.appendUrlParams=n.appendUrlParams,t.getFullBaseUrl=n.getFullBaseUrl,t.LOD=n.LOD,t.VectorTileLayer=n.VectorTileLayer,t.TileLayer=n.TileLayer,t.UnknownLayer=n.UnknownLayer,t.OverlayLayer=n.OverlayLayer,t.S3MTilesCacheLayer=n.S3MTilesCacheLayer,t.FeatureFilter=n.FeatureFilter,t.VoxelFilter=n.VoxelFilter,t.SubLayer=n.SubLayer,t.IGSImageryLayer=n.IGSImageryLayer,t.IGSImageryTileLayer=n.IGSImageryTileLayer,t.RasterFunction=n.RasterFunction,t.RasterInfo=n.RasterInfo,t.formatWebTileUrl=n.formatWebTileUrl},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatWebTileUrl=t.RasterInfo=t.RasterFunction=t.IGSImageryTileLayer=t.IGSImageryLayer=t.SubLayer=t.VoxelFilter=t.FeatureFilter=t.S3MTilesCacheLayer=t.SceneLayer=t.OverlayLayer=t.TileLayer=t.VectorTileLayer=t.LOD=t.getFullBaseUrl=t.appendUrlParams=t.TileInfo=t.FeatureCollection=t.getZoomOffset=t.WebTileLayer=t.setElevationInfo=t.TileInfoUtil=t.getLayerViewScaleVisible=t.isCustomSP=t.is4326=t.getUrlType=t.ArcGISVectorTileSubLayer=t.ArcGISVectorTileLayer=t.ArcGISTileLayer=t.ArcGISMapImageSubLayer=t.ArcGISMapImageLayer=t.Projection=t.M3DModelCacheLayer=t.ISSceneModelCacheSubLayer=t.ISSceneSubLayer=t.ISSceneLayer=t.IGSFeatureLayer=t.BaseScene=t.ISScene=t.IGSScene=t.IGSTileLayer=t.IGSSceneTerrainSubLayer=t.IGSSceneMapRefSubLayer=t.IGSSceneModelCacheSubLayer=t.IGSSceneLabelSubLayer=t.IGSSceneSubLayer=t.IGSSceneLayer=t.IGSMapImageSubLayer=t.IGSMapImageLayer=t.IGSVectorTileSubLayer=t.IGSVectorTileLayer=t.VideoLayer=t.UnknownLayer=t.GeoJSONLayer=t.GraphicsLayer=t.GroupLayer=t.MapVLayer=t.EchartsLayer=t.TerrainCacheLayer=t.Cesium3DTilesCacheLayer=t.FeatureLayer=t.WMTSSubLayer=t.WFSLayer=t.WMSSubLayer=t.WMSLayer=t.WMTSLayer=t.OGCLayer=t.Layer=void 0;var n=r(493),i=r(536),o=O(r(160)),a=r(16),s=r(539),u=r(12),l=r(544),c=O(r(548)),f=O(r(549)),h=r(550),d=O(r(553)),p=O(r(554)),y=O(r(555)),g=O(r(556)),m=O(r(557)),v=O(r(94)),_=r(29),S=O(r(72)),b=O(r(84)),x=O(r(115)),w=O(r(162)),E=O(r(558)),T=O(r(559)),I=O(r(560)),M=O(r(229)),k=O(r(238)),P=O(r(230)),L=O(r(100));function O(e){return e&&e.__esModule?e:{default:e}}t.Layer=a.Layer,t.OGCLayer=l.OGCLayer,t.WMTSLayer=l.WMTSLayer,t.WMSLayer=l.WMSLayer,t.WMSSubLayer=l.WMSSubLayer,t.WFSLayer=l.WFSLayer,t.WMTSSubLayer=l.WMTSSubLayer,t.FeatureLayer=a.FeatureLayer,t.Cesium3DTilesCacheLayer=c.default,t.TerrainCacheLayer=f.default,t.EchartsLayer=h.EchartsLayer,t.MapVLayer=h.MapVLayer,t.GroupLayer=d.default,t.GraphicsLayer=p.default,t.GeoJSONLayer=y.default,t.UnknownLayer=T.default,t.VideoLayer=m.default,t.IGSVectorTileLayer=n.IGSVectorTileLayer,t.IGSVectorTileSubLayer=n.IGSVectorTileSubLayer,t.IGSMapImageLayer=n.IGSMapImageLayer,t.IGSMapImageSubLayer=n.IGSMapImageSubLayer,t.IGSSceneLayer=n.IGSSceneLayer,t.IGSSceneSubLayer=n.IGSSceneSubLayer,t.IGSSceneLabelSubLayer=n.IGSSceneLabelSubLayer,t.IGSSceneModelCacheSubLayer=n.IGSSceneModelCacheSubLayer,t.IGSSceneMapRefSubLayer=n.IGSSceneMapRefSubLayer,t.IGSSceneTerrainSubLayer=n.IGSSceneTerrainSubLayer,t.IGSTileLayer=n.IGSTileLayer,t.IGSScene=n.IGSScene,t.ISScene=i.ISScene,t.BaseScene=o.default,t.IGSFeatureLayer=n.IGSFeatureLayer,t.ISSceneLayer=i.ISSceneLayer,t.ISSceneSubLayer=i.ISSceneSubLayer,t.ISSceneModelCacheSubLayer=i.ISSceneModelCacheSubLayer,t.M3DModelCacheLayer=g.default,t.Projection=v.default,t.ArcGISMapImageLayer=s.ArcGISMapImageLayer,t.ArcGISMapImageSubLayer=s.ArcGISMapImageSubLayer,t.ArcGISTileLayer=s.ArcGISTileLayer,t.ArcGISVectorTileLayer=s.ArcGISVectorTileLayer,t.ArcGISVectorTileSubLayer=s.ArcGISVectorTileSubLayer,t.getUrlType=_.getUrlType,t.is4326=_.is4326,t.isCustomSP=_.isCustomSP,t.getLayerViewScaleVisible=_.getLayerViewScaleVisible,t.TileInfoUtil=b.default,t.setElevationInfo=u.setElevationInfo,t.WebTileLayer=E.default,t.getZoomOffset=_.getZoomOffset,t.FeatureCollection=w.default,t.TileInfo=S.default,t.appendUrlParams=_.appendUrlParams,t.getFullBaseUrl=_.getFullBaseUrl,t.LOD=x.default,t.VectorTileLayer=a.VectorTileLayer,t.TileLayer=a.TileLayer,t.OverlayLayer=h.OverlayLayer,t.SceneLayer=a.SceneLayer,t.S3MTilesCacheLayer=I.default,t.FeatureFilter=M.default,t.VoxelFilter=k.default,t.SubLayer=a.SubLayer,t.IGSImageryLayer=n.IGSImageryLayer,t.IGSImageryTileLayer=n.IGSImageryTileLayer,t.RasterFunction=P.default,t.RasterInfo=L.default,t.formatWebTileUrl=_.formatWebTileUrl},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=m(r(15)),i=m(r(3)),o=m(r(0)),a=m(r(2)),s=m(r(4)),u=m(r(5)),l=r(8),c=r(1),f=r(6),h=r(41),d=m(r(70)),p=r(9),y=r(12),g=r(25);function m(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this));return e=(0,c.defaultValue)(e,{}),r.id=(0,c.defaultValue)(e.id,(0,c.getGUID)()),r.description=(0,c.defaultValue)(e.description,"图层基类"),r.copyright=(0,c.defaultValue)(e.copyright,"中地数码版权所有"),r.loadStatus=(0,c.defaultValue)(e.loadStatus,f.LoadStatus.notLoaded),r.loaded=(0,c.defaultValue)(e.loaded,!1),r.loadError=null,r.tokenKey=(0,c.defaultValue)(e.tokenKey,"token"),r.tokenValue=(0,c.defaultValue)(e.tokenValue,null),r.tokenAttachType=(0,c.defaultValue)(e.tokenAttachType,f.TokenAttachType.normal),r.title=(0,c.defaultValue)(e.title,""),r.minScale=(0,c.defaultValue)(e.minScale,0),r.maxScale=(0,c.defaultValue)(e.maxScale,0),r.extendProps=(0,c.defaultValue)(e.extendProps,{}),r.type=f.LayerType.base,r.httpMethod=(0,c.defaultValue)(e.httpMethod,f.FetchMethod.get),r.headers=(0,c.defaultValue)(e.headers,{}),r.extensionOptions=(0,c.defaultValue)(e.extensionOptions,{}),r.visible=(0,c.defaultValue)(e.visible,!0),r.opacity=parseFloat((0,c.defaultValue)(e.opacity,1)),r.extent=r._decorate("extent",(0,c.defaultValue)(e.extent,null),p.Extent,p.Extent.fromJSON),r.spatialReference=r._decorate("spatialReference",(0,c.defaultValue)(e.spatialReference,null),d.default,d.default.fromJSON),r.forceRefreshDebounceDelay=(0,c.defaultValue)(e.forceRefreshDebounceDelay,5),r.capabilities=(0,y.mergeCommonClientCapbilities)(e.capabilities,{description:!0,copyright:!0,loaded:!0,tokenKey:!0,tokenValue:!0,title:!0,minScale:!0,maxScale:!0,extensionOptions:!0,type:!0,httpMethod:!0,headers:!0,extendProps:!0,visible:!0,opacity:!0,extent:!0,spatialReference:!0}),r.autoAddTo2D=(0,c.defaultValue)(e.autoAddTo2D,!0),r.autoAddTo3D=(0,c.defaultValue)(e.autoAddTo3D,!0),r._loadPromise=null,r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"isLoaded",value:function(){return this.loadStatus===f.LoadStatus.loaded}},{key:"load",value:function(){var e=this;return this.loadStatus===f.LoadStatus.notLoaded?(this.loadStatus=f.LoadStatus.loading,this._loadPromise=this._load().catch(function(t){return t&&(t.layer=e),c.Log.error(e.type+"图层load失败,错误信息:",t),e.loadError=t,e.loadStatus=f.LoadStatus.failed,e.loaded=!1,e})):(this.loadStatus,f.LoadStatus.loading),this._loadPromise}},{key:"setMap",value:function(e){this._map=e}},{key:"destroy",value:function(){}},{key:"toJSON",value:function(){return{id:this.id,description:this.description,copyright:this.copyright,loadStatus:this.loadStatus,loaded:this.loaded,tokenKey:this.tokenKey,tokenValue:this.tokenValue,tokenAttachType:this.tokenAttachType,title:this.title,minScale:this.minScale,maxScale:this.maxScale,type:this.type,visible:this.visible,opacity:this.opacity,spatialReference:(0,c.toJSON)(this.spatialReference,d.default),extent:(0,c.toJSON)(this.extent,p.Extent),autoAddTo2D:this.autoAddTo2D,autoAddTo3D:this.autoAddTo3D,extendProps:(0,g.jsonClone)(this.extendProps),extensionOptions:(0,g.jsonClone)(this.extensionOptions),capabilities:(0,g.jsonClone)(this.capabilities),httpMethod:this.httpMethod,headers:this.headers}}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"_load",value:function(){var e=this;return new n.default(function(t){e.loadStatus=f.LoadStatus.loaded,e.loaded=!0,t(e)})}},{key:"_fireUpdateEvent",value:function(e,t){if(this._map){var r=new h.LayerViewUpdateEvent({type:f.LayerEventType.layerUpdate,target:this._map,layer:this,message:e,updateContent:t});this.fire(f.LayerEventType.layerUpdate,r),this._map.fire(f.LayerEventType.layerUpdate,r)}}},{key:"_updateDiff",value:function(e,t,r){this._fireUpdateEvent("",[{name:e,params:[t],dataChanged:!0,operationType:"property"}])}},{key:"refresh",value:function(){this._fireUpdateEvent("刷新图层",[{params:arguments,dataChanged:!0,name:"refresh",operationType:"method"}])}},{key:"getCumulative",value:function(e,t){for(var r=this[e],n=this.parent;n;)r=t(r,n[e]),n=n.parent;return r}}],[{key:"fromServerUrl",value:function(e,t){return t=t||{},new n.default(function(r){t.url=e,r((0,y.createLayer)(t))})}},{key:"fromJSON",value:function(e){return e=e||{},(0,y.createLayer)(e)}}]),t}(l.Evented);t.default=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(5)),u=r(43),l=r(8),c=r(1);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this));return e=(0,c.defaultValue)(e,{}),r.id=(0,c.defaultValue)(e.id,(0,c.getGUID)()),r.type="",r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,id:this.id}}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}(l.Evented);h.fromJSON=function(e){return(0,u.createRender)(e)},t.default=h},function(e,t,r){var n=r(119);e.exports=function(e){return Object(n(e))}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib.WordArray;t.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return r.create(i,o)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}(r(14))},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],u=e[t+1],d=e[t+2],p=e[t+3],y=e[t+4],g=e[t+5],m=e[t+6],v=e[t+7],_=e[t+8],S=e[t+9],b=e[t+10],x=e[t+11],w=e[t+12],E=e[t+13],T=e[t+14],I=e[t+15],M=o[0],k=o[1],P=o[2],L=o[3];k=h(k=h(k=h(k=h(k=f(k=f(k=f(k=f(k=c(k=c(k=c(k=c(k=l(k=l(k=l(k=l(k,P=l(P,L=l(L,M=l(M,k,P,L,a,7,s[0]),k,P,u,12,s[1]),M,k,d,17,s[2]),L,M,p,22,s[3]),P=l(P,L=l(L,M=l(M,k,P,L,y,7,s[4]),k,P,g,12,s[5]),M,k,m,17,s[6]),L,M,v,22,s[7]),P=l(P,L=l(L,M=l(M,k,P,L,_,7,s[8]),k,P,S,12,s[9]),M,k,b,17,s[10]),L,M,x,22,s[11]),P=l(P,L=l(L,M=l(M,k,P,L,w,7,s[12]),k,P,E,12,s[13]),M,k,T,17,s[14]),L,M,I,22,s[15]),P=c(P,L=c(L,M=c(M,k,P,L,u,5,s[16]),k,P,m,9,s[17]),M,k,x,14,s[18]),L,M,a,20,s[19]),P=c(P,L=c(L,M=c(M,k,P,L,g,5,s[20]),k,P,b,9,s[21]),M,k,I,14,s[22]),L,M,y,20,s[23]),P=c(P,L=c(L,M=c(M,k,P,L,S,5,s[24]),k,P,T,9,s[25]),M,k,p,14,s[26]),L,M,_,20,s[27]),P=c(P,L=c(L,M=c(M,k,P,L,E,5,s[28]),k,P,d,9,s[29]),M,k,v,14,s[30]),L,M,w,20,s[31]),P=f(P,L=f(L,M=f(M,k,P,L,g,4,s[32]),k,P,_,11,s[33]),M,k,x,16,s[34]),L,M,T,23,s[35]),P=f(P,L=f(L,M=f(M,k,P,L,u,4,s[36]),k,P,y,11,s[37]),M,k,v,16,s[38]),L,M,b,23,s[39]),P=f(P,L=f(L,M=f(M,k,P,L,E,4,s[40]),k,P,a,11,s[41]),M,k,p,16,s[42]),L,M,m,23,s[43]),P=f(P,L=f(L,M=f(M,k,P,L,S,4,s[44]),k,P,w,11,s[45]),M,k,I,16,s[46]),L,M,d,23,s[47]),P=h(P,L=h(L,M=h(M,k,P,L,a,6,s[48]),k,P,v,10,s[49]),M,k,T,15,s[50]),L,M,g,21,s[51]),P=h(P,L=h(L,M=h(M,k,P,L,w,6,s[52]),k,P,p,10,s[53]),M,k,b,15,s[54]),L,M,u,21,s[55]),P=h(P,L=h(L,M=h(M,k,P,L,_,6,s[56]),k,P,I,10,s[57]),M,k,m,15,s[58]),L,M,E,21,s[59]),P=h(P,L=h(L,M=h(M,k,P,L,y,6,s[60]),k,P,x,10,s[61]),M,k,d,15,s[62]),L,M,S,21,s[63]),o[0]=o[0]+M|0,o[1]=o[1]+k|0,o[2]=o[2]+P|0,o[3]=o[3]+L|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,u=s.words,l=0;l<4;l++){var c=u[l];u[l]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<<o|s>>>32-o)+t}function c(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<<o|s>>>32-o)+t}function h(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<<o|s>>>32-o)+t}r.MD5=o._createHelper(u),r.HmacMD5=o._createHmacHelper(u)}(Math),e.MD5}(r(14))},function(e,t,r){"use strict";t.__esModule=!0;var n=a(r(308)),i=a(r(314)),o="function"==typeof i.default&&"symbol"==typeof n.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof i.default&&"symbol"===o(n.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":o(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.default="default",n.color="color",n.opacity="opacity",n.size="size",i);Object.defineProperty(a,"default",{writable:!1}),Object.defineProperty(a,"color",{writable:!1}),Object.defineProperty(a,"opacity",{writable:!1}),Object.defineProperty(a,"size",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(5)),u=d(r(93)),l=r(8),c=r(1),f=r(6),h=r(28);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this));return e=(0,c.defaultValue)(e,{}),r.id=(0,c.defaultValue)(e.id,(0,c.getGUID)()),r.color=l.Color.fromColor((0,c.defaultValue)(e.color,new l.Color(0,0,0,.25))),r.type=f.SymbolType.default,r.extensionOptions=(0,c.defaultValue)(e.extensionOptions,{}),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{color:l.Color.fromColor(this.color).toJSON(),type:this.type,extensionOptions:(0,c.cloneObject)(this.extensionOptions),id:this.id}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return(0,h.createSymbol)(e)}}]),t}(u.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(67)),i=l(r(0)),o=l(r(2)),a=r(1),s=r(206),u=l(r(147));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(t){(0,i.default)(this,e),t=(0,a.defaultValue)(t,{});var r=this._parseSpatialReferenceOptions(t),n=r.wkid,o=r.wkt;this.wkid=n,this.wkt=o,this.unit=t.unit}return(0,o.default)(e,[{key:"_parseSpatialReferenceOptions",value:function(e){var t=4326,r=void 0;if(e.wkid&&e.wkt)return{wkid:e.wkid,wkt:e.wkt};if("string"==typeof e){var i=e.match(/\d+$/);/^(EPSG|epsg)(:)?\d+$/.test(e)&&i?(t=parseInt(i[0]),r=void 0):(r=e,t=void 0)}else"object"===(void 0===e?"undefined":(0,n.default)(e))?((0,a.defined)(e.wkid)&&(t=parseInt(e.wkid)),e.wkt&&(r=e.wkt,t=void 0)):a.Log.error("无法解析传入的空间参考系参数");return{wkid:t,wkt:r}}},{key:"clone",value:function(){return new e(this.toJSON())}},{key:"toJSON",value:function(){return{wkid:this.wkid,wkt:this.wkt}}},{key:"toString",value:function(){return this.wkid?"EPSG:"+this.wkid:this.wkt?this.wkt:void 0}},{key:"equals",value:function(t){if(!(t instanceof e||t instanceof Object&&t.hasOwnProperty("wkid")&&t.hasOwnProperty("wkt")))throw new Error("spatialReference的格式不正确!");return!!(this===t||this.wkid&&t.wkid&&this.wkid===t.wkid||this.wkt&&t.wkt&&this.wkt.toUpperCase()===t.wkt.toUpperCase())}},{key:"isWGS84",get:function(){return 4326===this.wkid}},{key:"isGeographic",get:function(){return!!(this.wkid&&void 0===s.ProjUnitWkidMap[this.wkid]||/^GEOGCS/.test(this.wkt)||/^GEOGCRS/.test(this.wkt)||/^[+]proj=longlat/.test(this.wkt))||this.wkid===u.default.bd09ll||this.wkid===u.default.gcj02ll}},{key:"isWebMercator",get:function(){return[102113,102100,900913,3857].indexOf(this.wkid)>-1||this.wkid===u.default.bd09mc||this.wkid===u.default.gcj02mc}},{key:"isWrappable",get:function(){return[4326,4490,4610,4214,102113,102100,900913,3857].indexOf(this.wkid)>-1}},{key:"WebMercator",get:function(){return this.isWebMercator?this.clone():void 0}},{key:"WGS84",get:function(){return this.isGeographic?this.clone():void 0}}],[{key:"fromJSON",value:function(t){return new e(t=(0,a.defaultValue)(t,{}))}}]),e}();t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=b(r(10)),i=b(r(24)),o=b(r(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(39)),s=r(1),u=r(6),l=b(r(40)),c=b(r(97)),f=b(r(207)),h=b(r(208)),d=b(r(94)),p=b(r(70)),y=b(r(112)),g=b(r(209)),m=b(r(50)),v=b(r(210)),_=b(r(79)),S=b(r(212));function b(e){return e&&e.__esModule?e:{default:e}}var x=function e(){(0,o.default)(this,e)};x.difference=function(e,t){(0,s.isNull)(e)&&s.Log.error("inputGeometry不能为空!"),(0,s.isNull)(t)&&s.Log.error("subtractGeometry不能为空!"),e instanceof c.default||e instanceof h.default||e instanceof _.default||e instanceof v.default||s.Log.error("inputGeometry类型错误!"),t instanceof c.default||t instanceof h.default||t instanceof _.default||t instanceof v.default||s.Log.error("subtractGeometry类型错误!");var r=void 0;switch(e.type){case y.default.polygon:r=x._polygonDifferenceGeometry(a.polygon(e.coordinates),t);break;case y.default.extent:case y.default.circle:r=x._polygonDifferenceGeometry(a.polygon(e.toPolygon().coordinates),t);break;case y.default.multiPolygon:r=x._polygonDifferenceGeometry(a.multiPolygon(e.coordinates),t)}return(0,s.isNull)(r)||(r="Polygon"===r.geometry.type?new c.default({coordinates:r.geometry.coordinates,spatialReference:p.default.fromJSON(e.spatialReference)}):new h.default({coordinates:r.geometry.coordinates,spatialReference:p.default.fromJSON(e.spatialReference)})),r},x._polygonDifferenceGeometry=function(e,t){var r=e,n=void 0;switch(t.type){case y.default.polygon:n=a.polygon(t.coordinates);break;case y.default.multiPolygon:n=a.multiPolygon(t.coordinates);break;case y.default.extent:case y.default.circle:n=a.polygon(t.toPolygon().coordinates)}return a.difference(r,n)},x.buffer=function(e,t,r,n){r=(0,s.defaultValue)(r,u.LengthUnit.meters),n=(0,s.defaultValue)(n,!1),t=(0,s.defaultValue)(t,1e3),x._checkBufferOptions(e,t,r,n);var i=void 0;if(e instanceof Array)if(t instanceof Array){if(t.length<e.length){i=[];for(var o=t.length>0?t[t.length-1]:1e3,a=t.length;a<e.length;a++)i.push(o)}}else{i=[];for(var f=0;f<e.length;f++)i.push(t)}else i=t instanceof Array?t.length>0?t[0]:1e3:t;var h=e;if(e instanceof Array){h=[];for(var g=0;g<e.length;g++)h.push(d.default.projectGeometry(e[g],new p.default({wkid:4326})))}else 4326!==e.spatialReference.wkid&&(h=d.default.projectGeometry(e,new p.default({wkid:4326})));var m=void 0;if(e instanceof Array){if(e instanceof Array){if(m=[],t instanceof Array&&t.length<e.length)for(var v=t[t.length-1],_=t.length-1;_<e.length;_++)t.push(v);for(var S=0;S<h.length;S++){var b;b=t instanceof Array?t[S]:t,m.push(x._polygonBuffer(h[S],b,r))}n&&(m=x.union(m))}}else switch(e.type){case y.default.point:case y.default.multiPoint:case y.default.lineString:case y.default.multiLineString:case y.default.polygon:case y.default.multiPolygon:m=x._polygonBuffer(h,i,r);break;case y.default.extent:var w=new c.default({coordinates:[[[h.xmin,h.ymin],[h.xmax,h.ymin],[h.xmax,h.ymax],[h.xmin,h.ymax],[h.xmin,h.ymin]]]});m=x._polygonBuffer(w,i,r);break;case y.default.circle:(m=l.default.fromJSON(e)).radius+=i;break;default:s.Log.error("geometry是不支持的几何类型!")}if(e instanceof Array){if(!e[0].spatialReference.isGeographic)if(m instanceof Array)for(var E=0;E<m.length;E++)m[E].type!==y.default.circle&&(m[E]=d.default.projectGeometry(m[E],p.default.fromJSON(e[0].spatialReference)));else m.type!==y.default.circle&&(m=d.default.projectGeometry(m,p.default.fromJSON(e[0].spatialReference)))}else e.spatialReference.isGeographic||e.type===y.default.circle||(m=d.default.projectGeometry(m,p.default.fromJSON(e.spatialReference)));return m},x._checkBufferOptions=function(e,t,r,n){if((0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),(0,s.isNull)(t)&&s.Log.error("distance不能为空!"),(0,s.isNull)(e)&&s.Log.error("unit不能为空!"),(0,s.isNull)(e)&&s.Log.error("unionResults不能为空!"),e instanceof Array){for(var o=0;o<e.length;o++)if(!(e[o]instanceof c.default||e[o]instanceof h.default)){s.Log.error("geometry的子元素类型不为Polygon或者MultiPolygon!");break}0===e.length&&s.Log.error("geometry的长度为0!")}else e instanceof l.default||s.Log.error("geometry不是基础几何类型!");if(t instanceof Array){e instanceof Array||s.Log.error("distance的类型为数组,但是geometry的类型不是数组!");for(var a=0;a<t.length;a++)if("number"!=typeof t[a]){s.Log.error("distance的子元素不是数字类型!");break}}else"number"!=typeof t&&s.Log.error("distance的不是数字类型!");if("string"==typeof r)if(r){var f=!1;(0,i.default)(u.LengthUnit).forEach(function(e){f||u.LengthUnit[e]!==r||(f=!0)}),f||s.Log.error("unit是不支持的单位类型!")}else s.Log.error("unit的值不能为空!");else s.Log.error("unit类型不是字符串!");"boolean"!=typeof n&&s.Log.error("unionResults类型不是布尔值类型!")},x._polygonBuffer=function(e,t,r){var n=void 0;switch(e.type){case y.default.point:n=a.point(e.coordinates);break;case y.default.multiPoint:n=a.multiPoint(e.coordinates);break;case y.default.lineString:n=a.lineString(e.coordinates);break;case y.default.multiLineString:n=a.multiLineString(e.coordinates);break;case y.default.polygon:n=a.polygon(e.coordinates);break;case y.default.multiPolygon:n=a.multiPolygon(e.coordinates)}var i=a.buffer(n,t,{units:r});return l.default.fromJSON({type:i.geometry.type,coordinates:i.geometry.coordinates})},x._multiPolygonBuffer=function(e,t,r){var n=a.multiPolygon(e.coordinates),i=a.buffer(n,t,{units:r});return"Polygon"===i.geometry.type?new c.default({coordinates:i.geometry.coordinates}):new h.default({coordinates:i.geometry.coordinates})},x._buffer=function(e,t,r){if(e.hasOwnProperty("coordinates")||s.Log.error("geometry缺少coordinates属性!"),e instanceof c.default){var n=a.polygon(e.coordinates);return a.buffer(n,t,{units:r})}},x.union=function(e){if((e=(0,s.defaultValue)(e,[]))instanceof Array||s.Log.error("geometries必须为数组类型!"),0===e.length)return[];var t=!0,r=!0,n=e[0].type;if(e.length>1){switch(e[0].type){case y.default.polygon:case y.default.multiPolygon:for(var i=1;i<e.length;i++)if(e[i].type!==y.default.polygon&&e[i].type!==y.default.multiPolygon){t=!1;break}break;case y.default.point:case y.default.multiPoint:for(var o=1;o<e.length;o++)if(e[o].type!==y.default.point&&e[o].type!==y.default.multiPoint){t=!1;break}break;case y.default.circle:for(var u=1;u<e.length;u++)if(e[u].type!==y.default.circle){t=!1;break}break;case y.default.extent:for(var l=1;l<e.length;l++)if(e[l].type!==y.default.extent){t=!1;break}break;case y.default.lineString:case y.default.multiLineString:for(var d=1;d<e.length;d++)if(e[d].type!==y.default.lineString&&e[d].type!==y.default.multiLineString){t=!1;break}break;default:s.Log.error("geometries的子元素中有求并方法不支持的数据类型!")}t||s.Log.error("几何数组的类型不同!");for(var v=e[0].spatialReference,_=1;_<e.length;_++)v.equals(e[_].spatialReference)||(r=!1);r||s.Log.error("几何数组的坐标系不同!");var b=void 0,w=[];switch(n){case y.default.point:case y.default.multiPoint:for(var E=[],T=0;T<e.length;T++)e[T]instanceof m.default?E.push(e[T].coordinates):e[T]instanceof g.default&&(E=E.concat(e[T].coordinates));if(1===E.length)b=new m.default({coordinates:E[0],spatialReference:p.default.fromJSON(e[0].spatialReference)});else{var I=a.multiPoint(E);I=a.cleanCoords(I),b=new g.default({coordinates:I.geometry.coordinates,spatialReference:p.default.fromJSON(e[0].spatialReference)})}break;case y.default.polygon:case y.default.multiPolygon:var M=void 0,k=e[0].type===y.default.polygon?a.polygon(e[0].coordinates):a.multiPolygon(e[0].coordinates),P=e[1].type===y.default.polygon?a.polygon(e[1].coordinates):a.multiPolygon(e[1].coordinates);M=a.union(k,P);for(var L=2;L<e.length;L++){var O=e[L].type===y.default.polygon?a.polygon(e[L].coordinates):a.multiPolygon(e[L].coordinates);M=a.union(M.geometry,O)}b=M.geometry.type===y.default.polygon?new c.default({coordinates:M.geometry.coordinates,spatialReference:p.default.fromJSON(e[0].spatialReference)}):new h.default({coordinates:M.geometry.coordinates,spatialReference:p.default.fromJSON(e[0].spatialReference)});break;case y.default.lineString:case y.default.multiLineString:for(var C=[],N=0;N<e.length;N++)e[N]instanceof f.default?C.push(e[N].coordinates):C=C.concat(e[N].coordinates);b=1===C.length?new f.default({coordinates:C[0],spatialReference:p.default.fromJSON(e[0].spatialReference)}):new S.default({coordinates:C,spatialReference:p.default.fromJSON(e[0].spatialReference)});break;case y.default.extent:w=[];for(var R=0;R<e.length;R++){var G=new c.default({coordinates:[[[e[R].xmin,e[R].ymin],[e[R].xmax,e[R].ymin],[e[R].xmax,e[R].ymax],[e[R].xmin,e[R].ymax],[e[R].xmin,e[R].ymin]]],spatialReference:p.default.fromJSON(e[0].spatialReference)});w.push(G)}b=x.union(w);break;case y.default.circle:w=[];for(var A=0;A<e.length;A++)w.push(e[A].toPolygon());b=x.union(w)}return b}return 1===e.length?e[0]:void 0},x.intersects=function(e,t){x._checkTwoGeometry(e,t);var r=x._geometryToTurf(e),n=x._geometryToTurf(t);return!a.booleanDisjoint(r,n)},x.geodesicLength=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry对象不能为空!"),e instanceof f.default||e instanceof S.default||e instanceof c.default||e instanceof h.default||e instanceof v.default||e instanceof _.default||s.Log.error("geometry类型不正确!");var r;r=e.spatialReference.isGeographic?e:d.default.project(e,new p.default({wkid:4326})),"string"!=typeof(t=(0,s.defaultValue)(t,u.LengthUnit.meters))&&s.Log.error("unit类型不正确!");var n=x._geometryToTurf(r),i=1e3*a.length(n,{units:"kilometers"});switch(t){case u.LengthUnit.kilometers:i/=1e3;break;case u.LengthUnit.miles:i*=.000621371192237}return i},x.geodesicArea=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry对象不能为空!"),e instanceof c.default||e instanceof h.default||e instanceof v.default||e instanceof _.default||s.Log.error("polygon对象不是Polyon或MultiPolygon或Circle或Extent类型!"),t=(0,s.defaultValue)(t,u.LinearUnits.meters);var r;r=e.spatialReference.isGeographic?e:d.default.project(e,new p.default({wkid:4326}));var n=x._geometryToTurf(r),i=a.area(n);switch(t){case u.AreaUnits.squareKilometers:i*=1e-6;break;case u.AreaUnits.squareMiles:i*=6214e-7*6214e-7;break;case u.AreaUnits.squareYards:i*=1.1959900499368898;break;case u.AreaUnits.squareFeet:i*=10.763910416689228;break;case u.AreaUnits.acres:i*=2471e-7;break;case u.AreaUnits.ares:i*=.01;break;case u.AreaUnits.hectares:i*=1e-4;break;case u.AreaUnits.squareMeters:}return i},x._geodesicPolygonArea=function(e){return a.area(a.polygon(e.coordinates))},x._geometryToTurf=function(e){var t=void 0;switch(e.type!==y.default.extent&&e.type!==y.default.circle&&(t=JSON.parse((0,n.default)(e.coordinates))),e.type){case y.default.point:return a.point(t);case y.default.multiPoint:return a.multiPoint(t);case y.default.lineString:return a.lineString(t);case y.default.multiLineString:return a.multiLineString(t);case y.default.polygon:return a.polygon(t);case y.default.multiPolygon:return a.multiPolygon(t);case y.default.extent:return a.polygon([[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]);case y.default.circle:return a.polygon(e.toPolygon().coordinates);default:s.Log.error("geometry为不支持的几何类型!")}},x._lineContainPoint=function(e,t){var r=a.point(t.coordinates),n=a.lineString(e.coordinates),i=a.booleanContains(n,r);if(!i)for(var o=0;o<e.coordinates.length;o++){var s=new m.default({coordinates:e.coordinates[o],spatialReference:p.default.fromJSON(e.spatialReference)});if(x.equals(t,s)){i=!0;break}}return i},x._multiLineContainPoint=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new f.default({coordinates:e.coordinates[n],spatialReference:p.default.fromJSON(e.spatialReference)});if(x._lineContainPoint(i,t)){r=!0;break}}return r},x._polygonContainPoint=function(e,t){var r=a.point(t.coordinates),n=a.polygon(e.coordinates);return a.booleanContains(n,r)},x._polygonContainLine=function(e,t){var r=a.polygon(e.coordinates),n=a.lineString(t.coordinates);return a.booleanContains(r,n)},x._multiPointContainsPoint=function(e,t){var r=a.point(t.coordinates),n=a.multiPoint(e.coordinates);return a.booleanContains(n,r)},x._lineContainMultiPoint=function(e,t){for(var r=!0,n=0;n<t.coordinates.length;n++){var i=new m.default({coordinates:t.coordinates[n]});if(!(r=x._lineContainPoint(e,i)))break}return r},x._polygonContainMultiPoint=function(e,t){for(var r=!0,n=0;n<t.coordinates.length;n++){var i=new m.default({coordinates:t.coordinates[n]});if(!(r=x._polygonContainPoint(e,i)))break}return r},x._checkTwoGeometry=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry1对象为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2对象为空!"),e instanceof l.default||s.Log.error("geometry1对象未继承于Geometry对象!"),t instanceof l.default||s.Log.error("geometry2对象未继承于Geometry对象!"),e.spatialReference.equals(t.spatialReference)||s.Log.error("geometry1和geometry2的坐标系不相同!")},x.intersect=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry1不能为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2不能为空!"),e instanceof l.default||e instanceof Array||s.Log.error("geometry1必须为几何对象或者数组对象!"),t instanceof l.default||s.Log.error("geometry2必须为几何对象或者数组对象!");var r=void 0;if(e instanceof Array){r=[];for(var n=0;n<e.length;n++)r.push(x.intersect(e[n],t));return r}switch(e.type){case y.default.point:r=x._pointIntersectGeometry(e,t);break;case y.default.multiPoint:r=x._multiPointIntersectGeometry(e,t);break;case y.default.lineString:switch(t.type){case y.default.point:x.contains(e,t)&&(r=new m.default({coordinates:t.coordinates}));break;case y.default.multiPoint:r=x._lineIntersectMultiPoint(e,t);break;case y.default.polygon:r=x._lineIntersectPolygon(e,t);break;case y.default.multiPolygon:r=x._lineIntersectMultiPolygon(e,t);break;case y.default.lineString:case y.default.multiLineString:r=x._lineIntersectLine(e,t);break;case y.default.extent:r=x._lineIntersectExtent(e,t);break;case y.default.circle:r=x._lineIntersectPolygon(e,t.toPolygon())}break;case y.default.polygon:switch(t.type){case y.default.point:r=x._pointIntersectGeometry(t,e);break;case y.default.multiPoint:r=x._multiPointIntersectGeometry(t,e);break;case y.default.lineString:r=x._lineIntersectPolygon(t,e);break;case y.default.multiLineString:r=x._multiLineIntersectPolygon(t,e);break;case y.default.polygon:r=x._polygonIntersectPolygon(e,t);break;case y.default.multiPolygon:r=x._polygonIntersectMultiPolygon(e,t);break;case y.default.circle:r=x._polygonIntersectPolygon(e,t.toPolygon());break;case y.default.extent:r=x._polygonIntersectExtent(e,t)}break;case y.default.multiPolygon:switch(t.type){case y.default.point:r=x._pointIntersectGeometry(t,e);break;case y.default.multiPoint:r=x._multiPointIntersectGeometry(t,e);break;case y.default.lineString:r=x._lineIntersectMultiPolygon(t,e);break;case y.default.multiLineString:r=x._multiLineIntersectMultiPolygon(t,e);break;case y.default.polygon:r=x._polygonIntersectMultiPolygon(t,e);break;case y.default.multiPolygon:r=x._multiPolygonIntersectMultiPolygon(e,t);break;case y.default.extent:r=x._multiPolygonIntersectExtent(e,t);break;case y.default.circle:r=x._polygonIntersectMultiPolygon(t.toPolygon(),e)}break;case y.default.extent:switch(t.type){case y.default.point:r=x._pointIntersectGeometry(t,e);break;case y.default.multiPoint:r=x._multiPointIntersectGeometry(t,e);break;case y.default.lineString:r=x._lineIntersectExtent(t,e);break;case y.default.multiLineString:r=x._multiLineIntersectExtent(t,e);break;case y.default.polygon:r=x._polygonIntersectExtent(t,e);break;case y.default.multiPolygon:r=x._multiPolygonIntersectExtent(t,e);break;case y.default.extent:var i=t.toPolygon();r=x._polygonIntersectExtent(i,e);break;case y.default.circle:var o=e.toPolygon();r=x._polygonIntersectPolygon(o,t.toPolygon())}break;case y.default.circle:var a=e.toPolygon();switch(t.type){case y.default.point:r=x._pointIntersectGeometry(t,a);break;case y.default.multiPoint:r=x._multiPointIntersectGeometry(t,a);break;case y.default.lineString:r=x._lineIntersectPolygon(t,a);break;case y.default.multiLineString:r=x._multiLineIntersectPolygon(t,a);break;case y.default.polygon:r=x._polygonIntersectPolygon(t,a);break;case y.default.multiPolygon:r=x._polygonIntersectMultiPolygon(a,t);break;case y.default.circle:r=x._polygonIntersectPolygon(t.toPolygon(),a);break;case y.default.extent:r=x._polygonIntersectExtent(a,t)}break;case y.default.multiLineString:switch(t.type){case y.default.point:r=x._pointIntersectGeometry(t,e);break;case y.default.multiPoint:r=x._multiPointIntersectGeometry(t,e);break;case y.default.lineString:r=x._lineIntersectLine(t,e);break;case y.default.multiLineString:for(var u=[],c=[],h=0;h<e.coordinates.length;h++){var d=new f.default({coordinates:e.coordinates[h]}),p=x._lineIntersectLine(d,t);p&&p.point&&u.push(p.point),p&&p.lineString&&c.push(p.lineString)}(r={point:void 0,lineString:void 0}).point=x.union(u),r.lineString=x.union(c);break;case y.default.polygon:r=x._multiLineIntersectPolygon(e,t);break;case y.default.multiPolygon:r=x._multiLineIntersectMultiPolygon(e,t)}}return r},x._lineIntersectLine=function(e,t){var r,n,i=e.spatialReference;r=e.type===y.default.lineString?a.lineString(e.coordinates):a.multiLineString(e.coordinates),n=t.type===y.default.lineString?a.lineString(t.coordinates):a.multiLineString(t.coordinates);var o=void 0,s=void 0;if(e.type===y.default.lineString)o=[e];else{o=[];for(var u=0;u<e.coordinates.length;u++)o.push(new f.default({coordinates:e.coordinates[u],spatialReference:i}))}if(t.type===y.default.lineString)s=[t];else{s=[];for(var l=0;l<t.coordinates.length;l++)s.push(new f.default({coordinates:t.coordinates[l],spatialReference:i}))}for(var c=[],h=0;h<o.length;h++)for(var d=0;d<s.length;d++){var p=a.lineString(o[h].coordinates),v=a.lineString(s[d].coordinates),_=a.lineOverlap(p,v);if(_.features.length>0)for(var S=0;S<_.features.length;S++)c.push(new f.default({coordinates:_.features[S].geometry.coordinates,spatialReference:i}))}var b=a.lineIntersect(r,n),w={point:void 0,lineString:void 0};1===c.length?w.lineString=new f.default({coordinates:c[0].coordinates,spatialReference:i}):c.length>1&&(w.lineString=x.union(c));for(var E=0;E<b.features.length;E++){var T=new m.default({coordinates:b.features[E].geometry.coordinates,spatialReference:i});w.lineString&&x.contains(w.lineString,T)&&b.features.splice(E,1)}if(1===b.features.length)w.point=new m.default({coordinates:b.features[0].geometry.coordinates,spatialReference:i});else if(b.features.length>1){for(var I=[],M=0;M<b.features.length;M++)I.push(b.features[M].geometry.coordinates);w.point=new g.default({coordinates:I,spatialReference:i})}return w},x._lineIntersectMultiPoint=function(e,t){for(var r=[],n=void 0,i=e.spatialReference,o=0;o<t.coordinates.length;o++){var a=new m.default({coordinates:t.coordinates[o],spatialReference:i});x.contains(e,a)&&r.push(a.coordinates)}return 1===r.length?n=new m.default({coordinates:r[0],spatialReference:i}):r.length>1&&(n=new g.default({coordinates:r,spatialReference:i})),n},x._lineIntersectPolygon=function(e,t){var r=e.spatialReference,n=a.lineString(e.coordinates),i=a.polygon(t.coordinates),o=a.lineIntersect(n,i);o.features=o.features.sort(function(e,t){return e.geometry.coordinates[0]-t.geometry.coordinates[0]});for(var s=[],u=0;u<e.coordinates.length-1;u++){var l=new f.default({coordinates:[e.coordinates[u],e.coordinates[u+1]],spatialReference:r});l.coordinates=l.coordinates.sort(function(e,t){return e-t});for(var c=[],h=0;h<o.features.length;h++){var d=new m.default({coordinates:o.features[h].geometry.coordinates,spatialReference:r});x.contains(l,d)&&c.push(d)}var p=new m.default({coordinates:e.coordinates[u],spatialReference:r});c[0]&&x.equals(p,c[0])||(c=[p].concat(c));var v=new m.default({coordinates:e.coordinates[u+1],spatialReference:r});0!==c.length&&x.equals(v,c[c.length-1])||c.push(v);for(var _=0;_<c.length-1;_++){var b=new f.default({coordinates:[c[_].coordinates,c[_+1].coordinates],spatialReference:r});x.contains(t,b)&&s.push(b)}}if(1===s.length)return s[0];if(s.length>1){for(var w=[],E=0;E<s.length;E++)w.push(s[E].coordinates);return new S.default({coordinates:w,spatialReference:r})}for(var T=[],I=0;I<o.features.length;I++)o.features[I].geometry.type===y.default.point&&T.push(o.features[I].geometry.coordinates);return 1===T.length?new m.default({coordinates:T[0],spatialReference:r}):T.length>1?new g.default({coordinates:T,spatialReference:r}):void 0},x._multiLineIntersectPolygon=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<e.coordinates.length;i++){var o=new f.default({coordinates:e.coordinates[i],spatialReference:r}),a=x._lineIntersectPolygon(o,t);a&&n.push(a)}if(1===n.length)return new f.default({coordinates:n[0].coordinates,spatialReference:r});if(n.length>1){for(var s=[],u=0;u<n.length;u++)n[u].type===y.default.lineString?s.push(n[u].coordinates):s=s.concat(n[u].coordinates);return new S.default({coordinates:s,spatialReference:r})}},x._multiLineIntersectMultiPolygon=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<t.coordinates.length;i++){var o=new c.default({coordinates:t.coordinates[i],spatialReference:r}),a=x._multiLineIntersectPolygon(e,o);a&&n.push(a)}return x.union(n)},x._lineIntersectExtent=function(e,t){var r=e.spatialReference,n=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]],spatialReference:r});return x._lineIntersectPolygon(e,n)},x._multiLineIntersectExtent=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<e.coordinates.length;i++){var o=new f.default({coordinates:e.coordinates[i],spatialReference:r}),a=x._lineIntersectExtent(o,t);a&&n.push(a)}if(1===n.length)return n[0];if(n.length>1){for(var s=[],u=0;u<n.length;u++)s.push(n[u].coordinates);return new S.default({coordinates:s,spatialReference:r})}},x._lineIntersectMultiPolygon=function(e,t){for(var r=e.spatialReference,n=void 0,i=[],o=0;o<t.coordinates.length;o++){var a=new c.default({coordinates:t.coordinates[o],spatialReference:r});i.push(x._lineIntersectPolygon(e,a))}for(var s=[],u=0;u<i.length;u++)i[u].type===y.default.lineString?s.push(i[u].coordinates):s=s.concat(i[u].coordinates);return 1===s.length?n=new f.default({coordinates:s,spatialReference:r}):s.length>1&&(n=new S.default({coordinates:s,spatialReference:r})),n},x._pointIntersectGeometry=function(e,t){var r=e.spatialReference;if(x.contains(t,e))return new m.default({coordinates:e.coordinates,spatialReference:r})},x._multiPointIntersectGeometry=function(e,t){for(var r=[],n=e.spatialReference,i=0;i<e.coordinates.length;i++){var o=new m.default({coordinates:e.coordinates[i],spatialReference:n});x.contains(t,o)&&r.push(o.coordinates)}var a=void 0;return 1===r.length?a=new m.default({coordinates:r[0],spatialReference:n}):r.length>1&&(a=new g.default({coordinates:r,spatialReference:n})),a},x._polygonIntersectPolygon=function(e,t){var r=e.spatialReference,n=a.polygon(e.coordinates),i=a.polygon(t.coordinates),o=a.intersect(n,i);if(o)return o.geometry.type===y.default.polygon?new c.default({coordinates:o.geometry.coordinates,spatialReference:r}):new h.default({coordinates:o.geometry.coordinates,spatialReference:r})},x._polygonIntersectMultiPolygon=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<t.coordinates.length;i++){var o=new c.default({coordinates:t.coordinates[i],spatialReference:r}),a=x._polygonIntersectPolygon(e,o);a&&n.push(a)}return x.union(n)},x._multiPolygonIntersectMultiPolygon=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<e.coordinates.length;i++){var o=new c.default({coordinates:e.coordinates[i],spatialReference:r}),a=x._polygonIntersectMultiPolygon(o,t);a&&n.push(a)}return x.union(n)},x._polygonIntersectExtent=function(e,t){var r=e.spatialReference,n=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]],spatialReference:r});return x._polygonIntersectPolygon(e,n)},x._multiPolygonIntersectExtent=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<e.coordinates.length;i++){var o=new c.default({coordinates:e.coordinates[i],spatialReference:r}),a=x._polygonIntersectExtent(o,t);a&&n.push(a)}return x.union(n)},x.overlaps=function(e,t){return!!x.intersects(e,t)&&!x.contains(e,t)&&!x.contains(t,e)},x.rotate=function(e,t,r){t=(0,s.defaultValue)(t,0),(0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),(0,s.isNull)(t)&&s.Log.error("angle不能为空!"),e instanceof l.default||s.Log.error("geometry不是基础几何对象!"),"number"!=typeof t&&s.Log.error("angle不是数字!"),!r||r instanceof m.default||s.Log.error("rotationOrigin不是Point对象!"),r&&!e.spatialReference.equals(r.spatialReference)&&s.Log.error("rotationOrigin和geometry不是同一个坐标系!");var n=void 0,i=void 0;e.spatialReference.isGeographic?(n=e,i=r):(n=d.default.projectGeometry(e,new p.default({wkid:4326})),i=d.default.projectGeometry(r,new p.default({wkid:4326})));var o=x._geometryToTurf(n),u=void 0;i&&(u=[i.coordinates[0],i.coordinates[1]]);var c={pivot:u,mutate:!0},f=a.transformRotate(o,t,c);return f=x._turfFeatureToGeometry(f),e.spatialReference.isGeographic||(f=d.default.projectGeometry(f,p.default.fromJSON(e.spatialReference))),f},x._turfFeatureToGeometry=function(e){switch(e.geometry.type){case y.default.point:return new m.default({coordinates:e.geometry.coordinates});case y.default.multiPoint:return new g.default({coordinates:e.geometry.coordinates});case y.default.lineString:return new f.default({coordinates:e.geometry.coordinates});case y.default.multiLineString:return new S.default({coordinates:e.geometry.coordinates});case y.default.polygon:return new c.default({coordinates:e.geometry.coordinates});case y.default.multiPolygon:return new h.default({coordinates:e.geometry.coordinates})}},x.nearestCoordinate=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),(0,s.isNull)(t)&&s.Log.error("inputPoint不能为空!");var r=e,n=t;if(n instanceof m.default||s.Log.error("inputPoint类型错误,需要输入Point!"),r instanceof m.default||r instanceof f.default||r instanceof c.default||r instanceof g.default||r instanceof S.default||r instanceof h.default||r instanceof _.default||r instanceof v.default||s.Log.error("geometry类型错误!"),r.spatialReference.equals(n.spatialReference)||s.Log.error("_geometryPro1、inputPoint坐标系不同!"),r=(0,s.defaultValue)(r,void 0),n=(0,s.defaultValue)(n,void 0),r.spatialReference.isGeographic||(r=d.default.projectGeometry(r,new p.default({wkid:4326})),n=d.default.projectGeometry(n,new p.default({wkid:4326}))),!(0,s.isNull)(r)&&!(0,s.isNull)(n)){var i=void 0,o=void 0,u=void 0,b=[],x=a.point(n.coordinates);switch(r.type){case y.default.multiPoint:for(var w=0;w<r.coordinates.length;w++)b.push(a.point(r.coordinates[w]));var E=a.featureCollection(b);i=a.nearestPoint(x,E);break;case y.default.lineString:o=a.lineString(r.coordinates),i=a.nearestPointOnLine(o,x,{units:"kilometers"});break;case y.default.multiLineString:o=a.multiLineString(r.coordinates),i=a.nearestPointOnLine(o,x,{units:"kilometers"});break;case y.default.polygon:for(var T=0;T<r.coordinates[0].length;T++)b.push(r.coordinates[0][T]);o=a.lineString(b),i=a.nearestPointOnLine(o,x,{units:"kilometers"});break;case y.default.multiPolygon:for(var I=[],M=0;M<r.coordinates.length;M++){b=[];for(var k=0;k<r.coordinates[M][0].length;k++)b.push(r.coordinates[M][0][k]);I.push(b),o=a.multiLineString(I)}i=a.nearestPointOnLine(o,x,{units:"kilometers"});break;case y.default.circle:u=a.polygon(r.toPolygon().coordinates);for(var P=0;P<u.geometry.coordinates[0].length;P++)b.push(u.geometry.coordinates[0][P]);o=a.lineString(b),i=a.nearestPointOnLine(o,x,{units:"kilometers"});break;case y.default.extent:u=new c.default({coordinates:[[[r.xmin,r.ymin],[r.xmax,r.ymin],[r.xmax,r.ymax],[r.xmin,r.ymax],[r.xmin,r.ymin]]]});for(var L=0;L<u.coordinates[0].length;L++)b.push(u.coordinates[0][L]);o=a.lineString(b),i=a.nearestPointOnLine(o,x,{units:"kilometers"})}return i=l.default.fromJSON(i.geometry),t.spatialReference.isGeographic||(i=d.default.projectGeometry(i,t.spatialReference)),i}},x.planarArea=function(e,t){e instanceof c.default||e instanceof h.default||e instanceof v.default||e instanceof _.default||s.Log.error("polygon对象不是Polyon或MultiPolygon或Circle或Extent类型!");var r=0;if(e instanceof c.default)r=x._polygonArea(e);else if(e instanceof h.default)for(var n=e.toPolygonArray(),i=0;i<n.length;i++)r+=x._polygonArea(n[i]);else e instanceof v.default?r=Math.abs(Math.PI*e.radius*e.radius):e instanceof _.default&&(r=Math.abs((e.xmax-e.xmin)*(e.ymax-e.ymin)));switch(t){case u.AreaUnits.squareKilometers:r*=1e-6;break;case u.AreaUnits.squareMiles:r*=6214e-7*6214e-7;break;case u.AreaUnits.squareYards:r*=1.1959900499368898;break;case u.AreaUnits.squareFeet:r*=10.763910416689228;break;case u.AreaUnits.acres:r*=2471e-7;break;case u.AreaUnits.ares:r*=.01;break;case u.AreaUnits.hectares:r*=1e-4;break;case u.AreaUnits.squareMeters:}return r},x._ringArea=function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r][0]*e[r===e.length-1?0:r+1][1]*.5,t-=e[r===e.length-1?0:r+1][0]*e[r][1]*.5;return Math.abs(t)},x._polygonArea=function(e){for(var t=x._ringArea(e.coordinates[0]),r=0,n=1;n<e.coordinates.length;n++)r+=x._ringArea(e.coordinates[n]);return t-r},x.planarLength=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry对象不能为空!"),e instanceof f.default||e instanceof S.default||e instanceof c.default||e instanceof h.default||e instanceof v.default||e instanceof _.default||s.Log.error("geometry类型不正确!");var r=0,n=void 0;switch(e.type){case y.default.lineString:r=x._planarLineStringLength(e);break;case y.default.multiLineString:r=x._planarMultiLineStringLength(e);break;case y.default.polygon:n=new c.default({coordinates:[e.coordinates[0]]}),r=x._planarMultiLineStringLength(n);break;case y.default.multiPolygon:for(var i=0;i<e.coordinates.length;i++){var o=new c.default({coordinates:[e.coordinates[i][0]]});r+=x._planarMultiLineStringLength(o)}break;case y.default.circle:r=2*Math.PI*e.radius;break;case y.default.extent:n=new c.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]}),r+=x._planarMultiLineStringLength(n)}switch(t){case u.LinearUnits.kilometers:r*=.001;break;case u.LinearUnits.feet:r*=3.28083989501;break;case u.LinearUnits.miles:r*=6214e-7;break;case u.LinearUnits.nauticalMiles:r*=54e-5;break;case u.LinearUnits.yards:r*=1.0936133;break;case u.LinearUnits.meters:}return r},x._planarLineStringLength=function(e){for(var t=0,r=0;r<e.coordinates.length-1;r++){var n=Math.abs(e.coordinates[r+1][0]-e.coordinates[r][0]),i=Math.abs(e.coordinates[r+1][1]-e.coordinates[r][1]);t+=Math.sqrt(Math.pow(n,2)+Math.pow(i,2))}return t},x._planarMultiLineStringLength=function(e){for(var t=0,r=0;r<e.coordinates.length;r++){var n=new f.default({coordinates:e.coordinates[r]});t+=x._planarLineStringLength(n)}return t},x.contains=function(e,t){x._checkTwoGeometry(e,t);var r=!1,n=void 0;switch(e.type){case y.default.point:switch(t.type){case y.default.point:return x.equals(e,t)}break;case y.default.multiPoint:switch(t.type){case y.default.point:return x._multiPointContainsPoint(e,t);case y.default.multiPoint:r=!0;for(var i=0;i<t.coordinates.length&&(n=new m.default({coordinates:t.coordinates[i]}),r=x._lineContainPoint(e,n));i++);return r}break;case y.default.lineString:switch(t.type){case y.default.point:return x._lineContainPoint(e,t);case y.default.multiPoint:r=!0;for(var o=0;o<t.coordinates.length;o++)if(n=new m.default({coordinates:t.coordinates[o],spatialReference:p.default.fromJSON(t.spatialReference)}),!x._lineContainPoint(e,n)){r=!1;break}return r;case y.default.lineString:return x._lineContainLine(e,t);case y.default.multiLineString:r=!0;for(var a=0;a<t.coordinates.length;a++){var s=new f.default({coordinates:t.coordinates[a],spatialReference:p.default.fromJSON(t.spatialReference)});if(!x._lineContainLine(e,s)){r=!1;break}}return r}break;case y.default.multiLineString:switch(t.type){case y.default.point:return x._multiLineContainPoint(e,t);case y.default.multiPoint:r=!0;for(var u=0;u<t.coordinates.length;u++){var l=new m.default({coordinates:t.coordinates[u],spatialReference:p.default.fromJSON(t.spatialReference)});if(!x._multiLineContainPoint(e,l)){r=!1;break}}return r;case y.default.lineString:return x._multiLineContainLine(e,t);case y.default.multiLineString:r=!0;for(var h=0;h<t.coordinates.length;h++){var d=new f.default({coordinates:t.coordinates[h],spatialReference:p.default.fromJSON(t.spatialReference)});if(!x._multiLineContainLine(e,d)){r=!1;break}}return r}break;case y.default.polygon:switch(t.type){case y.default.point:return x._polygonContainPoint(e,t);case y.default.multiPoint:r=!0;for(var g=0;g<t.coordinates.length;g++){var v=new m.default({coordinates:t.coordinates[g]});if(!x._polygonContainPoint(e,v)){r=!1;break}}return r;case y.default.lineString:return x._polygonContainLine(e,t);case y.default.multiLineString:r=!0;for(var _=0;_<t.coordinates.length;_++){var S=new f.default({coordinates:t.coordinates[_]});if(!x._polygonContainLine(e,S)){r=!1;break}}return r;case y.default.polygon:return x._polygonContainPolygon(e,t);case y.default.multiPolygon:r=!0;for(var b=0;b<t.coordinates.length;b++){var w=new c.default({coordinates:t.coordinates[b]});if(!x._polygonContainPolygon(e,w)){r=!1;break}}return r;case y.default.circle:return x._polygonContainPolygon(e,t.toPolygon());case y.default.extent:var E=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return x._polygonContainPolygon(e,E)}break;case y.default.multiPolygon:switch(t.type){case y.default.point:return x._multiPolygonContainsPoint(e,t);case y.default.multiPoint:return x._multiContainsMulti(e,t,m.default,x._multiPolygonContainsPoint);case y.default.lineString:return x._multiPolygonContainsLine(e,t);case y.default.multiLineString:return x._multiContainsMulti(e,t,f.default,x._multiPolygonContainsLine);case y.default.polygon:return x._multiPolygonContainsPolygon(e,t);case y.default.multiPolygon:return x._multiContainsMulti(e,t,c.default,x._multiPolygonContainsPolygon);case y.default.circle:r=!1;for(var T=0;T<e.coordinates.length;T++){var I=new c.default({coordinates:e.coordinates[T]});if(x._polygonContainPolygon(I,t.toPolygon())){r=!0;break}}return r;case y.default.extent:r=!1;for(var M=0;M<e.coordinates.length;M++){var k=new c.default({coordinates:e.coordinates[M]}),P=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});if(x._polygonContainPolygon(k,P)){r=!0;break}}return r}break;case y.default.circle:switch(t.type){case y.default.point:return x._polygonContainPoint(e.toPolygon(),t);case y.default.multiPoint:return x._singleContainsMulti(e.toPolygon(),t,m.default,x._polygonContainPoint);case y.default.lineString:return x._polygonContainMultiPoint(e.toPolygon(),t);case y.default.multiLineString:return x._singleContainsMulti(e.toPolygon(),t,f.default,x._polygonContainMultiPoint);case y.default.polygon:return x._polygonContainPolygon(e.toPolygon(),t);case y.default.multiPolygon:return x._singleContainsMulti(e.toPolygon(),t,c.default,x._polygonContainPolygon);case y.default.circle:return x._polygonContainPolygon(e.toPolygon(),t.toPolygon());case y.default.extent:var L=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return x._polygonContainPolygon(e.toPolygon(),L)}break;case y.default.extent:var O=new c.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]});switch(t.type){case y.default.point:return x._polygonContainPoint(O,t);case y.default.multiPoint:return x._singleContainsMulti(O,t,m.default,x._polygonContainPoint);case y.default.lineString:return x._polygonContainMultiPoint(O,t);case y.default.multiLineString:return x._singleContainsMulti(O,t,f.default,x._polygonContainMultiPoint);case y.default.polygon:return x._polygonContainPolygon(O,t);case y.default.multiPolygon:return x._singleContainsMulti(O,t,c.default,x._polygonContainPolygon);case y.default.circle:return x._polygonContainPolygon(O,t.toPolygon());case y.default.extent:var C=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return x._polygonContainPolygon(O,C)}break;default:return!1}},x._singleContainsMulti=function(e,t,r,n){for(var i=!0,o=0;o<t.coordinates.length;o++)if(!n(e,new r({coordinates:t.coordinates[o]}))){i=!1;break}return i},x._multiContainsMulti=function(e,t,r,n){for(var i=!0,o=0;o<t.coordinates.length;o++)if(!n(e,new r({coordinates:t.coordinates[o]}))){i=!1;break}return i},x._multiPolygonContainsPoint=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new c.default({coordinates:e.coordinates[n]});if(x._polygonContainPoint(i,t)){r=!0;break}}return r},x._multiPolygonContainsLine=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new c.default({coordinates:e.coordinates[n]});if(x._polygonContainMultiPoint(i,t)){r=!0;break}}return r},x._multiPolygonContainsPolygon=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new c.default({coordinates:e.coordinates[n]});if(x._polygonContainPolygon(i,t)){r=!0;break}}return r},x._lineContainLine=function(e,t){var r=a.lineString(e.coordinates),n=a.lineString(t.coordinates),i=a.booleanContains(r,n);if(i||(i=x.equals(e,t)),!i){var o=new f.default({coordinates:[t.coordinates[1],t.coordinates[0]]});i=x.equals(e,o)}return i},x._multiLineContainLine=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new f.default({coordinates:e.coordinates[n],spatialReference:p.default.fromJSON(e.spatialReference)});if(x._lineContainLine(i,t)){r=!0;break}}return r},x._polygonContainPolygon=function(e,t){var r=a.polygon(e.coordinates),n=a.polygon(t.coordinates);return a.booleanContains(r,n)},x.distance=function(e,t,r){if((0,s.isNull)(e)&&s.Log.error("geometry1不能为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2不能为空!"),e instanceof m.default||s.Log.error("geometry1类型错误,需要输入Point!"),t instanceof m.default||t instanceof f.default||t instanceof c.default||t instanceof g.default||t instanceof S.default||t instanceof h.default||t instanceof _.default||t instanceof v.default||s.Log.error("geometry2类型错误!"),e.spatialReference.equals(t.spatialReference)||s.Log.error("geometry1、geometry2坐标系不同!"),r=(0,s.defaultValue)(r,u.LengthUnit.kilometers),e=(0,s.defaultValue)(e,void 0),t=(0,s.defaultValue)(t,void 0),e.spatialReference.isGeographic||(e=d.default.projectGeometry(e,new p.default({wkid:4326})),t=d.default.projectGeometry(t,new p.default({wkid:4326}))),!(0,s.isNull)(e)&&!(0,s.isNull)(t)){var n=void 0,i=void 0,o=void 0,l=[],b=[],x=a.point(e.coordinates);switch(t.type){case y.default.point:i=a.point(t.coordinates),n=a.distance(x,i,{units:r});break;case y.default.multiPoint:for(var w=0;w<t.coordinates.length;w++)l.push(a.point(t.coordinates[w]));var E=a.featureCollection(l),T=a.nearestPoint(x,E);n=a.distance(x,T,{units:r});break;case y.default.lineString:i=a.lineString(t.coordinates),n=a.pointToLineDistance(x,i,{units:r});break;case y.default.multiLineString:for(var I=0;I<t.coordinates.length;I++)i=a.lineString(t.coordinates[I]),b.push(a.pointToLineDistance(x,i,{units:r}));b.sort(function(e,t){return e-t}),n=b[0];break;case y.default.polygon:for(var M=0;M<t.coordinates[0].length;M++)l.push(t.coordinates[0][M]);i=a.lineString(l),n=a.pointToLineDistance(x,i,{units:r});break;case y.default.multiPolygon:for(var k=0;k<t.coordinates.length;k++){l=[];for(var P=0;P<t.coordinates[k][0].length;P++)l.push(t.coordinates[k][0][P]);i=a.lineString(l),b.push(a.pointToLineDistance(x,i,{units:r}))}b.sort(function(e,t){return e-t}),n=b[0];break;case y.default.circle:o=a.polygon(t.toPolygon().coordinates);for(var L=0;L<o.geometry.coordinates[0].length;L++)l.push(o.geometry.coordinates[0][L]);i=a.lineString(l),n=a.pointToLineDistance(x,i,{units:r});break;case y.default.extent:for(var O=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]}),C=0;C<O.coordinates[0].length;C++)l.push(O.coordinates[0][C]);i=a.lineString(l),n=a.pointToLineDistance(x,i,{units:r})}return n}},x.equals=function(e,t){if((0,s.isNull)(e)&&s.Log.error("geometry1对象为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2对象为空!"),e instanceof l.default||s.Log.error("geometry1对象未继承于Geometry对象!"),t instanceof l.default||s.Log.error("geometry2对象未继承于Geometry对象!"),e.type!==t.type)return!1;if(!e.spatialReference.equals(t.spatialReference))return!1;switch(e.type){case y.default.point:if(!e.equals(t))return!1;break;case y.default.polygon:return x._equalPolygon(e,t);case y.default.lineString:return x._equalLinePoint(e,t);case y.default.extent:if(e.xmin!==t.xmin||e.ymin!==t.ymin||e.xmax!==t.xmax||e.ymax!==t.ymax)return!1;break;case y.default.circle:if(e.radius!==t.radius||e.radiusUnit!==t.radiusUnit)return!1;if(e.center.length!==t.center.length)return!1;for(var r=0;r<e.center.length;r++)if(e.center[r]!==t.center[r])return!1;break;case y.default.multiPoint:return x._equalLinePoint(e,t);case y.default.multiLineString:if(e.coordinates.length!==t.coordinates.length)return!1;for(var n=0;n<e.coordinates.length;n++){var i=new f.default({coordinates:e.coordinates[n],spatialReference:e.spatialReference}),o=new f.default({coordinates:t.coordinates[n],spatialReference:t.spatialReference});if(!x.equals(i,o))return!1}break;case y.default.multiPolygon:if(e.coordinates.length!==t.coordinates.length)return!1;for(var a=0;a<e.coordinates.length;a++){var u=new c.default({coordinates:e.coordinates[a],spatialReference:e.spatialReference}),h=new c.default({coordinates:t.coordinates[a],spatialReference:t.spatialReference});if(!x.equals(u,h))return!1}}return!0},x._equalLinePoint=function(e,t){if(e.coordinates.length!==t.coordinates.length)return!1;for(var r=0;r<e.coordinates.length;r++){var n=new m.default({coordinates:e.coordinates[r]}),i=new m.default({coordinates:t.coordinates[r]});if(!n.equals(i))return!1}return!0},x._equalPolygon=function(e,t){if(e.coordinates.length!==t.coordinates.length)return!1;for(var r=0;r<e.coordinates.length;r++)if(e.coordinates[r].length!==t.coordinates[r].length)return!1;for(var n=0;n<e.coordinates.length;n++){var i=new f.default({coordinates:e.coordinates[n],spatialReference:e.spatialReference}),o=new f.default({coordinates:t.coordinates[n],spatialReference:t.spatialReference});if(!x.equals(i,o))return!1}return!0},x.disjoint=function(e,t){return!x.intersects(e,t)},x.within=function(e,t){return x.contains(t,e)},x.crosses=function(e,t){if((0,s.isNull)(e)&&s.Log.error("geometry1不能为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2不能为空!"),e.spatialReference.equals(t.spatialReference)||s.Log.error("geometry1、geometry2坐标系不同!"),e instanceof f.default||e instanceof S.default)return x._crosses(e,t);if(t instanceof f.default||t instanceof S.default){var r=e;return x._crosses(e=t,t=r)}s.Log.error("geometry1和geometry2中至少有一个参数类型必须为lineString和multiLineString中的一个!")},x._crosses=function(e,t){if(t instanceof f.default||t instanceof c.default||t instanceof S.default||t instanceof h.default||t instanceof _.default||t instanceof v.default||s.Log.error("geometry2类型错误!"),e=(0,s.defaultValue)(e,void 0),t=(0,s.defaultValue)(t,void 0),e.spatialReference.isGeographic||(e=d.default.projectGeometry(e,new p.default({wkid:4326})),t=d.default.projectGeometry(t,new p.default({wkid:4326}))),!(0,s.isNull)(e)&&!(0,s.isNull)(t)){var r=void 0,n=void 0,i=void 0;switch(e.type){case y.default.lineString:switch(t.type){case y.default.lineString:if(n=x._geometryToTurf(e),i=x._geometryToTurf(t),!(r=a.booleanCrosses(n,i))&&x.intersects(e,t)){var o=[],u=new g.default({coordinates:[t.coordinates[0],t.coordinates[t.coordinates.length-1]]});if(u.coordinates[0].toString()===u.coordinates[1].toString()){var l=x.intersect(e,t);if("MultiPoint"===l.point.type)r=!0;else if("Point"===l.point.type){var b=new m.default({coordinates:e.coordinates[0]}),w=new m.default({coordinates:e.coordinates[e.coordinates.length-1]});r=!x.contains(t,b)&&!x.contains(t,w)}}else{for(var E=0;E<e.coordinates.length;E++)o.push(e.coordinates[E]);for(var T=0;T<t.coordinates.length;T++)o.push(t.coordinates[T]);var I=a.multiPoint(o);if(!(a.cleanCoords(I).geometry.coordinates.length<I.geometry.coordinates.length)){for(var M=void 0,k=0;k<e.coordinates.length;k++){if(M){r=!M;break}var P=new m.default({coordinates:e.coordinates[k]});M=x.contains(t,P)}for(var L=0;L<t.coordinates.length;L++){if(M){r=!M;break}var O=new m.default({coordinates:t.coordinates[L]});M=x.contains(e,O)}M||(r=!0);break}r=!1}}break;case y.default.multiLineString:for(var C=0;C<t.coordinates.length&&!r;C++)i=new f.default({coordinates:t.coordinates[C]}),r=x._crosses(e,i);break;case y.default.polygon:case y.default.extent:case y.default.circle:n=x._geometryToTurf(e),i=x._geometryToTurf(t),(r=a.booleanCrosses(n,i))&&"Point"===x.intersect(e,t).type&&(r=!1);break;case y.default.multiPolygon:for(var N=0;N<t.coordinates.length&&!r;N++)i=new c.default({coordinates:t.coordinates[N]}),r=x._crosses(e,i)}break;case y.default.multiLineString:for(var R=0;R<e.coordinates.length&&!r;R++)n=new f.default({coordinates:e.coordinates[R]}),r=x._crosses(n,t)}return r}},x.touches=function(e,t){if((0,s.isNull)(e)&&s.Log.error("geometry1不能为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2不能为空!"),e instanceof f.default||e instanceof c.default||e instanceof S.default||e instanceof h.default||e instanceof _.default||e instanceof v.default||s.Log.error("geometry1类型错误,需要输入LineString、Polygon、MultiLineString、MultiPolygon、Circle、Extent!"),t instanceof m.default||t instanceof f.default||t instanceof c.default||t instanceof g.default||t instanceof S.default||t instanceof h.default||t instanceof _.default||t instanceof v.default||s.Log.error("geometry2类型错误!"),e.spatialReference.equals(t.spatialReference)||s.Log.error("geometry1、geometry2坐标系不同!"),e=(0,s.defaultValue)(e,void 0),t=(0,s.defaultValue)(t,void 0),e.spatialReference.isGeographic||(e=d.default.projectGeometry(e,new p.default({wkid:4326})),t=d.default.projectGeometry(t,new p.default({wkid:4326}))),!(0,s.isNull)(e)&&!(0,s.isNull)(t)){var r=!1,n=void 0,i=void 0,o=[];switch(e.type){case y.default.lineString:switch(t.type){case y.default.point:var a=new g.default({coordinates:[e.coordinates[0],e.coordinates[e.coordinates.length-1]]});x.contains(a,t)&&a.coordinates[0].toString()!==a.coordinates[1].toString()&&(r=!0);break;case y.default.multiPoint:for(var u=0;u<t.coordinates.length;u++){var l=new m.default({coordinates:t.coordinates[u]}),b=x.touches(e,l);if(b)r=b;else if(x.intersects(e,l)){r=!1;break}}break;case y.default.lineString:if(x.intersect(e,t).point){var w=new m.default({coordinates:e.coordinates[0]}),E=new m.default({coordinates:e.coordinates[e.coordinates.length-1]});if(x.contains(t,w)||x.contains(t,E))r=!x.crosses(e,t);else{var T=new m.default({coordinates:t.coordinates[0]}),I=new m.default({coordinates:t.coordinates[t.coordinates.length-1]});r=!(!x.contains(e,T)&&!x.contains(e,I)||x.crosses(e,t))}}else r=!1;break;case y.default.multiLineString:for(var M=0;M<t.coordinates.length;M++){i=new f.default({coordinates:t.coordinates[M]});var k=x.touches(e,i);if(k)r=k;else if(x.intersects(e,i)){r=!1;break}}break;case y.default.polygon:for(var P=0;P<t.coordinates[0].length;P++)o.push(t.coordinates[0][P]);i=new f.default({coordinates:o}),x.intersects(e,i)&&(x.crosses(e,i)||(r=!0));break;case y.default.multiPolygon:for(var L=0;L<t.coordinates.length;L++){i=new c.default({coordinates:t.coordinates[L]});var O=x.touches(e,i);if(O)r=O;else if(x.intersects(e,i)){r=!1;break}}break;case y.default.circle:var C=new m.default({coordinates:t.center}),N=x.nearestCoordinate(e,C),R=new f.default({coordinates:[t.center,N.geometry.coordinates]}),G=x.planarLength(R);Math.round(G)===t.radius&&(r=!0);break;case y.default.extent:var A=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=x.touches(e,A)}break;case y.default.multiLineString:for(var V=0;V<e.coordinates.length;V++){n=new f.default({coordinates:e.coordinates[V]});var D=x.touches(n,t);if(D)r=D;else if(x.intersects(n,t)){r=!1;break}}break;case y.default.polygon:switch(t.type){case y.default.point:if(!x.contains(e,t)){for(var F=0;F<e.coordinates.length;F++)o.push(e.coordinates[F]);n=new S.default({coordinates:o}),x.contains(n,t)&&(r=!0)}break;case y.default.multiPoint:for(var j=0;j<t.coordinates.length;j++){var B=new m.default({coordinates:t.coordinates[j]}),q=x.touches(e,B);if(q)r=q;else if(x.contains(e,B)){r=!1;break}}break;case y.default.lineString:case y.default.multiLineString:r=x.touches(t,e);break;case y.default.polygon:x.intersects(e,t)&&(x.intersect(e,t)||(r=!0));break;case y.default.multiPolygon:for(var U=0;U<t.coordinates.length;U++){i=new c.default({coordinates:t.coordinates[U]});var J=x.touches(e,i);if(J)r=J;else if(x.intersects(e,i)){r=!1;break}}break;case y.default.circle:for(var z=0;z<e.coordinates[0].length;z++)o.push(e.coordinates[0][z]);n=new f.default({coordinates:o});var W=new m.default({coordinates:t.center}),H=x.nearestCoordinate(n,W),Y=new f.default({coordinates:[t.center,H.geometry.coordinates]}),X=x.planarLength(Y);Math.round(X)===t.radius&&(x.intersect(e,t)||(r=!0));break;case y.default.extent:var K=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=x.touches(e,K)}break;case y.default.multiPolygon:switch(t.type){case y.default.point:for(var Z=0;Z<e.coordinates.length;Z++){n=new c.default({coordinates:e.coordinates[Z]});var Q=x.touches(n,t);if(Q)r=Q;else if(x.contains(n,t)){r=!1;break}}break;case y.default.multiPoint:for(var $=0;$<t.coordinates.length;$++){var ee=new m.default({coordinates:t.coordinates[$]}),te=x.touches(e,ee);if(te)r=te;else if(x.contains(e,ee)){r=!1;break}}break;case y.default.lineString:case y.default.multiLineString:case y.default.polygon:r=x.touches(t,e);break;case y.default.multiPolygon:for(var re=0;re<t.coordinates.length;re++){i=new c.default({coordinates:t.coordinates[re]});var ne=x.touches(e,i);if(ne)r=ne;else if(x.intersects(e,i)){r=!1;break}}break;case y.default.extent:var ie=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=x.touches(e,ie);break;case y.default.circle:for(var oe=0;oe<e.coordinates.length;oe++){n=new c.default({coordinates:e.coordinates[oe]});var ae=x.touches(n,t);if(ae)r=ae;else if(x.intersects(n,t)){r=!1;break}}}break;case y.default.extent:var se=new c.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]});r=x.touches(se,t);break;case y.default.circle:switch(t.type){case y.default.point:var ue=new f.default({coordinates:[e.center,t.coordinates]}),le=x.planarLength(ue);Math.round(le)===e.radius&&(r=!0);break;case y.default.multiPoint:for(var ce=0;ce<t.coordinates.length;ce++){var fe=new m.default({coordinates:t.coordinates[ce]}),he=x.touches(e,fe);if(he)r=he;else{var de=new f.default({coordinates:[e.center,fe.coordinates]}),pe=x.planarLength(de);if(Math.round(pe)<e.radius){r=!1;break}}}break;case y.default.lineString:case y.default.multiLineString:case y.default.polygon:case y.default.multiPolygon:case y.default.extent:r=x.touches(t,e);break;case y.default.circle:var ye=new f.default({coordinates:[e.center,t.center]}),ge=x.planarLength(ye);Math.round(ge)===e.radius+t.radius&&(r=!0)}}return r}},x.cut=function(e,t){if((0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),(0,s.isNull)(t)&&s.Log.error("cutter不能为空!"),e instanceof f.default||e instanceof S.default||e instanceof c.default||e instanceof h.default||s.Log.error("geometry类型错误!"),t instanceof f.default||s.Log.error("cutter类型错误!"),e.spatialReference.equals(t.spatialReference)||s.Log.error("geometry对象和cutter对象的坐标系不同!"),!x.intersects(e,t))return[];var r=[],n=void 0,i=void 0;switch(e.type){case y.default.lineString:r=x._lineCutLine(e,t);break;case y.default.multiLineString:for(var o=0;o<e.coordinates.length;o++){var a=new f.default({coordinates:e.coordinates[o],spatialReference:p.default.fromJSON(e.spatialReference)});r=r.concat(x._lineCutLine(a,t))}break;case y.default.polygon:n=void 0,r=x._lineCutPolygon(n=e,i=t);break;case y.default.multiPolygon:n=void 0;for(var u=0;u<n.coordinates.length;u++){var l=new c.default({coordinates:n.coordinates[u],spatialReference:p.default.fromJSON(e.spatialReference)});r=r.concat(x._lineCutPolygon(l,i))}}return r},x._polygonAndCutterToWGS84=function(e,t){return{polygon:e.spatialReference.isGeographic?e:x._geometryToWGS84(e),cutter:t.spatialReference.isGeographic?t:x._geometryToWGS84(t)}},x._lineCutLine=function(e,t){for(var r=[],n=a.lineString(e.coordinates),i=a.lineString(t.coordinates),o=a.lineSplit(n,i),s=0;s<o.features.length;s++)r.push(new f.default({coordinates:o.features[s].geometry.coordinates,spatialReference:p.default.fromJSON(e.spatialReference)}));return r},x._lineCutPolygon=function(e,t){var r=e.spatialReference,n=[],i=new f.default({coordinates:e.coordinates[0],spatialReference:r}),o=a.lineString(i.coordinates),s=a.lineString(t.coordinates);if(a.booleanDisjoint(s,i))return e.clone();for(var u=[],l=0;l<t.coordinates.length-1;l++){var h=a.lineString([t.coordinates[l],t.coordinates[l+1]]);a.booleanDisjoint(h,i)||u.push(t.coordinates[l],t.coordinates[l+1])}s=a.lineString(u),s=a.cleanCoords(s);for(var d=a.lineSplit(o,s),p=a.lineSplit(s,o),g=[],m=new c.default({coordinates:[e.coordinates[0]],spatialReference:r}),v=0;v<p.features.length;v++){var _=new f.default({coordinates:p.features[v].geometry.coordinates,spatialReference:r});x.contains(m,_)&&g.push(p.features[v])}d.features=d.features.concat(g);for(var S=0;S<d.features.length;S++)for(var b=0;b<d.features[S].geometry.coordinates.length;b++)d.features[S].geometry.coordinates[b][0]=d.features[S].geometry.coordinates[b][0].toFixed(7)/1,d.features[S].geometry.coordinates[b][1]=d.features[S].geometry.coordinates[b][1].toFixed(7)/1;for(var w=a.polygonize(d),E=0;E<w.features.length;E++){var T=new c.default({coordinates:w.features[E].geometry.coordinates,spatialReference:r});n.push(T)}if(e.coordinates.length>1)for(var I=0;I<n.length;I++)for(var M=1;M<e.coordinates.length;M++){var k=new c.default({coordinates:[e.coordinates[M]],spatialReference:r}),P=a.polygon(k.coordinates),L=a.polygon(n[I].coordinates);a.booleanDisjoint(P,L)||(n[I]=x.difference(n[I],k))}for(var O=[],C=0;C<n.length;C++)if(n[C].type===y.default.multiPolygon)for(var N=0;N<n[C].coordinates.length;N++)O.push(new c.default({coordinates:n[C].coordinates[N],spatialReference:r}));else O.push(n[C]);return O},x._coordinateToWGS84=function(e){var t=e[0]/20037508.342789244*180,r=e[1]/20037508.342789244*180;return[t.toFixed(7)/1,r.toFixed(7)/1]},x._coordinateToOrigin=function(e){return[20037508.342789244*e[0]/180,20037508.342789244*e[1]/180]},x._geometryToWGS84=function(e){var t=void 0;switch(e.type){case y.default.polygon:t=c.default.fromJSON(e.toJSON());for(var r=0;r<t.coordinates.length;r++)for(var n=0;n<t.coordinates[r].length;n++)t.coordinates[r][n]=x._coordinateToWGS84(t.coordinates[r][n]);break;case y.default.multiPolygon:t=h.default.fromJSON(e.toJSON());for(var i=0;i<t.coordinates.length;i++)for(var o=0;o<t.coordinates[i].length;o++)for(var a=0;a<t.coordinates[i][o].length;a++)t.coordinates[i][o][a]=x._coordinateToWGS84(t.coordinates[i][o][a]);break;case y.default.lineString:t=f.default.fromJSON(e.toJSON());for(var s=0;s<t.coordinates.length;s++)t.coordinates[s]=x._coordinateToWGS84(t.coordinates[s])}return t},x._geometryToOrigin=function(e){var t=void 0;switch(e.type){case y.default.polygon:t=c.default.fromJSON(e.toJSON());for(var r=0;r<t.coordinates.length;r++)for(var n=0;n<t.coordinates[r].length;n++)t.coordinates[r][n]=x._coordinateToOrigin(t.coordinates[r][n]);break;case y.default.lineString:t=f.default.fromJSON(e.toJSON());for(var i=0;i<t.coordinates.length;i++)t.coordinates[i]=x._coordinateToOrigin(t.coordinates[i])}return t},x.isSimple=function(e){(0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),e instanceof f.default||e instanceof S.default||e instanceof c.default||e instanceof h.default||s.Log.error("geometry为不支持的类型!");var t=!0;switch(e.type){case y.default.lineString:t=x._lineIsSimple(e);break;case y.default.multiLineString:t=x._multiLineIsSimple(e);break;case y.default.polygon:t=x._polygonIsSimple(e);break;case y.default.multiPolygon:t=x._multiPolygonIsSimple(e)}return t},x._lineIsSimple=function(e){var t=e.spatialReference,r=!0;if(e.coordinates.length>2){for(var n=[],i=0;i<e.coordinates.length-1;i++)n.push(new f.default({coordinates:[e.coordinates[i],e.coordinates[i+1]],spatialReference:t}));for(var o=0;o<n.length-1;o++)for(var s=o+1;s<n.length;s++)if(x.contains(n[o],n[s])||x.contains(n[s],n[o])){r=!1;break}for(var u=0;u<n.length-2;u++)for(var l=u+2;l<n.length;l++)if(x.intersects(n[u],n[l])){var c=a.multiPoint([n[u].coordinates[0],n[u].coordinates[1],n[l].coordinates[0],n[l].coordinates[1]]);if(3!==(c=a.cleanCoords(c)).geometry.coordinates.length){r=!1;break}r=!0}for(var h=0;h<e.coordinates.length;h++){for(var d=!1,p=h+1;p<e.coordinates.length;p++)if(x._equalPoints(e.coordinates[h],e.coordinates[p])){d=!0;break}if(d){r=!1;break}}return r}return 2===e.coordinates.length?x._equalPoints(e.coordinates[0],e.coordinates[1]):r},x._equalPoints=function(e,t){return 2===e.length&&t.length>=2?e[0]===t[0]&&e[1]===t[1]:3===e.length&&t.length>=3&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},x._getLinesFromPolygon=function(e){for(var t=[],r=0;r<e.coordinates.length;r++)for(var n=0;n<e.coordinates[r].length-1;n++)t.push(new f.default({coordinates:[e.coordinates[r][n],e.coordinates[r][n+1]]}));return t},x._multiLineIsSimple=function(e){var t=e.spatialReference,r=!0;if(1===e.coordinates.length){var n=new f.default({coordinates:e.coordinates[0],spatialReference:t});r=x._lineIsSimple(n)}else{for(var i=0;i<e.coordinates.length;i++){var o=new f.default({coordinates:e.coordinates[i],spatialReference:t});if(x._lineIsSimple(o)){r=!1;break}}if(r)for(var a=0;a<e.coordinates.length-1;a++){var s=new f.default({coordinates:e.coordinates[a],spatialReference:t}),u=new f.default({coordinates:e.coordinates[a+1],spatialReference:t});if(x.intersects(s,u)){r=!1;break}}}return r},x._polygonIsSimple=function(e){var t=e.spatialReference,r=[],n=[];e.coordinates.forEach(function(e){r.push(e.slice(0,e.length-1));for(var t=[],i=1;i<e.length-3;i++)t.push([e[i],e[i+1]]);t.push([e[e.length-2],e[e.length-1]]),n.push(t)});for(var i=new S.default({coordinates:r,spatialReference:t}),o=x._multiLineIsSimple(i),a=!1,s=0;s<n.length;s++){for(var u=new f.default({coordinates:n[s][n[s].length-1],spatialReference:t}),l=0;l<n[s].length-1;l++)if(a=x.intersects(new f.default({coordinates:n[s][l],spatialReference:t}),u)){o=!1;break}if(a)break}return o},x._multiPolygonIsSimple=function(e){var t=e.spatialReference,r=[];e.coordinates.forEach(function(e){e.forEach(function(e){r.push(e.slice(0,e.length-1))})});var n=new S.default({coordinates:r,spatialReference:t});return x._multiLineIsSimple(n)},x.getPositionsFromArc=function(e){var t=[(e=(0,s.defaultValue)(e,{})).point1,e.point2,e.point3],r=x.getCenter(t[0],t[1],t[2]);return x._tranArcToPath({center:r,pointBegan:t[0],pointEnd:t[2],numberOfPoints:e.numberOfPoints})},x._tranArcToPath=function(e){var t=(0,s.defaultValue)(e.center,void 0);t=JSON.parse((0,n.default)(t));var r=(0,s.defaultValue)(e.pointBegan,void 0);r=JSON.parse((0,n.default)(r));var i=(0,s.defaultValue)(e.pointEnd,void 0);i=JSON.parse((0,n.default)(i));var o=(0,s.defaultValue)(e.numberOfPoints,360),a=(0,s.defaultValue)(e.spatialReference,new p.default({wkid:4326}));a=p.default.fromJSON(a);var u=new f.default({coordinates:[t,r]}),l=x.planarLength(u),c=x.getAngleFromPoints(r,t,[t[0]+10,t[1]]),h=x.getAngleFromPoints(i,t,[t[0]+10,t[1]])-c;o*=h/360,o=Math.abs(o);var d=Math.PI*(h/180)/o;c=Math.PI*(c/180);for(var y=[r],g=0;g<o-1;g++){c+=d;var m=[t[0]+l*Math.cos(c),t[1]+l*Math.sin(c)];y.push(m)}return y.push(i),this.hasZ&&y.map(function(e){return[e[0],e[1],t[2]]}),y},x.getCenter=function(e,t,r,n){var i=e[0],o=t[0],a=r[0],s=e[1],u=t[1],l=r[1],c=0*s-0*u-0*s+0*l+0*u-0*l,f=-(0*i-0*o-0*i+0*a+0*o-0*a),h=i*u-o*s-i*l+a*s+o*l-a*u,d=-(i*u*0-i*l*0-o*s*0+o*l*0+a*s*0-a*u*0),p=2*(o-i),y=2*(u-s),g=i*i+s*s+0-o*o-u*u-0,m=2*(a-i),v=2*(l-s),_=i*i+s*s+0-a*a-l*l-0,S=-(0*f*_-0*f*g-y*h*_+0*y*d+v*h*g-0*v*d)/(c*y*0-c*v*0-p*f*0+p*v*h+m*f*0-m*y*h),b=(0*c*_-0*c*g-p*h*_+0*p*d+m*h*g-0*m*d)/(c*y*0-c*v*0-p*f*0+p*v*h+m*f*0-m*y*h);return n?[S,b,e[2]]:[S,b]},x._getArcFromPath=function(e){e=(0,s.defaultValue)(e,{});var t=(0,s.defaultValue)(e.coordinates,[]),r=(0,s.defaultValue)(e.arcInfo,[]),n=(0,s.defaultValue)(e.numberOfPoints,360),i=[],o=t.slice(0,r[0].centerPointIndex-1);i=i.concat(o);var a=Number(r[0].centerPointIndex),u=[t[a-1],t[a],t[a+1]],l=x.getPositionsFromArc({point1:u[0],point2:u[1],point3:u[2],numberOfPoints:n});i=i.concat(l);for(var c=1;c<r.length;c++)if(r[c].hasOwnProperty("centerPointIndex")){var f=t.slice(r[c-1].centerPointIndex+2,r[c].centerPointIndex+1);i=i.concat(f);var h=Number(r[c].centerPointIndex),d=[t[h-1],t[h],t[h+1]],p=x.getPositionsFromArc({point1:d[0],point2:d[1],point3:d[2],numberOfPoints:n});i=i.concat(p)}var y=t.slice(r[r.length-1].centerPointIndex+2,t.length);return i.concat(y)},x._getArcInfos=function(e,t,r){var n={};switch(r){case y.default.multiLineString:case y.default.polygon:for(var i=0;i<t.length;i++){n[i]=[];for(var o=0;o<e.length;o++)(r===y.default.multiLineString?e[o].lineIndex:e[o].ringIndex)===i&&n[i].push(e[o]);n[i].sort(function(e,t){return Number(e.centerPointIndex)-Number(t.centerPointIndex)})}return n;case y.default.multiPolygon:for(var a=0;a<t.length;a++){n[a]=[];for(var s=0;s<e.length;s++)e[s].polygonIndex===a&&n[a].push(e[s]);n[a]=x._getArcInfos(n[a],t[a],y.default.polygon)}return n;default:return n}},x.getAngleFromPoints=function(e,t,r){var n=e[0]-t[0],i=e[1]-t[1],o=r[0]-t[0],a=r[1]-t[1],s=(n*o+i*a)/(Math.sqrt(n*n+i*i)*Math.sqrt(o*o+a*a)),u=180*Math.acos(s)/Math.PI;return 0===Math.abs(u)||180===Math.abs(u)?Math.abs(u):e[1]<r[1]?-1*u:u},x.getArcFromGeometry=function(e){e=(0,s.defaultValue)(e,{});var t=(0,s.defaultValue)(e.geometry,void 0),r=(0,s.defaultValue)(e.numberOfPoints,360),n=(0,s.defaultValue)(e.arcInfo,[]);if(!t)return t;if(!(t instanceof l.default))return s.Log.error("geometry不是基础几何类型!"),t;if(!n)return t;if(!(n instanceof Array))return t;if(n.length<1)return t;var o=t.coordinates,a=t.spatialReference,u=void 0,d=void 0;switch(t.type){case y.default.lineString:return u=x._getArcFromPath({coordinates:o,arcInfo:n,numberOfPoints:r}),new f.default({coordinates:u,spatialReference:p.default.fromJSON(t.spatialReference)});case y.default.multiLineString:return d=x._getArcInfos(n,o,y.default.multiLineString),u=[],(0,i.default)(d).forEach(function(e){u.push(x._getArcFromPath({coordinates:o[e],arcInfo:d[e],numberOfPoints:r}))}),new S.default({coordinates:u,spatialReference:a});case y.default.polygon:return d=x._getArcInfos(n,o,y.default.polygon),u=[],(0,i.default)(d).forEach(function(e){var t=o[e].slice(0,o[e].length),n=x._getArcFromPath({coordinates:t,arcInfo:d[e],numberOfPoints:r});n.push(n[0]),u.push(n)}),new c.default({coordinates:u,spatialReference:a});case y.default.multiPolygon:d=x._getArcInfos(n,o,y.default.multiPolygon),u=[];for(var g=function(e){var t=[];(0,i.default)(d[e]).forEach(function(n){var i=o[e][n].slice(0,o[e][n].length),a=x._getArcFromPath({coordinates:i,arcInfo:d[e][n],numberOfPoints:r});a.push(a[0]),t.push(a)}),u.push(t)},m=0;m<o.length;m++)g(m);return new h.default({coordinates:u,spatialReference:a});default:return t}},x._getTurfMultiLineStringFromLines=function(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].coordinates);return a.multiLineString(t)},x._initIntersects=function(e){for(var t={},r=0;r<e.length;r++)e[r].id=r,t[r]={intersectPoints:[],intersectLines:[]};return t},x._pointOnLineEndPoint=function(e,t){return e.coordinates[0]===t.coordinates[0][0]&&e.coordinates[1]===t.coordinates[0][1]||e.coordinates[0]===t.coordinates[1][0]&&e.coordinates[1]===t.coordinates[1][1]},x._lineEqualLine=function(e,t){return e.coordinates[0][0]===t.coordinates[0][0]&&e.coordinates[0][1]===t.coordinates[0][1]&&e.coordinates[1][0]===t.coordinates[1][0]&&e.coordinates[1][1]===t.coordinates[1][1]||e.coordinates[0][0]===t.coordinates[1][0]&&e.coordinates[0][1]===t.coordinates[1][1]&&e.coordinates[1][0]===t.coordinates[0][0]&&e.coordinates[1][1]===t.coordinates[0][1]},x._lineEqualLineTurf=function(e,t){return e.geometry.coordinates[0][0]===t.geometry.coordinates[0][0]&&e.geometry.coordinates[0][1]===t.geometry.coordinates[0][1]&&e.geometry.coordinates[1][0]===t.geometry.coordinates[1][0]&&e.geometry.coordinates[1][1]===t.geometry.coordinates[1][1]},x._singRingSimplify=function(e){for(var t=x._getLinesFromPolygon(e),r=x._initIntersects(t),n=0;n<t.length-1;n++)for(var i=n+1;i<t.length;i++){var o=x.intersect(t[n],t[i]);o.point&&(x._pointOnLineEndPoint(o.point,t[n])||x._pointOnLineEndPoint(o.point,t[i])||(r[n].intersectPoints.push(o.point),r[i].intersectPoints.push(o.point))),o.lineString&&(r[n].intersectLines.push(o.lineString),r[i].intersectLines.push(o.lineString))}for(var s=[],u=0;u<t.length;u++){for(var l=!1,c=0;c<r[u].intersectLines.length;c++){if(x._lineEqualLine(t[u],r[u].intersectLines[c])){l=!0;break}t[u].coordinates[0][0]===r[u].intersectLines[c].coordinates[0][0]&&t[u].coordinates[0][1]===r[u].intersectLines[c].coordinates[0][1]||r[u].intersectPoints.push(new m.default({coordinates:r[u].intersectLines[c].coordinates[0]}),new m.default({coordinates:r[u].intersectLines[c].coordinates[0]})),t[u].coordinates[1][0]===r[u].intersectLines[c].coordinates[1][0]&&t[u].coordinates[1][1]===r[u].intersectLines[c].coordinates[1][1]||r[u].intersectPoints.push(new m.default({coordinates:r[u].intersectLines[c].coordinates[1]}),new m.default({coordinates:r[u].intersectLines[c].coordinates[1]}))}if(!l){r[u].intersectPoints.sort(function(e,t){return e.coordinates[0]-t.coordinates[0]}),r[u].intersectPoints.sort(function(e,t){return t.coordinates[1]-e.coordinates[1]}),r[u].intersectPoints.splice(0,0,new m.default({coordinates:t[u].coordinates[0]})),r[u].intersectPoints.push(new m.default({coordinates:t[u].coordinates[1]}));for(var f=x.union(r[u].intersectPoints),h=0;h<f.coordinates.length-1;h++)s.push(a.lineString([f.coordinates[h],f.coordinates[h+1]]))}}for(var d=0;d<s.length;d++)for(var p=d+1;p<s.length;p++)x._lineEqualLineTurf(s[d],s[p])&&(s.splice(p,1),p--);var y=a.featureCollection(s);return a.polygonize(y)},x._getPolygonsFromRings=function(e,t){for(var r=0;r<e.length;r++)e[r].isOuter=!0,e[r].innerPolygons=[];1===e.length&&t.push(e[0]);for(var n=0;n<e.length-1;n++)if(e[n].isOuter){t.push(e[n]);for(var i=n+1;i<e.length;i++)x.contains(e[n],e[i])&&(e[i].isOuter=!1,e[n].innerPolygons.push(e[i]))}e.length>1&&e[e.length-1].isOuter&&t.push(e[e.length-1]);for(var o=[],a=0;a<t.length;a++){for(var s=[],u=0;u<t[a].innerPolygons.length-1;u++)for(var l=u+1;l<t[a].innerPolygons.length;l++)x.contains(t[a].innerPolygons[u],t[a].innerPolygons[l])&&!t[a].innerPolygons[l].isOuter&&(t[a].innerPolygons[l].isOuter=!0,t[a].innerPolygons[l].innerPolygons=[],s.push(t[a].innerPolygons[l]));for(var c=0;c<t[a].innerPolygons.length;c++)t[a].innerPolygons[c].isOuter&&(t[a].innerPolygons.splice(c,1),c--);if(s.length>0){var f=x._getPolygonsFromRings(s,[]);o=o.concat(f)}}return t.concat(o)},x._singlePolygonSimplify=function(e){for(var t={largerInnerPolygon:[],intersectInnerPolygon:[],smallInnerPolygon:[]},r=new c.default({coordinates:[e.coordinates[0]],spatialReference:p.default.fromJSON(e.spatialReference)}),i=[],o=1;o<e.coordinates.length;o++){var a=new c.default({coordinates:[e.coordinates[o]],spatialReference:p.default.fromJSON(e.spatialReference)});i.push(a)}for(var s=0;s<i.length-1;s++)for(var u=s+1;u<i.length;u++){var f=x.intersect(i[s],i[u]);(f instanceof c.default||f instanceof h.default)&&(i[s]=x.difference(i[s],f),i[u]=x.difference(i[u],f))}for(var d=0;d<i.length;d++){var y=i[d];if(x.contains(r,y)){var g=x.difference(r,y),m=JSON.parse((0,n.default)(r.coordinates[0])),v=JSON.parse((0,n.default)(g.coordinates[0]));m.sort(function(e,t){return e[0]-t[0]}),m.sort(function(e,t){return e[1]-t[1]}),v.sort(function(e,t){return e[0]-t[0]}),v.sort(function(e,t){return e[1]-t[1]}),(0,n.default)(m)===(0,n.default)(v)?t.smallInnerPolygon.push(y):t.intersectInnerPolygon.push(y)}else if(x.contains(y,r)){var _=r.toJSON(),S=y.toJSON();r=l.default.fromJSON(S),y=l.default.fromJSON(_),t.smallInnerPolygon.push(y)}else x.intersects(r,y)?t.intersectInnerPolygon.push(y):x.disjoint(r,y)&&t.largerInnerPolygon.push(y)}for(var b=[],w=0;w<t.intersectInnerPolygon.length;w++){var E=x.intersect(r,t.intersectInnerPolygon[w]);if(E instanceof c.default||E instanceof h.default){r=x.difference(r,E);var T=x.difference(t.intersectInnerPolygon[w],E);b.push(T)}}for(var I=x._singRingSimplify(r),M=0;M<I.features.length;M++)b.push(new c.default({coordinates:I.features[M].geometry.coordinates}));if(t.largerInnerPolygon.length>0)for(var k=0;k<t.largerInnerPolygon.length;k++)b.push(t.largerInnerPolygon[k]);for(var P=[],L=0;L<t.smallInnerPolygon.length;L++)for(var O=x._singRingSimplify(t.smallInnerPolygon[L]),C=0;C<O.features.length;C++){var N=new c.default({coordinates:O.features[C].geometry.coordinates});N.isPicked=!1,P.push(N)}!(P=x.union(P))||P instanceof Array||(P=[P]);for(var R=0;R<b.length;R++)for(var G=0;G<P.length;G++)!P[G].isPicked&&b[R]&&P[G]&&x.contains(b[R],P[G])&&(b[R].coordinates.push(P[G].coordinates[0]),P[G].isPicked=!0);return b},x.simplify=function(e){if((0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),e.type===y.default.point||e.type===y.default.multiPoint||e.type===y.default.extent||e.type===y.default.circle)return e;switch(e.type){case y.default.polygon:case y.default.multiPolygon:var t=[],r=void 0;if(e.type===y.default.polygon){r=JSON.parse((0,n.default)(e.coordinates));for(var i=0;i<r.length;i++)t.push(new c.default({coordinates:[r[i]],spatialReference:p.default.fromJSON(e.spatialReference)}))}else for(var o=JSON.parse((0,n.default)(e.coordinates)),a=0;a<o.length;a++)for(var u=0;u<o[a].length;u++)t.push(new c.default({coordinates:[o[a][u]],spatialReference:p.default.fromJSON(e.spatialReference)}));for(var l=0;l<t.length;l++)t[l].area=x.planarArea(t[l]);t.sort(function(e,t){return t.area-e.area});for(var f=x._getPolygonsFromRings(t,[]),d=0;d<f.length-1;d++)for(var g=d+1;g<f.length;g++)if(!x.contains(f[d],f[g])){var m=x.intersect(f[d],f[g]);m&&(f[d].coordinates=x.difference(f[d],m).coordinates,f[g].coordinates=x.difference(f[g],m).coordinates)}for(var v=[],_=0;_<f.length;_++){for(var S=0;S<f[_].innerPolygons.length;S++)f[_].coordinates.push(f[_].innerPolygons[S].coordinates[0]);var b=x._singlePolygonSimplify(f[_]);v=v.concat(b)}if(1===v.length)return v[0];if(v.length>1){for(var w=[],E=0;E<v.length;E++)v[E]&&w.push(v[E].coordinates);return new h.default({coordinates:w,spatialReference:p.default.fromJSON(e.spatialReference)})}break;case y.default.lineString:}},x.getEllipseCoordinates=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:50;if(!e||!e.coordinates||void 0===t||void 0===r)return[];for(var i=[],o=e.coordinates,a=0;a<=n;a++){var s=a/n*2*Math.PI,u=o[0]+t*Math.cos(s),l=o[1]+r*Math.sin(s);i.push([u,l])}return i.push(i[0]),i},x.getCenterPoint=function(e){return x._getCenterOrCentroid(e,"center")},x.getCentroid=function(e){return x._getCenterOrCentroid(e,"centroid")},x._getCenterOrCentroid=function(e,t){var r=e.type,n=e.spatialReference;if(r===y.default.circle)return new m.default({coordinates:[e.center[0],e.center[1],0],spatialReference:n});if(r===y.default.extent)return new m.default({coordinates:[(e.xmin+e.xmax)/2,(e.ymin+e.ymax)/2,0],spatialReference:n});var i=void 0,o=void 0;switch(r){case y.default.point:return m.default.fromJSON(e.toJSON());case y.default.multiPoint:i=e.coordinates,o=a.points(e.coordinates);case y.default.lineString:i=e.coordinates,o=a.lineString(e.coordinates);break;case y.default.polygon:i=e.coordinates[0],o=a.polygon(e.coordinates);break;default:return null}var s;if(s="centroid"===t?a.centroid(o):a.center(o),this.hasZ){for(var u=0,l=0,c=0;c<i.length;c++){u+=i[c].length;for(var f=0;f<i[c].length;f++)l+=i[c][f][2]}return l/=u,new m.default({coordinates:[s.geometry.coordinates[0],s.geometry.coordinates[1],l],spatialReference:n})}return new m.default({coordinates:[s.geometry.coordinates[0],s.geometry.coordinates[1]],spatialReference:n})},x.getLabelPoint=function(e){if(!(e instanceof l.default))return null;var t=e.clone(),r=t.type,n=t.spatialReference;switch(r){case y.default.circle:return[new m.default({coordinates:[t.center[0],t.center[1],0],spatialReference:n})];case y.default.extent:return[new m.default({coordinates:[(t.xmin+t.xmax)/2,(t.ymin+t.ymax)/2,0],spatialReference:n})];case y.default.polygon:return x._getPolygonLabel(t);default:return null}},x._getPolygonLabel=function(e){var t=e.coordinates,r=e.extent,n=(r.ymin+r.ymax)/2,i=[],o={x:void 0,x2:void 0,hasTwoXCoordinate:!1},a=!1,s=void 0;do{s=[];for(var u=0;u<t.length;u++)for(var l=t[u],c=1;c<l.length;c++)Math.min(l[c-1][1],l[c][1])<=n&&Math.max(l[c-1][1],l[c][1])>n&&(l[c][1]===n?((o={x:void 0,x2:void 0,hasTwoXCoordinate:!1}).x=l[c][0],o.hasTwoXCoordinate=!1,c<l.length-1&&l[c+1][1]===n&&(o.hasTwoXCoordinate=!0,o.x2=l[c+1][0]),i.push(o)):l[c-1][1]===n?((o={x:void 0,x2:void 0,hasTwoXCoordinate:!1}).x=l[c-1][0],o.hasTwoXCoordinate=!1,c>1&&l[c-2]===n&&(o.hasTwoXCoordinate=!0,o.x2=l[c-2][0]),i.push(o)):((o={x:void 0,x2:void 0,hasTwoXCoordinate:!1}).x=l[c][0]-(l[c][0]-l[c-1][0])/(l[c][1]-l[c-1][1])*(l[c][1]-n),o.hasTwoXCoordinate=!1,i.push(o)));if(i.length>=2){i.sort(function(e,t){return e.x>t.x});for(var f=0,h=0;h<i.length-1;h+=2){var d=i[h].x,y=i[h+1].x;d!==y&&Math.abs(d-y)>f&&(f=Math.abs(d-y),i[h].hasTwoXCoordinate&&(d=Math.max(d,i[h].x2)),i[h+1].hasTwoXCoordinate&&(y=Math.min(y,i[h+1].x2)),s[0]=(d+y)/2,s[1]=n,a=!0)}a&&(x.contains(e,new m.default({coordinates:[s[0],s[1]],spatialReference:p.default.fromJSON(e.spatialReference)}))||(a=!1,s=[]))}else a=!0;a||(n+=(r.ymax-r.ymin)/101)}while(!a);return 0===s.length?null:new m.default({coordinates:[s[0],s[1],0],spatialReference:p.default.fromJSON(e.spatialReference)})},t.default=x},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(0)),i=u(r(2)),o=r(1),a=u(r(115)),s=r(9);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){(0,n.default)(this,e),t=t||{},this.dpi=(0,o.defaultValue)(t.dpi,-1),this.format=(0,o.defaultValue)(t.format,"png"),this.origin=t.origin?s.Point.fromJSON(t.origin):void 0;for(var r=[],i=(0,o.defaultValue)(t.lods,[]),u=0;u<i.length;u++){var l=a.default.fromJSON(i[u]);(0,o.defined)(l.levelValue)||(l.levelValue=String(l.level)),r.push(l)}this.lods=r,this.size=Array.isArray(t.size)?[t.size[0],t.size[1]]:null,this.spatialReference=t.spatialReference?s.SpatialReference.fromJSON(t.spatialReference):null}return(0,i.default)(e,[{key:"toJSON",value:function(){return{dpi:this.dpi,format:this.format,origin:this.origin?this.origin.toJSON():void 0,lods:this.lods.map(function(e){return e.toJSON()}),size:this.size?[this.size[0],this.size[1]]:void 0,spatialReference:this.spatialReference&&this.spatialReference.toJSON()}}},{key:"scaleToZoom",value:function(e){return 0}},{key:"zoomToScale",value:function(e){return 0}},{key:"getTileSize",value:function(){return Array.isArray(this.size)&&this.size.length>=2?Math.max(this.size[0],this.size[1]):256}},{key:"clone",value:function(){return e.fromJSON(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=m(r(10)),i=m(r(3)),o=m(r(0)),a=m(r(2)),s=m(r(4)),u=m(r(7)),l=m(r(5)),c=r(8),f=r(9),h=m(r(52)),d=m(r(51)),p=m(r(45)),y=r(1),g=r(85);function m(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r._initEvent(),r.type="sketchPolygonDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r.vertexNum=0,r._tipText=r._getTipTextObject(),r._editOption=r._getEditOption(),r}return(0,l.default)(t,e),(0,a.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("vertexScale",this._processEvent),this.on("midVertexScale",this._processEvent),this.on("vertexMove",this._processEvent),this.on("midVertexAdd",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=c.SketchEditMode.drawing,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,i=null,o=[],a=[];this.vertexNum=0;var s=null;this.cursorStyle=this.view.cursor,(0,y.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var u=this._getInteractiveDom(),l=this.extensionOptions&&this.extensionOptions.vertexNumber?this.extensionOptions.vertexNumber:null;this._setInitSnap(),this._fireStartDrawEvent();var h=function r(n){if(n&&n.x&&n.y){e._stopInitSnap(),clearTimeout(null);var o={x:n.x,y:n.y};e._editMode=c.SketchEditMode.drawing;var u;u=e._snapPoint?e._snapPoint:e.view.toMap({x:o.x,y:o.y});var h=e.vertexNum+1;if(1===h)a=[u.coordinates],(i=e._getFeature()).geometry.coordinates=[[a[0],a[0],a[0],a[0]]];else if(2===h){var p=i.geometry.coordinates[0][0];if(p&&p[0]===u.coordinates[0]&&p[1]===u.coordinates[1])return y.Log.info("相邻两顶点重复!");a=[i.geometry.coordinates[0][0],i.geometry.coordinates[0][1]]}else{var g=(a=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2))[a.length-1];if(g&&g[0]===u.coordinates[0]&&g[1]===u.coordinates[1])return y.Log.info("相邻两顶点重复!");if(a.push(u.coordinates),e._sketchEditor.isSimple){var m=new f.Polygon({coordinates:[a.concat([a[0]])],spatialReference:e._spatialReference,extensionOptions:{arcType:e.arcType}});if(!f.GeometryEngine.isSimple(m))return e._fireUnsimpleDraw(),y.Log.info("该坐标构成的几何不符合拓扑规范!")}}if(e.vertexNum=h,l&&h>=l)e.view.off(c.ViewEventType.immediateClick,r);else{e.sketchStage.entityGraphic=i;var v=new d.default({view:e.view,layer:e._sketchInnerLayer,sketchInnerLayer:e._sketchInnerLayer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});v.addFeature(u,void 0,void 0,e._sketchInnerLayer),e._drawTools.push(v);var _=v.sketchStage.entityGraphic;e.sketchStage.vertexGraphics.push(_),i&&(t=!0),s="click",e.fire("drawn-vertex",{geometry:v.sketchStage.entityGraphic.geometry,feature:v.sketchStage.entityGraphic},self),e._fireDrawVertexEvent(i),e.undoRedoManager&&e.undoRedoManager.addProcess("add-vertex",e.sketchStage,e._editMode)}}},p=!0,g=function(c){if(c&&c.x&&c.y&&t&&!r){clearTimeout(null),r=!0,i=e.sketchStage.entityGraphic,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var f={x:c.x,y:c.y};o[o.length-1]=f;var h=e.view.toMap({x:f.x,y:f.y}),d=l&&e.vertexNum===l?e.vertexNum-1:e.vertexNum;1===d?a=[i.geometry.coordinates[0][0]]:2===d?(i.geometry.coordinates[0][2]=h.coordinates,a=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2)):a=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2),1===e.vertexNum?e._snapPoint=e.getSnapGraphics(h,a):e.vertexNum>1&&(e._snapPoint=e.getSnapGraphics(h,a)),e._snapPoint&&(h=e._snapPoint),e._currentMovePoint=h,1===d?(i.geometry.coordinates[0][1]=h.coordinates,i.geometry.coordinates[0][2]=h.coordinates):2===d?i.geometry.coordinates[0][2]=h.coordinates:"click"===s?i.geometry.coordinates[0].splice(i.geometry.coordinates[0].length-1,0,h.coordinates):"move"===s&&i.geometry.coordinates[0].splice(i.geometry.coordinates[0].length-2,1,h.coordinates),e.sketchStage.entityGraphic=i,i.geometry.coordinates=[JSON.parse((0,n.default)(i.geometry.coordinates[0]))],p&&(e._addFeatureToLayer(i,e.layer),p=!1),r=!1,s="move";var y=e._getInteractiveDom();u=u.concat(y),e._removeInteractiveStyle(y),e._fireChangeCursorEvent(i)}},m=function(r){return clearTimeout(null),clearTimeout(null),t?(i=e.sketchStage.entityGraphic)&&e._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(i.geometry)?(e._fireUnsimpleDraw(),y.Log.info("该坐标构成的几何不符合拓扑规范!")):e.vertexNum<3&&e.sketchStage.entityGraphic?y.Log.info("区几何顶点少于三个,不符合规范!"):(a=[],o=[],t=!1,e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=c.SketchEditMode.none,s="doubleClick",e.view.cursor=e.cursorStyle,e._addInteractiveStyle(u),e.fire("drawn",{geometry:i.geometry,feature:i},self),e._fireStopDrawEvent(i),e.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.vertexNum=0,e.sketchStage.vertexGraphics=[],e._currentMovePoint=void 0,e.undoRedoManager._initDrawProcess(),r.native&&r.native.preventDefault&&r.native.preventDefault(),r.innerViewerEvent&&r.innerViewerEvent.preventDefault&&r.innerViewerEvent.preventDefault(),e.view._mapActionControl("double-click-zoom",!0),void e.view._mapActionControl("video-map-active",!1)):(i=null,a=[],void(o=[]))};this._drawEventHandlers.push(h,g,m),this.view.on(c.ViewEventType.immediateClick,h),this.view.on(c.ViewEventType.pointerMove,g),this.view.on(c.ViewEventType.doubleClick,m)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.fillStyle?t.fillStyle:this.sketchStyle._fillStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.fillStyle?t.fillStyle:this.sketchStyle._fillStyle;var o=new c.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[0,0],[0,0],[0,0]]);var t=new f.Polygon({coordinates:[e],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),r=this.sketchStyle.fillStyle.clone();r.id=(0,y.getGUID)();var n=new c.Feature({geometry:t,symbol:r,elevationInfo:this.elevationInfo});return n.isShowArea=this.sketchStyle.isShowArea,n.isShowArea&&(n._textStyle=this.sketchStyle.textStyle),n}},{key:"selectFeature",value:function(e){(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"selectFeature",this).call(this,e)}},{key:"selectFeatureVertex",value:function(e){var t=this;!this._parent&&this._isAddTip&&this._updateTipText((0,g.getTipTextByEditOption)("edit-vertex",this._tipText,this._editOption),this._sketchInnerLayer),this._clearEditGraphics(1);var r=[],n=[];e.geometry.coordinates[0].forEach(function(i,o){if(o<e.geometry.coordinates[0].length-1){var a=new d.default({view:t.view,layer:t._sketchInnerLayer,sketchInnerLayer:t._sketchInnerLayer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t}),s=new f.Point({coordinates:i,spatialReference:t._spatialReference});t._drawTools.push(a),a.addFeature(s,void 0,{vertexIndex:o},t._sketchInnerLayer),r.push(a),t.sketchStage.vertexGraphics.push(a.sketchStage.entityGraphic)}if(o>0){var u=new d.default({view:t.view,layer:t._sketchInnerLayer,sketchInnerLayer:t._sketchInnerLayer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});n.push(u);var l,c=e.geometry.coordinates[0][o-1],h=t._getCenterCoordinate(i,c);l=new f.Point({coordinates:h,spatialReference:t._spatialReference}),t._drawTools.push(u),u.addFeature(l,void 0,{vertexIndex:o-1,type:"midVertex"},t._sketchInnerLayer),t.sketchStage.midVertexGraphics.push(u.sketchStage.entityGraphic)}});var i=r.concat(n);this._otherDrawTools=this._otherDrawTools?this._otherDrawTools.concat(i):i,this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage,this._editMode)}},{key:"startPanGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var i=null;i=t.mapPoint;var o=!0,a=setTimeout(function(){o=!1,r._parent&&r._fireStartPanEvent(r._parent.sketchStage.entityGraphic,r._parent)},200),s=this._getEditOptionMode(this._editOption);this._parent&&this._parent._mapClickEvent&&s.editVertex&&this.view.off(c.ViewEventType.immediateClick,this._parent._mapClickEvent);var u=function(t){if(r._editOption.graphic.move&&t&&t.x&&t.y&&!n&&r._startPan&&!r._editMode!==c.SketchEditMode.editGraphic&&!o){clearTimeout(null),n=!0;var a={x:t.x,y:t.y},s=r.view.toMap({x:a.x,y:a.y}),u=s.coordinates[0]-i.coordinates[0],l=s.coordinates[1]-i.coordinates[1];if(0!==u||0!==l){var h=[];e.geometry.coordinates[0].forEach(function(e){h.push(r.getPanCoordinates(e,u,l))});var d=new f.Polygon({coordinates:[h],spatialReference:r._spatialReference,extensionOptions:{arcType:r.arcType}});i=s,r._dispatchEvent("pan",{deltaPosition:{x:u,y:l},extent:d.extent},r),r.updateFeature(d,e),n=!1,r._parent&&r._firePanningEvent(r._parent.sketchStage.entityGraphic,r._parent)}else n=!1}},l=function e(){if(!r._editMode!==c.SketchEditMode.editGraphic&&r._startPan){if(o&&r._parent&&r._parent._editMode===c.SketchEditMode.editGraphic&&"sketchPointDrawTool"!==r._parent.type&&r._parent.selectFeatureVertex)return r._parent._editMode=c.SketchEditMode.editVertex,clearTimeout(a),s.editVertex&&(r._parent.selectFeatureVertex(r._parent.sketchStage.entityGraphic),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(c.ViewEventType.immediateClick,r._parent._mapClickEvent)},0)),r._startPan=!1,r.view.off(c.ViewEventType.pointerMove,u),void r.view.off(c.ViewEventType.pointerUp,e);r._editMode=c.SketchEditMode.none,r._startPan=!1,r.view.off(c.ViewEventType.pointerMove,u),r.view.off(c.ViewEventType.pointerUp,e),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage,r._editMode),r._parent&&r._parent._mapClickEvent&&r.view.on(c.ViewEventType.immediateClick,r._parent._mapClickEvent),r._parent&&r._fireStopPanEvent(r._parent.sketchStage.entityGraphic,r._parent),setTimeout(function(){r.view._mapActionControl("drag-pan",!0)},0)}};this._hitTestEventHandlers.push(l),this.view.on(c.ViewEventType.pointerUp,l),this._hitTestEventHandlers.push(u),this.view.on(c.ViewEventType.pointerMove,u)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type?this._handlerMidVertexScaleEvent(e):"circleVertexScale"===e.type?this._handlerCircleVertexScaleEvent(e):"vertexMove"===e.type?this._handlerVertexMoveEvent(e):"midVertexAdd"===e.type&&this._handlerMidVertexAddEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this,r=[];this.sketchStage.entityGraphic.geometry.coordinates[0].forEach(function(n){r.push(t.getPanCoordinates(n,e.deltaPosition.x,e.deltaPosition.y))});var n=new f.Polygon({coordinates:[r],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});this.sketchStage.entityGraphic.geometry=n,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new f.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_handlerMidVertexScaleEvent",value:function(e){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new f.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_resetSelectBoxDirection",value:function(){var e=this,t=this.sketchStage.entityGraphic.geometry.extent;this.sketchStage.selectBoxVertexGraphics.forEach(function(r){r.attributes&&("ne"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymax]:"se"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymin]:"sw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymin]:"nw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymax]:"e"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]):"s"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymin],[t.xmin,t.ymin]):"w"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]):"n"===r.attributes.direction&&(r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymax],[t.xmax,t.ymax])))})}},{key:"_handlerCircleVertexScaleEvent",value:function(e){if(this._parent&&this._parent.sketchStage.entityGraphic){var t,r=this._parent.sketchStage.entityGraphic.geometry.extent,n=[[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax]];(t=new f.Polygon({coordinates:[[[0,0],[0,0],[0,0],[0,0]]],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}})).coordinates=[n],this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}))}}},{key:"_handlerVertexMoveEvent",value:function(e){this.sketchStage.currentVertexIndex=e.vertexIndex;var t=this.sketchStage.entityGraphic,r=t.geometry.coordinates[0],i=JSON.parse((0,n.default)(r));i[e.vertexIndex]=e.movePoint.coordinates,i.length-1===e.vertexIndex?i[0]=e.movePoint.coordinates:0===e.vertexIndex&&(i[t.geometry.coordinates[0].length-1]=e.movePoint.coordinates);var o=new f.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(o))return this._fireUnsimpleUpdate(),y.Log.info("该坐标构成的几何不符合拓扑规范!");if(t.geometry=o,this._otherDrawTools){var a=e.vertexIndex,s=0===a?a-1+this.sketchStage.midVertexGraphics.length:a-1,u=a===this.sketchStage.midVertexGraphics.length-1?0:a+1,l=this.sketchStage.midVertexGraphics[a],c=this.sketchStage.midVertexGraphics[s],h=this.sketchStage.vertexGraphics[a],d=i[s],p=i[a],g=i[u];l.geometry.coordinates=this._getCenterCoordinate(p,g),c.geometry.coordinates=this._getCenterCoordinate(p,d),h.geometry.coordinates=p}}},{key:"_handlerMidVertexAddEvent",value:function(e){var t=this;if("changeFeature"===e.action&&(this.sketchStage.entityGraphic.geometry.coordinates[0].splice(e.vertexIndex+1,0,e.point.coordinates),this.sketchStage.entityGraphic.geometry=new f.Polygon({coordinates:[this.sketchStage.entityGraphic.geometry.coordinates[0]],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}})),"moveMidVertex"===e.action){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));r[e.vertexIndex+1]=e.movePoint.coordinates;var i=new f.Polygon({coordinates:[r],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(i))return this._fireUnsimpleUpdate(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.currentVertexIndex=e.vertexIndex,this.sketchStage.entityGraphic.geometry=i,this.sketchStage.midVertexGraphics[e.vertexIndex].geometry.coordinates=e.movePoint.coordinates}if("addVertex"===e.action){var o=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),a=new d.default({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(a),a.addFeature(e.point,void 0,void 0,this._sketchInnerLayer),this.sketchStage.vertexGraphics.splice(e.vertexIndex+1,0,a.sketchStage.entityGraphic);var s,u=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex];this._getHight;var l=this._getCenterCoordinate(u,e.point.coordinates);s=new f.Point({coordinates:l,spatialReference:this._spatialReference});var c=new d.default({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(c),c.addFeature(s,void 0,{type:"midVertex"},this._sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,c.sketchStage.entityGraphic);var h,g=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex+2];this._getHight;var m=this._getCenterCoordinate(g,e.point.coordinates);h=new f.Point({coordinates:m,spatialReference:this._spatialReference});var v=new d.default({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(v),v.addFeature(h,void 0,{type:"midVertex"},this._sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e.vertexIndex+1,0,v.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools.forEach(function(e){e.sketchStage.entityGraphic.id===o&&t._removeFeatureFromLayer(e.sketchStage.entityGraphic,t._sketchInnerLayer)}),this._otherDrawTools.push(a),this._otherDrawTools.push(c),this._otherDrawTools.push(v)}}},{key:"addMidVertex",value:function(e,t){var r=new d.default;r.addPoint(t),this.sketchStage.midVertexGraphics=r}},{key:"addVertex",value:function(e,t){var r=null;if(--t>-1){var i=[];if(t<this.sketchStage.entityGraphic.geometry.coordinates[0].length-1){if((i=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]))).splice(t,0,e.coordinates),0===t?i[i.length-1]=e.coordinates:t===i.length-1&&i.splice(0,0,e.coordinates),r=new f.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=r;var o=void 0,a=void 0,s=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],[s.xmax,s.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var u=[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],this._getCenterCoordinate([s.xmax,s.ymax],[s.xmin,s.ymax]),this._getCenterCoordinate([s.xmax,s.ymin],[s.xmin,s.ymin]),this._getCenterCoordinate([s.xmax,s.ymax],[s.xmax,s.ymin]),this._getCenterCoordinate([s.xmin,s.ymax],[s.xmin,s.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=u[t]})}if(this.sketchStage.vertexGraphics.length>0&&(o=new d.default({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(o),o.addFeatureByGeometry(e,void 0,void 0,this._sketchInnerLayer),this.sketchStage.vertexGraphics.splice(t,0,o.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})),this.sketchStage.midVertexGraphics.length>0){var l=-1,c=-1,h=null,g=null;0===t?(c=0,l=this.sketchStage.midVertexGraphics.length-1,h=this.sketchStage.entityGraphic.geometry.coordinates[0][this.sketchStage.entityGraphic.geometry.coordinates[0].length-2],g=this.sketchStage.entityGraphic.geometry.coordinates[0][1]):(l=t-1,c=t+1,h=this.sketchStage.entityGraphic.geometry.coordinates[0][l],g=this.sketchStage.entityGraphic.geometry.coordinates[0][c]);var m=new f.Point({coordinates:this._getCenterCoordinate(h,e.coordinates),spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[l].geometry.coordinates=m.coordinates;var v=new f.Point({coordinates:this._getCenterCoordinate(g,e.coordinates),spatialReference:this._spatialReference});a=new d.default({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(a),a.addFeatureByGeometry(v,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(t,0,a.sketchStage.entityGraphic),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})}o&&this._otherDrawTools.push(o),a&&this._otherDrawTools.push(a),this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireAddVertexEventByFun(o.sketchStage.entityGraphic,this._parent)}return r}}},{key:"updateVertex",value:function(e,t){var r=null;if(--t>-1){if(t<this.sketchStage.entityGraphic.geometry.coordinates[0].length-1){var i=this.sketchStage.entityGraphic,o=JSON.parse((0,n.default)(i.geometry.coordinates[0]));if(this.currentVertexIndex=t,o[t]=e.coordinates,o.length-1===t?o[0]=e.coordinates:0===t&&(o[o.length-1]=e.coordinates),r=new f.Polygon({coordinates:[o],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),y.Log.info("该坐标构成的几何不符合拓扑规范!");i.geometry.coordinates=[o];var a=i.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],[a.xmax,a.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var s=[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],this._getCenterCoordinate([a.xmax,a.ymax],[a.xmin,a.ymax]),this._getCenterCoordinate([a.xmax,a.ymin],[a.xmin,a.ymin]),this._getCenterCoordinate([a.xmax,a.ymax],[a.xmax,a.ymin]),this._getCenterCoordinate([a.xmin,a.ymax],[a.xmin,a.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=s[t]})}if(this.sketchStage.vertexGraphics.length>0&&(this.sketchStage.vertexGraphics[t].geometry.coordinates=e.coordinates),this.sketchStage.midVertexGraphics.length>0){var u=t,l=0===u?u-1+this.sketchStage.midVertexGraphics.length:u-1,c=u===this.sketchStage.midVertexGraphics.length-1?0:u+1,h=this.sketchStage.midVertexGraphics[u],d=this.sketchStage.midVertexGraphics[l],p=o[l],g=o[u],m=o[c];h.geometry.coordinates=this._getCenterCoordinate(m,g),h.geometry=new f.Point({coordinates:h.geometry.coordinates,spatialReference:this._spatialReference}),d.geometry.coordinates=this._getCenterCoordinate(p,g),d.geometry=new f.Point({coordinates:d.geometry.coordinates,spatialReference:this._spatialReference})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireUpdateVertexByFun(this.sketchStage.entityGraphic,this._parent)}return r}},{key:"removeVertex",value:function(e){var t=null;if(--e>-1){var r=this.sketchStage.entityGraphic.geometry.coordinates[0].length-1;if(r>3&&e<r){var i=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));if(i.splice(e,1),0===e&&i.splice(i.length-1,1,i[0]),t=new f.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(t))return this._fireUnsimpleUpdateByFun(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=t;var o=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[o.xmax,o.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var a=[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],this._getCenterCoordinate([o.xmax,o.ymax],[o.xmin,o.ymax]),this._getCenterCoordinate([o.xmax,o.ymin],[o.xmin,o.ymin]),this._getCenterCoordinate([o.xmax,o.ymax],[o.xmax,o.ymin]),this._getCenterCoordinate([o.xmin,o.ymax],[o.xmin,o.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=a[t]})}if(this.sketchStage.vertexGraphics.length>0){var s=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromLayer(this.sketchStage.vertexGraphics[e],this._sketchInnerLayer),this.sketchStage.vertexGraphics.splice(e,1),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==s)return e})}if(this.sketchStage.midVertexGraphics.length>0){var u=[],l=-1;0===e?(u=[(t.coordinates[0][t.coordinates[0].length-2][0]+t.coordinates[0][e][0])/2,(t.coordinates[0][t.coordinates[0].length-2][1]+t.coordinates[0][e][1])/2],l=this.sketchStage.midVertexGraphics.length-1):(u=[(t.coordinates[0][e-1][0]+t.coordinates[0][e][0])/2,(t.coordinates[0][e-1][1]+t.coordinates[0][e][1])/2],l=e-1),this.sketchStage.midVertexGraphics[l].geometry=new f.Point({coordinates:u,spatialReference:this._spatialReference});var c=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromLayer(this.sketchStage.midVertexGraphics[e],this._sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e,1),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==c)return e})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireRemoveVertexByFun(this.sketchStage.entityGraphic,this._parent)}return t}}]),t}(h.default);t.default=v},function(e,t,r){var n=r(168),i=r(124);e.exports=Object.keys||function(e){return n(e,i)}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){"use strict";var n=r(310)(!0);r(131)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t){e.exports={}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=_(r(13)),i=_(r(3)),o=_(r(0)),a=_(r(2)),s=_(r(4)),u=_(r(7)),l=_(r(5)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(39)),f=_(r(40)),h=r(1),d=_(r(50)),p=r(6),y=_(r(94)),g=_(r(70)),m=_(r(71)),v=_(r(97));function _(e){return e&&e.__esModule?e:{default:e}}var S=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));if(e=(0,h.defaultValue)(e,{}),r.xmin=(0,h.defaultValue)(e.xmin,0),r.ymin=(0,h.defaultValue)(e.ymin,0),r.xmax=(0,h.defaultValue)(e.xmax,0),r.ymax=(0,h.defaultValue)(e.ymax,0),r.zmin=(0,h.defaultValue)(e.zmin,void 0),r.zmax=(0,h.defaultValue)(e.zmax,void 0),r.type=p.GeometryType.extent,r.hasZ=!(!(0,h.isNumber)(r.zmin)||!(0,h.isNumber)(r.zmax)),!(0,h.isNumber)(r.xmin)||!(0,h.isNumber)(r.ymin)||!(0,h.isNumber)(r.xmax)||!(0,h.isNumber)(r.ymax)||void 0!==r.zmin&&!(0,h.isNumber)(r.zmin)||void 0!==r.zmax&&!(0,h.isNumber)(r.zmax))throw new Error("坐标必须为数字");return r}return(0,l.default)(t,e),(0,a.default)(t,[{key:"centerAt",value:function(e){if(!e)throw new Error("传入参数错误");var t=d.default.toCoordinates(e),r=this.width,n=this.height;if(this.xmin=t[0]-r/2,this.xmax=t[0]+r/2,this.ymin=t[1]-n/2,this.ymax=t[1]+n/2,this.hasZ&&e.hasZ){var i=this.zmax-this.zmin;this.zmin=t[2]-i/2,this.zmax=t[2]+i/2}return this}},{key:"contains",value:function(e){if(!(e instanceof d.default||e instanceof t))return!1;var r=e;r.isGeographic||(r=y.default.project(e,new g.default({wkid:4326})));var n=this;n.isGeographic||(n=y.default.project(this,new g.default({wkid:4326})));var i,o=c.polygon([[[n.xmin,n.ymin],[n.xmin,n.ymax],[n.xmax,n.ymax],[n.xmax,n.ymin],[n.xmin,n.ymin]]]);return i=r instanceof d.default?c.point(r._cloneCoordinates()):c.polygon([[[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin]]]),c.booleanContains(o,i)}},{key:"intersection",value:function(e){e||h.Log.error("传入参数错误!"),e instanceof t||h.Log.error("extent不是Extent几何!"),this.spatialReference.equals(e.spatialReference)||h.Log.error("不是同一个坐标系!");var r=e;r.isGeographic||(r=y.default.project(e,new g.default({wkid:4326})));var n=this;n.isGeographic||(n=y.default.project(this,new g.default({wkid:4326})));var i=c.polygon([[[n.xmin,n.ymin],[n.xmin,n.ymax],[n.xmax,n.ymax],[n.xmax,n.ymin],[n.xmin,n.ymin]]]),o=c.polygon([[[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin]]]),a=null,s=c.intersect(i,o);if(s&&s.geometry){var u=void 0;"Polygon"===s.geometry.type?u=c.bbox(c.polygon(s.geometry.coordinates)):"MultiPolygon"===s.geometry.type&&(u=c.bbox(c.multiPolygon(s.geometry.coordinates))),u&&(a=new t({xmin:u[0],ymin:u[1],xmax:u[2],ymax:u[3]}),this.spatialReference.isGeographic||(a=y.default.project(a,g.default.fromJSON(this.spatialReference))))}return a}},{key:"intersects",value:function(e){return m.default.intersects(this,e)}},{key:"equals",value:function(e){if(!e)throw new Error("传入参数错误");var t=!!Math.abs(this.xmax-e.xmax)<=1e-7,r=!!Math.abs(this.xmin-e.xmin)<=1e-7,n=!!Math.abs(this.ymax-e.ymax)<=1e-7,i=!!Math.abs(this.ymin-e.ymin)<=1e-7;if(!this.hasZ)return t&&r&&n&&i;var o=!!Math.abs(this.zmax-e.zmax)<=1e-7,a=!!Math.abs(this.zmin-e.zmin)<=1e-7;return t&&r&&n&&i&&o&&a}},{key:"expand",value:function(e){if("number"==typeof e){if(e>=1){e=Math.abs(e);var t=this.width*e,r=this.height*e,n=t-this.width,i=r-this.height;this.xmin-=n/2,this.xmax+=n/2,this.ymin-=i/2,this.ymax+=i/2}return this}throw new Error("按照给定的因子扩大范围,需要的是一个num值")}},{key:"offset",value:function(e,t,r){if(!(0,h.isNumber)(e)||!(0,h.isNumber)(t)||this.hasZ&&!(0,h.isNumber)(r))throw new Error("传入参数错误");return this.xmax+=e,this.xmin+=e,this.ymax+=t,this.ymin+=t,this.hasZ&&(this.zmax+=r,this.zmin+=r),this}},{key:"union",value:function(e){if(!e)throw new Error("传入参数错误");return this.hasZ?new t({xmin:e.xmin<this.xmin?e.xmin:this.xmin,xmax:e.xmax>this.xmax?e.xmax:this.xmax,ymin:e.ymin<this.ymin?e.ymin:this.ymin,ymax:e.ymax>this.ymax?e.ymax:this.ymax,zmin:e.zmin<this.zmin?e.zmin:this.zmin,zmax:e.zmax>this.zmax?e.zmax:this.zmax}):new t({xmin:e.xmin<this.xmin?e.xmin:this.xmin,xmax:e.xmax>this.xmax?e.xmax:this.xmax,ymin:e.ymin<this.ymin?e.ymin:this.ymin,ymax:e.ymax>this.ymax?e.ymax:this.ymax})}},{key:"toString",value:function(){return this.hasZ?this.xmin+","+this.ymin+","+this.zmin+","+this.xmax+","+this.ymax+","+this.zmax:this.xmin+","+this.ymin+","+this.xmax+","+this.ymax}},{key:"toJSON",value:function(){var e=(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"toJSON",this).call(this);return e.xmin=this.xmin,e.ymin=this.ymin,e.xmax=this.xmax,e.ymax=this.ymax,e.zmin=this.zmin,e.zmax=this.zmax,e.width=this.width,e.height=this.height,e}},{key:"toIGSOldString",value:function(){return this.xmin+"$"+this.ymin+"$"+this.xmax+"$"+this.ymax}},{key:"getIGSType",value:function(){return this.hasZ?p.IGSGeometryType.extent3D:p.IGSGeometryType.extent}},{key:"normalize",value:function(){var e=new d.default({coordinates:[this.xmin,this.ymin]}),r=new d.default({coordinates:[this.xmax,this.ymax]});return e=e.normalize(),r=r.normalize(),new t({xmin:e.coordinates[0],ymin:e.coordinates[1],xmax:r.coordinates[0],ymax:r.coordinates[1]})}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toPolygon",value:function(){return v.default.fromExtent(this)}},{key:"toGeoJSON",value:function(){return this.toPolygon().toGeoJSON()}}],[{key:"fromJSON",value:function(e){return new t(e=(0,h.defaultValue)(e,{}))}}]),t}(f.default);(0,n.default)(S.prototype,{width:{configurable:!1,get:function(){return this.xmax-this.xmin}},height:{configurable:!1,get:function(){return this.ymax-this.ymin}},center:{configurable:!1,set:function(e){this.centerAt(e)},get:function(){return this.hasZ?new d.default({coordinates:[(this.xmax-this.xmin)/2+this.xmin,(this.ymax-this.ymin)/2+this.ymin,(this.zmax-this.zmin)/2+this.zmin],spatialReference:this.spatialReference}):new d.default({coordinates:[(this.xmax-this.xmin)/2+this.xmin,(this.ymax-this.ymin)/2+this.ymin],spatialReference:this.spatialReference})}}}),t.default=S},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(6);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(){(0,n.default)(this,e)}return(0,i.default)(e,null,[{key:"info",value:function(){if([o.LogType.info,o.LogType.all,o.LogType.infoAndError].indexOf(window.zondy.LOGTYPE)>-1){var e=Array.prototype.slice.call(arguments);e.unshift("%c info ","color:rgb(255,128,0);background-color: wheat;border: 1px solid rgb(255,128,0);border-radius: 3px;"),console.log.apply(console,e)}}},{key:"error",value:function(){if([o.LogType.error,o.LogType.all,o.LogType.infoAndError,o.LogType.warningAndError].indexOf(window.zondy.LOGTYPE)>-1){var e=Array.prototype.slice.call(arguments);e.unshift("%c error ","color:rgb(255,0,0);background-color: rgb(250,181,181);border: 1px solid rgb(255,0,0);border-radius: 3px;"),console.error.apply(console,e)}}},{key:"warning",value:function(){if([o.LogType.warning,o.LogType.warningAndError,o.LogType.all].indexOf(window.zondy.LOGTYPE)>-1){var e=Array.prototype.slice.call(arguments);e.unshift("%c warning ","color:rgb(230 162 60);background-color: rgb(253 246 236);border: 1px solid rgb(230 162 60);border-radius: 3px;"),console.log.apply(console,e)}}},{key:"throwError",value:function(e){throw new Error(e)}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(10)),i=l(r(24)),o=l(r(470)),a=l(r(138)),s=l(r(0)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function e(){(0,s.default)(this,e)};c.getBaseUrlAndParams=function(e){var t=void 0,r={},n=e.split("?");if(0===n.length)throw new Error("url传入不合法");return 1===n.length?t=n[0]:(t=n[0],n[1].split("&").map(function(e){var t=e.indexOf("=");if(t>0){var n=e.substring(0,t),i=e.substring(t+1,e.length);r[n]=i}}),n.length>=3&&u.Log.error("url有多个'?'连接符,不合法")),{baseUrl:t,params:r=(0,u.deleteNullValue)(r)}},c.completeUrlEndMark=function(e){return e.indexOf("?")>-1?"?"===e.slice(-1)||"&"===e.slice(-1)?e+="":e+="&":e+="?",e},c.getObjectFromExtensions=function(e){var t={},r=(0,u.defaultValue)(e,[]);return r instanceof Array&&(r=(0,a.default)(new o.default(r))).forEach(function(e){t[e.key]=e.value}),t},c.getStringFromObject=function(e){var t="";return(e=(0,u.defaultValue)(e,{}))instanceof Object&&(e=(0,u.deleteNullValue)(e),(0,i.default)(e).forEach(function(r){t+=r+"=",e[r]instanceof Function?t+=e[r]():e[r]instanceof Object?t+=(0,n.default)(e[r]):t+=e[r],t+="&"}),t.length>0&&(t=t.substring(0,t.length-1))),t},c.deleteNullValue=u.deleteNullValue,t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSublayerOptionsArr=void 0;var n=r(1),i=r(8);t.createSublayerOptionsArr=function e(t,r,o,a,s){r=r||[],s=s||{};var u=void 0,l=void 0,c=void 0;if(t){var f=t instanceof i.Collection?t.items:t;u=new window.Map,l=new window.Map,c=new window.Map,f.forEach(function(e){(0,n.defined)(e.name)&&u.set(e.name,e.toJSON?e.toJSON():e),(0,n.defined)(e.id)&&l.set(e.id,e.toJSON?e.toJSON():e),(0,n.defined)(e.layerIndex)&&c.set(e.layerIndex,e.toJSON?e.toJSON():e)})}for(var h=[],d=0;d<r.length;d++){var p=r[d],y=!1,g=void 0;if(l||u||c?(g=l.get(String(p.id))||l.get(String(p.name))||l.get(String(p.index))||u.get(String(p.name))||l.get(String(p.layerIndex))||c.get(String(p.layerIndex)))&&(y=!0):y=!0,y){var m=o(p,g||{},s);m.sublayers=e(g?g.sublayers:null,a(p),o,a,s),h.push(m)}}return h}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(0)),i=u(r(2)),o=r(8),a=r(1),s=r(28);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){(0,n.default)(this,e),t=(0,a.defaultValue)(t,{}),this.symbol=new s.MapGISTextSymbol(t.symbol),this.renderMode=(0,a.defaultValue)(t.renderMode,"canvas"),this.deconflictionStrategy=(0,a.defaultValue)(t.deconflictionStrategy,"static"),this.maxScale=t.maxScale,this.minScale=t.minScale,this.elevationInfo=new o.ElevationInfo(t.elevationInfo),this.labelPlacement=t.labelPlacement,this.currentAttributeName=t.currentAttributeName,this.labelExpression=t.labelExpression,this.repeatLabel=(0,a.defaultValue)(t.repeatLabel,!0),this.repeatLabelDistance=(0,a.defaultValue)(t.repeatLabelDistance,6e3),this.repeatStartRate=(0,a.defaultValue)(t.repeatStartRate,.3),this.repeatEndRate=(0,a.defaultValue)(t.repeatEndRate,.7),this.lineLabelSpread=(0,a.defaultValue)(t.lineLabelSpread,"auto-spread"),this.labelPositionAlong=(0,a.defaultValue)(t.labelPositionAlong,"middle"),this.skeletonLineStartRate=(0,a.defaultValue)(t.skeletonLineStartRate,.4),this.skeletonLineEndRate=(0,a.defaultValue)(t.skeletonLineEndRate,.6),this.groundScale=(0,a.defaultValue)(t.groundScale,20),this.onScreenLabelCount=(0,a.defaultValue)(t.onScreenLabelCount,4e3),this.extensionOptions=(0,a.defaultValue)(t.extensionOptions,{})}return(0,i.default)(e,[{key:"toJSON",value:function(){return{symbol:this.symbol.toJSON(),renderMode:this.renderMode,deconflictionStrategy:this.deconflictionStrategy,maxScale:this.maxScale,minScale:this.minScale,elevationInfo:this.elevationInfo.toJSON(),labelPlacement:this.labelPlacement,currentAttributeName:this.currentAttributeName,labelExpression:this.labelExpression,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,repeatStartRate:this.repeatStartRate,repeatEndRate:this.repeatEndRate,lineLabelSpread:this.lineLabelSpread,labelPositionAlong:this.labelPositionAlong,skeletonLineStartRate:this.skeletonLineStartRate,skeletonLineEndRate:this.skeletonLineEndRate,groundScale:this.groundScale,onScreenLabelCount:this.onScreenLabelCount,extensionOptions:(0,a.cloneObject)(this.extensionOptions)}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,a.defaultValue)(t,{}))}}]),e}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=f(r(0)),i=f(r(2)),o=r(9),a=r(1),s=f(r(115)),u=f(r(72)),l=r(6),c=(r(8),r(29));function f(e){return e&&e.__esModule?e:{default:e}}window.CustomWKID=l.CustomWKID;var h=function(){function e(){(0,n.default)(this,e)}return(0,i.default)(e,null,[{key:"parseTileInfo1",value:function(e){e||a.Log.error("tileInfo未定义");var t=e.tileWidth,r=e.tileHeight,n=e.lods,i=e.originX,l=e.originY;return e.startLevel,e.endLevel,new u.default({origin:new o.Point({coordinates:[i,l]}),lods:n.map(function(e){var t=s.default.fromJSON(e);return(0,a.defined)(t.levelValue)||(t.levelValue=String(t.level)),t}),size:[t,r]})}},{key:"parseTileInfo2",value:function(e){e||a.Log.error("tileInfo未定义");var t,r=e.cols,n=e.rows,i=e.dpi,l=e.format,f=e.origin,h=e.lods,d=e.spatialReference;return t=d&&d.srsWkt?new o.SpatialReference({wkt:d.srsWkt,wkid:(0,a.defined)(d.wkid)&&0!==d.wkid?d.wkid:void 0}):d&&d.tileSRefInfo&&d.tileSRefInfo.Name?(0,c.getSpatialReferenceBySrsName)(d.tileSRefInfo.Name):new o.SpatialReference(d),new u.default({dpi:i,format:l,origin:new o.Point({coordinates:[f.x,f.y],spatialReference:t}),lods:h.map(function(e){var t=s.default.fromJSON(e);return(0,a.defined)(t.levelValue)||(t.levelValue=String(t.level)),t}),size:[r,n],spatialReference:t})}},{key:"parseArcgisTileInfo",value:function(e){e||a.Log.error("tileInfo未定义");var t=e.cols,r=e.rows,n=e.dpi,i=e.format,l=e.origin,c=e.lods,f=e.spatialReference;return new u.default({dpi:n,format:i,origin:new o.Point({coordinates:[l.x,l.y],spatialReference:new o.SpatialReference({wkid:f.latestWkid||f.wkid})}),lods:c.map(function(e){var t=s.default.fromJSON(e);return(0,a.defined)(t.levelValue)||(t.levelValue=String(t.level)),t}),size:[t,r],spatialReference:new o.SpatialReference({wkid:f.latestWkid||f.wkid})})}},{key:"parseWMSTileInfo",value:function(t){t||a.Log.error("wmsLayer未定义");var r=t.extent,n=Math.max(t.imageWidth,t.imageHeight),i=t.spatialReferences[0];return e.generateTileInfo(r,n,i)}},{key:"generateTileInfo",value:function(e,t,r){e&&t||a.Log.error("动态计算tileInfo传入参数不合法");var n=Math.max(e.ymax-e.ymin,e.xmax-e.xmin)/t,i=[];i.push(n);for(var l=0;l<20;l++)i.push(i[l]/2);var c=new o.Point({coordinates:[e.xmin,e.ymax],spatialReference:r}),f=1;return r.isGeographic&&(f=111319.49079327358),new u.default({origin:c,lods:i.map(function(e,t){return s.default.fromJSON({level:t,levelValue:String(t),resolution:e,scale:f*(96*e)/.0254})}),size:[t,t],spatialReference:r})}},{key:"parseWebTileLayerInfo",value:function(e,t,r){e||a.Log.error("IGSMapImageLayer未定义"),r=(0,a.defaultValue)(r,2);var n=e.tileSize,i=(t.xmax-t.xmin)/r/n,l=[];l.push(i);for(var c=0;c<19;c++)l.push(l[c]/2);var f=new o.Point({coordinates:[t.xmin,t.ymax],spatialReference:e.spatialReference}),h=1;return e.spatialReference.isGeographic&&(h=111319.49079327358),new u.default({origin:f,lods:l.map(function(e,t){return s.default.fromJSON({level:t,levelValue:String(t),resolution:e,scale:h*(96*e)/.0254})}),size:[n,n],spatialReference:e.spatialReference})}},{key:"parseIGSImageTileInfo",value:function(e){var t=e.cols,r=e.rows,n=e.lods,i=e.origin,l=(e.startLevel,e.endLevel,e.spatialReference),c=e.dpi;return new u.default({origin:new o.Point({coordinates:[i.x,i.y],spatialReference:new o.SpatialReference(l)}),lods:n.map(function(e,t){return s.default.fromJSON({level:t,resolution:e.resolution,scale:e.scale,levelValue:(0,a.defined)(e.levelValue)?e.levelValue:String(t)})}),size:[t,r],spatialReference:new o.SpatialReference(l),dpi:c})}},{key:"createCommonTileInfo",value:function(e){if(e&&e.extent){var t=e.extent,r=t.spatialReference,n=(0,a.defaultValue)(e.origin,new o.Point({coordinates:[t.xmin,t.ymax],spatialReference:r})),i=(0,a.defaultValue)(e.tileSize,256),l=(0,a.defaultValue)(e.minLevel,0),c=(0,a.defaultValue)(e.maxLevel,19),f=(0,a.defaultValue)(e.numberOfMinLevelTilesX,1),h=((0,a.defaultValue)(e.numberOfMinLevelTilesY,1),(t.xmax-t.xmin)/f/i),d=[];d.push(h);for(var p=l;p<c;p++)d.push(d[p]/2);var y=1;return r.isGeographic&&(y=111319.49079327358),new u.default({origin:n,lods:d.map(function(e,t){return s.default.fromJSON({level:t,levelValue:String(t),resolution:e,scale:y*(96*e)/.0254})}),size:[i,i],spatialReference:r})}}},{key:"getLods",value:function(e,t,r){for(var n=Math.max(0,r),i=[],o=2*Math.PI*6378137/360,a=0;a<n;a++){var u,l=e/Math.pow(2,a);u="degree"===t?o*l:96*l/.0254,i.push(new s.default({level:a,levelValue:a,resolution:l,scale:u}))}return i}},{key:"getReferenceLayer",value:function(e,t){for(var r=null,n=null,i=0;i<e.length;i++){var o=e[i];if(o.loaded&&(o.type===l.LayerType.IGSTile||o.type===l.LayerType.IGSImageTile||o.type===l.LayerType.ArcGISTile||o.type===l.LayerType.WMTS||o.type===l.LayerType.IGSVectorTile||o.type===l.LayerType.ArcGISVectorTile||o.type===l.LayerType.webTile)&&(!t||t.equals(o.spatialReference)||t.isWebMercator&&o.spatialReference.wkid&&[l.CustomWKID.gcj02mc,l.CustomWKID.bd09mc].indexOf(o.spatialReference.wkid)>-1)){n=o,r=o.spatialReference;break}}if(!r)for(var a=0;a<e.length;a++){var s=e[a];if(s.loaded&&(s.type===l.LayerType.IGSMapImage||s.type===l.LayerType.ArcGISMapImage||s.type===l.LayerType.WMS||s.type===l.LayerType.IGSFeature||s.type===l.LayerType.WFS||s.type===l.LayerType.GeoJSON||s.type===l.LayerType.IGSImage)){n=s,r=t||s.spatialReference;break}}return n}},{key:"isSameSpatialReference",value:function(e,t){var r=!1,n=void 0,i=void 0,a=void 0,s=void 0,u=void 0,l=void 0;return void 0!==e&&void 0!==t&&(e instanceof o.SpatialReference?(n=e.wkt?e.wkt.toString():void 0,i=e.wkid?e.wkid.toString():void 0):a=e.toString(),t instanceof o.SpatialReference?(s=t.wkt?t.wkt.toString():void 0,u=t.wkid?t.wkid.toString():void 0):l=t.toString()),n&&s&&n===s?r=!0:i&&u&&(i===u||["4326","4490","4610","4214"].indexOf(i)>-1&&["4326","4490","4610","4214"].indexOf(u)>-1||["102113","102100","900913","3857"].indexOf(i)>-1&&["102113","102100","900913","3857"].indexOf(u)>-1)?r=!0:a&&l&&a===l&&(r=!0),r}},{key:"getLevelRangeByTileInfo",value:function(e,t){if(!e||!Array.isArray(e.lods)||0===e.lods.length)return[0,22];for(var r=e.lods,n=r.slice().reverse(),i=r[0].level,o=r[r.length-1].level,a=0,s=r.length-1,u=0;u<r.length;u++)if(0!==r[u].scale){i=r[u].level,a=u;break}for(var l=0;l<n.length;l++)if(0!==n[l].scale){o=n[l].level,s=n.length-1-l;break}return t?[a,s]:[i,o]}},{key:"getTileInfoByLayer",value:function(t){var r=t.tileInfo;if(t.type===l.LayerType.WMTS)r=t.getCurrentTileInfo();else if(t.type===l.LayerType.WMS)r=e.parseWMSTileInfo(t,t.extent);else if(t.type===l.LayerType.IGSMapImage||t.type===l.LayerType.IGSImage||t.type===l.LayerType.ArcGISMapImage||t.type===l.LayerType.IGSFeature||t.type===l.LayerType.WFS||t.type===l.LayerType.GeoJSON){var n=256;t.imageWidth&&t.imageHeight&&(n=Math.max(t.imageWidth,t.imageHeight)),r=e.generateTileInfo(t.extent,n,t.spatialReference)}return r}},{key:"scaleToResolution",value:function(e,t,r){var n=1;return r.isGeographic&&(n=111319.49079327358),.0254*e/t/n}},{key:"resolutionToScale",value:function(e,t,r){var n=1;return r.isGeographic&&(n=111319.49079327358),n*(e*t)/.0254}}]),e}();t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTipTextByEditOption=function(e,t,r){if(r&&r.graphic&&r.vertex){var n={text:"",lineWidth:0};switch(e){case"before-edit":case"draw-end":r.graphic.move||r.graphic.scale?(n.text=t.beforeEditGraphic.text,n.lineWidth=t.beforeEditGraphic.lineWidth):(r.vertex.move||r.vertex.add)&&(n.text=t.beforeEditVertex.text,n.lineWidth=t.beforeEditVertex.lineWidth);break;case"edit-graphic":var i=0;r.graphic.move&&(n.text=t.moveGraphic.text,i+=t.moveGraphic.lineWidth),r.graphic.scale&&(n.text+=t.scaleGraphic.text,i+=t.scaleGraphic.lineWidth),(r.vertex.move||r.vertex.add)&&(n.text+=t.beforeEditVertex.text,i+=t.beforeEditVertex.lineWidth),n.editGraphic&&n.editGraphic.lineWidth?n.lineWidth=t.moveGraphic.lineWidth:n.lineWidth=i;break;case"edit-vertex":var o=0;r.vertex.move&&(n.text=t.moveVertex.text,o+=t.moveVertex.lineWidth),r.vertex.add&&(n.text+=t.addVertex.text,o+=t.addVertex.lineWidth),n.editVertex&&n.editVertex.lineWidth?n.lineWidth=t.moveGraphic.lineWidth:n.lineWidth=o;break;default:n=void 0}return n}}},function(e,t,r){var n=r(11).Buffer;e.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(n.isBuffer(e)){for(var t=new Uint8Array(e.length),r=e.length,i=0;i<r;i++)t[i]=e[i];return t.buffer}throw new Error("Argument must be a Buffer")}},function(e,t){e.exports=!0},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){var n=r(37).f,i=r(46),o=r(31)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},function(e,t,r){r(312);for(var n=r(30),i=r(54),o=r(78),a=r(31)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var l=s[u],c=n[l],f=c&&c.prototype;f&&!f[a]&&i(f,a,l),o[l]=o.Array}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){var n=r(91),i=r(76),o=r(53),a=r(127),s=r(46),u=r(169),l=Object.getOwnPropertyDescriptor;t.f=r(33)?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return i(!n.f.call(e,t),e[t])}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=f(r(67)),i=f(r(346)),o=f(r(349)),a=f(r(0)),s=f(r(2)),u=r(1),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(352)),c=r(41);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(){function e(){return(0,a.default)(this,e),this.initialize.apply(this,arguments),this._createEventedProxy()}return(0,s.default)(e,[{key:"initialize",value:function(){}},{key:"_createEventedProxy",value:function(){this._decorateParents=[],this._decorateProperties={};var e=this;return new Proxy(this,{set:function(t,r,n,a){if(e._decorateProperties[r]){var s=e._decorateProperties[r],l=s.type,c=s.createInstance;n=e._constructDecorateValue(n,l,c),(0,u.defined)(n)&&Array.isArray(n._decorateParents)&&-1===n._decorateParents.findIndex(function(t){return t.instance===e})&&n._decorateParents.push({instance:e,key:r})}if(t[r]===n)return!0;var f=(0,o.default)(t,r);null!==f&&void 0!==f&&f._decorateParents&&(f._decorateParents=[]);var h={target:t,key:r,value:n,oldValue:f,receiver:a},d=(0,i.default)(t,r,n,a);return/^_[^_].*/.test(r)?d:(e._decorateEventFire(e,e,[],"set",h,h),e._updateDiff(r,n,f),d)},get:function(e,t,r){return(0,o.default)(e,t,r)}})}},{key:"_updateDiff",value:function(e,t,r){}},{key:"_decorateEventFire",value:function(e,t,r,n,i,o){for(var a=i.key,s=i.value,u=i.oldValue,l=[a],f=0;f<r.length;f++)l.push(r[f]);var h={key:a,value:s,oldValue:u},d=new c.ProxyEvent({eventName:n,target:e,eventData:h,eventPath:l,sourceTarget:t,sourceEventData:o});e.fire(n,d,!1);var p=e._decorateParents||[];if(0!==p.length)for(var y=0;y<p.length;y++){var g=p[y],m=g.instance,v={key:g.key,value:e,oldValue:e};this._decorateEventFire(m,t,l,n,v,o)}}},{key:"_decorate",value:function(e,t,r,n){return n=(0,u.defaultValue)(n,function(e){return e}),t=this._constructDecorateValue(t,r,n),this._decorateProperties[e]={type:r,createInstance:n},t}},{key:"_constructDecorateValue",value:function(e,t,r){return(0,u.defined)(e)&&r&&(t&&e instanceof t||(e=r(e))),e}},{key:"on",value:function(e,t,r){if("object"===(void 0===e?"undefined":(0,n.default)(e)))for(var i in e)this._on(i,e[i],t);else for(var o=0,a=(e=l.splitWords(e)).length;o<a;o++)this._on(e[o],t,r);return this}},{key:"off",value:function(e,t,r){if(e)if("object"===(void 0===e?"undefined":(0,n.default)(e)))for(var i in e)this._off(i,e[i],t);else for(var o=0,a=(e=l.splitWords(e)).length;o<a;o++)this._off(e[o],t,r);else delete this._Evented;return this}},{key:"_on",value:function(e,t,r){this._Evented=this._Evented||{};var n=this._Evented[e];n||(n=[],this._Evented[e]=n),r===this&&(r=void 0);for(var i={fn:t,ctx:r},o=n,a=0,s=o.length;a<s;a++)if(o[a].fn===t&&o[a].ctx===r)return;o.push(i)}},{key:"_off",value:function(e,t,r){var n=void 0,i=void 0,o=void 0;if(this._Evented&&(n=this._Evented[e]))if(t){if(r===this&&(r=void 0),n)for(i=0,o=n.length;i<o;i++){var a=n[i];if(a.ctx===r&&a.fn===t)return a.fn=l.falseFn,this._firingCount&&(this._Evented[e]=n=n.slice()),void n.splice(i,1)}}else{for(i=0,o=n.length;i<o;i++)n[i].fn=l.falseFn;delete this._Evented[e]}}},{key:"fire",value:function(e,t,r){if(!this.listens(e,r))return this;var n=t;if(n&&(n.type=e,n.target=this,n.sourceTarget=t&&t.sourceTarget||this),this._Evented){var i=this._Evented[e];if(i){this._firingCount=this._firingCount+1||1;for(var o=0,a=i.length;o<a;o++){var s=i[o];s.fn.call(s.ctx||this,n)}this._firingCount--}}return r&&this._propagateEvent(n),this}},{key:"listens",value:function(e,t){var r=this._Evented&&this._Evented[e];if(r&&r.length)return!0;if(t)for(var n in this._eventParents)if(this._eventParents[n].listens(e,t))return!0;return!1}},{key:"once",value:function(e,t,r){var i=this;if("object"===(void 0===e?"undefined":(0,n.default)(e))){for(var o in e)this.once(o,e[o],t);return this}var a=l.bind(function(){i.off(e,t,r).off(e,a,r)},this);return this.on(e,t,r).on(e,a,r)}},{key:"addEventParent",value:function(e){return this._eventParents=this._eventParents||{},this._eventParents[l.stamp(e)]=e,this}},{key:"removeEventParent",value:function(e){return this._eventParents&&delete this._eventParents[l.stamp(e)],this}},{key:"_propagateEvent",value:function(e){for(var t in this._eventParents)this._eventParents[t].fire(e.type,l.extend({layer:e.target,propagatedFrom:e.target},e),!0)}}]),e}();t.default=h,h.addEventListener=h.on,h.removeEventListener=h.clearAllEventListeners=h.off,h.addOneTimeEventListener=h.once,h.fireEvent=h.fire,h.hasEventListeners=h.listens},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(0)),i=h(r(268)),o=h(r(111)),a=r(1),s=r(9),u=h(r(112)),l=h(r(213)),c=h(r(214)),f=h(r(147));function h(e){return e&&e.__esModule?e:{default:e}}var d=function e(){(0,n.default)(this,e)};d.projectMercatorToLonLat=function(e){var t={longitude:0,latitude:0},r=e.x/20037508.342789244*180,n=e.y/20037508.342789244*180;return n=180/Math.PI*(2*Math.atan(Math.exp(n*Math.PI/180))-Math.PI/2),t.longitude=r,t.latitude=n,t},d.projectToGeographyPoints=function(e){return d.projectPoints({points:e.points,originDefs:e.proj4Defs,originWKID:e.wkid,targetWKID:4326})},d.projectPoints=function(e){e=(0,a.defaultValue)(e,{});var t=(0,a.defaultValue)(e.points,[]),r=(0,a.defaultValue)(e.originWKID,-1),n=(0,a.defaultValue)(e.originDefs,void 0),o=(0,a.defaultValue)(e.targetWKID,-1),s=(0,a.defaultValue)(e.targetDefs,void 0),u=void 0,l=void 0,c=[];try{if(n)u=n;else{var f=d.getEPSGByWKID(r);f&&(u=f.strProject)}if(s)l=s;else{var h=d.getEPSGByWKID(o);h&&(l=h.strProject)}for(var p=[],y=[],g=0;g<t.length;g++)p=t[g],y=u&&l?(0,i.default)(u,l,p):u&&!l?d._toCustomWkidPoint(u,o,p):!u&&l?d._fromCustomWkidPoint(r,l,p):d._CustomWkidToCustomWkidPoint(r,o,p),c.push(y);return c}catch(e){a.Log.error("proj4投影报错",e)}return c},d.getEPSGByWKID=function(e){for(var t=void 0,r=0;r<o.default.length;r++)if(String(o.default[r].id)===String(e)){t=o.default[r];break}return t||a.Log.info("epsg未定义wkid为"+e+"的坐标系信息"),t},d.projectGeometry=function(e,t){var r=[],n={originWKID:e.spatialReference.wkid,originDefs:e.spatialReference.wkt,targetWKID:t.wkid,targetDefs:t.wkt};switch(e.type){case u.default.point:return r=[e.coordinates],n.points=r,r=d.projectPoints(n),new s.Point({coordinates:r[0],spatialReference:new s.SpatialReference(t)});case u.default.multiPoint:return r=e.coordinates,n.points=r,r=d.projectPoints(n),new s.MultiPoint({coordinates:r,spatialReference:new s.SpatialReference(t)});case u.default.lineString:return r=e.coordinates,n.points=r,r=d.projectPoints(n),new s.LineString({coordinates:r,spatialReference:new s.SpatialReference(t)});case u.default.multiLineString:r=e.coordinates;for(var i=[],o=0;o<r.length;o++)n.points=r[o],i.push(d.projectPoints(n));return new s.MultiLineString({coordinates:i,spatialReference:new s.SpatialReference(t)});case u.default.polygon:r=e.coordinates;for(var a=[],l=0;l<r.length;l++)n.points=r[l],a.push(d.projectPoints(n));return new s.Polygon({coordinates:a,spatialReference:new s.SpatialReference(t)});case u.default.multiPolygon:r=e.coordinates;for(var c=[],f=0;f<r.length;f++){for(var h=[],p=0;p<r[f].length;p++)n.points=r[f][p],h.push(d.projectPoints(n));c.push(h)}return new s.MultiPolygon({coordinates:c,spatialReference:new s.SpatialReference(t)});case u.default.circle:return r=[e.clone().center],n.points=r,r=d.projectPoints(n),new s.Circle({center:r[0],radius:e.radius,radiusUnit:e.radiusUnit,spatialReference:new s.SpatialReference(t)});case u.default.extent:return r=[[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]],n.points=r,r=d.projectPoints(n),new s.Extent({xmin:Math.min(r[0][0],r[1][0],r[2][0],r[3][0]),ymin:Math.min(r[0][1],r[1][1],r[2][1],r[3][1]),zmin:e.zmin,xmax:Math.max(r[0][0],r[1][0],r[2][0],r[3][0]),ymax:Math.max(r[0][1],r[1][1],r[2][1],r[3][1]),zmax:e.zmax,spatialReference:new s.SpatialReference(t)});default:return e}},d.project=function(e,t){if(e instanceof Array){for(var r=[],n=0;n<e.length;n++)r.push(d.projectGeometry(e[n],t));return r}if(e.spatialReference.isGeographic){var i=function(e){return e>89.99999999?e=89.99999999:e<-89.99999999&&(e=-89.99999999),e};e.coordinates&&e.coordinates.length>1&&(e.coordinates[1]=i(e.coordinates[1])),e.ymax=i(e.ymax),e.ymin=i(e.ymin)}return d.projectGeometry(e,t)},d.isCustomWKID=function(e){return e===f.default.gcj02ll||e===f.default.gcj02mc||e===f.default.bd09ll||e===f.default.bd09mc},d._toCustomWkidPoint=function(e,t,r){var n=void 0,o=d.getEPSGByWKID(4326).strProject,s=(0,i.default)(e,o,r);if(t===f.default.bd09ll)n=l.default.wgs84tobd09(s[0],s[1]);else if(t===f.default.bd09mc){var u=l.default.wgs84tobd09(s[0],s[1]);u[0]=Math.min(u[0],180),u[0]=Math.max(u[0],-180),u[1]=Math.min(u[1],74.000022),u[1]=Math.max(u[1],-71.988531);var h=(new c.default).convertLL2MC({lng:u[0],lat:u[1]});n=[h.lng,h.lat]}else if(t===f.default.gcj02ll)n=l.default.wgs84togcj02(s[0],s[1]);else if(t===f.default.gcj02mc){var p=l.default.wgs84togcj02(s[0],s[1]);n=(0,i.default)(o,d.getEPSGByWKID(3857).strProject,p)}else a.Log.error("wkid为"+t+"的投影方式未定义!");return n},d._fromCustomWkidPoint=function(e,t,r){var n=void 0,o=d.getEPSGByWKID(4326).strProject;if(e===f.default.bd09ll){var s=l.default.bd09towgs84(r[0],r[1]);n=(0,i.default)(o,t,s)}else if(e===f.default.bd09mc){var u=(new c.default).convertMC2LL({lng:r[0],lat:r[1]}),h=l.default.bd09towgs84(u.lng,u.lat);n=(0,i.default)(o,t,h)}else if(e===f.default.gcj02ll){var p=l.default.gcj02towgs84(r[0],r[1]);n=(0,i.default)(o,t,p)}else if(e===f.default.gcj02mc){var y=(0,i.default)(d.getEPSGByWKID(3857).strProject,o,r),g=l.default.gcj02towgs84(y[0],y[1]);n=(0,i.default)(d.getEPSGByWKID(4326).strProject,t,g)}else a.Log.error("wkid为"+e+"的投影方式未定义!");return n},d._CustomWkidToCustomWkidPoint=function(e,t,r){var n=void 0,i=d.getEPSGByWKID(4326).strProject;if(e===f.default.bd09ll){var o=d._fromCustomWkidPoint(e,i,r);n=d._toCustomWkidPoint(i,t,o)}else a.Log.error("wkid为"+e+"的投影方式未定义!");return n},d.getProj=function(e,t){return i.default.defs(e,t),(0,i.default)(e)},t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(3)),i=h(r(0)),o=h(r(2)),a=h(r(4)),s=h(r(5)),u=r(1),l=h(r(140)),c=h(r(69)),f=r(193);function h(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,u.defaultValue)(e,{}),r.styleOrigin=void 0,r.symbolLayers=new l.default,(0,u.defaultValue)(e.symbolLayers,[]).forEach(function(e){r.symbolLayers.add((0,f.createSymbol3DLayer)(e))}),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=[];return this.symbolLayers.forEach(function(t){e.push(t.toJSON())}),{type:this.type,styleOrigin:this.styleOrigin,symbolLayers:e}}}]),t}(c.default);t.default=d},function(e,t,r){var n=r(47),i=r(182),o=r(183),a=r(38),s=r(104),u=r(137),l={},c={};(t=e.exports=function(e,t,r,f,h){var d,p,y,g,m=h?function(){return e}:u(e),v=n(r,f,t?2:1),_=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(o(m)){for(d=s(e.length);d>_;_++)if((g=t?v(a(p=e[_])[0],p[1]):v(e[_]))===l||g===c)return g}else for(y=m.call(e);!(p=y.next()).done;)if((g=i(y,v,p.value,t))===l||g===c)return g}).BREAK=l,t.RETURN=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=_(r(13)),i=_(r(10)),o=_(r(3)),a=_(r(0)),s=_(r(2)),u=_(r(4)),l=_(r(7)),c=_(r(5)),f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(39)),h=_(r(40)),d=r(1),p=r(6),y=_(r(50)),g=_(r(79)),m=r(49),v=_(r(71));function _(e){return e&&e.__esModule?e:{default:e}}var S=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,d.defaultValue)(e,{}),r.coordinates=(0,d.defaultValue)(e.coordinates,[]),r.type=p.GeometryType.polygon,!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");for(var n=0;n<r.coordinates.length;n++){var i=r.coordinates[n];if(i.length<4)throw new Error("每个环至少有四个点");if(i[i.length-1].length!==i[0].length)throw new Error("首尾点维度不相等");for(var s=0;s<i[i.length-1].length;s++)if(i[i.length-1][s]!==i[0][s])throw new Error("第一个位置和最后一个位置不相等")}return 3===r.coordinates[0][0].length&&(r.hasZ=!0),r._centroid=void 0,r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"addRing",value:function(e){if(!Array.isArray(e))throw new Error("传入参数错误");var t=[];return e.forEach(function(e){t.push(y.default.toCoordinates(e))}),this.coordinates.push(t),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"removeRing",value:function(e){if(e=Number(e),!this._isValidate(e,0))return null;var t=JSON.parse((0,i.default)(this._cloneCoordinates()[e]));this.coordinates.splice(e,1),this.coordinates=JSON.parse((0,i.default)(this.coordinates));for(var r=[],n=0;n<t.length;n++){var o=new y.default({coordinates:t[n]});r.push(o)}return r}},{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e}},{key:"contains",value:function(e){if(!e)throw new Error("传入参数错误");var t=f.polygon(this._cloneCoordinates()),r=f.point(y.default.toCoordinates(e));return f.booleanPointInPolygon(r,t)}},{key:"getPoint",value:function(e,t){if(!this._isValidate(e,t))return null;var r=this._cloneCoordinates()[e];return new y.default({coordinates:r[t]})}},{key:"insertPoint",value:function(e,t,r){if(!this._isValidate(e,t))return null;var n=this.coordinates[e];return Array.isArray(n)&&n.splice(t,0,r._cloneCoordinates()),this.coordinates[e]=n,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"removePoint",value:function(e,t){if(!this._isValidate(e,t))return null;var r=this.clone(),n=r.coordinates[e],o=new y.default({coordinates:n[t]});return Array.isArray(n)&&n.splice(t,1),this.coordinates=r.coordinates,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),o}},{key:"setPoint",value:function(e,t,r){if(!this._isValidate(e,t))return this;r instanceof y.default&&(r=r._cloneCoordinates());var n=this.coordinates[e];return Array.isArray(n)&&n.splice(t,1,r),this.coordinates[e]=n,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"toXMl",value:function(){return""}},{key:"toString",value:function(){for(var e="",t=0;t<this.coordinates.length;t++){for(var r=this.coordinates[t],n=0;n<r.length;n++)for(var i=r[n],o=0;o<i.length;o++)e+=i[o]+",";e=e.substring(0,e.length-1),e+="|"}return e.substring(0,e.length-1)}},{key:"toOldIGSGeometry",value:function(){for(var e=[],t={Rings:[],GID:0},r={},n=this.coordinates,i=0;i<n.length;i++){r={Arcs:[]};for(var o=[],a=0;a<n[i].length;a++){var s=n[i][a];o.push({x:s[0],y:s[1]})}r.Arcs.push({Dots:o,ArcID:i}),t.Rings.push(r)}return e.push(t),{RegGeom:e}}},{key:"getIGSType",value:function(){return p.IGSGeometryType.polygon}},{key:"toDots",value:function(){for(var e=[],t=this.coordinates[0],r=0;r<t.length;r++)e.push({x:t[r][0],y:t[r][1]});return e}},{key:"isClockwise",value:function(e){var t=[];if(!(e instanceof Array))throw new Error("ring不是数组类型!");for(var r=0;r<e.length;r++)if(e[r]instanceof y.default)t.push(e[r].coordinates);else{if(!(e[r]instanceof Array&&e[r].length>=2))throw new Error("ring中的点不是数组或Point类型!");t.push(e[r])}var n=f.lineString(t);return f.booleanClockwise(n)}},{key:"_isValidate",value:function(e,t){var r=this.coordinates.length;if(!(0,d.isNumber)(e)||e<0||e>=r)return!1;var n=this.coordinates[e].length;return!(!(0,d.isNumber)(t)||t<0||t>=n)}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return(0,m.calcExtent)(e,t,p.GeometryType.polygon,this.spatialReference)}},{key:"_isSelfIntersecting",value:function(){var e=f.polygon(this.coordinates);return f.kinks(e).features.length>0}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromExtent",value:function(e){var r=[];if(e instanceof g.default){var n=[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]];if(e&&e.hasZ){var i=e.zmin+.5*(e.zmax-e.zmin);n.forEach(function(e){e.push(i)})}r.push(n)}return new t({coordinates:r,spatialReference:e.spatialReference.clone()})}},{key:"fromJSON",value:function(e){return new t(e=(0,d.defaultValue)(e,{}))}}]),t}(h.default);(0,n.default)(S.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}},isSelfIntersecting:{configurable:!1,get:function(){return this._isSelfIntersecting()}},centroid:{configurable:!1,get:function(){return this._centroid=v.default.getCentroid(this),this._centroid}}}),t.default=S},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createVisualVariable=t.OpacityVariable=t.SizeVariable=t.ColorVariable=t.VisualVariable=void 0;var n=r(1),i=l(r(68)),o=l(r(116)),a=l(r(499)),s=l(r(501)),u=l(r(503));function l(e){return e&&e.__esModule?e:{default:e}}t.VisualVariable=o.default,t.ColorVariable=a.default,t.SizeVariable=s.default,t.OpacityVariable=u.default,t.createVisualVariable=function(e){switch((e=(0,n.defaultValue)(e,{})).type){case i.default.color:return new a.default(e);case i.default.size:return new s.default(e);case i.default.opacity:return new u.default(e);default:n.Log.error("视觉变量传入type类型参数有误!")}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(13)),i=g(r(3)),o=g(r(0)),a=g(r(2)),s=g(r(4)),u=g(r(7)),l=g(r(5)),c=r(16),f=r(1),h=r(9),d=r(6),p=r(12),y=r(29);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return e=(0,f.defaultValue)(e,{}),r.type=d.SubLayerType.IGSSceneSub,r.originLayerType=(0,f.defaultValue)(e.originLayerType,""),r.layerIndex=(0,f.defaultValue)(e.layerIndex,0),r.renderType=(0,f.defaultValue)(e.renderType,""),r.beginLevel=(0,f.defaultValue)(e.beginLevel,-1),r.endLevel=(0,f.defaultValue)(e.endLevel,-1),r.originPoint=e.originPoint?h.Point.fromJSON(e.originPoint):null,r.maxFrameSize=e.maxFrameSize?e.maxFrameSize:null,r.layerName=(0,f.defaultValue)(e.layerName,null),r.layerRenderIndex=(0,f.defaultValue)(e.layerRenderIndex,null),r.elevationScale=(0,f.defaultValue)(e.elevationScale,null),r.originLayerType===d.IGSSceneOriginLayerType.groupLayer3D&&(r.extent=(0,y.getExtentBySubLayers)(r.sublayers.items)),r.capabilities=(0,p.mergeCommonClientCapbilities)(r.capabilities,{type:!0,layerIndex:!0,maxFrameSize:!0}),r}return(0,l.default)(t,e),(0,a.default)(t,[{key:"reset",value:function(){this.layer&&this.layer._fireUpdateEvent("重置视角",[{name:"reset",params:[this.id],dataChanged:!0,operationType:"method"}])}},{key:"toJSON",value:function(){var e=(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"toJSON",this).call(this);return e.originLayerType=this.originLayerType,e.layerIndex=this.layerIndex,e.renderType=this.renderType,e.beginLevel=this.beginLevel,e.endLevel=this.endLevel,e.originPoint=this.originPoint?this.originPoint.toJSON():null,e.maxFrameSize=this.maxFrameSize?this.maxFrameSize:null,e.layerName=this.layerName,e.layerRenderIndex=this.layerRenderIndex,e.elevationScale=this.elevationScale,e}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"_updateDiff",value:function(e,r,n){(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"_updateDiff",this).call(this,e,r,n),this.layer&&this.layer._fireSublayerUpdateEvent(this.id,e,this[e])}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(c.SubLayer);(0,n.default)(m.prototype,{visible:{get:function(){return this._visible},set:function(e){this._visible=e}},opacity:{get:function(){return this._opacity},set:function(e){this._opacity=e}}}),t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(10)),i=u(r(0)),o=u(r(2)),a=r(9),s=r(1);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){(0,i.default)(this,e),t=(0,s.defaultValue)(t,{}),this.bandCount=t.bandCount,this.pixelType=t.pixelType,this.width=t.width,this.height=t.height,this.spatialReference=a.SpatialReference.fromJSON(t.spatialReference),this.colormap=t.colormap,this.extent=t.extent?a.Extent.fromJSON(t.extent):null,this.histograms=t.histograms,this.pixelSize=t.pixelSize?a.Point.fromJSON(t.pixelSize):null,this.statistics=t.statistics}return(0,o.default)(e,[{key:"toJSON",value:function(){var e={};return e.bandCount=this.bandCount,e.pixelType=this.pixelType,e.width=this.width,e.height=this.height,e.spatialReference=this.spatialReference?this.spatialReference.toJSON():null,e.colormap=JSON.parse((0,n.default)(this.colormap)),e.extent=this.extent?this.extent.toJSON():null,e.histograms=JSON.parse((0,n.default)(this.histograms)),e.pixelSize=this.pixelSize?this.pixelSize.toJSON():null,e.statistics=JSON.parse((0,n.default)(this.statistics)),e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,s.defaultValue)(t,{}))}}]),e}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.default=function e(t){(0,n.default)(this,e),t=(0,i.defaultValue)(t,{}),(0,i.extend)(this,t),this.Caption=void 0!==t.Caption?t.Caption:null,this.IsVisible=void 0===t.IsVisible||t.IsVisible,this.MaxScale=void 0!==t.MaxScale?parseFloat(t.MaxScale):0,this.MinScale=void 0!==t.MinScale?parseFloat(t.MinScale):0,this.RegInfo=void 0!==t.RegInfo?t.RegInfo:null,this.LinInfo=void 0!==t.LinInfo?t.LinInfo:null,this.PntInfo=void 0!==t.PntInfo?t.PntInfo:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(13)),i=y(r(3)),o=y(r(0)),a=y(r(2)),s=y(r(4)),u=y(r(5)),l=r(8),c=r(6),f=r(41),h=r(110),d=r(1),p=r(25);function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this)),n=(0,d.defaultValue)(e,{});return r.view=n.view,r.view||d.Log.error("视图对象不存在!"),r.layer=n.layer,r.layer||d.Log.error("图层对象不存在!"),r.innerLayer=null,r.id=r.layer.id,r._updateScaleVisible(),r.onRefresh=(0,p.debounce)(r.onRefresh,r.layer.forceRefreshDebounceDelay,r),r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"onAdd",value:function(e){}},{key:"onRemove",value:function(e){}},{key:"onUpdate",value:function(e){}},{key:"_getLayerViewVisible",value:function(e){return e||this._updateScaleVisible(),this._getVisible()&&this._scaleVisible}},{key:"_updateScaleVisible",value:function(){var e=this.view,t=e.scale;t&&e.getScale&&(t=e.getScale());var r=this._getMinScale(),n=this._getMaxScale(),i=!1;(!t||0===n&&0===r||0===n&&t<=r||0===r&&t>=n||0!==n&&0!==n&&n<=t&&t<=r)&&(i=!0),this._scaleVisible=i}},{key:"_getOpacity",value:function(){return this.layer.getCumulative("opacity",function(e,t){return e*t})}},{key:"_getVisible",value:function(){return this.layer.getCumulative("visible",function(e,t){return e&&t})}},{key:"_getMinScale",value:function(){return this.layer.getCumulative("minScale",function(e,t){return"number"==typeof t&&0!==t?0===e?t:Math.min(e,t):e})}},{key:"_getMaxScale",value:function(){return this.layer.getCumulative("maxScale",function(e,t){return"number"==typeof t&&0!==t?0===e?t:Math.max(e,t):e})}},{key:"checkLayerCanAddedStatus",value:function(){var e=this.layer.parent;return!(!e||!e.findLayerById(this.id))}},{key:"onRefresh",value:function(){}},{key:"_fireLayerViewUpdateEvent",value:function(e,t){var r=this.layer,n=new f.LayerViewUpdateEvent({type:c.LayerEventType.layerViewUpdate,target:this,layer:r,message:e,view:this.view,layerView:this,updateContent:Array.isArray(t)?t.map(function(e){return new h.LayerViewUpdateContent(e)}):[new h.LayerViewUpdateContent(t)]});r.fire(c.LayerEventType.layerViewUpdate,n),this.view.fire(c.LayerEventType.layerViewUpdate,n)}},{key:"_fireLayerViewEvent",value:function(e,t){var r=this.layer,n=new l.LayerEvent({type:e,message:t||"",layer:r});n.addProperty("view",this.view),n.addProperty("layerView",this),r.fire(e,n),this.view.fire(e,n)}}]),t}(l.Evented);(0,n.default)(g.prototype,{innerView:{get:function(){return this.view.getInnerView()}}}),t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMapGISBaseUrl=t.buildModuleUrl=t.decryptIGS=t.formatWebTileUrl=t.LayerBaseUrlRegExp=t.ServerBaseUrlRegExp=t.BaseRegExp=t.deleteNullValue=t.ServerUtil=t.UrlUtil=t.getFunctionArguments=t.TileMonitor=t.TimeInterval=t.TimeInfo=t.TimeExtent=t.EngineType=t.RasterInterpolationType=t.NormalizationType=t.TemporalUnit=t.getLayersExtent=t.getCrsOptions=t.getCrsOptionsBySpatialReference=t.getLayerViewsGeographicExtent=t.getValidLayers=t.isLayerViewValid=t.ExpressionParser=t.VectorTileLayer=t.TileSliceType=t.TDTLayerType=t.VisualVariableType=t.SeverVectorTileSubLayerType=t.ColorNameToHexMap=t.GeometryFilter=t.IGSSceneOriginLayerType=t.convertIGSClippingString=t.RasterInfo=t.RasterFunction=t.IGSImageryTileLayer=t.IGSImageryLayer=t.VoxelFilter=t.LOD=t.getFullBaseUrl=t.appendUrlParams=t.TileInfo=t.FetchRequest=t.ArcType=t.AreaUnits=t.LinearUnits=t.allSettled=t.inOrderPromise=t.debouncePromise=t.compareObject=t.throttle=t.getTileLayerNearestCenterAndScale=t.convertImageSourceToBase64=t.isWMTSReverse=t.isWMSReverse=t.getProjectionSrs=t.OGCLayer=t.OverlayLayer=t.UnknownLayer=t.RequestConfig=t.BaseServer=t.TileLayer=t.WorkFlowServer=t.Interceptor=t.CAttStruct=t.CAttDataRow=t.FeatureCollection=t.getZoomOffset=t.WebTileLayer=t.ArcGISVectorTileSubLayer=t.ArcGISVectorTileLayer=t.StylePattern3D=t.ColorMaterial=void 0,t.MaterialType=t.WaveStrength=t.WaterbodySize=t.WaterSymbol3DLayer=t.TextHalo=t.TextSymbol3DLayer=t.Edges3D=t.ExtrudeSymbol3DLayer=t.ObjectSymbol3DLayer=t.IconResource=t.PointSymbol3DOutline=t.IconSymbol3DLayer=t.PatternStyle=t.FillSymbol3DOutline=t.FillSymbol3DLayer=t.ProfileType=t.AnchorType=t.PathSymbol3DLayer=t.LineSymbol3DLayer=t.LineStylePattern3D=t.LinePatternStyle=t.LineStyleMarker3D=t.LineMarkerStyle=t.LineMarkerPlacement=t.LineJoinType=t.LineCapType=t.Symbol3DLayerType=t.Symbol3DLayer=t.Symbol3DVerticalOffset=t.Callout3D=t.LineCallout3D=t.PolygonSymbol3D=t.PointSymbol3D=t.LineSymbol3D=t.LabelSymbol3D=t.Symbol3D=t.RendererUtil=t.VisualVariable=t.OpacityVariable=t.ColorVariable=t.SizeVariable=t.HeatmapColorStop=t.LabelClass=t.setElevationInfo=t.Corporation=t.WMTSCorporation=t.TileInfoUtil=t.BaseFeatureLayerView=t.createSimpleFillSymbolCanvas=t.createSimpleMarkerSymbolCanvas=t.ServiceConfigResponseInterceptors=t.ServiceConfigRequestInterceptors=t.ServiceConfigToken=t.Config=t.editGeometryByArc3=t.editFeatureByArc3=t.Geometry=t.RadiusUnit=t.formatBaseUrl=t.T=t.proj4=t.EPSG=t.isCustomSP=t.is4326=t.getUrlType=t.PictureFormat=t.UrlServerType=t.SpatialReference=t.LayerView=t.GroupLayerView=t.BaseRendererLayerView=t.BaseGraphicsLayerView=t.SceneView=t.MapView=t.BaseView=t.inputCss=t.getBaseUrl=t.toJSON=t.getVideoType=t.isObject=t.notNULL=t.cloneObject=t.returnPoint=t.formatPoints=t.newGuid=t.extendDeep=t.isBoolean=t.deepClone=t.isString=t.Log=t.getOutStatisticsParameter=t.getGeometryParameter=t.isNull=t.limitExtentToSRSMaxExtent=t.getExtendExtentByPixel=t.createGeometry=t.normalize=t.defined=t.defaultValue=t.getGUID=void 0,t.bind=t.getParameterString=t.urlAppend=t.transformResult=t.isInTheSameDomain=t.isNumber=t.isArray=t.extend=t.getIGSDynamicLayer=t.BaseRenderer=t.HeatmapRenderer=t.RankRenderer=t.RandomRenderer=t.ClusterRenderer=t.SimpleRenderer=t.ClassBreakRenderer=t.UniqueValueRenderer=t.MapGISTextSymbol=t.PictureFillSymbol=t.PictureMarkerSymbol=t.Symbol=t.TextSymbol=t.SimpleMarkerSymbol=t.SimpleLineSymbol=t.SimpleFillSymbol=t.BaseSwipeTool=t.SwipeMode=t.ShadowMode=t.SceneMode=t.VerticalAlignment=t.HorizontalAlignment=t.FeatureExpressionInfo=t.ProjectInfoBySrsID=t.TileMatrixSet=t.OutStatistic=t.ProjectInfo=t.ElevationInfo=t.ElevationMode=t.IGSSymbolType=t.SymbolType=t.SketchEditorToolEventType=t.SketchEditorState=t.SketchEditorEventType=t.SketchEditMode=t.SketchDataType=t.VideoSourceType=t.VectorTileGeometryType=t.RendererType=t.AngleUnit=t.LengthUnit=t.ViewEventType=t.LoadStatus=t.LogType=t.IGSGeometryType=t.TokenAttachType=t.SubLayerType=t.LayerType=t.GeometryType=t.CustomWKID=t.SpatialRelation=t.StatisticType=t.MapEventType=t.LayerEventType=t.FetchMethod=t.ReturnFormat=t.getFeaturesFromFeatureSet=t.Feature=t.FeatureSet=t.CollectionFlattener=t.Collection=t.ErrorEvent=t.FeatureRender=t.Evented=t.zondy=t.Zondy=t.Event=t.LayerEvent=t.Font=t.Color=t.GeometryEngine=t.MultiPoint=t.MultiLineString=t.MultiPolygon=t.Circle=t.Point=t.LineString=t.Polygon=t.Extent=t.SketchEditorEvent=t.SketchStyle=t.getTipTextByEditOption=t.SketchFreehandPolygonDrawTool=t.SketchFreehandPolylineDrawTool=t.SketchExtentDrawTool=t.SketchCircleDrawTool=t.SketchPolygonDrawTool=t.SketchPolylineDrawTool=t.SketchPointDrawTool=t.SketchBaseDrawTool=t.SketchEditor3D=void 0,t.SketchEditor=t.CoordnateTransform=t.WMTSStyle=t.Projection=t.Layer=t.S3MTilesCacheLayer=t.VideoLayer=t.TerrainCacheLayer=t.Cesium3DTilesCacheLayer=t.GeoJSONLayer=t.GraphicsLayer=t.GroupLayer=t.MapVLayer=t.EchartsLayer=t.SubLayer=t.ISSceneModelCacheSubLayer=t.ISSceneSubLayer=t.ISSceneLayer=t.FeatureFilter=t.IGSFeatureLayer=t.BaseScene=t.ISScene=t.IGSScene=t.IGSTileLayer=t.IGSSceneTerrainSubLayer=t.IGSSceneMapRefSubLayer=t.IGSSceneModelCacheSubLayer=t.IGSSceneLabelSubLayer=t.IGSSceneSubLayer=t.IGSSceneLayer=t.IGSMapImageSubLayer=t.IGSMapImageLayer=t.IGSVectorTileSubLayer=t.IGSVectorTileLayer=t.WMTSSubLayer=t.WFSLayer=t.WMSSubLayer=t.WMSLayer=t.WMTSLayer=t.ArcGISTileLayer=t.ArcGISMapImageSubLayer=t.M3DModelCacheLayer=t.ArcGISMapImageLayer=t.Basemap=t.Map=t.ArcGISVectorTileServer=t.ArcGISFeatureServer=t.ArcGISGeometryServer=t.ThemesInfo=t.ThemeServer=t.ItemValue=t.FolderInfoAttribute=t.FolderInfo=t.ExpInfo=t.CUniqueThemeInfo=t.CUniqueTheme=t.CThemeInfo=t.CTheme=t.CSimpleTheme=t.CRegInfo=t.CRangeThemeInfo=t.CRangeTheme=t.CRandomTheme=t.CPntInfo=t.CMultiClassTheme=t.CLinInfo=t.CGraduatedSymbolTheme=t.CFourColorTheme=t.CDotDensityTheme=t.CChartType=t.CChartThemeRepresentInfo=t.CChartThemeInfo=t.CChartTheme=t.CChartLabelFormat=t.CAnnInfo=t.CAllOtherDataItemInfoSource=t.ISSceneServer=t.ArcGISMapServer=t.WFSServer=t.WMTSServer=t.WMSServer=t.SceneServer=t.ResourceServer=t.PlotServer=t.VectorTileServer=t.TileServer=t.RootServer=t.SecurityServer=t.TerrainServer=t.PoiServer=t.Cesium3DTilesServer=t.AddressServer=t.GeometryServer=t.ImageServer=t.M3DServer=t.FeatureServer=t.MapServer=t.ResponseInterceptor=t.RequestInterceptor=t.FetchServer=void 0;var n=S(r(24)),i=S(r(268)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(39)),a=r(643),s=r(302),u=r(27),l=r(163),c=r(59),f=r(9),h=r(8),d=r(1),p=r(6),y=r(28),g=r(621),m=r(260),v=r(641),_=r(642);function S(e){return e&&e.__esModule?e:{default:e}}window.zondy={};var b=window.zondy;b.service={},b.geometry={},b.layer={},b.enum={},b.symbol={},b.widget={},b.tool={},b.renderer={},b.renderer.visualvariable={},b.themelayer={},b.util={},b.video={},b.LOGTYPE="warningAndError",b.VERSION="17.6.20",b.service.FetchServer=u.FetchServer,b.service.RequestInterceptor=u.RequestInterceptor,b.service.ResponseInterceptor=u.ResponseInterceptor,b.service.MapServer=u.MapServer,b.service.FeatureServer=u.FeatureServer,b.service.M3DServer=u.M3DServer,b.service.ImageServer=u.ImageServer,b.service.GeometryServer=u.GeometryServer,b.service.AddressServer=u.AddressServer,b.service.Cesium3DTilesServer=u.Cesium3DTilesServer,b.service.PoiServer=u.PoiServer,b.service.TerrainServer=u.TerrainServer,b.service.SecurityServer=u.SecurityServer,b.service.RootServer=u.RootServer,b.service.TileServer=u.TileServer,b.service.VectorTileServer=u.VectorTileServer,b.service.PlotServer=u.PlotServer,b.service.ResourceServer=u.ResourceServer,b.service.SceneServer=u.SceneServer,b.service.WMSServer=u.WMSServer,b.service.WMTSServer=u.WMTSServer,b.service.WFSServer=u.WFSServer,b.service.ArcGISMapServer=u.ArcGISMapServer,b.service.ThemeServer=u.ThemeServer,b.service.ArcGISGeometryServer=u.ArcGISGeometryServer,b.service.ArcGISFeatureServer=u.ArcGISFeatureServer,b.service.ArcGISVectorTileServer=u.ArcGISVectorTileServer,b.service.Config=u.Config,b.service.FetchRequest=u.FetchRequest,b.service.GeometryFilter=u.GeometryFilter,b.service.Interceptor=u.Interceptor,b.service.WorkFlowServer=u.WorkFlowServer,b.service.BaseServer=u.BaseServer,b.service.RequestConfig=u.RequestConfig,b.service.ISSceneServer=u.ISSceneServer,b.themelayer.CAllOtherDataItemInfoSource=u.CAllOtherDataItemInfoSource,b.themelayer.CAnnInfo=u.CAnnInfo,b.themelayer.CChartLabelFormat=u.CChartLabelFormat,b.themelayer.CChartTheme=u.CChartTheme,b.themelayer.CChartThemeInfo=u.CChartThemeInfo,b.themelayer.CChartThemeRepresentInfo=u.CChartThemeRepresentInfo,b.themelayer.CChartType=u.CChartType,b.themelayer.CDotDensityTheme=u.CDotDensityTheme,b.themelayer.CFourColorTheme=u.CFourColorTheme,b.themelayer.CGraduatedSymbolTheme=u.CGraduatedSymbolTheme,b.themelayer.CLinInfo=u.CLinInfo,b.themelayer.CMultiClassTheme=u.CMultiClassTheme,b.themelayer.CPntInfo=u.CPntInfo,b.themelayer.CRandomTheme=u.CRandomTheme,b.themelayer.CRangeTheme=u.CRangeTheme,b.themelayer.CRangeThemeInfo=u.CRangeThemeInfo,b.themelayer.CRegInfo=u.CRegInfo,b.themelayer.CSimpleTheme=u.CSimpleTheme,b.themelayer.CTheme=u.CTheme,b.themelayer.CThemeInfo=u.CThemeInfo,b.themelayer.CUniqueTheme=u.CUniqueTheme,b.themelayer.CUniqueThemeInfo=u.CUniqueThemeInfo,b.themelayer.ExpInfo=u.ExpInfo,b.themelayer.FolderInfo=u.FolderInfo,b.themelayer.FolderInfoAttribute=u.FolderInfoAttribute,b.themelayer.ItemValue=u.ItemValue,b.themelayer.ThemesInfo=u.ThemesInfo,b.layer.WMTSLayer=c.WMTSLayer,b.layer.WMSLayer=c.WMSLayer,b.layer.WMSSubLayer=c.WMSSubLayer,b.layer.WFSLayer=c.WFSLayer,b.layer.WMTSSubLayer=c.WMTSSubLayer,b.layer.VectorTileLayer=c.VectorTileLayer,b.layer.IGSVectorTileLayer=c.IGSVectorTileLayer,b.layer.IGSVectorTileSubLayer=c.IGSVectorTileSubLayer,b.layer.IGSMapImageLayer=c.IGSMapImageLayer,b.layer.IGSMapImageSubLayer=c.IGSMapImageSubLayer,b.layer.IGSSceneLayer=c.IGSSceneLayer,b.layer.IGSSceneSubLayer=c.IGSSceneSubLayer,b.layer.IGSSceneLabelSubLayer=c.IGSSceneLabelSubLayer,b.layer.IGSSceneModelCacheSubLayer=c.IGSSceneModelCacheSubLayer,b.layer.IGSSceneMapRefSubLayer=c.IGSSceneMapRefSubLayer,b.layer.IGSSceneTerrainSubLayer=c.IGSSceneTerrainSubLayer,b.layer.IGSTileLayer=c.IGSTileLayer,b.layer.IGSScene=c.IGSScene,b.layer.ISScene=c.ISScene,b.layer.BaseScene=c.BaseScene,b.layer.IGSFeatureLayer=c.IGSFeatureLayer,b.layer.FeatureFilter=c.FeatureFilter,b.layer.EchartsLayer=c.EchartsLayer,b.layer.MapVLayer=c.MapVLayer,b.layer.GroupLayer=c.GroupLayer,b.layer.GraphicsLayer=c.GraphicsLayer,b.layer.GeoJSONLayer=c.GeoJSONLayer,b.layer.Cesium3DTilesCacheLayer=c.Cesium3DTilesCacheLayer,b.layer.TerrainCacheLayer=c.TerrainCacheLayer,b.layer.VideoLayer=c.VideoLayer,b.layer.LabelClass=c.LabelClass,b.layer.ArcGISMapImageLayer=c.ArcGISMapImageLayer,b.layer.ArcGISMapImageSubLayer=c.ArcGISMapImageSubLayer,b.layer.M3DModelCacheLayer=c.M3DModelCacheLayer,b.layer.ArcGISTileLayer=c.ArcGISTileLayer,b.layer.Layer=c.Layer,b.layer.ArcGISVectorTileLayer=c.ArcGISVectorTileLayer,b.layer.ArcGISVectorTileSubLayer=c.ArcGISVectorTileSubLayer,b.layer.WebTileLayer=c.WebTileLayer,b.layer.TileInfo=c.TileInfo,b.layer.LOD=c.LOD,b.layer.VoxelFilter=c.VoxelFilter,b.layer.IGSImageryLayer=c.IGSImageryLayer,b.layer.IGSImageryTileLayer=c.IGSImageryTileLayer,b.layer.RasterFunction=c.RasterFunction,b.layer.RasterInfo=c.RasterInfo,b.layer.TileLayer=c.TileLayer,b.layer.UnknownLayer=c.UnknownLayer,b.layer.OverlayLayer=c.OverlayLayer,b.layer.OGCLayer=c.OGCLayer,b.layer.ISSceneLayer=c.ISSceneLayer,b.layer.ISSceneSubLayer=c.ISSceneSubLayer,b.layer.ISSceneModelCacheSubLayer=c.ISSceneModelCacheSubLayer,b.layer.SubLayer=c.SubLayer,b.layer.S3MTilesCacheLayer=c.S3MTilesCacheLayer,b.Map=c.Map,b.Basemap=c.Basemap,b.SpatialReference=f.SpatialReference,b.Color=h.Color,b.Collection=h.Collection,b.CollectionFlattener=h.CollectionFlattener,b.FeatureSet=h.FeatureSet,b.Feature=h.Feature,b.ElevationInfo=h.ElevationInfo,b.ProjectInfo=h.ProjectInfo,b.OutStatistic=h.OutStatistic,b.TileMatrixSet=h.TileMatrixSet,b.ProjectInfoBySrsID=h.ProjectInfoBySrsID,b.FeatureExpressionInfo=h.FeatureExpressionInfo,b.BaseView=g.BaseView,b.MapView=g.MapView,b.SceneView=g.SceneView,b.BaseFeatureLayerView=g.BaseFeatureLayerView,b.BaseRendererLayerView=g.BaseRendererLayerView,b.GroupLayerView=g.GroupLayerView,b.WMTSStyle=h.WMTSStyle,b.CAttDataRow=u.CAttDataRow,b.CAttStruct=u.CAttStruct,b.TimeExtent=h.TimeExtent,b.TimeInfo=h.TimeInfo,b.TimeInterval=h.TimeInterval,b.TileMonitor=h.TileMonitor,b.renderer.UniqueValueRenderer=c.UniqueValueRenderer,b.renderer.ClassBreakRenderer=c.ClassBreakRenderer,b.renderer.SimpleRenderer=c.SimpleRenderer,b.renderer.ClusterRenderer=c.ClusterRenderer,b.renderer.RandomRenderer=c.RandomRenderer,b.renderer.RankRenderer=c.RankRenderer,b.renderer.HeatmapRenderer=c.HeatmapRenderer,b.renderer.BaseRenderer=c.BaseRenderer,b.renderer.HeatmapColorStop=c.HeatmapColorStop,b.renderer.visualvariable.SizeVariable=c.SizeVariable,b.renderer.visualvariable.ColorVariable=c.ColorVariable,b.renderer.visualvariable.OpacityVariable=c.OpacityVariable,b.renderer.visualvariable.VisualVariable=c.VisualVariable,b.geometry.Extent=f.Extent,b.geometry.Polygon=f.Polygon,b.geometry.MultiPolygon=f.MultiPolygon,b.geometry.LineString=f.LineString,b.geometry.MultiLineString=f.MultiLineString,b.geometry.Point=f.Point,b.geometry.MultiPoint=f.MultiPoint,b.geometry.Circle=f.Circle,b.geometry.GeometryEngine=f.GeometryEngine,b.geometry.Geometry=f.Geometry,b.geometry.Projection=h.Projection,b.geometry.Proj4=i.default,b.geometry.T=o,b.enum.ReturnFormat=p.ReturnFormat,b.enum.FetchMethod=p.FetchMethod,b.enum.LayerEventType=p.LayerEventType,b.enum.MapEventType=p.MapEventType,b.enum.StatisticType=p.StatisticType,b.enum.SpatialRelation=p.SpatialRelation,b.enum.CustomWKID=p.CustomWKID,b.enum.LayerType=p.LayerType,b.enum.SubLayerType=p.SubLayerType,b.enum.TokenAttachType=p.TokenAttachType,b.enum.IGSGeometryType=p.IGSGeometryType,b.enum.LogType=p.LogType,b.enum.LoadStatus=p.LoadStatus,b.enum.ViewEventType=p.ViewEventType,b.enum.LengthUnit=p.LengthUnit,b.enum.AngleUnit=p.AngleUnit,b.enum.RendererType=p.RendererType,b.enum.VectorTileGeometryType=p.VectorTileGeometryType,b.enum.VideoSourceType=p.VideoSourceType,b.enum.SketchDataType=p.SketchDataType,b.enum.SketchEditMode=p.SketchEditMode,b.enum.SketchEditorEventType=p.SketchEditorEventType,b.enum.SketchEditorState=p.SketchEditorState,b.enum.SketchEditorToolEventType=p.SketchEditorToolEventType,b.enum.SymbolType=p.SymbolType,b.enum.IGSSymbolType=p.IGSSymbolType,b.enum.ElevationMode=p.ElevationMode,b.enum.HorizontalAlignment=p.HorizontalAlignment,b.enum.VerticalAlignment=p.VerticalAlignment,b.enum.SceneMode=p.SceneMode,b.enum.ShadowMode=p.ShadowMode,b.enum.SwipeMode=p.SwipeMode,b.enum.UrlServerType=p.UrlServerType,b.enum.PictureFormat=p.PictureFormat,b.enum.RadiusUnit=p.RadiusUnit,b.enum.WMTSCorporation=p.WMTSCorporation,b.enum.Corporation=p.Corporation,b.enum.Symbol3DLayerType=p.Symbol3DLayerType,b.enum.LineCapType=p.LineCapType,b.enum.LineJoinType=p.LineJoinType,b.enum.LineMarkerPlacement=p.LineMarkerPlacement,b.enum.LineMarkerStyle=p.LineMarkerStyle,b.enum.LinePatternStyle=p.LinePatternStyle,b.enum.AnchorType=p.AnchorType,b.enum.ProfileType=p.ProfileType,b.enum.PatternStyle=p.PatternStyle,b.enum.WaterbodySize=p.WaterbodySize,b.enum.WaveStrength=p.WaveStrength,b.enum.MaterialType=p.MaterialType,b.enum.LinearUnits=p.LinearUnits,b.enum.AreaUnits=p.AreaUnits,b.enum.ArcType=p.ArcType,b.enum.IGSSceneOriginLayerType=p.IGSSceneOriginLayerType,b.enum.ColorNameToHexMap=p.ColorNameToHexMap,b.enum.SeverVectorTileSubLayerType=p.SeverVectorTileSubLayerType,b.enum.GeometryType=p.GeometryType,b.enum.VisualVariableType=p.VisualVariableType,b.enum.TDTLayerType=p.TDTLayerType,b.enum.TileSliceType=p.TileSliceType,b.enum.TemporalUnit=p.TemporalUnit,b.enum.NormalizationType=p.NormalizationType,b.enum.RasterInterpolationType=p.RasterInterpolationType,b.enum.EngineType=p.EngineType,b.util.formatBaseUrl=u.formatBaseUrl,b.util.ServiceConfigToken=u.ServiceConfigToken,b.util.ServiceConfigRequestInterceptors=u.ServiceConfigRequestInterceptors,b.util.ServiceConfigResponseInterceptors=u.ServiceConfigResponseInterceptors,b.util.convertIGSClippingString=u.convertIGSClippingString,b.util.getUrlType=c.getUrlType,b.util.is4326=c.is4326,b.util.isCustomSP=c.isCustomSP,b.util.getIGSDynamicLayer=c.getIGSDynamicLayer,b.util.setElevationInfo=c.setElevationInfo,b.util.TileInfoUtil=c.TileInfoUtil,b.util.getZoomOffset=c.getZoomOffset,b.util.appendUrlParams=c.appendUrlParams,b.util.getFullBaseUrl=c.getFullBaseUrl,b.util.editFeatureByArc3=f.editFeatureByArc3,b.util.editGeometryByArc3=f.editGeometryByArc3,b.util.CoordnateTransform=h.CoordnateTransform,b.util.getFeaturesFromFeatureSet=h.getFeaturesFromFeatureSet,b.util.EPSG=h.EPSG,b.util.extend=d.extend,b.util.isArray=d.isArray,b.util.isNumber=d.isNumber,b.util.isInTheSameDomain=d.isInTheSameDomain,b.util.transformResult=d.transformResult,b.util.urlAppend=d.urlAppend,b.util.getParameterString=d.getParameterString,b.util.bind=d.bind,b.util.getGUID=d.getGUID,b.util.defaultValue=d.defaultValue,b.util.defined=d.defined,b.util.normalize=d.normalize,b.util.createGeometry=d.createGeometry,b.util.getExtendExtentByPixel=d.getExtendExtentByPixel,b.util.limitExtentToSRSMaxExtent=d.limitExtentToSRSMaxExtent,b.util.isNull=d.isNull,b.util.getGeometryParameter=d.getGeometryParameter,b.util.getOutStatisticsParameter=d.getOutStatisticsParameter,b.util.Log=d.Log,b.util.isString=d.isString,b.util.deepClone=d.deepClone,b.util.isBoolean=d.isBoolean,b.util.extendDeep=d.extendDeep,b.util.newGuid=d.newGuid,b.util.formatPoints=d.formatPoints,b.util.returnPoint=d.returnPoint,b.util.cloneObject=d.cloneObject,b.util.notNULL=d.notNULL,b.util.isObject=d.isObject,b.util.getVideoType=d.getVideoType,b.util.toJSON=d.toJSON,b.util.getBaseUrl=d.getBaseUrl,b.util.inputCss=d.inputCss,b.util.getProjectionSrs=d.getProjectionSrs,b.util.isWMSReverse=d.isWMSReverse,b.util.isWMTSReverse=d.isWMTSReverse,b.util.convertImageSourceToBase64=d.convertImageSourceToBase64,b.util.getTileLayerNearestCenterAndScale=d.getTileLayerNearestCenterAndScale,b.util.throttle=d.throttle,b.util.compareObject=d.compareObject,b.util.debouncePromise=d.debouncePromise,b.util.inOrderPromise=d.inOrderPromise,b.util.allSettled=d.allSettled,b.util.ExpressionParser=d.ExpressionParser,b.util.RendererUtil=g.RendererUtil,b.util.createSimpleMarkerSymbolCanvas=v.createSimpleMarkerSymbolCanvas,b.util.createSimpleFillSymbolCanvas=v.createSimpleFillSymbolCanvas,b.util.isLayerViewValid=l.isLayerViewValid,b.util.getValidLayers=l.getValidLayers,b.util.getLayerViewsGeographicExtent=l.getLayerViewsGeographicExtent,b.util.getCrsOptionsBySpatialReference=l.getCrsOptionsBySpatialReference,b.util.getCrsOptions=l.getCrsOptions,b.util.getLayersExtent=l.getLayersExtent,b.util.getFunctionArguments=d.getFunctionArguments,b.util.deleteNullValue=d.deleteNullValue,b.util.ServerUtil=u.ServerUtil,b.util.UrlUtil=u.UrlUtil,b.util.BaseRegExp=u.BaseRegExp,b.util.ServerBaseUrlRegExp=u.ServerBaseUrlRegExp,b.util.LayerBaseUrlRegExp=u.LayerBaseUrlRegExp,b.util.formatWebTileUrl=c.formatWebTileUrl,b.util.decryptIGS=a.decryptIGS,b.util.buildModuleUrl=d.buildModuleUrl,b.util.getMapGISBaseUrl=d.getMapGISBaseUrl,b.symbol.SimpleFillSymbol=y.SimpleFillSymbol,b.symbol.SimpleLineSymbol=y.SimpleLineSymbol,b.symbol.SimpleMarkerSymbol=y.SimpleMarkerSymbol,b.symbol.TextSymbol=y.TextSymbol,b.symbol.Symbol=y.Symbol,b.symbol.PictureMarkerSymbol=y.PictureMarkerSymbol,b.symbol.PictureFillSymbol=y.PictureFillSymbol,b.symbol.MapGISTextSymbol=y.MapGISTextSymbol,b.symbol.Symbol3D=y.Symbol3D,b.symbol.LabelSymbol3D=y.LabelSymbol3D,b.symbol.LineSymbol3D=y.LineSymbol3D,b.symbol.PointSymbol3D=y.PointSymbol3D,b.symbol.PolygonSymbol3D=y.PolygonSymbol3D,b.symbol.LineCallout3D=y.LineCallout3D,b.symbol.Callout3D=y.Callout3D,b.symbol.Symbol3DVerticalOffset=y.Symbol3DVerticalOffset,b.symbol.Symbol3DLayer=y.Symbol3DLayer,b.symbol.LineStyleMarker3D=y.LineStyleMarker3D,b.symbol.LineStylePattern3D=y.LineStylePattern3D,b.symbol.LineSymbol3DLayer=y.LineSymbol3DLayer,b.symbol.PathSymbol3DLayer=y.PathSymbol3DLayer,b.symbol.FillSymbol3DLayer=y.FillSymbol3DLayer,b.symbol.FillSymbol3DOutline=y.FillSymbol3DOutline,b.symbol.IconSymbol3DLayer=y.IconSymbol3DLayer,b.symbol.PointSymbol3DOutline=y.PointSymbol3DOutline,b.symbol.IconResource=y.IconResource,b.symbol.ObjectSymbol3DLayer=y.ObjectSymbol3DLayer,b.symbol.ExtrudeSymbol3DLayer=y.ExtrudeSymbol3DLayer,b.symbol.Edges3D=y.Edges3D,b.symbol.TextSymbol3DLayer=y.TextSymbol3DLayer,b.symbol.TextHalo=y.TextHalo,b.symbol.WaterSymbol3DLayer=y.WaterSymbol3DLayer,b.symbol.ColorMaterial=y.ColorMaterial,b.symbol.StylePattern3D=y.StylePattern3D,b.symbol.Font=h.Font,b.tool.sketch={},b.tool.sketch.SketchStyle=m.SketchStyle,b.tool.sketch.SketchEditorEvent=m.SketchEditorEvent,b.tool.sketch.SketchEditor=m.SketchEditor,b.tool.sketch.SketchEditor3D=m.SketchEditor3D,b.tool.sketch.SketchBaseDrawTool=m.SketchBaseDrawTool,b.tool.sketch.SketchPointDrawTool=m.SketchPointDrawTool,b.tool.sketch.SketchPolylineDrawTool=m.SketchPolylineDrawTool,b.tool.sketch.SketchPolygonDrawTool=m.SketchPolygonDrawTool,b.tool.sketch.SketchCircleDrawTool=m.SketchCircleDrawTool,b.tool.sketch.SketchExtentDrawTool=m.SketchExtentDrawTool,b.tool.sketch.SketchFreehandPolylineDrawTool=m.SketchFreehandPolylineDrawTool,b.tool.sketch.SketchFreehandPolygonDrawTool=m.SketchFreehandPolygonDrawTool,b.tool.sketch.Utils={},b.tool.sketch.Utils.getTipTextByEditOption=m.getTipTextByEditOption,b.tool.BaseSwipeTool=s.BaseSwipeTool,window.Zondy={};var x=window.Zondy;x.Service=b.service,x.Geometry=b.geometry,x.Layer=b.layer,x.Enum=b.enum,x.Symbol=b.symbol,x.Widget=b.widget,x.Tool={},x.Tool.Sketch=b.widget.sketch,x.Renderer={},(0,n.default)(b.renderer).forEach(function(e){"visualvariable"!==e&&(x.Renderer[e]=b.renderer[e])}),x.Renderer.VisualVariable=b.renderer.visualvariable,x.Object={},x.Object.Theme={},x.Object.Theme.CAllOtherDataItemInfoSource=u.CAllOtherDataItemInfoSource,x.Object.Theme.CAnnInfo=u.CAnnInfo,x.Object.Theme.CChartLabelFormat=u.CChartLabelFormat,x.Object.Theme.CChartTheme=u.CChartTheme,x.Object.Theme.CChartThemeInfo=u.CChartThemeInfo,x.Object.Theme.CChartThemeRepresentInfo=u.CChartThemeRepresentInfo,x.Object.Theme.CChartType=u.CChartType,x.Object.Theme.CDotDensityTheme=u.CDotDensityTheme,x.Object.Theme.CFourColorTheme=u.CFourColorTheme,x.Object.Theme.CGraduatedSymbolTheme=u.CGraduatedSymbolTheme,x.Object.Theme.CLinInfo=u.CLinInfo,x.Object.Theme.CMultiClassTheme=u.CMultiClassTheme,x.Object.Theme.CPntInfo=u.CPntInfo,x.Object.Theme.CRandomTheme=u.CRandomTheme,x.Object.Theme.CRangeTheme=u.CRangeTheme,x.Object.Theme.CRangeThemeInfo=u.CRangeThemeInfo,x.Object.Theme.CRegInfo=u.CRegInfo,x.Object.Theme.CSimpleTheme=u.CSimpleTheme,x.Object.Theme.CTheme=u.CTheme,x.Object.Theme.CThemeInfo=u.CThemeInfo,x.Object.Theme.CUniqueTheme=u.CUniqueTheme,x.Object.Theme.CUniqueThemeInfo=u.CUniqueThemeInfo,x.Object.Theme.ExpInfo=u.ExpInfo,x.Object.Theme.FolderInfo=u.FolderInfo,x.Object.Theme.FolderInfoAttribute=u.FolderInfoAttribute,x.Object.Theme.ItemValue=u.ItemValue,x.Object.Theme.ThemesInfo=u.ThemesInfo,x.Object.CAttDataRow=u.CAttDataRow,x.Object.CAttStruct=u.CAttStruct,x.Utils=b.util,x.Map=c.Map,x.Basemap=c.Basemap,x.SpatialReference=f.SpatialReference,x.Color=h.Color,x.Font=h.Font,x.Collection=h.Collection,x.FeatureSet=h.FeatureSet,x.Feature=h.Feature,x.ElevationInfo=h.ElevationInfo,x.ProjectInfo=h.ProjectInfo,x.OutStatistic=h.OutStatistic,x.TileMatrixSet=h.TileMatrixSet,x.ProjectInfoBySrsID=h.ProjectInfoBySrsID,x.FeatureExpressionInfo=h.FeatureExpressionInfo,x.BaseView=g.BaseView,x.MapView=g.MapView,x.SceneView=g.SceneView,x.BaseFeatureLayerView=g.BaseFeatureLayerView,x.BaseRendererLayerView=g.BaseRendererLayerView,x.GroupLayerView=g.GroupLayerView,x.WMTSStyle=h.WMTSStyle,x.SketchPolygonDrawTool=m.SketchPolygonDrawTool,x.SketchStyle=m.SketchStyle,x.LogType=b.LOGTYPE,x.Version=b.VERSION;var w={FetchServer:u.FetchServer,RequestInterceptor:u.RequestInterceptor,ResponseInterceptor:u.ResponseInterceptor,MapServer:u.MapServer,FeatureServer:u.FeatureServer,M3DServer:u.M3DServer,ImageServer:u.ImageServer,GeometryServer:u.GeometryServer,AddressServer:u.AddressServer,Cesium3DTilesServer:u.Cesium3DTilesServer,PoiServer:u.PoiServer,TerrainServer:u.TerrainServer,SecurityServer:u.SecurityServer,RootServer:u.RootServer,TileServer:u.TileServer,VectorTileServer:u.VectorTileServer,PlotServer:u.PlotServer,ResourceServer:u.ResourceServer,SceneServer:u.SceneServer,WMSServer:u.WMSServer,WMTSServer:u.WMTSServer,WFSServer:u.WFSServer,ArcGISMapServer:u.ArcGISMapServer,ISSceneServer:u.ISSceneServer,CAllOtherDataItemInfoSource:u.CAllOtherDataItemInfoSource,CAnnInfo:u.CAnnInfo,CChartLabelFormat:u.CChartLabelFormat,CChartTheme:u.CChartTheme,CChartThemeInfo:u.CChartThemeInfo,CChartThemeRepresentInfo:u.CChartThemeRepresentInfo,CChartType:u.CChartType,CDotDensityTheme:u.CDotDensityTheme,CFourColorTheme:u.CFourColorTheme,CGraduatedSymbolTheme:u.CGraduatedSymbolTheme,CLinInfo:u.CLinInfo,CMultiClassTheme:u.CMultiClassTheme,CPntInfo:u.CPntInfo,CRandomTheme:u.CRandomTheme,CRangeTheme:u.CRangeTheme,CRangeThemeInfo:u.CRangeThemeInfo,CRegInfo:u.CRegInfo,CSimpleTheme:u.CSimpleTheme,CTheme:u.CTheme,CThemeInfo:u.CThemeInfo,CUniqueTheme:u.CUniqueTheme,CUniqueThemeInfo:u.CUniqueThemeInfo,ExpInfo:u.ExpInfo,FolderInfo:u.FolderInfo,FolderInfoAttribute:u.FolderInfoAttribute,ItemValue:u.ItemValue,ThemeServer:u.ThemeServer,ThemesInfo:u.ThemesInfo,ArcGISGeometryServer:u.ArcGISGeometryServer,ArcGISFeatureServer:u.ArcGISFeatureServer,ArcGISVectorTileServer:u.ArcGISVectorTileServer,Map:c.Map,Basemap:c.Basemap,ArcGISMapImageLayer:c.ArcGISMapImageLayer,M3DModelCacheLayer:c.M3DModelCacheLayer,ArcGISMapImageSubLayer:c.ArcGISMapImageSubLayer,ArcGISTileLayer:c.ArcGISTileLayer,WMTSLayer:c.WMTSLayer,WMSLayer:c.WMSLayer,WMSSubLayer:c.WMSSubLayer,WFSLayer:c.WFSLayer,WMTSSubLayer:c.WMTSSubLayer,IGSVectorTileLayer:c.IGSVectorTileLayer,IGSVectorTileSubLayer:c.IGSVectorTileSubLayer,IGSMapImageLayer:c.IGSMapImageLayer,IGSMapImageSubLayer:c.IGSMapImageSubLayer,IGSSceneLayer:c.IGSSceneLayer,IGSSceneSubLayer:c.IGSSceneSubLayer,IGSSceneLabelSubLayer:c.IGSSceneLabelSubLayer,IGSSceneModelCacheSubLayer:c.IGSSceneModelCacheSubLayer,IGSSceneMapRefSubLayer:c.IGSSceneMapRefSubLayer,IGSSceneTerrainSubLayer:c.IGSSceneTerrainSubLayer,IGSTileLayer:c.IGSTileLayer,IGSScene:c.IGSScene,ISScene:c.ISScene,BaseScene:c.BaseScene,IGSFeatureLayer:c.IGSFeatureLayer,FeatureFilter:c.FeatureFilter,ISSceneLayer:c.ISSceneLayer,ISSceneSubLayer:c.ISSceneSubLayer,ISSceneModelCacheSubLayer:c.ISSceneModelCacheSubLayer,SubLayer:c.SubLayer,EchartsLayer:c.EchartsLayer,MapVLayer:c.MapVLayer,GroupLayer:c.GroupLayer,GraphicsLayer:c.GraphicsLayer,GeoJSONLayer:c.GeoJSONLayer,Cesium3DTilesCacheLayer:c.Cesium3DTilesCacheLayer,TerrainCacheLayer:c.TerrainCacheLayer,VideoLayer:c.VideoLayer,S3MTilesCacheLayer:c.S3MTilesCacheLayer,Layer:c.Layer,Projection:h.Projection,WMTSStyle:h.WMTSStyle,CoordnateTransform:h.CoordnateTransform,SketchEditor:m.SketchEditor,SketchEditor3D:m.SketchEditor3D,SketchBaseDrawTool:m.SketchBaseDrawTool,SketchPointDrawTool:m.SketchPointDrawTool,SketchPolylineDrawTool:m.SketchPolylineDrawTool,SketchPolygonDrawTool:m.SketchPolygonDrawTool,SketchCircleDrawTool:m.SketchCircleDrawTool,SketchExtentDrawTool:m.SketchExtentDrawTool,SketchFreehandPolylineDrawTool:m.SketchFreehandPolylineDrawTool,SketchFreehandPolygonDrawTool:m.SketchFreehandPolygonDrawTool,getTipTextByEditOption:m.getTipTextByEditOption,SketchStyle:m.SketchStyle,SketchEditorEvent:m.SketchEditorEvent,Extent:f.Extent,Polygon:f.Polygon,LineString:f.LineString,Point:f.Point,Circle:f.Circle,MultiPolygon:f.MultiPolygon,MultiLineString:f.MultiLineString,MultiPoint:f.MultiPoint,GeometryEngine:f.GeometryEngine,Color:h.Color,Font:h.Font,LayerEvent:h.LayerEvent,Event:h.Event,Zondy:x,zondy:b,Evented:h.Evented,FeatureRender:h.FeatureRender,ErrorEvent:h.ErrorEvent,Collection:h.Collection,CollectionFlattener:h.CollectionFlattener,FeatureSet:h.FeatureSet,Feature:h.Feature,getFeaturesFromFeatureSet:h.getFeaturesFromFeatureSet,ReturnFormat:p.ReturnFormat,FetchMethod:p.FetchMethod,LayerEventType:p.LayerEventType,MapEventType:p.MapEventType,StatisticType:p.StatisticType,SpatialRelation:p.SpatialRelation,CustomWKID:p.CustomWKID,GeometryType:p.GeometryType,LayerType:p.LayerType,SubLayerType:p.SubLayerType,TokenAttachType:p.TokenAttachType,IGSGeometryType:p.IGSGeometryType,LogType:p.LogType,LoadStatus:p.LoadStatus,ViewEventType:p.ViewEventType,LengthUnit:p.LengthUnit,AngleUnit:p.AngleUnit,RendererType:p.RendererType,VectorTileGeometryType:p.VectorTileGeometryType,VideoSourceType:p.VideoSourceType,SketchDataType:p.SketchDataType,SketchEditMode:p.SketchEditMode,SketchEditorEventType:p.SketchEditorEventType,SketchEditorState:p.SketchEditorState,SketchEditorToolEventType:p.SketchEditorToolEventType,SymbolType:p.SymbolType,IGSSymbolType:p.IGSSymbolType,ElevationMode:p.ElevationMode,ElevationInfo:h.ElevationInfo,ProjectInfo:h.ProjectInfo,OutStatistic:h.OutStatistic,TileMatrixSet:h.TileMatrixSet,ProjectInfoBySrsID:h.ProjectInfoBySrsID,FeatureExpressionInfo:h.FeatureExpressionInfo,HorizontalAlignment:p.HorizontalAlignment,VerticalAlignment:p.VerticalAlignment,SceneMode:p.SceneMode,ShadowMode:p.ShadowMode,SwipeMode:p.SwipeMode,BaseSwipeTool:s.BaseSwipeTool,SimpleFillSymbol:y.SimpleFillSymbol,SimpleLineSymbol:y.SimpleLineSymbol,SimpleMarkerSymbol:y.SimpleMarkerSymbol,TextSymbol:y.TextSymbol,Symbol:y.Symbol,PictureMarkerSymbol:y.PictureMarkerSymbol,PictureFillSymbol:y.PictureFillSymbol,MapGISTextSymbol:y.MapGISTextSymbol,UniqueValueRenderer:c.UniqueValueRenderer,ClassBreakRenderer:c.ClassBreakRenderer,SimpleRenderer:c.SimpleRenderer,ClusterRenderer:c.ClusterRenderer,RandomRenderer:c.RandomRenderer,RankRenderer:c.RankRenderer,HeatmapRenderer:c.HeatmapRenderer,BaseRenderer:c.BaseRenderer,getIGSDynamicLayer:c.getIGSDynamicLayer,extend:d.extend,isArray:d.isArray,isNumber:d.isNumber,isInTheSameDomain:d.isInTheSameDomain,transformResult:d.transformResult,urlAppend:d.urlAppend,getParameterString:d.getParameterString,bind:d.bind,getGUID:d.getGUID,defaultValue:d.defaultValue,defined:d.defined,normalize:d.normalize,createGeometry:d.createGeometry,getExtendExtentByPixel:d.getExtendExtentByPixel,limitExtentToSRSMaxExtent:d.limitExtentToSRSMaxExtent,isNull:d.isNull,getGeometryParameter:d.getGeometryParameter,getOutStatisticsParameter:d.getOutStatisticsParameter,Log:d.Log,isString:d.isString,deepClone:d.deepClone,isBoolean:d.isBoolean,extendDeep:d.extendDeep,newGuid:d.newGuid,formatPoints:d.formatPoints,returnPoint:d.returnPoint,cloneObject:d.cloneObject,notNULL:d.notNULL,isObject:d.isObject,getVideoType:d.getVideoType,toJSON:d.toJSON,getBaseUrl:d.getBaseUrl,inputCss:d.inputCss,BaseView:g.BaseView,MapView:g.MapView,SceneView:g.SceneView,BaseGraphicsLayerView:g.BaseGraphicsLayerView,BaseRendererLayerView:g.BaseRendererLayerView,GroupLayerView:g.GroupLayerView,LayerView:g.LayerView,SpatialReference:f.SpatialReference,UrlServerType:p.UrlServerType,PictureFormat:p.PictureFormat,getUrlType:c.getUrlType,is4326:c.is4326,isCustomSP:c.isCustomSP,EPSG:h.EPSG,proj4:i.default,T:o,formatBaseUrl:u.formatBaseUrl,RadiusUnit:p.RadiusUnit,Geometry:f.Geometry,editFeatureByArc3:f.editFeatureByArc3,editGeometryByArc3:f.editGeometryByArc3,Config:u.Config,ServiceConfigToken:u.ServiceConfigToken,ServiceConfigRequestInterceptors:u.ServiceConfigRequestInterceptors,ServiceConfigResponseInterceptors:u.ServiceConfigResponseInterceptors,createSimpleMarkerSymbolCanvas:v.createSimpleMarkerSymbolCanvas,createSimpleFillSymbolCanvas:v.createSimpleFillSymbolCanvas,BaseFeatureLayerView:g.BaseFeatureLayerView,TileInfoUtil:c.TileInfoUtil,WMTSCorporation:p.WMTSCorporation,Corporation:p.Corporation,setElevationInfo:c.setElevationInfo,LabelClass:c.LabelClass,HeatmapColorStop:c.HeatmapColorStop,SizeVariable:c.SizeVariable,ColorVariable:c.ColorVariable,OpacityVariable:c.OpacityVariable,VisualVariable:c.VisualVariable,RendererUtil:g.RendererUtil,Symbol3D:y.Symbol3D,LabelSymbol3D:y.LabelSymbol3D,LineSymbol3D:y.LineSymbol3D,PointSymbol3D:y.PointSymbol3D,PolygonSymbol3D:y.PolygonSymbol3D,LineCallout3D:y.LineCallout3D,Callout3D:y.Callout3D,Symbol3DVerticalOffset:y.Symbol3DVerticalOffset,Symbol3DLayer:y.Symbol3DLayer,Symbol3DLayerType:p.Symbol3DLayerType,LineCapType:p.LineCapType,LineJoinType:p.LineJoinType,LineMarkerPlacement:p.LineMarkerPlacement,LineMarkerStyle:p.LineMarkerStyle,LineStyleMarker3D:y.LineStyleMarker3D,LinePatternStyle:p.LinePatternStyle,LineStylePattern3D:y.LineStylePattern3D,LineSymbol3DLayer:y.LineSymbol3DLayer,PathSymbol3DLayer:y.PathSymbol3DLayer,AnchorType:p.AnchorType,ProfileType:p.ProfileType,FillSymbol3DLayer:y.FillSymbol3DLayer,FillSymbol3DOutline:y.FillSymbol3DOutline,PatternStyle:p.PatternStyle,IconSymbol3DLayer:y.IconSymbol3DLayer,PointSymbol3DOutline:y.PointSymbol3DOutline,IconResource:y.IconResource,ObjectSymbol3DLayer:y.ObjectSymbol3DLayer,ExtrudeSymbol3DLayer:y.ExtrudeSymbol3DLayer,Edges3D:y.Edges3D,TextSymbol3DLayer:y.TextSymbol3DLayer,TextHalo:y.TextHalo,WaterSymbol3DLayer:y.WaterSymbol3DLayer,WaterbodySize:p.WaterbodySize,WaveStrength:p.WaveStrength,MaterialType:p.MaterialType,ColorMaterial:y.ColorMaterial,StylePattern3D:y.StylePattern3D,ArcGISVectorTileLayer:c.ArcGISVectorTileLayer,ArcGISVectorTileSubLayer:c.ArcGISVectorTileSubLayer,WebTileLayer:c.WebTileLayer,getZoomOffset:c.getZoomOffset,FeatureCollection:c.FeatureCollection,CAttDataRow:u.CAttDataRow,CAttStruct:u.CAttStruct,Interceptor:u.Interceptor,WorkFlowServer:u.WorkFlowServer,TileLayer:c.TileLayer,BaseServer:u.BaseServer,RequestConfig:u.RequestConfig,OverlayLayer:c.OverlayLayer,OGCLayer:c.OGCLayer,UnknownLayer:c.UnknownLayer,getProjectionSrs:d.getProjectionSrs,isWMSReverse:d.isWMSReverse,isWMTSReverse:d.isWMTSReverse,convertImageSourceToBase64:d.convertImageSourceToBase64,getTileLayerNearestCenterAndScale:d.getTileLayerNearestCenterAndScale,throttle:d.throttle,compareObject:d.compareObject,debouncePromise:d.debouncePromise,inOrderPromise:d.inOrderPromise,allSettled:d.allSettled,LinearUnits:p.LinearUnits,AreaUnits:p.AreaUnits,ArcType:p.ArcType,FetchRequest:u.FetchRequest,TileInfo:c.TileInfo,appendUrlParams:c.appendUrlParams,getFullBaseUrl:c.getFullBaseUrl,LOD:c.LOD,VoxelFilter:c.VoxelFilter,IGSImageryLayer:c.IGSImageryLayer,IGSImageryTileLayer:c.IGSImageryTileLayer,RasterFunction:c.RasterFunction,RasterInfo:c.RasterInfo,convertIGSClippingString:u.convertIGSClippingString,IGSSceneOriginLayerType:p.IGSSceneOriginLayerType,GeometryFilter:u.GeometryFilter,ColorNameToHexMap:p.ColorNameToHexMap,VectorTileLayer:c.VectorTileLayer,SeverVectorTileSubLayerType:p.SeverVectorTileSubLayerType,ExpressionParser:d.ExpressionParser,VisualVariableType:p.VisualVariableType,TDTLayerType:p.TDTLayerType,TileSliceType:p.TileSliceType,isLayerViewValid:l.isLayerViewValid,getValidLayers:l.getValidLayers,getLayerViewsGeographicExtent:l.getLayerViewsGeographicExtent,getCrsOptionsBySpatialReference:l.getCrsOptionsBySpatialReference,getCrsOptions:l.getCrsOptions,getLayersExtent:l.getLayersExtent,TemporalUnit:p.TemporalUnit,NormalizationType:p.NormalizationType,RasterInterpolationType:p.RasterInterpolationType,EngineType:p.EngineType,TimeExtent:h.TimeExtent,TimeInfo:h.TimeInfo,TimeInterval:h.TimeInterval,TileMonitor:h.TileMonitor,getFunctionArguments:d.getFunctionArguments,UrlUtil:u.UrlUtil,ServerUtil:u.ServerUtil,deleteNullValue:d.deleteNullValue,BaseRegExp:u.BaseRegExp,ServerBaseUrlRegExp:u.ServerBaseUrlRegExp,LayerBaseUrlRegExp:u.LayerBaseUrlRegExp,formatWebTileUrl:c.formatWebTileUrl,buildModuleUrl:d.buildModuleUrl,getMapGISBaseUrl:d.getMapGISBaseUrl};window.MapGISCommon=w,(0,_.initMapGISEvn)(),t.FetchServer=u.FetchServer,t.RequestInterceptor=u.RequestInterceptor,t.ResponseInterceptor=u.ResponseInterceptor,t.MapServer=u.MapServer,t.FeatureServer=u.FeatureServer,t.M3DServer=u.M3DServer,t.ImageServer=u.ImageServer,t.GeometryServer=u.GeometryServer,t.AddressServer=u.AddressServer,t.Cesium3DTilesServer=u.Cesium3DTilesServer,t.PoiServer=u.PoiServer,t.TerrainServer=u.TerrainServer,t.SecurityServer=u.SecurityServer,t.RootServer=u.RootServer,t.TileServer=u.TileServer,t.VectorTileServer=u.VectorTileServer,t.PlotServer=u.PlotServer,t.ResourceServer=u.ResourceServer,t.SceneServer=u.SceneServer,t.WMSServer=u.WMSServer,t.WMTSServer=u.WMTSServer,t.WFSServer=u.WFSServer,t.ArcGISMapServer=u.ArcGISMapServer,t.ISSceneServer=u.ISSceneServer,t.CAllOtherDataItemInfoSource=u.CAllOtherDataItemInfoSource,t.CAnnInfo=u.CAnnInfo,t.CChartLabelFormat=u.CChartLabelFormat,t.CChartTheme=u.CChartTheme,t.CChartThemeInfo=u.CChartThemeInfo,t.CChartThemeRepresentInfo=u.CChartThemeRepresentInfo,t.CChartType=u.CChartType,t.CDotDensityTheme=u.CDotDensityTheme,t.CFourColorTheme=u.CFourColorTheme,t.CGraduatedSymbolTheme=u.CGraduatedSymbolTheme,t.CLinInfo=u.CLinInfo,t.CMultiClassTheme=u.CMultiClassTheme,t.CPntInfo=u.CPntInfo,t.CRandomTheme=u.CRandomTheme,t.CRangeTheme=u.CRangeTheme,t.CRangeThemeInfo=u.CRangeThemeInfo,t.CRegInfo=u.CRegInfo,t.CSimpleTheme=u.CSimpleTheme,t.CTheme=u.CTheme,t.CThemeInfo=u.CThemeInfo,t.CUniqueTheme=u.CUniqueTheme,t.CUniqueThemeInfo=u.CUniqueThemeInfo,t.ExpInfo=u.ExpInfo,t.FolderInfo=u.FolderInfo,t.FolderInfoAttribute=u.FolderInfoAttribute,t.ItemValue=u.ItemValue,t.ThemeServer=u.ThemeServer,t.ThemesInfo=u.ThemesInfo,t.ArcGISGeometryServer=u.ArcGISGeometryServer,t.ArcGISFeatureServer=u.ArcGISFeatureServer,t.ArcGISVectorTileServer=u.ArcGISVectorTileServer,t.Map=c.Map,t.Basemap=c.Basemap,t.ArcGISMapImageLayer=c.ArcGISMapImageLayer,t.M3DModelCacheLayer=c.M3DModelCacheLayer,t.ArcGISMapImageSubLayer=c.ArcGISMapImageSubLayer,t.ArcGISTileLayer=c.ArcGISTileLayer,t.WMTSLayer=c.WMTSLayer,t.WMSLayer=c.WMSLayer,t.WMSSubLayer=c.WMSSubLayer,t.WFSLayer=c.WFSLayer,t.WMTSSubLayer=c.WMTSSubLayer,t.IGSVectorTileLayer=c.IGSVectorTileLayer,t.IGSVectorTileSubLayer=c.IGSVectorTileSubLayer,t.IGSMapImageLayer=c.IGSMapImageLayer,t.IGSMapImageSubLayer=c.IGSMapImageSubLayer,t.IGSSceneLayer=c.IGSSceneLayer,t.IGSSceneSubLayer=c.IGSSceneSubLayer,t.IGSSceneLabelSubLayer=c.IGSSceneLabelSubLayer,t.IGSSceneModelCacheSubLayer=c.IGSSceneModelCacheSubLayer,t.IGSSceneMapRefSubLayer=c.IGSSceneMapRefSubLayer,t.IGSSceneTerrainSubLayer=c.IGSSceneTerrainSubLayer,t.IGSTileLayer=c.IGSTileLayer,t.IGSScene=c.IGSScene,t.ISScene=c.ISScene,t.BaseScene=c.BaseScene,t.IGSFeatureLayer=c.IGSFeatureLayer,t.FeatureFilter=c.FeatureFilter,t.ISSceneLayer=c.ISSceneLayer,t.ISSceneSubLayer=c.ISSceneSubLayer,t.ISSceneModelCacheSubLayer=c.ISSceneModelCacheSubLayer,t.SubLayer=c.SubLayer,t.EchartsLayer=c.EchartsLayer,t.MapVLayer=c.MapVLayer,t.GroupLayer=c.GroupLayer,t.GraphicsLayer=c.GraphicsLayer,t.GeoJSONLayer=c.GeoJSONLayer,t.Cesium3DTilesCacheLayer=c.Cesium3DTilesCacheLayer,t.TerrainCacheLayer=c.TerrainCacheLayer,t.VideoLayer=c.VideoLayer,t.S3MTilesCacheLayer=c.S3MTilesCacheLayer,t.Layer=c.Layer,t.Projection=h.Projection,t.WMTSStyle=h.WMTSStyle,t.CoordnateTransform=h.CoordnateTransform,t.SketchEditor=m.SketchEditor,t.SketchEditor3D=m.SketchEditor3D,t.SketchBaseDrawTool=m.SketchBaseDrawTool,t.SketchPointDrawTool=m.SketchPointDrawTool,t.SketchPolylineDrawTool=m.SketchPolylineDrawTool,t.SketchPolygonDrawTool=m.SketchPolygonDrawTool,t.SketchCircleDrawTool=m.SketchCircleDrawTool,t.SketchExtentDrawTool=m.SketchExtentDrawTool,t.SketchFreehandPolylineDrawTool=m.SketchFreehandPolylineDrawTool,t.SketchFreehandPolygonDrawTool=m.SketchFreehandPolygonDrawTool,t.getTipTextByEditOption=m.getTipTextByEditOption,t.SketchStyle=m.SketchStyle,t.SketchEditorEvent=m.SketchEditorEvent,t.Extent=f.Extent,t.Polygon=f.Polygon,t.LineString=f.LineString,t.Point=f.Point,t.Circle=f.Circle,t.MultiPolygon=f.MultiPolygon,t.MultiLineString=f.MultiLineString,t.MultiPoint=f.MultiPoint,t.GeometryEngine=f.GeometryEngine,t.Color=h.Color,t.Font=h.Font,t.LayerEvent=h.LayerEvent,t.Event=h.Event,t.Zondy=x,t.zondy=b,t.Evented=h.Evented,t.FeatureRender=h.FeatureRender,t.ErrorEvent=h.ErrorEvent,t.Collection=h.Collection,t.CollectionFlattener=h.CollectionFlattener,t.FeatureSet=h.FeatureSet,t.Feature=h.Feature,t.getFeaturesFromFeatureSet=h.getFeaturesFromFeatureSet,t.ReturnFormat=p.ReturnFormat,t.FetchMethod=p.FetchMethod,t.LayerEventType=p.LayerEventType,t.MapEventType=p.MapEventType,t.StatisticType=p.StatisticType,t.SpatialRelation=p.SpatialRelation,t.CustomWKID=p.CustomWKID,t.GeometryType=p.GeometryType,t.LayerType=p.LayerType,t.SubLayerType=p.SubLayerType,t.TokenAttachType=p.TokenAttachType,t.IGSGeometryType=p.IGSGeometryType,t.LogType=p.LogType,t.LoadStatus=p.LoadStatus,t.ViewEventType=p.ViewEventType,t.LengthUnit=p.LengthUnit,t.AngleUnit=p.AngleUnit,t.RendererType=p.RendererType,t.VectorTileGeometryType=p.VectorTileGeometryType,t.VideoSourceType=p.VideoSourceType,t.SketchDataType=p.SketchDataType,t.SketchEditMode=p.SketchEditMode,t.SketchEditorEventType=p.SketchEditorEventType,t.SketchEditorState=p.SketchEditorState,t.SketchEditorToolEventType=p.SketchEditorToolEventType,t.SymbolType=p.SymbolType,t.IGSSymbolType=p.IGSSymbolType,t.ElevationMode=p.ElevationMode,t.ElevationInfo=h.ElevationInfo,t.ProjectInfo=h.ProjectInfo,t.OutStatistic=h.OutStatistic,t.TileMatrixSet=h.TileMatrixSet,t.ProjectInfoBySrsID=h.ProjectInfoBySrsID,t.FeatureExpressionInfo=h.FeatureExpressionInfo,t.HorizontalAlignment=p.HorizontalAlignment,t.VerticalAlignment=p.VerticalAlignment,t.SceneMode=p.SceneMode,t.ShadowMode=p.ShadowMode,t.SwipeMode=p.SwipeMode,t.BaseSwipeTool=s.BaseSwipeTool,t.SimpleFillSymbol=y.SimpleFillSymbol,t.SimpleLineSymbol=y.SimpleLineSymbol,t.SimpleMarkerSymbol=y.SimpleMarkerSymbol,t.TextSymbol=y.TextSymbol,t.Symbol=y.Symbol,t.PictureMarkerSymbol=y.PictureMarkerSymbol,t.PictureFillSymbol=y.PictureFillSymbol,t.MapGISTextSymbol=y.MapGISTextSymbol,t.UniqueValueRenderer=c.UniqueValueRenderer,t.ClassBreakRenderer=c.ClassBreakRenderer,t.SimpleRenderer=c.SimpleRenderer,t.ClusterRenderer=c.ClusterRenderer,t.RandomRenderer=c.RandomRenderer,t.RankRenderer=c.RankRenderer,t.HeatmapRenderer=c.HeatmapRenderer,t.BaseRenderer=c.BaseRenderer,t.getIGSDynamicLayer=c.getIGSDynamicLayer,t.extend=d.extend,t.isArray=d.isArray,t.isNumber=d.isNumber,t.isInTheSameDomain=d.isInTheSameDomain,t.transformResult=d.transformResult,t.urlAppend=d.urlAppend,t.getParameterString=d.getParameterString,t.bind=d.bind,t.getGUID=d.getGUID,t.defaultValue=d.defaultValue,t.defined=d.defined,t.normalize=d.normalize,t.createGeometry=d.createGeometry,t.getExtendExtentByPixel=d.getExtendExtentByPixel,t.limitExtentToSRSMaxExtent=d.limitExtentToSRSMaxExtent,t.isNull=d.isNull,t.getGeometryParameter=d.getGeometryParameter,t.getOutStatisticsParameter=d.getOutStatisticsParameter,t.Log=d.Log,t.isString=d.isString,t.deepClone=d.deepClone,t.isBoolean=d.isBoolean,t.extendDeep=d.extendDeep,t.newGuid=d.newGuid,t.formatPoints=d.formatPoints,t.returnPoint=d.returnPoint,t.cloneObject=d.cloneObject,t.notNULL=d.notNULL,t.isObject=d.isObject,t.getVideoType=d.getVideoType,t.toJSON=d.toJSON,t.getBaseUrl=d.getBaseUrl,t.inputCss=d.inputCss,t.BaseView=g.BaseView,t.MapView=g.MapView,t.SceneView=g.SceneView,t.BaseGraphicsLayerView=g.BaseGraphicsLayerView,t.BaseRendererLayerView=g.BaseRendererLayerView,t.GroupLayerView=g.GroupLayerView,t.LayerView=g.LayerView,t.SpatialReference=f.SpatialReference,t.UrlServerType=p.UrlServerType,t.PictureFormat=p.PictureFormat,t.getUrlType=c.getUrlType,t.is4326=c.is4326,t.isCustomSP=c.isCustomSP,t.EPSG=h.EPSG,t.proj4=i.default,t.T=o,t.formatBaseUrl=u.formatBaseUrl,t.RadiusUnit=p.RadiusUnit,t.Geometry=f.Geometry,t.editFeatureByArc3=f.editFeatureByArc3,t.editGeometryByArc3=f.editGeometryByArc3,t.Config=u.Config,t.ServiceConfigToken=u.ServiceConfigToken,t.ServiceConfigRequestInterceptors=u.ServiceConfigRequestInterceptors,t.ServiceConfigResponseInterceptors=u.ServiceConfigResponseInterceptors,t.createSimpleMarkerSymbolCanvas=v.createSimpleMarkerSymbolCanvas,t.createSimpleFillSymbolCanvas=v.createSimpleFillSymbolCanvas,t.BaseFeatureLayerView=g.BaseFeatureLayerView,t.TileInfoUtil=c.TileInfoUtil,t.WMTSCorporation=p.WMTSCorporation,t.Corporation=p.Corporation,t.setElevationInfo=c.setElevationInfo,t.LabelClass=c.LabelClass,t.HeatmapColorStop=c.HeatmapColorStop,t.SizeVariable=c.SizeVariable,t.ColorVariable=c.ColorVariable,t.OpacityVariable=c.OpacityVariable,t.VisualVariable=c.VisualVariable,t.RendererUtil=g.RendererUtil,t.Symbol3D=y.Symbol3D,t.LabelSymbol3D=y.LabelSymbol3D,t.LineSymbol3D=y.LineSymbol3D,t.PointSymbol3D=y.PointSymbol3D,t.PolygonSymbol3D=y.PolygonSymbol3D,t.LineCallout3D=y.LineCallout3D,t.Callout3D=y.Callout3D,t.Symbol3DVerticalOffset=y.Symbol3DVerticalOffset,t.Symbol3DLayer=y.Symbol3DLayer,t.Symbol3DLayerType=p.Symbol3DLayerType,t.LineCapType=p.LineCapType,t.LineJoinType=p.LineJoinType,t.LineMarkerPlacement=p.LineMarkerPlacement,t.LineMarkerStyle=p.LineMarkerStyle,t.LineStyleMarker3D=y.LineStyleMarker3D,t.LinePatternStyle=p.LinePatternStyle,t.LineStylePattern3D=y.LineStylePattern3D,t.LineSymbol3DLayer=y.LineSymbol3DLayer,t.PathSymbol3DLayer=y.PathSymbol3DLayer,t.AnchorType=p.AnchorType,t.ProfileType=p.ProfileType,t.FillSymbol3DLayer=y.FillSymbol3DLayer,t.FillSymbol3DOutline=y.FillSymbol3DOutline,t.PatternStyle=p.PatternStyle,t.IconSymbol3DLayer=y.IconSymbol3DLayer,t.PointSymbol3DOutline=y.PointSymbol3DOutline,t.IconResource=y.IconResource,t.ObjectSymbol3DLayer=y.ObjectSymbol3DLayer,t.ExtrudeSymbol3DLayer=y.ExtrudeSymbol3DLayer,t.Edges3D=y.Edges3D,t.TextSymbol3DLayer=y.TextSymbol3DLayer,t.TextHalo=y.TextHalo,t.WaterSymbol3DLayer=y.WaterSymbol3DLayer,t.WaterbodySize=p.WaterbodySize,t.WaveStrength=p.WaveStrength,t.MaterialType=p.MaterialType,t.ColorMaterial=y.ColorMaterial,t.StylePattern3D=y.StylePattern3D,t.ArcGISVectorTileLayer=c.ArcGISVectorTileLayer,t.ArcGISVectorTileSubLayer=c.ArcGISVectorTileSubLayer,t.WebTileLayer=c.WebTileLayer,t.getZoomOffset=c.getZoomOffset,t.FeatureCollection=c.FeatureCollection,t.CAttDataRow=u.CAttDataRow,t.CAttStruct=u.CAttStruct,t.Interceptor=u.Interceptor,t.WorkFlowServer=u.WorkFlowServer,t.TileLayer=c.TileLayer,t.BaseServer=u.BaseServer,t.RequestConfig=u.RequestConfig,t.UnknownLayer=c.UnknownLayer,t.OverlayLayer=c.OverlayLayer,t.OGCLayer=c.OGCLayer,t.getProjectionSrs=d.getProjectionSrs,t.isWMSReverse=d.isWMSReverse,t.isWMTSReverse=d.isWMTSReverse,t.convertImageSourceToBase64=d.convertImageSourceToBase64,t.getTileLayerNearestCenterAndScale=d.getTileLayerNearestCenterAndScale,t.throttle=d.throttle,t.compareObject=d.compareObject,t.debouncePromise=d.debouncePromise,t.inOrderPromise=d.inOrderPromise,t.allSettled=d.allSettled,t.LinearUnits=p.LinearUnits,t.AreaUnits=p.AreaUnits,t.ArcType=p.ArcType,t.FetchRequest=u.FetchRequest,t.TileInfo=c.TileInfo,t.appendUrlParams=c.appendUrlParams,t.getFullBaseUrl=c.getFullBaseUrl,t.LOD=c.LOD,t.VoxelFilter=c.VoxelFilter,t.IGSImageryLayer=c.IGSImageryLayer,t.IGSImageryTileLayer=c.IGSImageryTileLayer,t.RasterFunction=c.RasterFunction,t.RasterInfo=c.RasterInfo,t.convertIGSClippingString=u.convertIGSClippingString,t.IGSSceneOriginLayerType=p.IGSSceneOriginLayerType,t.GeometryFilter=u.GeometryFilter,t.ColorNameToHexMap=p.ColorNameToHexMap,t.SeverVectorTileSubLayerType=p.SeverVectorTileSubLayerType,t.VisualVariableType=p.VisualVariableType,t.TDTLayerType=p.TDTLayerType,t.TileSliceType=p.TileSliceType,t.VectorTileLayer=c.VectorTileLayer,t.ExpressionParser=d.ExpressionParser,t.isLayerViewValid=l.isLayerViewValid,t.getValidLayers=l.getValidLayers,t.getLayerViewsGeographicExtent=l.getLayerViewsGeographicExtent,t.getCrsOptionsBySpatialReference=l.getCrsOptionsBySpatialReference,t.getCrsOptions=l.getCrsOptions,t.getLayersExtent=l.getLayersExtent,t.TemporalUnit=p.TemporalUnit,t.NormalizationType=p.NormalizationType,t.RasterInterpolationType=p.RasterInterpolationType,t.EngineType=p.EngineType,t.TimeExtent=h.TimeExtent,t.TimeInfo=h.TimeInfo,t.TimeInterval=h.TimeInterval,t.TileMonitor=h.TileMonitor,t.getFunctionArguments=d.getFunctionArguments,t.UrlUtil=u.UrlUtil,t.ServerUtil=u.ServerUtil,t.deleteNullValue=d.deleteNullValue,t.BaseRegExp=u.BaseRegExp,t.ServerBaseUrlRegExp=u.ServerBaseUrlRegExp,t.LayerBaseUrlRegExp=u.LayerBaseUrlRegExp,t.formatWebTileUrl=c.formatWebTileUrl,t.decryptIGS=a.decryptIGS,t.buildModuleUrl=d.buildModuleUrl,t.getMapGISBaseUrl=d.getMapGISBaseUrl},function(e,t,r){var n=r(121),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.Base,o=n.WordArray,a=r.x64={};a.Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var i=e[n];r.push(i.high),r.push(i.low)}return o.create(r,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}})}(),e}(r(14))},function(e,t,r){var n=r(46),i=r(63),o=r(122)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,r){var n=r(38),i=r(175),o=r(124),a=r(122)("IE_PROTO"),s=function(){},u=function(){var e,t=r(126)("iframe"),n=o.length;for(t.style.display="none",r(176).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u.prototype[o[n]];return u()};e.exports=Object.create||function(e,t){var r;return null!==e?(s.prototype=n(e),r=new s,s.prototype=null,r[a]=e):r=u(),void 0===t?r:i(r,t)}},function(e,t,r){var n=r(75),i=r(31)("toStringTag"),o="Arguments"==n(function(){return arguments}());e.exports=function(e){var t,r,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:o?n(t):"Object"==(a=n(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LayerViewUpdateEvent=t.LayerViewUpdateContent=void 0;var n=c(r(3)),i=c(r(2)),o=c(r(4)),a=c(r(7)),s=c(r(5)),u=c(r(0)),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){return(0,u.default)(this,t),(0,o.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,i.default)(t,[{key:"initPropertys",value:function(e){var r=(0,a.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"initPropertys",this).call(this,e);return this.updateContent=(0,l.defaultValue)(r.updateContent,[]),this.layerView=(0,l.defaultValue)(r.layerView,null),this.view=(0,l.defaultValue)(r.view,null),r}}]),t}(c(r(139)).default);t.LayerViewUpdateContent=function e(t){(0,u.default)(this,e);var r=(0,l.defaultValue)(t,{});this.dataChanged=(0,l.defaultValue)(r.dataChanged,!1),this.name=(0,l.defaultValue)(r.name,""),this.operationType=(0,l.defaultValue)(r.operationType,"method"),this.params=(0,l.defaultValue)(r.params,[]),this.extendProps=(0,l.defaultValue)(r.extendProps,{})},t.LayerViewUpdateEvent=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{id:2348,name:"高斯大地坐标系_西安80_23带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2347,name:"高斯大地坐标系_西安80_22带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2346,name:"高斯大地坐标系_西安80_21带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2345,name:"高斯大地坐标系_西安80_20带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2344,name:"高斯大地坐标系_西安80_19带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2343,name:"高斯大地坐标系_西安80_18带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2342,name:"高斯大地坐标系_西安80_17带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2341,name:"高斯大地坐标系_西安80_16带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2340,name:"高斯大地坐标系_西安80_15带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2339,name:"高斯大地坐标系_西安80_14带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2338,name:"高斯大地坐标系_西安80_13带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2390,name:"高斯大地坐标系_西安80_45带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2389,name:"高斯大地坐标系_西安80_44带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2388,name:"高斯大地坐标系_西安80_43带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2387,name:"高斯大地坐标系_西安80_42带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2386,name:"高斯大地坐标系_西安80_41带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2385,name:"高斯大地坐标系_西安80_40带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2384,name:"高斯大地坐标系_西安80_39带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2383,name:"高斯大地坐标系_西安80_38带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2382,name:"高斯大地坐标系_西安80_37带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2381,name:"高斯大地坐标系_西安80_36带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2380,name:"高斯大地坐标系_西安80_35带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2379,name:"高斯大地坐标系_西安80_34带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2378,name:"高斯大地坐标系_西安80_33带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2377,name:"高斯大地坐标系_西安80_32带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2376,name:"高斯大地坐标系_西安80_31带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2375,name:"高斯大地坐标系_西安80_30带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2374,name:"高斯大地坐标系_西安80_29带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2373,name:"高斯大地坐标系_西安80_28带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2372,name:"高斯大地坐标系_西安80_27带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2371,name:"高斯大地坐标系_西安80_26带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2370,name:"高斯大地坐标系_西安80_25带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2327,name:"高斯大地坐标系_西安80_13带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=13500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2328,name:"高斯大地坐标系_西安80_14带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=14500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2329,name:"高斯大地坐标系_西安80_15带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=15500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2330,name:"高斯大地坐标系_西安80_16带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=16500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2331,name:"高斯大地坐标系_西安80_17带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=17500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2332,name:"高斯大地坐标系_西安80_18带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=18500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2333,name:"高斯大地坐标系_西安80_19带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=19500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2334,name:"高斯大地坐标系_西安80_20带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=20500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2335,name:"高斯大地坐标系_西安80_21带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=21500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2336,name:"高斯大地坐标系_西安80_22带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=22500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2337,name:"高斯大地坐标系_西安80_23带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=23500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2403,name:"高斯大地坐标系_西安80_27带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=27500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2404,name:"高斯大地坐标系_西安80_28带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=28500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2405,name:"高斯大地坐标系_西安80_29带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=29500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2406,name:"高斯大地坐标系_西安80_30带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2407,name:"高斯大地坐标系_西安80_31带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=31500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2408,name:"高斯大地坐标系_西安80_32带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=32500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2409,name:"高斯大地坐标系_西安80_33带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=33500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2410,name:"高斯大地坐标系_西安80_34带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=34500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2411,name:"高斯大地坐标系_西安80_35带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2412,name:"高斯大地坐标系_西安80_36带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2413,name:"高斯大地坐标系_西安80_37带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2414,name:"高斯大地坐标系_西安80_38带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2415,name:"高斯大地坐标系_西安80_39带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=39500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2416,name:"高斯大地坐标系_西安80_40带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2417,name:"高斯大地坐标系_西安80_41带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=41500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2418,name:"高斯大地坐标系_西安80_42带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=42500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2419,name:"高斯大地坐标系_西安80_43带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=43500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2420,name:"高斯大地坐标系_西安80_44带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=44500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2421,name:"高斯大地坐标系_西安80_45带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=45500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2349,name:"高斯大地坐标系_西安80_25带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=25500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2350,name:"高斯大地坐标系_西安80_26带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=26500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2351,name:"高斯大地坐标系_西安80_27带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=27500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2352,name:"高斯大地坐标系_西安80_28带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=28500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2353,name:"高斯大地坐标系_西安80_29带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=29500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2354,name:"高斯大地坐标系_西安80_30带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2355,name:"高斯大地坐标系_西安80_31带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=31500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2356,name:"高斯大地坐标系_西安80_32带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=32500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2357,name:"高斯大地坐标系_西安80_33带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=33500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2358,name:"高斯大地坐标系_西安80_34带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=34500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2359,name:"高斯大地坐标系_西安80_35带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2360,name:"高斯大地坐标系_西安80_36带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2361,name:"高斯大地坐标系_西安80_37带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2362,name:"高斯大地坐标系_西安80_38带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2363,name:"高斯大地坐标系_西安80_39带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=39500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2364,name:"高斯大地坐标系_西安80_40带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2365,name:"高斯大地坐标系_西安80_41带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=41500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2366,name:"高斯大地坐标系_西安80_42带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=42500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2367,name:"高斯大地坐标系_西安80_43带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=43500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2368,name:"高斯大地坐标系_西安80_44带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=44500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2369,name:"高斯大地坐标系_西安80_45带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=45500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:21413,name:"高斯大地坐标系_北京54_13带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=13500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21414,name:"高斯大地坐标系_北京54_14带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=14500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21415,name:"高斯大地坐标系_北京54_15带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=15500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21416,name:"高斯大地坐标系_北京54_16带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=16500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21417,name:"高斯大地坐标系_北京54_17带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=17500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21418,name:"高斯大地坐标系_北京54_18带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=18500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21419,name:"高斯大地坐标系_北京54_19带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=19500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21420,name:"高斯大地坐标系_北京54_20带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=20500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21421,name:"高斯大地坐标系_北京54_21带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=21500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21422,name:"高斯大地坐标系_北京54_22带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=22500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21423,name:"高斯大地坐标系_北京54_23带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=23500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2431,name:"高斯大地坐标系_北京54_34带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2401,name:"高斯大地坐标系_北京54_25带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=25500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2402,name:"高斯大地坐标系_北京54_26带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=26500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:32646,name:"Beijing 1954 / 3-degree Gauss-Kruger CM 102E",type:1,strProject:"+proj=utm +zone=46 +datum=WGS84 +units=m +no_defs"},{id:4502,name:"高斯大地坐标系_中国2000_13带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4503,name:"高斯大地坐标系_中国2000_14带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4504,name:"高斯大地坐标系_中国2000_15带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4505,name:"高斯大地坐标系_中国2000_16带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4506,name:"高斯大地坐标系_中国2000_17带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4507,name:"高斯大地坐标系_中国2000_18带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4508,name:"高斯大地坐标系_中国2000_19带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4509,name:"高斯大地坐标系_中国2000_20带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4510,name:"高斯大地坐标系_中国2000_21带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4511,name:"高斯大地坐标系_中国2000_22带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4512,name:"高斯大地坐标系_中国2000_23带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4513,name:"高斯大地坐标系_中国2000_25带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=25500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4514,name:"高斯大地坐标系_中国2000_26带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=26500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4515,name:"高斯大地坐标系_中国2000_27带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=27500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4516,name:"高斯大地坐标系_中国2000_28带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=28500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4517,name:"高斯大地坐标系_中国2000_29带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=29500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4518,name:"高斯大地坐标系_中国2000_30带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4519,name:"高斯大地坐标系_中国2000_31带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=31500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4520,name:"高斯大地坐标系_中国2000_32带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=32500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4521,name:"高斯大地坐标系_中国2000_33带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=33500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4522,name:"高斯大地坐标系_中国2000_34带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=34500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4523,name:"高斯大地坐标系_中国2000_35带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4524,name:"高斯大地坐标系_中国2000_36带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4525,name:"高斯大地坐标系_中国2000_37带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4526,name:"高斯大地坐标系_中国2000_38带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4527,name:"高斯大地坐标系_中国2000_39带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=39500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4528,name:"高斯大地坐标系_中国2000_40带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4529,name:"高斯大地坐标系_中国2000_41带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=41500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4530,name:"高斯大地坐标系_中国2000_42带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=42500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4531,name:"高斯大地坐标系_中国2000_43带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=43500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4532,name:"高斯大地坐标系_中国2000_44带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=44500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4533,name:"高斯大地坐标系_中国2000_45带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=45500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4546,name:"高斯大地坐标系_中国2000_37带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4547,name:"高斯大地坐标系_中国2000_38带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4545,name:"高斯大地坐标系_中国2000_36带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:3857,name:"Web墨卡托_WGS1984",type:1,strProject:"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"},{id:900913,name:"天地图3857",type:1,strProject:"+proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +wktext +no_defs +type=crs"},{id:4610,name:"地理坐标系(西安)_度",type:0,strProject:"+proj=longlat +a=6378140 +b=6356755.288157528 +units=degrees +no_defs"},{id:4214,name:"地理坐标系(北京)_度",type:0,strProject:'GEOGCRS["Beijing 1954",DATUM["Beijing 1954",ELLIPSOID["Krassowsky 1940",6378245,298.3,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["Geodesy."],AREA["China - onshore and offshore."],BBOX[16.7,73.62,53.56,134.77]],ID["EPSG",4214]]'},{id:4490,name:"中国2000国家大地坐标系_度",type:0,strProject:"+proj=longlat +ellps=GRS80 +units=degrees +no_defs"},{id:4326,name:"WGS1984_度",type:0,strProject:"+proj=longlat +datum=WGS84 +no_defs +type=crs"}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.geometry="Geometry",n.point="Point",n.lineString="LineString",n.polygon="Polygon",n.multiPoint="MultiPoint",n.multiLineString="MultiLineString",n.multiPolygon="MultiPolygon",n.circle="Circle",n.extent="Extent",i);Object.defineProperty(a,"geometry",{writable:!1}),Object.defineProperty(a,"point",{writable:!1}),Object.defineProperty(a,"lineString",{writable:!1}),Object.defineProperty(a,"polygon",{writable:!1}),Object.defineProperty(a,"multiPoint",{writable:!1}),Object.defineProperty(a,"multiLineString",{writable:!1}),Object.defineProperty(a,"multiPolygon",{writable:!1}),Object.defineProperty(a,"circle",{writable:!1}),Object.defineProperty(a,"extent",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allSettled=t.inOrderPromise=t.debouncePromise=void 0;var n=o(r(15)),i=o(r(80));function o(e){return e&&e.__esModule?e:{default:e}}t.debouncePromise=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=void 0,o=void 0,a=void 0,s=[];return function(){var u=function(e){return"function"==typeof e?e():e}(t),l=(new Date).getTime(),c=!i||l-i>u;i=l;for(var f=arguments.length,h=Array(f),d=0;d<f;d++)h[d]=arguments[d];if(c&&r.leading)return r.accumulate?n.default.resolve(e.call(this,[h])).then(function(e){return e[0]}):n.default.resolve(e.call.apply(e,[this].concat(h)));if(o?clearTimeout(a):o=function(){var e={};return e.promise=new n.default(function(t,r){e.resolve=t,e.reject=r}),e}(),s.push(h),a=setTimeout(function(){var t=o;clearTimeout(a),n.default.resolve(r.accumulate?e.call(this,s):e.apply(this,s[s.length-1])).then(t.resolve,t.reject),s=[],o=null}.bind(this),u),r.accumulate){var p=s.length-1;return o.promise.then(function(e){return e[p]})}return o.promise}},t.inOrderPromise=async function(e){for(var t=[],r=0;r<e.length;r++)try{var n=await e[r]();t.push(n)}catch(e){i.default.error(e)}return t},t.allSettled=function(e){var t=function(e){return{status:"rejected",reason:e}},r=function(e){return{status:"fulfilled",value:e}},i=e.map(function(e){return n.default.resolve(e).then(r,t)});return n.default.all(i)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(13)),i=y(r(10)),o=y(r(3)),a=y(r(0)),s=y(r(2)),u=y(r(4)),l=y(r(5)),c=r(8),f=r(6),h=r(1),d=r(9),p=r(12);function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return e=(0,h.defaultValue)(e,{}),r.id=(0,h.defaultValue)(e.id,(0,h.getGUID)()),r.type=f.SubLayerType.baseSub,r.layer=(0,h.defaultValue)(e.layer,null),r.sublayers=r._decorate("sublayers",(0,h.defaultValue)(e.sublayers,null),null,function(e){return e instanceof c.Collection?e:Array.isArray(e)?new c.Collection(e.map(function(e){return e.layer=r.layer,e.parent=r,r._createSublayer(e)})):null}),r.copyright=(0,h.defaultValue)(e.copyright,""),r.title=(0,h.defaultValue)(e.title||e.layerName,null),r.extensionOptions=(0,h.defaultValue)(e.extensionOptions,{}),r.extendProps=(0,h.defaultValue)(e.extendProps,{}),r.description=(0,h.defaultValue)(e.description,""),r.parent=(0,h.defaultValue)(e.parent,null),r.spatialReference=e.spatialReference?d.SpatialReference.fromJSON(e.spatialReference):null,r.extent=e.extent?d.Extent.fromJSON(e.extent):null,r.capabilities=(0,p.mergeCommonClientCapbilities)(e.capabilities,{layer:!0,sublayers:!0,title:!0,extensionOptions:!0,extendProps:!0,description:!0,copyright:!0,parent:!0,spatialReference:!0,extent:!0,visible:!0,opacity:!0,minScale:!0,maxScale:!0}),r._visible=(0,h.defaultValue)(e.visible,!0),r._opacity=(0,h.defaultValue)(e.opacity,1),r._minScale=(0,h.defaultValue)(e.minScale,0),r._maxScale=(0,h.defaultValue)(e.maxScale,0),r}return(0,l.default)(t,e),(0,s.default)(t,[{key:"toJSON",value:function(){var e={};return e.id=this.id,e.type=this.type,e.copyright=this.copyright,e.sublayers=this.sublayers?this.sublayers.map(function(e){return e.toJSON()}):null,e.title=this.title,e.description=this.description,e.visible=this.visible,e.opacity=this.opacity,e.extendProps=JSON.parse((0,i.default)(this.extendProps)),e.extensionOptions=JSON.parse((0,i.default)(this.extensionOptions)),e.spatialReference=this.spatialReference?this.spatialReference.toJSON():null,e.extent=this.extent?this.extent.toJSON():null,e.maxScale=this.maxScale,e.minScale=this.minScale,e.capabilities=JSON.parse((0,i.default)(this.capabilities)),e}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"_createSublayer",value:function(e){return(0,p.createSublayer)(e)}},{key:"getCumulative",value:function(e,t){for(var r=this[e],n=this.parent;n;)r=t(r,n[e]),n=n.parent;return r}}],[{key:"fromJSON",value:function(e){return(0,p.createSublayer)(e)}}]),t}(c.Evented);(0,n.default)(g.prototype,{visible:{get:function(){return this._visible},set:function(e){this._visible=e,this.layer&&this.layer.refresh()}},opacity:{get:function(){return this._opacity},set:function(e){this._opacity=e}},maxScale:{get:function(){return this._maxScale},set:function(e){this._maxScale=e}},minScale:{get:function(){return this._minScale},set:function(e){this._minScale=e}}}),t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(13)),i=s(r(0)),o=s(r(2)),a=r(1);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,i.default)(this,e),t=t||{},this.level=t.level,this.resolution=t.resolution,this.scale=t.scale,this._levelValue=String((0,a.defaultValue)(t.levelValue,"")),(0,a.defined)(this._levelValue)||(this._levelValue=String(this.level))}return(0,o.default)(e,[{key:"toJSON",value:function(){return{level:this.level,levelValue:this.levelValue,resolution:this.resolution,scale:this.scale}}},{key:"clone",value:function(){return e.fromJSON(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();(0,n.default)(u.prototype,{levelValue:{get:function(){return this._levelValue},set:function(e){this._levelValue=String((0,a.defaultValue)(e,""))}}}),t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(0)),i=u(r(2)),o=u(r(68)),a=r(1),s=r(98);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){(0,n.default)(this,e),t=(0,a.defaultValue)(t,{}),this.type=o.default.default,this.field=(0,a.defaultValue)(t.field,""),this.valueExpression=(0,a.defaultValue)(t.valueExpression,""),this.valueExpressionTitle=(0,a.defaultValue)(t.valueExpressionTitle,"")}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.field=this.field,e.valueExpression=this.valueExpression,e.valueExpressionTitle=this.valueExpressionTitle,e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(e){return e=(0,a.defaultValue)(e,{}),(0,s.createVisualVariable)(e)}}]),e}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(10)),i=p(r(3)),o=p(r(0)),a=p(r(2)),s=p(r(4)),u=p(r(7)),l=p(r(5)),c=r(6),f=r(1),h=r(16),d=r(12);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return e=(0,f.defaultValue)(e,{}),r.type=c.LayerType.OGC,r.version=(0,f.defaultValue)(e.version,""),r.customParameters=(0,f.defaultValue)(e.customParameters,{}),r.customLayerParameters=(0,f.defaultValue)(e.customLayerParameters,{}),r.capabilities=(0,d.mergeCommonClientCapbilities)(r.capabilities,{type:!0,customParameters:!0,customLayerParameters:!0}),r}return(0,l.default)(t,e),(0,a.default)(t,[{key:"toJSON",value:function(){var e=(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"toJSON",this).call(this);return e.version=this.version,e.customParameters=JSON.parse((0,n.default)(this.customParameters)),e.customLayerParameters=JSON.parse((0,n.default)(this.customLayerParameters)),e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,f.defaultValue)(e,{}))}}]),t}(h.Layer);t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.default=function(e){var t=(0,n.defaultValue)(e,{});(0,n.extend)(this,t),this.FldNumber=(0,n.defaultValue)(t.FldNumber,0),this.FldName=(0,n.defaultValue)(t.FldName,null),this.FldType=(0,n.defaultValue)(t.FldType,null)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(75);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(123)("keys"),i=r(105);e.exports=function(e){return n[e]||(n[e]=i(e))}},function(e,t,r){var n=r(18),i=r(30),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(87)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(21),i=r(18),o=r(64);e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*o(function(){r(1)}),"Object",a)}},function(e,t,r){var n=r(32),i=r(30).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,r){var n=r(32);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[],u=[];!function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)e(n)&&(i<8&&(s[i]=r(t.pow(n,.5))),u[i]=r(t.pow(n,1/3)),i++),n++}();var l=[],c=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],c=r[5],f=r[6],h=r[7],d=0;d<64;d++){if(d<16)l[d]=0|e[t+d];else{var p=l[d-15],y=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=l[d-2],m=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;l[d]=y+l[d-7]+m+l[d-16]}var v=n&i^n&o^i&o,_=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),S=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&f)+u[d]+l[d];h=f,f=c,c=s,s=a+S|0,a=o,o=i,i=n,n=S+(_+v)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+f|0,r[7]=r[7]+h|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=t.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=o._createHelper(c),r.HmacSHA256=o._createHmacHelper(c)}(Math),e.SHA256}(r(14))},function(e,t,r){e.exports=function(e){!function(){var t=e,r=t.lib.Base,n=t.enc.Utf8;t.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,u=a.words,l=0;l<r;l++)s[l]^=1549556828,u[l]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})}()}(r(14))},function(e,t,r){"use strict";var n=r(87),i=r(21),o=r(174),a=r(54),s=r(78),u=r(311),l=r(89),c=r(107),f=r(31)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,r,p,y,g,m){u(r,t,p);var v,_,S,b=function(e){if(!h&&e in T)return T[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},x=t+" Iterator",w="values"==y,E=!1,T=e.prototype,I=T[f]||T["@@iterator"]||y&&T[y],M=I||b(y),k=y?w?b("entries"):M:void 0,P="Array"==t&&T.entries||I;if(P&&(S=c(P.call(new e)))!==Object.prototype&&S.next&&(l(S,x,!0),n||"function"==typeof S[f]||a(S,f,d)),w&&I&&"values"!==I.name&&(E=!0,M=function(){return I.call(this)}),n&&!m||!h&&!E&&T[f]||a(T,f,M),s[t]=M,s[x]=d,y)if(v={values:w?M:b("values"),keys:g?M:b("keys"),entries:k},m)for(_ in v)_ in T||o(T,_,v[_]);else i(i.P+i.F*(h||E),t,v);return v}},function(e,t,r){t.f=r(31)},function(e,t,r){var n=r(105)("meta"),i=r(32),o=r(46),a=r(37).f,s=0,u=Object.isExtensible||function(){return!0},l=!r(64)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},f=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[n].w},onFreeze:function(e){return l&&f.NEED&&u(e)&&!o(e,n)&&c(e),e}}},function(e,t,r){var n=r(30),i=r(18),o=r(87),a=r(132),s=r(37).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){},function(e,t,r){var n=r(109),i=r(31)("iterator"),o=r(78);e.exports=r(18).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[n(e)]}},function(e,t,r){e.exports={default:r(332),__esModule:!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(2)),a=c(r(4)),s=c(r(7)),u=c(r(5)),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"initPropertys",value:function(e){var r=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"initPropertys",this).call(this,e);return this.layer=r.layer,this.message=r.message,(0,l.isNull)(r.layerView)||(this.layerView=r.layerView),(0,l.isNull)(r.view)||(this.view=r.view),(0,l.isNull)(r.layerIndex)||(this.layerIndex=r.layerIndex),r}}]),t}(c(r(56)).default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(13)),i=p(r(24)),o=p(r(67)),a=p(r(3)),s=p(r(0)),u=p(r(2)),l=p(r(4)),c=p(r(5)),f=r(1),h=p(r(93)),d=r(41);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,s.default)(this,t);var r=(0,l.default)(this,(t.__proto__||(0,a.default)(t)).call(this));return r.type="collection",r.id=(0,f.getGUID)(),e instanceof t?r._items=e.all():Array.isArray(e)?r._items=e:r._items=[],r._items=r._items.map(function(e){return r.createInstance(e)}),r}return(0,c.default)(t,e),(0,u.default)(t,[{key:"add",value:function(e,t){return this._add(e,t),this._fireCollectionChangeEvent({added:[e],target:this,sourceTarget:this}),this}},{key:"addMany",value:function(e,t){var r=this;if(Array.isArray(e)){var n=e.map(function(e){return r.createInstance(e)}),i=this._getNextIndex(t);n.forEach(function(e,t){r._items.splice(i+t,0,e)}),this._fireCollectionChangeEvent({target:this,sourceTarget:this,added:n})}}},{key:"at",value:function(e){return(e=Number(e))>=0?this._items[e]:this._items[this._items.length-1+e]}},{key:"clone",value:function(){for(var e=[],r=0;r<this._items.length;r++)e.push((0,f.cloneObject)(this.items[r]));return new t(e)}},{key:"concat",value:function(e){var t=e;e instanceof this.constructor?t=e.all():e instanceof Array?t=e:"object"===(void 0===e?"undefined":(0,o.default)(e))&&(t=[],(0,i.default)(e).forEach(function(r){t.push(e[r])}));var r=this._items;return t.forEach(function(e){r.push(e)}),new this.constructor(r)}},{key:"every",value:function(e){var t=!0;if(!(e instanceof Function))return!1;for(var r=0;r<this._items.length;r++)if(!e(this._items[r])){t=!1;break}return t}},{key:"filter",value:function(e){if(e instanceof Function){for(var r=[],n=0;n<this._items.length;n++)e(this._items[n])&&r.push(this._items[n]);return new t(r)}}},{key:"find",value:function(e){if(e instanceof Function){for(var t=void 0,r=0;r<this._items.length;r++)if(e(this._items[r])){t=this._items[r];break}return t}}},{key:"findIndex",value:function(e){return this._items.findIndex(e)}},{key:"flatten",value:function(e){if(e instanceof Function){for(var r=[],n=0;n<this._items.length;n++)r.push(this._items[n]);for(var i=0;i<r.length;i++)r=r.concat(o(r[i],e));return new t(r)}function o(e,r){var n=r(e);if(n){if(n instanceof Array)return n;if(n instanceof t){for(var i=n.toArray(),a=0;a<n._items.length;a++)i=i.concat(o(n._items[a],r));return i}return[n]}return[]}}},{key:"forEach",value:function(e){return this._items.forEach(e)}},{key:"getItemAt",value:function(e){return this._items[e]}},{key:"includes",value:function(e){return this._items.includes(e)}},{key:"indexOf",value:function(e,t){return this._items.indexOf(e,t)}},{key:"join",value:function(e){for(var t="",r=0;r<this._items.length-1;r++)t+=this._items[r]+e;return t+this._items[this._items.length-1]}},{key:"lastIndexOf",value:function(e,t){for(var r=-1,n=t=(0,f.defaultValue)(t,this._items.length-1);n>=0;n--)if(this._items[n]===e){r=n;break}return r}},{key:"map",value:function(e){var t=this;if(Array.isArray(this._items))return new this.constructor(this._items.map(e));var r={};return(0,i.default)(this._items).forEach(function(n){r[n]=e(t._items[n],n)}),new this.constructor(r)}},{key:"pop",value:function(){return this._items.pop()}},{key:"push",value:function(e){return this.add(e)}},{key:"reduce",value:function(e,t){var r=this,n=null;return void 0!==t&&(n=t),Array.isArray(this._items)?this._items.forEach(function(t){n=e(n,t)}):(0,i.default)(this._items).forEach(function(t){n=e(n,r._items[t],t)}),n}},{key:"reduceRight",value:function(e,r){for(var n=[],i=this._items.length-1;i>=0;i--)n.push(this._items[i]);return new t(n).reduce(e,r)}},{key:"remove",value:function(e){var t=this._remove(e);return t&&this._fireCollectionChangeEvent({removed:[e],target:this,sourceTarget:this}),t}},{key:"removeAll",value:function(){this._items=[],this._fireCollectionChangeEvent({target:this,sourceTarget:this})}},{key:"removeAt",value:function(e){var t=this._items.splice(e,1);return this._fireCollectionChangeEvent({target:this,sourceTarget:this}),t}},{key:"removeMany",value:function(e){var t=this;if(Array.isArray(e)){for(var r=[],n=[],i=function(i){var o=t._items.findIndex(function(t){return t===e[i]});o>-1&&(n.push(o),r.push(e[i]))},o=0;o<e.length;o++)i(o);return r.length>0&&(this._items=this._items.filter(function(e,t){return n.every(function(e){return e!==t})}),this._fireCollectionChangeEvent({removed:r,target:this,sourceTarget:this})),r}}},{key:"reorder",value:function(e,t){this._reorder(e,t)&&this._fireCollectionChangeEvent({moved:[e],target:this,sourceTarget:this})}},{key:"reverse",value:function(){var e=[].concat(this._items).reverse();return new this.constructor(e)}},{key:"shift",value:function(){return this._items.shift()}},{key:"slice",value:function(e,t){var r=this._items.slice(e);return void 0!==t&&(r=r.slice(0,t)),new this.constructor(r)}},{key:"some",value:function(e){if(!(e instanceof Function))return!1;for(var t=!1,r=0;r<this._items.length;r++)if(e(this._items[r])){t=!0;break}return t}},{key:"sort",value:function(e){var t=[].concat(this._items);return void 0===e?this.every(function(e){return"number"==typeof e})?t.sort(function(e,t){return e-t}):t.sort():t.sort(e),new this.constructor(t)}},{key:"splice",value:function(e,r){for(var n,i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return new t((n=this._items).splice.apply(n,[e,r].concat(o)))}},{key:"toArray",value:function(){for(var e=[],t=0;t<this._items.length;t++)e.push(this.items[t]);return e}},{key:"unshift",value:function(){var e;(e=this._items).unshift.apply(e,arguments)}},{key:"all",value:function(){return this.toArray()}},{key:"unique",value:function(e){var t=void 0;if(void 0===e)t=this._items.filter(function(e,t,r){return r.indexOf(e)===t});else{t=[];for(var r=[],n=0,i=this._items.length;n<i;n+=1){var o;o=e instanceof Function?e(this._items[n]):this._items[n][e],-1===r.indexOf(o)&&(t.push(this._items[n]),r.push(o))}}return new this.constructor(t)}},{key:"createInstance",value:function(e){return e}},{key:"_fireCollectionChangeEvent",value:function(e){if(this.fire("change",new d.CollectionChangeEvent(e),!1),this.fire("collection-refresh",new d.CollectionChangeEvent(e),!1),this._parentCollection)for(var t=this._parentCollection;t;)t.fire("collection-refresh",new d.CollectionChangeEvent(e),!1),t=t._parentCollection}},{key:"_addParentCollection",value:function(e){this._parentCollection=e}},{key:"_removeParentCollection",value:function(){this._parentCollection=void 0}},{key:"_getNextIndex",value:function(e){return e=(0,f.defaultValue)(e,this._items.length),Math.max(0,Math.min(this._items.length,e))}},{key:"_add",value:function(e,t){var r=this.createInstance(e);this._items.splice(this._getNextIndex(t),0,r)}},{key:"_remove",value:function(e){var t=this._items.indexOf(e);return t>-1&&(this._items.splice(t,1),!0)}},{key:"_reorder",value:function(e,t){var r=this._items.length;t=(0,f.defaultValue)(t,r-1);var n=this._items.indexOf(e);return n>-1&&(t=Math.min(Math.max(0,t),r-1))!==n&&(this._items.splice(n,1),this._items.splice(t,0,e),!0)}}],[{key:"isCollection",value:function(e){return e instanceof t}}]),t}(h.default);(0,n.default)(y.prototype,{items:{get:function(){return this._items},set:function(e){var t=this;this._items=e;var r=e.map(function(e){return t.createInstance(e)});this._fireCollectionChangeEvent({target:this,sourceTarget:this,added:r})}},length:{get:function(){return this._items.length}}}),t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.family=(0,o.defaultValue)(t.family,"微软雅黑"),this.size=(0,o.defaultValue)(t.size,12),this.style=(0,o.defaultValue)(t.style,"normal"),this.weight=(0,o.defaultValue)(t.weight,"normal"),this.decoration=(0,o.defaultValue)(t.decoration,"none")}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.family=this.family,e.size=this.size,e.style=this.style,e.weight=this.weight,e.decoration=this.decoration,e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.default="default",n.line="simple-line",n.simpleLine="simple-line",n.fill="simple-fill",n.simpleFill="simple-fill",n.marker="simple-marker",n.simpleMarker="simple-marker",n.pictureMarker="picture-marker",n.text="text",n.pictureFill="picture-fill",n.mapgisText="mapgis-text",n.point3D="point-3d",n.polygon3D="polygon-3d",n.line3D="line-3d",n.label3D="label-3d",i);Object.defineProperty(a,"default",{writable:!1}),Object.defineProperty(a,"line",{writable:!1}),Object.defineProperty(a,"simpleLine",{writable:!1}),Object.defineProperty(a,"fill",{writable:!1}),Object.defineProperty(a,"simpleFill",{writable:!1}),Object.defineProperty(a,"marker",{writable:!1}),Object.defineProperty(a,"simpleMarker",{writable:!1}),Object.defineProperty(a,"pictureMarker",{writable:!1}),Object.defineProperty(a,"text",{writable:!1}),Object.defineProperty(a,"pictureFill",{writable:!1}),Object.defineProperty(a,"mapgisText",{writable:!1}),Object.defineProperty(a,"point3D",{writable:!1}),Object.defineProperty(a,"polygon3D",{writable:!1}),Object.defineProperty(a,"line3D",{writable:!1}),Object.defineProperty(a,"label3D",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.left="left",n.right="right",n.center="center",i);Object.defineProperty(a,"left",{writable:!1}),Object.defineProperty(a,"right",{writable:!1}),Object.defineProperty(a,"center",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.baseline="baseline",n.top="top",n.middle="middle",n.bottom="bottom",i);Object.defineProperty(a,"baseline",{writable:!1}),Object.defineProperty(a,"top",{writable:!1}),Object.defineProperty(a,"middle",{writable:!1}),Object.defineProperty(a,"bottom",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.butt="butt",n.round="round",n.square="square",i);Object.defineProperty(a,"butt",{writable:!1}),Object.defineProperty(a,"round",{writable:!1}),Object.defineProperty(a,"square",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.bevel="bevel",n.miter="miter",n.round="round",i);Object.defineProperty(a,"bevel",{writable:!1}),Object.defineProperty(a,"miter",{writable:!1}),Object.defineProperty(a,"round",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.gcj02ll=20010201,n.gcj02mc=20010202,n.bd09ll=20020901,n.bd09mc=20020902,i);Object.defineProperty(a,"gcj02ll",{writable:!1}),Object.defineProperty(a,"gcj02mc",{writable:!1}),Object.defineProperty(a,"bd09ll",{writable:!1}),Object.defineProperty(a,"bd09mc",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeaturesFromFeatureSet=t.FeatureSet=t.Feature=void 0;var n=a(r(192)),i=a(r(440)),o=r(449);function a(e){return e&&e.__esModule?e:{default:e}}t.Feature=n.default,t.FeatureSet=i.default,t.getFeaturesFromFeatureSet=o.getFeaturesFromFeatureSet},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(7)),u=d(r(5)),l=r(1),c=r(6),f=d(r(430)),h=d(r(431));function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));e=(0,l.defaultValue)(e,{}),r.type=c.SymbolType.simpleLine,r.cap=(0,l.defaultValue)(e.cap,"round"),r.join=(0,l.defaultValue)(e.join,"round"),r.miterLimit=(0,l.defaultValue)(e.miterLimit,2),r.style=(0,l.defaultValue)(e.style,"solid");var o=(0,l.defaultValue)(e.marker,null);return o?(o.color=(0,l.defaultValue)(o.color,r.color.clone()),r.marker=h.default.fromJSON(o)):r.marker=null,r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.cap=this.cap,e.join=this.join,e.miterLimit=this.miterLimit,e.style=this.style,e.marker=this.marker?this.marker.toJSON():null,e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(f.default);t.default=p},function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){"use strict";var n=r(88);e.exports.f=function(e){return new function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)}(e)}},function(e,t,r){var n=r(54);e.exports=function(e,t,r){for(var i in t)r&&e[i]?e[i]=t[i]:n(e,i,t[i]);return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(0)),i=o(r(2));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(){(0,n.default)(this,e)}return(0,i.default)(e,[{key:"drawFeature",value:function(e,t){}},{key:"updateFeature",value:function(e,t,r){}},{key:"clearFeature",value:function(e,t){}},{key:"clear",value:function(e){}}]),e}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.default=function e(t){(0,n.default)(this,e),t=(0,i.defaultValue)(t,{}),this.before=(0,i.defaultValue)(t.success,void 0),this.failure=(0,i.defaultValue)(t.failure,void 0)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.default=function e(t){(0,n.default)(this,e),t=(0,i.defaultValue)(t,{}),this.success=(0,i.defaultValue)(t.success,void 0),this.failure=(0,i.defaultValue)(t.failure,void 0)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),i=r(6),o=window.fetch,a={commit:function(e,t,r,n){switch(e=e?e.toUpperCase():e){case"GET":return this._get(t,n);case"POST":return this._post(t,r,n);case"PUT":return this._put(t,r,n);case"DELETE":return this._delete(t,r,n);default:return this._get(t,n)}},_get:function(e,t){return t=(0,n.defaultValue)(t,{}),this._fetch(e,void 0,t,i.FetchMethod.get)},_delete:function(e,t,r){return r=(0,n.defaultValue)(r,{}),this._fetch(e,t,r,i.FetchMethod.delete)},_post:function(e,t,r){return r=(0,n.defaultValue)(r,{}),this._fetch(e,t,r,i.FetchMethod.post)},_put:function(e,t,r){return r=(0,n.defaultValue)(r,{}),this._fetch(e,t,r,i.FetchMethod.put)},_fetch:function(e,t,r,a){if((r=(0,n.defaultValue)(r,{})).withCredentials=(0,n.defaultValue)(r.withCredentials,!0),r.headers=(0,n.defaultValue)(r.headers,{}),r.requestTimeout=(0,n.defaultValue)(r.requestTimeout,45e3),r.headers["Content-Type"]||(r.headers["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8"),!(0,n.isNull)(r.tokenKey)&&!(0,n.isNull)(r.tokenValue)){var s=function(){"string"==typeof t?"&"===t.slice(-1)?t+=r.tokenKey+"="+r.tokenValue:t+="&"+r.tokenKey+"="+r.tokenValue:t instanceof Object&&(t[r.tokenKey]=r.tokenValue)},u=function(){e.indexOf("?")<0?e+="?"+r.tokenKey+"="+r.tokenValue:"&"===e.slice(-1)||"?"===e.slice(-1)?e+=r.tokenKey+"="+r.tokenValue:e+="&"+r.tokenKey+"="+r.tokenValue};switch((0,n.defaultValue)(r.tokenAttachType,i.TokenAttachType.normal)){case i.TokenAttachType.normal:default:a===i.FetchMethod.post?s():u();break;case i.TokenAttachType.url:u();break;case i.TokenAttachType.header:r.headers[r.tokenKey]=r.tokenValue;break;case i.TokenAttachType.body:s()}}var l={method:a,body:t,headers:r.headers,credentials:r.withCredentials?"same-origin":"omit",mode:"cors",timeout:r.requestTimeout};return r.responseType&&(l.responseType=r.responseType),o(e,l).then(function(e){return e}).catch(function(e){return e})}};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(13)),i=u(r(24)),o=u(r(0)),a=u(r(2)),s=r(1);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"matchString",value:function(e){for(var t=(0,i.default)(this.regExps),r=0;r<t.length;r++)if(this.regExps[t[r]].test(e)){var n=e.match(this.regExps[t[r]]);return"MapServerV1"===t[r]?n[0].replace("/igs/rest/mrcs/docs/","/igs/rest/mrms/docs/"):n[0]}return s.Log.warning("无法匹配输入的字符串: ",e,",不影响后续处理流程"),e}},{key:"testByRegExpNames",value:function(e,t){for(var r=!1,n=0;n<t.length;n++)if(r=this.regExps[t[n]].test(e))return r;return r}},{key:"matchStringByRegExpNames",value:function(e,t){t=(0,s.defaultValue)(t,[]);for(var r=0;r<t.length;r++){var n=this.regExps[t[r]];if(n.test(e)){var i=e.match(n);return"MapServerV1Wrong"===t[r]?i[0].replace("/igs/rest/mrcs/docs/","/igs/rest/mrms/docs/"):i[0]}}return s.Log.warning("无法匹配输入的字符串: ",e,",不影响后续处理流程"),e}},{key:"initRegExps",value:function(){}}]),e}();l._regExps=null,l.requestWordRegExp="[一-龟\\w:%_-]+",l.IPAndPortRegExp="(([0-9.a-zA-Z]+|localhost):[0-9]{1,5}|([0-9.a-zA-Z]+|localhost))",l.ProtocolRegExp="(http://|https://|ftp://|gopher://|file://|file:///)",(0,n.default)(l,{regExps:{get:function(){return this._regExps||this.initRegExps(),this._regExps},set:function(e){this._regExps=e}}}),t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CAttStruct=t.CAttDataRow=t.ArcGISVectorTileServer=t.ArcGISFeatureServer=t.ArcGISGeometryServer=t.ThemesInfo=t.ThemeServer=t.ItemValue=t.FolderInfoAttribute=t.FolderInfo=t.ExpInfo=t.CUniqueThemeInfo=t.CUniqueTheme=t.CThemeInfo=t.CTheme=t.CSimpleTheme=t.CRegInfo=t.CRangeThemeInfo=t.CRangeTheme=t.CRandomTheme=t.CPntInfo=t.CMultiClassTheme=t.CLinInfo=t.CGraduatedSymbolTheme=t.CFourColorTheme=t.CDotDensityTheme=t.CChartType=t.CChartThemeRepresentInfo=t.CChartThemeInfo=t.CChartTheme=t.CChartLabelFormat=t.CAnnInfo=t.CAllOtherDataItemInfoSource=t.ArcGISMapServer=t.WorkFlowServer=t.WFSServer=t.WMTSServer=t.WMSServer=t.SceneServer=t.ResourceServer=t.PlotServer=t.VectorTileServer=t.TileServer=t.RootServer=t.SecurityServer=t.TerrainServer=t.PoiServer=t.Cesium3DTilesServer=t.AddressServer=t.GeometryServer=t.ImageServer=t.M3DServer=t.FeatureServer=t.MapServer=void 0;var n=T(r(489)),i=T(r(490)),o=T(r(491)),a=T(r(492)),s=T(r(563)),u=T(r(564)),l=T(r(565)),c=T(r(566)),f=T(r(237)),h=T(r(567)),d=T(r(568)),p=T(r(221)),y=T(r(569)),g=T(r(570)),m=T(r(571)),v=T(r(572)),_=T(r(164)),S=T(r(118)),b=r(573),x=r(579),w=r(583),E=r(257);function T(e){return e&&e.__esModule?e:{default:e}}t.MapServer=n.default,t.FeatureServer=i.default,t.M3DServer=o.default,t.ImageServer=a.default,t.GeometryServer=s.default,t.AddressServer=u.default,t.Cesium3DTilesServer=l.default,t.PoiServer=c.default,t.TerrainServer=f.default,t.SecurityServer=h.default,t.RootServer=d.default,t.TileServer=p.default,t.VectorTileServer=y.default,t.PlotServer=g.default,t.ResourceServer=m.default,t.SceneServer=v.default,t.WMSServer=b.WMSServer,t.WMTSServer=b.WMTSServer,t.WFSServer=b.WFSServer,t.WorkFlowServer=E.WorkFlowServer,t.ArcGISMapServer=x.ArcGISMapServer,t.CAllOtherDataItemInfoSource=w.CAllOtherDataItemInfoSource,t.CAnnInfo=w.CAnnInfo,t.CChartLabelFormat=w.CChartLabelFormat,t.CChartTheme=w.CChartTheme,t.CChartThemeInfo=w.CChartThemeInfo,t.CChartThemeRepresentInfo=w.CChartThemeRepresentInfo,t.CChartType=w.CChartType,t.CDotDensityTheme=w.CDotDensityTheme,t.CFourColorTheme=w.CFourColorTheme,t.CGraduatedSymbolTheme=w.CGraduatedSymbolTheme,t.CLinInfo=w.CLinInfo,t.CMultiClassTheme=w.CMultiClassTheme,t.CPntInfo=w.CPntInfo,t.CRandomTheme=w.CRandomTheme,t.CRangeTheme=w.CRangeTheme,t.CRangeThemeInfo=w.CRangeThemeInfo,t.CRegInfo=w.CRegInfo,t.CSimpleTheme=w.CSimpleTheme,t.CTheme=w.CTheme,t.CThemeInfo=w.CThemeInfo,t.CUniqueTheme=w.CUniqueTheme,t.CUniqueThemeInfo=w.CUniqueThemeInfo,t.ExpInfo=w.ExpInfo,t.FolderInfo=w.FolderInfo,t.FolderInfoAttribute=w.FolderInfoAttribute,t.ItemValue=w.ItemValue,t.ThemeServer=w.ThemeServer,t.ThemesInfo=w.ThemesInfo,t.ArcGISGeometryServer=x.ArcGISGeometryServer,t.ArcGISFeatureServer=x.ArcGISFeatureServer,t.ArcGISVectorTileServer=x.ArcGISVectorTileServer,t.CAttDataRow=_.default,t.CAttStruct=S.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=_(r(13)),i=_(r(20)),o=_(r(10)),a=_(r(3)),s=_(r(0)),u=_(r(2)),l=_(r(4)),c=_(r(7)),f=_(r(5)),h=r(1),d=_(r(83)),p=_(r(496)),y=_(r(114)),g=r(6),m=r(43),v=r(12);function _(e){return e&&e.__esModule?e:{default:e}}function S(e,t){e.sublayers.forEach(function(e){S(e,t)}),e._styleLayers.forEach(function(e){t.push(e)})}var b=function(e){function t(e){(0,s.default)(this,t);var r=(0,l.default)(this,(t.__proto__||(0,a.default)(t)).call(this,e));return e=(0,h.defaultValue)(e,{}),r.type=g.SubLayerType.vectorTileSub,r.originLayerType=(0,h.defaultValue)(e.originLayerType,"SFeatureLayer"),r.capabilities=(0,v.mergeCommonClientCapbilities)(r.capabilities,{labelingInfo:!0,styleLayers:!0,visible:!0,opacity:!0,renderer:!0}),r._labelingInfo=(0,h.defaultValue)(e.labelingInfo,[]),r._styleLayers=(0,h.defaultValue)(e.styleLayers,[]),r._visible=(0,h.defaultValue)(e.visible,!0),r._opacity=(0,h.defaultValue)(e.opacity,1),r._renderer=e.renderer?m.BaseRenderer.fromJSON(e.renderer):null,r._updateStyleLayers(),r}return(0,f.default)(t,e),(0,u.default)(t,[{key:"_updateStyleLayers",value:function(){var e=this;this._convertLabelInfoToLabelClass(),this._styleLayers.forEach(function(t){t.paint||(t.paint={}),t.layout||(t.layout={}),e._renderer&&e._updateStyleLayerByRenderer(t),e._updateStyleLayerVisibleBySublayer(t),e._updateStyleLayerOpacityBySublayer(t),e._updateStyleLayerByLabelingInfo(t)})}},{key:"_updateOpacity",value:function(){var e=this;this.sublayers.forEach(function(e){e._updateOpacity()}),this._styleLayers.forEach(function(t){e._updateStyleLayerOpacityBySublayer(t)})}},{key:"_updateVisible",value:function(){var e=this;this.sublayers.forEach(function(e){e._updateVisible()}),this._styleLayers.forEach(function(t){e._updateStyleLayerVisibleBySublayer(t)})}},{key:"_updateStyleLayerVisibleBySublayer",value:function(e){var t=this.getCumulative("visible",function(e,t){return e&&t});e.layout.visibility=t?"visible":"none"}},{key:"_updateStyleLayerOpacityBySublayer",value:function(e){var t=this.getCumulative("opacity",function(e,t){return e*t});switch(e.type){case"fill":e.paint["fill-opacity"]=t;break;case"line":e.paint["line-opacity"]=t;break;case"symbol":e.paint["icon-opacity"]=t,e.paint["text-opacity"]=t;break;case"raster":e.paint["raster-opacity"]=t;break;case"background":e.paint["background-opacity"]=t;break;case"circle":e.paint["circle-opacity"]=t,e.paint["circle-stroke-opacity"]=t}}},{key:"_updateStyleLayerByRenderer",value:function(e){var t=p.default.renderToStyle(this._renderer,e.type,JSON.parse((0,o.default)(e)));if(t){var r=t.paint,n=t.layout;e.paint=(0,i.default)(e.paint,r),e.layout=(0,i.default)(e.layout,n)}}},{key:"_convertLabelInfoToLabelClass",value:function(){for(var e=(0,h.cloneObject)(this._labelingInfo),t=[],r=0;r<e.length;r++)t.push(new d.default(e[r]));this._labelingInfo=t}},{key:"_updateStyleLayerByLabelingInfo",value:function(e){this.layer.setExtendProperties(e.id,"labelingInfo",this._labelingInfo)}},{key:"toJSON",value:function(){var e=(0,c.default)(t.prototype.__proto__||(0,a.default)(t.prototype),"toJSON",this).call(this);return e.type=this.type,e.styleLayers=JSON.parse((0,o.default)(this.styleLayers)),e.renderer=this.renderer?this.renderer.toJSON():null,e.labelingInfo=this.labelingInfo.map(function(e){return e.toJSON()}),e.originLayerType=this.originLayerType,e}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"_fireSublayerUpdateEvent",value:function(){this.layer._fireLayerUpdateEvent([{params:arguments,dataChanged:!0,name:"sublayerUpdate",operationType:"method"}])}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(y.default);(0,n.default)(b.prototype,{styleLayers:{get:function(){return this._styleLayers}},renderer:{get:function(){return this._renderer},set:function(e){var t=this;this._renderer=e?m.BaseRenderer.fromJSON(e):null,this._styleLayers.forEach(function(e){t._updateStyleLayerByRenderer(e)}),this._fireSublayerUpdateEvent(this._styleLayers)}},visible:{get:function(){return this._visible},set:function(e){this._visible=e,this._updateVisible();var t=[];S(this,t),this._fireSublayerUpdateEvent(t)}},opacity:{get:function(){return this._opacity},set:function(e){this._opacity=e,this._updateOpacity();var t=[];S(this,t),this._fireSublayerUpdateEvent(t)}},labelingInfo:{get:function(){return this._labelingInfo},set:function(e){var t=this;this._labelingInfo=e,this._convertLabelInfoToLabelClass(),this._styleLayers.forEach(function(e){t._updateStyleLayerByLabelingInfo(e)}),this._fireSublayerUpdateEvent(this._styleLayers)}}}),t.default=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(10)),i=d(r(3)),o=d(r(0)),a=d(r(2)),s=d(r(4)),u=d(r(5)),l=r(8),c=r(9),f=r(1),h=r(16);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this));return e=(0,f.defaultValue)(e,{}),r.sceneIndex=(0,f.defaultValue)(e.sceneIndex,0),r.sceneName=(0,f.defaultValue)(e.sceneName,""),r.sceneMode=(0,f.defaultValue)(e.sceneMode,""),r.sceneRange=e.sceneRange?new c.Extent({xmin:e.sceneRange.xMin,ymin:e.sceneRange.yMin,xmax:e.sceneRange.xMax,ymax:e.sceneRange.yMax,zmin:e.sceneRange.zMin,zmax:e.sceneRange.zMax}):null,r.layer=(0,f.defaultValue)(e.layer,null),r.sublayers=r._decorate("sublayers",(0,f.defaultValue)(e.sublayers,null),null,function(e){return e instanceof l.Collection?e:Array.isArray(e)?new l.Collection(e.map(function(e){return e.layer=r.layer,e.parent=r.layer,h.SubLayer.fromJSON(e)})):null}),r.allSublayers=new l.CollectionFlattener({getCollections:function(){return r.sublayers instanceof l.Collection?[r.sublayers]:[]},getChildrenFunction:function(e){return e.sublayers}}),r.extendedProps=(0,f.defaultValue)(e.extendedProps,{}),r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"findSublayerById",value:function(e){return this.allSublayers.find(function(t){return String(t.id)===String(e)})}},{key:"toJSON",value:function(){var e={};return e.sceneIndex=this.sceneIndex,e.sceneName=this.sceneName,e.sceneMode=this.sceneMode,e.sceneRange=this.sceneRange?this.sceneRange.toJSON():null,e.extendedProps=JSON.parse((0,n.default)(this.extendedProps)),e.sublayers=this.sublayers?this.sublayers.map(function(e){return e.toJSON()}):null,e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(l.Evented);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(7)),u=d(r(5)),l=r(16),c=r(1),f=r(6),h=r(12);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,c.defaultValue)(e,{}),r.type=f.LayerType.overlay,r.capabilities=(0,h.mergeCommonClientCapbilities)(r.capabilities,{type:!0}),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,c.defaultValue)(e,{}))}}]),t}(l.Layer);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(2)),a=c(r(4)),s=c(r(7)),u=c(r(5)),l=r(8);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"createInstance",value:function(e){var t=e;return e instanceof l.Feature||(t=l.Feature.fromJSON(e)),Array.isArray(t._decorateParents)||(t._decorateParents=[]),t._decorateParents.push({instance:this,key:t.id}),t}},{key:"getFeatureById",value:function(e){var t=this.findIndex(function(t){return t.id===e});if(t>-1)return this.items[t]}},{key:"removeFeatureById",value:function(e){var t=this.findIndex(function(t){return t.id===e});return t>-1&&(this._removeEventParent(this.items[t]),this.items.splice(t,1),!0)}},{key:"remove",value:function(e){return this._removeEventParent(e),(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"remove",this).call(this,e)}},{key:"removeMany",value:function(e){var r=this;return e.forEach(function(e){r._removeEventParent(e)}),(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"removeMany",this).call(this,e)}},{key:"removeAll",value:function(){var e=this;this._items.forEach(function(t){e._removeEventParent(t)}),this._items=[],this._fireCollectionChangeEvent({target:this,sourceTarget:this})}},{key:"removeAt",value:function(e){return e<this._items.length&&this._removeEventParent(this._items[e]),(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"_removeAt",this).call(this,e)}},{key:"_removeEventParent",value:function(e){var t=this;if(e&&Array.isArray(e._decorateParents)){var r=e._decorateParents.findIndex(function(e){return e.instance===t});r>-1&&e._decorateParents.splice(r,1)}}}],[{key:"collect",value:function(e){return new t(e)}}]),t}(l.Collection);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLayersExtent=t.getCrsOptions=t.getCrsOptionsBySpatialReference=t.getLayerViewsGeographicExtent=t.getValidLayers=t.isLayerViewValid=void 0;var n=r(9),i=r(6),o=r(8),a=r(1),s=r(59);function u(e,t){var r=!1;if(t&&t.spatialReference&&e){var o=e;o instanceof n.SpatialReference||(o=n.SpatialReference.fromJSON(o)),r=!(i.LayerType.isTileLayer(t.type)&&t.spatialReference.wkid&&!(o.isWebMercator&&[i.CustomWKID.gcj02mc,i.CustomWKID.bd09mc].indexOf(t.spatialReference.wkid)>-1))||o.equals(t.spatialReference)||o.isGeographic&&t.spatialReference.isGeographic||o.isWebMercator&&t.spatialReference.isWebMercator}return r}t.isLayerViewValid=u,t.getValidLayers=function(e,t){var r=e.spatialReference,n=[];return t.forEach(function(e){u(r,e)&&n.push(e)}),n},t.getLayerViewsGeographicExtent=function(e,t,r){var i=e.extent,a=r._getLayersExtent(t);return a||(a=n.Extent.fromJSON(i.toJSON())),o.Projection.project(a,new n.SpatialReference("EPSG:4326"))},t.getCrsOptionsBySpatialReference=function(e,t,r){r||(r=s.TileInfoUtil.generateTileInfo(t,256,e));var n=r.origin.coordinates,i=r.lods.map(function(e){return e.clone()});return t.spatialReference.equals(e)||(t=o.Projection.project(t,e)),{spatialReference:e,lods:i,origin:n,extent:{xmin:t.xmin,ymin:t.ymin,xmax:t.xmax,ymax:t.ymax}}},t.getCrsOptions=function(e,t,r){r=(0,a.defaultValue)(r,{});var o=(0,a.defaultValue)(r.fullExtent,void 0),u=(0,a.defaultValue)(r.mergeLevelRatio,1.05),l=(0,a.defaultValue)(r.maxScale,void 0),c=(0,a.defaultValue)(r.minScale,void 0),f=(0,a.defaultValue)(r.refSpatialReference,void 0),h=void 0,d=void 0,p=e.tileInfo,y=e.spatialReference;if(f&&f.isWebMercator&&[i.CustomWKID.gcj02mc,i.CustomWKID.bd09mc].indexOf(y.wkid)>-1)h=new n.Extent({xmin:-20037508.342789244,ymin:-20037508.342789244,xmax:20037508.342789244,ymax:20037508.342789244,spatialReference:f}),d=i.TileSliceType.WMTS,p=s.TileInfoUtil.createCommonTileInfo({extent:h,numberOfMinLevelTilesX:1,maxLevel:18});else if(e.type===i.LayerType.WMTS)p=e.getCurrentTileInfo();else if(e.type===i.LayerType.WMS)p=s.TileInfoUtil.parseWMSTileInfo(e,o);else if(e.type===i.LayerType.IGSMapImage||e.type===i.LayerType.ArcGISMapImage||e.type===i.LayerType.IGSFeature||e.type===i.LayerType.WFS||e.type===i.LayerType.GeoJSON||e.type===i.LayerType.IGSImage){var g=256;e.imageWidth&&e.imageHeight&&(g=Math.max(e.imageWidth,e.imageHeight)),p=s.TileInfoUtil.generateTileInfo(o,g,y)}var m=n.Point.toCoordinates(p.origin),v=[];if(f&&f.isWebMercator&&[i.CustomWKID.gcj02mc,i.CustomWKID.bd09mc].indexOf(y.wkid)>-1){var _=p.lods.map(function(e){return e.clone()});v=v.concat(_)}if(t.forEach(function(e){var t=[];e.tileInfo?t=e.tileInfo.lods.map(function(e){return e.clone()}):e.type===i.LayerType.WMTS&&(t=e.getCurrentTileInfo().lods.map(function(e){return e.clone()})),v=v.concat(t)}),0===v.length&&(v=p.lods),v=v.filter(function(e){return 0!==e.scale}).sort(function(e,t){return t.resolution-e.resolution}),(0,a.defined)(c))for(;(0,a.defined)(v[0].scale)&&v[0].scale<c;){var S=v[0],b={level:S.level-1,resolution:2*S.resolution,scale:2*S.scale};2*S.scale>c&&S.scale<c&&(b={level:S.level-1,resolution:c/S.scale*S.resolution,scale:c}),v.unshift(s.LOD.fromJSON(b))}if((0,a.defined)(l))for(;(0,a.defined)(v[v.length-1].scale)&&v[v.length-1].scale>l;){var x=v[v.length-1],w={level:x.level+1,resolution:x.resolution/2,scale:x.scale/2};x.scale/2<l&&x.scale>l&&(w={level:x.level+1,resolution:l/x.scale*x.resolution,scale:l}),v.push(s.LOD.fromJSON(w))}for(var E=[v[0]],T=1;T<v.length;T++){var I=v[T];E[E.length-1].resolution/I.resolution<=u||E.push(I)}E.forEach(function(e,t){e.level=t,e.levelValue=t});var M=E.map(function(e){return e.resolution});return{spatialReference:f||y,resolutions:M,origin:m,extent:h||o,lods:E,tileSize:p.getTileSize(),tileSliceType:d||e.tileSliceType}},t.getLayersExtent=function(e,t){var r=void 0;return e.forEach(function(e){if(e.extent){var i=void 0;i=s.TileInfoUtil.isSameSpatialReference(e.extent.spatialReference,t)?e.extent:o.Projection.project(e.extent,t),e.extent.spatialReference&&t&&e.loaded&&(r?(r.xmin>i.xmin&&(r.xmin=i.xmin),r.ymin>i.ymin&&(r.ymin=i.ymin),r.xmax<i.xmax&&(r.xmax=i.xmax),r.ymax<i.ymax&&(r.ymax=i.ymax)):r=n.Extent.fromJSON(i.toJSON()))}}),r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.default=function(e,t,r){var i=(0,n.defaultValue)(r,{});(0,n.extend)(this,i),this.FID=(0,n.defaultValue)(t,0),this.Values=(0,n.defaultValue)(e,null)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=E(r(13)),i=E(r(15)),o=E(r(24)),a=E(r(48)),s=E(r(3)),u=E(r(0)),l=E(r(2)),c=E(r(4)),f=E(r(5)),h=r(8),d=r(1),p=r(6),y=E(r(102)),g=r(9),m=E(r(239)),v=E(r(166)),_=E(r(622)),S=r(59),b=E(r(623)),x=r(110),w=r(41);function E(e){return e&&e.__esModule?e:{default:e}}var T=function(e){function t(e){(0,u.default)(this,t);var r=(0,c.default)(this,(t.__proto__||(0,s.default)(t)).call(this));return e=(0,d.defaultValue)(e,{}),r._map=null,r._id=(0,d.getGUID)(),r._cursor=(0,d.defaultValue)(e.cursor,void 0),r.scale=(0,d.defaultValue)(e.scale,void 0),r.minScale=void 0,r.maxScale=void 0,r.rotation=0,r.center=(0,d.defaultValue)(e.center,[0,0]),r.minZoom=(0,d.defaultValue)(e.minZoom,0),r.maxZoom=(0,d.defaultValue)(e.maxZoom,19),r.zoom=(0,d.defaultValue)(e.zoom,1),r.extensionOptions=(0,d.defaultValue)(e.extensionOptions,{}),r.extendProps=(0,d.defaultValue)(e.extendProps,{}),r.popup=void 0,r.stationary=!0,r._spatialReference=new g.SpatialReference("EPSG:4326"),r.layerViews=new h.Collection,r.basemapLayerViews=new h.Collection,r._viewLayersMap=new m.default,r._graphicsLayers=r._viewLayersMap.groupLayer,r._viewLayersGroupLayerView=void 0,r._setViewLayers(r._graphicsLayers),r.overlayLayerViews=new h.Collection,r.allLayerViews=new h.CollectionFlattener({getCollections:function(){return[r.basemapLayerViews,r.layerViews,r.overlayLayerViews,r._viewLayersGroupLayerView.layerViews]},getChildrenFunction:function(e){return e.layerViews}}),r.layerViewFilter=b.default.fromJSON((0,d.defaultValue)(e.layerViewFilter,{})),r.initialGoTo=(0,d.defaultValue)(e.initialGoTo,!0),r._initMapEventHandlers(),r.setMap(e.map),r._viewId=(0,d.defaultValue)(e.viewId,""),r._innerView=null,r._initCursor(),r}return(0,f.default)(t,e),(0,l.default)(t,[{key:"setMap",value:function(e){this._map||(this._map=e instanceof m.default?e:m.default.fromJSON(e),this._linkMapEvent(this._map),this._linkLayerEvent(this._map),this._map._loadLayers(),this.groupLayerView=new v.default({layer:this._map.groupLayer,layerViews:this.layerViews,view:this}),this.overlayGroupLayerView=new v.default({layer:this._map.overlayLayers,layerViews:this.overlayLayerViews,view:this}),this._map.basemap&&this._setBasemapLayerView())}},{key:"getInnerView",value:function(){return this._innerView}},{key:"getInnerLayer",value:function(e,t){if(e){var r="string"==typeof e?e:e.id,n=this._findLayerViewById(r);return t&&n?this._getInnerSublayer(n,t):n?n.innerLayer:null}}},{key:"_getInnerSublayer",value:function(e,t){return null}},{key:"getLayer",value:function(e){return(this._findLayerViewById(e)||{}).layer}},{key:"_setBasemapLayerView",value:function(){this._basemapView=new _.default({baseGroupLayer:this._map.basemap._baseGroupLayer,baseLayerViews:this.basemapLayerViews,view:this}),this.basemapGroupLayerView=this._basemapView.groupLayerView}},{key:"_removeBasemapLayerView",value:function(){this._basemapView=null,this.basemapGroupLayerView=null}},{key:"_linkLayerEvent",value:function(e){var t=this;if(e){var r=!0,n=!1,i=void 0;try{for(var s,u=function(){var r=s.value,n=t;e.on(p.LayerEventType[r],function(e){var t=e;t instanceof h.Event?t.addProperty("view",n):t&&(t.view=n),n.fire(p.LayerEventType[r],t)},e)},l=(0,a.default)((0,o.default)(p.LayerEventType));!(r=(s=l.next()).done);r=!0)u()}catch(e){n=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(n)throw i}}}}},{key:"_linkMapEvent",value:function(e){var t=this;if(e){var r=!0,n=!1,i=void 0;try{for(var s,u=function(){var r=s.value,n=t;e.on(p.MapEventType[r],function(e){var t=e;t instanceof h.Event?t.addProperty("view",n):t&&(t.view=n),n.fire(p.MapEventType[r],t)})},l=(0,a.default)((0,o.default)(p.MapEventType));!(r=(s=l.next()).done);r=!0)u()}catch(e){n=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(n)throw i}}}}},{key:"_getLayerView",value:function(e){if(e)return this._findLayerViewById(e.id)}},{key:"_initMapEventHandlers",value:function(){this.on(p.MapEventType.layerLoaded,this._processEvent,this),this.on(p.MapEventType.layerChange,this._processEvent,this),this.on(p.LayerEventType.layerUpdate,this._processEvent,this),this.on(p.MapEventType.basemapChange,this._processEvent,this)}},{key:"_processEvent",value:function(e){e.type===p.MapEventType.layerChange&&this._processLayerChange(e),e.type===p.MapEventType.layerLoaded&&this._processLayerLoad(e),e.type===p.LayerEventType.layerUpdate&&e.layer instanceof S.Layer&&this._updateLayerView(e.layer,e),e.type===p.MapEventType.basemapChange&&e.detail&&(e.detail.find(function(e){return"baseLayers-destroy"===e.action})?this._removeBasemapLayerView(e):e.detail.find(function(e){return"basemap-create"===e.action})&&(this._basemapView||this._setBasemapLayerView(e)))}},{key:"_processLayerLoad",value:function(e){var t=this;if(e){var r=e.addDetail;this._prePromise||(this._prePromise=i.default.resolve()),this._prePromise=this._prePromise.then(function(){return t._loadViewSpatialReference().then(function(e){if(!1!==e){var n=i.default.resolve();return r.forEach(function(e){n=n.then(function(){var r=e.added,n=e.sourceTarget,i=t._findGroupLayerViewById(n.id);if(i)return i.addMany(r).then(function(e){i._fireLayerViewCreatedByLayerViews(e),Array.isArray(e)&&e.forEach(function(e){i._reorderLayerView(e)})})})}),n}}).catch(function(e){d.Log.error(e)})})}}},{key:"_processLayerChange",value:function(e){var t=this;if(e&&this.groupLayerView){var r=e.added,n=e.removed,i=e.moved,o=e.sourceTarget,a=this._findGroupLayerViewById(o.id);if(a){var s=void 0;0===n.length&&0===r.length&&0===i.length?s=a.removeAll():n.length>0&&(s=a.removeMany(n)),s&&s.then(function(){return t._loadViewSpatialReference().then().catch(function(e){d.Log.info(e)})}),i.length>0&&i.forEach(function(e){a.reorder(e)})}}}},{key:"_findGroupLayerViewById",value:function(e){var t=void 0;return e===this.groupLayerView.id?t=this.groupLayerView:e===this.overlayGroupLayerView.id?t=this.overlayGroupLayerView:this.basemapGroupLayerView&&e===this.basemapGroupLayerView.id?t=this.basemapGroupLayerView:this._viewLayersMap&&this._viewLayersGroupLayerView&&e===this._viewLayersGroupLayerView.id?t=this._viewLayersGroupLayerView:(!(t=this.groupLayerView._findFlatLayerViewById(e))&&this.basemapGroupLayerView&&(t=this.basemapGroupLayerView._findFlatLayerViewById(e)),!t&&this.overlayGroupLayerView&&(t=this.overlayGroupLayerView._findFlatLayerViewById(e)),!t&&this._viewLayersGroupLayerView&&(t=this._viewLayersGroupLayerView._findFlatLayerViewById(e))),t}},{key:"_loadViewSpatialReference",value:function(){var e=this;return new i.default(function(t,r){e._map._setSpatialReference(e._spatialReference),e._map.getFullExtent(),e._spatialReference?t(!0):r()})}},{key:"_loadLayerViews",value:function(){var e=this;return new i.default(function(t){e._map._spatialReference=e._spatialReference,e._map._fullExtent=e._fullExtent,t()})}},{key:"_getFlyToCenter",value:function(e){var t=void 0;if(e.center){if(Array.isArray(e.center)&&e.center.length>1){var r=e.center.length>2?[e.center[0],e.center[1],e.center[2]]:[e.center[0],e.center[1]];t=new g.Point({coordinates:r,spatialReference:this._spatialReference?this._spatialReference:new g.SpatialReference({wkid:4326})})}else e.center instanceof g.Point?t=g.Point.fromJSON(e.center):e.center instanceof g.Point||d.Log.error("center类型为不支持的类型!");t.spatialReference.isGeographic||(t=h.Projection.project(t,new g.SpatialReference({wkid:4326})))}return t}},{key:"_getFlyToExtent",value:function(e){var t=void 0;return e.extent&&(e.extent instanceof g.Extent?(t=g.Extent.fromJSON(e.extent)).spatialReference.isGeographic||(t=h.Projection.project(t,new g.SpatialReference({wkid:4326}))):d.Log.error("extent类型为不支持的类型!")),t}},{key:"_updateLayerView",value:function(e,t){var r=this,n=this._findLayerViewById(e.id);return n instanceof y.default?n.onUpdate(t).then(function(){return n}).then(function(n){d.Log.info("更新图层",e),t&&(t.addProperty("view",self),t.addProperty("layerView",n)),r.dispatchEvent(p.LayerEventType.layerViewUpdate,t)}):(d.Log.info("图层更新失败,未找到该类型的视图!"),i.default.resolve())}},{key:"dispatchEvent",value:function(e,t,r){return t instanceof h.LayerEvent&&t.layer&&t.layer.fire(e,t,r),this._map&&this._map.dispatchEvent(e,t,r),this}},{key:"_findLayerViewById",value:function(e){var t=this.allLayerViews.items.find(function(t){return t.id===e});return t||(t=this._viewLayersGroupLayerView.allLayerViews.items.find(function(t){return t.id===e})),t}},{key:"_updateLayerViewScaleVisible",value:function(){for(var e=this.allLayerViews.items.filter(function(e){return e.type!==p.LayerType.group}),t=[],r=0;r<e.length;r++){var n=e[r],i=n.layer;if(i.type!==p.LayerType.IGSScene&&i.type!==p.LayerType.ISScene||!n.sublayerViews){if(i.visible){var o=n._scaleVisible;n._updateScaleVisible();var a=n._scaleVisible;if(o!==a){var s=new x.LayerViewUpdateContent({name:"scaleVisible",params:[{beforeScaleVisible:o,currentScaleVisible:a}],dataChanged:!0,operationType:"property"});i._fireUpdateEvent("图层视图比例尺显示和隐藏状态变化",[s]);var u=new w.LayerViewScaleVisibleEvent({type:p.LayerEventType.layerViewScaleVisible,target:i,layer:i,view:this,layerView:n,beforeScaleVisible:o,currentScaleVisible:a,message:"图层视图比例尺显示和隐藏状态变化"});i.fire(p.LayerEventType.layerViewScaleVisible,u),this.fire(p.LayerEventType.layerViewScaleVisible,u)}}}else t=t.concat(n.sublayerViews.items)}for(var l=0;l<t.length;l++){var c=t[l],f=c.layer;if(f.visible){var h=c._scaleVisible;c._updateScaleVisible();var d=c._scaleVisible;if(h!==d){f.layer._fireSublayerUpdateEvent(f.id,"scaleVisible",{beforeScaleVisible:h,currentScaleVisible:d});var y=new w.LayerViewScaleVisibleEvent({type:p.LayerEventType.layerViewScaleVisible,target:f,layer:f,view:this,layerView:c,beforeScaleVisible:h,currentScaleVisible:d,message:"场景子图层视图比例尺显示和隐藏状态变化"});this.fire(p.LayerEventType.layerViewScaleVisible,y)}}}}},{key:"_orderLayerView",value:function(e,t){if(e instanceof v.default)this._moveGroupLayerView(e,t);else if(t instanceof v.default){var r=this._getLastLayerView(t);this._moveLayerView(e,r)}else if(t instanceof v.default&&e instanceof v.default){var n=this._getLastLayerView(t);this._moveGroupLayerView(e,n)}else this._moveLayerView(e,t)}},{key:"_isImageLayerView",value:function(e){return e.layer instanceof S.IGSTileLayer||e.layer instanceof S.ArcGISTileLayer||e.layer instanceof S.WebTileLayer||e.layer instanceof S.IGSMapImageLayer||e.layer instanceof S.ArcGISMapImageLayer||e.layer instanceof S.IGSImageryLayer||e.layer instanceof S.IGSImageryTileLayer||e.layer instanceof S.WMTSLayer||e.layer instanceof S.WMSLayer||e.layer instanceof S.IGSSceneMapRefSubLayer}},{key:"_isVectorTileLayerView",value:function(e){return e.layer instanceof S.IGSVectorTileLayer||e.layer instanceof S.ArcGISVectorTileLayer}},{key:"_isVisualizationLayerView",value:function(e){return e.layer instanceof S.MapVLayer||e.layer instanceof S.EchartsLayer}},{key:"_isVectorLayerView",value:function(e){return e.layer instanceof S.IGSFeatureLayer||e.layer instanceof S.GeoJSONLayer||e.layer instanceof S.WFSLayer||e.layer instanceof S.GraphicsLayer}},{key:"_isSceneLayerView",value:function(e){return e.layer instanceof S.IGSSceneLayer||e.layer instanceof S.ISSceneLayer}},{key:"_isModelCacheLayerView",value:function(e){return e.layer instanceof S.M3DModelCacheLayer||e.layer instanceof S.IGSSceneModelCacheSubLayer||e.layer instanceof S.Cesium3DTilesCacheLayer||e.layer instanceof S.S3MTilesCacheLayer||e.layer instanceof S.ISSceneModelCacheSubLayer}},{key:"_isTerrainCacheLayerView",value:function(e){return e.layer instanceof S.TerrainCacheLayer}},{key:"_moveGroupLayerView",value:function(e,t){var r=this;e.allLayerViews.forEach(function(e){e instanceof v.default?r._moveGroupLayerView(e,t):r._moveLayerView(e,t)})}},{key:"_moveLayerView",value:function(e,t){}},{key:"_getLastLayerView",value:function(e){var t=e.toArray(),r=t[t.length-1];return r instanceof v.default?this._getLastLayerView(r):r}},{key:"_addAllLayerViews",value:function(){var e=this,t=[];return this.basemapGroupLayerView&&t.push(function(){return e.basemapGroupLayerView.onAdd()}),this.groupLayerView&&t.push(function(){return e.groupLayerView.onAdd()}),this.overlayGroupLayerView&&t.push(function(){return e.overlayGroupLayerView.onAdd()}),this._viewLayersMap&&this._viewLayersGroupLayerView&&t.push(function(){return e._viewLayersGroupLayerView.onAdd()}),(0,d.inOrderPromise)(t)}},{key:"_removeAllLayerViews",value:function(){var e=this,t=[];return this.basemapGroupLayerView&&t.push(function(){return e.basemapGroupLayerView.onRemove()}),this.groupLayerView&&t.push(function(){return e.groupLayerView.onRemove()}),this.overlayGroupLayerView&&t.push(function(){return e.overlayGroupLayerView.onRemove()}),this._viewLayersMap&&this._viewLayersGroupLayerView&&t.push(function(){return e._viewLayersGroupLayerView.onRemove()}),(0,d.inOrderPromise)(t)}},{key:"_createLayerView",value:function(e){return null}},{key:"_initCursor",value:function(){this._setCursor(this.cursor)}},{key:"_setCursor",value:function(e){this._innerView&&(e&&null!==e?this._innerView._container.style.cursor=e:this._innerView._container.style.removeProperty("cursor"),this._cursor=e)}},{key:"_getTargetExtent",value:function(e){var t=void 0;if(e instanceof g.Geometry)e instanceof g.Extent?t=this._getFlyToExtent({extent:e}):e.extent&&(t=this._getFlyToExtent({extent:e.extent}));else{var r=[],n=void 0;Array.isArray(e)?r=e:e instanceof h.Collection&&(r=e.items),r.forEach(function(e){var t=void 0;e instanceof g.Extent?t=e:e instanceof g.Geometry&&e.extent&&(t=e.extent),t.spatialReference.isGeographic||(t=h.Projection.project(t.clone(),new g.SpatialReference("EPSG:4326"))),n?(n.xmin>t.xmin&&(n.xmin=t.xmin),n.xmax<t.xmax&&(n.xmax=t.xmax),n.ymin>t.ymin&&(n.ymin=t.ymin),n.ymax<t.ymax&&(n.ymax=t.ymax)):n=t}),t=this._getFlyToExtent({extent:n})}return t}},{key:"_setViewLayers",value:function(e){this._linkMapEvent(this._viewLayersMap),this._linkLayerEvent(this._viewLayersMap),this._viewLayersGroupLayerView=new v.default({layer:this._viewLayersMap.groupLayer,view:this})}},{key:"_processGraphicsLayersChange",value:function(e){var t=e.added,r=e.removed;t&&t.length>0&&this._viewLayersMap.addMany(t),r&&r.length>0&&this._viewLayersMap.removeMany(r)}},{key:"_getValidCenter",value:function(e){var t=void 0;return(0,d.isNull)(e)||(Array.isArray(e)?e.length>2?t=new g.Point({coordinates:[e[0],e[1],e[2]]}):e.length>1&&(t=new g.Point({coordinates:[e[0],e[1]]})):e instanceof g.Point?t=e:e instanceof Object&&(t=g.Point.fromJSON(e))),t}},{key:"toJSON",value:function(){return{map:this._map?this._map.toJSON():[],viewId:this.viewId,cursor:this.cursor,scale:this.scale,center:(0,d.toJSON)(this._center,g.Point),minZoom:this.minZoom,maxZoom:this.maxZoom,zoom:this.zoom,extensionOptions:this.extensionOptions,extendProps:this.extendProps,layerViewFilter:this.layerViewFilter.toJSON()}}}]),t}(h.Evented);(0,n.default)(T.prototype,{map:{get:function(){return this._map},set:function(e){this._map=e}},cursor:{get:function(){return this._cursor},set:function(e){this._setCursor(e)}},spatialReference:{get:function(){return this._spatialReference},set:function(){}},graphicsLayers:{get:function(){return this._graphicsLayers}}}),t.default=T},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(15)),i=p(r(3)),o=p(r(0)),a=p(r(2)),s=p(r(4)),u=p(r(5)),l=p(r(102)),c=r(8),f=r(6),h=r(113),d=r(1);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.layerViews=e.layerViews||new c.Collection,r.allLayerViews=new c.CollectionFlattener({getCollections:function(){return[r.layerViews]},getChildrenFunction:function(e){return e.layerViews}}),r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"onAdd",value:function(e){var t=this;return this.addMany(this.layer.layers.items).then(function(){return t})}},{key:"add",value:function(e,t){return this.addMany([e],t)}},{key:"remove",value:function(e){return this.removeMany([e])}},{key:"addMany",value:function(e,t){var r=this;if(!e||!this.layerViews)return n.default.resolve([]);var i=this.view,o=this.layer,a=e.filter(function(e){return e&&(e.loaded||e.type===f.LayerType.group)&&o.findLayerById(e.id)&&!r._findLayerViewById(e.id)}).map(function(e){return i._createLayerView(e)}).filter(function(e){return e}),s=(0,h.inOrderPromise)(a.map(function(e){return function(){return e.checkLayerCanAddedStatus()?e.onAdd().catch(function(t){d.Log.error(t),r._fireLayerCreatedError(e.layer,e,t)}).then(function(e){return e||void 0}):n.default.resolve(void 0)}}));return s.catch(function(e){r._fireLayerCreatedError(r.layer,r,e)}),s.then(function(e){e=e.filter(function(e){return e instanceof l.default});for(var n=[],i=[],a=0;a<e.length;a++){var s=e[a];o.findLayerById(s.id)&&!r._findLayerViewById(s.id)?i.push(s):n.push(s)}return n.length>0&&r._removeLayerViews(n),i.length>0&&(r._setItemParent(i,r),r.layerViews.addMany(i,t)),i})}},{key:"removeMany",value:function(e){var t=this;if(!e||!this.layerViews)return n.default.resolve([]);var r=e.map(function(e){return t._findLayerViewById(e.id)}).filter(function(e){return e});return 0===r.length?n.default.resolve([]):this._removeLayerViews(r)}},{key:"_removeLayerViews",value:function(e){var t=this,r=e.map(function(e){return e.onRemove().then(function(e){return t._fireLayerViewRemove(e.layer,e),e}).catch(function(e){d.Log.error(e)})});return(0,h.allSettled)(r).then(function(e){var r=e.filter(function(e){return"fulfilled"===e.status}).map(function(e){return e.value});t.layerViews.removeMany(r),t._setItemParent(r,null)})}},{key:"removeAll",value:function(){this.layerViews&&this._removeLayerViews(this.layerViews.items.map(function(e){return e}))}},{key:"reorder",value:function(e){var t=this;if(this.layerViews&&e&&e.parent){var r=e.parent,n=this.layerViews.items.findIndex(function(t){return t.id===e.id}),i=r.layers.items.filter(function(e){return t.layerViews.items.some(function(t){return t.id===e.id})}),o=i.findIndex(function(t){return t.id===e.id});if(n!==o&&-1!==n&&-1!==o){var a=this.layerViews.items[n];this.layerViews.reorder(a,o),o===i.length-1?i.slice(0,o).reverse().forEach(function(e){var r=t._findLayerViewById(e.id);r&&t._reorderLayerView(r)}):this._reorderLayerView(a)}}}},{key:"onRemove",value:function(e){var t=this;return this.removeMany(this.layer.layers.items).then(function(){return t})}},{key:"onUpdate",value:function(e){var t=this,r=this.layerViews.items;return n.default.all(r.map(function(t){return t.onUpdate(e)})).then(function(){return t})}},{key:"_setItemParent",value:function(e,t){(e instanceof c.Collection?e._items:Array.isArray(e)?e:[e]).forEach(function(e){e&&(e.parent=t)})}},{key:"_fireLayerViewCreatedByLayerViews",value:function(e){if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];if(n instanceof l.default){if(n instanceof t){var i=n.layerViews.items;this._fireLayerViewCreatedByLayerViews(i)}this._fireLayerViewCreated(n.layer,n)}}}},{key:"_fireLayerViewCreated",value:function(e,t){var r=new c.LayerEvent({type:f.LayerEventType.layerViewCreated,message:"图层在视图中创建完毕",layer:e});r.addProperty("view",this.view),r.addProperty("layerView",t),e.fire(f.LayerEventType.layerViewCreated,r),this.view.fire(f.LayerEventType.layerViewCreated,r)}},{key:"_fireLayerCreatedError",value:function(e,t,r){var n=new c.LayerEvent({type:f.LayerEventType.layerViewCreatedError,target:e,error:r||"图层在视图中创建失败",layer:e});n.addProperty("view",this.view),n.addProperty("layerView",t),e.fire(f.LayerEventType.layerViewCreatedError,n),this.view.fire(f.LayerEventType.layerViewCreatedError,n)}},{key:"_fireLayerViewRemove",value:function(e,t){var r=new c.LayerEvent({type:f.LayerEventType.layerViewRemove,message:"移除图层视图",layer:e});r.addProperty("view",this.view),r.addProperty("layerView",t),e.fire(f.LayerEventType.layerViewRemove,r),this.view.fire(f.LayerEventType.layerViewRemove,r)}},{key:"_findLayerViewById",value:function(e){return this.layerViews.items.find(function(t){return t.id===e})}},{key:"_findFlatLayerViewById",value:function(e){return this.allLayerViews.items.find(function(t){return t.id===e})}},{key:"_findLastLayerViewById",value:function(e){var r=this.view;if(e&&r){var n=this._findLayerViewById(e);if(n){var i=n;if(n instanceof t){var o=n.allLayerViews.items.filter(function(e){return!(e instanceof t)});if(0===o.length)return;i=o[o.length-1]}var a=r.allLayerViews.items.findIndex(function(e){return e.id===i.id});if(-1!==a){var s=r.allLayerViews.items.slice(a+1).filter(function(e){return!(e instanceof t)});if(0!==s.length)return s[0]}}}}},{key:"_reorderLayerView",value:function(e){var t=this._findLastLayerViewById(e.id);t&&this.view._orderLayerView(e,t)}}]),t}(l.default);t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SketchEditorEvent=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.SketchEditorEvent=function e(t){(0,n.default)(this,e);var r=(0,i.defaultValue)(t,{});this.type=(0,i.defaultValue)(r.type,""),this.toolEventInfo=(0,i.defaultValue)(r.toolEventInfo,null),this.state=(0,i.defaultValue)(r.state,null),this.feature=(0,i.defaultValue)(r.feature,null)}},function(e,t,r){var n=r(46),i=r(53),o=r(271)(!1),a=r(122)("IE_PROTO");e.exports=function(e,t){var r,s=i(e),u=0,l=[];for(r in s)r!=a&&n(s,r)&&l.push(r);for(;t.length>u;)n(s,r=t[u++])&&(~o(l,r)||l.push(r));return l}},function(e,t,r){e.exports=!r(33)&&!r(64)(function(){return 7!=Object.defineProperty(r(126)("div"),"a",{get:function(){return 7}}).a})},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u,l=[],c=!1,f=-1;function h(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&d())}function d(){if(!c){var e=s(h);c=!0;for(var t=l.length;t;){for(u=l,l=[];++f<t;)u&&u[f].run();f=-1,t=l.length}u=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function y(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new p(e,t)),1!==l.length||c||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=[],a=t.algo.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],a=r[2],s=r[3],u=r[4],l=0;l<80;l++){if(l<16)o[l]=0|e[t+l];else{var c=o[l-3]^o[l-8]^o[l-14]^o[l-16];o[l]=c<<1|c>>>31}var f=(n<<5|n>>>27)+u+o[l];f+=l<20?1518500249+(i&a|~i&s):l<40?1859775393+(i^a^s):l<60?(i&a|i&s|a&s)-1894007588:(i^a^s)-899497514,u=s,s=a,a=i<<30|i>>>2,i=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+s|0,r[4]=r[4]+u|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=i._createHelper(a),t.HmacSHA1=i._createHmacHelper(a)}(),e.SHA1}(r(14))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib.Hasher,n=t.x64,i=n.Word,o=n.WordArray,a=t.algo;function s(){return i.create.apply(i,arguments)}var u=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=s()}();var c=a.SHA512=r.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],c=r[5],f=r[6],h=r[7],d=n.high,p=n.low,y=i.high,g=i.low,m=o.high,v=o.low,_=a.high,S=a.low,b=s.high,x=s.low,w=c.high,E=c.low,T=f.high,I=f.low,M=h.high,k=h.low,P=d,L=p,O=y,C=g,N=m,R=v,G=_,A=S,V=b,D=x,F=w,j=E,B=T,q=I,U=M,J=k,z=0;z<80;z++){var W,H,Y=l[z];if(z<16)H=Y.high=0|e[t+2*z],W=Y.low=0|e[t+2*z+1];else{var X=l[z-15],K=X.high,Z=X.low,Q=(K>>>1|Z<<31)^(K>>>8|Z<<24)^K>>>7,$=(Z>>>1|K<<31)^(Z>>>8|K<<24)^(Z>>>7|K<<25),ee=l[z-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=l[z-7],ae=oe.high,se=oe.low,ue=l[z-16],le=ue.high,ce=ue.low;H=(H=(H=Q+ae+((W=$+se)>>>0<$>>>0?1:0))+ne+((W+=ie)>>>0<ie>>>0?1:0))+le+((W+=ce)>>>0<ce>>>0?1:0),Y.high=H,Y.low=W}var fe,he=V&F^~V&B,de=D&j^~D&q,pe=P&O^P&N^O&N,ye=L&C^L&R^C&R,ge=(P>>>28|L<<4)^(P<<30|L>>>2)^(P<<25|L>>>7),me=(L>>>28|P<<4)^(L<<30|P>>>2)^(L<<25|P>>>7),ve=(V>>>14|D<<18)^(V>>>18|D<<14)^(V<<23|D>>>9),_e=(D>>>14|V<<18)^(D>>>18|V<<14)^(D<<23|V>>>9),Se=u[z],be=Se.high,xe=Se.low,we=U+ve+((fe=J+_e)>>>0<J>>>0?1:0),Ee=me+ye;U=B,J=q,B=F,q=j,F=V,j=D,V=G+(we=(we=(we=we+he+((fe+=de)>>>0<de>>>0?1:0))+be+((fe+=xe)>>>0<xe>>>0?1:0))+H+((fe+=W)>>>0<W>>>0?1:0))+((D=A+fe|0)>>>0<A>>>0?1:0)|0,G=N,A=R,N=O,R=C,O=P,C=L,P=we+(ge+pe+(Ee>>>0<me>>>0?1:0))+((L=fe+Ee|0)>>>0<fe>>>0?1:0)|0}p=n.low=p+L,n.high=d+P+(p>>>0<L>>>0?1:0),g=i.low=g+C,i.high=y+O+(g>>>0<C>>>0?1:0),v=o.low=v+R,o.high=m+N+(v>>>0<R>>>0?1:0),S=a.low=S+A,a.high=_+G+(S>>>0<A>>>0?1:0),x=s.low=x+D,s.high=b+V+(x>>>0<D>>>0?1:0),E=c.low=E+j,c.high=w+F+(E>>>0<j>>>0?1:0),I=f.low=I+q,f.high=T+B+(I>>>0<q>>>0?1:0),k=h.low=k+J,h.high=M+U+(k>>>0<J>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=r._createHelper(c),t.HmacSHA512=r._createHmacHelper(c)}(),e.SHA512}(r(14),r(106))},function(e,t,r){e.exports={default:r(306),__esModule:!0}},function(e,t,r){e.exports=r(54)},function(e,t,r){var n=r(37),i=r(38),o=r(74);e.exports=r(33)?Object.defineProperties:function(e,t){i(e);for(var r,a=o(t),s=a.length,u=0;s>u;)n.f(e,r=a[u++],t[r]);return e}},function(e,t,r){var n=r(30).document;e.exports=n&&n.documentElement},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){var n=r(75);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n=r(168),i=r(124).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},function(e,t,r){e.exports={default:r(325),__esModule:!0}},function(e,t,r){"use strict";t.__esModule=!0;var n=o(r(327)),i=o(r(48));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(Array.isArray(e))return e;if((0,n.default)(Object(e)))return function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var s,u=(0,i.default)(e);!(n=(s=u.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(o)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,r){var n=r(38);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},function(e,t,r){var n=r(78),i=r(31)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},function(e,t,r){var n=r(31)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},e(o)}catch(e){}return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.aliceblue="#f0f8ff",n.antiquewhite="#faebd7",n.aqua="#00ffff",n.auqamarin="#7fffaa",n.azure="#f0ffff",n.beige="#6b8e23",n.bisque="#ffe4c4",n.black="#000000",n.blanchedalmond="#ffebcd",n.blue="#0000ff",n.blueviolet="#8a2be2",n.brown="#a52a2a",n.brulywood="#deb887",n.cadetblue="#5f9ea0",n.chartreuse="#7fff00",n.chocolate="#d2691e",n.coral="#ff7f50",n.cornflowerblue="#6495ed",n.cornislk="#fff8dc",n.crimson="#dc143c",n.cyan="#00ffff",n.darkblue="#00008b",n.darkcyan="#008b8b",n.darkgray="#a9a9a9",n.darkgreen="#006400",n.darkkhaki="#bdb76b",n.darkmagenta="#8b008b",n.darkorange="#ff8c00",n.darkorchid="#9932cc",n.darkred="#8b0000",n.darksalmon="#e9967a",n.darkseagreen="#8fbc8f",n.darkslateblue="#483d8b",n.darkslategray="#2f4f4f",n.darkturquoise="#00ced1",n.darkvoilet="#9400d3",n.deeppink="#ff1493",n.deepskyblue="#00bfff",n.dimgray="#696969",n.doderblue="#1e90ff",n.firebrick="#b22222",n.floralwhite="#fffaf0",n.forestgreen="#228b22",n.fuchsia="#ff00ff",n.gainsboro="#dcdcdc",n.ghostwhite="#f8f8ff",n.gold="#ffd700",n.goldenrod="#daa520",n.gray="#808080",n.green="#008000",n.greenyellow="#adff2f",n.honeydew="#f0fff0",n.hotpink="#ff69b4",n.indianred="#cd5c5c",n.indigo="#4b0082",n.ivory="#fffff0",n.khaki="#f0e68c",n.lavender="#e6e6fa",n.lavenderblush="#fff0f5",n.lawngreen="#7cfc00",n.lemonchiffon="#fffacd",n.lightblue="#add8e6",n.lightcoral="#f08080",n.lightcyan="#e1ffff",n.lightgoldenrodyellow="#fafad2",n.lightgreen="#90ee90",n.lightgrey="#d3d3d3",n.lightpink="#ffb6c1",n.lightsalmon="#ffa07a",n.lightseagreen="#20b2aa",n.lightskyblue="#87cefa",n.lightslategray="#778899",n.lightsteelblue="#b0c4de",n.lightyellow="#ffffe0",n.lime="#00ff00",n.limegreen="#32cd32",n.linen="#faf0e6",n.magenta="#ff00ff",n.maroon="#800000",n.mediumaquamarine="#00fa9a",n.mediumblue="#0000cd",n.mediumorchid="#ba55d3",n.mediumpurple="#9370db",n.mediumslateblue="#7b68ee",n.mediumspringgreen="#f5fffa",n.mediumturquoise="#48d1cc",n.mediumvioletred="#c71585",n.midnightblue="#191970",n.mintcream="#00ff7f",n.mistyrose="#ffe4e1",n.moccasin="#ffe4b5",n.navajowhite="#ffdead",n.navy="#000080",n.oldlace="#fdf5e6",n.olive="#808000",n.olivedrab="#556b2f",n.orange="#ffa500",n.orangered="#ff4500",n.orchid="#da70d6",n.palegodenrod="#eee8aa",n.palegreen="#98fb98",n.paleturquoise="#afeeee",n.palevioletred="#db7093",n.papayawhip="#ffefd5",n.peachpuff="#ffdab9",n.peru="#cd853f",n.pink="#ffc0cb",n.plum="#dda0dd",n.powderblue="#b0e0e6",n.purple="#800080",n.red="#ff0000",n.rosybrown="#bc8f8f",n.royalblue="#4169e1",n.saddlebrown="#8b4513",n.salmon="#fa8072",n.sandybrown="#f4a460",n.seagreen="#2e8b57",n.seashell="#fff5ee",n.sienna="#a0522d",n.silver="#c0c0c0",n.skyblue="#87ceeb",n.slateblue="#6a5acd",n.slategray="#708090",n.snow="#fffafa",n.springgreen="#3cb371",n.steelblue="#4682b4",n.tan="#d2b48c",n.teal="#008080",n.thistle="#d8bfd8",n.tomato="#ff6347",n.turquoise="#40e0d0",n.violet="#ee82ee",n.wheat="#f5deb3",n.white="#ffffff",n.whitesmoke="#f5f5f5",n.yellow="#ffff00",i);Object.defineProperty(a,"aliceblue",{writable:!1}),Object.defineProperty(a,"antiquewhite",{writable:!1}),Object.defineProperty(a,"aqua",{writable:!1}),Object.defineProperty(a,"auqamarin",{writable:!1}),Object.defineProperty(a,"azure",{writable:!1}),Object.defineProperty(a,"beige",{writable:!1}),Object.defineProperty(a,"bisque",{writable:!1}),Object.defineProperty(a,"black",{writable:!1}),Object.defineProperty(a,"blanchedalmond",{writable:!1}),Object.defineProperty(a,"blue",{writable:!1}),Object.defineProperty(a,"blueviolet",{writable:!1}),Object.defineProperty(a,"brown",{writable:!1}),Object.defineProperty(a,"brulywood",{writable:!1}),Object.defineProperty(a,"cadetblue",{writable:!1}),Object.defineProperty(a,"chartreuse",{writable:!1}),Object.defineProperty(a,"chocolate",{writable:!1}),Object.defineProperty(a,"coral",{writable:!1}),Object.defineProperty(a,"cornflowerblue",{writable:!1}),Object.defineProperty(a,"cornislk",{writable:!1}),Object.defineProperty(a,"crimson",{writable:!1}),Object.defineProperty(a,"cyan",{writable:!1}),Object.defineProperty(a,"darkblue",{writable:!1}),Object.defineProperty(a,"darkcyan",{writable:!1}),Object.defineProperty(a,"darkgray",{writable:!1}),Object.defineProperty(a,"darkgreen",{writable:!1}),Object.defineProperty(a,"darkkhaki",{writable:!1}),Object.defineProperty(a,"darkmagenta",{writable:!1}),Object.defineProperty(a,"darkorange",{writable:!1}),Object.defineProperty(a,"darkorchid",{writable:!1}),Object.defineProperty(a,"darkred",{writable:!1}),Object.defineProperty(a,"darksalmon",{writable:!1}),Object.defineProperty(a,"darkseagreen",{writable:!1}),Object.defineProperty(a,"darkslateblue",{writable:!1}),Object.defineProperty(a,"darkslategray",{writable:!1}),Object.defineProperty(a,"darkturquoise",{writable:!1}),Object.defineProperty(a,"darkvoilet",{writable:!1}),Object.defineProperty(a,"deeppink",{writable:!1}),Object.defineProperty(a,"deepskyblue",{writable:!1}),Object.defineProperty(a,"dimgray",{writable:!1}),Object.defineProperty(a,"doderblue",{writable:!1}),Object.defineProperty(a,"firebrick",{writable:!1}),Object.defineProperty(a,"floralwhite",{writable:!1}),Object.defineProperty(a,"forestgreen",{writable:!1}),Object.defineProperty(a,"fuchsia",{writable:!1}),Object.defineProperty(a,"gainsboro",{writable:!1}),Object.defineProperty(a,"ghostwhite",{writable:!1}),Object.defineProperty(a,"gold",{writable:!1}),Object.defineProperty(a,"goldenrod",{writable:!1}),Object.defineProperty(a,"gray",{writable:!1}),Object.defineProperty(a,"green",{writable:!1}),Object.defineProperty(a,"greenyellow",{writable:!1}),Object.defineProperty(a,"honeydew",{writable:!1}),Object.defineProperty(a,"hotpink",{writable:!1}),Object.defineProperty(a,"indianred",{writable:!1}),Object.defineProperty(a,"indigo",{writable:!1}),Object.defineProperty(a,"ivory",{writable:!1}),Object.defineProperty(a,"khaki",{writable:!1}),Object.defineProperty(a,"lavender",{writable:!1}),Object.defineProperty(a,"lavenderblush",{writable:!1}),Object.defineProperty(a,"lawngreen",{writable:!1}),Object.defineProperty(a,"lemonchiffon",{writable:!1}),Object.defineProperty(a,"lightblue",{writable:!1}),Object.defineProperty(a,"lightcoral",{writable:!1}),Object.defineProperty(a,"lightcyan",{writable:!1}),Object.defineProperty(a,"lightgoldenrodyellow",{writable:!1}),Object.defineProperty(a,"lightgreen",{writable:!1}),Object.defineProperty(a,"lightgrey",{writable:!1}),Object.defineProperty(a,"lightpink",{writable:!1}),Object.defineProperty(a,"lightsalmon",{writable:!1}),Object.defineProperty(a,"lightseagreen",{writable:!1}),Object.defineProperty(a,"lightskyblue",{writable:!1}),Object.defineProperty(a,"lightslategray",{writable:!1}),Object.defineProperty(a,"lightsteelblue",{writable:!1}),Object.defineProperty(a,"lightyellow",{writable:!1}),Object.defineProperty(a,"lime",{writable:!1}),Object.defineProperty(a,"limegreen",{writable:!1}),Object.defineProperty(a,"linen",{writable:!1}),Object.defineProperty(a,"magenta",{writable:!1}),Object.defineProperty(a,"maroon",{writable:!1}),Object.defineProperty(a,"mediumaquamarine",{writable:!1}),Object.defineProperty(a,"mediumblue",{writable:!1}),Object.defineProperty(a,"mediumorchid",{writable:!1}),Object.defineProperty(a,"mediumpurple",{writable:!1}),Object.defineProperty(a,"mediumslateblue",{writable:!1}),Object.defineProperty(a,"mediumspringgreen",{writable:!1}),Object.defineProperty(a,"mediumturquoise",{writable:!1}),Object.defineProperty(a,"mediumvioletred",{writable:!1}),Object.defineProperty(a,"midnightblue",{writable:!1}),Object.defineProperty(a,"mintcream",{writable:!1}),Object.defineProperty(a,"mistyrose",{writable:!1}),Object.defineProperty(a,"moccasin",{writable:!1}),Object.defineProperty(a,"navajowhite",{writable:!1}),Object.defineProperty(a,"navy",{writable:!1}),Object.defineProperty(a,"oldlace",{writable:!1}),Object.defineProperty(a,"olive",{writable:!1}),Object.defineProperty(a,"olivedrab",{writable:!1}),Object.defineProperty(a,"orange",{writable:!1}),Object.defineProperty(a,"orangered",{writable:!1}),Object.defineProperty(a,"orchid",{writable:!1}),Object.defineProperty(a,"palegodenrod",{writable:!1}),Object.defineProperty(a,"palegreen",{writable:!1}),Object.defineProperty(a,"paleturquoise",{writable:!1}),Object.defineProperty(a,"palevioletred",{writable:!1}),Object.defineProperty(a,"papayawhip",{writable:!1}),Object.defineProperty(a,"peachpuff",{writable:!1}),Object.defineProperty(a,"peru",{writable:!1}),Object.defineProperty(a,"pink",{writable:!1}),Object.defineProperty(a,"plum",{writable:!1}),Object.defineProperty(a,"powderblue",{writable:!1}),Object.defineProperty(a,"purple",{writable:!1}),Object.defineProperty(a,"red",{writable:!1}),Object.defineProperty(a,"rosybrown",{writable:!1}),Object.defineProperty(a,"royalblue",{writable:!1}),Object.defineProperty(a,"saddlebrown",{writable:!1}),Object.defineProperty(a,"salmon",{writable:!1}),Object.defineProperty(a,"sandybrown",{writable:!1}),Object.defineProperty(a,"seagreen",{writable:!1}),Object.defineProperty(a,"seashell",{writable:!1}),Object.defineProperty(a,"sienna",{writable:!1}),Object.defineProperty(a,"silver",{writable:!1}),Object.defineProperty(a,"skyblue",{writable:!1}),Object.defineProperty(a,"slateblue",{writable:!1}),Object.defineProperty(a,"slategray",{writable:!1}),Object.defineProperty(a,"snow",{writable:!1}),Object.defineProperty(a,"springgreen",{writable:!1}),Object.defineProperty(a,"steelblue",{writable:!1}),Object.defineProperty(a,"tan",{writable:!1}),Object.defineProperty(a,"teal",{writable:!1}),Object.defineProperty(a,"thistle",{writable:!1}),Object.defineProperty(a,"tomato",{writable:!1}),Object.defineProperty(a,"turquoise",{writable:!1}),Object.defineProperty(a,"violet",{writable:!1}),Object.defineProperty(a,"wheat",{writable:!1}),Object.defineProperty(a,"white",{writable:!1}),Object.defineProperty(a,"whitesmoke",{writable:!1}),Object.defineProperty(a,"yellow",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.backwardDiagonal="backward-diagonal",n.cross="cross",n.diagonalCross="diagonal-cross",n.forwardDiagonal="forward-diagonal",n.horizontal="horizontal",n.none="none",n.solid="solid",n.vertical="vertical",i);Object.defineProperty(a,"backwardDiagonal",{writable:!1}),Object.defineProperty(a,"cross",{writable:!1}),Object.defineProperty(a,"diagonalCross",{writable:!1}),Object.defineProperty(a,"forwardDiagonal",{writable:!1}),Object.defineProperty(a,"horizontal",{writable:!1}),Object.defineProperty(a,"none",{writable:!1}),Object.defineProperty(a,"solid",{writable:!1}),Object.defineProperty(a,"vertical",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.small="small",n.medium="medium",n.large="large",i);Object.defineProperty(a,"small",{writable:!1}),Object.defineProperty(a,"medium",{writable:!1}),Object.defineProperty(a,"large",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.calm="calm",n.rippled="rippled",n.slight="slight",n.moderate="moderate",i);Object.defineProperty(a,"calm",{writable:!1}),Object.defineProperty(a,"rippled",{writable:!1}),Object.defineProperty(a,"slight",{writable:!1}),Object.defineProperty(a,"moderate",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.field="field",n.log="log",n.percentOfTotal="percent-of-total",i);Object.defineProperty(a,"field",{writable:!1}),Object.defineProperty(a,"log",{writable:!1}),Object.defineProperty(a,"percentOfTotal",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.extent=(0,o.defaultValue)(t.extent,void 0),this.id=(0,o.defaultValue)(t.id,(0,o.getGUID)()),this.tileInfo=t.tileInfo,this.layer=(0,o.defaultValue)(t.layer,void 0),this.tileMatrix=(0,o.defaultValue)(t.tileMatrix,[]),this.identifier=(0,o.defaultValue)(t.identifier,void 0),this.supportedCRS=(0,o.defaultValue)(t.supportedCRS,void 0)}return(0,i.default)(e,[{key:"getTileResolution",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.28,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],n=0;n<this.tileMatrix.length;n++){var i=t?Number(this.tileMatrix[n].scaleDenominator)*e/111319490.7932735:Number(this.tileMatrix[n].scaleDenominator)*e/1e3;r.push(i)}return r}},{key:"toJSON",value:function(){return{extent:this.extent&&this.extent.toJSON(),id:this.id,tileInfo:this.tileInfo&&this.tileInfo.toJSON(),tileMatrix:this.tileMatrix,identifier:this.identifier,supportedCRS:this.supportedCRS}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e);var r=(0,o.defaultValue)(t,{});this.expression=(0,o.defaultValue)(r.expression,"")}return(0,i.default)(e,[{key:"clone",value:function(){return new e({expression:this.expression})}},{key:"toJSON",value:function(){return{expression:this.expression}}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(24)),i=y(r(10)),o=y(r(3)),a=y(r(0)),s=y(r(2)),u=y(r(4)),l=y(r(5)),c=y(r(93)),f=r(1),h=r(9),d=r(28),p=r(6);function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return e=(0,f.defaultValue)(e,{}),r.id=(0,f.defaultValue)(e.id,(0,f.getGUID)()),r.attributes=(0,f.defaultValue)(e.attributes,{}),(0,f.defined)(e.geometry)?r.geometry=r._decorate("geometry",(0,f.defaultValue)(e.geometry,{}),h.Geometry,h.Geometry.fromJSON):(r.geometry=null,f.Log.info("要素几何信息缺失,依赖几何对象的功能将无法使用!")),r.symbol=r._decorate("symbol",(0,f.defaultValue)(e.symbol,{}),d.Symbol,r._getSymbol.bind(r)),r.visible=(0,f.defaultValue)(e.visible,!0),r.type="Feature",r.elevationInfo=(0,f.defaultValue)(e.elevationInfo,null),r.additional=(0,f.defaultValue)(e.additional,{}),r.styleInfo=(0,f.defaultValue)(e.styleInfo,{}),r}return(0,l.default)(t,e),(0,s.default)(t,[{key:"_getSymbol",value:function(e){if(!(0,f.defined)(this.geometry))return d.Symbol.fromJSON(e);var t=e?e.type:"undefine",r=this.geometry.type,n=e instanceof d.Symbol?e:d.Symbol.fromJSON(e);switch(r){case p.GeometryType.multiPoint:case p.GeometryType.point:var i=[p.SymbolType.simpleMarker,p.SymbolType.text,p.SymbolType.mapgisText,p.SymbolType.pictureMarker,p.SymbolType.point3D,p.SymbolType.label3D];(0,f.defined)(e)||(n=new d.SimpleMarkerSymbol),i.some(function(e){return e===t})||(f.Log.info("图元几何和符号不匹配"),n=new d.SimpleMarkerSymbol({color:n.color.clone()}));break;case p.GeometryType.multiLineString:case p.GeometryType.lineString:var o=[p.SymbolType.simpleLine,p.SymbolType.line3D];(0,f.defined)(e)||(n=new d.SimpleLineSymbol),o.some(function(e){return e===t})||(f.Log.info("图元几何和符号不匹配"),n=new d.SimpleLineSymbol({color:n.color.clone()}));break;case p.GeometryType.polygon:case p.GeometryType.extent:case p.GeometryType.circle:case p.GeometryType.multiPolygon:var a=[p.SymbolType.simpleFill,p.SymbolType.simpleMarker,p.SymbolType.text,p.SymbolType.mapgisText,p.SymbolType.pictureMarker,p.SymbolType.pictureFill,p.SymbolType.polygon3D];(0,f.defined)(e)||(n=new d.SimpleFillSymbol),a.some(function(e){return e===t})||(f.Log.info("图元几何和符号不匹配"),n=new d.SimpleFillSymbol({color:n.color.clone()}))}return n}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e={};return e.id=this.id,e.attributes=JSON.parse((0,i.default)(this.attributes)),e.geometry=(0,f.toJSON)(this.geometry,h.Geometry),e.symbol=(0,f.toJSON)(this.symbol,d.Symbol),e.visible=this.visible,e.type=this.type,e.elevationInfo=this.elevationInfo,e}},{key:"fromGeoJSON",value:function(e){var t=this;e=(0,f.defaultValue)(e,{});var r=(0,f.defaultValue)(e.geometry,null);(0,f.defined)(r)&&(this.geometry=h.Geometry.fromGeoJSON(r));var i=(0,f.defaultValue)(e.properties,{});(0,n.default)(i).forEach(function(e){i.hasOwnProperty(e)&&(t.attributes[e]=i[e])})}},{key:"toGeoJSON",value:function(){var e=JSON.parse((0,i.default)(this.attributes));return e.id=this.id,{type:"Feature",geometry:this.geometry.toGeoJSON(),properties:e,style:this.symbol.toJSON(),id:this.id}}},{key:"toIGSFeature",value:function(){var e=null;this.styleInfo instanceof Object&&"{}"!==(0,i.default)(this.styleInfo)&&(e=JSON.parse((0,i.default)(this.styleInfo)));var t=this.geometry.toJSON();return{type:"Feature",geometry:{type:t.type,coordinates:t.coordinates},attributes:JSON.parse((0,i.default)(this.attributes)),styleInfo:e}}},{key:"toOldIGSFeature",value:function(){return{fGeom:this.geometry.toOldIGSGeometry(),GraphicInfo:this.toGraphicInfo(),AttValue:this.toAttValue(),FID:this.id,bound:null,ftype:this.toFType()}}},{key:"toGraphicInfo",value:function(){var e=void 0;switch(this.geometry.type){case"Point":case"MultiPoint":e={InfoType:1,PntInfo:this.symbol};break;case"LineString":case"MultiLineString":e={InfoType:2,LinInfo:this.symbol};break;case"Polygon":case"MultiPolygon":default:e={InfoType:3,RegInfo:this.symbol}}return e}},{key:"toAttValue",value:function(){var e=[],t=this;return(0,n.default)(this.attributes).forEach(function(r){t.attributes.hasOwnProperty(r)&&e.push(t.attributes[r])}),e}},{key:"toFType",value:function(){var e=void 0;switch(this.geometry.type){case"Point":case"MultiPoint":e=1;break;case"LineString":case"MultiLineString":e=2;break;case"Polygon":case"MultiPolygon":default:e=3}return e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,f.defaultValue)(e,{}))}}]),t}(c.default);t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSymbol3DLayer=t.WaterSymbol3DLayer=t.TextSymbol3DLayer=t.ExtrudeSymbol3DLayer=t.ObjectSymbol3DLayer=t.IconSymbol3DLayer=t.FillSymbol3DLayer=t.LineSymbol3DLayer=t.PathSymbol3DLayer=t.Symbol3DLayer=void 0;var n=d(r(58)),i=d(r(411)),o=d(r(422)),a=d(r(423)),s=d(r(424)),u=d(r(425)),l=d(r(426)),c=d(r(427)),f=d(r(428)),h=r(6);function d(e){return e&&e.__esModule?e:{default:e}}t.Symbol3DLayer=n.default,t.PathSymbol3DLayer=i.default,t.LineSymbol3DLayer=o.default,t.FillSymbol3DLayer=a.default,t.IconSymbol3DLayer=s.default,t.ObjectSymbol3DLayer=u.default,t.ExtrudeSymbol3DLayer=l.default,t.TextSymbol3DLayer=c.default,t.WaterSymbol3DLayer=f.default,t.createSymbol3DLayer=function(e){var t=e||{},r=null;switch(t.type){case h.Symbol3DLayerType.line:r=new o.default(t);break;case h.Symbol3DLayerType.path:r=new i.default(t);break;case h.Symbol3DLayerType.fill:r=new a.default(t);break;case h.Symbol3DLayerType.icon:r=new s.default(t);break;case h.Symbol3DLayerType.object:r=new u.default(t);break;case h.Symbol3DLayerType.extrude:r=new l.default(t);break;case h.Symbol3DLayerType.text:r=new c.default(t);break;case h.Symbol3DLayerType.water:r=new f.default(t)}return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(0)),i=o(r(2));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(){(0,n.default)(this,e)}return(0,i.default)(e,[{key:"toJSON",value:function(){}},{key:"clone",value:function(){}}],[{key:"fromJSON",value:function(){}}]),e}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=r(8);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.color=t.color?a.Color.fromJSON(t.color):new a.Color,this.size=(0,o.defaultValue)(t.size,0)}return(0,i.default)(e,[{key:"toJSON",value:function(){return{color:(0,o.toJSON)(this.color,a.Color),size:this.size}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=r(6);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.style=(0,o.defaultValue)(t.style,a.LinePatternStyle.solid),this.type="style"}return(0,i.default)(e,[{key:"toJSON",value:function(){return{style:this.style,type:this.type}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(3)),i=g(r(0)),o=g(r(2)),a=g(r(4)),s=g(r(7)),u=g(r(5)),l=g(r(69)),c=r(1),f=r(6),h=g(r(57)),d=g(r(143)),p=g(r(144)),y=g(r(141));function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,c.defaultValue)(e,{}),r.type=f.SymbolType.text,r.angle=(0,c.defaultValue)(e.angle,0),r.backgroundColor=(0,c.defined)(e.backgroundColor)?h.default.fromColor((0,c.defaultValue)(e.backgroundColor,new h.default(255,255,255,.25))):void 0,r.borderLineColor=h.default.fromColor((0,c.defaultValue)(e.borderLineColor,new h.default(0,0,0,1))),r.borderLineSize=(0,c.defaultValue)(e.borderLineSize,0),r.color=h.default.fromColor((0,c.defaultValue)(e.color,new h.default)),r.font=y.default.fromJSON((0,c.defaultValue)(e.font,new y.default)),r.haloColor=h.default.fromColor((0,c.defaultValue)(e.haloColor,new h.default)),r.haloSize=(0,c.defaultValue)(e.haloSize,0),r.horizontalAlignment=(0,c.defaultValue)(e.horizontalAlignment,d.default.center),r.kerning=(0,c.defaultValue)(e.kerning,!1),r.lineHeight=(0,c.defaultValue)(e.lineHeight,1.1),r.lineWidth=(0,c.defaultValue)(e.lineWidth,192),r.rotated=(0,c.defaultValue)(e.rotated,!1),r.text=(0,c.defaultValue)(e.text,""),r.verticalAlignment=(0,c.defaultValue)(e.verticalAlignment,p.default.baseline),r.xoffset=(0,c.defaultValue)(e.xoffset,0),r.yoffset=(0,c.defaultValue)(e.yoffset,0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.angle=this.angle,e.backgroundColor=(0,c.toJSON)(this.backgroundColor,h.default),e.borderLineColor=(0,c.toJSON)(this.borderLineColor,h.default),e.borderLineSize=this.borderLineSize,e.color=(0,c.toJSON)(this.color,h.default),e.font=(0,c.toJSON)(this.font,y.default),e.haloColor=(0,c.toJSON)(this.haloColor,h.default),e.haloSize=this.haloSize,e.horizontalAlignment=this.horizontalAlignment,e.kerning=this.kerning,e.lineHeight=this.lineHeight,e.lineWidth=this.lineWidth,e.rotated=this.rotated,e.text=this.text,e.verticalAlignment=this.verticalAlignment,e.xoffset=this.xoffset,e.yoffset=this.yoffset,e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,c.defaultValue)(e,{}))}}]),t}(l.default);t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(7)),u=f(r(5)),l=r(1),c=r(6);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.type=c.SymbolType.simpleMarker,r.xoffset=(0,l.defaultValue)(e.xoffset,0),r.yoffset=(0,l.defaultValue)(e.yoffset,0),r.angle=(0,l.defaultValue)(e.angle,0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.angle=this.angle,e.xoffset=this.xoffset,e.yoffset=this.yoffset,e}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}(f(r(69)).default);t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(7)),u=d(r(5)),l=r(1),c=d(r(69)),f=d(r(149)),h=r(6);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.type=h.SymbolType.simpleFill,r.outline=r._decorate("outline",(0,l.defaultValue)(e.outline,{}),f.default,f.default.fromJSON),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.type=this.type,e.outline=this.outline.toJSON(),e}}]),t}(c.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertDataSource=t.getFeaturesFromFeatureSet=void 0;var n=h(r(15)),i=h(r(10)),o=r(148),a=r(1),s=r(9),u=r(8),l=r(49),c=r(448),f=h(r(111));function h(e){return e&&e.__esModule?e:{default:e}}var d={"urn:ogc:def:crs:OGC:1.3:CRS84":"EPSG:4326","EPSG:4326":"EPSG:4326","urn:ogc:def:crs:EPSG::4326":"EPSG:4326"},p={},y={},g={Feature:v,FeatureCollection:function(e,t,r,n){for(var i=t.features,o=0,a=i.length;o<a;o++)v(e,i[o],void 0,n)},GeometryCollection:_,LineString:b,MultiLineString:x,MultiPoint:w,MultiPolygon:E,Point:T,Polygon:I,Topology:M},m={GeometryCollection:_,LineString:b,MultiLineString:x,MultiPoint:w,MultiPolygon:E,Point:T,Polygon:I,Topology:M};function v(e,t,r,n){if(null!==t.geometry){if(!(0,a.defined)(t.geometry))throw new Error("feature.geometry is required.");var i=t.geometry.type,o=m[i];if(!(0,a.defined)(o))throw new Error("Unknown geometry type: "+i);o(e,t,t.geometry,n)}}function _(e,t,r,n){for(var i=r.geometries,o=0,s=i.length;o<s;o++){var u=i[o],l=u.type,c=m[l];if(!(0,a.defined)(c))throw new Error("Unknown geometry type: "+l);c(e,t,u,n)}}function S(e,t,r){var n={};e&&"Feature"===e.type&&(n=e.properties||{});var i=(0,l.createGeometryByGeoJSON)(t,r);return new o.Feature({geometry:i,attributes:n})}function b(e,t,r,n){e.features.push(S(t,r,n))}function x(e,t,r,n){e.features.push(S(t,r,n))}function w(e,t,r,n){e.features.push(S(t,r,n))}function E(e,t,r,n){e.features.push(S(t,r,n))}function T(e,t,r,n){e.features.push(S(t,r,n))}function I(e,t,r,n){e.features.push(S(t,r,n))}function M(e,t,r,n){for(var i in r.objects)if(r.objects.hasOwnProperty(i)){var o=(0,c.feature)(r,r.objects[i]);(0,g[o.type])(e,o,o,n)}}function k(e,t,r){var n=new o.FeatureSet({spatialReference:t});return r(n,e,e,n.spatialReference),n}t.getFeaturesFromFeatureSet=function(e){var t=[];e instanceof o.FeatureSet?t=e.features:Array.isArray(e)&&e.every(function(e){return e instanceof o.Feature})?t=e:a.Log.info("传入要素集错误");for(var r=[],n=0;n<t.length;n++)r[n]=o.Feature.fromJSON(t[n].toJSON());return r},t.convertDataSource=function(e){var t=(e=e||{}).type,r=g[t];if(!r)throw new Error("无法解析type为"+t+"的数据类型,请检查输入参数的类型是否合法");var o=!1,l=e.crs,c=new s.SpatialReference("EPSG:4326");if((0,a.defined)(l)){if(!(0,a.defined)(l.properties))throw new Error("crs.properties is undefined.");var h=l.properties;if("name"===l.type){var m=d[h.name];if(m)c=new s.SpatialReference(m);else if(h.name&&h.name.startsWith("urn:ogc:def:crs:EPSG::")){var v=parseInt(h.name.split("::")[1]),_=f.default.find(function(e){return e.id===v});_?c=new s.SpatialReference({wkid:_.id,wkt:_.strProject}):(a.Log.error("未收录的参考系wkid:"+v),o=!0)}else o=!0}else if("link"===l.type){if(c=p[h.href],(0,a.defined)(c)||(c=y[h.type]),!(0,a.defined)(c))throw new Error("Unable to resolve crs link: "+(0,i.default)(h))}else{if("EPSG"!==l.type)throw new Error("Unknown crs type: "+l.type);u.EPSG.some(function(e){return e.id===parseInt(h.code)})?c=new s.SpatialReference("EPSG:"+h.code):(a.Log.error("未收录的参考系wkid: "+h.code),o=!0)}if(o)return a.GdalUtil.geojsonCRSToOGCWKT(l).then(function(t){return!t&&h.name&&(t=h.name),c=new s.SpatialReference({wkt:t}),k(e,c,r)})}return n.default.resolve(k(e,c,r))}},function(e,t,r){var n=r(38),i=r(88),o=r(31)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||void 0==(r=n(a)[o])?t:i(r)}},function(e,t,r){var n,i,o,a=r(47),s=r(443),u=r(176),l=r(126),c=r(30),f=c.process,h=c.setImmediate,d=c.clearImmediate,p=c.MessageChannel,y=c.Dispatch,g=0,m={},v=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},_=function(e){v.call(e.data)};h&&d||(h=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return m[++g]=function(){s("function"==typeof e?e:Function(e),t)},n(g),g},d=function(e){delete m[e]},"process"==r(75)(f)?n=function(e){f.nextTick(a(v,e,1))}:y&&y.now?n=function(e){y.now(a(v,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=_,n=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(e){c.postMessage(e+"","*")},c.addEventListener("message",_,!1)):n="onreadystatechange"in l("script")?function(e){u.appendChild(l("script")).onreadystatechange=function(){u.removeChild(this),v.call(e)}}:function(e){setTimeout(a(v,e,1),0)}),e.exports={set:h,clear:d}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,r){var n=r(38),i=r(32),o=r(151);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){"use strict";var n=r(30),i=r(18),o=r(37),a=r(33),s=r(31)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:n[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProjUnitWkidMap={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.116756,5e4,15e4],2000:0,2001:0,2002:0,2003:0,2004:0,2005:0,2006:0,2007:0,2008:0,2009:0,2010:0,2011:0,2012:0,2013:0,2014:0,2015:0,2016:0,2017:0,2018:0,2019:0,2020:0,2021:0,2022:0,2023:0,2024:0,2025:0,2026:0,2027:0,2028:0,2029:0,2030:0,2031:0,2032:0,2033:0,2034:0,2035:0,2036:0,2037:0,2038:0,2039:0,2040:0,2041:0,2042:0,2043:0,2044:0,2045:0,2056:0,2057:0,2058:0,2059:0,2060:0,2061:0,2062:0,2063:0,2064:0,2065:0,2066:5,2067:0,2068:0,2069:0,2070:0,2071:0,2072:0,2073:0,2074:0,2075:0,2076:0,2077:0,2078:0,2079:0,2080:0,2081:0,2082:0,2083:0,2084:0,2085:0,2086:0,2087:0,2088:0,2089:0,2090:0,2091:0,2092:0,2093:0,2094:0,2095:0,2096:0,2097:0,2098:0,2099:0,2100:0,2101:0,2102:0,2103:0,2104:0,2105:0,2106:0,2107:0,2108:0,2109:0,2110:0,2111:0,2112:0,2113:0,2114:0,2115:0,2116:0,2117:0,2118:0,2119:0,2120:0,2121:0,2122:0,2123:0,2124:0,2125:0,2126:0,2127:0,2128:0,2129:0,2130:0,2131:0,2132:0,2133:0,2134:0,2135:0,2136:12,2137:0,2138:0,2139:0,2140:0,2141:0,2142:0,2143:0,2144:0,2145:0,2146:0,2147:0,2148:0,2149:0,2150:0,2151:0,2152:0,2153:0,2154:0,2155:2,2157:0,2158:0,2159:12,2160:12,2161:0,2162:0,2163:0,2164:0,2165:0,2166:0,2167:0,2168:0,2169:0,2170:0,2172:0,2173:0,2174:0,2175:0,2176:0,2177:0,2178:0,2179:0,2180:0,2181:0,2182:0,2183:0,2184:0,2185:0,2186:0,2187:0,2188:0,2189:0,2190:0,2191:0,2192:0,2193:0,2195:0,2196:0,2197:0,2198:0,2200:0,2201:0,2202:0,2203:0,2204:2,2205:0,2206:0,2207:0,2208:0,2209:0,2210:0,2211:0,2212:0,2213:0,2214:0,2215:0,2216:0,2217:0,2219:0,2220:0,2222:1,2223:1,2224:1,2225:2,2226:2,2227:2,2228:2,2229:2,2230:2,2231:2,2232:2,2233:2,2234:2,2235:2,2236:2,2237:2,2238:2,2239:2,2240:2,2241:2,2242:2,2243:2,2244:2,2245:2,2246:2,2247:2,2248:2,2249:2,2250:2,2251:1,2252:1,2253:1,2254:2,2255:2,2256:1,2257:2,2258:2,2259:2,2260:2,2261:2,2262:2,2263:2,2264:2,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2274:2,2275:2,2276:2,2277:2,2278:2,2279:2,2280:1,2281:1,2282:1,2283:2,2284:2,2285:2,2286:2,2287:2,2288:2,2289:2,2290:0,2291:0,2292:0,2294:0,2295:0,2308:0,2309:0,2310:0,2311:0,2312:0,2313:0,2314:3,2315:0,2316:0,2317:0,2318:0,2319:0,2320:0,2321:0,2322:0,2323:0,2324:0,2325:0,2326:0,2327:0,2328:0,2329:0,2330:0,2331:0,2332:0,2333:0,2334:0,2335:0,2336:0,2337:0,2338:0,2339:0,2340:0,2341:0,2342:0,2343:0,2344:0,2345:0,2346:0,2347:0,2348:0,2349:0,2350:0,2351:0,2352:0,2353:0,2354:0,2355:0,2356:0,2357:0,2358:0,2359:0,2360:0,2361:0,2362:0,2363:0,2364:0,2365:0,2366:0,2367:0,2368:0,2369:0,2370:0,2371:0,2372:0,2373:0,2374:0,2375:0,2376:0,2377:0,2378:0,2379:0,2380:0,2381:0,2382:0,2383:0,2384:0,2385:0,2386:0,2387:0,2388:0,2389:0,2390:0,2391:0,2392:0,2393:0,2394:0,2395:0,2396:0,2397:0,2398:0,2399:0,2400:0,2401:0,2402:0,2403:0,2404:0,2405:0,2406:0,2407:0,2408:0,2409:0,2410:0,2411:0,2412:0,2413:0,2414:0,2415:0,2416:0,2417:0,2418:0,2419:0,2420:0,2421:0,2422:0,2423:0,2424:0,2425:0,2426:0,2427:0,2428:0,2429:0,2430:0,2431:0,2432:0,2433:0,2434:0,2435:0,2436:0,2437:0,2438:0,2439:0,2440:0,2441:0,2442:0,2443:0,2444:0,2445:0,2446:0,2447:0,2448:0,2449:0,2450:0,2451:0,2452:0,2453:0,2454:0,2455:0,2456:0,2457:0,2458:0,2459:0,2460:0,2461:0,2462:0,2523:0,2524:0,2525:0,2526:0,2527:0,2528:0,2529:0,2530:0,2531:0,2532:0,2533:0,2534:0,2535:0,2536:0,2537:0,2538:0,2539:0,2540:0,2541:0,2542:0,2543:0,2544:0,2545:0,2546:0,2547:0,2548:0,2549:0,2550:0,2551:0,2552:0,2553:0,2554:0,2555:0,2556:0,2557:0,2558:0,2559:0,2560:0,2561:0,2562:0,2563:0,2564:0,2565:0,2566:0,2567:0,2568:0,2569:0,2570:0,2571:0,2572:0,2573:0,2574:0,2575:0,2576:0,2577:0,2578:0,2579:0,2580:0,2581:0,2582:0,2583:0,2584:0,2585:0,2586:0,2587:0,2588:0,2589:0,2590:0,2591:0,2592:0,2593:0,2594:0,2595:0,2596:0,2597:0,2598:0,2599:0,2600:0,2601:0,2602:0,2603:0,2604:0,2605:0,2606:0,2607:0,2608:0,2609:0,2610:0,2611:0,2612:0,2613:0,2614:0,2615:0,2616:0,2617:0,2618:0,2619:0,2620:0,2621:0,2622:0,2623:0,2624:0,2625:0,2626:0,2627:0,2628:0,2629:0,2630:0,2631:0,2632:0,2633:0,2634:0,2635:0,2636:0,2637:0,2638:0,2639:0,2640:0,2641:0,2642:0,2643:0,2644:0,2645:0,2646:0,2647:0,2648:0,2649:0,2650:0,2651:0,2652:0,2653:0,2654:0,2655:0,2656:0,2657:0,2658:0,2659:0,2660:0,2661:0,2662:0,2663:0,2664:0,2665:0,2666:0,2667:0,2668:0,2669:0,2670:0,2671:0,2672:0,2673:0,2674:0,2675:0,2676:0,2677:0,2678:0,2679:0,2680:0,2681:0,2682:0,2683:0,2684:0,2685:0,2686:0,2687:0,2688:0,2689:0,2690:0,2691:0,2692:0,2693:0,2694:0,2695:0,2696:0,2697:0,2698:0,2699:0,2700:0,2701:0,2702:0,2703:0,2704:0,2705:0,2706:0,2707:0,2708:0,2709:0,2710:0,2711:0,2712:0,2713:0,2714:0,2715:0,2716:0,2717:0,2718:0,2719:0,2720:0,2721:0,2722:0,2723:0,2724:0,2725:0,2726:0,2727:0,2728:0,2729:0,2730:0,2731:0,2732:0,2733:0,2734:0,2735:0,2736:0,2737:0,2738:0,2739:0,2740:0,2741:0,2742:0,2743:0,2744:0,2745:0,2746:0,2747:0,2748:0,2749:0,2750:0,2751:0,2752:0,2753:0,2754:0,2755:0,2756:0,2757:0,2758:0,2759:0,2760:0,2761:0,2762:0,2763:0,2764:0,2765:0,2766:0,2767:0,2768:0,2769:0,2770:0,2771:0,2772:0,2773:0,2774:0,2775:0,2776:0,2777:0,2778:0,2779:0,2780:0,2781:0,2782:0,2783:0,2784:0,2785:0,2786:0,2787:0,2788:0,2789:0,2790:0,2791:0,2792:0,2793:0,2794:0,2795:0,2796:0,2797:0,2798:0,2799:0,2800:0,2801:0,2802:0,2803:0,2804:0,2805:0,2806:0,2807:0,2808:0,2809:0,2810:0,2811:0,2812:0,2813:0,2814:0,2815:0,2816:0,2817:0,2818:0,2819:0,2820:0,2821:0,2822:0,2823:0,2824:0,2825:0,2826:0,2827:0,2828:0,2829:0,2830:0,2831:0,2832:0,2833:0,2834:0,2835:0,2836:0,2837:0,2838:0,2839:0,2840:0,2841:0,2842:0,2843:0,2844:0,2845:0,2846:0,2847:0,2848:0,2849:0,2850:0,2851:0,2852:0,2853:0,2854:0,2855:0,2856:0,2857:0,2858:0,2859:0,2860:0,2861:0,2862:0,2863:0,2864:0,2865:0,2866:0,2867:1,2868:1,2869:1,2870:2,2871:2,2872:2,2873:2,2874:2,2875:2,2876:2,2877:2,2878:2,2879:2,2880:2,2881:2,2882:2,2883:2,2884:2,2885:2,2886:2,2887:2,2888:2,2891:2,2892:2,2893:2,2894:2,2895:2,2896:1,2897:1,2898:1,2899:2,2900:2,2901:1,2902:2,2903:2,2904:2,2905:2,2906:2,2907:2,2908:2,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2915:2,2916:2,2917:2,2918:2,2919:2,2920:2,2921:1,2922:1,2923:1,2924:2,2925:2,2926:2,2927:2,2928:2,2929:2,2930:2,2931:0,2932:0,2933:0,2934:0,2935:0,2936:0,2937:0,2938:0,2939:0,2940:0,2941:0,2942:0,2943:0,2944:0,2945:0,2946:0,2947:0,2948:0,2949:0,2950:0,2951:0,2952:0,2953:0,2954:0,2955:0,2956:0,2957:0,2958:0,2959:0,2960:0,2961:0,2962:0,2964:2,2965:2,2966:2,2967:2,2968:2,2969:0,2970:0,2971:0,2972:0,2973:0,2975:0,2976:0,2977:0,2978:0,2979:0,2980:0,2981:0,2982:0,2983:0,2984:0,2985:0,2986:0,2987:0,2988:0,2989:0,2990:0,2991:0,2992:1,2993:0,2994:1,2995:0,2996:0,2997:0,2998:0,2999:0,3000:0,3001:0,3002:0,3003:0,3004:0,3005:0,3006:0,3007:0,3008:0,3009:0,3010:0,3011:0,3012:0,3013:0,3014:0,3015:0,3016:0,3017:0,3018:0,3019:0,3020:0,3021:0,3022:0,3023:0,3024:0,3025:0,3026:0,3027:0,3028:0,3029:0,3030:0,3031:0,3032:0,3033:0,3034:0,3035:0,3036:0,3037:0,3038:0,3039:0,3040:0,3041:0,3042:0,3043:0,3044:0,3045:0,3046:0,3047:0,3048:0,3049:0,3050:0,3051:0,3054:0,3055:0,3056:0,3057:0,3058:0,3059:0,3060:0,3061:0,3062:0,3063:0,3064:0,3065:0,3066:0,3067:0,3068:0,3069:0,3070:0,3071:0,3072:0,3073:0,3074:0,3075:0,3076:0,3077:0,3078:0,3079:0,3080:1,3081:0,3082:0,3083:0,3084:0,3085:0,3086:0,3087:0,3088:0,3089:2,3090:0,3091:2,3092:0,3093:0,3094:0,3095:0,3096:0,3097:0,3098:0,3099:0,3100:0,3101:0,3102:2,3106:0,3107:0,3108:0,3109:0,3110:0,3111:0,3112:0,3113:0,3114:0,3115:0,3116:0,3117:0,3118:0,3119:0,3120:0,3121:0,3122:0,3123:0,3124:0,3125:0,3126:0,3127:0,3128:0,3129:0,3130:0,3131:0,3132:0,3133:0,3134:0,3135:0,3136:0,3137:0,3138:0,3141:0,3142:0,3146:0,3147:0,3148:0,3149:0,3150:0,3151:0,3153:0,3154:0,3155:0,3156:0,3157:0,3158:0,3159:0,3160:0,3161:0,3162:0,3163:0,3164:0,3165:0,3166:0,3167:13,3168:0,3169:0,3170:0,3171:0,3172:0,3174:0,3175:0,3176:0,3177:0,3178:0,3179:0,3180:0,3181:0,3182:0,3183:0,3184:0,3185:0,3186:0,3187:0,3188:0,3189:0,3190:0,3191:0,3192:0,3193:0,3194:0,3195:0,3196:0,3197:0,3198:0,3199:0,3200:0,3201:0,3202:0,3203:0,3294:0,3295:0,3296:0,3297:0,3298:0,3299:0,3300:0,3301:0,3302:0,3303:0,3304:0,3305:0,3306:0,3307:0,3308:0,3309:0,3310:0,3311:0,3312:0,3313:0,3314:0,3315:0,3316:0,3317:0,3318:0,3319:0,3320:0,3321:0,3322:0,3323:0,3324:0,3325:0,3326:0,3327:0,3328:0,3329:0,3330:0,3331:0,3332:0,3333:0,3334:0,3335:0,3336:0,3337:0,3338:0,3339:0,3340:0,3341:0,3342:0,3343:0,3344:0,3345:0,3346:0,3347:0,3348:0,3349:0,3350:0,3351:0,3352:0,3353:0,3354:0,3355:0,3356:0,3357:0,3358:0,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3367:0,3368:0,3369:0,3370:0,3371:0,3372:0,3373:0,3374:0,3375:0,3376:0,3377:0,3378:0,3379:0,3380:0,3381:0,3382:0,3383:0,3384:0,3385:0,3386:0,3387:0,3388:0,3389:0,3390:0,3391:0,3392:0,3393:0,3394:0,3395:0,3396:0,3397:0,3398:0,3399:0,3400:0,3401:0,3402:0,3403:0,3404:2,3405:0,3406:0,3407:3,3408:0,3409:0,3410:0,3411:0,3412:0,3413:0,3414:0,3415:0,3416:0,3417:2,3418:2,3419:2,3420:2,3421:2,3422:2,3423:2,3424:2,3425:2,3426:2,3427:2,3428:2,3429:2,3430:2,3431:2,3432:2,3433:2,3434:2,3435:2,3436:2,3437:2,3438:2,3439:0,3440:0,3441:2,3442:2,3443:2,3444:2,3445:2,3446:2,3447:0,3448:0,3449:0,3450:0,3451:2,3452:2,3453:2,3454:2,3455:2,3456:2,3457:2,3458:2,3459:2,3460:0,3461:0,3462:0,3463:0,3464:0,3465:0,3466:0,3467:0,3468:0,3469:0,3470:0,3471:0,3472:0,3473:0,3474:0,3475:0,3476:0,3477:0,3478:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3554:0,3555:0,3556:0,3557:0,3558:0,3559:0,3560:2,3561:2,3562:2,3563:2,3564:2,3565:2,3566:2,3567:2,3568:2,3569:2,3570:2,3571:0,3572:0,3573:0,3574:0,3575:0,3576:0,3577:0,3578:0,3579:0,3580:0,3581:0,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3594:0,3595:0,3596:0,3597:0,3598:2,3599:0,3600:2,3601:0,3602:0,3603:0,3604:0,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3637:0,3638:0,3639:0,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3665:0,3666:0,3667:0,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3693:0,3694:0,3695:0,3696:2,3697:0,3698:2,3699:0,3700:2,3701:0,3702:0,3703:0,3704:0,3705:0,3706:0,3707:0,3708:0,3709:0,3710:0,3711:0,3712:0,3713:0,3714:0,3715:0,3716:0,3717:0,3718:0,3719:0,3720:0,3721:0,3722:0,3723:0,3724:0,3725:0,3726:0,3727:0,3728:2,3729:2,3730:2,3731:2,3732:2,3733:2,3734:2,3735:2,3736:2,3737:2,3738:2,3739:2,3740:0,3741:0,3742:0,3743:0,3744:0,3745:0,3746:0,3747:0,3748:0,3749:0,3750:0,3751:0,3753:2,3754:2,3755:2,3756:2,3757:2,3758:2,3759:2,3760:2,3761:0,3762:0,3763:0,3764:0,3765:0,3766:0,3767:0,3768:0,3769:0,3770:0,3771:0,3772:0,3773:0,3775:0,3776:0,3777:0,3779:0,3780:0,3781:0,3783:0,3784:0,3785:0,3788:0,3789:0,3790:0,3791:0,3793:0,3794:0,3797:0,3798:0,3799:0,3800:0,3801:0,3802:0,3812:0,3814:0,3815:0,3816:0,3825:0,3826:0,3827:0,3828:0,3829:0,3832:0,3833:0,3834:0,3835:0,3836:0,3837:0,3838:0,3839:0,3840:0,3841:0,3844:0,3845:0,3846:0,3847:0,3848:0,3849:0,3850:0,3851:0,3852:0,3854:0,3857:0,3873:0,3874:0,3875:0,3876:0,3877:0,3878:0,3879:0,3880:0,3881:0,3882:0,3883:0,3884:0,3885:0,3890:0,3891:0,3892:0,3893:0,3907:0,3908:0,3909:0,3910:0,3911:0,3912:0,3920:0,3942:0,3943:0,3944:0,3945:0,3946:0,3947:0,3948:0,3949:0,3950:0,3968:0,3969:0,3970:0,3973:0,3974:0,3975:0,3976:0,3978:0,3979:0,3986:0,3987:0,3988:0,3989:0,3991:2,3992:2,3994:0,3995:0,3996:0,3997:0,4026:0,4037:0,4038:0,4048:0,4049:0,4050:0,4051:0,4056:0,4057:0,4058:0,4059:0,4060:0,4061:0,4062:0,4063:0,4071:0,4082:0,4083:0,4093:0,4094:0,4095:0,4096:0,4217:2,4399:2,4400:2,4401:2,4402:2,4403:2,4404:2,4405:2,4406:2,4407:2,4408:2,4409:2,4410:2,4411:2,4412:2,4413:2,4414:0,4415:0,4417:0,4418:2,4419:2,4420:2,4421:2,4422:2,4423:2,4424:2,4425:2,4426:2,4427:2,4428:2,4429:2,4430:2,4431:2,4432:2,4433:2,4434:0,4437:0,4438:2,4439:2,4455:2,4456:2,4457:2,4462:0,4467:0,4471:0,4474:0,4484:0,4485:0,4486:0,4487:0,4488:0,4489:0,4491:0,4492:0,4493:0,4494:0,4495:0,4496:0,4497:0,4498:0,4499:0,4500:0,4501:0,4502:0,4503:0,4504:0,4505:0,4506:0,4507:0,4508:0,4509:0,4510:0,4511:0,4512:0,4513:0,4514:0,4515:0,4516:0,4517:0,4518:0,4519:0,4520:0,4521:0,4522:0,4523:0,4524:0,4525:0,4526:0,4527:0,4528:0,4529:0,4530:0,4531:0,4532:0,4533:0,4534:0,4535:0,4536:0,4537:0,4538:0,4539:0,4540:0,4541:0,4542:0,4543:0,4544:0,4545:0,4546:0,4547:0,4548:0,4549:0,4550:0,4551:0,4552:0,4553:0,4554:0,4559:0,4568:0,4569:0,4570:0,4571:0,4572:0,4573:0,4574:0,4575:0,4576:0,4577:0,4578:0,4579:0,4580:0,4581:0,4582:0,4583:0,4584:0,4585:0,4586:0,4587:0,4588:0,4589:0,4647:0,4652:0,4653:0,4654:0,4655:0,4656:0,4766:0,4767:0,4768:0,4769:0,4770:0,4771:0,4772:0,4773:0,4774:0,4775:0,4776:0,4777:0,4778:0,4779:0,4780:0,4781:0,4782:0,4783:0,4784:0,4785:0,4786:0,4787:0,4788:0,4789:0,4790:0,4791:0,4792:0,4793:0,4794:0,4795:0,4796:0,4797:0,4798:0,4799:0,4800:0,4822:0,4826:0,4839:0,5014:0,5015:0,5016:0,5018:0,5048:0,5069:0,5070:0,5071:0,5072:0,5105:0,5106:0,5107:0,5108:0,5109:0,5110:0,5111:0,5112:0,5113:0,5114:0,5115:0,5116:0,5117:0,5118:0,5119:0,5120:0,5121:0,5122:0,5123:0,5124:0,5125:0,5126:0,5127:0,5128:0,5129:0,5130:0,5167:0,5168:0,5173:0,5174:0,5175:0,5176:0,5177:0,5178:0,5179:0,5180:0,5181:0,5182:0,5183:0,5184:0,5185:0,5186:0,5187:0,5188:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5253:0,5254:0,5255:0,5256:0,5257:0,5258:0,5259:0,5266:0,5269:0,5270:0,5271:0,5272:0,5273:0,5274:0,5275:0,5292:0,5293:0,5294:0,5295:0,5296:0,5297:0,5298:0,5299:0,5300:0,5301:0,5302:0,5303:0,5304:0,5305:0,5306:0,5307:0,5308:0,5309:0,5310:0,5311:0,5316:0,5320:0,5321:0,5325:0,5329:0,5330:0,5331:0,5337:0,5343:0,5344:0,5345:0,5346:0,5347:0,5348:0,5349:0,5355:0,5356:0,5357:0,5361:0,5362:0,5367:0,5382:0,5383:0,5387:0,5388:0,5389:0,5396:0,5456:0,5457:0,5459:0,5460:0,5461:0,5462:0,5463:0,5469:0,5472:4,5479:0,5480:0,5481:0,5482:0,5490:0,5513:0,5514:0,5518:0,5519:0,5520:0,5523:0,5530:0,5531:0,5532:0,5533:0,5534:0,5535:0,5536:0,5537:0,5538:0,5539:0,5550:0,5551:0,5552:0,5559:0,5562:0,5563:0,5564:0,5565:0,5566:0,5567:0,5568:0,5569:0,5570:0,5571:0,5572:0,5573:0,5574:0,5575:0,5576:0,5577:0,5578:0,5579:0,5580:0,5581:0,5582:0,5583:0,5588:1,5589:3,5596:0,5623:2,5624:2,5625:2,5627:0,5629:0,5631:0,5632:0,5633:0,5634:0,5635:0,5636:0,5637:0,5638:0,5639:0,5641:0,5643:0,5644:0,5646:2,5649:0,5650:0,5651:0,5652:0,5653:0,5654:2,5655:2,5659:0,5663:0,5664:0,5665:0,5666:0,5667:0,5668:0,5669:0,5670:0,5671:0,5672:0,5673:0,5674:0,5675:0,5676:0,5677:0,5678:0,5679:0,5680:0,5682:0,5683:0,5684:0,5685:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5875:0,5876:0,5877:0,5879:0,5880:0,5887:0,5890:0,5921:0,5922:0,5923:0,5924:0,5925:0,5926:0,5927:0,5928:0,5929:0,5930:0,5931:0,5932:0,5933:0,5934:0,5935:0,5936:0,5937:0,5938:0,5939:0,5940:0,6050:0,6051:0,6052:0,6053:0,6054:0,6055:0,6056:0,6057:0,6058:0,6059:0,6060:0,6061:0,6062:0,6063:0,6064:0,6065:0,6066:0,6067:0,6068:0,6069:0,6070:0,6071:0,6072:0,6073:0,6074:0,6075:0,6076:0,6077:0,6078:0,6079:0,6080:0,6081:0,6082:0,6083:0,6084:0,6085:0,6086:0,6087:0,6088:0,6089:0,6090:0,6091:0,6092:0,6093:0,6094:0,6095:0,6096:0,6097:0,6098:0,6099:0,6100:0,6101:0,6102:0,6103:0,6104:0,6105:0,6106:0,6107:0,6108:0,6109:0,6110:0,6111:0,6112:0,6113:0,6114:0,6115:0,6116:0,6117:0,6118:0,6119:0,6120:0,6121:0,6122:0,6123:0,6124:0,6125:0,6128:1,6129:1,6141:1,6210:0,6211:0,6244:0,6245:0,6246:0,6247:0,6248:0,6249:0,6250:0,6251:0,6252:0,6253:0,6254:0,6255:0,6256:0,6257:0,6258:0,6259:0,6260:0,6261:0,6262:0,6263:0,6264:0,6265:0,6266:0,6267:0,6268:0,6269:0,6270:0,6271:0,6272:0,6273:0,6274:0,6275:0,6316:0,6328:0,6329:0,6330:0,6331:0,6332:0,6333:0,6334:0,6335:0,6336:0,6337:0,6338:0,6339:0,6340:0,6341:0,6342:0,6343:0,6344:0,6345:0,6346:0,6347:0,6348:0,6350:0,6351:0,6352:0,6353:0,6354:0,6391:1,20002:0,20003:0,20004:0,20005:0,20006:0,20007:0,20008:0,20009:0,20010:0,20011:0,20012:0,20013:0,20014:0,20015:0,20016:0,20017:0,20018:0,20019:0,20020:0,20021:0,20022:0,20023:0,20024:0,20025:0,20026:0,20027:0,20028:0,20029:0,20030:0,20031:0,20032:0,20062:0,20063:0,20064:0,20065:0,20066:0,20067:0,20068:0,20069:0,20070:0,20071:0,20072:0,20073:0,20074:0,20075:0,20076:0,20077:0,20078:0,20079:0,20080:0,20081:0,20082:0,20083:0,20084:0,20085:0,20086:0,20087:0,20088:0,20089:0,20090:0,20091:0,20092:0,20135:0,20136:0,20137:0,20138:0,20248:0,20249:0,20250:0,20251:0,20252:0,20253:0,20254:0,20255:0,20256:0,20257:0,20258:0,20348:0,20349:0,20350:0,20351:0,20352:0,20353:0,20354:0,20355:0,20356:0,20357:0,20358:0,20436:0,20437:0,20438:0,20439:0,20440:0,20499:0,20538:0,20539:0,20790:0,20791:0,20822:0,20823:0,20824:0,20934:0,20935:0,20936:0,21035:0,21036:0,21037:0,21095:0,21096:0,21097:0,21148:0,21149:0,21150:0,21291:0,21292:0,21413:0,21414:0,21415:0,21416:0,21417:0,21418:0,21419:0,21420:0,21421:0,21422:0,21423:0,21473:0,21474:0,21475:0,21476:0,21477:0,21478:0,21479:0,21480:0,21481:0,21482:0,21483:0,21500:0,21780:0,21781:0,21782:0,21817:0,21818:0,21891:0,21892:0,21893:0,21894:0,21896:0,21897:0,21898:0,21899:0,22032:0,22033:0,22091:0,22092:0,22171:0,22172:0,22173:0,22174:0,22175:0,22176:0,22177:0,22181:0,22182:0,22183:0,22184:0,22185:0,22186:0,22187:0,22191:0,22192:0,22193:0,22194:0,22195:0,22196:0,22197:0,22234:0,22235:0,22236:0,22332:0,22391:0,22392:0,22521:0,22522:0,22523:0,22524:0,22525:0,22700:0,22770:0,22780:0,22832:0,22991:0,22992:0,22993:0,22994:0,23028:0,23029:0,23030:0,23031:0,23032:0,23033:0,23034:0,23035:0,23036:0,23037:0,23038:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,23830:0,23831:0,23832:0,23833:0,23834:0,23835:0,23836:0,23837:0,23838:0,23839:0,23840:0,23841:0,23842:0,23843:0,23844:0,23845:0,23846:0,23847:0,23848:0,23849:0,23850:0,23851:0,23852:0,23853:0,23866:0,23867:0,23868:0,23869:0,23870:0,23871:0,23872:0,23877:0,23878:0,23879:0,23880:0,23881:0,23882:0,23883:0,23884:0,23886:0,23887:0,23888:0,23889:0,23890:0,23891:0,23892:0,23893:0,23894:0,23946:0,23947:0,23948:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24311:0,24312:0,24313:0,24342:0,24343:0,24344:0,24345:0,24346:0,24347:0,24370:10,24371:10,24372:10,24373:10,24374:10,24375:0,24376:0,24377:0,24378:0,24379:0,24380:0,24381:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,24718:0,24719:0,24720:0,24721:0,24817:0,24818:0,24819:0,24820:0,24821:0,24877:0,24878:0,24879:0,24880:0,24881:0,24882:0,24891:0,24892:0,24893:0,25000:0,25231:0,25391:0,25392:0,25393:0,25394:0,25395:0,25828:0,25829:0,25830:0,25831:0,25832:0,25833:0,25834:0,25835:0,25836:0,25837:0,25838:0,25884:0,25932:0,26191:0,26192:0,26193:0,26194:0,26195:0,26237:0,26331:0,26332:0,26391:0,26392:0,26393:0,26432:0,26591:0,26592:0,26632:0,26692:0,26701:0,26702:0,26703:0,26704:0,26705:0,26706:0,26707:0,26708:0,26709:0,26710:0,26711:0,26712:0,26713:0,26714:0,26715:0,26716:0,26717:0,26718:0,26719:0,26720:0,26721:0,26722:0,26729:2,26730:2,26731:2,26732:2,26733:2,26734:2,26735:2,26736:2,26737:2,26738:2,26739:2,26740:2,26741:2,26742:2,26743:2,26744:2,26745:2,26746:2,26747:2,26748:2,26749:2,26750:2,26751:2,26752:2,26753:2,26754:2,26755:2,26756:2,26757:2,26758:2,26759:2,26760:2,26761:2,26762:2,26763:2,26764:2,26765:2,26766:2,26767:2,26768:2,26769:2,26770:2,26771:2,26772:2,26773:2,26774:2,26775:2,26776:2,26777:2,26778:2,26779:2,26780:2,26781:2,26782:2,26783:2,26784:2,26785:2,26786:2,26787:2,26788:2,26789:2,26790:2,26791:2,26792:2,26793:2,26794:2,26795:2,26796:2,26797:2,26798:2,26799:2,26801:2,26802:2,26803:2,26811:2,26812:2,26813:2,26847:2,26848:2,26849:2,26850:2,26851:2,26852:2,26853:2,26854:2,26855:2,26856:2,26857:2,26858:2,26859:2,26860:2,26861:2,26862:2,26863:2,26864:2,26865:2,26866:2,26867:2,26868:2,26869:2,26870:2,26891:0,26892:0,26893:0,26894:0,26895:0,26896:0,26897:0,26898:0,26899:0,26901:0,26902:0,26903:0,26904:0,26905:0,26906:0,26907:0,26908:0,26909:0,26910:0,26911:0,26912:0,26913:0,26914:0,26915:0,26916:0,26917:0,26918:0,26919:0,26920:0,26921:0,26922:0,26923:0,26929:0,26930:0,26931:0,26932:0,26933:0,26934:0,26935:0,26936:0,26937:0,26938:0,26939:0,26940:0,26941:0,26942:0,26943:0,26944:0,26945:0,26946:0,26948:0,26949:0,26950:0,26951:0,26952:0,26953:0,26954:0,26955:0,26956:0,26957:0,26958:0,26959:0,26960:0,26961:0,26962:0,26963:0,26964:0,26965:0,26966:0,26967:0,26968:0,26969:0,26970:0,26971:0,26972:0,26973:0,26974:0,26975:0,26976:0,26977:0,26978:0,26979:0,26980:0,26981:0,26982:0,26983:0,26984:0,26985:0,26986:0,26987:0,26988:0,26989:0,26990:0,26991:0,26992:0,26993:0,26994:0,26995:0,26996:0,26997:0,26998:0,27037:0,27038:0,27039:0,27040:0,27120:0,27200:0,27205:0,27206:0,27207:0,27208:0,27209:0,27210:0,27211:0,27212:0,27213:0,27214:0,27215:0,27216:0,27217:0,27218:0,27219:0,27220:0,27221:0,27222:0,27223:0,27224:0,27225:0,27226:0,27227:0,27228:0,27229:0,27230:0,27231:0,27232:0,27258:0,27259:0,27260:0,27291:6,27292:6,27391:0,27392:0,27393:0,27394:0,27395:0,27396:0,27397:0,27398:0,27429:0,27492:0,27493:0,27500:0,27561:0,27562:0,27563:0,27564:0,27571:0,27572:0,27573:0,27574:0,27581:0,27582:0,27583:0,27584:0,27591:0,27592:0,27593:0,27594:0,27700:0,28191:0,28192:0,28193:0,28232:0,28348:0,28349:0,28350:0,28351:0,28352:0,28353:0,28354:0,28355:0,28356:0,28357:0,28358:0,28402:0,28403:0,28404:0,28405:0,28406:0,28407:0,28408:0,28409:0,28410:0,28411:0,28412:0,28413:0,28414:0,28415:0,28416:0,28417:0,28418:0,28419:0,28420:0,28421:0,28422:0,28423:0,28424:0,28425:0,28426:0,28427:0,28428:0,28429:0,28430:0,28431:0,28432:0,28462:0,28463:0,28464:0,28465:0,28466:0,28467:0,28468:0,28469:0,28470:0,28471:0,28472:0,28473:0,28474:0,28475:0,28476:0,28477:0,28478:0,28479:0,28480:0,28481:0,28482:0,28483:0,28484:0,28485:0,28486:0,28487:0,28488:0,28489:0,28490:0,28491:0,28492:0,28600:0,28991:0,28992:0,29100:0,29101:0,29118:0,29119:0,29120:0,29121:0,29122:0,29168:0,29169:0,29170:0,29171:0,29172:0,29177:0,29178:0,29179:0,29180:0,29181:0,29182:0,29183:0,29184:0,29185:0,29187:0,29188:0,29189:0,29190:0,29191:0,29192:0,29193:0,29194:0,29195:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29900:0,29901:0,29902:0,29903:0,30161:0,30162:0,30163:0,30164:0,30165:0,30166:0,30167:0,30168:0,30169:0,30170:0,30171:0,30172:0,30173:0,30174:0,30175:0,30176:0,30177:0,30178:0,30179:0,30200:5,30339:0,30340:0,30491:0,30492:0,30493:0,30494:0,30591:0,30592:0,30729:0,30730:0,30731:0,30732:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31251:0,31252:0,31253:0,31254:0,31255:0,31256:0,31257:0,31258:0,31259:0,31265:0,31266:0,31267:0,31268:0,31275:0,31276:0,31277:0,31278:0,31279:0,31281:0,31282:0,31283:0,31284:0,31285:0,31286:0,31287:0,31288:0,31289:0,31290:0,31291:0,31292:0,31293:0,31294:0,31295:0,31296:0,31297:0,31370:0,31461:0,31462:0,31463:0,31464:0,31465:0,31466:0,31467:0,31468:0,31469:0,31491:0,31492:0,31493:0,31494:0,31495:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,31917:0,31918:0,31919:0,31920:0,31921:0,31922:0,31965:0,31966:0,31967:0,31968:0,31969:0,31970:0,31971:0,31972:0,31973:0,31974:0,31975:0,31976:0,31977:0,31978:0,31979:0,31980:0,31981:0,31982:0,31983:0,31984:0,31985:0,31986:0,31987:0,31988:0,31989:0,31990:0,31991:0,31992:0,31993:0,31994:0,31995:0,31996:0,31997:0,31998:0,31999:0,32000:0,32001:2,32002:2,32003:2,32005:2,32006:2,32007:2,32008:2,32009:2,32010:2,32011:2,32012:2,32013:2,32014:2,32015:2,32016:2,32017:2,32018:2,32019:2,32020:2,32021:2,32022:2,32023:2,32024:2,32025:2,32026:2,32027:2,32028:2,32029:2,32030:2,32031:2,32033:2,32034:2,32035:2,32036:2,32037:2,32038:2,32039:2,32040:2,32041:2,32042:2,32043:2,32044:2,32045:2,32046:2,32047:2,32048:2,32049:2,32050:2,32051:2,32052:2,32053:2,32054:2,32055:2,32056:2,32057:2,32058:2,32059:2,32060:2,32061:0,32062:0,32064:2,32065:2,32066:2,32067:2,32074:2,32075:2,32076:2,32077:2,32081:0,32082:0,32083:0,32084:0,32085:0,32086:0,32098:0,32099:2,32100:0,32104:0,32107:0,32108:0,32109:0,32110:0,32111:0,32112:0,32113:0,32114:0,32115:0,32116:0,32117:0,32118:0,32119:0,32120:0,32121:0,32122:0,32123:0,32124:0,32125:0,32126:0,32127:0,32128:0,32129:0,32130:0,32133:0,32134:0,32135:0,32136:0,32137:0,32138:0,32139:0,32140:0,32141:0,32142:0,32143:0,32144:0,32145:0,32146:0,32147:0,32148:0,32149:0,32150:0,32151:0,32152:0,32153:0,32154:0,32155:0,32156:0,32157:0,32158:0,32161:0,32164:2,32165:2,32166:2,32167:2,32180:0,32181:0,32182:0,32183:0,32184:0,32185:0,32186:0,32187:0,32188:0,32189:0,32190:0,32191:0,32192:0,32193:0,32194:0,32195:0,32196:0,32197:0,32198:0,32199:0,32201:0,32202:0,32203:0,32204:0,32205:0,32206:0,32207:0,32208:0,32209:0,32210:0,32211:0,32212:0,32213:0,32214:0,32215:0,32216:0,32217:0,32218:0,32219:0,32220:0,32221:0,32222:0,32223:0,32224:0,32225:0,32226:0,32227:0,32228:0,32229:0,32230:0,32231:0,32232:0,32233:0,32234:0,32235:0,32236:0,32237:0,32238:0,32239:0,32240:0,32241:0,32242:0,32243:0,32244:0,32245:0,32246:0,32247:0,32248:0,32249:0,32250:0,32251:0,32252:0,32253:0,32254:0,32255:0,32256:0,32257:0,32258:0,32259:0,32260:0,32301:0,32302:0,32303:0,32304:0,32305:0,32306:0,32307:0,32308:0,32309:0,32310:0,32311:0,32312:0,32313:0,32314:0,32315:0,32316:0,32317:0,32318:0,32319:0,32320:0,32321:0,32322:0,32323:0,32324:0,32325:0,32326:0,32327:0,32328:0,32329:0,32330:0,32331:0,32332:0,32333:0,32334:0,32335:0,32336:0,32337:0,32338:0,32339:0,32340:0,32341:0,32342:0,32343:0,32344:0,32345:0,32346:0,32347:0,32348:0,32349:0,32350:0,32351:0,32352:0,32353:0,32354:0,32355:0,32356:0,32357:0,32358:0,32359:0,32360:0,32601:0,32602:0,32603:0,32604:0,32605:0,32606:0,32607:0,32608:0,32609:0,32610:0,32611:0,32612:0,32613:0,32614:0,32615:0,32616:0,32617:0,32618:0,32619:0,32620:0,32621:0,32622:0,32623:0,32624:0,32625:0,32626:0,32627:0,32628:0,32629:0,32630:0,32631:0,32632:0,32633:0,32634:0,32635:0,32636:0,32637:0,32638:0,32639:0,32640:0,32641:0,32642:0,32643:0,32644:0,32645:0,32646:0,32647:0,32648:0,32649:0,32650:0,32651:0,32652:0,32653:0,32654:0,32655:0,32656:0,32657:0,32658:0,32659:0,32660:0,32661:0,32662:0,32664:2,32665:2,32666:2,32667:2,32701:0,32702:0,32703:0,32704:0,32705:0,32706:0,32707:0,32708:0,32709:0,32710:0,32711:0,32712:0,32713:0,32714:0,32715:0,32716:0,32717:0,32718:0,32719:0,32720:0,32721:0,32722:0,32723:0,32724:0,32725:0,32726:0,32727:0,32728:0,32729:0,32730:0,32731:0,32732:0,32733:0,32734:0,32735:0,32736:0,32737:0,32738:0,32739:0,32740:0,32741:0,32742:0,32743:0,32744:0,32745:0,32746:0,32747:0,32748:0,32749:0,32750:0,32751:0,32752:0,32753:0,32754:0,32755:0,32756:0,32757:0,32758:0,32759:0,32760:0,32761:0,32766:0,53001:0,53002:0,53003:0,53004:0,53008:0,53009:0,53010:0,53011:0,53012:0,53013:0,53014:0,53015:0,53016:0,53017:0,53018:0,53019:0,53021:0,53022:0,53023:0,53024:0,53025:0,53026:0,53027:0,53028:0,53029:0,53030:0,53031:0,53032:0,53034:0,53042:0,53043:0,53044:0,53045:0,53046:0,53048:0,53049:0,54001:0,54002:0,54003:0,54004:0,54008:0,54009:0,54010:0,54011:0,54012:0,54013:0,54014:0,54015:0,54016:0,54017:0,54018:0,54019:0,54021:0,54022:0,54023:0,54024:0,54025:0,54026:0,54027:0,54028:0,54029:0,54030:0,54031:0,54032:0,54034:0,54042:0,54043:0,54044:0,54045:0,54046:0,54048:0,54049:0,54050:0,54051:0,54052:0,54053:0,65061:2,65062:2,65161:0,65163:0,102001:0,102002:0,102003:0,102004:0,102005:0,102006:0,102007:0,102008:0,102009:0,102010:0,102011:0,102012:0,102013:0,102014:0,102015:0,102016:0,102017:0,102018:0,102019:0,102020:0,102021:0,102022:0,102023:0,102024:0,102025:0,102026:0,102027:0,102028:0,102029:0,102030:0,102031:0,102032:0,102033:0,102034:0,102035:0,102036:0,102037:0,102038:0,102039:0,102040:0,102041:2,102042:0,102043:0,102044:0,102045:0,102046:0,102047:0,102048:0,102049:0,102050:0,102051:0,102052:0,102053:0,102054:0,102055:0,102056:0,102057:0,102058:0,102059:0,102060:0,102061:0,102062:0,102063:0,102064:11,102065:0,102066:0,102067:0,102068:14,102069:15,102070:0,102071:0,102072:0,102073:0,102074:0,102075:0,102076:0,102077:0,102078:0,102079:0,102080:0,102081:0,102082:0,102083:0,102084:0,102085:0,102086:0,102087:0,102088:0,102089:0,102090:0,102091:0,102092:0,102093:0,102094:0,102095:0,102096:0,102097:0,102098:0,102099:0,102100:0,102101:0,102102:0,102103:0,102104:0,102105:0,102106:0,102107:0,102108:0,102109:0,102110:0,102111:0,102112:0,102113:0,102114:0,102115:0,102116:0,102117:0,102118:2,102119:1,102120:2,102121:2,102122:0,102123:0,102124:0,102125:0,102126:0,102127:0,102128:0,102129:0,102130:0,102131:0,102132:0,102133:0,102134:0,102135:0,102136:0,102137:0,102138:0,102139:0,102140:0,102141:0,102142:0,102143:0,102144:0,102145:0,102146:0,102147:0,102148:0,102149:0,102150:0,102151:0,102152:0,102153:0,102154:0,102155:0,102156:0,102157:0,102158:0,102159:0,102160:0,102161:0,102162:0,102163:0,102164:0,102165:0,102166:0,102167:0,102168:0,102169:0,102170:0,102171:0,102172:0,102173:0,102174:0,102175:0,102176:0,102177:0,102178:0,102179:0,102180:0,102181:0,102182:0,102183:0,102184:0,102185:0,102186:0,102187:0,102188:0,102189:0,102190:0,102191:0,102192:0,102193:0,102194:0,102195:0,102196:0,102197:0,102198:0,102199:0,102200:0,102201:0,102202:0,102203:0,102204:0,102205:0,102206:0,102207:0,102208:0,102209:0,102210:0,102211:0,102212:0,102213:0,102214:0,102215:0,102216:0,102217:2,102218:0,102219:2,102220:2,102221:0,102222:0,102223:0,102224:0,102225:0,102226:0,102227:0,102228:0,102229:0,102230:0,102231:0,102232:0,102233:0,102234:0,102235:0,102236:0,102237:0,102238:0,102239:0,102240:0,102241:0,102242:0,102243:0,102244:0,102245:0,102246:0,102247:0,102248:0,102249:0,102250:0,102251:0,102252:0,102253:0,102254:0,102255:0,102256:0,102257:0,102258:0,102259:0,102260:0,102261:0,102262:0,102263:0,102264:0,102265:0,102266:0,102267:0,102268:0,102269:0,102270:0,102271:0,102272:0,102273:0,102274:0,102275:0,102276:0,102277:0,102278:0,102279:0,102280:0,102281:0,102282:0,102283:0,102284:0,102285:0,102286:0,102287:0,102288:0,102289:0,102290:0,102291:0,102292:0,102293:0,102294:0,102295:0,102296:0,102297:0,102298:0,102299:0,102300:0,102301:0,102302:0,102303:0,102304:0,102305:0,102306:0,102307:0,102308:0,102309:0,102310:0,102311:0,102312:0,102313:0,102314:0,102315:0,102316:0,102317:0,102318:0,102319:0,102320:0,102321:0,102322:0,102323:0,102324:0,102325:0,102326:0,102327:0,102328:0,102329:0,102330:0,102331:0,102332:0,102333:0,102334:0,102335:0,102336:0,102337:0,102338:0,102339:0,102340:0,102341:0,102342:0,102343:0,102344:0,102345:0,102346:0,102347:0,102348:0,102349:0,102350:0,102351:0,102352:0,102353:0,102354:0,102355:0,102356:0,102357:0,102358:0,102359:0,102360:0,102361:0,102362:0,102363:0,102364:0,102365:0,102366:0,102367:0,102368:0,102369:0,102370:0,102371:0,102372:0,102373:0,102374:0,102375:0,102376:0,102377:0,102378:1,102379:1,102380:0,102381:1,102382:0,102383:0,102384:0,102385:0,102386:0,102387:0,102388:0,102389:2,102390:2,102391:2,102392:2,102393:2,102394:2,102395:2,102396:2,102397:2,102398:2,102401:0,102402:0,102403:0,102404:0,102405:0,102406:0,102407:0,102408:0,102409:0,102410:0,102411:0,102412:0,102413:0,102414:0,102415:0,102416:0,102417:0,102418:0,102419:0,102420:0,102421:0,102422:0,102423:0,102424:0,102425:0,102426:0,102427:0,102428:0,102429:0,102430:0,102431:0,102432:0,102433:0,102434:0,102435:0,102436:0,102437:0,102438:0,102439:0,102440:0,102441:0,102442:0,102443:0,102444:0,102445:2,102446:2,102447:2,102450:0,102451:0,102452:0,102461:2,102462:2,102463:2,102464:2,102465:2,102466:2,102467:2,102468:2,102469:0,102470:0,102471:0,102472:0,102473:0,102474:0,102475:0,102476:0,102477:0,102478:0,102479:0,102480:0,102481:0,102482:0,102483:0,102484:0,102485:0,102486:0,102487:0,102488:0,102489:0,102490:0,102491:0,102492:0,102493:0,102494:0,102495:0,102496:0,102500:1,102501:1,102502:1,102503:1,102504:1,102505:1,102506:1,102507:1,102508:1,102509:1,102510:1,102511:1,102512:1,102513:1,102514:1,102515:1,102516:1,102517:1,102518:1,102519:1,102520:0,102521:0,102522:0,102523:0,102524:0,102525:2,102526:2,102527:2,102528:2,102529:2,102530:0,102531:0,102532:0,102533:0,102534:0,102535:0,102536:0,102537:0,102538:0,102539:0,102540:0,102541:0,102542:0,102543:0,102544:0,102545:0,102546:0,102547:0,102548:0,102549:0,102570:0,102571:0,102572:0,102573:0,102574:0,102575:0,102576:0,102577:0,102578:0,102579:0,102580:0,102581:0,102582:0,102583:0,102584:0,102585:0,102586:0,102587:0,102588:0,102589:2,102590:0,102591:0,102592:0,102593:0,102594:0,102595:0,102596:0,102597:0,102598:0,102599:2,102600:2,102601:0,102602:0,102603:0,102604:2,102605:0,102606:0,102607:0,102608:0,102609:0,102610:0,102611:0,102612:0,102613:0,102614:0,102615:0,102616:0,102617:0,102618:0,102619:0,102620:0,102621:0,102622:0,102623:0,102624:0,102625:0,102626:0,102627:0,102628:0,102629:2,102630:2,102631:2,102632:2,102633:2,102634:2,102635:2,102636:2,102637:2,102638:2,102639:2,102640:2,102641:2,102642:2,102643:2,102644:2,102645:2,102646:2,102647:0,102648:2,102649:2,102650:2,102651:2,102652:2,102653:2,102654:2,102655:2,102656:2,102657:2,102658:2,102659:2,102660:2,102661:2,102662:2,102663:2,102664:2,102665:2,102666:2,102667:2,102668:2,102669:2,102670:2,102671:2,102672:2,102673:2,102674:2,102675:2,102676:2,102677:2,102678:2,102679:2,102680:2,102681:2,102682:2,102683:2,102684:2,102685:2,102686:2,102687:2,102688:2,102689:2,102690:2,102691:2,102692:2,102693:2,102694:2,102695:2,102696:2,102697:2,102698:2,102699:2,102700:2,102701:0,102702:0,102703:0,102704:2,102705:2,102707:2,102708:2,102709:2,102710:2,102711:2,102712:2,102713:2,102714:2,102715:2,102716:2,102717:2,102718:2,102719:2,102720:2,102721:2,102722:2,102723:2,102724:2,102725:2,102726:2,102727:2,102728:2,102729:2,102730:2,102733:2,102734:2,102735:2,102736:2,102737:2,102738:2,102739:2,102740:2,102741:2,102742:2,102743:2,102744:2,102745:2,102746:2,102747:2,102748:2,102749:2,102750:2,102751:2,102752:2,102753:2,102754:2,102755:2,102756:2,102757:2,102758:2,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102767:0,102768:0,102769:0,102770:0,102771:0,102772:0,102773:0,102774:0,102775:0,102776:0,102777:0,102778:0,102779:0,102780:0,102781:0,102782:0,102783:0,102784:0,102785:0,102786:0,102787:0,102788:0,102789:0,102790:0,102791:0,102792:0,102793:0,102794:0,102795:0,102796:0,102797:0,102798:0,102962:0,102963:0,102964:0,102965:0,102966:0,102967:0,102968:0,102969:0,102970:1,102971:0,102972:0,102973:0,102974:2,102975:0,102976:0,102977:0,102978:0,102979:0,102980:0,102981:0,102982:0,102983:0,102984:0,102985:0,102986:0,102987:0,102988:0,102989:0,102990:1,102991:1,102992:1,102993:0,102994:0,102995:2,102996:2,102997:0,102998:0,102999:0,103000:0,103001:0,103002:0,103003:2,103004:2,103005:2,103006:2,103007:2,103008:2,103009:0,103010:0,103011:0,103012:2,103013:2,103014:2,103015:0,103016:2,103017:0,103018:2,103019:0,103020:0,103021:0,103022:2,103023:2,103024:2,103025:0,103026:0,103027:2,103028:2,103029:0,103030:0,103031:0,103032:2,103033:2,103034:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103065:0,103066:0,103067:0,103068:0,103069:2,103070:0,103071:0,103072:2,103073:2,103074:0,103075:0,103076:0,103077:1,103078:1,103079:1,103080:0,103081:0,103082:0,103083:2,103084:2,103085:2,103086:0,103087:0,103088:2,103089:2,103090:0,103091:0,103092:0,103093:0,103094:1,103095:0,103096:2,103097:0,103098:0,103099:0,103100:2,103101:2,103102:2,103103:0,103104:2,103105:0,103106:2,103107:0,103108:0,103109:0,103110:2,103111:2,103112:2,103113:0,103114:0,103115:0,103116:0,103117:2,103118:2,103119:2,103120:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103153:0,103154:0,103155:0,103156:0,103157:0,103158:2,103159:2,103160:2,103161:2,103162:2,103163:0,103164:0,103165:0,103166:1,103167:1,103168:1,103169:2,103170:2,103171:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103186:0,103187:0,103188:0,103189:2,103190:2,103191:2,103192:0,103193:0,103194:0,103195:0,103196:2,103197:2,103198:2,103199:2,103200:0,103201:0,103202:0,103203:0,103204:0,103205:0,103206:0,103207:0,103208:0,103209:0,103210:0,103211:0,103212:0,103213:0,103214:0,103215:0,103216:0,103217:0,103218:0,103219:0,103220:0,103221:0,103222:0,103223:0,103224:0,103225:1,103226:1,103227:1,103228:0,103229:0,103230:2,103231:2,103232:0,103233:0,103234:0,103235:0,103236:0,103237:0,103238:2,103239:2,103240:2,103241:2,103242:2,103243:2,103244:0,103245:0,103246:0,103247:2,103248:2,103249:2,103250:0,103251:2,103252:0,103253:2,103254:0,103255:0,103256:0,103257:2,103258:2,103259:2,103260:0,103261:0,103262:2,103263:2,103264:0,103265:0,103266:0,103267:2,103268:2,103269:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103300:0,103301:0,103302:0,103303:0,103304:0,103305:0,103306:0,103307:0,103308:0,103309:0,103310:0,103311:0,103312:0,103313:0,103314:0,103315:0,103316:0,103317:0,103318:0,103319:0,103320:0,103321:0,103322:0,103323:0,103324:0,103325:0,103326:0,103327:0,103328:0,103329:0,103330:0,103331:0,103332:0,103333:0,103334:0,103335:0,103336:0,103337:0,103338:0,103339:0,103340:0,103341:0,103342:0,103343:0,103344:0,103345:0,103346:0,103347:0,103348:0,103349:0,103350:0,103351:0,103352:0,103353:0,103354:0,103355:0,103356:0,103357:0,103358:0,103359:0,103360:0,103361:0,103362:0,103363:0,103364:0,103365:0,103366:0,103367:0,103368:0,103369:0,103370:0,103371:0,103372:0,103373:0,103374:0,103375:0,103376:2,103377:0,103378:0,103379:2,103380:2,103381:0,103382:0,103383:0,103384:1,103385:1,103386:1,103387:0,103388:0,103389:0,103390:2,103391:2,103392:2,103393:0,103394:0,103395:2,103396:2,103397:0,103398:0,103399:0,103400:2,103401:2,103402:2,103403:2,103404:2,103405:2,103406:2,103407:2,103408:2,103409:2,103410:2,103411:2,103412:2,103413:2,103414:2,103415:2,103416:2,103417:2,103418:2,103419:2,103420:2,103421:2,103422:2,103423:2,103424:2,103425:2,103426:2,103427:2,103428:2,103429:2,103430:2,103431:2,103432:2,103433:2,103434:2,103435:2,103436:2,103437:2,103438:2,103439:2,103440:2,103441:2,103442:2,103443:2,103444:2,103445:2,103446:2,103447:2,103448:2,103449:2,103450:2,103451:2,103452:2,103453:2,103454:2,103455:2,103456:2,103457:2,103458:2,103459:2,103460:2,103461:2,103462:2,103463:2,103464:2,103465:2,103466:2,103467:2,103468:2,103469:2,103470:2,103471:2,103472:0,103473:1,103474:0,103475:2,103476:0,103477:0,103478:0,103479:2,103480:2,103481:2,103482:0,103483:2,103484:0,103485:2,103486:0,103487:0,103488:0,103489:2,103490:2,103491:2,103492:0,103493:0,103494:0,103495:0,103496:2,103497:2,103498:2,103499:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103528:0,103529:0,103530:0,103531:0,103532:0,103533:0,103534:0,103535:0,103536:0,103537:0,103538:0,103539:0,103540:0,103541:0,103542:0,103543:0,103544:2,103545:2,103546:2,103547:2,103548:2,103549:0,103550:0,103551:0,103552:1,103553:1,103554:1,103555:2,103556:2,103557:2,103558:0,103559:0,103560:0,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103571:0,103572:0,103573:0,103574:2,103575:2,103576:2,103577:0,103578:0,103579:0,103580:0,103581:2,103582:2,103583:2,103584:0,103585:2,103600:0,103601:0,103602:0,103603:0,103604:0,103605:0,103606:0,103607:0,103608:0,103609:0,103610:0,103611:0,103612:0,103613:0,103614:0,103615:0,103616:0,103617:0,103618:0,103619:0,103620:0,103621:0,103622:0,103623:0,103624:0,103625:0,103626:0,103627:0,103628:0,103629:0,103630:0,103631:0,103632:0,103633:0,103634:0,103635:0,103636:0,103637:0,103638:0,103639:0,103640:0,103641:0,103642:0,103643:0,103644:0,103645:0,103646:0,103647:0,103648:0,103649:0,103650:0,103651:0,103652:0,103653:0,103654:0,103655:0,103656:0,103657:0,103658:0,103659:0,103660:0,103661:0,103662:0,103663:0,103664:0,103665:0,103666:0,103667:0,103668:0,103669:0,103670:0,103671:0,103672:0,103673:0,103674:0,103675:0,103676:0,103677:0,103678:0,103679:0,103680:0,103681:0,103682:0,103683:0,103684:0,103685:0,103686:0,103687:0,103688:0,103689:0,103690:0,103691:0,103692:0,103693:0,103694:0,103695:2,103700:2,103701:2,103702:2,103703:2,103704:2,103705:2,103706:2,103707:2,103708:2,103709:2,103710:2,103711:2,103712:2,103713:2,103714:2,103715:2,103716:2,103717:2,103718:2,103719:2,103720:2,103721:2,103722:2,103723:2,103724:2,103725:2,103726:2,103727:2,103728:2,103729:2,103730:2,103731:2,103732:2,103733:2,103734:2,103735:2,103736:2,103737:2,103738:2,103739:2,103740:2,103741:2,103742:2,103743:2,103744:2,103745:2,103746:2,103747:2,103748:2,103749:2,103750:2,103751:2,103752:2,103753:2,103754:2,103755:2,103756:2,103757:2,103758:2,103759:2,103760:2,103761:2,103762:2,103763:2,103764:2,103765:2,103766:2,103767:2,103768:2,103769:2,103770:2,103771:2,103772:2,103773:2,103774:2,103775:2,103776:2,103777:2,103778:2,103779:2,103780:2,103781:2,103782:2,103783:2,103784:2,103785:2,103786:2,103787:2,103788:2,103789:2,103790:2,103791:2,103792:2,103793:2,103794:0,103795:0,103796:0,103797:0,103798:0,103799:0,103800:0,103801:0,103802:0,103803:0,103804:0,103805:0,103806:0,103807:0,103808:0,103809:0,103810:0,103811:0,103812:0,103813:0,103814:0,103815:0,103816:0,103817:0,103818:0,103819:0,103820:0,103821:0,103822:0,103823:0,103824:0,103825:0,103826:0,103827:0,103828:0,103829:0,103830:0,103831:0,103832:0,103833:0,103834:0,103835:0,103836:0,103837:0,103838:0,103839:0,103840:0,103841:0,103842:0,103843:0,103844:0,103845:0,103846:0,103847:0,103848:0,103849:0,103850:0,103851:0,103852:0,103853:0,103854:0,103855:0,103856:0,103857:0,103858:0,103859:0,103860:0,103861:0,103862:0,103863:0,103864:0,103865:0,103866:0,103867:0,103868:0,103869:0,103870:0,103871:0,103900:2,103901:2,103902:2,103903:2,103904:2,103905:2,103906:2,103907:2,103908:2,103909:2,103910:2,103911:2,103912:2,103913:2,103914:2,103915:2,103916:2,103917:2,103918:2,103919:2,103920:2,103921:2,103922:2,103923:2,103924:2,103925:2,103926:2,103927:2,103928:2,103929:2,103930:2,103931:2,103932:2,103933:2,103934:2,103935:2,103936:2,103937:2,103938:2,103939:2,103940:2,103941:2,103942:2,103943:2,103944:2,103945:2,103946:2,103947:2,103948:2,103949:2,103950:2,103951:2,103952:2,103953:2,103954:2,103955:2,103956:2,103957:2,103958:2,103959:2,103960:2,103961:2,103962:2,103963:2,103964:2,103965:2,103966:2,103967:2,103968:2,103969:2,103970:2,103971:2,900913:0,20010201:0,20010202:0,20020901:0,20020902:0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(13)),i=g(r(10)),o=g(r(3)),a=g(r(0)),s=g(r(2)),u=g(r(4)),l=g(r(7)),c=g(r(5)),f=g(r(40)),h=r(1),d=r(6),p=g(r(50)),y=r(49);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,h.defaultValue)(e,{}),r.type=d.GeometryType.lineString,r.coordinates=(0,h.defaultValue)(e.coordinates,[]),!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");if(r.coordinates.length<2)throw new Error("坐标必须是两个或多个位置的数组");return 3===r.coordinates[0].length&&(r.hasZ=!0),r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"getPoint",value:function(e){return e=Number(e),this._isValidate(e)?new p.default({coordinates:this._cloneCoordinates()[e]}):null}},{key:"insertPoint",value:function(e,t){return this._isValidate(e)?(Array.isArray(this.coordinates)&&this.coordinates.splice(e,0,p.default.toCoordinates(t)),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this):null}},{key:"removePoint",value:function(e){if(e=Number(e),!this._isValidate(e))return this;var t=this._cloneCoordinates()[e];return this.coordinates.splice(e,1),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),new p.default({coordinates:t})}},{key:"setPoint",value:function(e,t){return this._isValidate(e)?(Array.isArray(this.coordinates)&&this.coordinates.splice(e,1,p.default.toCoordinates(t)),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this):this}},{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=this.extent.toJSON(),e}},{key:"toString",value:function(){for(var e="",t=0;t<this.coordinates.length;t++)for(var r=this.coordinates[t],n=0;n<r.length;n++)e+=r[n]+",";return e.substring(0,e.length-1)}},{key:"toXMl",value:function(){}},{key:"toOldIGSGeometry",value:function(){for(var e=[],t=0;t<this.coordinates.length;t++)e.push({x:this.coordinates[t][0],y:this.coordinates[t][1]});return{LinGeom:[{Line:{Arcs:[{Dots:e,ArcID:0}]},GID:0}],GID:parseInt(String(1e7*Math.random()))}}},{key:"getIGSType",value:function(){return d.IGSGeometryType.lineString}},{key:"toDots",value:function(){for(var e=[],t=this.coordinates,r=0;r<t.length;r++)e.push({x:t[r][0],y:t[r][1]});return e}},{key:"_isValidate",value:function(e){var t=this.coordinates.length;return!(!(0,h.isNumber)(e)||e<0||e>=t)}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return(0,y.calcExtent)(e,t,d.GeometryType.lineString,this.spatialReference)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,h.defaultValue)(e,{}))}}]),t}(f.default);(0,n.default)(m.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=b(r(13)),i=b(r(10)),o=b(r(48)),a=b(r(3)),s=b(r(0)),u=b(r(2)),l=b(r(4)),c=b(r(7)),f=b(r(5)),h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(39)),d=b(r(40)),p=r(1),y=r(6),g=b(r(97)),m=b(r(50)),v=b(r(70)),_=b(r(80)),S=r(49);function b(e){return e&&e.__esModule?e:{default:e}}var x=function(e){function t(e){(0,s.default)(this,t);var r=(0,l.default)(this,(t.__proto__||(0,a.default)(t)).call(this,e));if(e=(0,p.defaultValue)(e,{}),r.coordinates=(0,p.defaultValue)(e.coordinates,[]),r.isSelfIntersecting=(0,p.defaultValue)(e.isSelfIntersecting,!1),r.type=y.GeometryType.multiPolygon,!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");for(var n=0;n<r.coordinates.length;n++){var i=r.coordinates[n],u=!0,c=!1,f=void 0;try{for(var h,d=(0,o.default)(i);!(u=(h=d.next()).done);u=!0){var g=h.value;if(g.length<4)throw new Error("每个环至少有四个点");if(g[g.length-1].length!==g[0].length)throw new Error("首尾点维度不相等");for(var m=0;m<g[g.length-1].length;m++)if(g[g.length-1][m]!==g[0][m])throw new Error("第一个位置和最后一个位置不相等")}}catch(e){c=!0,f=e}finally{try{!u&&d.return&&d.return()}finally{if(c)throw f}}}return 3===r.coordinates[0][0][0].length&&(r.hasZ=!0),r}return(0,f.default)(t,e),(0,u.default)(t,[{key:"addPolygon",value:function(e,t){if(t=(0,p.defaultValue)(t,"add"),e instanceof g.default||_.default.error("polygon类型不是Polygon对象类型!"),"add"===t)this.coordinates.push(e._cloneCoordinates());else{for(var r=[],n=0;n<this.coordinates.length;n++){var o=h.polygon(this.coordinates[n]),a=h.polygon(e.coordinates);h.booleanDisjoint(o,a)||(r.push(o),this.coordinates[n]=void 0)}for(var s=0;s<this.coordinates.length;s++)this.coordinates[s]||this.coordinates.splice(s,1);for(var u=h.polygon(e.coordinates),l=0;l<r.length;l++)u=h.union(u,r[l]).geometry;this.coordinates.push(u.coordinates)}return this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"removePolygon",value:function(e){if(!this._isValidate(e))return null;var t=JSON.parse((0,i.default)(this._cloneCoordinates()[e]));return this.coordinates.splice(e,1),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),new g.default({coordinates:t})}},{key:"toXMl",value:function(){return""}},{key:"contains",value:function(e){if(!e)throw new Error("传入参数错误");var t=h.multiPolygon(this._cloneCoordinates()),r=h.point(m.default.toCoordinates(e));return h.booleanPointInPolygon(r,t)}},{key:"toJSON",value:function(){var e=(0,c.default)(t.prototype.__proto__||(0,a.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=this.extent.toJSON(),e}},{key:"toString",value:function(){for(var e="",t=0;t<this.coordinates.length;t++){for(var r=this.coordinates[t],n=0;n<r.length;n++){for(var i=r[n],o=0;o<i.length;o++)for(var a=i[o],s=0;s<a.length;s++)e+=a[s]+",";e=e.substring(0,e.length-1),e+="|"}e=e.substring(0,e.length-1),e+=";"}return e.substring(0,e.length-1)}},{key:"toOldIGSGeometry",value:function(){for(var e=[],t={},r={},n=0;n<this.coordinates.length;n++){var i=this.coordinates[n];t={Rings:[],GID:n};for(var o=0;o<i.length;o++){r={Arcs:[]};for(var a=[],s=0;s<i[o].length;s++){var u=i[o][s];a.push({x:u[0],y:u[1]})}r.Arcs.push({Dots:a,ArcID:o}),t.Rings.push(r)}e.push(t)}return{RegGeom:e}}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_isValidate",value:function(e){var t=this.coordinates.length;return!(!(0,p.isNumber)(e)||e<0||e>=t)}},{key:"_calcExtent",value:function(e,t){return(0,S.calcExtent)(e,t,y.GeometryType.multiPolygon,this.spatialReference)}},{key:"getIGSType",value:function(){return y.IGSGeometryType.multiPolygon}},{key:"toPolygonArray",value:function(){for(var e=[],t=0;t<this.coordinates.length;t++)e.push(new g.default({coordinates:this.coordinates[t],spatialReference:v.default.fromJSON(this.spatialReference)}));return e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,p.defaultValue)(e,{}))}}]),t}(d.default);(0,n.default)(x.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=x},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=m(r(13)),i=m(r(10)),o=m(r(3)),a=m(r(0)),s=m(r(2)),u=m(r(4)),l=m(r(7)),c=m(r(5)),f=r(1),h=m(r(40)),d=r(6),p=m(r(50)),y=m(r(80)),g=r(49);function m(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,f.defaultValue)(e,{}),r.coordinates=(0,f.defaultValue)(e.coordinates,[]),!Array.isArray(r.coordinates))throw new Error("坐标必须是数组");for(var n=0;n<r.coordinates.length;n++){if(r.coordinates[n].length<2||r.coordinates[n].length>3)throw new Error("多点的数组长度必须在合理范围内(2或者3)");3===r.coordinates[n].length?r.hasZ=!0:r.hasZ=!1}return r.type=d.GeometryType.multiPoint,r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"addPoint",value:function(e,t){if(t=(0,f.defaultValue)(t,"add"),e instanceof p.default)this._addPoint(e,t);else if(e instanceof Array)if(this._isNumberArray(e))this._addPoint(new p.default({coordinates:e}),t);else for(var r=0;r<e.length;r++)e[r]instanceof p.default?this._addPoint(e[r],t):e[r]instanceof Array?this._isNumberArray(e[r])?this._addPoint(new p.default({coordinates:e[r]}),t):e instanceof p.default?this._addPoint(e[r],t):y.default.error("point的子元素类型不是点几何对象或者点坐标数组!"):y.default.error("point的类型不是点几何对象或者点坐标数组!");else y.default.error("point的类型不是点几何对象或者点坐标数组!");return this.coordinates.length>=2&&(this.extent=this._calcExtent(this.coordinates,this.hasZ)),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"_addPoint",value:function(e,t){"add"===t?this.coordinates.push(e.coordinates):this.contains(e)||this.coordinates.push(e.coordinates)}},{key:"_isNumberArray",value:function(e){if(!(e instanceof Array))return!1;var t=!0;if(2===e.length||3===e.length){for(var r=0;r<e.length;r++)if("number"!=typeof e[r]){t=!1;break}}else t=!1;return t}},{key:"contains",value:function(e){if(e instanceof p.default){for(var t=0;t<this.coordinates.length;t++)if(e.equals(this.coordinates[t]))return!0}else if(e instanceof Array&&(2===e.length||3===e.length)){for(var r=0;r<this.coordinates.length;r++)if(new p.default({coordinates:e}).equals(this.coordinates[r]))return!0}else y.default.error("必须为点对象或坐标数组才能比较是否相等!");return!1}},{key:"getPoint",value:function(e){if(e=Number(e),!this._isValidate(e))throw new Error("未找到指定索引,请输入正确的索引");var t=this._cloneCoordinates();return new p.default({coordinates:t[e]})}},{key:"removePoint",value:function(e){if(e=Number(e),!this._isValidate(e))return null;var t=this._cloneCoordinates();return this.coordinates.splice(e,1),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),new p.default({coordinates:t[e]})}},{key:"setPoint",value:function(e,t){if(!this._isValidate(e))throw new Error("未找到指定索引,请输入正确的索引");var r=this._cloneCoordinates();return Array.isArray(r)&&(r.splice(e,1,p.default.toCoordinates(t)),this.coordinates=r),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"getIGSType",value:function(){return d.IGSGeometryType.multiPoint}},{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=this.extent?this.extent.toJSON():void 0,e}},{key:"toOldIGSGeometry",value:function(){for(var e=[],t=0;t<this.coordinates.length;t++){var r;r={x:this.coordinates[t][0],y:this.coordinates[t][1]},e.push({Dot:r,GID:t})}return{PntGeom:e}}},{key:"toString",value:function(){for(var e="",t=0;t<this.coordinates.length;t++)for(var r=this.coordinates[t],n=0;n<r.length;n++)e+=r[n]+",";return e.substring(0,e.length-1)}},{key:"toDots",value:function(){for(var e=[],t=this.coordinates,r=0;r<t.length;r++)e.push({x:t[r][0],y:t[r][1]});return e}},{key:"_isValidate",value:function(e){var t=this.coordinates.length;return!(!(0,f.isNumber)(e)||e<0||e>=t)}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_calcExtent",value:function(e,t){if(e.length>1)return(0,g.calcExtent)(e,t,d.GeometryType.lineString,this.spatialReference)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,f.defaultValue)(e,{}))}}]),t}(h.default);(0,n.default)(v.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=_(r(13)),i=_(r(10)),o=_(r(3)),a=_(r(0)),s=_(r(2)),u=_(r(4)),l=_(r(7)),c=_(r(5)),f=_(r(40)),h=r(1),d=r(6),p=_(r(97)),y=_(r(50)),g=_(r(70)),m=r(49),v=r(211);function _(e){return e&&e.__esModule?e:{default:e}}var S=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,h.defaultValue)(e,{}),r.center=(0,h.defaultValue)(e.center,void 0),!r.center)throw new Error("缺少圆心坐标");if(r.center=y.default.toCoordinates(r.center),r.radius=(0,h.defaultValue)(e.radius,1e3),!(0,h.isNumber)(r.radius))throw new Error("半径必须为数字");if(r.geodesic=(0,h.defaultValue)(e.geodesic,!1),r.radiusUnit=(0,h.defaultValue)(e.radiusUnit,d.RadiusUnit.meters),r.numberOfPoints=(0,h.defaultValue)(e.numberOfPoints,40),!(0,h.isNumber)(r.numberOfPoints))throw new Error("圆曲线上点的数量必须为数字");return r.type=d.GeometryType.circle,3===r.center.length&&(r.hasZ=!0),r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.center=JSON.parse((0,i.default)(this.center)),e.radius=this.radius,e.radiusUnit=this.radiusUnit,e.numberOfPoints=this.numberOfPoints,e.extent=this.extent.toJSON(),e}},{key:"toPolygon",value:function(){var e=this.spatialReference,t=this.geodesic,r=v.RadiusUnitToMeter[this.radiusUnit]||1,n=this.radius*r,i="geographic";if(e.isWebMercator)i="webMercator";else if(e.wkid&&(0,h.defined)(v.ProjUnitWkidMap[e.wkid]))i="proj";else if(e.wkt){var o=e.wkt;["PROJS","proj4","PROJCRS","+proj"].some(function(e){return 0===o.indexOf(e)})&&(i="proj")}if(!t){"geographic"===i&&(n/=v.RadiusUnitToMeter.degrees);var a=this._tranCircleToPath(this.center,n,this.numberOfPoints);return new p.default({coordinates:a,spatialReference:g.default.fromJSON(this.spatialReference)})}switch(i){case"proj":h.Log.error("暂时仅支持墨卡托投影坐标系和地理坐标系使用geodesic属性");break;case"webMercator":case"geographic":var s=6378137,u=Math.PI/180,l={latitude:this.center[1],longitude:this.center[0]};"webMercator"===i&&(l={longitude:180*l.longitude/Math.PI/s,latitude:180*(2*Math.atan(Math.exp(l.latitude/s))-Math.PI/2)/Math.PI});for(var c=n/1e3,f=c/(111.32*Math.cos(l.latitude*Math.PI/180)),d=c/110.574,y=[],m=0;m<this.numberOfPoints;m+=1){var _=m/this.numberOfPoints*(2*Math.PI),S=f*Math.cos(_),b=d*Math.sin(_),x=l.longitude+S,w=l.latitude+b;if("webMercator"===i){var E=Math.max(Math.min(85.0511287798,w),-85.0511287798),T=Math.sin(E*u);y.push([s*x*u,s*Math.log((1+T)/(1-T))/2])}else y.push([x,w])}return y.length<=3&&h.Log.error("生成圆几何点个数不能小于3"),y.push(y[0]),new p.default({coordinates:[y],spatialReference:g.default.fromJSON(this.spatialReference)})}}},{key:"toString",value:function(){return this.hasZ?this.center[0]+","+this.center[1]+","+this.center[2]+","+this.radius:this.center[0]+","+this.center[1]+","+this.radius}},{key:"toXMl",value:function(){return""}},{key:"getIGSType",value:function(){return d.IGSGeometryType.circle}},{key:"_tranCircleToPath",value:function(e,t,r){for(var n=2*Math.PI/r,i=0,o=[],a=[],s=0;s<r;s++){i-=n;var u=[e[0]+t*Math.cos(i),e[1]+t*Math.sin(i)];a.push(u)}var l=a[a.length-1],c=a[0];return Math.abs(l[0]-c[0])>1e-15&&Math.abs(l[1]-c[1])>1e-15&&a.push([c[0],c[1]]),o.push(a),this.hasZ&&(o=o.map(function(t){return t.map(function(t){return[t[0],t[1],e[2]]})})),o}},{key:"_calcExtent",value:function(e){var t=this.toPolygon();return(0,m.calcExtent)(t._cloneCoordinates(),e,d.GeometryType.polygon,this.spatialReference)}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toGeoJSON",value:function(){return this.toPolygon().toGeoJSON()}}],[{key:"fromJSON",value:function(e){return new t(e=(0,h.defaultValue)(e,{}))}}]),t}(f.default);(0,n.default)(S.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.hasZ)}}}),t.default=S},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProjUnitWkidMap=t.getMetersPerSpatialReference=t.LengthUnitToMeter=t.RadiusUnitToMeter=t.DegreesUnitToMeter=void 0;var n=r(206),i={degrees:111320},o={degrees:i.degrees,miles:1609.34,"nautical-miles":1852,yard:.9144,meters:1,kilometers:1e3};t.DegreesUnitToMeter=i,t.RadiusUnitToMeter=o,t.LengthUnitToMeter={kilometers:1e3,meters:1,miles:1609.34},t.getMetersPerSpatialReference=function(e){if(e.isGeographic)return i.degrees;var t=e.wkid;return n.ProjUnitWkidMap[t]?n.ProjUnitWkidMap.values[n.ProjUnitWkidMap[t]]:1},t.ProjUnitWkidMap=n.ProjUnitWkidMap},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(13)),i=g(r(10)),o=g(r(3)),a=g(r(0)),s=g(r(2)),u=g(r(4)),l=g(r(7)),c=g(r(5)),f=g(r(40)),h=r(1),d=r(6),p=g(r(50)),y=r(49);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,h.defaultValue)(e,{}),r.coordinates=(0,h.defaultValue)(e.coordinates,[]),r.type=d.GeometryType.multiLineString,!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");for(var n=0;n<r.coordinates.length;n++)if(r.coordinates[n].length<2)throw new Error("坐标必须是两个或多个位置的数组");return 3===r.coordinates[0][0].length&&(r.hasZ=!0),r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"addPath",value:function(e){if(!Array.isArray(e))throw new Error("传入参数错误");var t=[];return e.forEach(function(e){t.push(p.default.toCoordinates(e))}),this.coordinates.push(t),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"removePath",value:function(e){if(!this._isValidate(e,0))return null;var t=JSON.parse((0,i.default)(this._cloneCoordinates()[e]));return this.coordinates.splice(e,1),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),t.map(function(e){return new p.default({coordinates:e})})}},{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=this.extent.toJSON(),e}},{key:"getPoint",value:function(e,t){if(!this._isValidate(e,t))return null;var r=this._cloneCoordinates()[e];return new p.default({coordinates:r[t]})}},{key:"insertPoint",value:function(e,t,r){if(!this._isValidate(e,t))return null;var n=this.coordinates[e];return Array.isArray(n)&&n.splice(t,0,p.default.toCoordinates(r)),this.coordinates[e]=n,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"removePoint",value:function(e,t){if(!this._isValidate(e,t))return null;var r=this.coordinates[e];return Array.isArray(r)&&r.splice(t,1),this.coordinates=r,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"setPoint",value:function(e,t,r){if(!this._isValidate(e,t))return this;var n=this.coordinates[e];return Array.isArray(n)&&n.splice(t,1,p.default.toCoordinates(r)),this.coordinates[e]=n,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"toString",value:function(){return""}},{key:"toXMl",value:function(){return""}},{key:"getIGSType",value:function(){return d.IGSGeometryType.multiLineString}},{key:"toOldIGSGeometry",value:function(){for(var e=[],t=0;t<this.coordinates.length;t++){for(var r=[],n=0;n<this.coordinates[t].length;n++)r.push({x:this.coordinates[t][n][0],y:this.coordinates[t][n][1]});e.push({Line:{Arcs:[{Dots:r,ArcID:0}]},GID:t})}return{LinGeom:e}}},{key:"_isValidate",value:function(e,t){var r=this.coordinates.length;if(!(0,h.isNumber)(e)||e<0||e>=r)return!1;var n=this.coordinates[e].length;return!(!(0,h.isNumber)(t)||t<0||t>=n)}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return(0,y.calcExtent)(e,t,d.GeometryType.multiLineString,this.spatialReference)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"clone",value:function(e){return new t(e.toJSON())}},{key:"fromJSON",value:function(e){return new t(e=(0,h.defaultValue)(e,{}))}}]),t}(f.default);(0,n.default)(m.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={},i=52.35987755982988,o=3.141592653589793,a=6378245,s=.006693421622965943;n.transformlat=function(e,t){var r=2*(e=+e)-100+3*(t=+t)+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return r+=2*(20*Math.sin(6*e*o)+20*Math.sin(2*e*o))/3,(r+=2*(20*Math.sin(t*o)+40*Math.sin(t/3*o))/3)+2*(160*Math.sin(t/12*o)+320*Math.sin(t*o/30))/3},n.transformlng=function(e,t){var r=300+(e=+e)+2*(t=+t)+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return r+=2*(20*Math.sin(6*e*o)+20*Math.sin(2*e*o))/3,(r+=2*(20*Math.sin(e*o)+40*Math.sin(e/3*o))/3)+2*(150*Math.sin(e/12*o)+300*Math.sin(e/30*o))/3},n.out_of_china=function(e,t){return t=+t,!((e=+e)>73.66&&e<135.05&&t>3.86&&t<53.55)},n.bd09togcj02=function(e,t){var r=(e=+e)-.0065,n=(t=+t)-.006,o=Math.sqrt(r*r+n*n)-2e-5*Math.sin(n*i),a=Math.atan2(n,r)-3e-6*Math.cos(r*i);return[o*Math.cos(a),o*Math.sin(a)]},n.bd09towgs84=function(e,t){var r=n.bd09togcj02(e,t);return n.gcj02towgs84(r[0],r[1])},n.wgs84tobd09=function(e,t){var r=n.wgs84togcj02(e,t);return n.gcj02tobd09(r[0],r[1])},n.gcj02tobd09=function(e,t){t=+t,e=+e;var r=Math.sqrt(e*e+t*t)+2e-5*Math.sin(t*i),n=Math.atan2(t,e)+3e-6*Math.cos(e*i);return[r*Math.cos(n)+.0065,r*Math.sin(n)+.006]},n.wgs84togcj02=function(e,t){var r=[e=+e,t=+t];if(!this.out_of_china(e,t)){var n=this.transformlat(e-105,t-35),i=this.transformlng(e-105,t-35),u=t/180*o,l=Math.sin(u);l=1-s*l*l;var c=Math.sqrt(l);n=180*n/(a*(1-s)/(l*c)*o),r=[e+(i=180*i/(a/c*Math.cos(u)*o)),t+n]}return r},n.gcj02towgs84=function(e,t){var r=[e=+e,t=+t];if(!this.out_of_china(e,t)){var n=this.transformlat(e-105,t-35),i=this.transformlng(e-105,t-35),u=t/180*o,l=Math.sin(u);l=1-s*l*l;var c=Math.sqrt(l);n=180*n/(a*(1-s)/(l*c)*o),r=[2*e-(e+(i=180*i/(a/c*Math.cos(u)*o))),2*t-(t+n)]}return r},t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=[12890594.86,8362377.87,5591021,3481989.83,1678043.12,0],i=[75,60,45,30,15,0],o=[[1.410526172116255e-8,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,17337981.2],[-7.435856389565537e-9,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,10260144.86],[-3.030883460898826e-8,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,6856817.37],[-1.981981304930552e-8,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,4482777.06],[3.09191371068437e-9,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,2555164.4],[2.890871144776878e-9,8983055095805407e-21,-3.068298e-8,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],a=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,647795574.6671607,-4082003173.641316,10774905663.51142,-15171875531.51559,12053065338.62167,-5124939663.577472,913311935.9512032,67.5],[.00337398766765,111320.7020202162,4481351.045890365,-23393751.19931662,79682215.47186455,-115964993.2797253,97236711.15602145,-43661946.33752821,8477230.501135234,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837.749470245,992013.7397791013,-1221952.21711287,1340652.697009075,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758.690035394,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]];function s(e){e=e||{},this._isWgs84=e.isWgs84}(0,function(e){return e&&e.__esModule?e:{default:e}}(r(13)).default)(s.prototype,{isWgs84:{get:function(){return this._isWgs84},set:function(e){this._isWgs84=e}}}),s.prototype.getDistanceByMC=function(e,t){if(!e||!t)return 0;if(!(e=this.convertMC2LL(e)))return 0;var r=this.toRadians(e.lng),n=this.toRadians(e.lat);if(!(t=this.convertMC2LL(t)))return 0;var i=this.toRadians(t.lng),o=this.toRadians(t.lat);return this.getDistance(r,i,n,o)},s.prototype.getDistanceByLL=function(e,t){if(!e||!t)return 0;e.lng=this.getLoop(e.lng,-180,180),e.lat=this.getRange(e.lat,-74,74),t.lng=this.getLoop(t.lng,-180,180),t.lat=this.getRange(t.lat,-74,74);var r=this.toRadians(e.lng),n=this.toRadians(e.lat),i=this.toRadians(t.lng),o=this.toRadians(t.lat);return this.getDistance(r,i,n,o)},s.prototype.convertMC2LL=function(e){if(!e)return{lng:0,lat:0};var t={};if(this.isWgs84){t.lng=e.lng/20037508.342789244*180;var r=e.lat/20037508.342789244*180;return t.lat=180/Math.PI*(2*Math.atan(Math.exp(r*Math.PI/180))-Math.PI/2),{lng:t.lng.toFixed(6),lat:t.lat.toFixed(6)}}Math.abs(e.lng);for(var i=Math.abs(e.lat),a=void 0,s=0;s<n.length;s++)if(i>=n[s]){a=o[s];break}return{lng:(t=this.convertor(e,a)).lng.toFixed(6),lat:t.lat.toFixed(6)}},s.prototype.convertLL2MC=function(e){if(!e)return{lng:0,lat:0};if(e.lng>180||e.lng<-180||e.lat>90||e.lat<-90)return e;if(this.isWgs84){var t={};t.lng=e.lng*Math.PI/180*6378137;var r=e.lat*Math.PI/180;return t.lat=3189068.5*Math.log((1+Math.sin(r))/(1-Math.sin(r))),{lng:parseFloat(t.lng.toFixed(2)),lat:parseFloat(t.lat.toFixed(2))}}e.lng=this.getLoop(e.lng,-180,180),e.lat=this.getRange(e.lat,-74,74),e.lng;for(var n=e.lat,o=void 0,s=0;s<i.length;s++)if(n>=i[s]){o=a[s];break}if(!o)for(var u=0;u<i.length;u++)if(n<=-i[u]){o=a[u];break}var l=this.convertor(e,o);return{lng:parseFloat(l.lng.toFixed(2)),lat:parseFloat(l.lat.toFixed(2))}},s.prototype.convertor=function(e,t){if(!e||!t)return{lng:0,lat:0};var r=t[0]+t[1]*Math.abs(e.lng),n=Math.abs(e.lat)/t[9],i=t[2]+t[3]*n+t[4]*n*n+t[5]*n*n*n+t[6]*n*n*n*n+t[7]*n*n*n*n*n+t[8]*n*n*n*n*n*n;return{lng:r*=e.lng<0?-1:1,lat:i*=e.lat<0?-1:1}},s.prototype.getDistance=function(e,t,r,n){return 6370996.81*Math.acos(Math.sin(r)*Math.sin(n)+Math.cos(r)*Math.cos(n)*Math.cos(t-e))},s.prototype.toRadians=function(e){return Math.PI*e/180},s.prototype.toDegrees=function(e){return 180*e/Math.PI},s.prototype.getRange=function(e,t,r){return null!==t&&(e=Math.max(e,t)),null!==r&&(e=Math.min(e,r)),e},s.prototype.getLoop=function(e,t,r){for(;e>r;)e-=r-t;for(;e<t;)e+=r-t;return e},s.prototype.lngLatToMercator=function(e){return this.convertLL2MC(e)},s.prototype.lngLatToPoint=function(e){var t=this.convertLL2MC(e);return{x:t.lng,y:t.lat}},s.prototype.mercatorToLngLat=function(e){return this.convertMC2LL(e)},s.prototype.pointToLngLat=function(e){var t={lng:e.x,lat:e.y};return this.convertMC2LL(t)},s.prototype.pointToPixel=function(e,t,r,n){if(!e)return{x:0,y:0};e=this.lngLatToMercator(e);var i=this.getZoomUnits(t);return{x:Math.round((e.lng-r.lng)/i+n.width/2),y:Math.round((r.lat-e.lat)/i+n.height/2)}},s.prototype.pixelToPoint=function(e,t,r,n){if(!e)return{lng:0,lat:0};var i=this.getZoomUnits(t),o={lng:r.lng+i*(e.x-n.width/2),lat:r.lat-i*(e.y-n.height/2)};return this.mercatorToLngLat(o)},s.prototype.getZoomUnits=function(e){return Math.pow(2,18-e)},t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.start=(0,o.toDate)(t.start),this.end=(0,o.toDate)(t.end)}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.start=this.start?this.start.toString():null,e.end=this.end?this.end.toString():null,e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.unit=t.unit,this.value=t.value}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.unit=this.unit,e.value=this.value,e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/((?:.*\/)|^)webclient-.*?\.min\.js(?:\?|\#|$)/,i=void 0,o=function(e){return"undefined"==typeof document?e:(i||(i=document.createElement("a")),i.href=e,i.href=i.href,i.href)};function a(){var e;return(e="undefined"!=typeof MAPGIS_BASE_URL?MAPGIS_BASE_URL:function(){for(var e=document.getElementsByTagName("script"),t=0,r=e.length;t<r;++t){var i=e[t].getAttribute("src"),o=n.exec(i);if(null!==o)return o[1]}}())||console.error("Unable to determine MapGIS base URL automatically, try defining a global variable called MAPGIS_BASE_URL."),function(e){return 0!==e.length&&"/"===e[e.length-1]||(e+="/"),e}(o(e))}function s(e){return a()+e}t.buildModuleUrl=s,t.getMapGISBaseUrl=a,t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(15)),i=y(r(467)),o=y(r(20)),a=y(r(0)),s=y(r(2)),u=r(1),l=y(r(156)),c=y(r(154)),f=y(r(155)),h=r(6),d=r(34),p=(r(8),r(9),y(r(219)));function y(e){return e&&e.__esModule?e:{default:e}}y(r(35));var g=function(){function e(t,r){(0,a.default)(this,e),r=(0,u.defaultValue)(r,{}),this.url=t,this.requestInterceptor=(0,u.defaultValue)(r.requestInterceptor,new c.default),this.responseInterceptor=(0,u.defaultValue)(r.responseInterceptor,new f.default),this.requestTimeout=(0,u.defaultValue)(r.requestTimeout,45e3),this.headers=(0,u.defaultValue)(r.headers,{}),this.tokenKey=(0,u.defaultValue)(r.tokenKey,"token"),this.tokenValue=(0,u.defaultValue)(r.tokenValue,void 0),this.tokenAttachType=(0,u.defaultValue)(r.tokenAttachType,h.TokenAttachType.normal)}return(0,s.default)(e,[{key:"destroy",value:function(){this.url=null,this.options=null}},{key:"request",value:function(e){if((e=(0,u.defaultValue)(e,{})).withCredentials=(0,u.defaultValue)(e.withCredentials,!0),!(0,u.isNull)(e.url))return!(0,u.isNull)(this.requestInterceptor)&&this.requestInterceptor.before instanceof Function&&(e=this.requestInterceptor.before(e)),this._commit(e);u.Log.error("url不存在!")}},{key:"_commit",value:function(e){var t=this,r=(0,d.ServiceConfigRequestInterceptors)(p.default,e.url),a={headers:(0,o.default)((0,u.defaultValue)(p.default.headers,{}),(0,u.defaultValue)(this.headers,{}),(0,u.defaultValue)(e.headers,{})),withCredentials:e.withCredentials,requestTimeout:this.requestTimeout,proxy:e.proxy,tokenKey:this.tokenKey||p.default.tokenKey,tokenValue:this.tokenValue||p.default.tokenValue,tokenAttachType:e.tokenAttachType||this.tokenAttachType,responseType:e.responseType};return a=(0,o.default)(a,(0,u.defaultValue)(e.extensionOptions,{})),l.default.commit(e.method,r,e.data,a).then(function(o){if(o instanceof Error||i.default&&(0,i.default)(o))return n.default.reject(o);var s=function(){return n.default.resolve(o)};if(o.text){if("blob"===a.responseType)return o.blob();s=function(){return o.text()}}else o.json&&(s=function(){return o.json()});return 200===o.status?s().then(function(i){return new n.default(function(n){t._handlePromiseSuccess({url:r,data:i,responseInterceptor:t.responseInterceptor,Config:p.default,promiseSuccessCallBack:n,successCallBack:e.success,processData:e.processData})})}):(o.json?o.json():s()).then(function(e){return n.default.reject({data:e,msg:e?e.msg:"HTTP "+o.status+": 请求失败!",status:o.status})})}).catch(function(o){return o instanceof Error||i.default&&(0,i.default)(o)?n.default.reject(o):new n.default(function(n,i){t._handlePromiseFailure({url:r,msg:o.msg||o,status:o.status,data:o.data,responseInterceptor:t.responseInterceptor,Config:p.default,promiseFailureCallBack:i,failureCallBack:e.failure})})})}},{key:"_handlePromiseSuccess",value:function(e){var t=e=(0,u.defaultValue)(e,{}),r=t.url,n=t.data,i=t.responseInterceptor,o=t.Config,a=t.successCallBack,s=t.promiseSuccessCallBack,l=t.processData,c=void 0;c=(0,u.isNull)(n)?{succeed:!0,msg:"服务器没有返回信息",data:void 0}:{succeed:!0,msg:"请求成功",data:n},l instanceof Function?c.data=l(c.data):"string"==typeof c.data&&(c.data=JSON.parse(c.data)),(0,u.isNull)(o)||(0,u.isNull)(r)||(c=(0,d.ServiceConfigResponseInterceptors)(o,r,c)),!(0,u.isNull)(i)&&i.success instanceof Function&&(c=i.success(c)),a instanceof Function&&a(c),s instanceof Function&&s(c)}},{key:"_handlePromiseFailure",value:function(e){var t=e=(0,u.defaultValue)(e,{}),r=t.url,i=t.msg,o=t.status,a=t.data,s=t.responseInterceptor,l=t.Config,c=t.failureCallBack,f=t.promiseFailureCallBack,h={succeed:!1,msg:i,data:a,status:o};return(0,u.isNull)(l)||(0,u.isNull)(r)||(h=(0,d.ServiceConfigResponseInterceptors)(l,r,h)),!(0,u.isNull)(s)&&s.failure instanceof Function&&(h=s.failure(h)),c instanceof Function&&c(h),f instanceof Function?f(h):n.default.reject(h)}}]),e}();t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={tokenKey:"token",tokenValue:void 0,headers:{},request:{interceptors:[]}}},function(e,t,r){var n=r(32);e.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(20)),i=d(r(3)),o=d(r(0)),a=d(r(2)),s=d(r(4)),u=d(r(5)),l=r(1),c=d(r(19)),f=r(36),h=d(r(35));function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return h.default.testByRegExpNames(r.url,["TileServerV1"])?r.igsType="1.0":r.igsType="2.0",r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"queryServerInfo",value:function(e){var t=this;return this._querySimpleInfo(e,function(e){return"1.0"===t.igsType?e.replace("/mrms/tile/","/mrcs/tiles/")+"?f=json":e+"?f=json"})}},{key:"getTile",value:function(e){e=(0,l.defaultValue)(e,{});var t=(0,l.defaultValue)(e.lvl,"{z}"),r=(0,l.defaultValue)(e.row,"{x}"),i=(0,l.defaultValue)(e.col,"{y}"),o=(0,l.defaultValue)(e.f,"image"),a=(0,l.defaultValue)(e.blankTile,null),s={},u="";"1.0"===this.igsType?u=this._baseUrl+"/"+t+"/"+i+"/"+r:(s={f:o,blankTile:a},u=this._baseUrl+"/tileImage/{z}/{y}/{x}"),s=(0,n.default)(this._queryParameters,s);var c=f.UrlUtil.getStringFromObject(s);return c&&(u=f.UrlUtil.completeUrlEndMark(u),u+=c),u}}]),t}(c.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMapboxExpression=t.convertColorToRgb=t.convertLineStyle=void 0;var n=r(8);t.convertLineStyle=function(e,t){switch(e){case"dash":case"esriSLSDash":return t?[4,3]:[3,4];case"dash-dot":case"esriSLSDashDot":return t?[4,3,1,3]:[3,4,0,4];case"dot":case"esriSLSDot":return t?[1,3]:[0,4];case"long-dash":case"esriSLSLongDash":return t?[8,3]:[7,4];case"long-dash-dot":case"esriSLSLongDashDot":return t?[8,3,1,3]:[7,4,0,4];case"long-dash-dot-dot":case"esriSLSDashDotDot":return t?[8,3,1,3,1,3]:[7,4,0,4,0,4];case"short-dash":case"esriSLSShortDash":return t?[4,1]:[3,2];case"short-dash-dot":case"esriSLSShortDashDot":return t?[4,1,1,1]:[3,2,0,2];case"short-dash-dot-dot":case"esriSLSShortDashDotDot":return t?[4,1,1,1,1,1]:[3,2,0,2,0,2];case"short-dot":case"esriSLSShortDot":return t?[1,1]:[0,2];case"solid":case"esriSLSSolid":case"none":default:return}},t.convertColorToRgb=function(e){return e instanceof n.Color?e.toCssRGBAString():e},t.isMapboxExpression=function(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&"== != > < >= <= array at boolean case coalesce collator format image in interpolate interpolate-hcl interpolate-lab\nlength let literal match number number-format object step string to-boolean to-color to-number to-string var within".indexOf(e[0])>-1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(7)),u=f(r(5)),l=r(1),c=r(28);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.value=e.value,r.symbol=c.Symbol.fromJSON(e.symbol),r.visible=(0,l.defaultValue)(e.visible,!0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.value=this.value,e.symbol=this.symbol.toJSON(),e.visible=this.visible,e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(f(r(224)).default);t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.id=(0,o.defaultValue)(t.id,(0,o.getGUID)()),this.label=(0,o.defaultValue)(t.label,""),this.description=(0,o.defaultValue)(t.description,"")}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.id=this.id,e.label=this.label,e.description=this.description,e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(7)),u=f(r(5)),l=r(1),c=r(28);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.minValue=e.minValue,r.maxValue=e.maxValue,r.symbol=c.Symbol.fromJSON(e.symbol),r.visible=(0,l.defaultValue)(e.visible,!0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.minValue=this.minValue,e.maxValue=this.maxValue,e.symbol=this.symbol.toJSON(),e.visible=this.visible,e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(f(r(224)).default);t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=r(8);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.ratio=t.ratio,this.color=a.Color.fromColor((0,o.defaultValue)(t.color,{}))}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.ratio=this.ratio,e.color=this.color.toJSON(),e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(r(13)),i=v(r(15)),o=v(r(3)),a=v(r(0)),s=v(r(2)),u=v(r(4)),l=v(r(7)),c=v(r(5)),f=r(1),h=r(9),d=r(16),p=r(29),y=r(43),g=r(6),m=r(12);function v(e){return e&&e.__esModule?e:{default:e}}var _=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return r.type=g.SubLayerType.IGSMapImageSub,r.originLayerType=(0,f.defaultValue)(e.originLayerType,""),r.geomType=(0,f.defaultValue)(e.geomType,""),r.url=(0,f.defaultValue)(e.url,""),r.name=(0,f.defaultValue)(e.name,""),r.fields=(0,f.defaultValue)(e.fields,[]),r.supportedMethods=(0,f.defaultValue)(e.supportedMethods,[]),r.systemLibGuid=(0,f.defaultValue)(e.systemLibGuid,""),r.index=(0,f.defaultValue)(e.index,""),"Group"===r.originLayerType&&(r.extent=(0,p.getExtentBySubLayers)(r.sublayers.items)),r._geometryFilter=e.geometryFilter?h.Geometry.fromJSON(e.geometryFilter):null,r._renderer=e.renderer?y.BaseRenderer.fromJSON(e.renderer):null,r._definitionExpression=(0,f.defaultValue)(e.definitionExpression,null),r.capabilities=(0,m.mergeCommonClientCapbilities)(r.capabilities,{geometryFilter:!0,renderer:!0,definitionExpression:!0}),r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.url=this.url,e.name=this.name,e.fields=this.fields,e.originLayerType=this.originLayerType,e.geomType=this.geomType,e.supportedMethods=this.supportedMethods.map(function(e){return e}),e.systemLibGuid=this.systemLibGuid,e.systemLibName=this.systemLibName,e.index=this.index,e.renderer=this.renderer?this.renderer.toJSON():null,e.geometryFilter=this.geometryFilter?this.geometryFilter.toJSON():null,e.definitionExpression=this.definitionExpression,e}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"load",value:function(){if(this.layer&&this.layer._mapServer){var e=this;return this.layer._mapServer.queryLayerInfo({layerId:this.id}).then(function(t){var r=t.data;return r&&(r.drawingInfo&&r.drawingInfo.renderer&&(e._renderer=(0,p.formatIGSRenderer)(r.drawingInfo.renderer)),e.fields=r.fields,e.geomType=r.geomType,e.index=r.index,e.id=r.index,e.maxScale=r.maxScale,e.minScale=r.minScale,e.name=r.name,e.extent=new h.Extent({xmin:r.range.xmin,ymin:r.range.ymin,xmax:r.range.xmax,ymax:r.range.ymax}),e.spatialReference=r.spatialReference?new h.SpatialReference(r.spatialReference):new h.SpatialReference({wkid:4326}),e.systemLibGuid=r.systemLibGuid,e.systemLibName=r.systemLibName,e.type=r.type,e.url=r.url),new i.default(function(t){t(e)})})}}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(d.SubLayer);(0,n.default)(_.prototype,{geometryFilter:{get:function(){return this._geometryFilter},set:function(e){!(0,f.defined)(e)||e instanceof h.Geometry?this._geometryFilter=e:this._geometryFilter=h.Geometry.fromJSON(e),this.layer&&this.layer.refresh()}},renderer:{get:function(){return this._renderer},set:function(e){!(0,f.defined)(e)||e instanceof y.BaseRenderer?this._renderer=e:this._renderer=y.BaseRenderer.fromJSON(e),this.layer&&this.layer.refresh()}},definitionExpression:{get:function(){return this._definitionExpression},set:function(e){e&&(this._definitionExpression=e,this.layer&&this.layer.refresh())}},visible:{get:function(){return this._visible},set:function(e){this._visible=e,this.layer&&this.layer.refresh()}}}),t.default=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(2)),a=l(r(4)),s=l(r(7)),u=l(r(5));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=e||{})}}]),t}(l(r(160)).default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(0)),i=l(r(2)),o=r(8),a=r(6),s=l(r(40)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(t){(0,n.default)(this,e),t=(0,u.defaultValue)(t,{}),this.distance=(0,u.defaultValue)(t.distance,.1),this.units=(0,u.defaultValue)(t.units,a.LengthUnit.meters),this.geometry=t.geometry?s.default.fromJSON(t.geometry):null,this.objectIds=t.objectIds,this.spatialRelation=(0,u.defaultValue)(t.spatialRelation,o.SpatialRelation.intersects),this.where=(0,u.defaultValue)(t.where,"")}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.distance=this.distance,e.units=this.units,e.geometry=this.geometry?this.geometry.toJSON():null,e.objectIds=this.objectIds?this.objectIds.map(function(e){return e}):null,e.spatialRelation=this.spatialRelation,e.where=this.where,e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,u.defaultValue)(t,{}))}}]),e}();t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(20)),i=s(r(0)),o=s(r(2)),a=r(1);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,i.default)(this,e),t=(0,a.defaultValue)(t,{}),this.functionArguments=t.functionArguments,this.functionName=t.functionName,this.outputPixelType=t.outputPixelType,this.variableName=t.variableName,this.rasterFunctionDefinition=t.rasterFunctionDefinition}return(0,o.default)(e,[{key:"toJSON",value:function(){var e={};return e.functionArguments=this.functionArguments,e.functionName=this.functionName,e.outputPixelType=this.outputPixelType,e.variableName=this.variableName,e.rasterFunctionDefinition=this.rasterFunctionDefinition,e}},{key:"_toIGSObject",value:function(){return(0,n.default)({type:this.functionName},this.functionArguments)}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,a.defaultValue)(t,{}))}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(2)),a=c(r(4)),s=c(r(7)),u=c(r(5)),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.resourceConfigId=(0,l.defaultValue)(e.resourceConfigId,void 0),r.supportedMediaTypes=(0,l.defaultValue)(e.supportedMediaTypes,void 0),r.resourceType=(0,l.defaultValue)(e.resourceType,void 0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"findSublayerById",value:function(e){return this.allSublayers.find(function(t){return String(t.id)===String(e)})}},{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.resourceConfigId=this.resourceConfigId,e.supportedMediaTypes=this.supportedMediaTypes,e.resourceType=this.resourceType,e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(c(r(160)).default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(5)),u=r(16),l=r(1),c=r(6);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.type=c.SubLayerType.ISSceneSub,r.originLayerType=(0,l.defaultValue)(e.originLayerType,""),r.name=(0,l.defaultValue)(e.name,""),r.layerName=(0,l.defaultValue)(e.layerName,null),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"reset",value:function(){this.layer&&this.layer._fireUpdateEvent("重置视角",[{name:"reset",params:[this.id],dataChanged:!0,operationType:"method"}])}},{key:"toJSON",value:function(){var e=this.toJSON();return e.originLayerType=this.originLayerType,e.url=this.url,e.name=this.name,e.layerName=this.layerName,e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(u.SubLayer);t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(7)),u=d(r(5)),l=r(1),c=r(16),f=r(6),h=r(43);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.type=f.SubLayerType.ArcGISMapImageSub,r.originLayerType=(0,l.defaultValue)(e.originLayerType,""),r.url=(0,l.defaultValue)(e.url,""),r.name=(0,l.defaultValue)(e.name,""),r.fields=(0,l.defaultValue)(e.fields,[]),r.geomType=(0,l.defaultValue)(e.geomType||e.GeomType,""),r.objectIdField=(0,l.defaultValue)(e.objectIdField,""),r.definitionExpression=(0,l.defaultValue)(e.definitionExpression,""),r.renderer=r._decorate("renderer",(0,l.defaultValue)(e.renderer,{}),h.BaseRenderer,h.BaseRenderer.fromJSON),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.url=this.url,e.name=this.name,e.fields=this.fields.map(function(e){return e}),e.geomType=this.geomType,e.objectIdField=this.objectIdField,e.definitionExpression=this.definitionExpression,e.originLayerType=this.originLayerType,e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(c.SubLayer);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(5)),u=r(1),l=f(r(19)),c=r(36);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"queryResourceInfo",value:function(e){return this._querySimpleInfo(e,function(e){return e+"/resources/info"})}},{key:"getStyleList",value:function(e){return this._querySimpleInfo(e,function(e){return e+"/resources/styles"})}},{key:"getStyle",value:function(e){return this._queryByParameters(e,{styleId:{type:"String"}},{},function(e,t){return e+"/resources/styles/"+t.styleId+"?f=json"})}},{key:"getTileMap",value:function(e){return this._querySimpleInfo(e,function(e){return e+"/tilemap"})}},{key:"getRootJSON",value:function(e){var t=void 0,r="";if((e=(0,u.defaultValue)(e,{})).url){var n=c.UrlUtil.getBaseUrlAndParams(e.url),i=n.params;(0,u.defined)(this.tokenKey)&&(0,u.defined)(this.tokenValue)&&delete i[e.tokenValue],t=n.baseUrl,(r=c.UrlUtil.getStringFromObject(i))&&(r="?"+r)}return this._queryByParameters(e,{},{},function(e){return(0,u.defined)(t)?""+t+r:e+"/resources/styles/root.json"})}},{key:"getSpiriteJSON",value:function(e){return this._queryByParameters(e,{},{},function(){return""+e.url})}}]),t}(l.default);t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(3)),i=g(r(0)),o=g(r(2)),a=g(r(4)),s=g(r(7)),u=g(r(5)),l=r(16),c=r(8),f=r(1),h=r(9),d=g(r(79)),p=g(r(72)),y=r(12);function g(e){return e&&e.__esModule?e:{default:e}}r(6);var m=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));if(e=(0,f.defaultValue)(e,{}),r.description="IGS WMTS子图层",r.imageFormat=(0,f.defaultValue)(e.imageFormat,void 0),r.identifier=(0,f.defaultValue)(e.identifier,""),r.imageFormats=(0,f.defaultValue)(e.imageFormats,void 0),r.styleId=(0,f.defaultValue)(e.styleId,void 0),r.styles=(0,f.defaultValue)(e.styles,void 0),r.tileMatrixSets=(0,f.defaultValue)(e.tileMatrixSets,void 0),r.tileMatrixSets&&r.tileMatrixSets instanceof Array)for(var o=0;o<r.tileMatrixSets.length;o++)r.tileMatrixSets[o]instanceof c.TileMatrixSet||(r.tileMatrixSets[o]=c.TileMatrixSet.fromJSON(r.tileMatrixSets[o]),!r.tileMatrixSets[o].tileInfo||r.tileMatrixSets[o].tileInfo instanceof p.default||(r.tileMatrixSets[o].tileInfo=p.default.fromJSON(r.tileMatrixSets[o].tileInfo)));r.tileMatrixSetId=(0,f.defaultValue)(e.tileMatrixSetId,void 0),r.tileMatrixSet=(0,f.defaultValue)(e.tileMatrixSet,void 0),r.resourceURLTemplates=(0,f.defaultValue)(e.resourceURLTemplates,void 0);for(var s=0;s<r.tileMatrixSets.length;s++)r.tileMatrixSets[s].id===r.tileMatrixSetId&&(r.spatialReference=h.SpatialReference.fromJSON(r.tileMatrixSets[s].tileInfo.spatialReference));return r.isReverseXY=(0,f.defaultValue)(e.isReverseXY,null),r.capabilities=(0,y.mergeCommonClientCapbilities)(r.capabilities,{imageFormat:!0,styleId:!0,tileMatrixSetId:!0,resourceURLTemplates:!0}),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);e.description=this.description,e.imageFormat=this.imageFormat,e.identifier=this.identifier,e.title=this.title,e.imageFormats=this.imageFormats,e.styleId=this.styleId,e.tileMatrixSets=this.tileMatrixSets,e.tileMatrixSetId=this.tileMatrixSetId,e.tileMatrixSet=(0,f.toJSON)(this.tileMatrixSet,c.TileMatrixSet),e.extent=this.extent instanceof d.default?this.extent.toJSON():this.extent,e.isReverseXY=this.isReverseXY,e.resourceURLTemplates=this.resourceURLTemplates,e.spatialReference=this.spatialReference instanceof h.SpatialReference?this.spatialReference.toJSON():this.spatialReference;var r=[];if(this.styles)for(var i=0;i<this.styles.length;i++)r.push(this.styles[i]instanceof c.WMTSStyle?this.styles[i].toJSON():this.styles[i]);return e.styles=r,e}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}(l.Layer);m.fromJSON=function(e){return e=(0,f.defaultValue)(e,{}),new m(e)},t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(3)),i=p(r(0)),o=p(r(2)),a=p(r(4)),s=p(r(7)),u=p(r(5)),l=r(1),c=p(r(114)),f=r(9),h=r(6),d=r(12);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.type=h.SubLayerType.WMSSub,r.name=(0,l.defaultValue)(e.name,""),r.queryable=(0,l.defaultValue)(e.queryable,!0),r.spatialReferences=(0,l.defaultValue)(e.spatialReferences,[]).map(function(e){return f.SpatialReference.fromJSON(e)}),r.capabilities=(0,d.mergeCommonClientCapbilities)(r.capabilities,{name:!0,queryable:!0}),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.name=this.name,e.queryable=this.queryable,e.spatialReferences=this.spatialReferences.map(function(e){return e.toJSON()}),e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(c.default);t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(2)),a=c(r(4)),s=c(r(5)),u=(r(1),c(r(19))),l=r(36);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"getLayerJSON",value:function(e){return this._queryByParameters(e,{},{},function(e){return e+"/layer.json"})}},{key:"getTerrainCache",value:function(){var e=this._baseUrl,t=l.UrlUtil.getStringFromObject(this._queryParameters);return t&&(e=l.UrlUtil.completeUrlEndMark(e),e+=t),e}}]),t}(u.default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.minValue=t.minValue,this.maxValue=t.maxValue}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.minValue=this.minValue,e.maxValue=this.maxValue,e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(r(13)),i=v(r(3)),o=v(r(0)),a=v(r(2)),s=v(r(4)),u=v(r(5)),l=r(8),c=r(6),f=r(16),h=r(1),d=r(60),p=r(41),y=r(9),g=r(113),m=r(163);function v(e){return e&&e.__esModule?e:{default:e}}var _=function(e){function t(e){(0,o.default)(this,t),e=(0,h.defaultValue)(e,{});var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this));return r._id=(0,h.defaultValue)(e.id,(0,h.getGUID)()),r._basemap=(0,h.defaultValue)(e.basemap,void 0),r.groupLayer=new d.GroupLayer({layers:e.layers,copyright:""}),r.groupLayer.setMap(r),r.overlayLayers=new d.GroupLayer({layers:e.overlayLayers,copyright:""}),r.overlayLayers.setMap(r),r.layers=r.groupLayer.layers,r.allLayers=new l.CollectionFlattener({getCollections:function(){return r._basemap&&r._basemap.baseLayers?[r._basemap.baseLayers,r.groupLayer.layers,r.overlayLayers.layers]:[r.groupLayer.layers,r.overlayLayers.layers]},getChildrenFunction:function(e){return e.layers}}),r._spatialReference=e.spatialReference?y.SpatialReference.fromJSON(e.spatialReference):null,r._fullExtent=e.fullExtent?y.Extent.fromJSON(e.fullExtent):null,r._waitLoadStorage=[],r._isInitLayersLoaded=!1,r._initHandlers(),r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"toJSON",value:function(){var e={};e.id=this._id,e.spatialReference=this.spatialReference?this.spatialReference.toJSON():null,e.fullExtent=this.fullExtent?this.fullExtent.toJSON():null,e.layers=[];for(var t=0;t<this.layers.items.length;t++)e.layers.push((0,h.toJSON)(this.layers.items[t],f.Layer));return e.exportTime=(new Date).toISOString(),e}},{key:"clone",value:function(){return(0,h.cloneObject)(this)}},{key:"add",value:function(e,t){if(e){var r=e instanceof f.Layer?e:f.Layer.fromJSON(e);this._isValidateLayers([r]),this.groupLayer.add(e,t)}}},{key:"addMany",value:function(e,t){if(e&&Array.isArray(e)){var r=e.map(function(e){return e instanceof f.Layer?e:f.Layer.fromJSON(e)});this._isValidateLayers(r),this.groupLayer.addMany(e,t)}}},{key:"remove",value:function(e){e&&this.groupLayer.remove(e)}},{key:"removeMany",value:function(e){e&&Array.isArray(e)&&this.groupLayer.removeMany(e)}},{key:"removeAll",value:function(){this.groupLayer.removeAll()}},{key:"destroy",value:function(){this.removeAll(),this._removeHandlers()}},{key:"reorder",value:function(e,t){this.groupLayer.reorder(e,t)}},{key:"findLayerById",value:function(e){return this.groupLayer.findLayerById(e)}},{key:"dispatchEvent",value:function(e,t,r){return this.fire(e,t,r),this}},{key:"getFullExtent",value:function(){return this._getLayersExtent(this.allLayers)}},{key:"_isValidateLayers",value:function(e){this.groupLayer._isValidateLayers(e),this.overlayLayers._isValidateLayers(e)}},{key:"_initHandlers",value:function(){this._initBasemapHandlers(),this.groupLayer.on(c.MapEventType.layerChange,this._processGroupLayerChange,this),this.overlayLayers.on(c.MapEventType.layerChange,this._processGroupLayerChange,this)}},{key:"_removeHandlers",value:function(){this.groupLayer.off(c.MapEventType.layerChange,this._processGroupLayerChange,this),this.overlayLayers.off(c.MapEventType.layerChange,this._processGroupLayerChange,this),this._basemap&&this._basemap._baseGroupLayer.off(c.MapEventType.layerChange,this._processGroupLayerChange,this)}},{key:"_initBasemap",value:function(){this._basemap&&(this._initBasemapHandlers(),this.basemap._baseGroupLayer.fire(c.MapEventType.layerChange,new p.LayerChangeEvent({added:this._basemap._baseGroupLayer.layers.items.map(function(e){return e}),path:[this._basemap._baseGroupLayer]})),this.fire(c.MapEventType.basemapChange,new p.BasemapChangeEvent({basemap:this._basemap,detail:[{action:"basemap-create"}]})))}},{key:"_initBasemapHandlers",value:function(){this._basemap&&this._basemap._baseGroupLayer.on(c.MapEventType.layerChange,this._processGroupLayerChange,this)}},{key:"_processGroupLayerChange",value:function(e){var t=e.added,r=e.moved,n=e.removed,i=e.sourceTarget,o=e.path;this._dispatchOldMapEvent(e),this.fire(c.MapEventType.layerChange,new p.LayerChangeEvent({type:c.MapEventType.layerChange,sourceTarget:i,removed:n,path:o,moved:r,added:t})),t.length>0&&(this._waitLoadStorage.push(e),this._triggerLayersAddToView()),0===n.length&&0===t.length&&0===r.length?this._waitLoadStorage=this._waitLoadStorage.filter(function(e){return e.sourceTarget!==i}):n.length>0&&(this._waitLoadStorage.forEach(function(e){e&&e.sourceTarget===i&&(e.added=e.added.filter(function(e){return!n.some(function(t){return t&&e&&t.id===e.id})}))}),this._waitLoadStorage=this._waitLoadStorage.filter(function(e){return e&&e.added&&e.added.length>0}))}},{key:"_triggerLayersAddToView",value:function(){this._isInitLayersLoaded?this._processLoadStorage():(this._cacheProcessLoadStorage||(this._cacheProcessLoadStorage=(0,g.debouncePromise)(this._processLoadStorage,10).bind(this)),this._cacheProcessLoadStorage())}},{key:"_processLoadStorage",value:function(){var e=this;if(0!==this._waitLoadStorage.length){var t=this._waitLoadStorage.map(function(e){var t=e.sourceTarget,r=e.added.filter(function(e){return e});return t.load().then(function(){return{added:r,sourceTarget:t}})});(0,g.allSettled)(t).then(function(t){if(t&&Array.isArray(t)){var r=[];t.forEach(function(e){var t=e.value,n=t.added.filter(function(e){return e&&e.type!==c.LayerType.unknown&&e.loaded});n.length>0&&r.push({added:n,sourceTarget:t.sourceTarget})}),r.length>0&&(e._isInitLayersLoaded=!0,e.fire(c.MapEventType.layerLoaded,new p.LayerLoadedEvent({addDetail:r})))}}),this._waitLoadStorage=[]}}},{key:"_dispatchOldMapEvent",value:function(e){var t=e.added,r=e.removed,n=e.sourceTarget;if(n===this.groupLayer&&(t&&Array.isArray(t)&&t.length>0&&(1===t.length?this.dispatchEvent(c.MapEventType.layerAdd,{type:c.MapEventType.layerAdd,layer:t[0]}):this.dispatchEvent(c.MapEventType.layerAddMany,{type:c.MapEventType.layerAddMany,layers:t})),Array.isArray(r))){var i=n.layers;i&&i.items&&0===i.items.length&&0===r.length?this.dispatchEvent(c.MapEventType.layerRemoveAll,{type:c.MapEventType.layerRemoveAll,layers:r}):1===r.length?this.dispatchEvent(c.MapEventType.layerRemove,{type:c.MapEventType.layerRemove,layer:r[0]}):r.length>1&&this.dispatchEvent(c.MapEventType.layerRemoveMany,{type:c.MapEventType.layerRemoveMany,layers:r})}}},{key:"_loadLayers",value:function(){return this._basemap&&this._basemap._baseGroupLayer.fire(c.MapEventType.layerChange,new p.LayerChangeEvent({added:this._basemap._baseGroupLayer.layers.items.map(function(e){return e}),path:[this._basemap._baseGroupLayer]})),this.groupLayer&&this.groupLayer.fire(c.MapEventType.layerChange,new p.LayerChangeEvent({added:this.groupLayer.layers.items.map(function(e){return e}),path:[this.groupLayer]})),this.overlayLayers&&this.overlayLayers.fire(c.MapEventType.layerChange,new p.LayerChangeEvent({added:this.overlayLayers.layers.items.map(function(e){return e}),path:[this.overlayLayers]})),this}},{key:"_setSpatialReference",value:function(e){this._spatialReference=e}},{key:"_getLayersExtent",value:function(e){var t=(0,m.getLayersExtent)(e,this._spatialReference);return t&&!t.spatialReference.isGeographic&&(t=l.Projection.project(t,new y.SpatialReference("EPSG:4326"))),this._fullExtent=t,t}}],[{key:"fromJSON",value:function(e){return new t(e=(0,h.defaultValue)(e,{}))}}]),t}(l.Evented);(0,n.default)(_.prototype,{basemap:{get:function(){return this._basemap},set:function(e){this._basemap?e?this._basemap._setBasemap(e,this):(this._basemap._setBasemap(e),this._basemap=null):e?(this._basemap=e,this._basemap._map=this,this._initBasemap()):this._basemap=null,this.allLayers._refresh()}},spatialReference:{get:function(){return this._spatialReference},set:function(){}},fullExtent:{get:function(){return this._spatialReference?l.Projection.project(this._fullExtent,this._spatialReference):this._fullExtent},set:function(){}}}),t.default=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={DefaultThemeInfo:1,DataItemIntrinsicInfo:2}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.default=function(e){e=(0,n.defaultValue)(e,{}),(0,n.extend)(this,e),this.LibID=void 0!==e.LibID?e.LibID:0,this.Ovprnt=void 0!==e.Ovprnt&&e.Ovprnt,this.Angle=void 0!==e.Ovprnt?e.Ovprnt:0,this.BackClr=void 0!==e.BackClr?e.BackClr:0,this.BackExp=void 0!==e.BackExp?e.BackExp:0,this.Chnt=void 0!==e.Chnt?e.Chnt:0,this.Color=void 0!==e.Color?e.Color:0,this.FontAngle=void 0!==e.FontAngle?e.FontAngle:0,this.Height=void 0!==e.Height?e.Height:0,this.Ifnt=void 0!==e.Ifnt?e.Ifnt:0,this.Ifnx=void 0!==e.Ifnx?e.Ifnx:0,this.IsFilled=void 0!==e.IsFilled&&e.IsFilled,this.IsHzpl=void 0===e.IsHzpl||e.IsHzpl,this.OffsetX=void 0!==e.OffsetX?e.OffsetX:0,this.OffsetY=void 0!==e.OffsetY?e.OffsetY:0,this.Space=void 0!==e.Space?e.Space:0,this.Width=void 0!==e.Width?e.Width:0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={Unknown:0,Value:1,Percent:2}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(4)),a=c(r(5)),s=c(r(44)),u=c(r(244)),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t);var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.ChartType=void 0!==e.ChartType?e.ChartType:u.default.Bar,r.ChartThemeInfoArr=void 0!==e.ChartThemeInfoArr?e.ChartThemeInfoArr:null,r.RepresentInfo=void 0!==e.RepresentInfo?e.RepresentInfo:null,r.Type="CChartTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={Unknown:0,Bar:1,Bar3D:2,Pie:3,Pie3D:4,Line:5,Line3D:6,Point:7}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(44)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.Expression=void 0!==e.Expression?e.Expression:"",r.Info=void 0!==e.Info?e.Info:null,r.Value=void 0!==e.Value?e.Value:null,r.Type="CDotDensityTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(44)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.ClrInfo=void 0!==e.ClrInfo?e.ClrInfo:[25,57,89,121],r.Type="CFourColorTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(44)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.BaseValue=void 0!==e.BaseValue?e.BaseValue:141e-6,r.DispMinus=void 0!==e.DispMinus&&e.DispMinus,r.DispZero=void 0!==e.DispZero&&e.DispZero,r.Expression=void 0!==e.Expression?e.Expression:null,r.MinusPntInfo=void 0!==e.MinusPntInfo?e.MinusPntInfo:null,r.PlusPntInfo=void 0!==e.PlusPntInfo?e.PlusPntInfo:null,r.ZeroPntInfo=void 0!==e.ZeroPntInfo?e.ZeroPntInfo:null,r.Type="CGraduatedSymbolTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XClsType={SFCls:"SFeatureCls",OCls:"ObjectCls",ACls:"AnnotationCls",GnetCls:"GNetCls",RDS:"RasterDataset",SFClsInfo:"sfcls_new"},t.VectClsType={Unknown:0,SFCls:"SFeatureCls",AnnoCls:"AnnotationCls"},t.FeatureType={Unknown:0,Pnt:1,Lin:2,Reg:3},t.FontShape={Positive:0,LeftOblique:1,RightOblique:2,LeftTowering:3,RightTowering:4},t.LabelLinType={Curved:0,Forward:1,Horizontal:2,Tangent:3},t.LabelRegType={Curved:0,Forward:1,Horizontal:2,Boundray:3,Outside:4},t.LabelPntType={PntAnyDir:0,PntEightDir:1,PntOnFea:2},t.RepeatType={Auto:0,NoRep:1,OnStep:2},t.LabelSpreadType={AutoSpread:0,Centralization:1,Decentralization:2},t.LineConstrain={Left:0,Right:1,Above:2,Below:3,Both:4,NoRes:5},t.EightDirType={East:0,North:1,NorthEast:2,NorthWest:3,South:4,SouthEast:5,SouthWest:6,West:7,NoDir:8},t.ISShowArc={Reg:0,Arc:1,All:2},t.NetAnalyType={UserMode:"UserMode",SysModeCommwayPrefer:"SysModeCommwayPrefer",SysModeHighWayPrefer:"SysModeHighWayPrefer",SysModeMinCost:"SysModeMinCost",SysModeMinDis:"SysModeMinDis",SysModeSysRecommend:"SysModeSysRecommend"},t.NetElemType={Node:1,Edge:2,CNode:3,Chain:4,Center:5,Source:13,Sink:13},t.CLinAdjustType={Adjust:0,NoAdjust:1},t.CLinHeadType={Round:0,Square:1,Butt:2},t.CLinJointType={Round:0,Square:1,Butt:2},t.CLinStyleMakeType={Byrule:0,Bypoint:1},t.CItemType={Unknown:0,UniqueTheme:1,RangeTheme:2},t.MapType={Doc:"mapType",Tile:"tileType"},t.LayerStatusType={Show:"show",Hide:"hide",Include:"include",Exclude:"exclude"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(44)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.DefaultInfo=void 0!==e.DefaultInfo?e.DefaultInfo:null,r.ExpInfoArr=void 0!==e.ExpInfoArr?e.ExpInfoArr:null,r.MultiClassThemeInfoArr=void 0!==e.MultiClassThemeInfoArr?e.MultiClassThemeInfoArr:null,r.GeoInfoType=void 0!==e.GeoInfoType?e.GeoInfoType:null,r.Type="CMultiClassTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(44)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.Type="CRandomTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(4)),a=c(r(5)),s=c(r(44)),u=c(r(240)),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t),e=(0,l.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.AllOtherDataItemInfoSource=void 0!==e.AllOtherDataItemInfoSource?e.AllOtherDataItemInfoSource:u.default.DefaultThemeInfo,r.Expression=void 0!==e.Expression?e.Expression:"",r.DefaultInfo=void 0!==e.DefaultInfo?e.DefaultInfo:null,r.RangeThemeInfoArr=void 0!==e.RangeThemeInfoArr?e.RangeThemeInfoArr:null,r.GeoInfoType=void 0!==e.GeoInfoType?e.GeoInfoType:null,r.Type="CRangeTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(4)),a=c(r(5)),s=c(r(44)),u=c(r(101)),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t),e=(0,l.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.ThemeInfo=void 0!==e.ThemeInfo?e.ThemeInfo:new u.default,r.Type="CSimpleTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(44)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.DefaultInfo=void 0!==e.DefaultInfo?e.DefaultInfo:null,r.Expression=void 0!==e.Expression?e.Expression:"",r.UniqueThemeInfoArr=void 0!==e.UniqueThemeInfoArr?e.UniqueThemeInfoArr:null,r.GeoInfoType=void 0!==e.GeoInfoType?e.GeoInfoType:null,r.Type="CUniqueTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){this.name=void 0!==e?e:null,this.attribute=void 0!==t?t:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){this.name=void 0!==e?e:null,this.Value=void 0!==t?t:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){this.LayerName=void 0!==e?e:null,this.ThemeArr=void 0!==t?t:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWorkflow=t.WorkFlowServer=void 0;var n=I(r(22)),i=I(r(594)),o=I(r(595)),a=I(r(596)),s=I(r(597)),u=I(r(598)),l=I(r(599)),c=I(r(600)),f=I(r(601)),h=I(r(602)),d=I(r(603)),p=I(r(604)),y=I(r(605)),g=I(r(606)),m=I(r(607)),v=I(r(608)),_=I(r(609)),S=I(r(610)),b=I(r(611)),x=I(r(612)),w=I(r(613)),E=I(r(614)),T=I(r(615));function I(e){return e&&e.__esModule?e:{default:e}}var M={WorkFlowServer:n.default,WorkFlowServer600227:i.default,WorkFlowServer600228:o.default,WorkFlowServer600229:a.default,WorkFlowServer600230:s.default,WorkFlowServer600231:u.default,WorkFlowServer600232:l.default,WorkFlowServer600233:c.default,WorkFlowServer600235:f.default,WorkFlowServer600237:h.default,WorkFlowServer600238:d.default,WorkFlowServer600239:p.default,WorkFlowServer600307:y.default,WorkFlowServer600308:g.default,WorkFlowServer600309:m.default,WorkFlowServer600314:v.default,WorkFlowServer600334:_.default,WorkFlowServer600336:S.default,WorkFlowServer600340:b.default,WorkFlowServer600354:x.default,WorkFlowServer600368:w.default,WorkFlowServer600369:E.default,WorkFlowServer600370:T.default};t.WorkFlowServer=n.default,t.createWorkflow=function(e){var t=((e||{}).url||"").match(/(workflow)(\/)\d+(\/)(WorkflowServer)/g);if(!t)throw new Error("未识别工作流id");var r=t[0].split("/"),n=void 0;if(Array.isArray(r)&&3===r.length&&(n=r[1]),!n)throw new Error("未识别工作流id "+n);var i=M["WorkFlowServer"+n];if(!i)throw new Error("id为"+n+"的工作流未定义");return new i(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(2)),a=l(r(4)),s=l(r(7)),u=l(r(5));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r._initInstance(e),r._initHandlers(),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"_initInstance",value:function(e){}},{key:"_initHandlers",value:function(){this._layerChangeAction=this._layerChangeAction.bind(this),this.layer.on("set",this._layerChangeAction)}},{key:"_removeHandlers",value:function(){this.layer.off("set",this._layerChangeAction)}},{key:"_layerChangeAction",value:function(e){"renderer"===e.eventData.key&&this._rendererChangeAction(e)}},{key:"_rendererChangeAction",value:function(e){}},{key:"onRemove",value:function(e){(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"onRemove",this).call(this,e),this._removeHandlers()}}]),t}(l(r(102)).default);t.default=c},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _stringify=__webpack_require__(10),_stringify2=_interopRequireDefault(_stringify),_isNan=__webpack_require__(628),_isNan2=_interopRequireDefault(_isNan),_log=__webpack_require__(631),_log2=_interopRequireDefault(_log),_index=__webpack_require__(103),_util=__webpack_require__(1),_symbol=__webpack_require__(28),_VisualVariableType=__webpack_require__(68),_VisualVariableType2=_interopRequireDefault(_VisualVariableType),_NormalizationType=__webpack_require__(189),_NormalizationType2=_interopRequireDefault(_NormalizationType);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parseExpression(feature,expression){if(!expression)return"";var excuteStr=expression.replace(/\$feature/g,"feature.attributes");try{var v=eval(excuteStr);return v}catch(e){_index.Log.info("字段表达式输入值非法")}return""}function parseFieldAndExpression(e,t,r){var n=(e.attributes||{})[t];return(0,_util.defined)(n)?n:parseExpression(e,r)}function parseClassBreakNormalizationType(e,t,r){var n=t,i=r=r||{},o=i.normalizationField,a=i.normalizationTotal;switch(i.normalizationType){case _NormalizationType2.default.field:n/=e.attributes[o];break;case _NormalizationType2.default.log:n=(0,_log2.default)(n);break;case _NormalizationType2.default.percentOfTotal:n=n/a*100}return n}function randomColor(){return"rgba("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+",1)"}function calcSpaceRatio(e,t,r){var n=r-t;return((0,_isNan2.default)(n)||n<=0)&&_index.Log.error("传入的视觉变量不合法"),e<=t?0:e>r?1:(e-t)/n}function calcGradientInStops(e,t,r){if(Array.isArray(t)&&!(t.length<=0)){var n=t.sort(function(e,t){return e.value-t.value});if(1===n.length)return r(t[0],t[0],1);var i=n[0],o=n[n.length-1];if(e<i.value)return r(i,i,1);if(e>=o.value)return r(o,o,1);for(var a=1;a<n.length;a++){var s=n[a-1],u=n[a];if(e>=s.value&&e<=u.value)return r(s,u,calcSpaceRatio(e,s.value,u.value))}}}function updateFeatureSymbol(e,t,r,n){if(e&&e.symbol&&t){var i=!(0,_util.defined)(r)||r;e.visible!==i&&(e.visible=i);var o=e.symbol.toJSON(),a=t.toJSON();if(o!==a&&(e.symbol=a),n&&Array.isArray(n)&&!(n.length<=0))for(var s=e.symbol instanceof _symbol.Symbol?e.symbol.toJSON():(0,_stringify2.default)(e.symbol),u=0;u<n.length;u++){var l=n[u],c=l.field,f=l.type,h=parseFieldAndExpression(e,c,l.valueExpression);if(h=parseFloat(h),!(0,_isNan2.default)(h)){switch(f){case _VisualVariableType2.default.color:var d=calcGradientInStops(h,l.stops,function(e,t,r){var n=_index.Color.fromColor(e.color),i=_index.Color.fromColor(t.color),o=parseInt(n.red+(i.red-n.red)*r),a=parseInt(n.green+(i.green-n.green)*r),s=parseInt(n.blue+(i.blue-n.blue)*r),u=parseFloat(n.alpha+(i.alpha-n.alpha)*r);return new _index.Color(o,a,s,u)});(0,_util.defined)(d)&&(s.color=d);break;case _VisualVariableType2.default.size:var p=l.stops,y=l.maxDataValue,g=l.minDataValue,m=l.maxSize,v=l.minSize,_=p;(0,_util.isNumber)(y)&&(0,_util.isNumber)(g)&&(0,_util.isNumber)(m)&&(0,_util.isNumber)(v)&&(_=[{size:v,value:g},{size:m,value:y}]);var S=calcGradientInStops(h,_,function(e,t,r){var n=e.size,i=t.size;return parseInt(n+(i-n)*r)});if((0,_util.defined)(S))if(s.symbolLayers)for(var b=0;b<s.symbolLayers.length;b++){var x=s.symbolLayers[b];x.type!==_index.Symbol3DLayerType.extrude&&x.type!==_index.Symbol3DLayerType.icon&&x.type!==_index.Symbol3DLayerType.line&&x.type!==_index.Symbol3DLayerType.text||(x.size=S)}else s.size=S;break;case _VisualVariableType2.default.opacity:var w=calcGradientInStops(h,l.stops,function(e,t,r){var n=e.opacity,i=t.opacity;return parseInt(100*(n+(i-n)*r))/100});if((0,_util.defined)(w)&&s.color){var E=_index.Color.fromColor(s.color);E.alpha=w,s.color=E}}e.symbol=s}}}}function updateRandomFeatureSymbol(e){if(e&&e.geometry)switch(e.geometry.type){case _index.GeometryType.multiPoint:case _index.GeometryType.point:e.symbol=new _symbol.SimpleMarkerSymbol({color:randomColor(),outline:new _symbol.SimpleLineSymbol({color:randomColor()})});break;case _index.GeometryType.multiLineString:case _index.GeometryType.lineString:e.symbol=new _symbol.SimpleLineSymbol({color:randomColor()});break;case _index.GeometryType.polygon:case _index.GeometryType.extent:case _index.GeometryType.circle:case _index.GeometryType.multiPolygon:e.symbol=new _symbol.SimpleFillSymbol({color:randomColor(),outline:new _symbol.SimpleLineSymbol({color:randomColor()})})}}function _isValueInClassBreakInfo(e,t,r){var n=e.maxValue,i=e.minValue;if(r){if(t>=i&&t<=n)return!0}else if(t>=i&&t<n)return!0;return!1}function updateRenderer(e,t){e instanceof _index.FeatureSet&&(e=e.features);var r=(t=t||{}).visualVariables||[];switch(t.type){case _index.RendererType.simple:var n=t.symbol;e.forEach(function(e){updateFeatureSymbol(e,n,!0,r)});break;case _index.RendererType.uniqueValue:for(var i=t.defaultSymbol||{},o=t.defaultVisible,a=t.uniqueValueInfos||[],s=t.valueExpression||"",u=0;u<e.length;u++){var l=e[u],c=parseFieldAndExpression(l,t.field||"",s);if((0,_util.defined)(c)){for(var f=null,h=null,d=0;d<a.length;d++){var p=a[d];if(p.value===c){f=p.symbol,h=p;break}}if(f){updateFeatureSymbol(l,f,h.visible,r);continue}}updateFeatureSymbol(l,i,o,r)}break;case _index.RendererType.classBreak:for(var y=t.defaultSymbol||{},g=t.classBreakInfos||[],m=t.valueExpression||"",v=t.defaultVisible,_=0;_<e.length;_++){var S=e[_],b=t.field||"",x=parseFloat(parseFieldAndExpression(S,b,m));if(x=parseClassBreakNormalizationType(S,x,{normalizationField:t.normalizationField,normalizationTotal:t.normalizationTotal,normalizationType:t.normalizationType}),(0,_util.defined)(x)){for(var w=null,E=null,T=0;T<g.length-1;T++){var I=g[T];_isValueInClassBreakInfo(I,x,!0)&&(w=I.symbol,E=I)}if(!w&&g.length-1>=0){var M=g[g.length-1];_isValueInClassBreakInfo(M,x,!0)&&(w=M.symbol,E=M)}if(w){updateFeatureSymbol(S,w,E.visible,r);continue}}updateFeatureSymbol(S,y,v,r)}break;case _index.RendererType.random:e.forEach(function(e){updateRandomFeatureSymbol(e)});break;case _index.RendererType.rank:var k=t.symbol,P=t,L=P.minSize,O=P.maxSize,C=P.maxDataValue,N=P.minDataValue,R=P.field,G=P.valueExpression;(!k||L>O||!R&&!G)&&_index.Log.error("等级符号专题图参数异常!");var A=void 0,V=void 0;e.forEach(function(e){var t=parseFieldAndExpression(e,R,G);t=parseFloat(t),(0,_util.defined)(A)||(A=t),(0,_util.defined)(V)||(V=t),A=Math.max(A,t),V=Math.min(V,t)}),(0,_util.defined)(N)&&(0,_util.defined)(C)&&C>N&&(A=C,V=N),A-V==0&&(A+=1e-4),e.forEach(function(e){var t,n=k.clone(),i=parseFieldAndExpression(e,R,G);t=(i=parseFloat(i))<V?0:i>A?1:(i-V)/(A-V);var o=parseInt(t*(O-L)+L);if((0,_util.isNumber)(o))switch(n.type){case _index.SymbolType.simpleMarker:n.size=o;break;case _index.SymbolType.pictureMarker:n.width=o,n.height=o;break;case _index.SymbolType.text:var a=n.font||{};a.size=o,n.font=a}updateFeatureSymbol(e,n,!0,r)});break;default:var D=t.symbol;e.forEach(function(e){updateFeatureSymbol(e,D,!0,r)})}}var RendererUtil={updateRenderer:updateRenderer,parseExpression:parseExpression};exports.default=RendererUtil},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTipTextByEditOption=t.SketchFreehandPolygonDrawTool=t.SketchFreehandPolylineDrawTool=t.SketchExtentDrawTool=t.SketchCircleDrawTool=t.SketchPolygonDrawTool=t.SketchPolylineDrawTool=t.SketchPointDrawTool=t.SketchBaseDrawTool=t.SketchEditor3D=t.SketchEditor=t.SketchEditorEvent=t.SketchStyle=void 0;var n=g(r(45)),i=r(167),o=g(r(262)),a=g(r(640)),s=g(r(52)),u=g(r(51)),l=g(r(263)),c=g(r(73)),f=g(r(264)),h=g(r(265)),d=g(r(266)),p=g(r(267)),y=r(85);function g(e){return e&&e.__esModule?e:{default:e}}t.SketchStyle=n.default,t.SketchEditorEvent=i.SketchEditorEvent,t.SketchEditor=o.default,t.SketchEditor3D=a.default,t.SketchBaseDrawTool=s.default,t.SketchPointDrawTool=u.default,t.SketchPolylineDrawTool=l.default,t.SketchPolygonDrawTool=c.default,t.SketchCircleDrawTool=f.default,t.SketchExtentDrawTool=h.default,t.SketchFreehandPolylineDrawTool=d.default,t.SketchFreehandPolygonDrawTool=p.default,t.getTipTextByEditOption=y.getTipTextByEditOption},function(e,t,r){"use strict";t.__esModule=!0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(173));t.default=function(e,t,r){return t in e?(0,n.default)(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=C(r(13)),i=C(r(261)),o=C(r(20)),a=C(r(24)),s=C(r(3)),u=C(r(0)),l=C(r(2)),c=C(r(4)),f=C(r(5)),h=r(8),d=r(6),p=r(1),y=r(9),g=C(r(45)),m=C(r(51)),v=C(r(73)),_=C(r(635)),S=C(r(263)),b=C(r(264)),x=C(r(265)),w=C(r(637)),E=r(85),T=C(r(638)),I=C(r(639)),M=C(r(266)),k=C(r(267)),P=r(167),L=r(59),O=r(28);function C(e){return e&&e.__esModule?e:{default:e}}var N=function(e){function t(e){(0,u.default)(this,t);var r=(0,c.default)(this,(t.__proto__||(0,s.default)(t)).call(this));return(e=(0,p.defaultValue)(e,{})).view||p.Log.error("options.view is null!",e),r._id=(0,p.defaultValue)(e.id,(0,p.getGUID)()),r.view=e.view,r._spatialReference=r.view&&r.view._spatialReference?r.view._spatialReference:new y.SpatialReference("EPSG:4326"),r._sketchInnerLayer=new L.GroupLayer({layers:[new L.GraphicsLayer,new L.GraphicsLayer]}),r._sketchOuterLayer=(0,p.defaultValue)(e.layer,void 0),r._layer=r._sketchOuterLayer||r._sketchInnerLayer,r.sketchStyle=(0,p.defaultValue)(e.sketchStyle,new g.default),r._editable=(0,p.defaultValue)(e.editable,!0),r._editOption=e.editOption&&0!==(0,a.default)(e.editOption).length?e.editOption:{},r._editOption=(0,p.extendDeep)({graphic:{move:!0,scale:!0},vertex:{move:!0,add:!0}},r._editOption),r._isAddTip=!0,r._tipTextGraphics=[],r._isShowTip=(0,p.defaultValue)(e.isShowTip,!0),r.isSimple=(0,p.defaultValue)(e.isSimple,!1),r.snapOption=(0,p.defaultValue)(e.snapOption,{}),r.snapAndReferGeometries=(0,p.defaultValue)(e.snapAndReferGeometries,[]),r.measureOption=(0,p.defaultValue)(e.measureOption,void 0),r._drawTool=null,r._sketchDataType=null,r._sketchTopologyTool=new w.default,r._sketchSnappingTool=new _.default((0,o.default)(r.snapOption,{view:r.view})),r._undoRedoManager=new T.default,r._editorState={editMode:h.SketchEditMode.none,undoRedoManager:r.undoRedoManager,_hitTestEvent:r._hitTestEvent},r.view._graphicsLayers.add(r._sketchInnerLayer),r._hitTestSketchEvent(),r._tipText={none:{text:"",lineWidth:0},beforeEditGraphic:{text:"左键单击图形,进行整体编辑",lineWidth:160},beforeEditVertex:{text:"左键单击外包盒,进入顶点编辑",lineWidth:160}},r._addOrUpdateTipText(r._tipText.none,r._sketchInnerLayer),r}return(0,f.default)(t,e),(0,l.default)(t,[{key:"start",value:function(e,t){var r=this._getDrawTool(e,t),n=r.drawTool,i=r.sketchType;r.isGeometry?this._startDrawTool(n,i,e):this._startDrawTool(n,i)}},{key:"startCustomDrawTool",value:function(e,t){var r=new e({view:this.view,sketchStyle:this.sketchStyle,layer:this._layer,sketchInnerLayer:this._sketchInnerLayer,undoRedoManager:this._undoRedoManager,elevationInfo:this.elevationInfo,_sketchEditor:this});this._startDrawTool(r,t)}},{key:"_getDrawTool",value:function(e,t,r){var n=void 0,i=void 0,o=!1;"number"==typeof e?n=e:e instanceof y.Point?(n=r instanceof O.TextSymbol?h.SketchDataType.text:h.SketchDataType.point,o=!0):e instanceof y.LineString?(n=h.SketchDataType.polyline,o=!0):e instanceof y.Polygon?(n=h.SketchDataType.polygon,o=!0):e instanceof y.Circle?(n=h.SketchDataType.circle,o=!0):e instanceof y.Extent&&(n=h.SketchDataType.rectangle,o=!0);var a={view:this.view,sketchStyle:this.sketchStyle,sketchDataType:n,layer:this._layer,sketchInnerLayer:this._sketchInnerLayer,undoRedoManager:this._undoRedoManager,elevationInfo:this.elevationInfo,extensionOptions:t,_sketchEditor:this,arcType:this.arcType,_getCenterCoordinate:this._getCenterCoordinate};switch(n){case h.SketchDataType.point:case h.SketchDataType.text:i=new m.default(a);break;case h.SketchDataType.polyline:i=new S.default(a);break;case h.SketchDataType.polygon:i=new v.default(a);break;case h.SketchDataType.circle:i=new b.default(a);break;case h.SketchDataType.rectangle:i=new x.default(a);break;case h.SketchDataType.freeHandPolyline:i=new M.default(a);break;case h.SketchDataType.freeHandPolygon:i=new k.default(a)}return{drawTool:i,sketchType:n,isGeometry:o}}},{key:"_startDrawTool",value:function(e,t,r){if(this._drawTool&&(this._drawTool._removeEditGraphics(),this._drawTool._stopAll(),this._drawTools=[],this._undoRedoManager.reset()),this._drawTool=e,this._drawTool){if(this._drawTool._sketchDataType=t,this._sketchEvent(),r){var n=r.clone();if(this.arcType&&(n.extensionOptions?n.extensionOptions.arcType=this.arcType:n.extensionOptions={extensionOptions:{arcType:this.arcType}}),this.isSimple&&!y.GeometryEngine.isSimple(n)){var i=new P.SketchEditorEvent({type:h.SketchEditorEventType.create,toolEventInfo:{type:h.SketchEditorToolEventType.geometryUnsimple},state:h.SketchEditorState.complete});return this._drawTool.fire(h.SketchEditorEventType.create,i,self),p.Log.info("该坐标构成的几何不符合拓扑规范!")}this._addGeometry(n,this._layer),this._bindHit&&this._bindHit(this._drawTool,void 0,this._layer),this._drawTool.state="drawn"}else this._drawTool.start(this._sketchDataType);this._selectEvent(),this._drawEvent()}}},{key:"_addFeatureToSketchEditor",value:function(e,t){var r=e.geometry,n=this._getDrawTool(r,void 0,e.symbol),i=n.drawTool,o=n.sketchType;this._drawTool=i,this._drawTool&&(this._drawTool.sketchStage.entityGraphic=e,this._drawTool.state="drawn",this._drawTool._sketchDataType=o,this._selectEvent(),this._drawEvent(),this._sketchEvent(),t&&this._drawTool._addFeatureToLayer(e,this._layer))}},{key:"stop",value:function(){this._drawTool&&(this.view.cursor=this._drawTool.cursorStyle,this._drawTool.cursorStyle=null,this.view._mapActionControl("drag-pan",!0),this._drawTool.stop(),this._drawTool._editMode===h.SketchEditMode.drawing&&this._remove(),this._fireCancelDrawEvent())}},{key:"remove",value:function(){this._drawTool&&this._fireRemoveEvent(this._drawTool.sketchStage.entityGraphic),this._remove()}},{key:"_remove",value:function(){this._drawTool&&(this._drawTool._clearDrawToolSketchStage(),this._drawTool.removeDrawTool(),this._drawTool=null),this._addOrUpdateTipText((0,E.getTipTextByEditOption)("before-edit",this._tipText,this._editOption),this._sketchInnerLayer)}},{key:"update",value:function(e,t){this._drawTool.updateFeature(e,t)}},{key:"_addGeometry",value:function(e,t){this._drawTool.addFeatureByGeometry(e,void 0,void 0,t)}},{key:"addVertex",value:function(e,t){return this._drawTool.addVertex(e,t)}},{key:"updateVertex",value:function(e,t){return this._drawTool.updateVertex(e,t)}},{key:"removeVertex",value:function(e){return this._drawTool.removeVertex(e)}},{key:"getSketchDataType",value:function(){return this._sketchDataType}},{key:"setSketchStyle",value:function(e){var t=this;if(this.sketchStyle=e.clone(),this._drawTool&&this._drawTool.sketchStage){this._drawTool.sketchStyle=e;var r=this._drawTool.sketchStage;if(!(0,p.isNull)(r.entityGraphic))if(r.entityGraphic.geometry.type===d.GeometryType.point)if(this._drawTool._sketchDataType===h.SketchDataType.text){var n=r.entityGraphic.symbol.text;r.entityGraphic.symbol=e._textStyle,r.entityGraphic.symbol.text=n}else r.entityGraphic.symbol=e._vertexStyle;else r.entityGraphic.geometry.type===d.GeometryType.lineString?r.entityGraphic.symbol=e._lineStyle:r.entityGraphic.geometry.type===d.GeometryType.polygon?r.entityGraphic.symbol=e._fillStyle:r.entityGraphic.geometry.type===d.GeometryType.circle?r.entityGraphic.symbol=e._fillStyle:r.entityGraphic.geometry.type===d.GeometryType.extent&&(r.entityGraphic.symbol=e._fillStyle);(0,p.isNull)(r.vertexGraphics)||r.vertexGraphics.forEach(function(t){t.symbol=e._vertexStyle}),(0,p.isNull)(r.midVertexGraphics)||r.midVertexGraphics.forEach(function(t){t.symbol=e._selectVertexStyle}),(0,p.isNull)(r.selectBoxGraphics)||r.selectBoxGraphics.forEach(function(r){if(t._drawTool._sketchDataType===h.SketchDataType.text){var n=r.symbol.text;r.symbol=e._selectTextStyle,r.symbol.text=n}else t._drawTool._sketchDataType===h.SketchDataType.point?r.symbol=e._selectVertexStyle:r.symbol=e._selectBoxStyle}),(0,p.isNull)(r.selectBoxVertexGraphics)||r.selectBoxVertexGraphics.forEach(function(t){t.symbol=e._selectBoxVertexStyle})}(0,p.isNull)(this._tipTextGraphics)||this._tipTextGraphics.forEach(function(t){var r=t.symbol.text;t.symbol=e._tipTextStyle,t.symbol.text=r})}},{key:"getSketchStyle",value:function(){return this.sketchStyle}},{key:"setLayer",value:function(e){((0,p.isNull)(e)&&!(0,p.isNull)(this._sketchOuterLayer)||!(0,p.isNull)(e)&&e.id!==this._layer.id)&&((0,p.isNull)(this._sketchOuterLayer)&&this._remove(),this._getGraphicsLayer(this._sketchInnerLayer).removeAll(),this._addOrUpdateTipText((0,E.getTipTextByEditOption)("before-edit",this._tipText,this._editOption),this._sketchInnerLayer),this.stop(),this.snapAndReferGeometries=[],this._drawTool=null,this._drawTools=[],this._sketchDataType=null,this._undoRedoManager=new T.default,this._editorState=null,(0,p.isNull)(e)?(this._sketchOuterLayer=void 0,this._layer=this._sketchInnerLayer):(this._sketchOuterLayer=e,this._layer=this._sketchOuterLayer))}},{key:"getLayer",value:function(){return this._externalLayer}},{key:"setIsShowTip",value:function(e){this._isShowTip=e,e?(this._moveTipText(),this._tipTextGraphics&&this._tipTextGraphics.length>0&&(this._tipTextGraphics[0].visible=!0)):(this._stopTipText(),this._tipTextGraphics&&this._tipTextGraphics.length>0&&(this._tipTextGraphics[0].visible=!1))}},{key:"getLayer",value:function(){return this._externalLayer}},{key:"union",value:function(e){for(var t=this,r=this,n=0;n<e.length;n++)if(!y.GeometryEngine.isSimple(e[n]))return p.Log.error("输入的几何不符合拓扑规范!");var i=h.Projection.project(this._sketchTopologyTool.unionPolygons(e),this._spatialReference);if("Polygon"===i.type){var o=r.view.allLayerViews.items.filter(function(e){return e.id===r._layer.id});return this.start(i),o.length>0?(this._selectEvent(),this._drawEvent(),this._sketchEvent()):r._layer.once("layerview-created",function(){r._selectEvent(),r._drawEvent(),t._sketchEvent()}),i}p.Log.error("合并结果不符合规范,请检查输入的几何!")}},{key:"split",value:function(e,r){var n=null,i=this;if(e instanceof y.Polygon)n=e;else{if(!(e instanceof t&&e.drawTool._sketchDataType===h.SketchDataType.polygon))return void p.Log.error("传入对象不符合要求,请检查");n=e.sketchStage.entityGraphic}return function(e,t){for(var r=1;r<e.coordinates[0].length;r++)e.coordinates[0][r][0]===e.coordinates[0][r-1][0]&&e.coordinates[0][r][1]===e.coordinates[0][r-1][1]&&(e.coordinates[0].splice(r,1),r--);var n=i._sketchTopologyTool.splitPolygonByPolyline(e,t);return n.length>0&&(i.view.allLayerViews.items.filter(function(e){return e.id===i._layer.id}).length>0?n.forEach(function(e){e=h.Projection.project(e,i._spatialReference),i.start(e)}):i._layer.once("layerview-created",function(){n.forEach(function(e){e=h.Projection.project(e,i._spatialReference),i.start(e)})})),n}(n,r)}},{key:"drawPolylineToPolygon",value:function(e){var t,r=this,n=this;this._drawTool&&(this._drawTool._removeEditGraphics(),this._drawTool._stopAll(),this._drawTools=[],this._undoRedoManager.reset()),this._drawTool=new I.default((t={view:this.view,layer:this._layer,sketchInnerLayer:this._sketchInnerLayer},(0,i.default)(t,"layer",this._sketchInnerLayer),(0,i.default)(t,"undoRedoManager",this._undoRedoManager),(0,i.default)(t,"elevationInfo",this.elevationInfo),(0,i.default)(t,"_sketchEditor",this),(0,i.default)(t,"snapAndReferGeometries",e),(0,i.default)(t,"arcType",this.arcType),(0,i.default)(t,"_getCenterCoordinate",this._getCenterCoordinate),t)),this._drawTool.start(),this._drawTool.on("drawn",function(e){e.geometry&&(e.geometry instanceof y.Polygon?n.start(e.geometry):e.geometry.coordinates.forEach(function(e){var t=new y.Polygon({coordinates:e,spatialReference:r._spatialReference});n.start(t)}))})}},{key:"undo",value:function(){if(this._editable){var e=this._undoRedoManager.undo();return e?(this._updateByStage(e,"undo"),this._fireUndoEvent(e.entityGraphic),e.entityGraphic.geometry):null}}},{key:"redo",value:function(){if(this._editable){var e=this._undoRedoManager.redo();return e?(this._updateByStage(e,"redo"),this._fireRedoEvent(e.entityGraphic),e.entityGraphic.geometry):null}}},{key:"canUndo",value:function(){return this._undoRedoManager.canUndo()}},{key:"canRedo",value:function(){return this._undoRedoManager.canRedo()}},{key:"select",value:function(e){var t="string"==typeof e?e:e.id,r=this._layer._getFeatureById(t);if(!(0,p.isNull)(r)){var n=this._getCurDrawTool(this._layer.id,t);if(n._editMode===h.SketchEditMode.NONE){if(!(0,p.isNull)(n)&&(0,p.isNull)(n._parent)&&n._editMode===h.SketchEditMode.none){this.fire("selected",{isSelected:!0,selectedDrawTool:this._drawTool,selectedGeometry:this._drawTool.sketchStage.entityGraphic.geometry},this);var i=new P.SketchEditorEvent({type:h.SketchEditorEventType.update,target:this,toolEventInfo:null,state:h.SketchEditorState.start,feature:this._drawTool.sketchStage.entityGraphic,geometry:this._drawTool.sketchStage.entityGraphic.geometry});this.fire(h.SketchEditorEventType.update,i)}n.hitTestFeature(n.sketchStage.entityGraphic,event)}}}},{key:"destroy",value:function(){this._removeSketchEvent(),this.stop(),this._remove(),this._removeTipText(this._sketchInnerLayer),this.view=null,this._spatialReference=null,this._layer=null,this._sketchOuterLayer=null,this._sketchInnerLayer.removeAll(),this._sketchInnerLayer=null,this.sketchStyle=new g.default,this._editable=!0,this.isSimple=!1,this.snapOption={},this.snapAndReferGeometries=[],this.measureOption=null,this._drawTool=null,this._drawTools=[],this._sketchDataType=null,this._sketchTopologyTool={},this._undoRedoManager=new T.default,this._editorState=null,this._sketchSnappingTool=null}},{key:"_updateByStage",value:function(e,t){var r=this;this._drawTool.sketchStage.getAllFeatures().forEach(function(e){r._drawTool._removeFeatureFromLayer(e,r._sketchInnerLayer)}),this._drawTool._removeFeatureFromLayer(this._drawTool.sketchStage.entityGraphic,this._layer),this._drawTool._setSketchStage(e),e.getAllFeatures().forEach(function(n){var i=r._updateDrawToolByFeature(n);if(i)if(i._editMode===h.SketchEditMode.drawing)if(n.id===e.entityGraphic.id){var o=n.clone(),a=[],s=i._currentMovePoint;if(s){if(i.vertexNum&&("undo"===t?i.vertexNum--:"redo"===t&&i.vertexNum++),"Polygon"===o.geometry.type){a=o.geometry.coordinates[0];var u=i.vertexNum||0;1===u?(a[1]=s.coordinates,a[2]=s.coordinates):2===u||1===u?a[2]=s.coordinates:a.splice(a.length-1,0,s.coordinates)}else"LineString"===o.geometry.type&&(a=o.geometry.coordinates,1===i.vertexNum?a[1]=s.coordinates:a[a.length]=s.coordinates);i.sketchStage.entityGraphic=o,i._addFeatureToLayer(o,r._layer)}}else i._addFeatureToLayer(n,r._sketchInnerLayer);else n.id===e.entityGraphic.id?i._addFeatureToLayer(n,r._layer):i._addFeatureToLayer(n,r._sketchInnerLayer)})}},{key:"_updateDrawToolByFeature",value:function(e){for(var t=null,r=this._drawTool._drawTools,n=0;n<r.length;n++)if(r[n].sketchStage.entityGraphic.id===e.id){r[n].sketchStage.entityGraphic=e,t=r[n];break}return t}},{key:"_selectEvent",value:function(){var e=this;this._drawTool.on("selected",function(t){var r=t.isSelected?e:null;e.fire("selected",{selectedSketch:r,isSelected:t.isSelected},e)})}},{key:"_drawEvent",value:function(){var e=this;this._drawTool.on("drawn",function(t){e.fire("drawn",{geometry:t.geometry,feature:t.feature},e)}),this._drawTool.on("drawn-vertex",function(t){e.fire("drawn-vertex",{geometry:t.geometry,feature:t.feature},e)})}},{key:"_sketchEvent",value:function(){var e=this;this._drawTool&&(this._drawTool.on(h.SketchEditorEventType.create,function(t){t.state===h.SketchEditorState.complete&&(e._drawTool&&(e._drawTool.state="drawn",e._bindHit(e._drawTool,void 0,e._layer),e._drawTool._stopAll(),e._drawTool=null),e._undoRedoManager.reset(),e._editable?e._isAddTip&&e._addOrUpdateTipText((0,E.getTipTextByEditOption)("before-edit",e._tipText,e._editOption),e._sketchInnerLayer):e._tipTextGraphics[0].visible=!1),e.fire(h.SketchEditorEventType.create,t,e)}),this._drawTool.on(h.SketchEditorEventType.update,function(t){t.state===h.SketchEditorState.complete&&(e._undoRedoManager.reset(),e._drawTool&&(e._drawTool=null)),e.fire(h.SketchEditorEventType.update,t,e)}))}},{key:"_addFeatureToCustomGraphicLayer",value:function(e){this._layer&&(this.view._map.findLayerById(this._layer.id)&&this._sketchInnerLayer.remove(e),this._layer.graphics.find(function(t){return e.id===t.id})?(this._layer.remove(e),this._layer.add(e)):this._layer.add(e))}},{key:"_removeFeatureToCustomGraphicLayer",value:function(e){this._layer&&this.view._map.findLayerById(this._layer.id)&&this._layer.graphics.find(function(t){return e.id===t.id})&&(this._layer.remove(e),this._sketchInnerLayer.add(e))}},{key:"_removeSketchEvent",value:function(){this.off(h.SketchEditorEventType.create),this.off(h.SketchEditorEventType.update),this.off(h.SketchEditorEventType.undo),this.off(h.SketchEditorEventType.redo),this.off(h.SketchEditorEventType.remove),this.off("drawn"),this.off("selected"),this._removeHitTestSketchEvent()}},{key:"_removeHitTestSketchEvent",value:function(){}},{key:"_fireUndoEvent",value:function(e){var t=new P.SketchEditorEvent({type:h.SketchEditorEventType.undo,feature:e,geometry:e.geometry});this.fire(h.SketchEditorEventType.undo,t,this)}},{key:"_fireRedoEvent",value:function(e){var t=new P.SketchEditorEvent({type:h.SketchEditorEventType.redo,feature:e,geometry:e.geometry});this.fire(h.SketchEditorEventType.redo,t,this)}},{key:"_fireRemoveEvent",value:function(e){var t=new P.SketchEditorEvent({type:h.SketchEditorEventType.remove,feature:e,geometry:e.geometry});this.fire(h.SketchEditorEventType.remove,t,this)}},{key:"_fireCancelDrawEvent",value:function(){var e=new P.SketchEditorEvent({type:h.SketchEditorEventType.create,eventInfo:null,state:h.SketchEditorState.cancel});this.fire(h.SketchEditorEventType.create,e,self)}},{key:"getGeometry",value:function(){return this._drawTool?this._drawTool.sketchStage.entityGraphic.geometry:null}},{key:"setSnapOption",value:function(e){this.snapOption=(0,o.default)(this.snapOption,e),this._sketchSnappingTool.setSnapOption(e)}},{key:"getSnapOption",value:function(){return this.snapOption}},{key:"setSnapAndReferGeometries",value:function(e){this.snapAndReferGeometries=e,this._drawTool&&this._drawTool.setSnapAndReferGeometries()}},{key:"getSnapAndReferGeometries",value:function(){return this.snapAndReferGeometries}},{key:"_bindHit",value:function(){}},{key:"_getGraphicsLayer",value:function(e){var t=void 0;return e instanceof L.GraphicsLayer?t=e:e instanceof L.GroupLayer&&(t=e.allLayers.find(function(e){return e instanceof L.GraphicsLayer})),t}},{key:"_getTipTextGraphicsLayer",value:function(e){var t=void 0;if(e instanceof L.GraphicsLayer)t=e;else if(e instanceof L.GroupLayer){var r=e.allLayers.filter(function(e){return e instanceof L.GraphicsLayer});r&&r.length>0&&(t=r._items[r.length-1])}return t}},{key:"_addOrUpdateTipText",value:function(e,t,r){if(e&&(t=t||this._sketchInnerLayer,this.sketchStyle&&this.sketchStyle.tipTextStyle)){var n=this.sketchStyle.tipTextStyle.clone();if(n.id=(0,p.getGUID)(),e.text&&(n.text=e.text),e.lineWidth&&(n.lineWidth=e.lineWidth),this._tipTextGraphics&&this._tipTextGraphics.length>0)this._tipTextGraphics[0].symbol=n;else{var i=new h.Feature({geometry:new y.Point({coordinates:[0,0]}),symbol:n,visible:!1}),o=this._getTipTextGraphicsLayer(t);o&&o.add(i),this._tipTextGraphics[0]=i,this._moveTipText(),r&&this._tipTextEventHandler(r)}}}},{key:"_moveTipText",value:function(){var e=this,t=function(t){if(t&&t.x&&t.y){var r={x:t.x,y:t.y},n=e.view.toMap({x:r.x,y:r.y});e._tipTextGraphics&&e._tipTextGraphics.length>0&&(e._tipTextGraphics[0].geometry=n)}};this._tipTextEventHandler=t,this.view.on(d.ViewEventType.pointerMove,t)}},{key:"_stopTipText",value:function(){this._tipTextEventHandler&&(this.view.off(d.ViewEventType.pointerMove,this._tipTextEventHandler),this._tipTextEventHandler=void 0)}},{key:"_removeTipText",value:function(e){if(e=e||this._sketchInnerLayer,this._tipTextGraphics&&this._tipTextGraphics.length>0){var t=this._getTipTextGraphicsLayer(e);t&&t.remove(this._tipTextGraphics[0]),this._stopTipText(),this._tipTextGraphics=[]}}}]),t}(h.Evented);(0,n.default)(N.prototype,{editable:{get:function(){return this._editable},set:function(e){this._editable=e}},isShowTip:{get:function(){return this._isShowTip},set:function(e){this.setIsShowTip(e)}},sketchDataType:{get:function(){return this._sketchDataType},set:function(e){this._sketchDataType=e}},layer:{get:function(){return this._sketchOuterLayer},set:function(e){this.setLayer(e)}}}),t.default=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=m(r(10)),i=m(r(3)),o=m(r(0)),a=m(r(2)),s=m(r(4)),u=m(r(7)),l=m(r(5)),c=r(8),f=r(9),h=m(r(52)),d=m(r(51)),p=(m(r(73)),m(r(45))),y=r(1),g=r(85);function m(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r._initEvent(),r.type="sketchPolylineDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r._tipText=r._getTipTextObject(),r._editOption=r._getEditOption(),r}return(0,l.default)(t,e),(0,a.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("vertexScale",this._processEvent),this.on("midVertexScale",this._processEvent),this.on("vertexMove",this._processEvent),this.on("midVertexAdd",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=c.SketchEditMode.drawing,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,i=!1,o=null,a=[],s=[];this.vertexNum=0;var u=[];this.cursorStyle=this.view.cursor,(0,y.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var l=this._getInteractiveDom(),h=this.extensionOptions&&this.extensionOptions.vertexNumber?this.extensionOptions.vertexNumber:null;this._setInitSnap(),this._fireStartDrawEvent();var p=function n(i){if(i&&i.x&&i.y){e._stopInitSnap(),clearTimeout(null);var a={x:i.x,y:i.y};(new Date).getTime(),e._editMode=c.SketchEditMode.drawing;var l;l=e._snapPoint?e._snapPoint:e.view.toMap({x:a.x,y:a.y});var p=e.vertexNum+1;if(1===p)s=[l.coordinates],(o=e._getFeature()).geometry.coordinates=[s[0],s[0]];else if(2===p){var g=o.geometry.coordinates[0];if(g&&g[0]===l.coordinates[0]&&g[1]===l.coordinates[1])return y.Log.info("相邻两顶点重复!");s=[o.geometry.coordinates[0],l.coordinates],o.geometry.coordinates=s,e._polylineGeometry=o}else{var m=(s=o.geometry.coordinates)[s.length-2];if(m&&m[0]===l.coordinates[0]&&m[1]===l.coordinates[1])return y.Log.info("相邻两顶点重复!");if(s[s.length-1]=l.coordinates,e._sketchEditor.isSimple){var v=new f.LineString({coordinates:s,spatialReference:e._spatialReference,extensionOptions:{arcType:e.arcType}});if(!f.GeometryEngine.isSimple(v))return e._fireUnsimpleDraw(),y.Log.info("该坐标构成的几何不符合拓扑规范!")}o.geometry.coordinates=s}if(e.vertexNum=p,h&&p>=h)e.view.off(c.ViewEventType.immediateClick,n);else{var _=new d.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});_.addFeature(l,void 0,void 0,e._sketchInnerLayer),e._drawTools.push(_);var S=_.sketchStage.entityGraphic;e.sketchStage.entityGraphic=o,e.sketchStage.vertexGraphics.push(S),o&&(r=t=!0),s.length>1&&u.push(function(e,t){return(e[1]-t[1])/(e[0]-t[0])}(s[s.length-1],s[s.length-2])),e.fire("drawn-vertex",{geometry:_.sketchStage.entityGraphic.geometry,feature:_.sketchStage.entityGraphic},self),e._fireDrawVertexEvent(o),e.undoRedoManager&&e.undoRedoManager.addProcess("add-vertex",e.sketchStage,e._editMode)}}},g=!0,m=function(u){if(u&&u.x&&u.y&&t&&!i){clearTimeout(null),i=!0,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var c={x:u.x,y:u.y},f=e.view.toMap({x:c.x,y:c.y});o=e.sketchStage.entityGraphic;var d=h&&e.vertexNum===h?e.vertexNum-1:e.vertexNum;s=1===d?[o.geometry.coordinates[0]]:o.geometry.coordinates.slice(0,o.geometry.coordinates.length-1),d>=1&&(e._snapPoint=e.getSnapGraphics(f,s)),e._snapPoint&&(f=e._snapPoint),e._currentMovePoint=f,1===d?o.geometry.coordinates[1]=f.coordinates:d>1&&(r?(o.geometry.coordinates.push(f.coordinates),r=!1):o.geometry.coordinates[o.geometry.coordinates.length-1]=f.coordinates),o.geometry._pixelCoords=a,o.geometry.coordinates=JSON.parse((0,n.default)(o.geometry.coordinates)),g&&(e._addFeatureToLayer(o,e.layer),g=!1),i=!1;var p=e._getInteractiveDom();l=l.concat(p),e._removeInteractiveStyle(p),e._fireChangeCursorEvent(o)}},v=function(t){return clearTimeout(null),clearTimeout(null),(o=e.sketchStage.entityGraphic)&&e._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(o.geometry)?(e._fireUnsimpleDraw(),y.Log.info("该坐标构成的几何不符合拓扑规范!")):e.vertexNum<2&&e.sketchStage.entityGraphic?y.Log.info("线几何顶点少于两个,不符合规范!"):(s=[],a=[],e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=c.SketchEditMode.none,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(l),e.fire("drawn",{geometry:o.geometry,feature:o},self),e._fireStopDrawEvent(o),e.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.vertexNum=0,e.sketchStage.vertexGraphics=[],e._currentMovePoint=void 0,e.undoRedoManager._initDrawProcess(),t.native&&t.native.preventDefault&&t.native.preventDefault(),t.innerViewerEvent&&t.innerViewerEvent.preventDefault&&t.innerViewerEvent.preventDefault(),e.view._mapActionControl("double-click-zoom",!0),void e.view._mapActionControl("video-map-active",!1))};this._drawEventHandlers.push(p,m,v),this.view.on(c.ViewEventType.immediateClick,p),this.view.on(c.ViewEventType.pointerMove,m),this.view.on(c.ViewEventType.doubleClick,v)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=new c.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[1,1]]);var t=new f.LineString({coordinates:e,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),r=this.sketchStyle.lineStyle.clone();return r.id=(0,y.getGUID)(),new c.Feature({geometry:t,symbol:r,elevationInfo:this.elevationInfo})}},{key:"selectFeature",value:function(e){(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"selectFeature",this).call(this,e)}},{key:"selectFeatureVertex",value:function(e){var t=this;!this._parent&&this._isAddTip&&this._updateTipText((0,g.getTipTextByEditOption)("edit-vertex",this._tipText,this._editOption),this._sketchInnerLayer),this._clearEditGraphics(1);var r=[],n=[];e.geometry.coordinates.forEach(function(i,o){var a=new d.default({view:t.view,layer:t.layer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t}),s=new f.Point({coordinates:i,spatialReference:t._spatialReference});if(t._drawTools.push(a),a.addFeature(s,void 0,{vertexIndex:o},t._sketchInnerLayer),r.push(a),t.sketchStage.vertexGraphics.push(a.sketchStage.entityGraphic),o>0){var u=new d.default({view:t.view,layer:t.layer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});n.push(u);var l,c=e.geometry.coordinates[o-1],h=t._getCenterCoordinate(i,c);l=new f.Point({coordinates:h,spatialReference:t._spatialReference}),t._drawTools.push(u),u.addFeature(l,void 0,{vertexIndex:o-1,type:"midVertex"},t._sketchInnerLayer),t.sketchStage.midVertexGraphics.push(u.sketchStage.entityGraphic)}});var i=r.concat(n);this._otherDrawTools=this._otherDrawTools?this._otherDrawTools.concat(i):i,this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage,this.undoRedoManager.addProcess)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type?this._handlerMidVertexScaleEvent(e):"vertexMove"===e.type?this._handlerVertexMoveEvent(e):"midVertexAdd"===e.type&&this._handlerMidVertexAddEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this,r=[];this.sketchStage.entityGraphic.geometry.coordinates.forEach(function(n){r.push(t.getPanCoordinates(n,e.deltaPosition.x,e.deltaPosition.y))});var n=new f.LineString({coordinates:r,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});this.sketchStage.entityGraphic.geometry=n,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new f.LineString({coordinates:i,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}else"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_handlerMidVertexScaleEvent",value:function(e){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new f.LineString({coordinates:i,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_resetSelectBoxDirection",value:function(){var e=this,t=this.sketchStage.entityGraphic.geometry.extent;this.sketchStage.selectBoxVertexGraphics.forEach(function(r){r.attributes&&("ne"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymax]:"se"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymin]:"sw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymin]:"nw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymax]:"e"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]):"s"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymin],[t.xmin,t.ymin]):"w"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]):"n"===r.attributes.direction&&(r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymax],[t.xmax,t.ymax])))})}},{key:"_handlerVertexMoveEvent",value:function(e){this.sketchStage.currentVertexIndex=e.vertexIndex;var t=this.sketchStage.entityGraphic,r=t.geometry.coordinates,i=JSON.parse((0,n.default)(r));i[e.vertexIndex]=e.movePoint.coordinates;var o=new f.LineString({coordinates:i,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(o))return this._fireUnsimpleUpdate(),y.Log.info("该坐标构成的几何不符合拓扑规范!");if(t.geometry=o,this._otherDrawTools){if(0===e.vertexIndex){var a=this.sketchStage.midVertexGraphics[e.vertexIndex],s=i[e.vertexIndex],u=i[e.vertexIndex+1];a.geometry.coordinates=this._getCenterCoordinate(s,u),a.geometry=new f.Point({coordinates:a.geometry.coordinates,spatialReference:this._spatialReference})}else if(e.vertexIndex===i.length-1){var l=this.sketchStage.midVertexGraphics[e.vertexIndex-1],c=i[e.vertexIndex-1],h=i[e.vertexIndex];l.geometry.coordinates=this._getCenterCoordinate(c,h),l.geometry=new f.Point({coordinates:l.geometry.coordinates,spatialReference:this._spatialReference})}else{var d=this.sketchStage.midVertexGraphics[e.vertexIndex],p=this.sketchStage.midVertexGraphics[e.vertexIndex-1],g=i[e.vertexIndex-1],m=i[e.vertexIndex],v=i[e.vertexIndex+1];d.geometry.coordinates=this._getCenterCoordinate(v,m),p.geometry.coordinates=this._getCenterCoordinate(g,m)}this.sketchStage.vertexGraphics[e.vertexIndex].geometry.coordinates=i[e.vertexIndex]}}},{key:"_handlerMidVertexAddEvent",value:function(e){var t=this;if("changeFeature"===e.action&&(this.sketchStage.entityGraphic.geometry.coordinates.splice(e.vertexIndex+1,0,e.point.coordinates),this.sketchStage.entityGraphic.geometry=new f.LineString({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}})),"moveMidVertex"===e.action){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));r[e.vertexIndex+1]=e.movePoint.coordinates;var i=new f.LineString({coordinates:r,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(i))return this._fireUnsimpleUpdate(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.currentVertexIndex=e.vertexIndex,this.sketchStage.entityGraphic.geometry.coordinates=r,this.sketchStage.midVertexGraphics[e.vertexIndex].geometry.coordinates=e.movePoint.coordinates}if("addVertex"===e.action){var o=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),a=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(a),a.addFeature(e.point,void 0,void 0,this._sketchInnerLayer),this.sketchStage.vertexGraphics.splice(e.vertexIndex+1,0,a.sketchStage.entityGraphic);var s,u=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex];this._getHight;var l=this._getCenterCoordinate(u,e.point.coordinates);s=new f.Point({coordinates:l,spatialReference:this._spatialReference});var c=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(c),c.addFeature(s,void 0,{type:"midVertex"},this._sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,c.sketchStage.entityGraphic);var h,g=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex+2];this._getHight;var m=this._getCenterCoordinate(g,e.point.coordinates);h=new f.Point({coordinates:m,spatialReference:this._spatialReference});var v=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(v),v.addFeature(h,void 0,{type:"midVertex"},this._sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e.vertexIndex+1,0,v.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools.forEach(function(e){e.sketchStage.entityGraphic.id===o&&t._removeFeatureFromLayer(e.sketchStage.entityGraphic,t._sketchInnerLayer)}),this._otherDrawTools.push(a),this._otherDrawTools.push(c),this._otherDrawTools.push(v)}}},{key:"addMidVertex",value:function(e,t){var r=new d.default;r.addPoint(t),this.sketchStage.midVertexGraphics=r}},{key:"addVertex",value:function(e,t){var r=null;if(--t>-1&&t<=this.sketchStage.midVertexGraphics.length+1){var i=[];if(t<=this.sketchStage.entityGraphic.geometry.coordinates.length-1){if((i=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates))).splice(t,0,e.coordinates),r=new f.LineString({coordinates:i,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=r;var o=void 0,a=void 0,s=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],[s.xmax,s.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var u=[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],this._getCenterCoordinate([s.xmax,s.ymax],[s.xmin,s.ymax]),this._getCenterCoordinate([s.xmax,s.ymin],[s.xmin,s.ymin]),this._getCenterCoordinate([s.xmax,s.ymax],[s.xmax,s.ymin]),this._getCenterCoordinate([s.xmin,s.ymax],[s.xmin,s.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=u[t]})}if(this.sketchStage.vertexGraphics.length>0&&(o=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(o),o.addFeatureByGeometry(e,void 0,void 0,this._sketchInnerLayer),this.sketchStage.vertexGraphics.splice(t,0,o.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})),this.sketchStage.midVertexGraphics.length>0){var l=-1,c=-1,h=null,g=null;if(0===t?(c=0,g=this.sketchStage.entityGraphic.geometry.coordinates[1]):t===this.sketchStage.midVertexGraphics.length+1?(c=this.sketchStage.midVertexGraphics.length-2,g=this.sketchStage.entityGraphic.geometry.coordinates[c]):(l=t-1,c=t+1,h=this.sketchStage.entityGraphic.geometry.coordinates[l],g=this.sketchStage.entityGraphic.geometry.coordinates[c]),l>-1){var m=new f.Point({coordinates:this._getCenterCoordinate(h,e.coordinates),spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[l].geometry.coordinates=m.coordinates}if(c>-1){var v=new f.Point({coordinates:this._getCenterCoordinate(g,e.coordinates),spatialReference:this._spatialReference});a=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(a),a.addFeatureByGeometry(v,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(t,0,a.sketchStage.entityGraphic)}this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})}o&&this._otherDrawTools.push(o),a&&this._otherDrawTools.push(a),this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireAddVertexEventByFun(o.sketchStage.entityGraphic,this._parent)}return r}}},{key:"updateVertex",value:function(e,t){var r=null;if(--t>-1){var i=this.sketchStage.entityGraphic.geometry.coordinates.length;if(t<i){var o=this.sketchStage.entityGraphic,a=JSON.parse((0,n.default)(o.geometry.coordinates));if(this.currentVertexIndex=t,r=e.coordinates,o.geometry=new f.LineString({coordinates:o.geometry.coordinates,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=r;var s=o.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],[s.xmax,s.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var u=[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],this._getCenterCoordinate([s.xmax,s.ymax],[s.xmin,s.ymax]),this._getCenterCoordinate([s.xmax,s.ymin],[s.xmin,s.ymin]),this._getCenterCoordinate([s.xmax,s.ymax],[s.xmax,s.ymin]),this._getCenterCoordinate([s.xmin,s.ymax],[s.xmin,s.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=u[t]})}if(this.sketchStage.vertexGraphics.length>0&&(this.sketchStage.vertexGraphics[t].geometry.coordinates=e.coordinates),this.sketchStage.midVertexGraphics.length>0){var l=a[t-1],c=a[t],h=a[t+1],d=-1,p=-1;if(0===t?d=t:t===i-1?p=t-1:(d=t,p=t-1),d>-1){var g=this.sketchStage.midVertexGraphics[d];g.geometry.coordinates=this._getCenterCoordinate(h,c),g.geometry=new f.Point({coordinates:g.geometry.coordinates,spatialReference:this._spatialReference})}if(p>-1){var m=this.sketchStage.midVertexGraphics[p];m.geometry.coordinates=this._getCenterCoordinate(l,c),m.geometry=new f.Point({coordinates:m.geometry.coordinates,spatialReference:this._spatialReference})}}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireUpdateVertexByFun(this.sketchStage.entityGraphic,this._parent)}return r}},{key:"removeVertex",value:function(e){var t=null;if(--e>-1){var r=this.sketchStage.entityGraphic.geometry.coordinates.length;if(r>2&&e<r){var i=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));if(i.splice(e,1),t=new f.LineString({coordinates:i,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(t))return this._fireUnsimpleUpdateByFun(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=t;var o=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[o.xmax,o.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var a=[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],this._getCenterCoordinate([o.xmax,o.ymax],[o.xmin,o.ymax]),this._getCenterCoordinate([o.xmax,o.ymin],[o.xmin,o.ymin]),this._getCenterCoordinate([o.xmax,o.ymax],[o.xmax,o.ymin]),this._getCenterCoordinate([o.xmin,o.ymax],[o.xmin,o.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=a[t]})}if(this.sketchStage.vertexGraphics.length>0){var s=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromLayer(this.sketchStage.vertexGraphics[e],this._sketchInnerLayer),this.sketchStage.vertexGraphics.splice(e,1),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==s)return e})}if(this.sketchStage.midVertexGraphics.length>0){var u=[],l=-1,c=-1;0===e?c=0:e===r-1?c=e-1:(u=[(t.coordinates[e-1][0]+t.coordinates[e][0])/2,(t.coordinates[e-1][1]+t.coordinates[e][1])/2],l=e-1,c=e),l>-1&&(this.sketchStage.midVertexGraphics[l].geometry=new f.Point({coordinates:u,spatialReference:this._spatialReference}));var h=this.sketchStage.vertexGraphics[c].id.toString();this._removeFeatureFromLayer(this.sketchStage.midVertexGraphics[c],this._sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(c,1),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==h)return e})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireRemoveVertexByFun(this.sketchStage.entityGraphic,this._parent)}return t}}]),t}(h.default);t.default=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(3)),i=p(r(0)),o=p(r(2)),a=p(r(4)),s=p(r(7)),u=p(r(5)),l=r(8),c=r(9),f=p(r(52)),h=(p(r(51)),p(r(73)),p(r(45)),p(r(71))),d=r(1);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.type="sketchCircleDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._initEvent(),r._tipText=r._getTipTextObject(),r._editOption=r._getEditOption(),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("circleVertexScale",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=l.SketchEditMode.drawing,this.view._mapActionControl("drag-pan",!1),this.view._mapActionControl("video-map-active",!0);var t=null,r=0,n=null;this.cursorStyle=this.view.cursor,(0,d.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var i=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var o=function(o){if(clearTimeout(null),e._stopInitSnap(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),0===o.button)if("start"===o.action)n=e._snapPoint?e._snapPoint:n||e.view.toMap(o.origin),e._fireDrawVertexEvent();else if("update"===o.action){var a=e.view.toMap({x:o.x,y:o.y});e._snapPoint=e.getSnapGraphics(a),e._snapPoint&&(a=e._snapPoint),r=h.default.planarLength(new c.LineString({coordinates:[n.coordinates,a.coordinates],spatialReference:e._spatialReference})),t?t.geometry.radius=r:(t=e._getFeature(n,r),e._addFeatureToLayer(t,e.layer),e.sketchStage.entityGraphic=t);var s=e._getInteractiveDom();i=i.concat(s),e._removeInteractiveStyle(s),e._fireChangeCursorEvent(t)}else"end"===o.action&&(e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),n=null,e._editMode=l.SketchEditMode.none,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(i),e.fire("drawn",{geometry:t.geometry,feature:t},self),e._fireDrawVertexEvent(t),e._fireStopDrawEvent(t),e.view._mapActionControl("drag-pan",!0),e.view._mapActionControl("video-map-active",!1))};this._drawEventHandlers.push(o),this.view.on(l.ViewEventType.drag,o)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=new l.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e,t){e?e instanceof Array?e=new c.Point({coordinates:e,spatialReference:this._spatialReference}):e instanceof c.Point||(e=new c.Point({coordinates:[0,0],spatialReference:this._spatialReference})):e=new c.Point({coordinates:[0,0],spatialReference:this._spatialReference}),t=void 0!==t?t:0;var r=this._spatialReference.isGeographic?l.RadiusUnit.degrees:l.RadiusUnit.meters,n=new c.Circle({center:e,radius:t,radiusUnit:r,spatialReference:this._spatialReference}),i=this.sketchStyle.fillStyle.clone();return i.id=(0,d.getGUID)(),new l.Feature({geometry:n,symbol:i,elevationInfo:this.elevationInfo})}},{key:"selectFeature",value:function(e){(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"selectFeature",this).call(this,e)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"circleVertexScale"===e.type&&this._handlerCircleVertexScaleEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this.sketchStage.entityGraphic.geometry.center;this.sketchStage.entityGraphic.geometry.center=this.getPanCoordinates(t,e.deltaPosition.x,e.deltaPosition.y),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerCircleVertexScaleEvent",value:function(e){if("scale"===e.action){var t=h.default.planarLength(new c.LineString({coordinates:[this.sketchStage.entityGraphic.geometry.center,[e.movePoint.coordinates[0],this.sketchStage.entityGraphic.geometry.center[1]]],spatialReference:this._spatialReference})),r=this._spatialReference.isGeographic?l.RadiusUnit.degrees:l.RadiusUnit.meters,n=new c.Circle({center:this.sketchStage.entityGraphic.geometry.center,radius:t,radiusUnit:r,spatialReference:this._spatialReference});this.sketchStage.entityGraphic.geometry=n,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}else"stop"===e.action&&(this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_resetSelectBoxDirection",value:function(){var e=this,t=this.sketchStage.entityGraphic.geometry.extent;this.sketchStage.selectBoxVertexGraphics.forEach(function(r){if(r.attributes)if("e"===r.attributes.direction){var n=e._sketchEditor._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]);r.geometry.coordinates[0]===n[0]&&r.geometry.coordinates[1]===n[1]&&(r.attributes.direction="w")}else if("w"===r.attributes.direction){var i=e._sketchEditor._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]);r.geometry.coordinates[0]===i[0]&&r.geometry.coordinates[1]===i[1]&&(r.attributes.direction="e")}})}}]),t}(f.default);t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(7)),u=d(r(5)),l=r(8),c=r(9),f=d(r(52)),h=(d(r(51)),d(r(73)),d(r(45)),r(1));function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.type="sketchExtentDrawTool",r._initEvent(),r._drawTools=[r],r._otherDrawTools=[],r._tipText=r._getTipTextObject(),r._editOption=r._getEditOption(),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("vertexScale",this._processEvent),this.on("midVertexScale",this._processEvent),this.on("vertexMove",this._processEvent),this.on("midVertexAdd",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=l.SketchEditMode.drawing,this.view._mapActionControl("drag-pan",!1),this.view._mapActionControl("video-map-active",!0);var t=null,r=null;this.cursorStyle=this.view.cursor,(0,h.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var n=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var i=function(i){if(clearTimeout(null),e.view.off(l.ViewEventType.pointerMove,e._handlerInitMouseMove),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),0===i.button)if("start"===i.action)r=e._snapPoint?e._snapPoint:r||e.view.toMap(i.origin),e._fireDrawVertexEvent();else if("update"===i.action){var o=e.view.toMap({x:i.x,y:i.y});e._snapPoint=e.getSnapGraphics(o),e._snapPoint&&(o=e._snapPoint);var a=Math.min(r.coordinates[0],o.coordinates[0]),s=Math.min(r.coordinates[1],o.coordinates[1]),u=Math.max(r.coordinates[0],o.coordinates[0]),c=Math.max(r.coordinates[1],o.coordinates[1]);t?(t.geometry.xmin=a,t.geometry.ymin=s,t.geometry.xmax=u,t.geometry.ymax=c):(t=e._getFeature(a,s,u,c),e._addFeatureToLayer(t,e.layer),e.sketchStage.entityGraphic=t);var f=e._getInteractiveDom();n=n.concat(f),e._removeInteractiveStyle(f),e._fireChangeCursorEvent(t)}else"end"===i.action&&(e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=l.SketchEditMode.none,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(n),e.fire("drawn",{geometry:t.geometry,feature:t},self),e._fireDrawVertexEvent(t),e._fireStopDrawEvent(t),e.view._mapActionControl("drag-pan",!0),e.view._mapActionControl("video-map-active",!1))};this._drawEventHandlers.push(i),this.view.on(l.ViewEventType.drag,i)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=new l.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e,t,r,n){e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:0,n=void 0!==n?n:0;var i=new c.Extent({xmin:e,ymin:t,xmax:r,ymax:n,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),o=this.sketchStyle.fillStyle.clone();return o.id=(0,h.getGUID)(),new l.Feature({geometry:i,symbol:o,elevationInfo:this.elevationInfo})}},{key:"selectFeature",value:function(e){(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"selectFeature",this).call(this,e)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type&&this._handlerMidVertexScaleEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this.sketchStage.entityGraphic.geometry;t.xmin+=e.deltaPosition.x,t.ymin+=e.deltaPosition.y,t.xmax+=e.deltaPosition.x,t.ymax+=e.deltaPosition.y,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){var t=this.sketchStage.entityGraphic.geometry;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=[[t.xmin,t.ymin],[t.xmax,t.ymax]];this.sketchStage.entityGraphic.attributes.lastCoordinates=r}this.sketchStage.entityGraphic.attributes=this.sketchStage.entityGraphic.attributes?this.sketchStage.entityGraphic.attributes:{};var n=this.getScaleCoordinates([[t.xmin,t.ymin],[t.xmax,t.ymax]],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t.xmin=n[0][0],t.ymin=n[0][1],t.xmax=n[1][0],t.ymax=n[1][1],this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}else"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}))}},{key:"_handlerMidVertexScaleEvent",value:function(e){if("scale"===e.action){var t=this.sketchStage.entityGraphic.geometry;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=[[t.xmin,t.ymin],[t.xmax,t.ymax]];this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getMidScaleCoordinates([[t.xmin,t.ymin],[t.xmax,t.ymax]],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t.xmin=n[0][0],t.ymin=n[0][1],t.xmax=n[1][0],t.ymax=n[1][1],this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}else"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}))}}]),t}(f.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(10)),i=g(r(3)),o=g(r(0)),a=g(r(2)),s=g(r(4)),u=g(r(7)),l=g(r(5)),c=r(8),f=r(9),h=g(r(52)),d=g(r(51)),p=(g(r(73)),g(r(45))),y=r(1);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r._initEvent(),r.type="sketchFreehandPolylineDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r._tipText=r._getTipTextObject(),r._editOption=r._getEditOption(),r}return(0,l.default)(t,e),(0,a.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("vertexScale",this._processEvent),this.on("midVertexScale",this._processEvent),this.on("vertexMove",this._processEvent),this.on("midVertexAdd",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=c.SketchEditMode.drawing,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,i=null,o=[],a=[];this.vertexNum=0;var s=[],u="";this.cursorStyle=this.view.cursor,(0,y.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var l=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var f=function r(n){if(n&&n.x&&n.y){e._stopInitSnap(),clearTimeout(null),e._editMode=c.SketchEditMode.drawing;var o,l={x:n.x,y:n.y};o=e._snapPoint?e._snapPoint:e.view.toMap({x:l.x,y:l.y}),e.vertexNum++,1===e.vertexNum?(a=[o.coordinates],(i=e._getFeature()).geometry.coordinates=[a[0],a[0]]):2===e.vertexNum?(a=[i.geometry.coordinates[0],o.coordinates],i.geometry.coordinates=a):((a=i.geometry.coordinates)[a.length-1]=o.coordinates,i.geometry.coordinates=a),"move"===u&&a[a.length-1][0]===a[a.length-2][0]&&a[a.length-1][1]===a[a.length-2][1]&&a.splice(a.length-1);var f=new d.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});f.addFeature(o,void 0,void 0,e._sketchInnerLayer);var h=f.sketchStage.entityGraphic;e.sketchStage.entityGraphic=i,e.sketchStage.vertexGraphics.push(h),t=!0,a.length>1&&s.push(function(e,t){return(e[1]-t[1])/(e[0]-t[0])}(a[a.length-1],a[a.length-2])),u="click",e.fire("drawn-vertex",{geometry:f.sketchStage.entityGraphic.geometry,feature:f.sketchStage.entityGraphic},self),e.view.off(c.ViewEventType.immediateClick,r)}},h=!0,p=function(s){if(s&&s.x&&s.y&&t&&!r){clearTimeout(null),r=!0,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var c={x:s.x,y:s.y},f=e.view.toMap({x:c.x,y:c.y});e.vertexNum>0&&(e._snapPoint=e.getSnapGraphics(f,[i.geometry.coordinates[0]])),e._snapPoint&&(f=e._snapPoint),e.vertexNum,a.push(f.coordinates),i.geometry.coordinates=a,e.vertexNum++,e.sketchStage.entityGraphic=i,i.geometry._pixelCoords=o,i.geometry.coordinates=JSON.parse((0,n.default)(a)),h&&(e._addFeatureToLayer(i,e.layer),h=!1),r=!1,u="move";var d=e._getInteractiveDom();l=l.concat(d),e._removeInteractiveStyle(d),e._fireDrawVertexEvent(i)}},g=function(n){clearTimeout(null),clearTimeout(null),a=[],o=[],e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=c.SketchEditMode.none,r=!1,t=!1,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(l),e.fire("drawn",{geometry:i.geometry,feature:i},self),e._fireStopDrawEvent(i),e.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.vertexGraphics=[],n.native&&n.native.preventDefault&&n.native.preventDefault(),n.innerViewerEvent&&n.innerViewerEvent.preventDefault&&n.innerViewerEvent.preventDefault(),e.view._mapActionControl("double-click-zoom",!0),e.view._mapActionControl("video-map-active",!1),u="double-click"};this._drawEventHandlers.push(f,p,g),this.view.on(c.ViewEventType.immediateClick,f),this.view.on(c.ViewEventType.pointerMove,this.debounce(p,5)),this.view.on(c.ViewEventType.doubleClick,g)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=new c.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[1,1]]);var t=new f.LineString({coordinates:e,spatialReference:this._spatialReference}),r=this.sketchStyle.lineStyle.clone();return r.id=(0,y.getGUID)(),new c.Feature({geometry:t,symbol:r,elevationInfo:this.elevationInfo})}},{key:"selectFeature",value:function(e){(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"selectFeature",this).call(this,e)}},{key:"startPanGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var i=t.mapPoint.coordinates[0],o=t.mapPoint.coordinates[1],a=null;a=c.Projection.project(new f.Point({coordinates:[i,o]}),this._spatialReference);var s=!0,u=setTimeout(function(){s=!1},200);this._parent&&this._parent._mapClickEvent&&this.view.off(c.ViewEventType.immediateClick,this._parent._mapClickEvent);var l=function(t){if(t&&t.x&&t.y&&!n&&r._startPan&&!r._editMode!==c.SketchEditMode.editGraphic&&!s){clearTimeout(null),n=!0;var i={x:t.x,y:t.y},o=r.view.toMap({x:i.x,y:i.y}),u=o.coordinates[0]-a.coordinates[0],l=o.coordinates[1]-a.coordinates[1];if(0!==u||0!==l){var h=[];e.geometry.coordinates[0].forEach(function(e){h.push(r.getPanCoordinates(e,u,l))});var d=new f.Polygon({coordinates:[h],spatialReference:r._spatialReference});a=o,r._dispatchEvent("pan",{deltaPosition:{x:u,y:l}},r),r.updateFeature(d,e),n=!1}else n=!1}},h=function e(){if(!r._editMode!==c.SketchEditMode.editGraphic&&r._startPan){if(s&&r._parent&&r._parent._editMode===c.SketchEditMode.editGraphic)return r._parent._editMode=c.SketchEditMode.editVertex,clearTimeout(u),r._parent.selectFeatureVertex(r._parent.sketchStage.entityGraphic),r._parent&&r._parent._mapClickEvent&&r.view.on(c.ViewEventType.immediateClick,r._parent._mapClickEvent),r._startPan=!1,r.view.off(c.ViewEventType.pointerMove,l),void r.view.off(c.ViewEventType.pointerUp,e);r._editMode=c.SketchEditMode.none,r._startPan=!1,r._enableMapDrag&&r._enableMapDrag(),r.view.off(c.ViewEventType.pointerMove,l),r.view.off(c.ViewEventType.pointerUp,e),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&(r._parent._preventFirstCall=!0,r.view.on(c.ViewEventType.immediateClick,r._parent._mapClickEvent))}};this._hitTestEventHandlers.push(l),this._hitTestEventHandlers.push(h),this.view.on(c.ViewEventType.pointerUp,h),this.view.on(c.ViewEventType.pointerMove,l)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type?this._handlerMidVertexScaleEvent(e):"vertexMove"===e.type?this._handlerVertexMoveEvent(e):"midVertexAdd"===e.type&&this._handlerMidVertexAddEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this,r=[];this.sketchStage.entityGraphic.geometry.coordinates.forEach(function(n){r.push(t.getPanCoordinates(n,e.deltaPosition.x,e.deltaPosition.y))});var n=new f.LineString({coordinates:r,spatialReference:this._spatialReference});this.sketchStage.entityGraphic.geometry=n,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new f.LineString({coordinates:i,spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}else"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_handlerMidVertexScaleEvent",value:function(e){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new f.LineString({coordinates:i,spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_resetSelectBoxDirection",value:function(){var e=this,t=this.sketchStage.entityGraphic.geometry.extent;this.sketchStage.selectBoxVertexGraphics.forEach(function(r){r.attributes&&("ne"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymax]:"se"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymin]:"sw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymin]:"nw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymax]:"e"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]):"s"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymin],[t.xmin,t.ymin]):"w"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]):"n"===r.attributes.direction&&(r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymax],[t.xmax,t.ymax])))})}},{key:"_handlerVertexMoveEvent",value:function(e){this.sketchStage.currentVertexIndex=e.vertexIndex;var t=this.sketchStage.entityGraphic,r=t.geometry.coordinates;if(t.geometry.coordinates[e.vertexIndex]=e.movePoint.coordinates,t.geometry=new f.LineString({coordinates:t.geometry.coordinates,spatialReference:this._spatialReference}),this._otherDrawTools)if(0===e.vertexIndex){var n=this.sketchStage.midVertexGraphics[e.vertexIndex],i=r[e.vertexIndex],o=r[e.vertexIndex+1];n.geometry.coordinates=[(o[0]+i[0])/2,(o[1]+i[1])/2],n.geometry=new f.Point({coordinates:n.geometry.coordinates,spatialReference:this._spatialReference})}else if(e.vertexIndex===r.length-1){var a=this.sketchStage.midVertexGraphics[e.vertexIndex-1],s=r[e.vertexIndex-1],u=r[e.vertexIndex];a.geometry.coordinates=[(s[0]+u[0])/2,(s[1]+u[1])/2],a.geometry=new f.Point({coordinates:a.geometry.coordinates,spatialReference:this._spatialReference})}else{var l=this.sketchStage.midVertexGraphics[e.vertexIndex],c=this.sketchStage.midVertexGraphics[e.vertexIndex-1],h=r[e.vertexIndex-1],d=r[e.vertexIndex],p=r[e.vertexIndex+1];l.geometry.coordinates=[(p[0]+d[0])/2,(p[1]+d[1])/2],l.geometry=new f.Point({coordinates:l.geometry.coordinates,spatialReference:this._spatialReference}),c.geometry.coordinates=[(h[0]+d[0])/2,(h[1]+d[1])/2],c.geometry=new f.Point({coordinates:c.geometry.coordinates,spatialReference:this._spatialReference})}}},{key:"_handlerMidVertexAddEvent",value:function(e){var t=this;if("changeFeature"===e.action&&(this.sketchStage.entityGraphic.geometry.coordinates.splice(e.vertexIndex+1,0,e.point.coordinates),this.sketchStage.entityGraphic.geometry=new f.LineString({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference})),"moveMidVertex"===e.action&&(this.sketchStage.currentVertexIndex=e.vertexIndex,this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex+1]=e.movePoint.coordinates,this.sketchStage.entityGraphic.geometry=new f.LineString({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference})),"addVertex"===e.action){var r=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),n=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(n),n.addFeature(e.point),this.sketchStage.vertexGraphics.splice(e.vertexIndex+1,0,n.sketchStage.entityGraphic);var i,o=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex],a=null;this._getHight&&(a=0),i=a?new f.Point({coordinates:[(o[0]+e.point.coordinates[0])/2,(o[1]+e.point.coordinates[1])/2,a],spatialReference:this._spatialReference}):new f.Point({coordinates:[(o[0]+e.point.coordinates[0])/2,(o[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var s=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(s),s.addFeature(i,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,s.sketchStage.entityGraphic);var u,l=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex+2],c=null;this._getHight&&(c=0),u=c?new f.Point({coordinates:[(l[0]+e.point.coordinates[0])/2,(l[1]+e.point.coordinates[1])/2,c],spatialReference:this._spatialReference}):new f.Point({coordinates:[(l[0]+e.point.coordinates[0])/2,(l[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var h=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(h),h.addFeature(u,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(e.vertexIndex+1,0,h.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools.forEach(function(e){e.sketchStage.entityGraphic.id===r&&t._removeFeatureFromLayer(e.sketchStage.entityGraphic,t._sketchInnerLayer)}),this._otherDrawTools.push(n),this._otherDrawTools.push(s),this._otherDrawTools.push(h)}}},{key:"addMidVertex",value:function(e,t){var r=new d.default;r.addPoint(t),this.sketchStage.midVertexGraphics=r}},{key:"addVertex",value:function(e,t){if(--t>-1&&t<=this.sketchStage.midVertexGraphics.length+1){var r=[];if(t<=this.sketchStage.entityGraphic.geometry.coordinates.length-1){(r=this.sketchStage.entityGraphic.geometry.coordinates).splice(t,0,e.coordinates),this.sketchStage.entityGraphic.geometry=new f.LineString({coordinates:r,spatialReference:this._spatialReference});var n=void 0,i=void 0,o=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[o.xmax,o.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var a=[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[(o.xmax+o.xmin)/2,o.ymax],[(o.xmax+o.xmin)/2,o.ymin],[o.xmax,(o.ymax+o.ymin)/2],[o.xmin,(o.ymax+o.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=a[t]})}if(this.sketchStage.vertexGraphics.length>0&&(n=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(n),n.addFeatureByGeometry(e),this.sketchStage.vertexGraphics.splice(t,0,n.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})),this.sketchStage.midVertexGraphics.length>0){var s=-1,u=-1,l=null,c=null;if(0===t?(u=0,c=this.sketchStage.entityGraphic.geometry.coordinates[1]):t===this.sketchStage.midVertexGraphics.length+1?(u=this.sketchStage.midVertexGraphics.length-2,c=this.sketchStage.entityGraphic.geometry.coordinates[u]):(s=t-1,u=t+1,l=this.sketchStage.entityGraphic.geometry.coordinates[s],c=this.sketchStage.entityGraphic.geometry.coordinates[u]),s>-1){var h=new f.Point({coordinates:[(l[0]+e.coordinates[0])/2,(l[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[s].geometry.coordinates=h.coordinates}if(u>-1){var y=new f.Point({coordinates:[(c[0]+e.coordinates[0])/2,(c[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});i=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(i),i.addFeatureByGeometry(y,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(t,0,i.sketchStage.entityGraphic)}this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})}n&&this._otherDrawTools.push(n),i&&this._otherDrawTools.push(i),this.undoRedoManager.addProcess("update",this.sketchStage)}return null}}},{key:"updateVertex",value:function(e,t){var r=null;if(--t>-1){var n=this.sketchStage.entityGraphic.geometry.coordinates.length;if(t<n){var i=this.sketchStage.entityGraphic,o=i.geometry.coordinates;i.geometry.coordinates=o,this.currentVertexIndex=t,o[t]=e.coordinates,i.geometry=new f.LineString({coordinates:i.geometry.coordinates,spatialReference:this._spatialReference}),r=i.geometry,this.sketchStage.entityGraphic.geometry=r;var a=i.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],[a.xmax,a.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var s=[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],[(a.xmax+a.xmin)/2,a.ymax],[(a.xmax+a.xmin)/2,a.ymin],[a.xmax,(a.ymax+a.ymin)/2],[a.xmin,(a.ymax+a.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=s[t]})}if(this.sketchStage.vertexGraphics.length>0&&(this.sketchStage.vertexGraphics[t].geometry.coordinates=e.coordinates),this.sketchStage.midVertexGraphics.length>0){var u=o[t-1],l=o[t],c=o[t+1],h=-1,d=-1;if(0===t?h=t:t===n-1?d=t-1:(h=t,d=t-1),h>-1){var p=this.sketchStage.midVertexGraphics[h];p.geometry.coordinates=[(c[0]+l[0])/2,(c[1]+l[1])/2],p.geometry=new f.Point({coordinates:p.geometry.coordinates,spatialReference:this._spatialReference})}if(d>-1){var y=this.sketchStage.midVertexGraphics[d];y.geometry.coordinates=[(u[0]+l[0])/2,(u[1]+l[1])/2],y.geometry=new f.Point({coordinates:y.geometry.coordinates,spatialReference:this._spatialReference})}}}this.undoRedoManager.addProcess("update",this.sketchStage)}return r}},{key:"removeVertex",value:function(e){var t=null;if(--e>-1){var r=this.sketchStage.entityGraphic.geometry.coordinates.length;if(r>2&&e<r){var n=this.sketchStage.entityGraphic.geometry.coordinates;n.splice(e,1),t=new f.LineString({coordinates:n,spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t;var i=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[i.xmax,i.ymax],[i.xmax,i.ymin],[i.xmin,i.ymin],[i.xmin,i.ymax],[i.xmax,i.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var o=[[i.xmax,i.ymax],[i.xmax,i.ymin],[i.xmin,i.ymin],[i.xmin,i.ymax],[(i.xmax+i.xmin)/2,i.ymax],[(i.xmax+i.xmin)/2,i.ymin],[i.xmax,(i.ymax+i.ymin)/2],[i.xmin,(i.ymax+i.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=o[t]})}if(this.sketchStage.vertexGraphics.length>0){var a=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromLayer(this.sketchStage.vertexGraphics[e],this.layer),this.sketchStage.vertexGraphics.splice(e,1),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==a)return e})}if(this.sketchStage.midVertexGraphics.length>0){var s=[],u=-1,l=-1;0===e?l=0:e===r-1?l=e-1:(s=[(t.coordinates[e-1][0]+t.coordinates[e][0])/2,(t.coordinates[e-1][1]+t.coordinates[e][1])/2],u=e-1,l=e),u>-1&&(this.sketchStage.midVertexGraphics[u].geometry=new f.Point({coordinates:s,spatialReference:this._spatialReference}));var c=this.sketchStage.vertexGraphics[l].id.toString();this._removeFeatureFromLayer(this.sketchStage.midVertexGraphics[l],this._sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(l,1),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==c)return e})}}this.undoRedoManager.addProcess("update",this.sketchStage)}return t}}]),t}(h.default);t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(10)),i=g(r(3)),o=g(r(0)),a=g(r(2)),s=g(r(4)),u=g(r(7)),l=g(r(5)),c=r(8),f=r(9),h=g(r(52)),d=g(r(51)),p=(g(r(73)),g(r(45))),y=r(1);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.type="sketchFreehandPolygonDrawTool",r._initEvent(),r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r.vertexNum=0,r._tipText=r._getTipTextObject(),r._editOption=r._getEditOption(),r}return(0,l.default)(t,e),(0,a.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("vertexScale",this._processEvent),this.on("midVertexScale",this._processEvent),this.on("vertexMove",this._processEvent),this.on("midVertexAdd",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=c.SketchEditMode.drawing,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,i=null,o=[],a=null,s=[];this.vertexNum=0;var u=null;this.cursorStyle=this.view.cursor,(0,y.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var l=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var f=function r(n){if(n&&n.x&&n.y){e._stopInitSnap(),clearTimeout(null);var o={x:n.x,y:n.y};if(!(a&&u&&o.x===a.x&&o.y===a.y&&(new Date).getTime()-u<200)){a=o,u=(new Date).getTime(),e._editMode=c.SketchEditMode.drawing;var l;l=e._snapPoint?e._snapPoint:e.view.toMap({x:o.x,y:o.y}),e.vertexNum++,1===e.vertexNum?(s=[l.coordinates],(i=e._getFeature()).geometry.coordinates=[[s[0],s[0],s[0],s[0]]],t=!1):2===e.vertexNum?s=[i.geometry.coordinates[0][0],i.geometry.coordinates[0][1]]:(s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2)).push(l.coordinates),e.sketchStage.entityGraphic=i;var f=new d.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});f.addFeature(l,void 0,void 0,e._sketchInnerLayer),e._drawTools.push(f);var h=f.sketchStage.entityGraphic;e.sketchStage.vertexGraphics.push(h),i&&(t=!0),e.fire("drawn-vertex",{geometry:f.sketchStage.entityGraphic.geometry,feature:f.sketchStage.entityGraphic},self),e.undoRedoManager&&e.undoRedoManager.addProcess("add-vertex",e.sketchStage,e._editMode),e.view.off(c.ViewEventType.immediateClick,r)}}},h=!0,p=function(a){if(a&&a.x&&a.y&&t&&!r){clearTimeout(null),r=!0,i=e.sketchStage.entityGraphic,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var u={x:a.x,y:a.y};o[o.length-1]=u;var c=e.view.toMap({x:u.x,y:u.y});1===e.vertexNum?s=[i.geometry.coordinates[0][0]]:2===e.vertexNum?(i.geometry.coordinates[0][2]=c.coordinates,s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2)):s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2),e.vertexNum>0&&(e._snapPoint=e.getSnapGraphics(c,[i.geometry.coordinates[0][0]])),e._snapPoint&&(c=e._snapPoint),e._currentMovePoint=c,1===e.vertexNum?(i.geometry.coordinates[0][1]=c.coordinates,i.geometry.coordinates[0][2]=c.coordinates,s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2)):2===e.vertexNum?(i.geometry.coordinates[0][2]=c.coordinates,s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-1)):(i.geometry.coordinates[0].splice(i.geometry.coordinates[0].length-1,0,c.coordinates),s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-1)),e.vertexNum++,e.sketchStage.entityGraphic=i,i.geometry.coordinates=[JSON.parse((0,n.default)(i.geometry.coordinates[0]))],h&&(e._addFeatureToLayer(i,e.layer),h=!1),r=!1;var f=e._getInteractiveDom();l=l.concat(f),e._removeInteractiveStyle(f),e._fireDrawVertexEvent(i)}},g=function(r){if(clearTimeout(null),clearTimeout(null),!t)return i=null,s=[],void(o=[]);i=e.sketchStage.entityGraphic,s=[],o=[],t=!1,e.vertexNum=0,e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=c.SketchEditMode.none,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(l),e.fire("drawn",{geometry:i.geometry,feature:i},self),e._fireStopDrawEvent(i),e.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.vertexGraphics=[],e._currentMovePoint=void 0,e.undoRedoManager._initDrawProcess(),r.native&&r.native.preventDefault&&r.native.preventDefault(),r.innerViewerEvent&&r.innerViewerEvent.preventDefault&&r.innerViewerEvent.preventDefault(),e.view._mapActionControl("double-click-zoom",!0),e.view._mapActionControl("video-map-active",!1)};this._drawEventHandlers.push(f,p,g),this.view.on(c.ViewEventType.immediateClick,f),this.view.on(c.ViewEventType.pointerMove,p),this.view.on(c.ViewEventType.doubleClick,g)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.fillStyle?t.fillStyle:this.sketchStyle._fillStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.fillStyle?t.fillStyle:this.sketchStyle._fillStyle;var o=new c.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[0,0],[0,0],[0,0]]);var t=new f.Polygon({coordinates:[e],spatialReference:this._spatialReference}),r=this.sketchStyle.fillStyle.clone();r.id=(0,y.getGUID)();var n=new c.Feature({geometry:t,symbol:r,elevationInfo:this.elevationInfo});return n.isShowArea=this.sketchStyle.isShowArea,n.isShowArea&&(n._textStyle=this.sketchStyle.textStyle),n}},{key:"selectFeature",value:function(e){(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"selectFeature",this).call(this,e)}},{key:"startPanGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var i=null;i=t.mapPoint;var o=!0;setTimeout(function(){o=!1},200),this._parent&&this._parent._mapClickEvent&&this.view.off(c.ViewEventType.immediateClick,this._parent._mapClickEvent);var a=function(t){if(t&&t.x&&t.y&&!n&&r._startPan&&!r._editMode!==c.SketchEditMode.editGraphic&&!o){clearTimeout(null),n=!0;var a={x:t.x,y:t.y},s=r.view.toMap({x:a.x,y:a.y}),u=s.coordinates[0]-i.coordinates[0],l=s.coordinates[1]-i.coordinates[1];if(0!==u||0!==l){var h=[];e.geometry.coordinates[0].forEach(function(e){h.push(r.getPanCoordinates(e,u,l))});var d=new f.Polygon({coordinates:[h],spatialReference:r._spatialReference});i=s,r._dispatchEvent("pan",{deltaPosition:{x:u,y:l}},r),r.updateFeature(d,e),n=!1}else n=!1}},s=function e(){!r._editMode!==c.SketchEditMode.editGraphic&&r._startPan&&(r._editMode=c.SketchEditMode.none,r._startPan=!1,r.view.off(c.ViewEventType.pointerMove,a),r.view.off(c.ViewEventType.pointerUp,e),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage,r._editMode),r._parent&&r._parent._mapClickEvent&&(r._parent._preventFirstCall=!0,r.view.on(c.ViewEventType.immediateClick,r._parent._mapClickEvent)),r.view._mapActionControl("drag-pan",!0))};this._hitTestEventHandlers.push(a),this._hitTestEventHandlers.push(s),this.view.on(c.ViewEventType.pointerUp,s),this.view.on(c.ViewEventType.pointerMove,a)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type?this._handlerMidVertexScaleEvent(e):"circleVertexScale"===e.type?this._handlerCircleVertexScaleEvent(e):"vertexMove"===e.type?this._handlerVertexMoveEvent(e):"midVertexAdd"===e.type&&this._handlerMidVertexAddEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this,r=[];this.sketchStage.entityGraphic.geometry.coordinates[0].forEach(function(n){r.push(t.getPanCoordinates(n,e.deltaPosition.x,e.deltaPosition.y))});var n=new f.Polygon({coordinates:[r],spatialReference:this._spatialReference});this.sketchStage.entityGraphic.geometry=n,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new f.Polygon({coordinates:[i],spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_handlerMidVertexScaleEvent",value:function(e){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new f.Polygon({coordinates:[i],spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_resetSelectBoxDirection",value:function(){var e=this,t=this.sketchStage.entityGraphic.geometry.extent;this.sketchStage.selectBoxVertexGraphics.forEach(function(r){r.attributes&&("ne"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymax]:"se"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymin]:"sw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymin]:"nw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymax]:"e"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]):"s"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymin],[t.xmin,t.ymin]):"w"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]):"n"===r.attributes.direction&&(r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymax],[t.xmax,t.ymax])))})}},{key:"_handlerCircleVertexScaleEvent",value:function(e){if(this._parent&&this._parent.sketchStage.entityGraphic){var t,r=this._parent.sketchStage.entityGraphic.geometry.extent,n=[[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax]];(t=new f.Polygon({coordinates:[[[0,0],[0,0],[0,0],[0,0]]],spatialReference:this._spatialReference})).coordinates=[n],this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}))}}},{key:"_handlerVertexMoveEvent",value:function(e){this.sketchStage.currentVertexIndex=e.vertexIndex;var t=this.sketchStage.entityGraphic,r=t.geometry.coordinates[0];if(t.geometry.coordinates[0][e.vertexIndex]=e.movePoint.coordinates,t.geometry.coordinates[0].length-1===e.vertexIndex?t.geometry.coordinates[0][0]=e.movePoint.coordinates:0===e.vertexIndex&&(t.geometry.coordinates[0][t.geometry.coordinates[0].length-1]=e.movePoint.coordinates),t.geometry=new f.Polygon({coordinates:t.geometry.coordinates,spatialReference:this._spatialReference}),this._otherDrawTools){var n=e.vertexIndex,i=0===n?n-1+this.sketchStage.midVertexGraphics.length:n-1,o=n===this.sketchStage.midVertexGraphics.length-1?0:n+1,a=this.sketchStage.midVertexGraphics[n],s=this.sketchStage.midVertexGraphics[i],u=r[i],l=r[n],c=r[o];a.geometry.coordinates=[(c[0]+l[0])/2,(c[1]+l[1])/2],a.geometry=new f.Point({coordinates:a.geometry.coordinates,spatialReference:this._spatialReference}),s.geometry.coordinates=[(u[0]+l[0])/2,(u[1]+l[1])/2],s.geometry=new f.Point({coordinates:s.geometry.coordinates,spatialReference:this._spatialReference})}}},{key:"_handlerMidVertexAddEvent",value:function(e){var t=this;if("changeFeature"===e.action&&(this.sketchStage.entityGraphic.geometry.coordinates[0].splice(e.vertexIndex+1,0,e.point.coordinates),this.sketchStage.entityGraphic.geometry=new f.Polygon({coordinates:[this.sketchStage.entityGraphic.geometry.coordinates[0]],spatialReference:this._spatialReference})),"moveMidVertex"===e.action&&(this.sketchStage.currentVertexIndex=e.vertexIndex,this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex+1]=e.movePoint.coordinates,this.sketchStage.entityGraphic.geometry=new f.Polygon({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference})),"addVertex"===e.action){var r=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),n=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(n),n.addFeature(e.point),this.sketchStage.vertexGraphics.splice(e.vertexIndex+1,0,n.sketchStage.entityGraphic);var i,o=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex],a=null;this._getHight&&(a=0),i=a?new f.Point({coordinates:[(o[0]+e.point.coordinates[0])/2,(o[1]+e.point.coordinates[1])/2,a],spatialReference:this._spatialReference}):new f.Point({coordinates:[(o[0]+e.point.coordinates[0])/2,(o[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var s=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(s),s.addFeature(i,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,s.sketchStage.entityGraphic);var u,l=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex+2],c=null;this._getHight&&(c=0),u=c?new f.Point({coordinates:[(l[0]+e.point.coordinates[0])/2,(l[1]+e.point.coordinates[1])/2,c],spatialReference:this._spatialReference}):new f.Point({coordinates:[(l[0]+e.point.coordinates[0])/2,(l[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var h=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(h),h.addFeature(u,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(e.vertexIndex+1,0,h.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools.forEach(function(e){e.sketchStage.entityGraphic.id===r&&t._removeFeatureFromLayer(e.sketchStage.entityGraphic,t._sketchInnerLayer)}),this._otherDrawTools.push(n),this._otherDrawTools.push(s),this._otherDrawTools.push(h)}}},{key:"addMidVertex",value:function(e,t){var r=new d.default;r.addPoint(t),this.sketchStage.midVertexGraphics=r}},{key:"addVertex",value:function(e,t){var r=null;if(--t>-1){var n=[];if(t<this.sketchStage.entityGraphic.geometry.coordinates[0].length-1){(n=this.sketchStage.entityGraphic.geometry.coordinates[0]).splice(t,0,e.coordinates),0===t?n[n.length-1]=e.coordinates:t===n.length-1&&n.splice(0,0,e.coordinates),this.sketchStage.entityGraphic.geometry.coordinates=[n],r=this.sketchStage.entityGraphic.geometry;var i=void 0,o=void 0,a=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],[a.xmax,a.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var s=[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],[(a.xmax+a.xmin)/2,a.ymax],[(a.xmax+a.xmin)/2,a.ymin],[a.xmax,(a.ymax+a.ymin)/2],[a.xmin,(a.ymax+a.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=s[t]})}if(this.sketchStage.vertexGraphics.length>0&&(i=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(i),i.addFeatureByGeometry(e),this.sketchStage.vertexGraphics.splice(t,0,i.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})),this.sketchStage.midVertexGraphics.length>0){var u=-1,l=-1,c=null,h=null;0===t?(l=0,u=this.sketchStage.midVertexGraphics.length-1,c=this.sketchStage.entityGraphic.geometry.coordinates[0][this.sketchStage.entityGraphic.geometry.coordinates[0].length-2],h=this.sketchStage.entityGraphic.geometry.coordinates[0][1]):(u=t-1,l=t+1,c=this.sketchStage.entityGraphic.geometry.coordinates[0][u],h=this.sketchStage.entityGraphic.geometry.coordinates[0][l]);var y=new f.Point({coordinates:[(c[0]+e.coordinates[0])/2,(c[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[u].geometry.coordinates=y.coordinates;var g=new f.Point({coordinates:[(h[0]+e.coordinates[0])/2,(h[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});o=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(o),o.addFeatureByGeometry(g,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(t,0,o.sketchStage.entityGraphic),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})}i&&this._otherDrawTools.push(i),o&&this._otherDrawTools.push(o),this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode)}return r}}},{key:"updateVertex",value:function(e,t){var r=null;if(--t>-1){if(t<this.sketchStage.entityGraphic.geometry.coordinates[0].length-1){var n=this.sketchStage.entityGraphic,i=n.geometry.coordinates[0];n.geometry.coordinates=[i],this.currentVertexIndex=t,i[t]=e.coordinates,i.length-1===t?i[0]=e.coordinates:0===t&&(i[i.length-1]=e.coordinates),n.geometry=new f.Polygon({coordinates:n.geometry.coordinates,spatialReference:this._spatialReference}),r=n.geometry;var o=n.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[o.xmax,o.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var a=[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[(o.xmax+o.xmin)/2,o.ymax],[(o.xmax+o.xmin)/2,o.ymin],[o.xmax,(o.ymax+o.ymin)/2],[o.xmin,(o.ymax+o.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=a[t]})}if(this.sketchStage.vertexGraphics.length>0&&(this.sketchStage.vertexGraphics[t].geometry.coordinates=e.coordinates),this.sketchStage.midVertexGraphics.length>0){var s=t,u=0===s?s-1+this.sketchStage.midVertexGraphics.length:s-1,l=s===this.sketchStage.midVertexGraphics.length-1?0:s+1,c=this.sketchStage.midVertexGraphics[s],h=this.sketchStage.midVertexGraphics[u],d=i[u],p=i[s],y=i[l];c.geometry.coordinates=[(y[0]+p[0])/2,(y[1]+p[1])/2],c.geometry=new f.Point({coordinates:c.geometry.coordinates,spatialReference:this._spatialReference}),h.geometry.coordinates=[(d[0]+p[0])/2,(d[1]+p[1])/2],h.geometry=new f.Point({coordinates:h.geometry.coordinates,spatialReference:this._spatialReference})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode)}return r}},{key:"removeVertex",value:function(e){var t=null;if(--e>-1){var r=this.sketchStage.entityGraphic.geometry.coordinates[0].length-1;if(r>3&&e<r){var n=this.sketchStage.entityGraphic.geometry.coordinates[0];n.splice(e,1),0===e&&n.splice(n.length-1,1,n[0]),t=new f.Polygon({coordinates:[n],spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t;var i=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[i.xmax,i.ymax],[i.xmax,i.ymin],[i.xmin,i.ymin],[i.xmin,i.ymax],[i.xmax,i.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var o=[[i.xmax,i.ymax],[i.xmax,i.ymin],[i.xmin,i.ymin],[i.xmin,i.ymax],[(i.xmax+i.xmin)/2,i.ymax],[(i.xmax+i.xmin)/2,i.ymin],[i.xmax,(i.ymax+i.ymin)/2],[i.xmin,(i.ymax+i.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=o[t]})}if(this.sketchStage.vertexGraphics.length>0){var a=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromLayer(this.sketchStage.vertexGraphics[e],this._layer),this.sketchStage.vertexGraphics.splice(e,1),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==a)return e})}if(this.sketchStage.midVertexGraphics.length>0){var s=[],u=-1;0===e?(s=[(t.coordinates[0][t.coordinates[0].length-2][0]+t.coordinates[0][e][0])/2,(t.coordinates[0][t.coordinates[0].length-2][1]+t.coordinates[0][e][1])/2],u=this.sketchStage.midVertexGraphics.length-1):(s=[(t.coordinates[0][e-1][0]+t.coordinates[0][e][0])/2,(t.coordinates[0][e-1][1]+t.coordinates[0][e][1])/2],u=e-1),this.sketchStage.midVertexGraphics[u].geometry=new f.Point({coordinates:s,spatialReference:this._spatialReference});var l=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromLayer(this.sketchStage.midVertexGraphics[e],this._sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e,1),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==l)return e})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode)}return t}}]),t}(h.default);t.default=m},function(e,t,r){"use strict";r.r(t);var n=1,i=2,o=3,a=484813681109536e-20,s=Math.PI/2,u=.16666666666666666,l=.04722222222222222,c=.022156084656084655,f=1e-10,h=.017453292519943295,d=57.29577951308232,p=Math.PI/4,y=2*Math.PI,g=3.14159265359,m={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667},v={mm:{to_meter:.001},cm:{to_meter:.01},ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937},fath:{to_meter:1.8288},kmi:{to_meter:1852},"us-ch":{to_meter:20.1168402336805},"us-mi":{to_meter:1609.34721869444},km:{to_meter:1e3},"ind-ft":{to_meter:.30479841},"ind-yd":{to_meter:.91439523},mi:{to_meter:1609.344},yd:{to_meter:.9144},ch:{to_meter:20.1168},link:{to_meter:.201168},dm:{to_meter:.1},in:{to_meter:.0254},"ind-ch":{to_meter:20.11669506},"us-in":{to_meter:.025400050800101},"us-yd":{to_meter:.914401828803658}},_=/[\s_\-\/\(\)]/g;function S(e,t){if(e[t])return e[t];for(var r,n=Object.keys(e),i=t.toLowerCase().replace(_,""),o=-1;++o<n.length;)if((r=n[o]).toLowerCase().replace(_,"")===i)return e[r]}var b=function(e){var t,r,n,i={},o=e.split("+").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var r=t.split("=");return r.push(!0),e[r[0].toLowerCase()]=r[1],e},{}),a={proj:"projName",datum:"datumCode",rf:function(e){i.rf=parseFloat(e)},lat_0:function(e){i.lat0=e*h},lat_1:function(e){i.lat1=e*h},lat_2:function(e){i.lat2=e*h},lat_ts:function(e){i.lat_ts=e*h},lon_0:function(e){i.long0=e*h},lon_1:function(e){i.long1=e*h},lon_2:function(e){i.long2=e*h},alpha:function(e){i.alpha=parseFloat(e)*h},gamma:function(e){i.rectified_grid_angle=parseFloat(e)*h},lonc:function(e){i.longc=e*h},x_0:function(e){i.x0=parseFloat(e)},y_0:function(e){i.y0=parseFloat(e)},k_0:function(e){i.k0=parseFloat(e)},k:function(e){i.k0=parseFloat(e)},a:function(e){i.a=parseFloat(e)},b:function(e){i.b=parseFloat(e)},r:function(e){i.a=i.b=parseFloat(e)},r_a:function(){i.R_A=!0},zone:function(e){i.zone=parseInt(e,10)},south:function(){i.utmSouth=!0},towgs84:function(e){i.datum_params=e.split(",").map(function(e){return parseFloat(e)})},to_meter:function(e){i.to_meter=parseFloat(e)},units:function(e){i.units=e;var t=S(v,e);t&&(i.to_meter=t.to_meter)},from_greenwich:function(e){i.from_greenwich=e*h},pm:function(e){var t=S(m,e);i.from_greenwich=(t||parseFloat(e))*h},nadgrids:function(e){"@null"===e?i.datumCode="none":i.nadgrids=e},axis:function(e){3===e.length&&-1!=="ewnsud".indexOf(e.substr(0,1))&&-1!=="ewnsud".indexOf(e.substr(1,1))&&-1!=="ewnsud".indexOf(e.substr(2,1))&&(i.axis=e)},approx:function(){i.approx=!0},over:function(){i.over=!0}};for(t in o)r=o[t],t in a?"function"==typeof(n=a[t])?n(r):i[n]=r:i[t]=r;return"string"==typeof i.datumCode&&"WGS84"!==i.datumCode&&(i.datumCode=i.datumCode.toLowerCase()),i.projStr=e,i},x=class{static getId(e){const t=e.find(e=>Array.isArray(e)&&"ID"===e[0]);return t&&t.length>=3?{authority:t[1],code:parseInt(t[2],10)}:null}static convertUnit(e,t="unit"){if(!e||e.length<3)return{type:t,name:"unknown",conversion_factor:null};const r=e[1],n=parseFloat(e[2])||null,i=e.find(e=>Array.isArray(e)&&"ID"===e[0]);return{type:t,name:r,conversion_factor:n,id:i?{authority:i[1],code:parseInt(i[2],10)}:null}}static convertAxis(e){const t=e[1]||"Unknown";let r;const n=t.match(/^\((.)\)$/);if(n){const e=n[1].toUpperCase();if("E"===e)r="east";else if("N"===e)r="north";else{if("U"!==e)throw new Error(`Unknown axis abbreviation: ${e}`);r="up"}}else r=e[2]?e[2].toLowerCase():"unknown";const i=e.find(e=>Array.isArray(e)&&"ORDER"===e[0]),o=i?parseInt(i[1],10):null,a=e.find(e=>Array.isArray(e)&&("LENGTHUNIT"===e[0]||"ANGLEUNIT"===e[0]||"SCALEUNIT"===e[0]));return{name:t,direction:r,unit:this.convertUnit(a),order:o}}static extractAxes(e){return e.filter(e=>Array.isArray(e)&&"AXIS"===e[0]).map(e=>this.convertAxis(e)).sort((e,t)=>(e.order||0)-(t.order||0))}static convert(e,t={}){switch(e[0]){case"PROJCRS":t.type="ProjectedCRS",t.name=e[1],t.base_crs=e.find(e=>Array.isArray(e)&&"BASEGEOGCRS"===e[0])?this.convert(e.find(e=>Array.isArray(e)&&"BASEGEOGCRS"===e[0])):null,t.conversion=e.find(e=>Array.isArray(e)&&"CONVERSION"===e[0])?this.convert(e.find(e=>Array.isArray(e)&&"CONVERSION"===e[0])):null;const r=e.find(e=>Array.isArray(e)&&"CS"===e[0]);r&&(t.coordinate_system={type:r[1],axis:this.extractAxes(e)});const n=e.find(e=>Array.isArray(e)&&"LENGTHUNIT"===e[0]);if(n){const e=this.convertUnit(n);t.coordinate_system.unit=e}t.id=this.getId(e);break;case"BASEGEOGCRS":case"GEOGCRS":t.type="GeographicCRS",t.name=e[1];const i=e.find(e=>Array.isArray(e)&&("DATUM"===e[0]||"ENSEMBLE"===e[0]));if(i){const r=this.convert(i);"ENSEMBLE"===i[0]?t.datum_ensemble=r:t.datum=r;const n=e.find(e=>Array.isArray(e)&&"PRIMEM"===e[0]);n&&"Greenwich"!==n[1]&&(r.prime_meridian={name:n[1],longitude:parseFloat(n[2])})}t.coordinate_system={type:"ellipsoidal",axis:this.extractAxes(e)},t.id=this.getId(e);break;case"DATUM":t.type="GeodeticReferenceFrame",t.name=e[1],t.ellipsoid=e.find(e=>Array.isArray(e)&&"ELLIPSOID"===e[0])?this.convert(e.find(e=>Array.isArray(e)&&"ELLIPSOID"===e[0])):null;break;case"ENSEMBLE":t.type="DatumEnsemble",t.name=e[1],t.members=e.filter(e=>Array.isArray(e)&&"MEMBER"===e[0]).map(e=>({type:"DatumEnsembleMember",name:e[1],id:this.getId(e)}));const o=e.find(e=>Array.isArray(e)&&"ENSEMBLEACCURACY"===e[0]);o&&(t.accuracy=parseFloat(o[1]));const a=e.find(e=>Array.isArray(e)&&"ELLIPSOID"===e[0]);a&&(t.ellipsoid=this.convert(a)),t.id=this.getId(e);break;case"ELLIPSOID":t.type="Ellipsoid",t.name=e[1],t.semi_major_axis=parseFloat(e[2]),t.inverse_flattening=parseFloat(e[3]),e.find(e=>Array.isArray(e)&&"LENGTHUNIT"===e[0])&&this.convert(e.find(e=>Array.isArray(e)&&"LENGTHUNIT"===e[0]),t);break;case"CONVERSION":t.type="Conversion",t.name=e[1],t.method=e.find(e=>Array.isArray(e)&&"METHOD"===e[0])?this.convert(e.find(e=>Array.isArray(e)&&"METHOD"===e[0])):null,t.parameters=e.filter(e=>Array.isArray(e)&&"PARAMETER"===e[0]).map(e=>this.convert(e));break;case"METHOD":t.type="Method",t.name=e[1],t.id=this.getId(e);break;case"PARAMETER":t.type="Parameter",t.name=e[1],t.value=parseFloat(e[2]),t.unit=this.convertUnit(e.find(e=>Array.isArray(e)&&("LENGTHUNIT"===e[0]||"ANGLEUNIT"===e[0]||"SCALEUNIT"===e[0]))),t.id=this.getId(e);break;case"BOUNDCRS":t.type="BoundCRS";const s=e.find(e=>Array.isArray(e)&&"SOURCECRS"===e[0]);if(s){const e=s.find(e=>Array.isArray(e));t.source_crs=e?this.convert(e):null}const u=e.find(e=>Array.isArray(e)&&"TARGETCRS"===e[0]);if(u){const e=u.find(e=>Array.isArray(e));t.target_crs=e?this.convert(e):null}const l=e.find(e=>Array.isArray(e)&&"ABRIDGEDTRANSFORMATION"===e[0]);t.transformation=l?this.convert(l):null;break;case"ABRIDGEDTRANSFORMATION":if(t.type="Transformation",t.name=e[1],t.method=e.find(e=>Array.isArray(e)&&"METHOD"===e[0])?this.convert(e.find(e=>Array.isArray(e)&&"METHOD"===e[0])):null,t.parameters=e.filter(e=>Array.isArray(e)&&("PARAMETER"===e[0]||"PARAMETERFILE"===e[0])).map(e=>"PARAMETER"===e[0]?this.convert(e):"PARAMETERFILE"===e[0]?{name:e[1],value:e[2],id:{authority:"EPSG",code:8656}}:void 0),7===t.parameters.length){const e=t.parameters[6];"Scale difference"===e.name&&(e.value=Math.round(1e12*(e.value-1))/1e6)}t.id=this.getId(e);break;case"AXIS":t.coordinate_system||(t.coordinate_system={type:"unspecified",axis:[]}),t.coordinate_system.axis.push(this.convertAxis(e));break;case"LENGTHUNIT":const c=this.convertUnit(e,"LinearUnit");t.coordinate_system&&t.coordinate_system.axis&&t.coordinate_system.axis.forEach(e=>{e.unit||(e.unit=c)}),c.conversion_factor&&1!==c.conversion_factor&&t.semi_major_axis&&(t.semi_major_axis={value:t.semi_major_axis,unit:c});break;default:t.keyword=e[0]}return t}},w=class extends x{static convert(e,t={}){return super.convert(e,t),t.coordinate_system&&"Cartesian"===t.coordinate_system.subtype&&delete t.coordinate_system,t.usage&&delete t.usage,t}},E=class extends x{static convert(e,t={}){super.convert(e,t);const r=e.find(e=>Array.isArray(e)&&"CS"===e[0]);r&&(t.coordinate_system={subtype:r[1],axis:this.extractAxes(e)});const n=e.find(e=>Array.isArray(e)&&"USAGE"===e[0]);if(n){const e=n.find(e=>Array.isArray(e)&&"SCOPE"===e[0]),r=n.find(e=>Array.isArray(e)&&"AREA"===e[0]),i=n.find(e=>Array.isArray(e)&&"BBOX"===e[0]);t.usage={},e&&(t.usage.scope=e[1]),r&&(t.usage.area=r[1]),i&&(t.usage.bbox=i.slice(1))}return t}};var T=1,I=/\s/,M=/[A-Za-z]/,k=/[A-Za-z84_]/,P=/[,\]]/,L=/[\d\.E\-\+]/;function O(e){if("string"!=typeof e)throw new Error("not a string");this.text=e.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=T}function C(e,t,r){Array.isArray(t)&&(r.unshift(t),t=null);var n=t?{}:e,i=r.reduce(function(e,t){return N(t,e),e},n);t&&(e[t]=i)}function N(e,t){if(Array.isArray(e)){var r=e.shift();if("PARAMETER"===r&&(r=e.shift()),1===e.length)return Array.isArray(e[0])?(t[r]={},void N(e[0],t[r])):void(t[r]=e[0]);if(e.length)if("TOWGS84"!==r){if("AXIS"===r)return r in t||(t[r]=[]),void t[r].push(e);var n;switch(Array.isArray(r)||(t[r]={}),r){case"UNIT":case"PRIMEM":case"VERT_DATUM":return t[r]={name:e[0].toLowerCase(),convert:e[1]},void(3===e.length&&N(e[2],t[r]));case"SPHEROID":case"ELLIPSOID":return t[r]={name:e[0],a:e[1],rf:e[2]},void(4===e.length&&N(e[3],t[r]));case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":return e[0]=["name",e[0]],void C(t,r,e);case"COMPD_CS":case"COMPOUNDCRS":case"FITTED_CS":case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"ENGCRS":case"ENGINEERINGCRS":return e[0]=["name",e[0]],C(t,r,e),void(t[r].type=r);default:for(n=-1;++n<e.length;)if(!Array.isArray(e[n]))return N(e,t[r]);return C(t,r,e)}}else t[r]=e;else t[r]=!0}else t[e]=!0}O.prototype.readCharicter=function(){var e=this.text[this.place++];if(4!==this.state)for(;I.test(e);){if(this.place>=this.text.length)return;e=this.text[this.place++]}switch(this.state){case T:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},O.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(P.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},O.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=T)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=T,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},O.prototype.number=function(e){if(!L.test(e)){if(P.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)}this.word+=e},O.prototype.quoted=function(e){'"'!==e?this.word+=e:this.state=5},O.prototype.keyword=function(e){if(k.test(e))this.word+=e;else{if("["===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=T)}if(!P.test(e))throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place);this.afterItem(e)}},O.prototype.neutral=function(e){if(M.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(L.test(e))return this.word=e,void(this.state=3);if(!P.test(e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this.afterItem(e)},O.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};var R=.017453292519943295;function G(e){return e*R}function A(e){const t=(e.projName||"").toLowerCase().replace(/_/g," ");e.long0||!e.longc||"albers conic equal area"!==t&&"lambert azimuthal equal area"!==t||(e.long0=e.longc),e.lat_ts||!e.lat1||"stereographic south pole"!==t&&"polar stereographic (variant b)"!==t?e.lat_ts||!e.lat0||"polar stereographic"!==t&&"polar stereographic (variant a)"!==t||(e.lat_ts=e.lat0,e.lat0=G(e.lat0>0?90:-90),delete e.lat1):(e.lat0=G(e.lat1>0?90:-90),e.lat_ts=e.lat1,delete e.lat1)}function V(e){let t={units:null,to_meter:void 0};return"string"==typeof e?(t.units=e.toLowerCase(),"metre"===t.units&&(t.units="meter"),"meter"===t.units&&(t.to_meter=1)):e&&e.name&&(t.units=e.name.toLowerCase(),"metre"===t.units&&(t.units="meter"),t.to_meter=e.conversion_factor),t}function D(e){return"object"==typeof e?e.value*e.unit.conversion_factor:e}function F(e,t){e.ellipsoid.radius?(t.a=e.ellipsoid.radius,t.rf=0):(t.a=D(e.ellipsoid.semi_major_axis),void 0!==e.ellipsoid.inverse_flattening?t.rf=e.ellipsoid.inverse_flattening:void 0!==e.ellipsoid.semi_major_axis&&void 0!==e.ellipsoid.semi_minor_axis&&(t.rf=t.a/(t.a-D(e.ellipsoid.semi_minor_axis))))}function j(e,t={}){return e&&"object"==typeof e?"BoundCRS"===e.type?(j(e.source_crs,t),e.transformation&&(e.transformation.method&&"NTv2"===e.transformation.method.name?t.nadgrids=e.transformation.parameters[0].value:t.datum_params=e.transformation.parameters.map(e=>e.value)),t):(Object.keys(e).forEach(r=>{const n=e[r];if(null!==n)switch(r){case"name":if(t.srsCode)break;t.name=n,t.srsCode=n;break;case"type":"GeographicCRS"===n?t.projName="longlat":"ProjectedCRS"===n&&e.conversion&&e.conversion.method&&(t.projName=e.conversion.method.name);break;case"datum":case"datum_ensemble":n.ellipsoid&&(t.ellps=n.ellipsoid.name,F(n,t)),n.prime_meridian&&(t.from_greenwich=n.prime_meridian.longitude*Math.PI/180);break;case"ellipsoid":t.ellps=n.name,F(n,t);break;case"prime_meridian":t.long0=(n.longitude||0)*Math.PI/180;break;case"coordinate_system":if(n.axis)if(t.axis=n.axis.map(e=>{const t=e.direction;if("east"===t)return"e";if("north"===t)return"n";if("west"===t)return"w";if("south"===t)return"s";throw new Error(`Unknown axis direction: ${t}`)}).join("")+"u",n.unit){const{units:e,to_meter:r}=V(n.unit);t.units=e,t.to_meter=r}else if(n.axis[0]&&n.axis[0].unit){const{units:e,to_meter:r}=V(n.axis[0].unit);t.units=e,t.to_meter=r}break;case"id":n.authority&&n.code&&(t.title=n.authority+":"+n.code);break;case"conversion":n.method&&n.method.name&&(t.projName=n.method.name),n.parameters&&n.parameters.forEach(e=>{const r=e.name.toLowerCase().replace(/\s+/g,"_"),n=e.value;e.unit&&e.unit.conversion_factor?t[r]=n*e.unit.conversion_factor:"degree"===e.unit?t[r]=n*Math.PI/180:t[r]=n});break;case"unit":n.name&&(t.units=n.name.toLowerCase(),"metre"===t.units&&(t.units="meter")),n.conversion_factor&&(t.to_meter=n.conversion_factor);break;case"base_crs":j(n,t),t.datumCode=n.id?n.id.authority+"_"+n.id.code:n.name}}),void 0!==t.latitude_of_false_origin&&(t.lat0=t.latitude_of_false_origin),void 0!==t.longitude_of_false_origin&&(t.long0=t.longitude_of_false_origin),void 0!==t.latitude_of_standard_parallel&&(t.lat0=t.latitude_of_standard_parallel,t.lat1=t.latitude_of_standard_parallel),void 0!==t.latitude_of_1st_standard_parallel&&(t.lat1=t.latitude_of_1st_standard_parallel),void 0!==t.latitude_of_2nd_standard_parallel&&(t.lat2=t.latitude_of_2nd_standard_parallel),void 0!==t.latitude_of_projection_centre&&(t.lat0=t.latitude_of_projection_centre),void 0!==t.longitude_of_projection_centre&&(t.longc=t.longitude_of_projection_centre),void 0!==t.easting_at_false_origin&&(t.x0=t.easting_at_false_origin),void 0!==t.northing_at_false_origin&&(t.y0=t.northing_at_false_origin),void 0!==t.latitude_of_natural_origin&&(t.lat0=t.latitude_of_natural_origin),void 0!==t.longitude_of_natural_origin&&(t.long0=t.longitude_of_natural_origin),void 0!==t.longitude_of_origin&&(t.long0=t.longitude_of_origin),void 0!==t.false_easting&&(t.x0=t.false_easting),t.easting_at_projection_centre&&(t.x0=t.easting_at_projection_centre),void 0!==t.false_northing&&(t.y0=t.false_northing),t.northing_at_projection_centre&&(t.y0=t.northing_at_projection_centre),void 0!==t.standard_parallel_1&&(t.lat1=t.standard_parallel_1),void 0!==t.standard_parallel_2&&(t.lat2=t.standard_parallel_2),void 0!==t.scale_factor_at_natural_origin&&(t.k0=t.scale_factor_at_natural_origin),void 0!==t.scale_factor_at_projection_centre&&(t.k0=t.scale_factor_at_projection_centre),void 0!==t.scale_factor_on_pseudo_standard_parallel&&(t.k0=t.scale_factor_on_pseudo_standard_parallel),void 0!==t.azimuth&&(t.alpha=t.azimuth),void 0!==t.azimuth_at_projection_centre&&(t.alpha=t.azimuth_at_projection_centre),t.angle_from_rectified_to_skew_grid&&(t.rectified_grid_angle=t.angle_from_rectified_to_skew_grid),A(t),t):e}var B=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function q(e){if(e.AUTHORITY){var t=Object.keys(e.AUTHORITY)[0];t&&t in e.AUTHORITY&&(e.title=t+":"+e.AUTHORITY[t])}if("GEOGCS"===e.type?e.projName="longlat":"LOCAL_CS"===e.type?(e.projName="identity",e.local=!0):"object"==typeof e.PROJECTION?e.projName=Object.keys(e.PROJECTION)[0]:e.projName=e.PROJECTION,e.AXIS){for(var r="",n=0,i=e.AXIS.length;n<i;++n){var o=[e.AXIS[n][0].toLowerCase(),e.AXIS[n][1].toLowerCase()];-1!==o[0].indexOf("north")||("y"===o[0]||"lat"===o[0])&&"north"===o[1]?r+="n":-1!==o[0].indexOf("south")||("y"===o[0]||"lat"===o[0])&&"south"===o[1]?r+="s":-1!==o[0].indexOf("east")||("x"===o[0]||"lon"===o[0])&&"east"===o[1]?r+="e":-1===o[0].indexOf("west")&&("x"!==o[0]&&"lon"!==o[0]||"west"!==o[1])||(r+="w")}2===r.length&&(r+="u"),3===r.length&&(e.axis=r)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.UNIT.convert&&("GEOGCS"===e.type?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var a=e.GEOGCS;function s(t){return t*(e.to_meter||1)}"GEOGCS"===e.type&&(a=e),a&&(a.DATUM?e.datumCode=a.DATUM.name.toLowerCase():e.datumCode=a.name.toLowerCase(),"d_"===e.datumCode.slice(0,2)&&(e.datumCode=e.datumCode.slice(2)),"new_zealand_1949"===e.datumCode&&(e.datumCode="nzgd49"),"wgs_1984"!==e.datumCode&&"world_geodetic_system_1984"!==e.datumCode||("Mercator_Auxiliary_Sphere"===e.PROJECTION&&(e.sphere=!0),e.datumCode="wgs84"),"belge_1972"===e.datumCode&&(e.datumCode="rnb72"),a.DATUM&&a.DATUM.SPHEROID&&(e.ellps=a.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===e.ellps.toLowerCase().slice(0,13)&&(e.ellps="intl"),e.a=a.DATUM.SPHEROID.a,e.rf=parseFloat(a.DATUM.SPHEROID.rf,10)),a.DATUM&&a.DATUM.TOWGS84&&(e.datum_params=a.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),"ch1903+"===e.datumCode&&(e.datumCode="ch1903"),~e.datumCode.indexOf("israel")&&(e.datumCode="isr93")),e.b&&!isFinite(e.b)&&(e.b=e.a),e.rectified_grid_angle&&(e.rectified_grid_angle=G(e.rectified_grid_angle)),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",G],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",G],["x0","false_easting",s],["y0","false_northing",s],["long0","central_meridian",G],["lat0","latitude_of_origin",G],["lat0","standard_parallel_1",G],["lat1","standard_parallel_1",G],["lat2","standard_parallel_2",G],["azimuth","Azimuth"],["alpha","azimuth",G],["srsCode","name"]].forEach(function(t){return function(e,t){var r=t[0],n=t[1];!(r in e)&&n in e&&(e[r]=e[n],3===t.length&&(e[r]=t[2](e[r])))}(e,t)}),A(e)}var U=function(e){if("object"==typeof e)return j(e);const t=function(e){const t=e.toUpperCase();return t.includes("PROJCRS")||t.includes("GEOGCRS")||t.includes("BOUNDCRS")||t.includes("VERTCRS")||t.includes("LENGTHUNIT")||t.includes("ANGLEUNIT")||t.includes("SCALEUNIT")?"WKT2":(t.includes("PROJCS")||t.includes("GEOGCS")||t.includes("LOCAL_CS")||t.includes("VERT_CS")||t.includes("UNIT"),"WKT1")}(e);var r=function(e){return new O(e).output()}(e);if("WKT2"===t)return j(function(e){return("2019"===function(e){return e.find(e=>Array.isArray(e)&&"USAGE"===e[0])?"2019":e.find(e=>Array.isArray(e)&&"CS"===e[0])?"2015":("BOUNDCRS"===e[0]||"PROJCRS"===e[0]||e[0],"2015")}(e)?E:w).convert(e)}(r));var n=r[0],i={};return N(r,i),function e(t){for(var r=Object.keys(t),n=0,i=r.length;n<i;++n){var o=r[n];-1!==B.indexOf(o)&&q(t[o]),"object"==typeof t[o]&&e(t[o])}}(i),i[n]};function J(e){var t=this;if(2===arguments.length){var r=arguments[1];"string"==typeof r?"+"===r.charAt(0)?J[e]=b(arguments[1]):J[e]=U(arguments[1]):!r||"object"!=typeof r||"projName"in r?(J[e]=r,r||delete J[e]):J[e]=U(arguments[1])}else if(1===arguments.length){if(Array.isArray(e))return e.map(function(e){return Array.isArray(e)?J.apply(t,e):J(e)});if("string"==typeof e){if(e in J)return J[e]}else"EPSG"in e?J["EPSG:"+e.EPSG]=e:"ESRI"in e?J["ESRI:"+e.ESRI]=e:"IAU2000"in e?J["IAU2000:"+e.IAU2000]=e:console.log(e);return}}!function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");for(var t=1;t<=60;++t)e("EPSG:"+(32600+t),"+proj=utm +zone="+t+" +datum=WGS84 +units=m"),e("EPSG:"+(32700+t),"+proj=utm +zone="+t+" +south +datum=WGS84 +units=m");e("EPSG:5041","+title=WGS 84 / UPS North (E,N) +proj=stere +lat_0=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"),e("EPSG:5042","+title=WGS 84 / UPS South (E,N) +proj=stere +lat_0=-90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}(J);var z=J,W=["3857","900913","3785","102113"],H=function(e){if(!function(e){return"string"==typeof e}(e))return"projName"in e?e:U(e);if(function(e){return e in z}(e))return z[e];if(function(e){return 0!==e.indexOf("+")&&-1!==e.indexOf("[")||"object"==typeof e&&!("srsCode"in e)}(e)){var t=U(e);if(function(e){var t=S(e,"authority");if(t){var r=S(t,"epsg");return r&&W.indexOf(r)>-1}}(t))return z["EPSG:3857"];var r=function(e){var t=S(e,"extension");if(t)return S(t,"proj4")}(t);return r?b(r):t}return function(e){return"+"===e[0]}(e)?b(e):void 0},Y=function(e,t){var r,n;if(e=e||{},!t)return e;for(n in t)void 0!==(r=t[n])&&(e[n]=r);return e},X=function(e,t,r){var n=e*t;return r/Math.sqrt(1-n*n)},K=function(e){return e<0?-1:1},Z=function(e,t){return t?e:Math.abs(e)<=g?e:e-K(e)*y},Q=function(e,t,r){var n=e*r,i=.5*e;return n=Math.pow((1-n)/(1+n),i),Math.tan(.5*(s-t))/n},$=function(e,t){for(var r,n,i=.5*e,o=s-2*Math.atan(t),a=0;a<=15;a++)if(r=e*Math.sin(o),o+=n=s-2*Math.atan(t*Math.pow((1-r)/(1+r),i))-o,Math.abs(n)<=1e-10)return o;return-9999};function ee(e){return e}var te=["longlat","identity"],re=[{init:function(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=X(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(e){var t,r,n=e.x,i=e.y;if(i*d>90&&i*d<-90&&n*d>180&&n*d<-180)return null;if(Math.abs(Math.abs(i)-s)<=f)return null;if(this.sphere)t=this.x0+this.a*this.k0*Z(n-this.long0,this.over),r=this.y0+this.a*this.k0*Math.log(Math.tan(p+.5*i));else{var o=Math.sin(i),a=Q(this.e,i,o);t=this.x0+this.a*this.k0*Z(n-this.long0,this.over),r=this.y0-this.a*this.k0*Math.log(a)}return e.x=t,e.y=r,e},inverse:function(e){var t,r,n=e.x-this.x0,i=e.y-this.y0;if(this.sphere)r=s-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var o=Math.exp(-i/(this.a*this.k0));if(-9999===(r=$(this.e,o)))return null}return t=Z(this.long0+n/(this.a*this.k0),this.over),e.x=t,e.y=r,e},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","Mercator_Variant_A","merc"]},{init:function(){},forward:ee,inverse:ee,names:te}],ne={},ie=[];function oe(e,t){var r=ie.length;return e.names?(ie[r]=e,e.names.forEach(function(e){ne[e.toLowerCase()]=r}),this):(console.log(t),!0)}function ae(e){return e.replace(/[-\(\)\s]+/g," ").trim().replace(/ /g,"_")}var se={start:function(){re.forEach(oe)},add:oe,get:function(e){if(!e)return!1;var t=e.toLowerCase();return void 0!==ne[t]&&ie[ne[t]]?ie[ne[t]]:(t=ae(t))in ne&&ie[ne[t]]?ie[ne[t]]:void 0}},ue={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"},WGS84:{a:6378137,rf:298.257223563,ellipseName:"WGS 84"},sphere:{a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}};const le=ue.WGS84;var ce={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},mgi:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Ordnance Survey of Great Britain 1936"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"},EPSG_5451:{towgs84:"6.41,-49.05,-11.28,1.5657,0.5242,6.9718,-5.7649"},IGNF_LURESG:{towgs84:"-192.986,13.673,-39.309,-0.4099,-2.9332,2.6881,0.43"},EPSG_4614:{towgs84:"-119.4248,-303.65872,-11.00061,1.164298,0.174458,1.096259,3.657065"},EPSG_4615:{towgs84:"-494.088,-312.129,279.877,-1.423,-1.013,1.59,-0.748"},ESRI_37241:{towgs84:"-76.822,257.457,-12.817,2.136,-0.033,-2.392,-0.031"},ESRI_37249:{towgs84:"-440.296,58.548,296.265,1.128,10.202,4.559,-0.438"},ESRI_37245:{towgs84:"-511.151,-181.269,139.609,1.05,2.703,1.798,3.071"},EPSG_4178:{towgs84:"24.9,-126.4,-93.2,-0.063,-0.247,-0.041,1.01"},EPSG_4622:{towgs84:"-472.29,-5.63,-304.12,0.4362,-0.8374,0.2563,1.8984"},EPSG_4625:{towgs84:"126.93,547.94,130.41,-2.7867,5.1612,-0.8584,13.8227"},EPSG_5252:{towgs84:"0.023,0.036,-0.068,0.00176,0.00912,-0.01136,0.00439"},EPSG_4314:{towgs84:"597.1,71.4,412.1,0.894,0.068,-1.563,7.58"},EPSG_4282:{towgs84:"-178.3,-316.7,-131.5,5.278,6.077,10.979,19.166"},EPSG_4231:{towgs84:"-83.11,-97.38,-117.22,0.0276,-0.2167,0.2147,0.1218"},EPSG_4274:{towgs84:"-230.994,102.591,25.199,0.633,-0.239,0.9,1.95"},EPSG_4134:{towgs84:"-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006"},EPSG_4254:{towgs84:"18.38,192.45,96.82,0.056,-0.142,-0.2,-0.0013"},EPSG_4159:{towgs84:"-194.513,-63.978,-25.759,-3.4027,3.756,-3.352,-0.9175"},EPSG_4687:{towgs84:"0.072,-0.507,-0.245,0.0183,-0.0003,0.007,-0.0093"},EPSG_4227:{towgs84:"-83.58,-397.54,458.78,-17.595,-2.847,4.256,3.225"},EPSG_4746:{towgs84:"599.4,72.4,419.2,-0.062,-0.022,-2.723,6.46"},EPSG_4745:{towgs84:"612.4,77,440.2,-0.054,0.057,-2.797,2.55"},EPSG_6311:{towgs84:"8.846,-4.394,-1.122,-0.00237,-0.146528,0.130428,0.783926"},EPSG_4289:{towgs84:"565.7381,50.4018,465.2904,-1.91514,1.60363,-9.09546,4.07244"},EPSG_4230:{towgs84:"-68.863,-134.888,-111.49,-0.53,-0.14,0.57,-3.4"},EPSG_4154:{towgs84:"-123.02,-158.95,-168.47"},EPSG_4156:{towgs84:"570.8,85.7,462.8,4.998,1.587,5.261,3.56"},EPSG_4299:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4179:{towgs84:"33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84"},EPSG_4313:{towgs84:"-106.8686,52.2978,-103.7239,0.3366,-0.457,1.8422,-1.2747"},EPSG_4194:{towgs84:"163.511,127.533,-159.789"},EPSG_4195:{towgs84:"105,326,-102.5"},EPSG_4196:{towgs84:"-45,417,-3.5"},EPSG_4611:{towgs84:"-162.619,-276.959,-161.764,0.067753,-2.243649,-1.158827,-1.094246"},EPSG_4633:{towgs84:"137.092,131.66,91.475,-1.9436,-11.5993,-4.3321,-7.4824"},EPSG_4641:{towgs84:"-408.809,366.856,-412.987,1.8842,-0.5308,2.1655,-121.0993"},EPSG_4643:{towgs84:"-480.26,-438.32,-643.429,16.3119,20.1721,-4.0349,-111.7002"},EPSG_4300:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4188:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4660:{towgs84:"982.6087,552.753,-540.873,32.39344,-153.25684,-96.2266,16.805"},EPSG_4662:{towgs84:"97.295,-263.247,310.882,-1.5999,0.8386,3.1409,13.3259"},EPSG_3906:{towgs84:"577.88891,165.22205,391.18289,4.9145,-0.94729,-13.05098,7.78664"},EPSG_4307:{towgs84:"-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547"},EPSG_6892:{towgs84:"-76.269,-16.683,68.562,-6.275,10.536,-4.286,-13.686"},EPSG_4690:{towgs84:"221.597,152.441,176.523,2.403,1.3893,0.884,11.4648"},EPSG_4691:{towgs84:"218.769,150.75,176.75,3.5231,2.0037,1.288,10.9817"},EPSG_4629:{towgs84:"72.51,345.411,79.241,-1.5862,-0.8826,-0.5495,1.3653"},EPSG_4630:{towgs84:"165.804,216.213,180.26,-0.6251,-0.4515,-0.0721,7.4111"},EPSG_4692:{towgs84:"217.109,86.452,23.711,0.0183,-0.0003,0.007,-0.0093"},EPSG_9333:{towgs84:"0,0,0,-8.393,0.749,-10.276,0"},EPSG_9059:{towgs84:"0,0,0"},EPSG_4312:{towgs84:"601.705,84.263,485.227,4.7354,1.3145,5.393,-2.3887"},EPSG_4123:{towgs84:"-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496"},EPSG_4309:{towgs84:"-124.45,183.74,44.64,-0.4384,0.5446,-0.9706,-2.1365"},ESRI_104106:{towgs84:"-283.088,-70.693,117.445,-1.157,0.059,-0.652,-4.058"},EPSG_4281:{towgs84:"-219.247,-73.802,269.529"},EPSG_4322:{towgs84:"0,0,4.5"},EPSG_4324:{towgs84:"0,0,1.9"},EPSG_4284:{towgs84:"43.822,-108.842,-119.585,1.455,-0.761,0.737,0.549"},EPSG_4277:{towgs84:"446.448,-125.157,542.06,0.15,0.247,0.842,-20.489"},EPSG_4207:{towgs84:"-282.1,-72.2,120,-1.529,0.145,-0.89,-4.46"},EPSG_4688:{towgs84:"347.175,1077.618,2623.677,33.9058,-70.6776,9.4013,186.0647"},EPSG_4689:{towgs84:"410.793,54.542,80.501,-2.5596,-2.3517,-0.6594,17.3218"},EPSG_4720:{towgs84:"0,0,4.5"},EPSG_4273:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},EPSG_4240:{towgs84:"204.64,834.74,293.8"},EPSG_4817:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},ESRI_104131:{towgs84:"426.62,142.62,460.09,4.98,4.49,-12.42,-17.1"},EPSG_4265:{towgs84:"-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68"},EPSG_4263:{towgs84:"-111.92,-87.85,114.5,1.875,0.202,0.219,0.032"},EPSG_4298:{towgs84:"-689.5937,623.84046,-65.93566,-0.02331,1.17094,-0.80054,5.88536"},EPSG_4270:{towgs84:"-253.4392,-148.452,386.5267,0.15605,0.43,-0.1013,-0.0424"},EPSG_4229:{towgs84:"-121.8,98.1,-10.7"},EPSG_4220:{towgs84:"-55.5,-348,-229.2"},EPSG_4214:{towgs84:"12.646,-155.176,-80.863"},EPSG_4232:{towgs84:"-345,3,223"},EPSG_4238:{towgs84:"-1.977,-13.06,-9.993,0.364,0.254,0.689,-1.037"},EPSG_4168:{towgs84:"-170,33,326"},EPSG_4131:{towgs84:"199,931,318.9"},EPSG_4152:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_5228:{towgs84:"572.213,85.334,461.94,4.9732,1.529,5.2484,3.5378"},EPSG_8351:{towgs84:"485.021,169.465,483.839,7.786342,4.397554,4.102655,0"},EPSG_4683:{towgs84:"-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06"},EPSG_4133:{towgs84:"0,0,0"},EPSG_7373:{towgs84:"0.819,-0.5762,-1.6446,-0.00378,-0.03317,0.00318,0.0693"},EPSG_9075:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9072:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9294:{towgs84:"1.16835,-1.42001,-2.24431,-0.00822,-0.05508,0.01818,0.23388"},EPSG_4212:{towgs84:"-267.434,173.496,181.814,-13.4704,8.7154,7.3926,14.7492"},EPSG_4191:{towgs84:"-44.183,-0.58,-38.489,2.3867,2.7072,-3.5196,-8.2703"},EPSG_4237:{towgs84:"52.684,-71.194,-13.975,-0.312,-0.1063,-0.3729,1.0191"},EPSG_4740:{towgs84:"-1.08,-0.27,-0.9"},EPSG_4124:{towgs84:"419.3836,99.3335,591.3451,0.850389,1.817277,-7.862238,-0.99496"},EPSG_5681:{towgs84:"584.9636,107.7175,413.8067,1.1155,0.2824,-3.1384,7.9922"},EPSG_4141:{towgs84:"23.772,17.49,17.859,-0.3132,-1.85274,1.67299,-5.4262"},EPSG_4204:{towgs84:"-85.645,-273.077,-79.708,2.289,-1.421,2.532,3.194"},EPSG_4319:{towgs84:"226.702,-193.337,-35.371,-2.229,-4.391,9.238,0.9798"},EPSG_4200:{towgs84:"24.82,-131.21,-82.66"},EPSG_4130:{towgs84:"0,0,0"},EPSG_4127:{towgs84:"-82.875,-57.097,-156.768,-2.158,1.524,-0.982,-0.359"},EPSG_4149:{towgs84:"674.374,15.056,405.346"},EPSG_4617:{towgs84:"-0.991,1.9072,0.5129,1.25033e-7,4.6785e-8,5.6529e-8,0"},EPSG_4663:{towgs84:"-210.502,-66.902,-48.476,2.094,-15.067,-5.817,0.485"},EPSG_4664:{towgs84:"-211.939,137.626,58.3,-0.089,0.251,0.079,0.384"},EPSG_4665:{towgs84:"-105.854,165.589,-38.312,-0.003,-0.026,0.024,-0.048"},EPSG_4666:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},EPSG_4756:{towgs84:"-192.873,-39.382,-111.202,-0.00205,-0.0005,0.00335,0.0188"},EPSG_4723:{towgs84:"-179.483,-69.379,-27.584,-7.862,8.163,6.042,-13.925"},EPSG_4726:{towgs84:"8.853,-52.644,180.304,-0.393,-2.323,2.96,-24.081"},EPSG_4267:{towgs84:"-8.0,160.0,176.0"},EPSG_5365:{towgs84:"-0.16959,0.35312,0.51846,0.03385,-0.16325,0.03446,0.03693"},EPSG_4218:{towgs84:"304.5,306.5,-318.1"},EPSG_4242:{towgs84:"-33.722,153.789,94.959,-8.581,-4.478,4.54,8.95"},EPSG_4216:{towgs84:"-292.295,248.758,429.447,4.9971,2.99,6.6906,1.0289"},ESRI_104105:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},ESRI_104129:{towgs84:"0,0,0"},EPSG_4673:{towgs84:"174.05,-25.49,112.57"},EPSG_4202:{towgs84:"-124,-60,154"},EPSG_4203:{towgs84:"-117.763,-51.51,139.061,0.292,0.443,0.277,-0.191"},EPSG_3819:{towgs84:"595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408"},EPSG_8694:{towgs84:"-93.799,-132.737,-219.073,-1.844,0.648,-6.37,-0.169"},EPSG_4145:{towgs84:"275.57,676.78,229.6"},EPSG_4283:{towgs84:"61.55,-10.87,-40.19,39.4924,32.7221,32.8979,-9.994"},EPSG_4317:{towgs84:"2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266"},EPSG_4272:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993"},EPSG_4248:{towgs84:"-307.7,265.3,-363.5"},EPSG_5561:{towgs84:"24,-121,-76"},EPSG_5233:{towgs84:"-0.293,766.95,87.713,0.195704,1.695068,3.473016,-0.039338"},ESRI_104130:{towgs84:"-86,-98,-119"},ESRI_104102:{towgs84:"682,-203,480"},ESRI_37207:{towgs84:"7,-10,-26"},EPSG_4675:{towgs84:"59.935,118.4,-10.871"},ESRI_104109:{towgs84:"-89.121,-348.182,260.871"},ESRI_104112:{towgs84:"-185.583,-230.096,281.361"},ESRI_104113:{towgs84:"25.1,-275.6,222.6"},IGNF_WGS72G:{towgs84:"0,12,6"},IGNF_NTFG:{towgs84:"-168,-60,320"},IGNF_EFATE57G:{towgs84:"-127,-769,472"},IGNF_PGP50G:{towgs84:"324.8,153.6,172.1"},IGNF_REUN47G:{towgs84:"94,-948,-1262"},IGNF_CSG67G:{towgs84:"-186,230,110"},IGNF_GUAD48G:{towgs84:"-467,-16,-300"},IGNF_TAHI51G:{towgs84:"162,117,154"},IGNF_TAHAAG:{towgs84:"65,342,77"},IGNF_NUKU72G:{towgs84:"84,274,65"},IGNF_PETRELS72G:{towgs84:"365,194,166"},IGNF_WALL78G:{towgs84:"253,-133,-127"},IGNF_MAYO50G:{towgs84:"-382,-59,-262"},IGNF_TANNAG:{towgs84:"-139,-967,436"},IGNF_IGN72G:{towgs84:"-13,-348,292"},IGNF_ATIGG:{towgs84:"1118,23,66"},IGNF_FANGA84G:{towgs84:"150.57,158.33,118.32"},IGNF_RUSAT84G:{towgs84:"202.13,174.6,-15.74"},IGNF_KAUE70G:{towgs84:"126.74,300.1,-75.49"},IGNF_MOP90G:{towgs84:"-10.8,-1.8,12.77"},IGNF_MHPF67G:{towgs84:"338.08,212.58,-296.17"},IGNF_TAHI79G:{towgs84:"160.61,116.05,153.69"},IGNF_ANAA92G:{towgs84:"1.5,3.84,4.81"},IGNF_MARQUI72G:{towgs84:"330.91,-13.92,58.56"},IGNF_APAT86G:{towgs84:"143.6,197.82,74.05"},IGNF_TUBU69G:{towgs84:"237.17,171.61,-77.84"},IGNF_STPM50G:{towgs84:"11.363,424.148,373.13"},EPSG_4150:{towgs84:"674.374,15.056,405.346"},EPSG_4754:{towgs84:"-208.4058,-109.8777,-2.5764"},ESRI_104101:{towgs84:"374,150,588"},EPSG_4693:{towgs84:"0,-0.15,0.68"},EPSG_6207:{towgs84:"293.17,726.18,245.36"},EPSG_4153:{towgs84:"-133.63,-157.5,-158.62"},EPSG_4132:{towgs84:"-241.54,-163.64,396.06"},EPSG_4221:{towgs84:"-154.5,150.7,100.4"},EPSG_4266:{towgs84:"-80.7,-132.5,41.1"},EPSG_4193:{towgs84:"-70.9,-151.8,-41.4"},EPSG_5340:{towgs84:"-0.41,0.46,-0.35"},EPSG_4246:{towgs84:"-294.7,-200.1,525.5"},EPSG_4318:{towgs84:"-3.2,-5.7,2.8"},EPSG_4121:{towgs84:"-199.87,74.79,246.62"},EPSG_4223:{towgs84:"-260.1,5.5,432.2"},EPSG_4158:{towgs84:"-0.465,372.095,171.736"},EPSG_4285:{towgs84:"-128.16,-282.42,21.93"},EPSG_4613:{towgs84:"-404.78,685.68,45.47"},EPSG_4607:{towgs84:"195.671,332.517,274.607"},EPSG_4475:{towgs84:"-381.788,-57.501,-256.673"},EPSG_4208:{towgs84:"-157.84,308.54,-146.6"},EPSG_4743:{towgs84:"70.995,-335.916,262.898"},EPSG_4710:{towgs84:"-323.65,551.39,-491.22"},EPSG_7881:{towgs84:"-0.077,0.079,0.086"},EPSG_4682:{towgs84:"283.729,735.942,261.143"},EPSG_4739:{towgs84:"-156,-271,-189"},EPSG_4679:{towgs84:"-80.01,253.26,291.19"},EPSG_4750:{towgs84:"-56.263,16.136,-22.856"},EPSG_4644:{towgs84:"-10.18,-350.43,291.37"},EPSG_4695:{towgs84:"-103.746,-9.614,-255.95"},EPSG_4292:{towgs84:"-355,21,72"},EPSG_4302:{towgs84:"-61.702,284.488,472.052"},EPSG_4143:{towgs84:"-124.76,53,466.79"},EPSG_4606:{towgs84:"-153,153,307"},EPSG_4699:{towgs84:"-770.1,158.4,-498.2"},EPSG_4247:{towgs84:"-273.5,110.6,-357.9"},EPSG_4160:{towgs84:"8.88,184.86,106.69"},EPSG_4161:{towgs84:"-233.43,6.65,173.64"},EPSG_9251:{towgs84:"-9.5,122.9,138.2"},EPSG_9253:{towgs84:"-78.1,101.6,133.3"},EPSG_4297:{towgs84:"-198.383,-240.517,-107.909"},EPSG_4269:{towgs84:"0,0,0"},EPSG_4301:{towgs84:"-147,506,687"},EPSG_4618:{towgs84:"-59,-11,-52"},EPSG_4612:{towgs84:"0,0,0"},EPSG_4678:{towgs84:"44.585,-131.212,-39.544"},EPSG_4250:{towgs84:"-130,29,364"},EPSG_4144:{towgs84:"214,804,268"},EPSG_4147:{towgs84:"-17.51,-108.32,-62.39"},EPSG_4259:{towgs84:"-254.1,-5.36,-100.29"},EPSG_4164:{towgs84:"-76,-138,67"},EPSG_4211:{towgs84:"-378.873,676.002,-46.255"},EPSG_4182:{towgs84:"-422.651,-172.995,84.02"},EPSG_4224:{towgs84:"-143.87,243.37,-33.52"},EPSG_4225:{towgs84:"-205.57,168.77,-4.12"},EPSG_5527:{towgs84:"-67.35,3.88,-38.22"},EPSG_4752:{towgs84:"98,390,-22"},EPSG_4310:{towgs84:"-30,190,89"},EPSG_9248:{towgs84:"-192.26,65.72,132.08"},EPSG_4680:{towgs84:"124.5,-63.5,-281"},EPSG_4701:{towgs84:"-79.9,-158,-168.9"},EPSG_4706:{towgs84:"-146.21,112.63,4.05"},EPSG_4805:{towgs84:"682,-203,480"},EPSG_4201:{towgs84:"-165,-11,206"},EPSG_4210:{towgs84:"-157,-2,-299"},EPSG_4183:{towgs84:"-104,167,-38"},EPSG_4139:{towgs84:"11,72,-101"},EPSG_4668:{towgs84:"-86,-98,-119"},EPSG_4717:{towgs84:"-2,151,181"},EPSG_4732:{towgs84:"102,52,-38"},EPSG_4280:{towgs84:"-377,681,-50"},EPSG_4209:{towgs84:"-138,-105,-289"},EPSG_4261:{towgs84:"31,146,47"},EPSG_4658:{towgs84:"-73,46,-86"},EPSG_4721:{towgs84:"265.025,384.929,-194.046"},EPSG_4222:{towgs84:"-136,-108,-292"},EPSG_4601:{towgs84:"-255,-15,71"},EPSG_4602:{towgs84:"725,685,536"},EPSG_4603:{towgs84:"72,213.7,93"},EPSG_4605:{towgs84:"9,183,236"},EPSG_4621:{towgs84:"137,248,-430"},EPSG_4657:{towgs84:"-28,199,5"},EPSG_4316:{towgs84:"103.25,-100.4,-307.19"},EPSG_4642:{towgs84:"-13,-348,292"},EPSG_4698:{towgs84:"145,-187,103"},EPSG_4192:{towgs84:"-206.1,-174.7,-87.7"},EPSG_4311:{towgs84:"-265,120,-358"},EPSG_4135:{towgs84:"58,-283,-182"},ESRI_104138:{towgs84:"198,-226,-347"},EPSG_4245:{towgs84:"-11,851,5"},EPSG_4142:{towgs84:"-125,53,467"},EPSG_4213:{towgs84:"-106,-87,188"},EPSG_4253:{towgs84:"-133,-77,-51"},EPSG_4129:{towgs84:"-132,-110,-335"},EPSG_4713:{towgs84:"-77,-128,142"},EPSG_4239:{towgs84:"217,823,299"},EPSG_4146:{towgs84:"295,736,257"},EPSG_4155:{towgs84:"-83,37,124"},EPSG_4165:{towgs84:"-173,253,27"},EPSG_4672:{towgs84:"175,-38,113"},EPSG_4236:{towgs84:"-637,-549,-203"},EPSG_4251:{towgs84:"-90,40,88"},EPSG_4271:{towgs84:"-2,374,172"},EPSG_4175:{towgs84:"-88,4,101"},EPSG_4716:{towgs84:"298,-304,-375"},EPSG_4315:{towgs84:"-23,259,-9"},EPSG_4744:{towgs84:"-242.2,-144.9,370.3"},EPSG_4244:{towgs84:"-97,787,86"},EPSG_4293:{towgs84:"616,97,-251"},EPSG_4714:{towgs84:"-127,-769,472"},EPSG_4736:{towgs84:"260,12,-147"},EPSG_6883:{towgs84:"-235,-110,393"},EPSG_6894:{towgs84:"-63,176,185"},EPSG_4205:{towgs84:"-43,-163,45"},EPSG_4256:{towgs84:"41,-220,-134"},EPSG_4262:{towgs84:"639,405,60"},EPSG_4604:{towgs84:"174,359,365"},EPSG_4169:{towgs84:"-115,118,426"},EPSG_4620:{towgs84:"-106,-129,165"},EPSG_4184:{towgs84:"-203,141,53"},EPSG_4616:{towgs84:"-289,-124,60"},EPSG_9403:{towgs84:"-307,-92,127"},EPSG_4684:{towgs84:"-133,-321,50"},EPSG_4708:{towgs84:"-491,-22,435"},EPSG_4707:{towgs84:"114,-116,-333"},EPSG_4709:{towgs84:"145,75,-272"},EPSG_4712:{towgs84:"-205,107,53"},EPSG_4711:{towgs84:"124,-234,-25"},EPSG_4718:{towgs84:"230,-199,-752"},EPSG_4719:{towgs84:"211,147,111"},EPSG_4724:{towgs84:"208,-435,-229"},EPSG_4725:{towgs84:"189,-79,-202"},EPSG_4735:{towgs84:"647,1777,-1124"},EPSG_4722:{towgs84:"-794,119,-298"},EPSG_4728:{towgs84:"-307,-92,127"},EPSG_4734:{towgs84:"-632,438,-609"},EPSG_4727:{towgs84:"912,-58,1227"},EPSG_4729:{towgs84:"185,165,42"},EPSG_4730:{towgs84:"170,42,84"},EPSG_4733:{towgs84:"276,-57,149"},ESRI_37218:{towgs84:"230,-199,-752"},ESRI_37240:{towgs84:"-7,215,225"},ESRI_37221:{towgs84:"252,-209,-751"},ESRI_4305:{towgs84:"-123,-206,219"},ESRI_104139:{towgs84:"-73,-247,227"},EPSG_4748:{towgs84:"51,391,-36"},EPSG_4219:{towgs84:"-384,664,-48"},EPSG_4255:{towgs84:"-333,-222,114"},EPSG_4257:{towgs84:"-587.8,519.75,145.76"},EPSG_4646:{towgs84:"-963,510,-359"},EPSG_6881:{towgs84:"-24,-203,268"},EPSG_6882:{towgs84:"-183,-15,273"},EPSG_4715:{towgs84:"-104,-129,239"},IGNF_RGF93GDD:{towgs84:"0,0,0"},IGNF_RGM04GDD:{towgs84:"0,0,0"},IGNF_RGSPM06GDD:{towgs84:"0,0,0"},IGNF_RGTAAF07GDD:{towgs84:"0,0,0"},IGNF_RGFG95GDD:{towgs84:"0,0,0"},IGNF_RGNCG:{towgs84:"0,0,0"},IGNF_RGPFGDD:{towgs84:"0,0,0"},IGNF_ETRS89G:{towgs84:"0,0,0"},IGNF_RGR92GDD:{towgs84:"0,0,0"},EPSG_4173:{towgs84:"0,0,0"},EPSG_4180:{towgs84:"0,0,0"},EPSG_4619:{towgs84:"0,0,0"},EPSG_4667:{towgs84:"0,0,0"},EPSG_4075:{towgs84:"0,0,0"},EPSG_6706:{towgs84:"0,0,0"},EPSG_7798:{towgs84:"0,0,0"},EPSG_4661:{towgs84:"0,0,0"},EPSG_4669:{towgs84:"0,0,0"},EPSG_8685:{towgs84:"0,0,0"},EPSG_4151:{towgs84:"0,0,0"},EPSG_9702:{towgs84:"0,0,0"},EPSG_4758:{towgs84:"0,0,0"},EPSG_4761:{towgs84:"0,0,0"},EPSG_4765:{towgs84:"0,0,0"},EPSG_8997:{towgs84:"0,0,0"},EPSG_4023:{towgs84:"0,0,0"},EPSG_4670:{towgs84:"0,0,0"},EPSG_4694:{towgs84:"0,0,0"},EPSG_4148:{towgs84:"0,0,0"},EPSG_4163:{towgs84:"0,0,0"},EPSG_4167:{towgs84:"0,0,0"},EPSG_4189:{towgs84:"0,0,0"},EPSG_4190:{towgs84:"0,0,0"},EPSG_4176:{towgs84:"0,0,0"},EPSG_4659:{towgs84:"0,0,0"},EPSG_3824:{towgs84:"0,0,0"},EPSG_3889:{towgs84:"0,0,0"},EPSG_4046:{towgs84:"0,0,0"},EPSG_4081:{towgs84:"0,0,0"},EPSG_4558:{towgs84:"0,0,0"},EPSG_4483:{towgs84:"0,0,0"},EPSG_5013:{towgs84:"0,0,0"},EPSG_5264:{towgs84:"0,0,0"},EPSG_5324:{towgs84:"0,0,0"},EPSG_5354:{towgs84:"0,0,0"},EPSG_5371:{towgs84:"0,0,0"},EPSG_5373:{towgs84:"0,0,0"},EPSG_5381:{towgs84:"0,0,0"},EPSG_5393:{towgs84:"0,0,0"},EPSG_5489:{towgs84:"0,0,0"},EPSG_5593:{towgs84:"0,0,0"},EPSG_6135:{towgs84:"0,0,0"},EPSG_6365:{towgs84:"0,0,0"},EPSG_5246:{towgs84:"0,0,0"},EPSG_7886:{towgs84:"0,0,0"},EPSG_8431:{towgs84:"0,0,0"},EPSG_8427:{towgs84:"0,0,0"},EPSG_8699:{towgs84:"0,0,0"},EPSG_8818:{towgs84:"0,0,0"},EPSG_4757:{towgs84:"0,0,0"},EPSG_9140:{towgs84:"0,0,0"},EPSG_8086:{towgs84:"0,0,0"},EPSG_4686:{towgs84:"0,0,0"},EPSG_4737:{towgs84:"0,0,0"},EPSG_4702:{towgs84:"0,0,0"},EPSG_4747:{towgs84:"0,0,0"},EPSG_4749:{towgs84:"0,0,0"},EPSG_4674:{towgs84:"0,0,0"},EPSG_4755:{towgs84:"0,0,0"},EPSG_4759:{towgs84:"0,0,0"},EPSG_4762:{towgs84:"0,0,0"},EPSG_4763:{towgs84:"0,0,0"},EPSG_4764:{towgs84:"0,0,0"},EPSG_4166:{towgs84:"0,0,0"},EPSG_4170:{towgs84:"0,0,0"},EPSG_5546:{towgs84:"0,0,0"},EPSG_7844:{towgs84:"0,0,0"},EPSG_4818:{towgs84:"589,76,480"}};for(var fe in ce){var he=ce[fe];he.datumName&&(ce[he.datumName]=he)}var de=ce,pe=function(e,t,r,s,u,l,c){var f={};return f.datum_type=void 0===e||"none"===e?5:4,t&&(f.datum_params=t.map(parseFloat),0===f.datum_params[0]&&0===f.datum_params[1]&&0===f.datum_params[2]||(f.datum_type=n),f.datum_params.length>3&&(0===f.datum_params[3]&&0===f.datum_params[4]&&0===f.datum_params[5]&&0===f.datum_params[6]||(f.datum_type=i,f.datum_params[3]*=a,f.datum_params[4]*=a,f.datum_params[5]*=a,f.datum_params[6]=f.datum_params[6]/1e6+1))),c&&(f.datum_type=o,f.grids=c),f.a=r,f.b=s,f.es=u,f.ep2=l,f},ye={};function ge(e){if(0===e.length)return null;var t="@"===e[0];return t&&(e=e.slice(1)),"null"===e?{name:"null",mandatory:!t,grid:null,isNull:!0}:{name:e,mandatory:!t,grid:ye[e]||null,isNull:!1}}function me(e){return e*Math.PI/180}function ve(e){return e/3600*Math.PI/180}function _e(e,t,r){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,r)))}function Se(e){return e.map(function(e){return[ve(e.longitudeShift),ve(e.latitudeShift)]})}function be(e,t,r){return{name:_e(e,t+8,t+16).trim(),parent:_e(e,t+24,t+24+8).trim(),lowerLatitude:e.getFloat64(t+72,r),upperLatitude:e.getFloat64(t+88,r),lowerLongitude:e.getFloat64(t+104,r),upperLongitude:e.getFloat64(t+120,r),latitudeInterval:e.getFloat64(t+136,r),longitudeInterval:e.getFloat64(t+152,r),gridNodeCount:e.getInt32(t+168,r)}}function xe(e,t,r,n,i){var o=t+176,a=16;!1===i&&(a=8);for(var s=[],u=0;u<r.gridNodeCount;u++){var l={latitudeShift:e.getFloat32(o+u*a,n),longitudeShift:e.getFloat32(o+u*a+4,n)};!1!==i&&(l.latitudeAccuracy=e.getFloat32(o+u*a+8,n),l.longitudeAccuracy=e.getFloat32(o+u*a+12,n)),s.push(l)}return s}function we(e,t){if(!(this instanceof we))return new we(e);this.forward=null,this.inverse=null,this.init=null,this.name,this.names=null,this.title,t=t||function(e){if(e)throw e};var r=H(e);if("object"==typeof r){var n=we.projections.get(r.projName);if(n){if(r.datumCode&&"none"!==r.datumCode){var i=S(de,r.datumCode);i&&(r.datum_params=r.datum_params||(i.towgs84?i.towgs84.split(","):null),r.ellps=i.ellipse,r.datumName=i.datumName?i.datumName:r.datumCode)}r.k0=r.k0||1,r.axis=r.axis||"enu",r.ellps=r.ellps||"wgs84",r.lat1=r.lat1||r.lat0;var o=function(e,t,r,n,i){if(!e){var o=S(ue,n);o||(o=le),e=o.a,t=o.b,r=o.rf}return r&&!t&&(t=(1-1/r)*e),(0===r||Math.abs(e-t)<f)&&(i=!0,t=e),{a:e,b:t,rf:r,sphere:i}}(r.a,r.b,r.rf,r.ellps,r.sphere),a=function(e,t,r,n){var i=e*e,o=t*t,a=(i-o)/i,s=0;return n?(i=(e*=1-a*(u+a*(l+a*c)))*e,a=0):s=Math.sqrt(a),{es:a,e:s,ep2:(i-o)/o}}(o.a,o.b,o.rf,r.R_A),s=function(e){return void 0===e?null:e.split(",").map(ge)}(r.nadgrids),h=r.datum||pe(r.datumCode,r.datum_params,o.a,o.b,a.es,a.ep2,s);Y(this,r),Y(this,n),this.a=o.a,this.b=o.b,this.rf=o.rf,this.sphere=o.sphere,this.es=a.es,this.e=a.e,this.ep2=a.ep2,this.datum=h,"init"in this&&"function"==typeof this.init&&this.init(),t(null,this)}else t("Could not get projection name from: "+e)}else t("Could not parse to valid json: "+e)}we.projections=se,we.projections.start();var Ee=we;function Te(e,t,r){var n,i,o,a,u=e.x,l=e.y,c=e.z?e.z:0;if(l<-s&&l>-1.001*s)l=-s;else if(l>s&&l<1.001*s)l=s;else{if(l<-s)return{x:-1/0,y:-1/0,z:e.z};if(l>s)return{x:1/0,y:1/0,z:e.z}}return u>Math.PI&&(u-=2*Math.PI),i=Math.sin(l),a=Math.cos(l),o=i*i,{x:((n=r/Math.sqrt(1-t*o))+c)*a*Math.cos(u),y:(n+c)*a*Math.sin(u),z:(n*(1-t)+c)*i}}function Ie(e,t,r,n){var i,o,a,s,u,l,c,f,h,d,p,y,g,m,v,_=e.x,S=e.y,b=e.z?e.z:0;if(i=Math.sqrt(_*_+S*S),o=Math.sqrt(_*_+S*S+b*b),i/r<1e-12){if(m=0,o/r<1e-12)return v=-n,{x:e.x,y:e.y,z:e.z}}else m=Math.atan2(S,_);a=b/o,f=(s=i/o)*(1-t)*(u=1/Math.sqrt(1-t*(2-t)*s*s)),h=a*u,g=0;do{g++,l=t*(c=r/Math.sqrt(1-t*h*h))/(c+(v=i*f+b*h-c*(1-t*h*h))),y=(p=a*(u=1/Math.sqrt(1-l*(2-l)*s*s)))*f-(d=s*(1-l)*u)*h,f=d,h=p}while(y*y>1e-24&&g<30);return{x:m,y:Math.atan(p/Math.abs(d)),z:v}}function Me(e){return e===n||e===i}var ke=function(e,t,r){if(function(e,t){return e.datum_type===t.datum_type&&!(e.a!==t.a||Math.abs(e.es-t.es)>5e-11)&&(e.datum_type===n?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:e.datum_type!==i||e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6])}(e,t))return r;if(5===e.datum_type||5===t.datum_type)return r;var a=e.a,s=e.es;if(e.datum_type===o){if(0!==Pe(e,!1,r))return;a=6378137,s=.0066943799901413165}var u=t.a,l=t.b,c=t.es;return t.datum_type===o&&(u=6378137,l=6356752.314,c=.0066943799901413165),s!==c||a!==u||Me(e.datum_type)||Me(t.datum_type)?(r=Te(r,s,a),Me(e.datum_type)&&(r=function(e,t,r){if(t===n)return{x:e.x+r[0],y:e.y+r[1],z:e.z+r[2]};if(t===i){var o=r[0],a=r[1],s=r[2],u=r[3],l=r[4],c=r[5],f=r[6];return{x:f*(e.x-c*e.y+l*e.z)+o,y:f*(c*e.x+e.y-u*e.z)+a,z:f*(-l*e.x+u*e.y+e.z)+s}}}(r,e.datum_type,e.datum_params)),Me(t.datum_type)&&(r=function(e,t,r){if(t===n)return{x:e.x-r[0],y:e.y-r[1],z:e.z-r[2]};if(t===i){var o=r[0],a=r[1],s=r[2],u=r[3],l=r[4],c=r[5],f=r[6],h=(e.x-o)/f,d=(e.y-a)/f,p=(e.z-s)/f;return{x:h+c*d-l*p,y:-c*h+d+u*p,z:l*h-u*d+p}}}(r,t.datum_type,t.datum_params)),r=Ie(r,c,u,l),t.datum_type!==o||0===Pe(t,!0,r)?r:void 0):r};function Pe(e,t,r){if(null===e.grids||0===e.grids.length)return console.log("Grid shift grids not found"),-1;var n={x:-r.x,y:r.y},i={x:Number.NaN,y:Number.NaN},o=[];e:for(var a=0;a<e.grids.length;a++){var s=e.grids[a];if(o.push(s.name),s.isNull){i=n;break}if(null!==s.grid)for(var u=s.grid.subgrids,l=0,c=u.length;l<c;l++){var f=u[l],h=(Math.abs(f.del[1])+Math.abs(f.del[0]))/1e4,p=f.ll[0]-h,y=f.ll[1]-h,g=f.ll[0]+(f.lim[0]-1)*f.del[0]+h,m=f.ll[1]+(f.lim[1]-1)*f.del[1]+h;if(!(y>n.y||p>n.x||m<n.y||g<n.x||(i=Le(n,t,f),isNaN(i.x))))break e}else if(s.mandatory)return console.log("Unable to find mandatory grid '"+s.name+"'"),-1}return isNaN(i.x)?(console.log("Failed to find a grid shift table for location '"+-n.x*d+" "+n.y*d+" tried: '"+o+"'"),-1):(r.x=-i.x,r.y=i.y,0)}function Le(e,t,r){var n={x:Number.NaN,y:Number.NaN};if(isNaN(e.x))return n;var i={x:e.x,y:e.y};i.x-=r.ll[0],i.y-=r.ll[1],i.x=Z(i.x-Math.PI)+Math.PI;var o=Oe(i,r);if(t){if(isNaN(o.x))return n;o.x=i.x-o.x,o.y=i.y-o.y;var a,s,u=9;do{if(s=Oe(o,r),isNaN(s.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}a={x:i.x-(s.x+o.x),y:i.y-(s.y+o.y)},o.x+=a.x,o.y+=a.y}while(u--&&Math.abs(a.x)>1e-12&&Math.abs(a.y)>1e-12);if(u<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=Z(o.x+r.ll[0]),n.y=o.y+r.ll[1]}else isNaN(o.x)||(n.x=e.x+o.x,n.y=e.y+o.y);return n}function Oe(e,t){var r,n={x:e.x/t.del[0],y:e.y/t.del[1]},i=Math.floor(n.x),o=Math.floor(n.y),a=n.x-1*i,s=n.y-1*o,u={x:Number.NaN,y:Number.NaN};if(i<0||i>=t.lim[0])return u;if(o<0||o>=t.lim[1])return u;r=o*t.lim[0]+i;var l=t.cvs[r][0],c=t.cvs[r][1];r++;var f=t.cvs[r][0],h=t.cvs[r][1];r+=t.lim[0];var d=t.cvs[r][0],p=t.cvs[r][1];r--;var y=t.cvs[r][0],g=t.cvs[r][1],m=a*s,v=a*(1-s),_=(1-a)*(1-s),S=(1-a)*s;return u.x=_*l+v*f+S*y+m*d,u.y=_*c+v*h+S*g+m*p,u}var Ce=function(e,t,r){var n,i,o,a=r.x,s=r.y,u=r.z||0,l={};for(o=0;o<3;o++)if(!t||2!==o||void 0!==r.z)switch(0===o?(n=a,i=-1!=="ew".indexOf(e.axis[o])?"x":"y"):1===o?(n=s,i=-1!=="ns".indexOf(e.axis[o])?"y":"x"):(n=u,i="z"),e.axis[o]){case"e":l[i]=n;break;case"w":l[i]=-n;break;case"n":l[i]=n;break;case"s":l[i]=-n;break;case"u":void 0!==r[i]&&(l.z=n);break;case"d":void 0!==r[i]&&(l.z=-n);break;default:return null}return l},Ne=function(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t},Re=function(e){Ge(e.x),Ge(e.y)};function Ge(e){if("function"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function Ae(e,t,r,a){var s,u=void 0!==(r=Array.isArray(r)?Ne(r):{x:r.x,y:r.y,z:r.z,m:r.m}).z;if(Re(r),e.datum&&t.datum&&function(e,t){return(e.datum.datum_type===n||e.datum.datum_type===i||e.datum.datum_type===o)&&"WGS84"!==t.datumCode||(t.datum.datum_type===n||t.datum.datum_type===i||t.datum.datum_type===o)&&"WGS84"!==e.datumCode}(e,t)&&(r=Ae(e,s=new Ee("WGS84"),r,a),e=s),a&&"enu"!==e.axis&&(r=Ce(e,!1,r)),"longlat"===e.projName)r={x:r.x*h,y:r.y*h,z:r.z||0};else if(e.to_meter&&(r={x:r.x*e.to_meter,y:r.y*e.to_meter,z:r.z||0}),!(r=e.inverse(r)))return;if(e.from_greenwich&&(r.x+=e.from_greenwich),r=ke(e.datum,t.datum,r))return r=r,t.from_greenwich&&(r={x:r.x-t.from_greenwich,y:r.y,z:r.z||0}),"longlat"===t.projName?r={x:r.x*d,y:r.y*d,z:r.z||0}:(r=t.forward(r),t.to_meter&&(r={x:r.x/t.to_meter,y:r.y/t.to_meter,z:r.z||0})),a&&"enu"!==t.axis?Ce(t,!0,r):(r&&!u&&delete r.z,r)}var Ve=Ee("WGS84");function De(e,t,r,n){var i,o,a;return Array.isArray(r)?(i=Ae(e,t,r,n)||{x:NaN,y:NaN},r.length>2?void 0!==e.name&&"geocent"===e.name||void 0!==t.name&&"geocent"===t.name?"number"==typeof i.z?[i.x,i.y,i.z].concat(r.slice(3)):[i.x,i.y,r[2]].concat(r.slice(3)):[i.x,i.y].concat(r.slice(2)):[i.x,i.y]):(o=Ae(e,t,r,n),2===(a=Object.keys(r)).length?o:(a.forEach(function(n){if(void 0!==e.name&&"geocent"===e.name||void 0!==t.name&&"geocent"===t.name){if("x"===n||"y"===n||"z"===n)return}else if("x"===n||"y"===n)return;o[n]=r[n]}),o))}function Fe(e){return e instanceof Ee?e:"object"==typeof e&&"oProj"in e?e.oProj:Ee(e)}var je=6,Be="AJSAJS",qe="AFAFAF",Ue=65,Je=73,ze=79,We=86,He=90,Ye={forward:Xe,inverse:function(e){var t=$e(tt(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat,t.lon,t.lat]:[t.left,t.bottom,t.right,t.top]},toPoint:Ke};function Xe(e,t){return t=t||5,function(e,t){var r="00000"+e.easting,n="00000"+e.northing;return e.zoneNumber+e.zoneLetter+function(e,t,r){var n=et(r);return function(e,t,r){var n=r-1,i=Be.charCodeAt(n),o=qe.charCodeAt(n),a=i+e-1,s=o+t,u=!1;return a>He&&(a=a-He+Ue-1,u=!0),(a===Je||i<Je&&a>Je||(a>Je||i<Je)&&u)&&a++,(a===ze||i<ze&&a>ze||(a>ze||i<ze)&&u)&&++a===Je&&a++,a>He&&(a=a-He+Ue-1),s>We?(s=s-We+Ue-1,u=!0):u=!1,(s===Je||o<Je&&s>Je||(s>Je||o<Je)&&u)&&s++,(s===ze||o<ze&&s>ze||(s>ze||o<ze)&&u)&&++s===Je&&s++,s>We&&(s=s-We+Ue-1),String.fromCharCode(a)+String.fromCharCode(s)}(Math.floor(e/1e5),Math.floor(t/1e5)%20,n)}(e.easting,e.northing,e.zoneNumber)+r.substr(r.length-5,t)+n.substr(n.length-5,t)}(function(e){var t,r,n,i,o,a,s=e.lat,u=e.lon,l=6378137,c=Ze(s),f=Ze(u);a=Math.floor((u+180)/6)+1,180===u&&(a=60),s>=56&&s<64&&u>=3&&u<12&&(a=32),s>=72&&s<84&&(u>=0&&u<9?a=31:u>=9&&u<21?a=33:u>=21&&u<33?a=35:u>=33&&u<42&&(a=37)),o=Ze(6*(a-1)-180+3),t=l/Math.sqrt(1-.00669438*Math.sin(c)*Math.sin(c)),r=Math.tan(c)*Math.tan(c),n=.006739496752268451*Math.cos(c)*Math.cos(c);var h=.9996*t*((i=Math.cos(c)*(f-o))+(1-r+n)*i*i*i/6+(5-18*r+r*r+72*n-.39089081163157013)*i*i*i*i*i/120)+5e5,d=.9996*(l*(.9983242984503243*c-.002514607064228144*Math.sin(2*c)+2639046602129982e-21*Math.sin(4*c)-3.418046101696858e-9*Math.sin(6*c))+t*Math.tan(c)*(i*i/2+(5-r+9*n+4*n*n)*i*i*i*i/24+(61-58*r+r*r+600*n-2.2240339282485886)*i*i*i*i*i*i/720));return s<0&&(d+=1e7),{northing:Math.round(d),easting:Math.round(h),zoneNumber:a,zoneLetter:function(e){var t="Z";return 84>=s&&s>=72?t="X":72>s&&s>=64?t="W":64>s&&s>=56?t="V":56>s&&s>=48?t="U":48>s&&s>=40?t="T":40>s&&s>=32?t="S":32>s&&s>=24?t="R":24>s&&s>=16?t="Q":16>s&&s>=8?t="P":8>s&&s>=0?t="N":0>s&&s>=-8?t="M":-8>s&&s>=-16?t="L":-16>s&&s>=-24?t="K":-24>s&&s>=-32?t="J":-32>s&&s>=-40?t="H":-40>s&&s>=-48?t="G":-48>s&&s>=-56?t="F":-56>s&&s>=-64?t="E":-64>s&&s>=-72?t="D":-72>s&&s>=-80&&(t="C"),t}()}}({lat:e[1],lon:e[0]}),t)}function Ke(e){var t=$e(tt(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function Ze(e){return e*(Math.PI/180)}function Qe(e){return e/Math.PI*180}function $e(e){var t=e.northing,r=e.easting,n=e.zoneLetter,i=e.zoneNumber;if(i<0||i>60)return null;var o,a,s,u,l,c,f,h,d=6378137,p=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),y=r-5e5,g=t;n<"N"&&(g-=1e7),c=6*(i-1)-180+3,h=(f=g/.9996/6367449.145945056)+(3*p/2-27*p*p*p/32)*Math.sin(2*f)+(21*p*p/16-55*p*p*p*p/32)*Math.sin(4*f)+151*p*p*p/96*Math.sin(6*f),o=d/Math.sqrt(1-.00669438*Math.sin(h)*Math.sin(h)),a=Math.tan(h)*Math.tan(h),s=.006739496752268451*Math.cos(h)*Math.cos(h),u=.99330562*d/Math.pow(1-.00669438*Math.sin(h)*Math.sin(h),1.5),l=y/(.9996*o);var m=h-o*Math.tan(h)/u*(l*l/2-(5+3*a+10*s-4*s*s-.06065547077041606)*l*l*l*l/24+(61+90*a+298*s+45*a*a-1.6983531815716497-3*s*s)*l*l*l*l*l*l/720);m=Qe(m);var v,_=(l-(1+2*a+s)*l*l*l/6+(5-2*s+28*a-3*s*s+.05391597401814761+24*a*a)*l*l*l*l*l/120)/Math.cos(h);if(_=c+Qe(_),e.accuracy){var S=$e({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});v={top:S.lat,right:S.lon,bottom:m,left:_}}else v={lat:m,lon:_};return v}function et(e){var t=e%je;return 0===t&&(t=je),t}function tt(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,r=e.length,n=null,i="",o=0;!/[A-Z]/.test(t=e.charAt(o));){if(o>=2)throw"MGRSPoint bad conversion from: "+e;i+=t,o++}var a=parseInt(i,10);if(0===o||o+3>r)throw"MGRSPoint bad conversion from: "+e;var s=e.charAt(o++);if(s<="A"||"B"===s||"Y"===s||s>="Z"||"I"===s||"O"===s)throw"MGRSPoint zone letter "+s+" not handled: "+e;n=e.substring(o,o+=2);for(var u=et(a),l=function(e,t){for(var r=Be.charCodeAt(t-1),n=1e5,i=!1;r!==e.charCodeAt(0);){if(++r===Je&&r++,r===ze&&r++,r>He){if(i)throw"Bad character: "+e;r=Ue,i=!0}n+=1e5}return n}(n.charAt(0),u),c=function(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;for(var r=qe.charCodeAt(t-1),n=0,i=!1;r!==e.charCodeAt(0);){if(++r===Je&&r++,r===ze&&r++,r>We){if(i)throw"Bad character: "+e;r=Ue,i=!0}n+=1e5}return n}(n.charAt(1),u);c<rt(s);)c+=2e6;var f=r-o;if(f%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+e;var h,d,p,y=f/2,g=0,m=0;return y>0&&(h=1e5/Math.pow(10,y),d=e.substring(o,o+y),g=parseFloat(d)*h,p=e.substring(o+y),m=parseFloat(p)*h),{easting:g+l,northing:m+c,zoneLetter:s,zoneNumber:a,accuracy:h}}function rt(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function nt(e,t,r){if(!(this instanceof nt))return new nt(e,t,r);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if("object"==typeof e)this.x=e.x,this.y=e.y,this.z=e.z||0;else if("string"==typeof e&&void 0===t){var n=e.split(",");this.x=parseFloat(n[0]),this.y=parseFloat(n[1]),this.z=parseFloat(n[2])||0}else this.x=e,this.y=t,this.z=r||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}nt.fromMGRS=function(e){return new nt(Ke(e))},nt.prototype.toMGRS=function(e){return Xe([this.x,this.y],e)};var it=nt,ot=.01068115234375,at=function(e){var t=[];t[0]=1-e*(.25+e*(.046875+e*(.01953125+e*ot))),t[1]=e*(.75-e*(.046875+e*(.01953125+e*ot)));var r=e*e;return t[2]=r*(.46875-e*(.013020833333333334+.007120768229166667*e)),r*=e,t[3]=r*(.3645833333333333-.005696614583333333*e),t[4]=r*e*.3076171875,t},st=function(e,t,r,n){return r*=t,t*=t,n[0]*e-r*(n[1]+t*(n[2]+t*(n[3]+t*n[4])))},ut=function(e,t,r){for(var n=1/(1-t),i=e,o=20;o;--o){var a=Math.sin(i),s=1-t*a*a;if(i-=s=(st(i,a,Math.cos(i),r)-e)*(s*Math.sqrt(s))*n,Math.abs(s)<f)return i}return i},lt={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=at(this.es),this.ml0=st(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(e){var t,r,n,i=e.x,o=e.y,a=Z(i-this.long0,this.over),s=Math.sin(o),u=Math.cos(o);if(this.es){var l=u*a,c=Math.pow(l,2),h=this.ep2*Math.pow(u,2),d=Math.pow(h,2),p=Math.abs(u)>f?Math.tan(o):0,y=Math.pow(p,2),g=Math.pow(y,2);t=1-this.es*Math.pow(s,2),l/=Math.sqrt(t);var m=st(o,s,u,this.en);r=this.a*(this.k0*l*(1+c/6*(1-y+h+c/20*(5-18*y+g+14*h-58*y*h+c/42*(61+179*g-g*y-479*y)))))+this.x0,n=this.a*(this.k0*(m-this.ml0+s*a*l/2*(1+c/12*(5-y+9*h+4*d+c/30*(61+g-58*y+270*h-330*y*h+c/56*(1385+543*g-g*y-3111*y))))))+this.y0}else{var v=u*Math.sin(a);if(Math.abs(Math.abs(v)-1)<f)return 93;if(r=.5*this.a*this.k0*Math.log((1+v)/(1-v))+this.x0,n=u*Math.cos(a)/Math.sqrt(1-Math.pow(v,2)),(v=Math.abs(n))>=1){if(v-1>f)return 93;n=0}else n=Math.acos(n);o<0&&(n=-n),n=this.a*this.k0*(n-this.lat0)+this.y0}return e.x=r,e.y=n,e},inverse:function(e){var t,r,n,i,o=(e.x-this.x0)*(1/this.a),a=(e.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+a/this.k0,r=ut(t,this.es,this.en),Math.abs(r)<s){var u=Math.sin(r),l=Math.cos(r),c=Math.abs(l)>f?Math.tan(r):0,h=this.ep2*Math.pow(l,2),d=Math.pow(h,2),p=Math.pow(c,2),y=Math.pow(p,2);t=1-this.es*Math.pow(u,2);var g=o*Math.sqrt(t)/this.k0,m=Math.pow(g,2);n=r-(t*=c)*m/(1-this.es)*.5*(1-m/12*(5+3*p-9*h*p+h-4*d-m/30*(61+90*p-252*h*p+45*y+46*h-m/56*(1385+3633*p+4095*y+1574*y*p)))),i=Z(this.long0+g*(1-m/6*(1+2*p+h-m/20*(5+28*p+24*y+8*h*p+6*h-m/42*(61+662*p+1320*y+720*y*p))))/l,this.over)}else n=s*K(a),i=0;else{var v=Math.exp(o/this.k0),_=.5*(v-1/v),S=this.lat0+a/this.k0,b=Math.cos(S);t=Math.sqrt((1-Math.pow(b,2))/(1+Math.pow(_,2))),n=Math.asin(t),a<0&&(n=-n),i=0===_&&0===b?0:Z(Math.atan2(_,b)+this.long0,this.over)}return e.x=i,e.y=n,e},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]},ct=function(e){var t=Math.exp(e);return(t-1/t)/2},ft=function(e,t){e=Math.abs(e),t=Math.abs(t);var r=Math.max(e,t),n=Math.min(e,t)/(r||1);return r*Math.sqrt(1+Math.pow(n,2))},ht=function(e,t){for(var r,n=2*Math.cos(2*t),i=e.length-1,o=e[i],a=0;--i>=0;)r=n*o-a+e[i],a=o,o=r;return t+r*Math.sin(2*t)},dt=function(e,t,r){for(var n,i,o=Math.sin(t),a=Math.cos(t),s=ct(r),u=function(e){var t=Math.exp(e);return(t+1/t)/2}(r),l=2*a*u,c=-2*o*s,f=e.length-1,h=e[f],d=0,p=0,y=0;--f>=0;)n=p,i=d,h=l*(p=h)-n-c*(d=y)+e[f],y=c*p-i+l*d;return[(l=o*u)*h-(c=a*s)*y,l*y+c*h]},pt={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(lt.init.apply(this),this.forward=lt.forward,this.inverse=lt.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),r=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),r*=t,this.cgb[1]=r*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=r*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),r*=t,this.cgb[2]=r*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=r*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),r*=t,this.cgb[3]=r*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=r*(1237/630+t*(t*(-24832/14175)-2.4)),r*=t,this.cgb[4]=r*(4174/315+t*(-144838/6237)),this.cbg[4]=r*(-734/315+t*(109598/31185)),r*=t,this.cgb[5]=r*(601676/22275),this.cbg[5]=r*(444337/155925),r=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+r*(.25+r*(1/64+r/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=r*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=r*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),r*=t,this.utg[2]=r*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=r*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),r*=t,this.utg[3]=r*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=r*(49561/161280+t*(-179/168+t*(6601661/7257600))),r*=t,this.utg[4]=r*(-4583/161280+t*(108847/3991680)),this.gtu[4]=r*(34729/80640+t*(-3418889/1995840)),r*=t,this.utg[5]=-.03233083094085698*r,this.gtu[5]=.6650675310896665*r;var n=ht(this.cbg,this.lat0);this.Zb=-this.Qn*(n+function(e,t){for(var r,n=2*Math.cos(t),i=e.length-1,o=e[i],a=0;--i>=0;)r=n*o-a+e[i],a=o,o=r;return Math.sin(t)*r}(this.gtu,2*n))},forward:function(e){var t=Z(e.x-this.long0,this.over),r=e.y;r=ht(this.cbg,r);var n=Math.sin(r),i=Math.cos(r),o=Math.sin(t),a=Math.cos(t);r=Math.atan2(n,a*i),t=Math.atan2(o*i,ft(n,i*a)),t=function(e){var t=Math.abs(e);return t=function(e){var t=1+e,r=t-1;return 0===r?e:e*Math.log(t)/r}(t*(1+t/(ft(1,t)+1))),e<0?-t:t}(Math.tan(t));var s,u,l=dt(this.gtu,2*r,2*t);return r+=l[0],t+=l[1],Math.abs(t)<=2.623395162778?(s=this.a*(this.Qn*t)+this.x0,u=this.a*(this.Qn*r+this.Zb)+this.y0):(s=1/0,u=1/0),e.x=s,e.y=u,e},inverse:function(e){var t,r,n=(e.x-this.x0)*(1/this.a),i=(e.y-this.y0)*(1/this.a);if(i=(i-this.Zb)/this.Qn,n/=this.Qn,Math.abs(n)<=2.623395162778){var o=dt(this.utg,2*i,2*n);i+=o[0],n+=o[1],n=Math.atan(ct(n));var a=Math.sin(i),s=Math.cos(i),u=Math.sin(n),l=Math.cos(n);i=Math.atan2(a*l,ft(u,l*s)),n=Math.atan2(u,l*s),t=Z(n+this.long0,this.over),r=ht(this.cgb,i)}else t=1/0,r=1/0;return e.x=t,e.y=r,e},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"]},yt={init:function(){var e=function(e,t){if(void 0===e){if((e=Math.floor(30*(Z(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}(this.zone,this.long0);if(void 0===e)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*h,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,pt.init.apply(this),this.forward=pt.forward,this.inverse=pt.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"},gt=function(e,t){return Math.pow((1-e)/(1+e),t)},mt={init:function(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+p)/(Math.pow(Math.tan(.5*this.lat0+p),this.C)*gt(this.e*e,this.ratexp))},forward:function(e){var t=e.x,r=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*r+p),this.C)*gt(this.e*Math.sin(r),this.ratexp))-s,e.x=this.C*t,e},inverse:function(e){for(var t=e.x/this.C,r=e.y,n=Math.pow(Math.tan(.5*r+p)/this.K,1/this.C),i=20;i>0&&(r=2*Math.atan(n*gt(this.e*Math.sin(e.y),-.5*this.e))-s,!(Math.abs(r-e.y)<1e-14));--i)e.y=r;return i?(e.x=t,e.y=r,e):null},names:["gauss"]},vt={init:function(){mt.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(e){var t,r,n,i;return e.x=Z(e.x-this.long0,this.over),mt.forward.apply(this,[e]),t=Math.sin(e.y),r=Math.cos(e.y),n=Math.cos(e.x),i=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*r*n),e.x=i*r*Math.sin(e.x),e.y=i*(this.cosc0*t-this.sinc0*r*n),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){var t,r,n,i,o;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,o=ft(e.x,e.y)){var a=2*Math.atan2(o,this.R2);t=Math.sin(a),r=Math.cos(a),i=Math.asin(r*this.sinc0+e.y*t*this.cosc0/o),n=Math.atan2(e.x*t,o*this.cosc0*r-e.y*this.sinc0*t)}else i=this.phic0,n=0;return e.x=n,e.y=i,mt.inverse.apply(this,[e]),e.x=Z(e.x+this.long0,this.over),e},names:["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};function _t(e,t,r){return t*=r,Math.tan(.5*(s+e))*Math.pow((1-t)/(1+t),.5*r)}var St={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=f&&(this.k0=.5*(1+K(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=f&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=f&&Math.abs(Math.cos(this.lat_ts))>f&&(this.k0=.5*this.cons*X(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/Q(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=X(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(_t(this.lat0,this.sinlat0,this.e))-s,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(e){var t,r,n,i,o,a,u=e.x,l=e.y,c=Math.sin(l),h=Math.cos(l),d=Z(u-this.long0,this.over);return Math.abs(Math.abs(u-this.long0)-Math.PI)<=f&&Math.abs(l+this.lat0)<=f?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*c+this.coslat0*h*Math.cos(d)),e.x=this.a*t*h*Math.sin(d)+this.x0,e.y=this.a*t*(this.coslat0*c-this.sinlat0*h*Math.cos(d))+this.y0,e):(r=2*Math.atan(_t(l,c,this.e))-s,i=Math.cos(r),n=Math.sin(r),Math.abs(this.coslat0)<=f?(o=Q(this.e,l*this.con,this.con*c),a=2*this.a*this.k0*o/this.cons,e.x=this.x0+a*Math.sin(u-this.long0),e.y=this.y0-this.con*a*Math.cos(u-this.long0),e):(Math.abs(this.sinlat0)<f?(t=2*this.a*this.k0/(1+i*Math.cos(d)),e.y=t*n):(t=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*n+this.cosX0*i*Math.cos(d))),e.y=t*(this.cosX0*n-this.sinX0*i*Math.cos(d))+this.y0),e.x=t*i*Math.sin(d)+this.x0,e))},inverse:function(e){var t,r,n,i,o;e.x-=this.x0,e.y-=this.y0;var a=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var u=2*Math.atan(a/(2*this.a*this.k0));return t=this.long0,r=this.lat0,a<=f?(e.x=t,e.y=r,e):(r=Math.asin(Math.cos(u)*this.sinlat0+e.y*Math.sin(u)*this.coslat0/a),t=Math.abs(this.coslat0)<f?this.lat0>0?Z(this.long0+Math.atan2(e.x,-1*e.y),this.over):Z(this.long0+Math.atan2(e.x,e.y),this.over):Z(this.long0+Math.atan2(e.x*Math.sin(u),a*this.coslat0*Math.cos(u)-e.y*this.sinlat0*Math.sin(u)),this.over),e.x=t,e.y=r,e)}if(Math.abs(this.coslat0)<=f){if(a<=f)return r=this.lat0,t=this.long0,e.x=t,e.y=r,e;e.x*=this.con,e.y*=this.con,n=a*this.cons/(2*this.a*this.k0),r=this.con*$(this.e,n),t=this.con*Z(this.con*this.long0+Math.atan2(e.x,-1*e.y),this.over)}else i=2*Math.atan(a*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,a<=f?o=this.X0:(o=Math.asin(Math.cos(i)*this.sinX0+e.y*Math.sin(i)*this.cosX0/a),t=Z(this.long0+Math.atan2(e.x*Math.sin(i),a*this.cosX0*Math.cos(i)-e.y*this.sinX0*Math.sin(i)),this.over)),r=-1*$(this.e,Math.tan(.5*(s+o)));return e.x=t,e.y=r,e},names:["stere","Stereographic_South_Pole","Polar_Stereographic_variant_A","Polar_Stereographic_variant_B","Polar_Stereographic"],ssfn_:_t},bt={init:function(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),r=this.a,n=1/this.rf,i=2*n-Math.pow(n,2),o=this.e=Math.sqrt(i);this.R=this.k0*r*Math.sqrt(1-i)/(1-i*Math.pow(t,2)),this.alpha=Math.sqrt(1+i/(1-i)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),s=Math.log(Math.tan(Math.PI/4+e/2)),u=Math.log((1+o*t)/(1-o*t));this.K=a-this.alpha*s+this.alpha*o/2*u},forward:function(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),r=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),n=-this.alpha*(t+r)+this.K,i=2*(Math.atan(Math.exp(n))-Math.PI/4),o=this.alpha*(e.x-this.lambda0),a=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(o))),s=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(o));return e.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,e.x=this.R*a+this.x0,e},inverse:function(e){for(var t=e.x-this.x0,r=e.y-this.y0,n=t/this.R,i=2*(Math.atan(Math.exp(r/this.R))-Math.PI/4),o=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(n)),a=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(i))),s=this.lambda0+a/this.alpha,u=0,l=o,c=-1e3,f=0;Math.abs(l-c)>1e-7;){if(++f>20)return;u=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),c=l,l=2*Math.atan(Math.exp(u))-Math.PI/2}return e.x=s,e.y=l,e},names:["somerc"]},xt=1e-7,wt={init:function(){var e,t,r,n,i,o,a,u,l,c,h,d=0,g=0,m=0,v=0,_=0,S=0,b=0;this.no_off=function(e){var t=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],r="object"==typeof e.projName?Object.keys(e.projName)[0]:e.projName;return"no_uoff"in e||"no_off"in e||-1!==t.indexOf(r)||-1!==t.indexOf(ae(r))}(this),this.no_rot="no_rot"in this;var x=!1;"alpha"in this&&(x=!0);var w=!1;if("rectified_grid_angle"in this&&(w=!0),x&&(b=this.alpha),w&&(d=this.rectified_grid_angle),x||w)g=this.longc;else if(m=this.long1,_=this.lat1,v=this.long2,S=this.lat2,Math.abs(_-S)<=xt||(e=Math.abs(_))<=xt||Math.abs(e-s)<=xt||Math.abs(Math.abs(this.lat0)-s)<=xt||Math.abs(Math.abs(S)-s)<=xt)throw new Error;var E=1-this.es;t=Math.sqrt(E),Math.abs(this.lat0)>f?(u=Math.sin(this.lat0),r=Math.cos(this.lat0),e=1-this.es*u*u,this.B=r*r,this.B=Math.sqrt(1+this.es*this.B*this.B/E),this.A=this.B*this.k0*t/e,(i=(n=this.B*t/(r*Math.sqrt(e)))*n-1)<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=n,this.E*=Math.pow(Q(this.e,this.lat0,u),this.B)):(this.B=1/t,this.A=this.k0,this.E=n=i=1),x||w?(x?(h=Math.asin(Math.sin(b)/n),w||(d=b)):(h=d,b=Math.asin(n*Math.sin(h))),this.lam0=g-Math.asin(.5*(i-1/i)*Math.tan(h))/this.B):(o=Math.pow(Q(this.e,_,Math.sin(_)),this.B),a=Math.pow(Q(this.e,S,Math.sin(S)),this.B),i=this.E/o,l=(a-o)/(a+o),c=((c=this.E*this.E)-a*o)/(c+a*o),(e=m-v)<-Math.PI?v-=y:e>Math.PI&&(v+=y),this.lam0=Z(.5*(m+v)-Math.atan(c*Math.tan(.5*this.B*(m-v))/l)/this.B,this.over),h=Math.atan(2*Math.sin(this.B*Z(m-this.lam0,this.over))/(i-1/i)),d=b=Math.asin(n*Math.sin(h))),this.singam=Math.sin(h),this.cosgam=Math.cos(h),this.sinrot=Math.sin(d),this.cosrot=Math.cos(d),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(n*n-1)/Math.cos(b))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*h,this.v_pole_n=this.ArB*Math.log(Math.tan(p-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(p+i))},forward:function(e){var t,r,n,i,o,a,u,l,c={};if(e.x=e.x-this.lam0,Math.abs(Math.abs(e.y)-s)>f){if(t=.5*((o=this.E/Math.pow(Q(this.e,e.y,Math.sin(e.y)),this.B))-(a=1/o)),r=.5*(o+a),i=Math.sin(this.B*e.x),n=(t*this.singam-i*this.cosgam)/r,Math.abs(Math.abs(n)-1)<f)throw new Error;l=.5*this.ArB*Math.log((1-n)/(1+n)),a=Math.cos(this.B*e.x),u=Math.abs(a)<xt?this.A*e.x:this.ArB*Math.atan2(t*this.cosgam+i*this.singam,a)}else l=e.y>0?this.v_pole_n:this.v_pole_s,u=this.ArB*e.y;return this.no_rot?(c.x=u,c.y=l):(u-=this.u_0,c.x=l*this.cosrot+u*this.sinrot,c.y=u*this.cosrot-l*this.sinrot),c.x=this.a*c.x+this.x0,c.y=this.a*c.y+this.y0,c},inverse:function(e){var t,r,n,i,o,a,u,l={};if(e.x=(e.x-this.x0)*(1/this.a),e.y=(e.y-this.y0)*(1/this.a),this.no_rot?(r=e.y,t=e.x):(r=e.x*this.cosrot-e.y*this.sinrot,t=e.y*this.cosrot+e.x*this.sinrot+this.u_0),i=.5*((n=Math.exp(-this.BrA*r))-1/n),o=.5*(n+1/n),u=((a=Math.sin(this.BrA*t))*this.cosgam+i*this.singam)/o,Math.abs(Math.abs(u)-1)<f)l.x=0,l.y=u<0?-s:s;else{if(l.y=this.E/Math.sqrt((1+u)/(1-u)),l.y=$(this.e,Math.pow(l.y,1/this.B)),l.y===1/0)throw new Error;l.x=-this.rB*Math.atan2(i*this.cosgam-a*this.singam,Math.cos(this.BrA*t))}return l.x+=this.lam0,l},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Variant_B","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]},Et={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<f)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),r=Math.cos(this.lat1),n=X(this.e,t,r),i=Q(this.e,this.lat1,t),o=Math.sin(this.lat2),a=Math.cos(this.lat2),u=X(this.e,o,a),l=Q(this.e,this.lat2,o),c=Math.abs(Math.abs(this.lat0)-s)<f?0:Q(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>f?this.ns=Math.log(n/u)/Math.log(i/l):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=n/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(e){var t=e.x,r=e.y;Math.abs(2*Math.abs(r)-Math.PI)<=f&&(r=K(r)*(s-2*f));var n,i,o=Math.abs(Math.abs(r)-s);if(o>f)n=Q(this.e,r,Math.sin(r)),i=this.a*this.f0*Math.pow(n,this.ns);else{if((o=r*this.ns)<=0)return null;i=0}var a=this.ns*Z(t-this.long0,this.over);return e.x=this.k0*(i*Math.sin(a))+this.x0,e.y=this.k0*(this.rh-i*Math.cos(a))+this.y0,e},inverse:function(e){var t,r,n,i,o,a=(e.x-this.x0)/this.k0,u=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(a*a+u*u),r=1):(t=-Math.sqrt(a*a+u*u),r=-1);var l=0;if(0!==t&&(l=Math.atan2(r*a,r*u)),0!==t||this.ns>0){if(r=1/this.ns,n=Math.pow(t/(this.a*this.f0),r),-9999===(i=$(this.e,n)))return null}else i=-s;return o=Z(l/this.ns+this.long0,this.over),e.x=o,e.y=i,e},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]},Tt={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(e){var t,r,n,i,o,a,s,u=e.x,l=e.y,c=Z(u-this.long0,this.over);return t=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),r=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/t)-this.s45),n=-c*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(r)+Math.sin(this.ad)*Math.cos(r)*Math.cos(n)),o=Math.asin(Math.cos(r)*Math.sin(n)/Math.cos(i)),a=this.n*o,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),e.y=s*Math.cos(a)/1,e.x=s*Math.sin(a)/1,this.czech||(e.y*=-1,e.x*=-1),e},inverse:function(e){var t,r,n,i,o,a,s,u=e.x;e.x=e.y,e.y=u,this.czech||(e.y*=-1,e.x*=-1),o=Math.sqrt(e.x*e.x+e.y*e.y),i=Math.atan2(e.y,e.x)/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),r=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(t)),e.x=this.long0-r/this.alfa,a=t,s=0;var l=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-e.y)<1e-10&&(s=1),a=e.y,l+=1}while(0===s&&l<15);return l>=15?null:e},names:["Krovak","krovak"]},It=function(e,t,r,n,i){return e*i-t*Math.sin(2*i)+r*Math.sin(4*i)-n*Math.sin(6*i)},Mt=function(e){return 1-.25*e*(1+e/16*(3+1.25*e))},kt=function(e){return.375*e*(1+.25*e*(1+.46875*e))},Pt=function(e){return.05859375*e*e*(1+.75*e)},Lt=function(e){return e*e*e*(35/3072)},Ot=function(e,t,r){var n=t*r;return e/Math.sqrt(1-n*n)},Ct=function(e){return Math.abs(e)<s?e:e-K(e)*Math.PI},Nt=function(e,t,r,n,i){var o,a;o=e/t;for(var s=0;s<15;s++)if(o+=a=(e-(t*o-r*Math.sin(2*o)+n*Math.sin(4*o)-i*Math.sin(6*o)))/(t-2*r*Math.cos(2*o)+4*n*Math.cos(4*o)-6*i*Math.cos(6*o)),Math.abs(a)<=1e-10)return o;return NaN},Rt={init:function(){this.sphere||(this.e0=Mt(this.es),this.e1=kt(this.es),this.e2=Pt(this.es),this.e3=Lt(this.es),this.ml0=this.a*It(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(e){var t,r,n=e.x,i=e.y;if(n=Z(n-this.long0,this.over),this.sphere)t=this.a*Math.asin(Math.cos(i)*Math.sin(n)),r=this.a*(Math.atan2(Math.tan(i),Math.cos(n))-this.lat0);else{var o=Math.sin(i),a=Math.cos(i),s=Ot(this.a,this.e,o),u=Math.tan(i)*Math.tan(i),l=n*Math.cos(i),c=l*l,f=this.es*a*a/(1-this.es);t=s*l*(1-c*u*(1/6-(8-u+8*f)*c/120)),r=this.a*It(this.e0,this.e1,this.e2,this.e3,i)-this.ml0+s*o/a*c*(.5+(5-u+6*f)*c/24)}return e.x=t+this.x0,e.y=r+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,r,n=e.x/this.a,i=e.y/this.a;if(this.sphere){var o=i+this.lat0;t=Math.asin(Math.sin(o)*Math.cos(n)),r=Math.atan2(Math.tan(n),Math.cos(o))}else{var a=this.ml0/this.a+i,u=Nt(a,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(u)-s)<=f)return e.x=this.long0,e.y=s,i<0&&(e.y*=-1),e;var l=Ot(this.a,this.e,Math.sin(u)),c=l*l*l/this.a/this.a*(1-this.es),h=Math.pow(Math.tan(u),2),d=n*this.a/l,p=d*d;t=u-l*Math.tan(u)/c*d*d*(.5-(1+3*h)*d*d/24),r=d*(1-p*(h/3+(1+3*h)*h*p/15))/Math.cos(u)}return e.x=Z(r+this.long0,this.over),e.y=Ct(t),e},names:["Cassini","Cassini_Soldner","cass"]},Gt=function(e,t){var r;return e>1e-7?(1-e*e)*(t/(1-(r=e*t)*r)-.5/e*Math.log((1-r)/(1+r))):2*t},At={init:function(){var e,t=Math.abs(this.lat0);if(Math.abs(t-s)<f?this.mode=this.lat0<0?1:2:Math.abs(t)<f?this.mode=3:this.mode=4,this.es>0)switch(this.qp=Gt(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(e){var t,r=[];return r[0]=.3333333333333333*e,t=e*e,r[0]+=.17222222222222222*t,r[1]=.06388888888888888*t,t*=e,r[0]+=.10257936507936508*t,r[1]+=.0664021164021164*t,r[2]=.016415012942191543*t,r}(this.es),this.mode){case 2:case 1:this.dd=1;break;case 3:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case 4:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=Gt(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else 4===this.mode&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(e){var t,r,n,i,o,a,u,l,c,h,d=e.x,y=e.y;if(d=Z(d-this.long0,this.over),this.sphere){if(o=Math.sin(y),h=Math.cos(y),n=Math.cos(d),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((r=this.mode===this.EQUIT?1+h*n:1+this.sinph0*o+this.cosph0*h*n)<=f)return null;t=(r=Math.sqrt(2/r))*h*Math.sin(d),r*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*h*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(y+this.lat0)<f)return null;r=p-.5*y,t=(r=2*(this.mode===this.S_POLE?Math.cos(r):Math.sin(r)))*Math.sin(d),r*=n}}else{switch(u=0,l=0,c=0,n=Math.cos(d),i=Math.sin(d),o=Math.sin(y),a=Gt(this.e,o),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(u=a/this.qp,l=Math.sqrt(1-u*u)),this.mode){case this.OBLIQ:c=1+this.sinb1*u+this.cosb1*l*n;break;case this.EQUIT:c=1+l*n;break;case this.N_POLE:c=s+y,a=this.qp-a;break;case this.S_POLE:c=y-s,a=this.qp+a}if(Math.abs(c)<f)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:c=Math.sqrt(2/c),r=this.mode===this.OBLIQ?this.ymf*c*(this.cosb1*u-this.sinb1*l*n):(c=Math.sqrt(2/(1+l*n)))*u*this.ymf,t=this.xmf*c*l*i;break;case this.N_POLE:case this.S_POLE:a>=0?(t=(c=Math.sqrt(a))*i,r=n*(this.mode===this.S_POLE?c:-c)):t=r=0}}return e.x=this.a*t+this.x0,e.y=this.a*r+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,r,n,i,o,a,u,l=e.x/this.a,c=e.y/this.a;if(this.sphere){var h,d=0,p=0;if((r=.5*(h=Math.sqrt(l*l+c*c)))>1)return null;switch(r=2*Math.asin(r),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(p=Math.sin(r),d=Math.cos(r)),this.mode){case this.EQUIT:r=Math.abs(h)<=f?0:Math.asin(c*p/h),l*=p,c=d*h;break;case this.OBLIQ:r=Math.abs(h)<=f?this.lat0:Math.asin(d*this.sinph0+c*p*this.cosph0/h),l*=p*this.cosph0,c=(d-Math.sin(r)*this.sinph0)*h;break;case this.N_POLE:c=-c,r=s-r;break;case this.S_POLE:r-=s}t=0!==c||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(l,c):0}else{if(u=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(l/=this.dd,c*=this.dd,(a=Math.sqrt(l*l+c*c))<f)return e.x=this.long0,e.y=this.lat0,e;i=2*Math.asin(.5*a/this.rq),n=Math.cos(i),l*=i=Math.sin(i),this.mode===this.OBLIQ?(u=n*this.sinb1+c*i*this.cosb1/a,o=this.qp*u,c=a*this.cosb1*n-c*this.sinb1*i):(u=c*i/a,o=this.qp*u,c=a*n)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(c=-c),!(o=l*l+c*c))return e.x=this.long0,e.y=this.lat0,e;u=1-o/this.qp,this.mode===this.S_POLE&&(u=-u)}t=Math.atan2(l,c),r=function(e,t){var r=e+e;return e+t[0]*Math.sin(r)+t[1]*Math.sin(r+r)+t[2]*Math.sin(r+r+r)}(Math.asin(u),this.apa)}return e.x=Z(this.long0+t,this.over),e.y=r,e},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4},Vt=function(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)},Dt={init:function(){Math.abs(this.lat1+this.lat2)<f||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=X(this.e3,this.sin_po,this.cos_po),this.qs1=Gt(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=X(this.e3,this.sin_po,this.cos_po),this.qs2=Gt(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Gt(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>f?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(e){var t=e.x,r=e.y;this.sin_phi=Math.sin(r),this.cos_phi=Math.cos(r);var n=Gt(this.e3,this.sin_phi),i=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,o=this.ns0*Z(t-this.long0,this.over),a=i*Math.sin(o)+this.x0,s=this.rh-i*Math.cos(o)+this.y0;return e.x=a,e.y=s,e},inverse:function(e){var t,r,n,i,o,a;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),n=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),n=-1),i=0,0!==t&&(i=Math.atan2(n*e.x,n*e.y)),n=t*this.ns0/this.a,this.sphere?a=Math.asin((this.c-n*n)/(2*this.ns0)):(r=(this.c-n*n)/this.ns0,a=this.phi1z(this.e3,r)),o=Z(i/this.ns0+this.long0,this.over),e.x=o,e.y=a,e},names:["Albers_Conic_Equal_Area","Albers_Equal_Area","Albers","aea"],phi1z:function(e,t){var r,n,i,o,a,s=Vt(.5*t);if(e<f)return s;for(var u=e*e,l=1;l<=25;l++)if(r=Math.sin(s),n=Math.cos(s),s+=a=.5*(o=1-(i=e*r)*i)*o/n*(t/(1-u)-r/o+.5/e*Math.log((1-i)/(1+i))),Math.abs(a)<=1e-7)return s;return null}},Ft={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(e){var t,r,n,i,o,a,s,u=e.x,l=e.y;return n=Z(u-this.long0,this.over),t=Math.sin(l),r=Math.cos(l),i=Math.cos(n),(o=this.sin_p14*t+this.cos_p14*r*i)>0||Math.abs(o)<=f?(a=this.x0+1*this.a*r*Math.sin(n)/o,s=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*r*i)/o):(a=this.x0+this.infinity_dist*r*Math.sin(n),s=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*r*i)),e.x=a,e.y=s,e},inverse:function(e){var t,r,n,i,o,a;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(i=Math.atan2(t,this.rc),r=Math.sin(i),n=Math.cos(i),a=Vt(n*this.sin_p14+e.y*r*this.cos_p14/t),o=Math.atan2(e.x*r,t*this.cos_p14*n-e.y*this.sin_p14*r),o=Z(this.long0+o,this.over)):(a=this.phic0,o=0),e.x=o,e.y=a,e},names:["gnom"]},jt={init:function(){this.sphere||(this.k0=X(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(e){var t,r,n=e.x,i=e.y,o=Z(n-this.long0,this.over);if(this.sphere)t=this.x0+this.a*o*Math.cos(this.lat_ts),r=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var a=Gt(this.e,Math.sin(i));t=this.x0+this.a*this.k0*o,r=this.y0+this.a*a*.5/this.k0}return e.x=t,e.y=r,e},inverse:function(e){var t,r;return e.x-=this.x0,e.y-=this.y0,this.sphere?(t=Z(this.long0+e.x/this.a/Math.cos(this.lat_ts),this.over),r=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(r=function(e,t){var r=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-r)<1e-6)return t<0?-1*s:s;for(var n,i,o,a,u=Math.asin(.5*t),l=0;l<30;l++)if(i=Math.sin(u),o=Math.cos(u),a=e*i,u+=n=Math.pow(1-a*a,2)/(2*o)*(t/(1-e*e)-i/(1-a*a)+.5/e*Math.log((1-a)/(1+a))),Math.abs(n)<=1e-10)return u;return NaN}(this.e,2*e.y*this.k0/this.a),t=Z(this.long0+e.x/(this.a*this.k0),this.over)),e.x=t,e.y=r,e},names:["cea"]},Bt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(e){var t=e.x,r=e.y,n=Z(t-this.long0,this.over),i=Ct(r-this.lat0);return e.x=this.x0+this.a*n*this.rc,e.y=this.y0+this.a*i,e},inverse:function(e){var t=e.x,r=e.y;return e.x=Z(this.long0+(t-this.x0)/(this.a*this.rc),this.over),e.y=Ct(this.lat0+(r-this.y0)/this.a),e},names:["Equirectangular","Equidistant_Cylindrical","Equidistant_Cylindrical_Spherical","eqc"]},qt={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Mt(this.es),this.e1=kt(this.es),this.e2=Pt(this.es),this.e3=Lt(this.es),this.ml0=this.a*It(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(e){var t,r,n,i=e.x,o=e.y,a=Z(i-this.long0,this.over);if(n=a*Math.sin(o),this.sphere)Math.abs(o)<=f?(t=this.a*a,r=-1*this.a*this.lat0):(t=this.a*Math.sin(n)/Math.tan(o),r=this.a*(Ct(o-this.lat0)+(1-Math.cos(n))/Math.tan(o)));else if(Math.abs(o)<=f)t=this.a*a,r=-1*this.ml0;else{var s=Ot(this.a,this.e,Math.sin(o))/Math.tan(o);t=s*Math.sin(n),r=this.a*It(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+s*(1-Math.cos(n))}return e.x=t+this.x0,e.y=r+this.y0,e},inverse:function(e){var t,r,n,i,o,a,s,u,l;if(n=e.x-this.x0,i=e.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=f)t=Z(n/this.a+this.long0,this.over),r=0;else{var c;for(a=this.lat0+i/this.a,s=n*n/this.a/this.a+a*a,u=a,o=20;o;--o)if(u+=l=-1*(a*(u*(c=Math.tan(u))+1)-u-.5*(u*u+s)*c)/((u-a)/c-1),Math.abs(l)<=f){r=u;break}t=Z(this.long0+Math.asin(n*Math.tan(u)/this.a)/Math.sin(r),this.over)}else if(Math.abs(i+this.ml0)<=f)r=0,t=Z(this.long0+n/this.a,this.over);else{var h,d,p,y,g;for(a=(this.ml0+i)/this.a,s=n*n/this.a/this.a+a*a,u=a,o=20;o;--o)if(g=this.e*Math.sin(u),h=Math.sqrt(1-g*g)*Math.tan(u),d=this.a*It(this.e0,this.e1,this.e2,this.e3,u),p=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),u-=l=(a*(h*(y=d/this.a)+1)-y-.5*h*(y*y+s))/(this.es*Math.sin(2*u)*(y*y+s-2*a*y)/(4*h)+(a-y)*(h*p-2/Math.sin(2*u))-p),Math.abs(l)<=f){r=u;break}h=Math.sqrt(1-this.es*Math.pow(Math.sin(r),2))*Math.tan(r),t=Z(this.long0+Math.asin(n*h/this.a)/Math.sin(r),this.over)}return e.x=t,e.y=r,e},names:["Polyconic","American_Polyconic","poly"]},Ut={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(e){var t,r=e.x,n=e.y-this.lat0,i=r-this.long0,o=n/a*1e-5,s=i,u=1,l=0;for(t=1;t<=10;t++)u*=o,l+=this.A[t]*u;var c,f=l,h=s,d=1,p=0,y=0,g=0;for(t=1;t<=6;t++)c=p*f+d*h,d=d*f-p*h,p=c,y=y+this.B_re[t]*d-this.B_im[t]*p,g=g+this.B_im[t]*d+this.B_re[t]*p;return e.x=g*this.a+this.x0,e.y=y*this.a+this.y0,e},inverse:function(e){var t,r,n=e.x,i=e.y,o=n-this.x0,s=(i-this.y0)/this.a,u=o/this.a,l=1,c=0,f=0,h=0;for(t=1;t<=6;t++)r=c*s+l*u,l=l*s-c*u,c=r,f=f+this.C_re[t]*l-this.C_im[t]*c,h=h+this.C_im[t]*l+this.C_re[t]*c;for(var d=0;d<this.iterations;d++){var p,y=f,g=h,m=s,v=u;for(t=2;t<=6;t++)p=g*f+y*h,y=y*f-g*h,g=p,m+=(t-1)*(this.B_re[t]*y-this.B_im[t]*g),v+=(t-1)*(this.B_im[t]*y+this.B_re[t]*g);y=1,g=0;var _=this.B_re[1],S=this.B_im[1];for(t=2;t<=6;t++)p=g*f+y*h,y=y*f-g*h,g=p,_+=t*(this.B_re[t]*y-this.B_im[t]*g),S+=t*(this.B_im[t]*y+this.B_re[t]*g);var b=_*_+S*S;f=(m*_+v*S)/b,h=(v*_-m*S)/b}var x=f,w=h,E=1,T=0;for(t=1;t<=9;t++)E*=x,T+=this.D[t]*E;var I=this.lat0+T*a*1e5,M=this.long0+w;return e.x=M,e.y=I,e},names:["New_Zealand_Map_Grid","nzmg"]},Jt={init:function(){},forward:function(e){var t=e.x,r=e.y,n=Z(t-this.long0,this.over),i=this.x0+this.a*n,o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+r/2.5))*1.25;return e.x=i,e.y=o,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t=Z(this.long0+e.x/this.a,this.over),r=2.5*(Math.atan(Math.exp(.8*e.y/this.a))-Math.PI/4);return e.x=t,e.y=r,e},names:["Miller_Cylindrical","mill"]},zt={init:function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=at(this.es)},forward:function(e){var t,r,n=e.x,i=e.y;if(n=Z(n-this.long0,this.over),this.sphere){if(this.m)for(var o=this.n*Math.sin(i),a=20;a;--a){var s=(this.m*i+Math.sin(i)-o)/(this.m+Math.cos(i));if(i-=s,Math.abs(s)<f)break}else i=1!==this.n?Math.asin(this.n*Math.sin(i)):i;t=this.a*this.C_x*n*(this.m+Math.cos(i)),r=this.a*this.C_y*i}else{var u=Math.sin(i),l=Math.cos(i);r=this.a*st(i,u,l,this.en),t=this.a*n*l/Math.sqrt(1-this.es*u*u)}return e.x=t,e.y=r,e},inverse:function(e){var t,r,n,i;return e.x-=this.x0,n=e.x/this.a,e.y-=this.y0,t=e.y/this.a,this.sphere?(t/=this.C_y,n/=this.C_x*(this.m+Math.cos(t)),this.m?t=Vt((this.m*t+Math.sin(t))/this.n):1!==this.n&&(t=Vt(Math.sin(t)/this.n)),n=Z(n+this.long0,this.over),t=Ct(t)):(t=ut(e.y/this.a,this.es,this.en),(i=Math.abs(t))<s?(i=Math.sin(t),r=this.long0+e.x*Math.sqrt(1-this.es*i*i)/(this.a*Math.cos(t)),n=Z(r,this.over)):i-f<s&&(n=this.long0)),e.x=n,e.y=t,e},names:["Sinusoidal","sinu"]},Wt={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0},forward:function(e){for(var t=e.x,r=e.y,n=Z(t-this.long0,this.over),i=r,o=Math.PI*Math.sin(r);;){var a=-(i+Math.sin(i)-o)/(1+Math.cos(i));if(i+=a,Math.abs(a)<f)break}i/=2,Math.PI/2-Math.abs(r)<f&&(n=0);var s=.900316316158*this.a*n*Math.cos(i)+this.x0,u=1.4142135623731*this.a*Math.sin(i)+this.y0;return e.x=s,e.y=u,e},inverse:function(e){var t,r;e.x-=this.x0,e.y-=this.y0,r=e.y/(1.4142135623731*this.a),Math.abs(r)>.999999999999&&(r=.999999999999),t=Math.asin(r);var n=Z(this.long0+e.x/(.900316316158*this.a*Math.cos(t)),this.over);n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),r=(2*t+Math.sin(2*t))/Math.PI,Math.abs(r)>1&&(r=1);var i=Math.asin(r);return e.x=n,e.y=i,e},names:["Mollweide","moll"]},Ht={init:function(){Math.abs(this.lat1+this.lat2)<f||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Mt(this.es),this.e1=kt(this.es),this.e2=Pt(this.es),this.e3=Lt(this.es),this.sin_phi=Math.sin(this.lat1),this.cos_phi=Math.cos(this.lat1),this.ms1=X(this.e,this.sin_phi,this.cos_phi),this.ml1=It(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<f?this.ns=this.sin_phi:(this.sin_phi=Math.sin(this.lat2),this.cos_phi=Math.cos(this.lat2),this.ms2=X(this.e,this.sin_phi,this.cos_phi),this.ml2=It(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=It(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(e){var t,r=e.x,n=e.y;if(this.sphere)t=this.a*(this.g-n);else{var i=It(this.e0,this.e1,this.e2,this.e3,n);t=this.a*(this.g-i)}var o=this.ns*Z(r-this.long0,this.over),a=this.x0+t*Math.sin(o),s=this.y0+this.rh-t*Math.cos(o);return e.x=a,e.y=s,e},inverse:function(e){var t,r,n,i;e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns>=0?(r=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(r=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var o=0;if(0!==r&&(o=Math.atan2(t*e.x,t*e.y)),this.sphere)return i=Z(this.long0+o/this.ns,this.over),n=Ct(this.g-r/this.a),e.x=i,e.y=n,e;var a=this.g-r/this.a;return n=Nt(a,this.e0,this.e1,this.e2,this.e3),i=Z(this.long0+o/this.ns,this.over),e.x=i,e.y=n,e},names:["Equidistant_Conic","eqdc"]},Yt={init:function(){this.R=this.a},forward:function(e){var t,r,n=e.x,i=e.y,o=Z(n-this.long0,this.over);Math.abs(i)<=f&&(t=this.x0+this.R*o,r=this.y0);var a=Vt(2*Math.abs(i/Math.PI));(Math.abs(o)<=f||Math.abs(Math.abs(i)-s)<=f)&&(t=this.x0,r=i>=0?this.y0+Math.PI*this.R*Math.tan(.5*a):this.y0+Math.PI*this.R*-Math.tan(.5*a));var u=.5*Math.abs(Math.PI/o-o/Math.PI),l=u*u,c=Math.sin(a),h=Math.cos(a),d=h/(c+h-1),p=d*d,y=d*(2/c-1),g=y*y,m=Math.PI*this.R*(u*(d-g)+Math.sqrt(l*(d-g)*(d-g)-(g+l)*(p-g)))/(g+l);o<0&&(m=-m),t=this.x0+m;var v=l+d;return m=Math.PI*this.R*(y*v-u*Math.sqrt((g+l)*(l+1)-v*v))/(g+l),r=i>=0?this.y0+m:this.y0-m,e.x=t,e.y=r,e},inverse:function(e){var t,r,n,i,o,a,s,u,l,c,h,d;return e.x-=this.x0,e.y-=this.y0,h=Math.PI*this.R,o=(n=e.x/h)*n+(i=e.y/h)*i,h=3*(i*i/(u=-2*(a=-Math.abs(i)*(1+o))+1+2*i*i+o*o)+(2*(s=a-2*i*i+n*n)*s*s/u/u/u-9*a*s/u/u)/27)/(l=(a-s*s/3/u)/u)/(c=2*Math.sqrt(-l/3)),Math.abs(h)>1&&(h=h>=0?1:-1),d=Math.acos(h)/3,r=e.y>=0?(-c*Math.cos(d+Math.PI/3)-s/3/u)*Math.PI:-(-c*Math.cos(d+Math.PI/3)-s/3/u)*Math.PI,t=Math.abs(n)<f?this.long0:Z(this.long0+Math.PI*(o-1+Math.sqrt(1+2*(n*n-i*i)+o*o))/2/n,this.over),e.x=t,e.y=r,e},names:["Van_der_Grinten_I","VanDerGrinten","Van_der_Grinten","vandg"]},Xt={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0),this.f=this.es/(1+Math.sqrt(1-this.es))},forward:function(e){var t,r,n,i,o,a,u,l,c,h,d,p=e.x,y=e.y,g=Math.sin(e.y),m=Math.cos(e.y),v=Z(p-this.long0,this.over);return this.sphere?Math.abs(this.sin_p12-1)<=f?(e.x=this.x0+this.a*(s-y)*Math.sin(v),e.y=this.y0-this.a*(s-y)*Math.cos(v),e):Math.abs(this.sin_p12+1)<=f?(e.x=this.x0+this.a*(s+y)*Math.sin(v),e.y=this.y0+this.a*(s+y)*Math.cos(v),e):(c=this.sin_p12*g+this.cos_p12*m*Math.cos(v),l=(u=Math.acos(c))?u/Math.sin(u):1,e.x=this.x0+this.a*l*m*Math.sin(v),e.y=this.y0+this.a*l*(this.cos_p12*g-this.sin_p12*m*Math.cos(v)),e):(t=Mt(this.es),r=kt(this.es),n=Pt(this.es),i=Lt(this.es),Math.abs(this.sin_p12-1)<=f?(o=this.a*It(t,r,n,i,s),a=this.a*It(t,r,n,i,y),e.x=this.x0+(o-a)*Math.sin(v),e.y=this.y0-(o-a)*Math.cos(v),e):Math.abs(this.sin_p12+1)<=f?(o=this.a*It(t,r,n,i,s),a=this.a*It(t,r,n,i,y),e.x=this.x0+(o+a)*Math.sin(v),e.y=this.y0+(o+a)*Math.cos(v),e):Math.abs(p)<f&&Math.abs(y-this.lat0)<f?(e.x=e.y=0,e):(d=(h=function(e,t,r,n,i,o){const a=n-t,s=Math.atan((1-o)*Math.tan(e)),u=Math.atan((1-o)*Math.tan(r)),l=Math.sin(s),c=Math.cos(s),f=Math.sin(u),h=Math.cos(u);let d,p,y,g,m,v,_,S,b,x,w,E,T,I,M,k=a,P=100;do{if(p=Math.sin(k),y=Math.cos(k),0===(g=Math.sqrt(h*p*(h*p)+(c*f-l*h*y)*(c*f-l*h*y))))return{azi1:0,s12:0};m=l*f+c*h*y,v=Math.atan2(g,m),d=k,k=a+(1-(x=o/16*(S=1-(_=c*h*p/g)*_)*(4+o*(4-3*S))))*o*_*(v+x*g*((b=0!==S?m-2*l*f/S:0)+x*m*(2*b*b-1)))}while(Math.abs(k-d)>1e-12&&--P>0);return 0===P?{azi1:NaN,s12:NaN}:(M=i*(1-o)*(E=1+(w=S*(i*i-i*(1-o)*(i*(1-o)))/(i*(1-o)*(i*(1-o))))/16384*(4096+w*(w*(320-175*w)-768)))*(v-(I=(T=w/1024*(256+w*(w*(74-47*w)-128)))*g*(b+T/4*(m*(2*b*b-1)-T/6*b*(4*g*g-3)*(4*b*b-3))))),{azi1:Math.atan2(h*p,c*f-l*h*y),s12:M})}(this.lat0,this.long0,y,p,this.a,this.f)).azi1,e.x=h.s12*Math.sin(d),e.y=h.s12*Math.cos(d),e))},inverse:function(e){var t,r,n,i,o,a,u,l,c,h,d,p,y,g,m;if(e.x-=this.x0,e.y-=this.y0,this.sphere){if((t=Math.sqrt(e.x*e.x+e.y*e.y))>2*s*this.a)return;return r=t/this.a,n=Math.sin(r),i=Math.cos(r),o=this.long0,Math.abs(t)<=f?a=this.lat0:(a=Vt(i*this.sin_p12+e.y*n*this.cos_p12/t),u=Math.abs(this.lat0)-s,o=Math.abs(u)<=f?this.lat0>=0?Z(this.long0+Math.atan2(e.x,-e.y),this.over):Z(this.long0-Math.atan2(-e.x,e.y),this.over):Z(this.long0+Math.atan2(e.x*n,t*this.cos_p12*i-e.y*this.sin_p12*n),this.over)),e.x=o,e.y=a,e}return l=Mt(this.es),c=kt(this.es),h=Pt(this.es),d=Lt(this.es),Math.abs(this.sin_p12-1)<=f?(p=this.a*It(l,c,h,d,s),t=Math.sqrt(e.x*e.x+e.y*e.y),a=Nt((p-t)/this.a,l,c,h,d),o=Z(this.long0+Math.atan2(e.x,-1*e.y),this.over),e.x=o,e.y=a,e):Math.abs(this.sin_p12+1)<=f?(p=this.a*It(l,c,h,d,s),t=Math.sqrt(e.x*e.x+e.y*e.y),a=Nt((t-p)/this.a,l,c,h,d),o=Z(this.long0+Math.atan2(e.x,e.y),this.over),e.x=o,e.y=a,e):(y=Math.atan2(e.x,e.y),g=Math.sqrt(e.x*e.x+e.y*e.y),m=function(e,t,r,n,i,o){const a=Math.atan((1-o)*Math.tan(e)),s=Math.sin(a),u=Math.cos(a),l=Math.sin(r),c=Math.cos(r),f=Math.atan2(s,u*c),h=u*l,d=1-h*h,p=d*(i*i-i*(1-o)*(i*(1-o)))/(i*(1-o)*(i*(1-o))),y=1+p/16384*(4096+p*(p*(320-175*p)-768)),g=p/1024*(256+p*(p*(74-47*p)-128));let m,v,_,S,b,x=n/(i*(1-o)*y),w=100;do{v=Math.cos(2*f+x),m=x,x=n/(i*(1-o)*y)+(b=g*(_=Math.sin(x))*(v+g/4*((S=Math.cos(x))*(2*v*v-1)-g/6*v*(4*_*_-3)*(4*v*v-3))))}while(Math.abs(x-m)>1e-12&&--w>0);if(0===w)return{lat2:NaN,lon2:NaN};const E=s*_-u*S*c,T=o/16*d*(4+o*(4-3*d));return{lat2:Math.atan2(s*S+u*_*c,(1-o)*Math.sqrt(h*h+E*E)),lon2:t+(Math.atan2(_*l,u*S-s*_*c)-(1-T)*o*h*(x+T*_*(v+T*S*(2*v*v-1))))}}(this.lat0,this.long0,y,g,this.a,this.f),e.x=m.lon2,e.y=m.lat2,e)},names:["Azimuthal_Equidistant","aeqd"]},Kt={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(e){var t,r,n,i,o,a,s,u=e.x,l=e.y;return n=Z(u-this.long0,this.over),t=Math.sin(l),r=Math.cos(l),i=Math.cos(n),((o=this.sin_p14*t+this.cos_p14*r*i)>0||Math.abs(o)<=f)&&(a=1*this.a*r*Math.sin(n),s=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*r*i)),e.x=a,e.y=s,e},inverse:function(e){var t,r,n,i,o,a,u;return e.x-=this.x0,e.y-=this.y0,t=Math.sqrt(e.x*e.x+e.y*e.y),r=Vt(t/this.a),n=Math.sin(r),i=Math.cos(r),a=this.long0,Math.abs(t)<=f?(u=this.lat0,e.x=a,e.y=u,e):(u=Vt(i*this.sin_p14+e.y*n*this.cos_p14/t),o=Math.abs(this.lat0)-s,Math.abs(o)<=f?(a=this.lat0>=0?Z(this.long0+Math.atan2(e.x,-e.y),this.over):Z(this.long0-Math.atan2(-e.x,e.y),this.over),e.x=a,e.y=u,e):(a=Z(this.long0+Math.atan2(e.x*n,t*this.cos_p14*i-e.y*this.sin_p14*n),this.over),e.x=a,e.y=u,e))},names:["ortho"]},Zt=1,Qt=2,$t=3,er=4,tr=5,rr=6,nr={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function ir(e,t,r,n){var i;return e<f?(n.value=nr.AREA_0,i=0):(i=Math.atan2(t,r),Math.abs(i)<=p?n.value=nr.AREA_0:i>p&&i<=s+p?(n.value=nr.AREA_1,i-=s):i>s+p||i<=-(s+p)?(n.value=nr.AREA_2,i=i>=0?i-g:i+g):(n.value=nr.AREA_3,i+=s)),i}function or(e,t){var r=e+t;return r<-g?r+=y:r>+g&&(r-=y),r}var ar={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=s-p/2?this.face=tr:this.lat0<=-(s-p/2)?this.face=rr:Math.abs(this.long0)<=p?this.face=Zt:Math.abs(this.long0)<=s+p?this.face=this.long0>0?Qt:er:this.face=$t,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(e){var t,r,n,i,o,a,u={x:0,y:0},l={value:0};if(e.x-=this.long0,t=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,r=e.x,this.face===tr)i=s-t,r>=p&&r<=s+p?(l.value=nr.AREA_0,n=r-s):r>s+p||r<=-(s+p)?(l.value=nr.AREA_1,n=r>0?r-g:r+g):r>-(s+p)&&r<=-p?(l.value=nr.AREA_2,n=r+s):(l.value=nr.AREA_3,n=r);else if(this.face===rr)i=s+t,r>=p&&r<=s+p?(l.value=nr.AREA_0,n=-r+s):r<p&&r>=-p?(l.value=nr.AREA_1,n=-r):r<-p&&r>=-(s+p)?(l.value=nr.AREA_2,n=-r-s):(l.value=nr.AREA_3,n=r>0?-r+g:-r-g);else{var c,f,h,d,y,m;this.face===Qt?r=or(r,+s):this.face===$t?r=or(r,+g):this.face===er&&(r=or(r,-s)),d=Math.sin(t),y=Math.cos(t),m=Math.sin(r),c=y*Math.cos(r),f=y*m,h=d,this.face===Zt?n=ir(i=Math.acos(c),h,f,l):this.face===Qt?n=ir(i=Math.acos(f),h,-c,l):this.face===$t?n=ir(i=Math.acos(-c),h,-f,l):this.face===er?n=ir(i=Math.acos(-f),h,c,l):(i=n=0,l.value=nr.AREA_0)}return a=Math.atan(12/g*(n+Math.acos(Math.sin(n)*Math.cos(p))-s)),o=Math.sqrt((1-Math.cos(i))/(Math.cos(a)*Math.cos(a))/(1-Math.cos(Math.atan(1/Math.cos(n))))),l.value===nr.AREA_1?a+=s:l.value===nr.AREA_2?a+=g:l.value===nr.AREA_3&&(a+=1.5*g),u.x=o*Math.cos(a),u.y=o*Math.sin(a),u.x=u.x*this.a+this.x0,u.y=u.y*this.a+this.y0,e.x=u.x,e.y=u.y,e},inverse:function(e){var t,r,n,i,o,a,u,l,c,f,h,d,p={lam:0,phi:0},y={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,r=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),t=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?y.value=nr.AREA_0:e.y>=0&&e.y>=Math.abs(e.x)?(y.value=nr.AREA_1,t-=s):e.x<0&&-e.x>=Math.abs(e.y)?(y.value=nr.AREA_2,t=t<0?t+g:t-g):(y.value=nr.AREA_3,t+=s),c=g/12*Math.tan(t),o=Math.sin(c)/(Math.cos(c)-1/Math.sqrt(2)),a=Math.atan(o),(u=1-(n=Math.cos(t))*n*(i=Math.tan(r))*i*(1-Math.cos(Math.atan(1/Math.cos(a)))))<-1?u=-1:u>1&&(u=1),this.face===tr)l=Math.acos(u),p.phi=s-l,y.value===nr.AREA_0?p.lam=a+s:y.value===nr.AREA_1?p.lam=a<0?a+g:a-g:y.value===nr.AREA_2?p.lam=a-s:p.lam=a;else if(this.face===rr)l=Math.acos(u),p.phi=l-s,y.value===nr.AREA_0?p.lam=-a+s:y.value===nr.AREA_1?p.lam=-a:y.value===nr.AREA_2?p.lam=-a-s:p.lam=a<0?-a-g:-a+g;else{var m,v,_;c=(m=u)*m,v=(c+=(_=c>=1?0:Math.sqrt(1-c)*Math.sin(a))*_)>=1?0:Math.sqrt(1-c),y.value===nr.AREA_1?(c=v,v=-_,_=c):y.value===nr.AREA_2?(v=-v,_=-_):y.value===nr.AREA_3&&(c=v,v=_,_=-c),this.face===Qt?(c=m,m=-v,v=c):this.face===$t?(m=-m,v=-v):this.face===er&&(c=m,m=v,v=-c),p.phi=Math.acos(-_)-s,p.lam=Math.atan2(v,m),this.face===Qt?p.lam=or(p.lam,-s):this.face===$t?p.lam=or(p.lam,-g):this.face===er&&(p.lam=or(p.lam,+s))}return 0!==this.es&&(f=p.phi<0?1:0,h=Math.tan(p.phi),d=this.b/Math.sqrt(h*h+this.one_minus_f_squared),p.phi=Math.atan(Math.sqrt(this.a*this.a-d*d)/(this.one_minus_f*d)),f&&(p.phi=-p.phi)),p.lam+=this.long0,e.x=p.lam,e.y=p.phi,e},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]},sr=[[1,2.2199e-17,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],ur=[[-5.20417e-18,.0124,1.21431e-18,-8.45284e-11],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],lr=d/5,cr=1/lr,fr=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))},hr={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(e){var t=Z(e.x-this.long0,this.over),r=Math.abs(e.y),n=Math.floor(r*lr);n<0?n=0:n>=18&&(n=17);var i={x:fr(sr[n],r=d*(r-cr*n))*t,y:fr(ur[n],r)};return e.y<0&&(i.y=-i.y),i.x=i.x*this.a*.8487+this.x0,i.y=i.y*this.a*1.3523+this.y0,i},inverse:function(e){var t={x:(e.x-this.x0)/(.8487*this.a),y:Math.abs(e.y-this.y0)/(1.3523*this.a)};if(t.y>=1)t.x/=sr[18][0],t.y=e.y<0?-s:s;else{var r=Math.floor(18*t.y);for(r<0?r=0:r>=18&&(r=17);;)if(ur[r][0]>t.y)--r;else{if(!(ur[r+1][0]<=t.y))break;++r}var n=ur[r],i=5*(t.y-n[0])/(ur[r+1][0]-n[0]);i=function(e,t,r,n){for(var i=t;n;--n){var o=e(i);if(i-=o,Math.abs(o)<r)break}return i}(function(e){return(fr(n,e)-t.y)/function(e,t){return e[1]+t*(2*e[2]+3*t*e[3])}(n,e)},i,f,100),t.x/=fr(sr[r],i),t.y=(5*r+i)*h,e.y<0&&(t.y=-t.y)}return t.x=Z(t.x+this.long0,this.over),t},names:["Robinson","robin"]},dr={init:function(){this.name="geocent"},forward:function(e){return Te(e,this.es,this.a)},inverse:function(e){return Ie(e,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]},pr=0,yr=1,gr=2,mr=3,vr={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}},_r={init:function(){if(Object.keys(vr).forEach(function(e){if(void 0===this[e])this[e]=vr[e].def;else{if(vr[e].num&&isNaN(this[e]))throw new Error("Invalid parameter value, must be numeric "+e+" = "+this[e]);vr[e].num&&(this[e]=parseFloat(this[e]))}vr[e].degrees&&(this[e]=this[e]*h)}.bind(this)),Math.abs(Math.abs(this.lat0)-s)<f?this.mode=this.lat0<0?yr:pr:Math.abs(this.lat0)<f?this.mode=gr:(this.mode=mr,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var e=this.tilt,t=this.azi;this.cg=Math.cos(t),this.sg=Math.sin(t),this.cw=Math.cos(e),this.sw=Math.sin(e)},forward:function(e){e.x-=this.long0;var t,r,n,i,o=Math.sin(e.y),a=Math.cos(e.y),s=Math.cos(e.x);switch(this.mode){case mr:r=this.sinph0*o+this.cosph0*a*s;break;case gr:r=a*s;break;case yr:r=-o;break;case pr:r=o}switch(t=(r=this.pn1/(this.p-r))*a*Math.sin(e.x),this.mode){case mr:r*=this.cosph0*o-this.sinph0*a*s;break;case gr:r*=o;break;case pr:r*=-a*s;break;case yr:r*=a*s}return i=1/((n=r*this.cg+t*this.sg)*this.sw*this.h1+this.cw),t=(t*this.cg-r*this.sg)*this.cw*i,r=n*i,e.x=t*this.a,e.y=r*this.a,e},inverse:function(e){e.x/=this.a,e.y/=this.a;var t,r,n,i={x:e.x,y:e.y};n=1/(this.pn1-e.y*this.sw),t=this.pn1*e.x*n,r=this.pn1*e.y*this.cw*n,e.x=t*this.cg+r*this.sg,e.y=r*this.cg-t*this.sg;var o=ft(e.x,e.y);if(Math.abs(o)<f)i.x=0,i.y=e.y;else{var a,s;switch(s=1-o*o*this.pfact,s=(this.p-Math.sqrt(s))/(this.pn1/o+o/this.pn1),a=Math.sqrt(1-s*s),this.mode){case mr:i.y=Math.asin(a*this.sinph0+e.y*s*this.cosph0/o),e.y=(a-this.sinph0*Math.sin(i.y))*o,e.x*=s*this.cosph0;break;case gr:i.y=Math.asin(e.y*s/o),e.y=a*o,e.x*=s;break;case pr:i.y=Math.asin(a),e.y=-e.y;break;case yr:i.y=-Math.asin(a)}i.x=Math.atan2(e.x,e.y)}return e.x=i.x+this.long0,e.y=i.y,e},names:["Tilted_Perspective","tpers"]},Sr={init:function(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var e=1-this.es,t=1/e;this.radius_p=Math.sqrt(e),this.radius_p2=e,this.radius_p_inv2=t,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function(e){var t,r,n,i,o=e.x,a=e.y;if(o-=this.long0,"ellipse"===this.shape){a=Math.atan(this.radius_p2*Math.tan(a));var s=this.radius_p/ft(this.radius_p*Math.cos(a),Math.sin(a));if(r=s*Math.cos(o)*Math.cos(a),n=s*Math.sin(o)*Math.cos(a),i=s*Math.sin(a),(this.radius_g-r)*r-n*n-i*i*this.radius_p_inv2<0)return e.x=Number.NaN,e.y=Number.NaN,e;t=this.radius_g-r,this.flip_axis?(e.x=this.radius_g_1*Math.atan(n/ft(i,t)),e.y=this.radius_g_1*Math.atan(i/t)):(e.x=this.radius_g_1*Math.atan(n/t),e.y=this.radius_g_1*Math.atan(i/ft(n,t)))}else"sphere"===this.shape&&(t=Math.cos(a),r=Math.cos(o)*t,n=Math.sin(o)*t,i=Math.sin(a),t=this.radius_g-r,this.flip_axis?(e.x=this.radius_g_1*Math.atan(n/ft(i,t)),e.y=this.radius_g_1*Math.atan(i/t)):(e.x=this.radius_g_1*Math.atan(n/t),e.y=this.radius_g_1*Math.atan(i/ft(n,t))));return e.x=e.x*this.a,e.y=e.y*this.a,e},inverse:function(e){var t,r,n,i,o=-1,a=0,s=0;if(e.x=e.x/this.a,e.y=e.y/this.a,"ellipse"===this.shape){this.flip_axis?(s=Math.tan(e.y/this.radius_g_1),a=Math.tan(e.x/this.radius_g_1)*ft(1,s)):(a=Math.tan(e.x/this.radius_g_1),s=Math.tan(e.y/this.radius_g_1)*ft(1,a));var u=s/this.radius_p;if(t=a*a+u*u+o*o,(n=(r=2*this.radius_g*o)*r-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;i=(-r-Math.sqrt(n))/(2*t),o=this.radius_g+i*o,a*=i,s*=i,e.x=Math.atan2(a,o),e.y=Math.atan(s*Math.cos(e.x)/o),e.y=Math.atan(this.radius_p_inv2*Math.tan(e.y))}else if("sphere"===this.shape){if(this.flip_axis?(s=Math.tan(e.y/this.radius_g_1),a=Math.tan(e.x/this.radius_g_1)*Math.sqrt(1+s*s)):(a=Math.tan(e.x/this.radius_g_1),s=Math.tan(e.y/this.radius_g_1)*Math.sqrt(1+a*a)),t=a*a+s*s+o*o,(n=(r=2*this.radius_g*o)*r-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;i=(-r-Math.sqrt(n))/(2*t),o=this.radius_g+i*o,a*=i,s*=i,e.x=Math.atan2(a,o),e.y=Math.atan(s*Math.cos(e.x)/o)}return e.x=e.x+this.long0,e},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]},br=1.340264,xr=-.081106,wr=893e-6,Er=.003796,Tr=Math.sqrt(3)/2,Ir={init:function(){this.es=0,this.long0=void 0!==this.long0?this.long0:0,this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0},forward:function(e){var t=Z(e.x-this.long0,this.over),r=e.y,n=Math.asin(Tr*Math.sin(r)),i=n*n,o=i*i*i;return e.x=t*Math.cos(n)/(Tr*(br+3*xr*i+o*(7*wr+9*Er*i))),e.y=n*(br+xr*i+o*(wr+Er*i)),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a;var t,r,n,i,o=e.y;for(i=0;i<12&&(o-=n=(o*(br+xr*(t=o*o)+(r=t*t*t)*(wr+Er*t))-e.y)/(br+3*xr*t+r*(7*wr+9*Er*t)),!(Math.abs(n)<1e-9));++i);return r=(t=o*o)*t*t,e.x=Tr*e.x*(br+3*xr*t+r*(7*wr+9*Er*t))/Math.cos(o),e.y=Math.asin(Math.sin(o)/Tr),e.x=Z(e.x+this.long0,this.over),e},names:["eqearth","Equal Earth","Equal_Earth"]},Mr=1e-10;function kr(e){var t,r,n,i=Z(e.x-(this.long0||0),this.over),o=e.y;return t=this.am1+this.m1-st(o,r=Math.sin(o),n=Math.cos(o),this.en),r=n*i/(t*Math.sqrt(1-this.es*r*r)),e.x=t*Math.sin(r),e.y=this.am1-t*Math.cos(r),e.x=this.a*e.x+(this.x0||0),e.y=this.a*e.y+(this.y0||0),e}function Pr(e){var t,r,n,i;if(e.x=(e.x-(this.x0||0))/this.a,e.y=(e.y-(this.y0||0))/this.a,r=ft(e.x,e.y=this.am1-e.y),i=ut(this.am1+this.m1-r,this.es,this.en),(t=Math.abs(i))<s)t=Math.sin(i),n=r*Math.atan2(e.x,e.y)*Math.sqrt(1-this.es*t*t)/Math.cos(i);else{if(!(Math.abs(t-s)<=Mr))throw new Error;n=0}return e.x=Z(n+(this.long0||0),this.over),e.y=Ct(i),e}function Lr(e){var t,r,n=Z(e.x-(this.long0||0),this.over),i=e.y;return r=this.cphi1+this.phi1-i,Math.abs(r)>Mr?(e.x=r*Math.sin(t=n*Math.cos(i)/r),e.y=this.cphi1-r*Math.cos(t)):e.x=e.y=0,e.x=this.a*e.x+(this.x0||0),e.y=this.a*e.y+(this.y0||0),e}function Or(e){var t,r;e.x=(e.x-(this.x0||0))/this.a,e.y=(e.y-(this.y0||0))/this.a;var n=ft(e.x,e.y=this.cphi1-e.y);if(r=this.cphi1+this.phi1-n,Math.abs(r)>s)throw new Error;return t=Math.abs(Math.abs(r)-s)<=Mr?0:n*Math.atan2(e.x,e.y)/Math.cos(r),e.x=Z(t+(this.long0||0),this.over),e.y=Ct(r),e}var Cr={init:function(){var e;if(this.phi1=this.lat1,Math.abs(this.phi1)<Mr)throw new Error;this.es?(this.en=at(this.es),this.m1=st(this.phi1,this.am1=Math.sin(this.phi1),e=Math.cos(this.phi1),this.en),this.am1=e/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=Pr,this.forward=kr):(Math.abs(this.phi1)+Mr>=s?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=Or,this.forward=Lr)},names:["bonne","Bonne (Werner lat_1=90)"]};const Nr={OBLIQUE:{forward:function(e,t){let{x:r,y:n}=t;r+=e.long0;const i=Math.cos(r),o=Math.sin(n),a=Math.cos(n);t.x=Z(Math.atan2(a*Math.sin(r),e.sphip*a*i+e.cphip*o)+e.lamp),t.y=Math.asin(e.sphip*o-e.cphip*a*i);const s=e.obliqueProjection.forward(t);return e.isIdentity&&(s.x*=d,s.y*=d),s},inverse:function(e,t){e.isIdentity&&(t.x*=h,t.y*=h);const r=e.obliqueProjection.inverse(t);let{x:n,y:i}=r;if(n<Number.MAX_VALUE){n-=e.lamp;const r=Math.cos(n),o=Math.sin(i),a=Math.cos(i);t.x=Math.atan2(a*Math.sin(n),e.sphip*a*r-e.cphip*o),t.y=Math.asin(e.sphip*o+e.cphip*a*r)}return t.x=Z(t.x+e.long0),t}},TRANSVERSE:{forward:function(e,t){let{x:r,y:n}=t;r+=e.long0;const i=Math.cos(n),o=Math.cos(r);t.x=Z(Math.atan2(i*Math.sin(r),Math.sin(n))+e.lamp),t.y=Math.asin(-1*i*o);const a=e.obliqueProjection.forward(t);return e.isIdentity&&(a.x*=d,a.y*=d),a},inverse:function(e,t){e.isIdentity&&(t.x*=h,t.y*=h);const r=e.obliqueProjection.inverse(t);let{x:n,y:i}=r;if(n<Number.MAX_VALUE){const r=Math.cos(i);n-=e.lamp,t.x=Math.atan2(r*Math.sin(n),-1*Math.sin(i)),t.y=Math.asin(r*Math.cos(n))}return t.x=Z(t.x+e.long0),t}}},Rr={ROTATE:{o_alpha:"oAlpha",o_lon_c:"oLongC",o_lat_c:"oLatC"},NEW_POLE:{o_lat_p:"oLatP",o_lon_p:"oLongP"},NEW_EQUATOR:{o_lon_1:"oLong1",o_lat_1:"oLat1",o_lon_2:"oLong2",o_lat_2:"oLat2"}};var Gr={init:function(){if(this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.title=this.title||"General Oblique Transformation",this.isIdentity=te.includes(this.o_proj),!this.o_proj)throw new Error("Missing parameter: o_proj");if("ob_tran"===this.o_proj)throw new Error("Invalid value for o_proj: "+this.o_proj);const e=this.projStr.replace("+proj=ob_tran","").replace("+o_proj=","+proj=").trim(),t=Ee(e);if(!t)throw new Error("Invalid parameter: o_proj. Unknown projection "+this.o_proj);let r;t.long0=0,this.obliqueProjection=t;const n=Object.keys(Rr),i=e=>{if(void 0===this[e])return;const t=parseFloat(this[e])*h;if(isNaN(t))throw new Error("Invalid value for "+e+": "+this[e]);return t};for(let e=0;e<n.length;e++){const t=n[e],o=Rr[t],a=Object.entries(o);if(a.some(([e])=>void 0!==this[e])){r=o;for(let e=0;e<a.length;e++){const[t,r]=a[e],n=i(t);if(void 0===n)throw new Error("Missing parameter: "+t+".");this[r]=n}break}}if(!r)throw new Error("No valid parameters provided for ob_tran projection.");const{lamp:o,phip:a}=function(e,t){let r,n;if(t===Rr.ROTATE){let t=e.oLongC,i=e.oLatC,o=e.oAlpha;if(Math.abs(Math.abs(i)-s)<=f)throw new Error("Invalid value for o_lat_c: "+e.o_lat_c+" should be < 90°");n=t+Math.atan2(-1*Math.cos(o),-1*Math.sin(o)*Math.sin(i)),r=Math.asin(Math.cos(i)*Math.sin(o))}else if(t===Rr.NEW_POLE)n=e.oLongP,r=e.oLatP;else{let t=e.oLong1,i=e.oLat1,o=e.oLong2,a=e.oLat2,u=Math.abs(i);if(Math.abs(i)>s-f)throw new Error("Invalid value for o_lat_1: "+e.o_lat_1+" should be < 90°");if(Math.abs(a)>s-f)throw new Error("Invalid value for o_lat_2: "+e.o_lat_2+" should be < 90°");if(Math.abs(i-a)<f)throw new Error("Invalid value for o_lat_1 and o_lat_2: o_lat_1 should be different from o_lat_2");if(u<f)throw new Error("Invalid value for o_lat_1: o_lat_1 should be different from zero");n=Math.atan2(Math.cos(i)*Math.sin(a)*Math.cos(t)-Math.sin(i)*Math.cos(a)*Math.cos(o),Math.sin(i)*Math.cos(a)*Math.sin(o)-Math.cos(i)*Math.sin(a)*Math.sin(t)),r=Math.atan(-1*Math.cos(n-t)/Math.tan(i))}return{lamp:n,phip:r}}(this,r);this.lamp=o,Math.abs(a)>f?(this.cphip=Math.cos(a),this.sphip=Math.sin(a),this.projectionType=Nr.OBLIQUE):this.projectionType=Nr.TRANSVERSE},forward:function(e){return this.projectionType.forward(this,e)},inverse:function(e){return this.projectionType.inverse(this,e)},names:["General Oblique Transformation","General_Oblique_Transformation","ob_tran"]};const Ar=Object.assign(function(e,t,r){var n,i,o,a=!1;return void 0===t?(i=Fe(e),n=Ve,a=!0):(void 0!==t.x||Array.isArray(t))&&(r=t,i=Fe(e),n=Ve,a=!0),n||(n=Fe(e)),i||(i=Fe(t)),r?De(n,i,r):(o={forward:function(e,t){return De(n,i,e,t)},inverse:function(e,t){return De(i,n,e,t)}},a&&(o.oProj=i),o)},{defaultDatum:"WGS84",Proj:Ee,WGS84:new Ee("WGS84"),Point:it,toPoint:Ne,defs:z,nadgrid:function(e,t,r){return t instanceof ArrayBuffer?function(e,t,r){var n=!0;void 0!==r&&!1===r.includeErrorFields&&(n=!1);var i=new DataView(t),o=function(e){var t=e.getInt32(8,!1);return 11!==t&&(11!==(t=e.getInt32(8,!0))&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}(i),a=function(e,t){return{nFields:e.getInt32(8,t),nSubgridFields:e.getInt32(24,t),nSubgrids:e.getInt32(40,t),shiftType:_e(e,56,64).trim(),fromSemiMajorAxis:e.getFloat64(120,t),fromSemiMinorAxis:e.getFloat64(136,t),toSemiMajorAxis:e.getFloat64(152,t),toSemiMinorAxis:e.getFloat64(168,t)}}(i,o),s=function(e,t,r,n){for(var i=176,o=[],a=0;a<t.nSubgrids;a++){var s=be(e,i,r),u=xe(e,i,s,r,n),l=Math.round(1+(s.upperLongitude-s.lowerLongitude)/s.longitudeInterval),c=Math.round(1+(s.upperLatitude-s.lowerLatitude)/s.latitudeInterval);o.push({ll:[ve(s.lowerLongitude),ve(s.lowerLatitude)],del:[ve(s.longitudeInterval),ve(s.latitudeInterval)],lim:[l,c],count:s.gridNodeCount,cvs:Se(u)});var f=16;!1===n&&(f=8),i+=176+s.gridNodeCount*f}return o}(i,a,o,n),u={header:a,subgrids:s};return ye[e]=u,u}(e,t,r):{ready:async function(e,t){for(var r=[],n=await t.getImageCount(),i=n-1;i>=0;i--){var o=await t.getImage(i),a=await o.readRasters(),s=[o.getWidth(),o.getHeight()],u=o.getBoundingBox().map(me),l=[o.fileDirectory.ModelPixelScale[0],o.fileDirectory.ModelPixelScale[1]].map(me),c=u[0]+(s[0]-1)*l[0],f=u[3]-(s[1]-1)*l[1],h=a[0],d=a[1],p=[];for(let e=s[1]-1;e>=0;e--)for(let t=s[0]-1;t>=0;t--){var y=e*s[0]+t;p.push([-ve(d[y]),ve(h[y])])}r.push({del:l,lim:s,ll:[-c,f],cvs:p})}var g={header:{nSubgrids:n},subgrids:r};return ye[e]=g,g}(e,t)}},transform:Ae,mgrs:Ye,version:"__VERSION__"});!function(e){e.Proj.projections.add(lt),e.Proj.projections.add(pt),e.Proj.projections.add(yt),e.Proj.projections.add(vt),e.Proj.projections.add(St),e.Proj.projections.add(bt),e.Proj.projections.add(wt),e.Proj.projections.add(Et),e.Proj.projections.add(Tt),e.Proj.projections.add(Rt),e.Proj.projections.add(At),e.Proj.projections.add(Dt),e.Proj.projections.add(Ft),e.Proj.projections.add(jt),e.Proj.projections.add(Bt),e.Proj.projections.add(qt),e.Proj.projections.add(Ut),e.Proj.projections.add(Jt),e.Proj.projections.add(zt),e.Proj.projections.add(Wt),e.Proj.projections.add(Ht),e.Proj.projections.add(Yt),e.Proj.projections.add(Xt),e.Proj.projections.add(Kt),e.Proj.projections.add(ar),e.Proj.projections.add(hr),e.Proj.projections.add(dr),e.Proj.projections.add(_r),e.Proj.projections.add(Sr),e.Proj.projections.add(Ir),e.Proj.projections.add(Cr),e.Proj.projections.add(Gr)}(Ar),t.default=Ar},function(e,t,r){r(270),e.exports=r(18).Object.keys},function(e,t,r){var n=r(63),i=r(74);r(125)("keys",function(){return function(e){return i(n(e))}})},function(e,t,r){var n=r(53),i=r(104),o=r(272);e.exports=function(e){return function(t,r,a){var s,u=n(t),l=i(u.length),c=o(a,l);if(e&&r!=r){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===r)return e||c||0;return!e&&-1}}},function(e,t,r){var n=r(121),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=n(e))<0?i(e+t,0):o(e,t)}},function(e,t){},function(e,t,r){e.exports=function(e){return function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,r=t.init;(t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],i=0;i<t;i++)n[i>>>2]|=e[i]<<24-i%4*8;r.call(this,n,t)}else r.apply(this,arguments)}).prototype=t}}(),e.lib.WordArray}(r(14))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib.WordArray,n=t.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i+=2){var o=t[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return r.create(n,2*t)}},n.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o+=2){var a=i(t[o>>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o<t;o++)n[o>>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return r.create(n,2*t)}}}(),e.enc.Utf16}(r(14))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib.WordArray;t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,n=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],a=0;a<n;a+=3)for(var s=(r[a>>>2]>>>24-a%4*8&255)<<16|(r[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|r[a+2>>>2]>>>24-(a+2)%4*8&255,u=0;u<4&&a+.75*u<n;u++)o.push(i.charAt(s>>>6*(3-u)&63));var l=i.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,i=t?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<i.length;a++)o[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var u=e.indexOf(s);-1!==u&&(n=u)}return function(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return r.create(i,o)}(e,n,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url}(r(14))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib.WordArray,n=t.algo,i=n.SHA256,o=n.SHA224=i.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=i._createHelper(o),t.HmacSHA224=i._createHmacHelper(o)}(),e.SHA224}(r(14),r(129))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.x64,n=r.Word,i=r.WordArray,o=t.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new i.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=a._createHelper(s),t.HmacSHA384=a._createHmacHelper(s)}(),e.SHA384}(r(14),r(106),r(172))},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.x64.Word,s=r.algo,u=[],l=[],c=[];!function(){for(var e=1,t=0,r=0;r<24;r++){u[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,f=0,h=0;h<7;h++){if(1&i){var d=(1<<h)-1;d<32?f^=1<<d:s^=1<<d-32}128&i?i=i<<1^113:i<<=1}c[o]=a.create(s,f)}}();var f=[];!function(){for(var e=0;e<25;e++)f[e]=a.create()}();var h=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var r=this._state,n=this.blockSize/2,i=0;i<n;i++){var o=e[t+2*i],a=e[t+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(k=r[i]).high^=a,k.low^=o}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var d=0,p=0,y=0;y<5;y++)d^=(k=r[h+5*y]).high,p^=k.low;var g=f[h];g.high=d,g.low=p}for(h=0;h<5;h++){var m=f[(h+4)%5],v=f[(h+1)%5],_=v.high,S=v.low;for(d=m.high^(_<<1|S>>>31),p=m.low^(S<<1|_>>>31),y=0;y<5;y++)(k=r[h+5*y]).high^=d,k.low^=p}for(var b=1;b<25;b++){var x=(k=r[b]).high,w=k.low,E=u[b];E<32?(d=x<<E|w>>>32-E,p=w<<E|x>>>32-E):(d=w<<E-32|x>>>64-E,p=x<<E-32|w>>>64-E);var T=f[l[b]];T.high=d,T.low=p}var I=f[0],M=r[0];for(I.high=M.high,I.low=M.low,h=0;h<5;h++)for(y=0;y<5;y++){var k=r[b=h+5*y],P=f[b],L=f[(h+1)%5+5*y],O=f[(h+2)%5+5*y];k.high=P.high^~L.high&O.high,k.low=P.low^~L.low&O.low}k=r[0];var C=c[s];k.high^=C.high,k.low^=C.low}},_doFinalize:function(){var e=this._data,r=e.words,n=(this._nDataBytes,8*e.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(t.ceil((n+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,u=s/8,l=[],c=0;c<u;c++){var f=a[c],h=f.high,d=f.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),l.push(d),l.push(h)}return new i.init(l,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});r.SHA3=o._createHelper(h),r.HmacSHA3=o._createHmacHelper(h)}(Math),e.SHA3}(r(14),r(106))},function(e,t,r){e.exports=function(e){
96
+ */(e,n),a=[],s=0;s<o.length;s++){for(var u=o[s],l=[],c=0;c<u.length;c++){var f=u[c];f.properties[r]?l.push(f.properties[r]):l.push(0),!0===i&&(f.properties.matrixPosition=[s,c])}a.push(l)}return a}(e,{zProperty:n,flip:!0}),s=function(e,t,r){for(var n=[],i=1;i<t.length;i++){var o=+t[i-1],a=+t[i],s=Eo(wo(Mi(e,o,a-o))),u={};u.groupedRings=s,u[r]=o+"-"+a,n.push(u)}return n}(a,t,n);return p((s=function(e,t,r){var n=Z(r),i=n[2]-n[0],o=n[3]-n[1],a=n[0],s=n[1],u=i/(t[0].length-1),l=o/(t.length-1),c=function(e){e[0]=e[0]*u+a,e[1]=e[1]*l+s};return e.forEach(function(e){e.groupedRings.forEach(function(e){e.forEach(function(e){e.forEach(c)})})}),e}(s,a,e)).map(function(e,t){if(o[t]&&!P(o[t]))throw new Error("Each mappedProperty is required to be an Object");var r=ce({},i,o[t]);return r[n]=e[n],m(e.groupedRings,r)}))},t.isolines=function(e,t,r){if(!P(r=r||{}))throw new Error("options is invalid");var n=r.zProperty||"elevation",i=r.commonProperties||{},o=r.breaksProperties||[];if(ne(e,"Point","Input must contain Points"),!t)throw new Error("breaks is required");if(!Array.isArray(t))throw new Error("breaks must be an Array");if(!P(i))throw new Error("commonProperties must be an Object");if(!Array.isArray(o))throw new Error("breaksProperties must be an Array");var a=function(e,t){if(!P(t=t||{}))throw new Error("options is invalid");var r=t.zProperty||"elevation",n=t.flip,i=t.flags;ne(e,"Point","input must contain Points");for(var o=function(e,t){var r={};return V(e,function(e){var t=$(e)[1];r[t]||(r[t]=[]),r[t].push(e)}),Object.keys(r).map(function(e){return r[e].sort(function(e,t){return $(e)[0]-$(t)[0]})}).sort(function(e,r){return t?$(e[0])[1]-$(r[0])[1]:$(r[0])[1]-$(e[0])[1]})}(e,n),a=[],s=0;s<o.length;s++){for(var u=o[s],l=[],c=0;c<u.length;c++){var f=u[c];f.properties[r]?l.push(f.properties[r]):l.push(0),!0===i&&(f.properties.matrixPosition=[s,c])}a.push(l)}return a}(e,{zProperty:n,flip:!0});return p(function(e,t,r){var n=Z(r),i=n[2]-n[0],o=n[3]-n[1],a=n[0],s=n[1],u=i/(t[0].length-1),l=o/(t.length-1),c=function(e){e[0]=e[0]*u+a,e[1]=e[1]*l+s};return e.forEach(function(e){N(e,c)}),e}(function(e,t,r,n,i){for(var o=[],a=1;a<t.length;a++){var s=+t[a],u=ce({},n,i[a]);u[r]=s;var l=y(de(e,s),u);o.push(l)}return o}(a,t,n,i,o),a,e))},t.kinks=function(e){var t,r,n={type:"FeatureCollection",features:[]};if("LineString"===(r="Feature"===e.type?e.geometry:e).type)t=[r.coordinates];else if("MultiLineString"===r.type)t=r.coordinates;else if("MultiPolygon"===r.type)t=[].concat.apply([],r.coordinates);else{if("Polygon"!==r.type)throw new Error("Input must be a LineString, MultiLineString, Polygon, or MultiPolygon Feature or Geometry");t=r.coordinates}return t.forEach(function(e){t.forEach(function(t){for(var r=0;r<e.length-1;r++)for(var i=r;i<t.length-1;i++){if(e===t){if(1===Math.abs(r-i))continue;if(0===r&&i===e.length-2&&e[r][0]===e[e.length-1][0]&&e[r][1]===e[e.length-1][1])continue}var o=yn(e[r][0],e[r][1],e[r+1][0],e[r+1][1],t[i][0],t[i][1],t[i+1][0],t[i+1][1]);o&&n.features.push(u([o[0],o[1]]))}})}),n},t.length=wn,t.lengthToDegrees=x,t.lengthToRadians=b,t.lineArc=Zn,t.lineChunk=function(e,t,r){if(!P(r=r||{}))throw new Error("options is invalid");var n=r.units,i=r.reverse;if(!e)throw new Error("geojson is required");if(t<=0)throw new Error("segmentLength must be greater than 0");var o=[];return q(e,function(e){i&&(e.geometry.coordinates=e.geometry.coordinates.reverse()),function(e,t,r,n){var i=wn(e,{units:r});if(i<=t)return n(e);var o=i/t;Number.isInteger(o)||(o=Math.floor(o)+1);for(var a=0;a<o;a++)n(En(e,t*a,t*(a+1),{units:r}))}(e,t,n,function(e){o.push(e)})}),p(o)},t.lineDistance=wn,t.lineEach=W,t.lineIntersect=un,t.lineOffset=function(e,t,r){if(!P(r=r||{}))throw new Error("options is invalid");var n=r.units;if(!e)throw new Error("geojson is required");if(null==t||isNaN(t))throw new Error("distance is required");var i=oe(e),o=e.properties;switch(i){case"LineString":return Co(e,t,n);case"MultiLineString":var a=[];return q(e,function(e){a.push(Co(e,t,n).geometry.coordinates)}),y(a,o);default:throw new Error("geometry "+i+" is not supported")}},t.lineOverlap=hi,t.lineReduce=H,t.lineSegment=Ar,t.lineSlice=function(e,t,r){var n=$(r);if("LineString"!==oe(r))throw new Error("line must be a LineString");for(var i,o=cn(r,e),a=cn(r,t),s=[(i=o.properties.index<=a.properties.index?[o,a]:[a,o])[0].geometry.coordinates],u=i[0].properties.index+1;u<i[1].properties.index+1;u++)s.push(n[u]);return s.push(i[1].geometry.coordinates),h(s,r.properties)},t.lineSliceAlong=En,t.lineSplit=function(e,t){if(!e)throw new Error("line is required");if(!t)throw new Error("splitter is required");var r=oe(e),n=oe(t);if("LineString"!==r)throw new Error("line must be LineString");if("FeatureCollection"===n)throw new Error("splitter cannot be a FeatureCollection");if("GeometryCollection"===n)throw new Error("splitter cannot be a GeometryCollection");var i=Cn(t,{precision:7});switch(n){case"Point":return Yn(e,i);case"MultiPoint":return Hn(e,i);case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":return Hn(e,un(e,i))}},t.lineString=h,t.lineStringToPolygon=ri,t.lineStrings=d,t.lineToPolygon=ri,t.mask=function(e,t){var r,n=c(t&&t.geometry.coordinates||[[[180,90],[-180,90],[-180,-90],[180,-90],[180,90]]]);return("FeatureCollection"===e.type?py(2===(r=e).features.length?yu.union(r.features[0].geometry.coordinates,r.features[1].geometry.coordinates):yu.union.apply(yu,r.features.map(function(e){return e.geometry.coordinates}))):py(yu.union(e.geometry.coordinates))).geometry.coordinates.forEach(function(e){n.geometry.coordinates.push(e[0])}),n},t.meta=K,t.midpoint=function(e,t){return nr(e,mt(e,t)/2,or(e,t))},t.moranIndex=function(e,t){var r=t.inputField,n=t.threshold||1e5,i=t.p||2,o=t.binary||!1,a=ls(e,{alpha:t.alpha||-1,binary:o,p:i,standardization:t.standardization||!0,threshold:n}),s=[];V(e,function(e){var t=e.properties||{};s.push(t[r])});for(var u=cs(s),l=function(e){for(var t=cs(e),r=0,n=0,i=e;n<i.length;n++){var o=i[n];r+=Math.pow(o-t,2)}return r/e.length}(s),c=0,f=0,h=0,d=0,p=a.length,y=0;y<p;y++){for(var g=0,m=0;m<p;m++)c+=a[y][m]*(s[y]-u)*(s[m]-u),f+=a[y][m],h+=Math.pow(a[y][m]+a[m][y],2),g+=a[y][m]+a[m][y];d+=Math.pow(g,2)}var v=c/f/l,_=-1/(p-1),S=(p*p*(h*=.5)-p*d+f*f*3)/((p-1)*(p+1)*(f*f))-_*_,b=Math.sqrt(S);return{expectedMoranIndex:_,moranIndex:v,stdNorm:b,zNorm:(v-_)/b}},t.multiLineString=y,t.multiPoint=g,t.multiPolygon=m,t.nearest=Gr,t.nearestPoint=Gr,t.nearestPointOnLine=cn,t.nearestPointToLine=function(e,t,r){void 0===r&&(r={});var n=r.units,i=r.properties||{},o=function(e){var t=[];switch(e.geometry?e.geometry.type:e.type){case"GeometryCollection":return j(e,function(e){"Point"===e.type&&t.push({type:"Feature",properties:{},geometry:e})}),{type:"FeatureCollection",features:t};case"FeatureCollection":return e.features=e.features.filter(function(e){return"Point"===e.geometry.type}),e;default:throw new Error("points must be a Point Collection")}}(e);if(!o.features.length)throw new Error("points must contain features");if(!t)throw new Error("line is required");if("LineString"!==oe(t))throw new Error("line must be a LineString");var a=1/0,s=null;return V(o,function(e){var r=hn(e,t,{units:n});r<a&&(a=r,s=e)}),s&&(s.properties=ce({dist:a},s.properties,i)),s},t.planepoint=function(e,t){var r=Q(e),n=ie(t).coordinates[0];if(n.length<4)throw new Error("OuterRing of a Polygon must have 4 or more Positions.");var i=t.properties||{},o=i.a,a=i.b,s=i.c,u=r[0],l=r[1],c=n[0][0],f=n[0][1],h=void 0!==o?o:n[0][2],d=n[1][0],p=n[1][1],y=void 0!==a?a:n[1][2],g=n[2][0],m=n[2][1],v=void 0!==s?s:n[2][2];return(v*(u-c)*(l-p)+h*(u-d)*(l-m)+y*(u-g)*(l-f)-y*(u-c)*(l-m)-v*(u-d)*(l-f)-h*(u-g)*(l-p))/((u-c)*(l-p)+(u-d)*(l-m)+(u-g)*(l-f)-(u-c)*(l-m)-(u-d)*(l-f)-(u-g)*(l-p))},t.point=u,t.pointGrid=On,t.pointOnFeature=gn,t.pointOnLine=cn,t.pointOnSurface=gn,t.pointToLineDistance=hn,t.points=l,t.pointsWithinPolygon=gt,t.polygon=c,t.polygonSmooth=function(e,t){var r=[],n=t.iterations||1;if(!e)throw new Error("inputPolys is required");return j(e,function(e,t,i){var o,a,s;switch(e.type){case"Polygon":o=[[]];for(var u=0;u<n;u++)s=[[]],a=e,u>0&&(a=c(o).geometry),as(a,s),o=s.slice(0);r.push(c(o,i));break;case"MultiPolygon":o=[[[]]];for(var l=0;l<n;l++)s=[[[]]],a=e,l>0&&(a=m(o).geometry),ss(a,s),o=s.slice(0);r.push(m(o,i));break;default:throw new Error("geometry is invalid, must be Polygon or MultiPolygon")}}),p(r)},t.polygonTangents=function(e,t){var r,n,i,o,a=$(e),s=$(t),l=Z(t),c=0,f=null;switch(a[0]>l[0]&&a[0]<l[2]&&a[1]>l[1]&&a[1]<l[3]&&(c=(f=Gr(e,ur(t))).properties.featureIndex),oe(t)){case"Polygon":r=s[0][c],n=s[0][0],null!==f&&f.geometry.coordinates[1]<a[1]&&(n=s[0][c]),o=Si(s[0][0],s[0][s[0].length-1],a);var h=vi(s[0],a,o,i,r,n);r=h[0],n=h[1];break;case"MultiPolygon":for(var d=0,y=0,g=0,m=0;m<s[0].length;m++){d=m;for(var v=!1,_=0;_<s[0][m].length;_++){if(y=_,g===c){v=!0;break}g++}if(v)break}r=s[0][d][y],n=s[0][d][y],o=Si(s[0][0][0],s[0][0][s[0][0].length-1],a),s.forEach(function(e){var t=vi(e[0],a,o,i,r,n);r=t[0],n=t[1]})}return p([u(r),u(n)])},t.polygonToLine=$n,t.polygonToLineString=$n,t.polygonize=function(e){var t=Do.fromGeoJson(e);t.deleteDangles(),t.deleteCutEdges();var r=[],n=[];return t.getEdgeRings().filter(function(e){return e.isValid()}).forEach(function(e){e.isHole()?r.push(e):n.push(e)}),r.forEach(function(e){Vo.findEdgeRingContaining(e,n)&&n.push(e)}),p(n.map(function(e){return e.toPolygon()}))},t.polygons=f,t.projection=gs,t.propEach=G,t.propReduce=A,t.propertiesContainsFilter=Ls,t.radians2degrees=E,t.radiansToDegrees=E,t.radiansToDistance=S,t.radiansToLength=S,t.random=Es,t.randomLineString=bs,t.randomPoint=_s,t.randomPolygon=Ss,t.randomPosition=vs,t.rewind=function(e,t){if(!P(t=t||{}))throw new Error("options is invalid");var r=t.reverse||!1,n=t.mutate||!1;if(!e)throw new Error("<geojson> is required");if("boolean"!=typeof r)throw new Error("<reverse> must be a boolean");if("boolean"!=typeof n)throw new Error("<mutate> must be a boolean");!1===n&&(e=xt(e));var i=[];switch(e.type){case"GeometryCollection":return j(e,function(e){xi(e,r)}),e;case"FeatureCollection":return V(e,function(e){V(xi(e,r),function(e){i.push(e)})}),p(i)}return xi(e,r)},t.rhumbBearing=yi,t.rhumbDestination=mi,t.rhumbDistance=fn,t.round=_,t.sample=function(e,t){if(!e)throw new Error("featurecollection is required");if(null==t)throw new Error("num is required");if("number"!=typeof t)throw new Error("num must be a number");return p(function(e,t){for(var r,n,i=e.slice(0),o=e.length,a=o-t;o-- >a;)r=i[n=Math.floor((o+1)*Math.random())],i[n]=i[o],i[o]=r;return i.slice(a)}(e.features,t))},t.sector=function(e,t,r,n,i){if(!P(i=i||{}))throw new Error("options is invalid");var o=i.properties;if(!e)throw new Error("center is required");if(null==r)throw new Error("bearing1 is required");if(null==n)throw new Error("bearing2 is required");if(!t)throw new Error("radius is required");if("object"!=typeof i)throw new Error("options must be an object");if(pi(r)===pi(n))return ir(e,t,i);var a=$(e),s=[[a]];return N(Zn(e,t,r,n,i),function(e){s[0].push(e)}),s[0].push(a),c(s,o)},t.segmentEach=J,t.segmentReduce=z,t.shortestPath=function(e,t,r){if(!P(r=r||{}))throw new Error("options is invalid");var n=r.resolution,i=r.minDistance,o=r.obstacles||p([]);if(!e)throw new Error("start is required");if(!t)throw new Error("end is required");if(n&&!k(n)||n<=0)throw new Error("options.resolution must be a number, greater than 0");if(i)throw new Error("options.minDistance is not yet implemented");var s=Q(e),l=Q(t);switch(e=u(s),t=u(l),oe(o)){case"FeatureCollection":if(0===o.features.length)return h([s,l]);break;case"Polygon":o=p([a(ie(o))]);break;default:throw new Error("invalid obstacles")}var c=o;c.features.push(e),c.features.push(t);var f=Z(ko(er(Z(c)),1.15));n||(n=mt([f[0],f[1]],[f[2],f[1]],r)/100),c.features.pop(),c.features.pop();for(var d=f[0],y=f[1],g=f[2],m=f[3],v=n/mt([d,y],[g,y],r)*(g-d),_=n/mt([d,y],[d,m],r)*(m-y),S=g-d,b=m-y,x=(S-Math.floor(S/v)*v)/2,w=[],E=[],T=[],I=[],M=1/0,L=1/0,O=m-(b-Math.floor(b/_)*_)/2,C=0;O>=y;){for(var N=[],R=[],G=d+x,A=0;G<=g;){var V=u([G,O]),D=_a(V,o);N.push(D?0:1),R.push(G+"|"+O);var F=mt(V,e);!D&&F<M&&(M=F,T={x:A,y:C});var j=mt(V,t);!D&&j<L&&(L=j,I={x:A,y:C}),G+=v,A++}E.push(N),w.push(R),O-=_,C++}var B=new ga(E,{diagonal:!0}),q=B.grid[T.y][T.x],U=B.grid[I.y][I.x],J=[s];return ya.search(B,q,U).forEach(function(e){var t=w[e.x][e.y].split("|");J.push([+t[0],+t[1]])}),J.push(l),Ut(h(J))},t.simplify=function(e,t){if(!P(t=t||{}))throw new Error("options is invalid");var r=void 0!==t.tolerance?t.tolerance:1,n=t.highQuality||!1,i=t.mutate||!1;if(!e)throw new Error("geojson is required");if(r&&r<0)throw new Error("invalid tolerance");return!0!==i&&(e=xt(e)),j(e,function(e){!function(e,t,r){var n=e.type;if("Point"===n||"MultiPoint"===n)return e;Ut(e,!0);var i=e.coordinates;switch(n){case"LineString":e.coordinates=Xt(i,t,r);break;case"MultiLineString":e.coordinates=i.map(function(e){return Xt(e,t,r)});break;case"Polygon":e.coordinates=Kt(i,t,r);break;case"MultiPolygon":e.coordinates=i.map(function(e){return Kt(e,t,r)})}}(e,r,n)}),e},t.square=rr,t.squareGrid=yy,t.standardDeviationalEllipse=function(e,t){if(!P(t=t||{}))throw new Error("options is invalid");var r=t.steps||64,n=t.weight,i=t.properties||{};if(!k(r))throw new Error("steps must be a number");if(!P(i))throw new Error("properties must be a number");var o=F(e).length,a=is(e,{weight:n}),s=0,u=0,l=0;V(e,function(e){var t=e.properties[n]||1,r=os($(e),$(a));s+=Math.pow(r.x,2)*t,u+=Math.pow(r.y,2)*t,l+=r.x*r.y*t});var c=s-u,f=Math.sqrt(Math.pow(c,2)+4*Math.pow(l,2)),h=2*l,d=Math.atan((c+f)/h),y=180*d/Math.PI,g=0,m=0,v=0;V(e,function(e){var t=e.properties[n]||1,r=os($(e),$(a));g+=Math.pow(r.x*Math.cos(d)-r.y*Math.sin(d),2)*t,m+=Math.pow(r.x*Math.sin(d)+r.y*Math.cos(d),2)*t,v+=t});var _=Math.sqrt(2*g/v),S=Math.sqrt(2*m/v),b=rs(a,_,S,{units:"degrees",angle:y,steps:r,properties:i}),x=gt(e,p([b])),w={meanCenterCoordinates:$(a),semiMajorAxis:_,semiMinorAxis:S,numberOfFeatures:o,angle:y,percentageWithinEllipse:100*F(x).length/o};return b.properties.standardDeviationalEllipse=w,b},t.tag=function(e,t,r,n){return e=xt(e),t=xt(t),V(e,function(e){e.properties||(e.properties={}),V(t,function(t){void 0===e.properties[n]&&pt(e,t)&&(e.properties[n]=t.properties[r])})}),e},t.tesselate=function(e){if(!e.geometry||"Polygon"!==e.geometry.type&&"MultiPolygon"!==e.geometry.type)throw new Error("input must be a Polygon or MultiPolygon");var t={type:"FeatureCollection",features:[]};return"Polygon"===e.geometry.type?t.features=Rr(e.geometry.coordinates):e.geometry.coordinates.forEach(function(e){t.features=t.features.concat(Rr(e))}),t},t.tin=vt,t.toMercator=fs,t.toWgs84=hs,t.transformRotate=Mo,t.transformScale=ko,t.transformTranslate=function(e,t,r,n){if(!P(n=n||{}))throw new Error("options is invalid");var i=n.units,o=n.zTranslation,a=n.mutate;if(!e)throw new Error("geojson is required");if(null==t||isNaN(t))throw new Error("distance is required");if(o&&"number"!=typeof o&&isNaN(o))throw new Error("zTranslation is not a number");if(o=void 0!==o?o:0,0===t&&0===o)return e;if(null==r||isNaN(r))throw new Error("direction is required");return t<0&&(t=-t,r+=180),!1!==a&&void 0!==a||(e=xt(e)),N(e,function(e){var n=$(mi(e,t,r,{units:i}));e[0]=n[0],e[1]=n[1],o&&3===e.length&&(e[2]+=o)}),e},t.triangleGrid=gy,t.truncate=Cn,t.union=function(e,t,r){void 0===r&&(r={});var n=ie(e),i=ie(t),o=yu.union(n.coordinates,i.coordinates);return 0===o.length?null:1===o.length?c(o[0],r.properties):m(o,r.properties)},t.unitsFactors=i,t.unkinkPolygon=function(e){var t=[];return q(e,function(e){"Polygon"===e.geometry.type&&V(function(e){if("Feature"!=e.type)throw new Error("The input must a geojson object of type Feature");if(void 0===e.geometry||null==e.geometry)throw new Error("The input must a geojson object with a non-empty geometry");if("Polygon"!=e.geometry.type)throw new Error("The input must be a geojson Polygon");for(var t=e.geometry.coordinates.length,r=[],n=0;n<t;n++){var i=e.geometry.coordinates[n];Fn(i[0],i[i.length-1])||i.push(i[0]),r.push.apply(r,i.slice(0,i.length-1))}if(!function(e){for(var t={},r=1,n=0,i=e.length;n<i;++n){if(Object.prototype.hasOwnProperty.call(t,e[n])){r=0;break}t[e[n]]=1}return r}(r))throw new Error("The input polygon may not have duplicate vertices (except for the first and last vertex of each ring)");var o=r.length,a=function(e,t,r){if("Polygon"!==e.geometry.type)throw new Error("The input feature must be a Polygon");void 0===r&&(r=1);var n=e.geometry.coordinates,i=[],o={};if(r){for(var a=[],s=0;s<n.length;s++)for(var u=0;u<n[s].length-1;u++)a.push(y(s,u));var l=we();l.load(a)}for(var c=0;c<n.length;c++)for(var f=0;f<n[c].length-1;f++)if(r)l.search(y(c,f)).forEach(function(e){var t=e.ring,r=e.edge;p(c,f,t,r)});else for(var h=0;h<n.length;h++)for(var d=0;d<n[h].length-1;d++)p(c,f,h,d);return t||(i={type:"Feature",geometry:{type:"MultiPoint",coordinates:i}}),i;function p(e,r,a,s){var u,l,c=n[e][r],f=n[e][r+1],h=n[a][s],d=n[a][s+1],p=function(e,t,r,n){if(Rn(e,r)||Rn(e,n)||Rn(t,r)||Rn(n,r))return null;var i=e[0],o=e[1],a=t[0],s=t[1],u=r[0],l=r[1],c=n[0],f=n[1],h=(i-a)*(l-f)-(o-s)*(u-c);return 0===h?null:[((i*s-o*a)*(u-c)-(i-a)*(u*f-l*c))/h,((i*s-o*a)*(l-f)-(o-s)*(u*f-l*c))/h]}(c,f,h,d);if(null!==p&&(u=f[0]!==c[0]?(p[0]-c[0])/(f[0]-c[0]):(p[1]-c[1])/(f[1]-c[1]),l=d[0]!==h[0]?(p[0]-h[0])/(d[0]-h[0]):(p[1]-h[1])/(d[1]-h[1]),!(u>=1||u<=0||l>=1||l<=0))){var y=p,g=!o[y];g&&(o[y]=!0),t?i.push(t(p,e,r,c,f,u,a,s,h,d,l,g)):i.push(p)}}function y(e,t){var r,i,o,a,s=n[e][t],u=n[e][t+1];return s[0]<u[0]?(r=s[0],i=u[0]):(r=u[0],i=s[0]),s[1]<u[1]?(o=s[1],a=u[1]):(o=u[1],a=s[1]),{minX:r,minY:o,maxX:i,maxY:a,ring:e,edge:t}}}(e,function(e,t,r,n,i,o,a,s,u,l,c,f){return[e,t,r,n,i,o,a,s,u,l,c,f]}),s=a.length;if(0==s){var u=[];for(n=0;n<t;n++)u.push(c([e.geometry.coordinates[n]],{parent:-1,winding:Dn(e.geometry.coordinates[n])}));var l=p(u);return D(),F(),l}var f=[],h=[];for(n=0;n<t;n++){f.push([]);for(var d=0;d<e.geometry.coordinates[n].length-1;d++)f[n].push([new Gn(e.geometry.coordinates[n][jn(d+1,e.geometry.coordinates[n].length-1)],1,[n,d],[n,jn(d+1,e.geometry.coordinates[n].length-1)],void 0)]),h.push(new An(e.geometry.coordinates[n][d],[n,jn(d-1,e.geometry.coordinates[n].length-1)],[n,d],void 0,void 0,!1,!0))}for(n=0;n<s;n++)f[a[n][1]][a[n][2]].push(new Gn(a[n][0],a[n][5],[a[n][1],a[n][2]],[a[n][6],a[n][7]],void 0)),a[n][11]&&h.push(new An(a[n][0],[a[n][1],a[n][2]],[a[n][6],a[n][7]],void 0,void 0,!0,!0));var y=h.length;for(n=0;n<f.length;n++)for(d=0;d<f[n].length;d++)f[n][d].sort(function(e,t){return e.param<t.param?-1:1});var g=[];for(n=0;n<y;n++)g.push({minX:h[n].coord[0],minY:h[n].coord[1],maxX:h[n].coord[0],maxY:h[n].coord[1],index:n});var m=we();for(m.load(g),n=0;n<f.length;n++)for(d=0;d<f[n].length;d++)for(var v=0;v<f[n][d].length;v++){S=v==f[n][d].length-1?f[n][jn(d+1,e.geometry.coordinates[n].length-1)][0].coord:f[n][d][v+1].coord;var _=m.search({minX:S[0],minY:S[1],maxX:S[0],maxY:S[1]})[0];f[n][d][v].nxtIsectAlongEdgeIn=_.index}for(n=0;n<f.length;n++)for(d=0;d<f[n].length;d++)for(v=0;v<f[n][d].length;v++){var S=f[n][d][v].coord,b=(_=m.search({minX:S[0],minY:S[1],maxX:S[0],maxY:S[1]})[0]).index;b<o?h[b].nxtIsectAlongRingAndEdge2=f[n][d][v].nxtIsectAlongEdgeIn:Fn(h[b].ringAndEdge1,f[n][d][v].ringAndEdgeIn)?h[b].nxtIsectAlongRingAndEdge1=f[n][d][v].nxtIsectAlongEdgeIn:h[b].nxtIsectAlongRingAndEdge2=f[n][d][v].nxtIsectAlongEdgeIn}var x=[];for(n=0,d=0;d<t;d++){var w=n;for(v=0;v<e.geometry.coordinates[d].length-1;v++)h[n].coord[0]<h[w].coord[0]&&(w=n),n++;var E=h[w].nxtIsectAlongRingAndEdge2;for(v=0;v<h.length;v++)if(h[v].nxtIsectAlongRingAndEdge1==w||h[v].nxtIsectAlongRingAndEdge2==w){var T=v;break}var I=Vn([h[T].coord,h[w].coord,h[E].coord],!0)?1:-1;x.push({isect:w,parent:-1,winding:I})}for(x.sort(function(e,t){return h[e.isect].coord>h[t.isect].coord?-1:1}),u=[];x.length>0;){var M=x.pop(),k=M.isect,P=M.parent,L=M.winding,O=u.length,C=[h[k].coord],N=k;if(h[k].ringAndEdge1Walkable)var R=h[k].ringAndEdge1,G=h[k].nxtIsectAlongRingAndEdge1;else R=h[k].ringAndEdge2,G=h[k].nxtIsectAlongRingAndEdge2;for(;!Fn(h[k].coord,h[G].coord);){C.push(h[G].coord);var A=void 0;for(n=0;n<x.length;n++)if(x[n].isect==G){A=n;break}if(null!=A&&x.splice(A,1),Fn(R,h[G].ringAndEdge1)){if(R=h[G].ringAndEdge2,h[G].ringAndEdge2Walkable=!1,h[G].ringAndEdge1Walkable){var V={isect:G};Vn([h[N].coord,h[G].coord,h[h[G].nxtIsectAlongRingAndEdge2].coord],1==L)?(V.parent=P,V.winding=-L):(V.parent=O,V.winding=L),x.push(V)}N=G,G=h[G].nxtIsectAlongRingAndEdge2}else R=h[G].ringAndEdge1,h[G].ringAndEdge1Walkable=!1,h[G].ringAndEdge2Walkable&&(V={isect:G},Vn([h[N].coord,h[G].coord,h[h[G].nxtIsectAlongRingAndEdge1].coord],1==L)?(V.parent=P,V.winding=-L):(V.parent=O,V.winding=L),x.push(V)),N=G,G=h[G].nxtIsectAlongRingAndEdge1}C.push(h[G].coord),u.push(c([C],{index:O,parent:P,winding:L,netWinding:void 0}))}function D(){for(var e=[],t=0;t<l.features.length;t++)-1==l.features[t].properties.parent&&e.push(t);if(e.length>1)for(t=0;t<e.length;t++){for(var r=-1,n=0;n<l.features.length;n++)e[t]!=n&&pt(l.features[e[t]].geometry.coordinates[0][0],l.features[n],{ignoreBoundary:!0})&&_n(l.features[n])<1/0&&(r=n);l.features[e[t]].properties.parent=r}}function F(){for(var e=0;e<l.features.length;e++)if(-1==l.features[e].properties.parent){var t=l.features[e].properties.winding;l.features[e].properties.netWinding=t,j(e,t)}}function j(e,t){for(var r=0;r<l.features.length;r++)if(l.features[r].properties.parent==e){var n=t+l.features[r].properties.winding;l.features[r].properties.netWinding=n,j(r,n)}}return l=p(u),D(),F(),l}(e),function(r){t.push(c(r.geometry.coordinates,e.properties))})}),p(t)},t.validateBBox=L,t.validateId=O,t.voronoi=function(e,t){if(!P(t=t||{}))throw new Error("options is invalid");var r=t.bbox||[-180,-85,180,85];if(!e)throw new Error("points is required");if(!Array.isArray(r))throw new Error("bbox is invalid");return ne(e,"Point","points"),p(function(){var e=ba,t=xa,r=null;function n(n){return new es(n.map(function(r,i){var o=[Math.round(e(r,i,n)/Za)*Za,Math.round(t(r,i,n)/Za)*Za];return o.index=i,o.data=r,o}),r)}return n.polygons=function(e){return n(e).polygons()},n.links=function(e){return n(e).links()},n.triangles=function(e){return n(e).triangles()},n.x=function(t){return arguments.length?(e="function"==typeof t?t:Sa(+t),n):e},n.y=function(e){return arguments.length?(t="function"==typeof e?e:Sa(+e),n):t},n.extent=function(e){return arguments.length?(r=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],n):r&&[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},n.size=function(e){return arguments.length?(r=null==e?null:[[0,0],[+e[0],+e[1]]],n):r&&[r[1][0]-r[0][0],r[1][1]-r[0][1]]},n}().x(function(e){return e.geometry.coordinates[0]}).y(function(e){return e.geometry.coordinates[1]}).extent([[r[0],r[1]],[r[2],r[3]]]).polygons(e.features).map(ts))},t.within=gt,Object.defineProperty(t,"__esModule",{value:!0})}(t)}).call(this,r(170))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=m(r(13)),i=m(r(10)),o=m(r(3)),a=m(r(0)),s=m(r(2)),u=m(r(4)),l=m(r(5)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(39)),f=m(r(93)),h=r(1),d=r(6),p=r(49),y=m(r(70)),g=r(9);function m(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return e=(0,h.defaultValue)(e,{}),r.spatialReference=(0,h.defaultValue)(y.default.fromJSON(e.spatialReference),new y.default("EPSG:4326")),r.hasZ=!1,r.type=d.GeometryType.geometry,r.extensionOptions=(0,h.defaultValue)(e.extensionOptions,{}),r}return(0,l.default)(t,e),(0,s.default)(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){return{spatialReference:this.spatialReference instanceof y.default?this.spatialReference.toJSON():this.spatialReference,hasZ:this.hasZ,type:this.type,extensionOptions:(0,h.cloneObject)(this.extensionOptions)}}},{key:"toGeoJSON",value:function(){return{type:this.type,coordinates:this.coordinates}}},{key:"fromGeoJSON",value:function(e){(e||e.type!==this.type)&&new Error("GeoJSON类型和几何类型不一致"),(0,h.defined)(this.coordinates)&&(this.coordinates=e.coordinates)}},{key:"toXML",value:function(){return""}},{key:"getType",value:function(){return this.type}},{key:"getIGSType",value:function(){return d.IGSGeometryType.geometry}},{key:"getGeometryType",value:function(){return this.type}},{key:"toString",value:function(){return""}}],[{key:"fromGeoJSON",value:function(e){return(0,p.createGeometryByGeoJSON)(e,new y.default("EPSG:4326"))}},{key:"fromJSON",value:function(e){return e=(0,h.defaultValue)(e,{}),(0,p.createGeometry)(e)}},{key:"isClockwise",value:function(e){e=(0,h.defaultValue)(e,void 0),(0,h.isNull)(e)&&h.Log.error("geometry1不能为空!"),e instanceof Array||h.Log.error("输入参数类型错误,需要输入点数组!");for(var t=0;t<e.length;t++)if(e[t]instanceof Array)for(var r=0;r<e[t].length;r++)e[t][r]instanceof Array&&h.Log.error("输入参数类型错误,需要输入二维数组!");else h.Log.error("输入参数类型错误,需要输入二维数组!");if(e[0].length===e[e.length-1].length&&(0,i.default)(e[0])===(0,i.default)(e[e.length-1])||h.Log.error("输入的点数组必须首尾闭合!"),!(0,h.isNull)(e)){var n=c.lineString(e);return c.booleanClockwise(n)}}},{key:"fromRings",value:function(e,t){e=(0,h.defaultValue)(e,void 0);var r=(0,h.defaultValue)(y.default.fromJSON(t),new y.default("EPSG:4326"));(0,h.isNull)(e)&&h.Log.error("geometry1不能为空!"),e instanceof Array||h.Log.error("输入参数类型错误,需要输入点数组!"),3!==this._multiarr(e)&&h.Log.error("输入参数错误,需要输入三维数组!");var n=void 0;if(1===e.length){var o=e[0];return o[0].length===o[o.length-1].length&&(0,i.default)(o[0])===(0,i.default)(o[o.length-1])||o.push(o[0]),new g.Polygon({coordinates:[o],spatialReference:r})}for(var a=[],s=0;s<e.length;s++){var u={geometry:void 0,area:null,inner:[]};(0,i.default)(e[s][0])!==(0,i.default)(e[s][e[s].length-1])&&e[s].push(e[s][0]);var l=new g.Polygon({coordinates:[e[s]],spatialReference:r});u.geometry=l,u.area=g.GeometryEngine.planarArea(l),a.push(u)}for(var c=this._processArr([],a),f=[],d=function(e){var t=[c[e].geometry.coordinates[0]];c[e].inner.length>=1&&c[e].inner.forEach(function(e){t.push(e.geometry.coordinates[0])}),f.push(t)},p=0;p<c.length;p++)d(p);for(var m=[],v=0;v<c.length;v++)n=new g.Polygon({coordinates:f[v],spatialReference:r}),m.push(n);return m}},{key:"_processArr",value:function(e,t){t.sort(function(e,t){return t.area-e.area});for(var r=t[0],n=[],i=1;i<t.length;i++)g.GeometryEngine.disjoint(r.geometry,t[i].geometry)?n.push(t[i]):g.GeometryEngine.contains(r.geometry,t[i].geometry)?r.inner.push(t[i]):n.push(t[i]);if(r.inner.length>1)for(var o=0;o<r.inner.length;o++)for(var a=r.inner[o],s=o+1;s<r.inner.length;s++)g.GeometryEngine.intersects(a.geometry,r.inner[s].geometry)&&(g.GeometryEngine.contains(a.geometry,r.inner[s].geometry)?(n.push(r.inner[s]),r.inner.splice(s,1),s--):h.Log.error("输入的几何存在拓扑错误,请检查"));return e.push(r),n.length>1?this._processArr(e,n):1===n.length&&e.push(n[0]),e}},{key:"_multiarr",value:function(e){for(var t=[],r=1,n=0;n<e.length;n++)if(e[n]instanceof Array)for(var i=0;i<e[n].length;i++)t.push(e[n][i]);return t.length&&(r=1,r+=this._multiarr(t)),r}},{key:"_parseString",value:function(e){for(var t=[],r=e.split("*"),n=0;n<r.length;n++){for(var i=r[n].split(" "),o=[],a=0;a<i.length;a++)if(o.push(i[a].split(",")),i[a].indexOf("#")>-1){i[a]=i[a].replace("#",""),o.splice(a-1,2);var s=[i[a-1].split(","),i[a].split(","),i[a+1].split(",")];o.push(s),a++}for(var u=[],l=0;l<o.length;l++){var c=void 0;if(o[l][0]instanceof Array){for(var f=[],h=0;h<o[l].length;h++)c=o[l][h].map(function(e){return Number(e)}),f.push(c);u.push(f)}else c=o[l].map(function(e){return Number(e)}),u.push(c)}t.push(u)}return t}},{key:"reduceDimension",value:function(e){if(e){var r=t.fromJSON(e).toJSON();switch(e.type){case d.GeometryType.point:r.coordinates=n(r.coordinates);break;case d.GeometryType.multiPoint:case d.GeometryType.lineString:r.coordinates=i(r.coordinates,0);break;case d.GeometryType.multiLineString:case d.GeometryType.polygon:r.coordinates=i(r.coordinates,1);break;case d.GeometryType.multiPolygon:r.coordinates=i(r.coordinates,2);break;case d.GeometryType.extent:delete r.zmin,delete r.zmax;break;case d.GeometryType.circle:r.center=[r.center[0],r.center[1]]}return t.fromJSON(r)}function n(e){return[e[0],e[1]]}function i(e,t){for(var r=[],o=e.length,a=0;a<o;a++){var s=t?i(e[a],t-1):n(e[a]);r.push(s)}return r}}}]),t}(f.default);(0,n.default)(v.prototype,{extent:{configurable:!1,get:function(){}}}),t.default=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BasemapChangeEvent=t.LayerLoadedEvent=t.LayerChangeEvent=t.CollectionChangeEvent=t.ProxyEvent=t.LayerViewScaleVisibleEvent=t.LayerViewUpdateEvent=t.LayerEvent=t.ErrorEvent=t.Event=void 0;var n=d(r(56)),i=d(r(336)),o=d(r(139)),a=r(110),s=d(r(340)),u=d(r(341)),l=d(r(342)),c=d(r(343)),f=d(r(344)),h=d(r(345));function d(e){return e&&e.__esModule?e:{default:e}}t.Event=n.default,t.ErrorEvent=i.default,t.LayerEvent=o.default,t.LayerViewUpdateEvent=a.LayerViewUpdateEvent,t.LayerViewScaleVisibleEvent=h.default,t.ProxyEvent=s.default,t.CollectionChangeEvent=u.default,t.LayerChangeEvent=l.default,t.LayerLoadedEvent=c.default,t.BasemapChangeEvent=f.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorMaterial=t.TextHalo=t.Edges3D=t.IconResource=t.PointSymbol3DOutline=t.FillSymbol3DOutline=t.LineStylePattern3D=t.LineStyleMarker3D=t.Symbol3DVerticalOffset=t.Callout3D=t.LineCallout3D=void 0;var n=p(r(412)),i=p(r(194)),o=p(r(413)),a=p(r(414)),s=p(r(415)),u=p(r(416)),l=p(r(417)),c=p(r(418)),f=p(r(419)),h=p(r(195)),d=r(420);function p(e){return e&&e.__esModule?e:{default:e}}t.LineCallout3D=n.default,t.Callout3D=i.default,t.Symbol3DVerticalOffset=o.default,t.LineStyleMarker3D=a.default,t.LineStylePattern3D=s.default,t.FillSymbol3DOutline=u.default,t.PointSymbol3DOutline=l.default,t.IconResource=c.default,t.Edges3D=f.default,t.TextHalo=h.default,t.ColorMaterial=d.ColorMaterial},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VisualVariable=t.OpacityVariable=t.ColorVariable=t.SizeVariable=t.HeatmapColorStop=t.getIGSDynamicLayer=t.createRender=t.HeatmapRenderer=t.RankRenderer=t.RandomRenderer=t.ClusterRenderer=t.SimpleRenderer=t.ClassBreakRenderer=t.UniqueValueRenderer=t.BaseRenderer=void 0;var n=g(r(62)),i=g(r(498)),o=g(r(505)),a=g(r(506)),s=g(r(507)),u=g(r(510)),l=g(r(511)),c=g(r(512)),f=r(6),h=r(1),d=r(513),p=g(r(226)),y=r(98);function g(e){return e&&e.__esModule?e:{default:e}}t.BaseRenderer=n.default,t.UniqueValueRenderer=i.default,t.ClassBreakRenderer=o.default,t.SimpleRenderer=a.default,t.ClusterRenderer=s.default,t.RandomRenderer=u.default,t.RankRenderer=l.default,t.HeatmapRenderer=c.default,t.createRender=function(e){switch((e=(0,h.defaultValue)(e,{})).type){case f.RendererType.simple:return new a.default(e);case f.RendererType.uniqueValue:return new i.default(e);case f.RendererType.classBreak:return new o.default(e);case f.RendererType.cluster:return new s.default(e);case f.RendererType.random:return new u.default(e);case f.RendererType.rank:return new l.default(e);case f.RendererType.heatmap:return new c.default(e);default:return new a.default(e)}},t.getIGSDynamicLayer=d.getIGSDynamicLayer,t.HeatmapColorStop=p.default,t.SizeVariable=y.SizeVariable,t.ColorVariable=y.ColorVariable,t.OpacityVariable=y.OpacityVariable,t.VisualVariable=y.VisualVariable},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.default=function e(t){(0,n.default)(this,e),t=(0,i.defaultValue)(t,{}),(0,i.extend)(this,t),this.Name=t&&t.Name?t.Name:null,this.IsBaseTheme=!t||!t.IsBaseTheme||t.IsBaseTheme,this.Visible=!t||!t.Visible||t.Visible}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(13)),i=c(r(261)),o=c(r(0)),a=c(r(2)),s=r(8),u=r(28),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(){function e(t){var r;(0,o.default)(this,e),t=(0,l.defaultValue)(t,{}),this._vertexStyle=(0,l.defaultValue)(t.vertexStyle,new u.SimpleMarkerSymbol({color:new s.Color(24,144,255,1),size:10,outline:new u.SimpleLineSymbol({color:new s.Color(255,255,255,1),width:1})})),this._lineStyle=(0,l.defaultValue)(t.lineStyle,new u.SimpleLineSymbol({color:new s.Color(24,144,255,1),width:3})),this._fillStyle=(0,l.defaultValue)(t.fillStyle,new u.SimpleFillSymbol({color:new s.Color(24,144,255,.3),outline:new u.SimpleLineSymbol({color:new s.Color(24,144,255,1),width:2})})),this._textStyle=(0,l.defaultValue)(t.textStyle,new u.TextSymbol({color:new s.Color(24,144,255,1),text:"默认文字",font:{family:"微软雅黑",size:20,style:"normal",weight:"normal"}})),this._movingLineStyle=(0,l.defaultValue)(t.lineStyle,new u.SimpleLineSymbol({color:new s.Color(255,255,0,1),width:2})),this._selectBoxScaleStyle=(0,l.defaultValue)(t.selectBoxScaleStyle,new u.SimpleFillSymbol({color:new s.Color(241,188,0,.05),outline:new u.SimpleLineSymbol({color:new s.Color(241,188,0,.8),width:2})})),this._selectBoxStyle=(0,l.defaultValue)(t.selectBoxStyle,new u.SimpleFillSymbol({color:new s.Color(241,188,0,.1),outline:new u.SimpleLineSymbol({color:new s.Color(241,188,0,.8),width:2})})),this._selectBoxVertexStyle=(0,l.defaultValue)(t.selectBoxVertexStyle,new u.SimpleMarkerSymbol({color:new s.Color(255,255,255,1),size:10,outline:new u.SimpleLineSymbol({color:new s.Color(241,188,0,1),width:3})})),this._selectVertexStyle=(0,l.defaultValue)(t.selectVertexStyle,new u.SimpleMarkerSymbol({color:new s.Color(241,188,0,1),size:11,outline:new u.SimpleLineSymbol({color:new s.Color(255,255,255,1),width:1})})),this._selectTextStyle=(0,l.defaultValue)(t.selectTextStyle,new u.TextSymbol({color:new s.Color(241,188,0,1),text:"默认文字",font:{family:"微软雅黑",size:20,style:"normal",weight:"normal"}})),this._selectMidVertexStyle=(0,l.defaultValue)(t.selectMidVertexStyle,new u.SimpleMarkerSymbol({color:new s.Color(255,255,255,1),size:8,outline:new u.SimpleLineSymbol({color:new s.Color(241,188,0,1),width:1})})),this._coincidentPointStyle=(0,l.defaultValue)(t.coincidentPointStyle,new u.SimpleMarkerSymbol({color:new s.Color(255,255,0,1),size:10,outline:new u.SimpleLineSymbol({color:new s.Color(255,255,255,1),width:1})})),this._highlightPointStyle=(0,l.defaultValue)(t.highlightPointStyle,new u.SimpleMarkerSymbol({color:new s.Color(255,255,0,1),size:10,outline:new u.SimpleLineSymbol({color:new s.Color(255,255,255,1),width:1})})),this._highlightLineStyle=(0,l.defaultValue)(t.highlightLineStyle,new u.SimpleLineSymbol({color:new s.Color(255,255,0,1),width:3})),this._parallelLineStyle=(0,l.defaultValue)(t.parallelLineStyle,this._highlightLineStyle),this._perpendicularLineStyle=(0,l.defaultValue)(t.perpendicularLineStyle,this._highlightLineStyle),this._tipTextStyle=(0,l.defaultValue)(t.tipTextStyle,new u.TextSymbol((r={color:new s.Color(256,256,256,1),text:"默认文字",backgroundColor:new s.Color(60,71,79,1),haloColor:new s.Color(60,71,79,1),haloSize:3},(0,i.default)(r,"backgroundColor",new s.Color(60,71,79,1)),(0,i.default)(r,"borderLineSize",1),(0,i.default)(r,"xoffset",10),(0,i.default)(r,"horizontalAlignment","left"),(0,i.default)(r,"kerning",!1),(0,i.default)(r,"font",{family:"微软雅黑",size:12,style:"normal",weight:"normal"}),(0,i.default)(r,"extensionOptions",{disableDepthTestDistance:1/0}),r)))}return(0,a.default)(e,[{key:"clone",value:function(){return new e(this.toJSON())}},{key:"toJSON",value:function(){var e={};return e.vertexStyle=this._vertexStyle.clone(),e.lineStyle=this._lineStyle.clone(),e.fillStyle=this._fillStyle.clone(),e.movingLineStyle=this._movingLineStyle.clone(),e.selectBoxStyle=this._selectBoxStyle.clone(),e.selectBoxScaleStyle=this._selectBoxScaleStyle.clone(),e.selectBoxVertexStyle=this._selectBoxVertexStyle.clone(),e.selectVertexStyle=this._selectVertexStyle.clone(),e.selectMidVertexStyle=this._selectMidVertexStyle.clone(),e.coincidentPointStyle=this._coincidentPointStyle.clone(),e.highlightPointStyle=this._highlightPointStyle.clone(),e.highlightLineStyle=this._highlightLineStyle.clone(),e.parallelLineStyle=this._parallelLineStyle.clone(),e.perpendicularLineStyle=this._perpendicularLineStyle.clone(),e.textStyle=this._textStyle.clone(),e.selectTextStyle=this._selectTextStyle.clone(),e.tipTextStyle=this._tipTextStyle.clone(),e}},{key:"fromJSON",value:function(){}}]),e}();(0,n.default)(f.prototype,{vertexStyle:{get:function(){return this._vertexStyle},set:function(e){this._vertexStyle=e}},lineStyle:{get:function(){return this._lineStyle},set:function(e){this._lineStyle=e}},fillStyle:{get:function(){return this._fillStyle},set:function(e){this._fillStyle=e}},textStyle:{get:function(){return this._textStyle},set:function(e){this._textStyle=e}},selectBoxStyle:{get:function(){return this._selectBoxStyle},set:function(e){this._selectBoxStyle=e}},selectBoxScaleStyle:{get:function(){return this._selectBoxScaleStyle},set:function(e){this._selectBoxScaleStyle=e}},selectBoxVertexStyle:{get:function(){return this._selectBoxVertexStyle},set:function(e){this._selectBoxVertexStyle=e}},selectVertexStyle:{get:function(){return this._selectVertexStyle},set:function(e){this._selectVertexStyle=e}},selectTextStyle:{get:function(){return this._selectTextStyle},set:function(e){this._selectTextStyle=e}},selectMidVertexStyle:{get:function(){return this._selectMidVertexStyle},set:function(e){this._selectMidVertexStyle=e}},coincidentPointStyle:{get:function(){return this._coincidentPointStyle},set:function(e){this._coincidentPointStyle=e}},highlightPointStyle:{get:function(){return this._highlightPointStyle},set:function(e){this._highlightPointStyle=e}},highlightLineStyle:{get:function(){return this._highlightLineStyle},set:function(e){this._highlightLineStyle=e}},parallelLineStyle:{get:function(){return this._parallelLineStyle},set:function(e){this._parallelLineStyle=e}},perpendicularLineStyle:{get:function(){return this._perpendicularLineStyle},set:function(e){this._perpendicularLineStyle=e}},tipTextStyle:{get:function(){return this._tipTextStyle},set:function(e){this._tipTextStyle=e}}}),t.default=f},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(88);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){e.exports={default:r(330),__esModule:!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calcExtent=t.editGeometryByArc3=t.editFeatureByArc3=t.createGeometryByGeoJSON=t.createGeometry=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(39)),i=r(1),o=r(6),a=r(9),s=r(148);t.createGeometry=function(e){switch((e=(0,i.defaultValue)(e,{})).type){case o.GeometryType.point:return new a.Point(e);case o.GeometryType.multiPoint:return new a.MultiPoint(e);case o.GeometryType.lineString:return new a.LineString(e);case o.GeometryType.multiLineString:return new a.MultiLineString(e);case o.GeometryType.polygon:return new a.Polygon(e);case o.GeometryType.multiPolygon:return new a.MultiPolygon(e);case o.GeometryType.circle:return new a.Circle(e);case o.GeometryType.extent:return new a.Extent(e);default:i.Log.error("未输入正确的几何类型")}},t.createGeometryByGeoJSON=function(e,t){var r;switch((r="Feature"===e.type?e.geometry:e).type){case o.GeometryType.point:return new a.Point({coordinates:r.coordinates,spatialReference:t});case o.GeometryType.multiPoint:case o.GeometryType.lineString:return new a.LineString({coordinates:r.coordinates,spatialReference:t});case o.GeometryType.multiLineString:return new a.MultiLineString({coordinates:r.coordinates,spatialReference:t});case o.GeometryType.polygon:return new a.Polygon({coordinates:r.coordinates,spatialReference:t});case o.GeometryType.multiPolygon:return new a.MultiPolygon({coordinates:r.coordinates,spatialReference:t});default:i.Log.error("无法解析type类型为"+r.type+"的geojson")}},t.editFeatureByArc3=function(e){var t=s.Feature.fromJSON(e),r=a.GeometryEngine.getArcFromGeometry({geometry:t.geometry,arcInfo:t.additional.arc3}),n=t.toJSON();return n.geometry.coordinates=r.coordinates,s.Feature.fromJSON(n)},t.editGeometryByArc3=function(e,t){return t&&t.arc3?a.GeometryEngine.getArcFromGeometry({geometry:e,arcInfo:t.arc3}):e},t.calcExtent=function(e,t,r,s){var u=void 0;switch(r=(0,i.defaultValue)(r,o.GeometryType.polygon)){case o.GeometryType.polygon:u=n.polygon(e);break;case o.GeometryType.lineString:u=n.lineString(e);break;case o.GeometryType.multiPolygon:u=n.multiPolygon(e);break;case o.GeometryType.multiLineString:u=n.multiLineString(e)}var l=n.bbox(u);if(!t)return new a.Extent({xmin:l[0],ymin:l[1],xmax:l[2],ymax:l[3],spatialReference:s});var c=[];switch(r){case o.GeometryType.polygon:case o.GeometryType.multiLineString:for(var f=0;f<e.length;f++)for(var h=0;h<e[f].length;h++)c.push(e[f][h][2]);break;case o.GeometryType.lineString:for(var d=0;d<e.length;d++)c.push(e[d][2]);break;case o.GeometryType.multiPolygon:for(var p=0;p<e.length;p++)for(var y=0;y<e[p].length;y++)for(var g=0;g<e[p][y].length;g++)c.push(e[p][y][g][2])}c.sort(function(e,t){return e-t});var m=c[0],v=c[c.length-1];return new a.Extent({xmin:l[0],ymin:l[1],xmax:l[2],ymax:l[3],zmin:m,zmax:v,spatialReference:s})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(13)),i=y(r(10)),o=y(r(3)),a=y(r(0)),s=y(r(2)),u=y(r(4)),l=y(r(7)),c=y(r(5)),f=r(1),h=y(r(40)),d=r(6),p=y(r(79));function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,f.defaultValue)(e,{}),r.coordinates=(0,f.defaultValue)(e.coordinates,[]),r.type=d.GeometryType.point,!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");if(r.coordinates.length<2||r.coordinates.length>3)throw new Error("坐标数组的长度必须在合理范围内(2或者3)");if(!(0,f.isNumber)(r.coordinates[0])||!(0,f.isNumber)(r.coordinates[1]))throw new Error("坐标数组成员必须为数字");return 3===r.coordinates.length?r.hasZ=!0:r.hasZ=!1,r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"copy",value:function(e){return t.fromJSON(e.toJSON()),this}},{key:"distance",value:function(e){if(!e)throw new Error("输入参数不合法.");var r=t.toCoordinates(e),n=Math.abs(this.coordinates[0]-r[0]),i=Math.abs(this.coordinates[1]-r[1]),o=0;return this.hasZ&&r.length>=3&&(o=Math.abs(this.coordinates[2]-e.coordinates[[2]])),Math.sqrt(Math.pow(n,2)+Math.pow(i,2)+Math.pow(o,2))}},{key:"equals",value:function(e){if(e instanceof t)return this.hasZ?!!Math.abs(this.coordinates[0]-e.coordinates[0])<=1e-7&&!!Math.abs(this.coordinates[1]-e.coordinates[1])<=1e-7&&!!Math.abs(this.coordinates[2]-e.coordinates[2])<=1e-7:!!Math.abs(this.coordinates[0]-e.coordinates[0])<=1e-7&&!!Math.abs(this.coordinates[1]-e.coordinates[1])<=1e-7;if(e instanceof Array){if(2===e.length)return!!Math.abs(this.coordinates[0]-e[0])<=1e-7&&!!Math.abs(this.coordinates[1]-e[1])<=1e-7;if(3===e.length)return!!Math.abs(this.coordinates[0]-e[0])<=1e-7&&!!Math.abs(this.coordinates[1]-e[1])<=1e-7&&!!Math.abs(this.coordinates[2]-e[2])<=1e-7;throw new Error("坐标数组的数量有误!")}throw new Error("必须为点对象或坐标数组才能比较是否相等!")}},{key:"normalize",value:function(){var e;e=this.hasZ?new t({coordinates:[0,0,0]}):new t({coordinates:[0,0]});var r=this.distance(e),n=this._cloneCoordinates();return n[0]/=r,n[1]/=r,this.hasZ&&(n[2]/=r),this.coordinates=n,this}},{key:"toString",value:function(){return this.hasZ?this.coordinates[0]+","+this.coordinates[1]+","+this.coordinates[2]:this.coordinates[0]+","+this.coordinates[1]}},{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=(0,f.toJSON)(this.extent,p.default),e}},{key:"getIGSType",value:function(){return this.hasZ?d.IGSGeometryType.point3D:d.IGSGeometryType.point}},{key:"toOldIGSGeometry",value:function(){return{PntGeom:[{Dot:{x:this.coordinates[0],y:this.coordinates[1]}}],GID:parseInt(String(1e7*Math.random()))}}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return t?new p.default({xmin:e[0],ymin:e[1],zmin:e[2],xmax:e[0],ymax:e[1],zmax:e[2],spatialReference:this.spatialReference}):new p.default({xmin:e[0],ymin:e[1],xmax:e[0],ymax:e[1],spatialReference:this.spatialReference})}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"toCoordinates",value:function(e){if(!e)throw new Error("输入参数不合法.");var r=JSON.parse((0,i.default)(e));if(e instanceof t)r=e._cloneCoordinates();else{if(e instanceof Array)return r;e instanceof Object&&(r=t.fromJSON(e)._cloneCoordinates())}return r}},{key:"fromJSON",value:function(e){return new t(e=(0,f.defaultValue)(e,{}))}}]),t}(h.default);(0,n.default)(g.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(10)),i=y(r(3)),o=y(r(0)),a=y(r(2)),s=y(r(4)),u=y(r(5)),l=r(8),c=r(9),f=y(r(52)),h=y(r(45)),d=r(1),p=r(85);function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r._initEvent(),r.type="sketchPointDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._tipText=r._getTipTextObject(),r._editOption=r._getEditOption(),r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent)}},{key:"getPanEvent",value:function(e,t,r){return{event:e,target:t,type:r}}},{key:"drawFeature",value:function(){var e=this;this._editMode=l.SketchEditMode.drawing,this.view._mapActionControl("video-map-active",!0),this.cursorStyle=this.view.cursor,(0,d.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair"),this._setInitSnap(),this._fireStartDrawEvent();var t=function(t){if(t&&t.x&&t.y){e.view.off(l.ViewEventType.pointerMove,e._handlerInitMouseMove),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var r,n={x:t.x,y:t.y};r=e._snapPoint?e._snapPoint:e.view.toMap({x:n.x,y:n.y});var i=e._getFeature(r);e.sketchStage.entityGraphic=i,e._addFeatureToLayer(i,e.layer),e.stop(),e._editMode=l.SketchEditMode.none,e.view.cursor=e.cursorStyle,e._fireDrawVertexEvent(i),e.fire("drawn",{geometry:i.geometry,feature:i},self),e._fireStopDrawEvent(i),e.view._mapActionControl("video-map-active",!1)}};this._drawEventHandlers.push(t),this.view.on(l.ViewEventType.pointerDown,t)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.vertexStyle?t.vertexStyle:this.sketchStyle._vertexStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.vertexStyle?t.vertexStyle:this.sketchStyle._vertexStyle;var o=new l.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e,t){return e||(e=l.Projection.project(new c.Point({coordinates:[0,0,0]}),this._spatialReference)),t||((t=this._sketchDataType===l.SketchDataType.text?this.sketchStyle.textStyle.clone():this.sketchStyle.vertexStyle.clone()).id=(0,d.getGUID)()),new l.Feature({geometry:e,symbol:t,elevationInfo:this.elevationInfo})}},{key:"hitTestFeature",value:function(e,t){this.view._mapActionControl("video-map-active",!0),this._getEditOptionMode(this._editOption),this.editOption.showSelectBox?(this._editMode=l.SketchEditMode.editGraphic,this.selectFeature(e)):this._parent._sketchDataType===l.SketchDataType.point||this._parent._sketchDataType===l.SketchDataType.text?this.startPanGraphics(e,t):this._parent&&this._parent._editMode===l.SketchEditMode.editGraphic?"circleVertex"===e.attributes.type?this.startCircleVertexScaleGraphics(e,t):"midVertex"===e.attributes.type?this.startMidVertexScaleGraphics(e,t):this.startVertexScaleGraphics(e,t):this._parent&&this._parent._editMode===l.SketchEditMode.editVertex&&this.startVertexMoveGraphics(e,t)}},{key:"selectFeature",value:function(e){var r=this;if(this.editOption.showSelectBox){var n=void 0;this._sketchDataType===l.SketchDataType.text?(this.sketchStyle._selectTextStyle.text=this.sketchStage.entityGraphic&&this.sketchStage.entityGraphic.symbol&&this.sketchStage.entityGraphic.symbol.text?this.sketchStage.entityGraphic.symbol.text:this.sketchStyle._textStyle.text,n=this.sketchStyle._selectTextStyle):n=this.sketchStyle._selectVertexStyle;var i=new t({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new h.default({vertexStyle:n}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),o=e.geometry;if(this._drawTools.push(i),i.addFeatureByGeometry(o,null,null,this._sketchInnerLayer),this.sketchStage.selectBoxGraphics=[i.sketchStage.entityGraphic],this._otherDrawTools.push(i),this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage),!this._parent||this._parent&&!this._parent._mapClickEvent){var a=function(){r._preventFirstCall?r._preventFirstCall=void 0:(r.sketchStage.selectBoxGraphics.forEach(function(e){r._removeFeatureFromLayer(e,r._sketchInnerLayer)}),r.view.off(l.ViewEventType.immediateClick,r._mapClickEvent),r._mapClickEvent=void 0,r.fire("selected",{isSelected:!1},self),r._fireRemoveSelectEvent(r.sketchStage.entityGraphic),r.sketchStage.selectBoxGraphics=[],r._editMode=l.SketchEditMode.none,r._isAddTip&&r._updateTipText((0,p.getTipTextByEditOption)("draw-end",r._tipText,r._editOption),r._sketchInnerLayer),r.view._mapActionControl("video-map-active",!1))};this._mapClickEvent||(this._mapClickEvent=a,this._hitTestEventHandlers.push(this._mapClickEvent),this.view.on(l.ViewEventType.immediateClick,a)),this._preventFirstCall=!0}}}},{key:"startPanGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var i=null;i=t.mapPoint,this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._parent._mapClickEvent),this._parent&&this._fireStartPanEvent(this._parent.sketchStage.entityGraphic,this._parent);var o=function(e){if(e&&e.x&&e.y&&!n&&r._startPan){clearTimeout(null),n=!0;var t={x:e.x,y:e.y},o=r.view.toMap({x:t.x,y:t.y}),a=o.coordinates[0]-i.coordinates[0],s=o.coordinates[1]-i.coordinates[1];if(0!==a||0!==s){var u=r.getPanCoordinates(r.sketchStage.entityGraphic.geometry.coordinates,a,s);i.coordinates=u,r.sketchStage.entityGraphic.geometry.coordinates=u,n=!1,r._parent&&(r._parent.sketchStage.entityGraphic.geometry.coordinates=u,r._firePanningEvent(r._parent.sketchStage.entityGraphic,r._parent))}else n=!1}},a=function e(){r._startPan&&(r._startPan=!1,r.view.off(l.ViewEventType.pointerUp,e),r.view.off(l.ViewEventType.pointerMove,o),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent),r._parent&&r._fireStopPanEvent(r._parent.sketchStage.entityGraphic,r._parent),setTimeout(function(){r.view._mapActionControl("drag-pan",!0)},0))};this._hitTestEventHandlers.push(o),this._hitTestEventHandlers.push(a),this.view.on(l.ViewEventType.pointerUp,a),this.view.on(l.ViewEventType.pointerMove,o)}},{key:"startVertexScaleGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n,i=!1;this._startPan=!0,n=t.mapPoint;var o;o=this._parent.sketchStage.entityGraphic.geometry instanceof c.Extent?this._parent.sketchStage.entityGraphic.geometry:this._parent.sketchStage.entityGraphic.geometry.extent,this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._mapClickEvent);var a=e.attributes.direction;this._parent&&this._fireStartScaleEvent(this._parent.sketchStage.entityGraphic,this._parent);var s=function(t){if(t&&t.x&&t.y&&!i&&r._startPan){clearTimeout(null),i=!0;var s={x:t.x,y:t.y},u=r.view.toMap({x:s.x,y:s.y}),l=u.coordinates[0]-n.coordinates[0],c=u.coordinates[1]-n.coordinates[1],f=u.coordinates[0]/n.coordinates[0],h=u.coordinates[1]/n.coordinates[1];0!==l||0!==c?(r._dispatchEvent("vertexScale",{startPoint:n,movePoint:u,deltaPosition:{x:l,y:c},scale:{x:f,y:h},direction:a,extent:o,feature:e,action:"scale"},r),i=!1,r._parent&&r._fireScalingEvent(r._parent.sketchStage.entityGraphic,r._parent)):i=!1}},u=function e(){r._startPan&&(r._dispatchEvent("vertexScale",{action:"stop"},r),r._startPan=!1,r.view.off(l.ViewEventType.pointerUp,e),r.view.off(l.ViewEventType.pointerMove,s),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent)},0),r.view._mapActionControl("drag-pan",!0),r._parent&&r._fireStopScaleEvent(r._parent.sketchStage.entityGraphic,r._parent))};this._hitTestEventHandlers.push(s),this._hitTestEventHandlers.push(u),this.view.on(l.ViewEventType.pointerUp,u),this.view.on(l.ViewEventType.pointerMove,s)}},{key:"startMidVertexScaleGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n,i=!1;this._startPan=!0,n=t.mapPoint;var o;o=this._parent.sketchStage.entityGraphic.geometry instanceof c.Extent?this._parent.sketchStage.entityGraphic.geometry:this._parent.sketchStage.entityGraphic.geometry.extent,this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._parent._mapClickEvent);var a=e.attributes.direction;this._parent&&this._fireStartScaleEvent(this._parent.sketchStage.entityGraphic,this._parent);var s=function(e){if(e&&e.x&&e.y&&!i&&r._startPan){clearTimeout(null),i=!0;var t={x:e.x,y:e.y},s=r.view.toMap({x:t.x,y:t.y}),u=s.coordinates[0]-n.coordinates[0],l=s.coordinates[1]-n.coordinates[1],c=s.coordinates[0]/n.coordinates[0],f=s.coordinates[1]/n.coordinates[1];0!==u||0!==l?(r._dispatchEvent("midVertexScale",{startPoint:n,movePoint:s,deltaPosition:{x:u,y:l},scale:{x:c,y:f},direction:a,extent:o,action:"scale"},r),i=!1,r._parent&&r._fireScalingEvent(r._parent.sketchStage.entityGraphic,r._parent)):i=!1}},u=function e(){r._startPan&&(r._dispatchEvent("vertexScale",{action:"stop"},r),r._startPan=!1,r.view.off(l.ViewEventType.pointerUp,e),r.view.off(l.ViewEventType.pointerMove,s),r.view._mapActionControl("drag-pan",!0),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent)},0),r.view._mapActionControl("drag-pan",!0),r._parent&&r._fireStopScaleEvent(r._parent.sketchStage.entityGraphic,r._parent))};this._hitTestEventHandlers.push(s),this._hitTestEventHandlers.push(u),this.view.on(l.ViewEventType.pointerUp,u),this.view.on(l.ViewEventType.pointerMove,s)}},{key:"startCircleVertexScaleGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n,i=!1;this._startPan=!0,n=t.mapPoint;var o=this._parent.sketchStage.entityGraphic.geometry.extent;this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._mapClickEvent);var a=e.attributes.direction;this._parent&&this._fireStartScaleEvent(this._parent.sketchStage.entityGraphic,this._parent);var s=function(t){if(t&&t.x&&t.y&&!i&&r._startPan){clearTimeout(null),i=!0;var s={x:t.x,y:t.y},u=r.view.toMap({x:s.x,y:s.y}),l=u.coordinates[0]-n.coordinates[0],c=u.coordinates[1]-n.coordinates[1],f=u.coordinates[0]/n.coordinates[0],h=u.coordinates[1]/n.coordinates[1];0!==l||0!==c?(r._dispatchEvent("circleVertexScale",{startPoint:n,movePoint:u,deltaPosition:{x:l,y:c},scale:{x:f,y:h},direction:a,extent:o,feature:e,action:"scale"},r),i=!1,r._parent&&r._fireScalingEvent(r._parent.sketchStage.entityGraphic,r._parent)):i=!1}},u=function e(){r._startPan&&(r._dispatchEvent("circleVertexScale",{action:"stop"},r),r._startPan=!1,r.view.off(l.ViewEventType.pointerUp,e),r.view.off(l.ViewEventType.pointerMove,s),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent)},0),r.view._mapActionControl("drag-pan",!0),r._parent&&r._fireStopScaleEvent(r._parent.sketchStage.entityGraphic,r._parent))};this._hitTestEventHandlers.push(s),this._hitTestEventHandlers.push(u),this.view.on(l.ViewEventType.pointerUp,u),this.view.on(l.ViewEventType.pointerMove,s)}},{key:"startVertexMoveGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var i=null;i=t.mapPoint;var o=e.attributes?e.attributes.vertexIndex:-2;"midVertex"===e.attributes.type?(this._fireAddVertexEvent(this._parent.sketchStage.entityGraphic,this._parent),this._dispatchEvent("midVertexAdd",{point:i,vertexIndex:e.attributes?o:void 0,action:"changeFeature"},this),this._startPan=!0):this._startPan=!0,this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._parent._mapClickEvent),this._parent&&this._fireStartVertexMoveEvent(this._parent.sketchStage.entityGraphic,this._parent);var a=function(t){if(t&&t.x&&t.y&&!n&&r._startPan){clearTimeout(null),n=!0;var a={x:t.x,y:t.y},s=r.view.toMap({x:a.x,y:a.y}),u=s.coordinates[0]-i.coordinates[0],l=s.coordinates[1]-i.coordinates[1];0!==u||0!==l?("midVertex"===e.attributes.type?r._dispatchEvent("midVertexAdd",{startPoint:i,movePoint:s,vertexIndex:o,vertexType:e.attributes?e.attributes.type:void 0,action:"moveMidVertex"},r):r._dispatchEvent("vertexMove",{startPoint:i,movePoint:s,vertexIndex:o,vertexType:e.attributes?e.attributes.type:void 0},r),i=s,n=!1,r._parent&&r._fireUpdateVertex(r._parent.sketchStage.entityGraphic,r._parent)):n=!1}},s=function t(o){if(o&&o.x&&o.y&&r._startPan){if(r.view._mapActionControl("drag-pan",!1),r._startPan=!1,r.view.off(l.ViewEventType.pointerUp,t),r.view.off(l.ViewEventType.pointerMove,a),r.view._mapActionControl("drag-pan",!0),"midVertex"===e.attributes.type){var s=e.attributes.vertexIndex;r._dispatchEvent("midVertexAdd",{point:i,vertexIndex:e.attributes?s:void 0,action:"addVertex"},r)}n=!1,r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent)},0),r.view._mapActionControl("drag-pan",!0),r._parent&&r._fireStopVertexMoveEvent(r._parent.sketchStage.entityGraphic,r._parent)}};this._hitTestEventHandlers.push(a),this._hitTestEventHandlers.push(s),this.view.on(l.ViewEventType.pointerUp,s),this.view.on(l.ViewEventType.pointerMove,a)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type?this._handlerMidVertexScaleEvent(e):"circleVertexScale"===e.type&&this._handlerCircleVertexScaleEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this.getPanCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.deltaPosition.x,e.deltaPosition.y,this.sketchStage.entityGraphic.attributes.direction,e.extent),r=new c.Point({coordinates:t,spatialReference:this._spatialReference});this.sketchStage.entityGraphic.geometry=r}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var t=JSON.parse((0,n.default)([this.sketchStage.entityGraphic.geometry.coordinates]));this.sketchStage.entityGraphic.attributes.lastCoordinates=t}this.sketchStage.entityGraphic.attributes=this.sketchStage.entityGraphic.attributes?this.sketchStage.entityGraphic.attributes:{};var r=void 0;if(this._parent){var i=this._parent.sketchStage.entityGraphic.geometry instanceof c.Extent?this._parent.sketchStage.entityGraphic.geometry:this._parent.sketchStage.entityGraphic.geometry.extent,o=this.sketchStage.entityGraphic.attributes.direction;"e"===o?r=this._getCenterCoordinate([i.xmax,i.ymin],[i.xmax,i.ymax]):"s"===o?r=this._getCenterCoordinate([i.xmax,i.ymin],[i.xmin,i.ymin]):"w"===o?r=this._getCenterCoordinate([i.xmin,i.ymin],[i.xmin,i.ymax]):"n"===o?r=this._getCenterCoordinate([i.xmax,i.ymax],[i.xmin,i.ymax]):"ne"===o?r=[i.xmax,i.ymax]:"se"===o?r=[i.xmax,i.ymin]:"sw"===o?r=[i.xmin,i.ymin]:"nw"===o&&(r=[i.xmin,i.ymax])}r||(r=this.getScaleCoordinates([this.sketchStage.entityGraphic.geometry.coordinates],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates,this.sketchStage.entityGraphic.attributes.direction)[0]);var a=new c.Point({coordinates:r,spatialReference:this._spatialReference});this.sketchStage.entityGraphic.geometry=a}"stop"===e.action&&this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0)}},{key:"_handlerMidVertexScaleEvent",value:function(e){if("scale"===e.action){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)([this.sketchStage.entityGraphic.geometry.coordinates]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getMidScaleCoordinates([this.sketchStage.entityGraphic.geometry.coordinates],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new c.Point({coordinates:i[0],spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t,this._parent&&this._parent.sketchStage.updateGraphic(this.sketchStage.entityGraphic)}else"stop"===e.action&&this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0)}},{key:"_handlerCircleVertexScaleEvent",value:function(e){this._handlerMidVertexScaleEvent(e)}}]),t}(f.default);t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(r(24)),i=v(r(3)),o=v(r(0)),a=v(r(2)),s=v(r(4)),u=v(r(5)),l=r(8),c=r(1),f=r(9),h=v(r(634)),d=r(167),p=r(59),y=r(260),g=v(r(45)),m=r(85);function v(e){return e&&e.__esModule?e:{default:e}}var _=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this));return r.type="SketchBaseDrawTool",r._id=(0,c.defaultValue)(e.id,(0,c.getGUID)()),r.view=(0,c.defaultValue)(e.view,null),r.layer=(0,c.defaultValue)(e.layer,void 0),r._sketchInnerLayer=(0,c.defaultValue)(e.sketchInnerLayer,void 0),r.sketchStage=new h.default,void 0!==e.sketchStyle&&(r.sketchStyle=e.sketchStyle.clone()),r.elevationInfo=(0,c.defaultValue)(e.elevationInfo,void 0),r.type="sketchBaseDrawTool",r.extensionOptions=(0,c.defaultValue)(e.extensionOptions,void 0),r._editMode=l.SketchEditMode.none,r._spatialReference=e.view._spatialReference?e.view._spatialReference:new f.SpatialReference("EPSG:4326"),r._drawEventHandlers=[],r._hitTestEventHandlers=[],r._sketchDataType=null,r._parent=(0,c.defaultValue)(e._parent,void 0),r.undoRedoManager=(0,c.defaultValue)(e.undoRedoManager,void 0),r.editOption=(0,c.defaultValue)(e.editOption,{showSelectBox:!0,showSelectVertex:!1,canEditFeature:!0,canEditVertex:!0,_hitTestMode:0}),r._drawTools=[],r._hitTestDrawToolStack=[],r._clampToGround=!0,r.snapAndReferGeometries=[],r._sketchEditor=(0,c.defaultValue)(e._sketchEditor,void 0),r._sketchEditor&&(r.sketchSnappingTool=r._sketchEditor._sketchSnappingTool,r.snapAndReferGeometries=r._sketchEditor.snapAndReferGeometries,r._isAddTip=r._sketchEditor._isAddTip,r._isShowTip=r._sketchEditor._isShowTip,r._tipTextGraphics=r._sketchEditor._tipTextGraphics),r.cursorStyle=null,r._snapPoint=null,r._sketchDataType=e.sketchDataType,r.arcType=e.arcType,r._getCenterCoordinate=e._getCenterCoordinate,r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"start",value:function(){this.stop(),this._isAddTip&&this._updateTipText(this._tipText.drawStart,this._sketchInnerLayer),this.drawFeature()}},{key:"stop",value:function(){this._editMode===l.SketchEditMode.drawing||this._editMode===l.SketchEditMode.none?this._stopDraw():this._editMode===l.SketchEditMode.editGraphic||this._editMode===l.SketchEditMode.editVertex?this._stopHitTest():(this._stopDraw(),this._stopHitTest())}},{key:"hitTestFeature",value:function(e,t){switch(this.type){case"sketchPolygonDrawTool":case"sketchPolylineDrawTool":case"sketchFreehandPolygonDrawTool":case"sketchFreehandPolylineDrawTool":case"sketchCircleDrawTool":case"sketchExtentDrawTool":default:this._hitTestFeatureInPolygon(e,t);break;case"sketchPointDrawTool":}}},{key:"selectFeature",value:function(e){switch(this.type){case"sketchPolygonDrawTool":case"sketchPolylineDrawTool":case"sketchFreehandPolygonDrawTool":case"sketchFreehandPolylineDrawTool":default:this._selectFeatureInPolygon(e,e.geometry.extent);break;case"sketchPointDrawTool":break;case"sketchCircleDrawTool":this._selectFeatureInCircle(e,e.geometry);break;case"sketchExtentDrawTool":this._selectFeatureInPolygon(e,e.geometry)}}},{key:"_hitTestFeatureInPolygon",value:function(e,t){this.view._mapActionControl("video-map-active",!0);var r=this._getEditOptionMode(this._editOption);!r||r.editGraphic&&r.editVertex?(this._parent&&this._parent._editMode===l.SketchEditMode.editGraphic&&this.startPanGraphics(e,t,r),!this._parent&&this.editOption.showSelectBox&&(this._editMode===l.SketchEditMode.none?this._editMode=l.SketchEditMode.editGraphic:this._editMode===l.SketchEditMode.editVertex&&(this.view.off(l.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=l.SketchEditMode.editGraphic),this.selectFeature(e))):r.editGraphic?(this.selectFeature(e),this._parent&&this._parent._editMode===l.SketchEditMode.editGraphic&&this.startPanGraphics(e,t),this._parent||(this._editMode=l.SketchEditMode.editGraphic)):r.editVertex&&(this._mapClickEvent||this._parent||this._registeMapClickEvent(),this._editMode!==l.SketchEditMode.editVertex&&this.selectFeatureVertex&&this.selectFeatureVertex(this.sketchStage.entityGraphic),this._parent||(this._editMode=l.SketchEditMode.editVertex))}},{key:"_selectFeatureInPolygon",value:function(e,t){var r=this;if(this.editOption.showSelectBox){if(this._clearEditGraphics(2),this._editOption.graphic.move||this._editOption.graphic.scale){var n=this.sketchStyle._selectBoxStyle;!this._editOption.graphic.move&&this._editOption.graphic.scale&&(n=this.sketchStyle._selectBoxScaleStyle);var i=new y.SketchPolygonDrawTool({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new g.default({fillStyle:n,isShowSegmentLength:!0,isShowArea:!0}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,arcType:this.arcType,_getCenterCoordinate:this._getCenterCoordinate,_parent:this});this._drawTools.push(i),i.addFeature([[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax]],void 0,void 0,this._sketchInnerLayer),this.sketchStage.selectBoxGraphics=[i.sketchStage.entityGraphic],this._otherDrawTools?this._otherDrawTools.push(i):this._otherDrawTools=[i]}if(this._editOption.graphic.scale){var o=[];if(o=[{point:new f.Point({coordinates:[t.xmax,t.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new f.Point({coordinates:[t.xmax,t.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new f.Point({coordinates:[t.xmin,t.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new f.Point({coordinates:[t.xmin,t.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._getCenterCoordinate){var a=[{point:new f.Point({coordinates:this._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new f.Point({coordinates:this._getCenterCoordinate([t.xmax,t.ymin],[t.xmin,t.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new f.Point({coordinates:this._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new f.Point({coordinates:this._getCenterCoordinate([t.xmin,t.ymax],[t.xmax,t.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];o=o.concat(a)}var s=[],u=[];o.forEach(function(e){var t=new y.SketchPointDrawTool({view:r.view,layer:r._sketchInnerLayer,sketchInnerLayer:r._sketchInnerLayer,sketchStyle:new g.default({vertexStyle:r.sketchStyle._selectBoxVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},arcType:r.arcType,_getCenterCoordinate:r._getCenterCoordinate,elevationInfo:r.elevationInfo,_parent:r});r._drawTools.push(t),t.addFeature(e.point,r.sketchStage,{direction:e.direction,type:e.type},r._sketchInnerLayer),s.push(t),u.push(t.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=u,this._otherDrawTools=this._otherDrawTools.concat(s)}this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage,this._editMode),this._mapClickEvent||this._parent&&(!this._parent||this._parent._mapClickEvent)||this._registeMapClickEvent()}}},{key:"_selectFeatureInCircle",value:function(e){var t=this;if(this.editOption.showSelectBox){this._clearEditGraphics(2);var r=e.geometry.extent;if(this._editOption.graphic.move||this._editOption.graphic.scale){var n=this.sketchStyle._selectBoxStyle,i=1;!this._editOption.graphic.move&&this._editOption.graphic.scale&&(n=this.sketchStyle._selectBoxScaleStyle),!this._editOption.graphic.scale||this._editOption.vertex.move||this._editOption.vertex.add||(i=void 0);var o=new y.SketchPolygonDrawTool({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new g.default({fillStyle:n,isShowSegmentLength:!0,isShowArea:!0}),editOption:{showSelectBox:!1,_hitTestMode:i},elevationInfo:this.elevationInfo,arcType:this.arcType,_getCenterCoordinate:this._getCenterCoordinate,_parent:this});this._drawTools.push(o),o.addFeature([[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax]],void 0,void 0,this._sketchInnerLayer),this.sketchStage.selectBoxGraphics=[o.sketchStage.entityGraphic],this._otherDrawTools?this._otherDrawTools.push(o):this._otherDrawTools=[o]}var a=[];if(this._editOption.graphic.scale){if(this._sketchEditor&&this._sketchEditor._getCenterCoordinate){var s=[{point:new f.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"circleVertex"}];a=a.concat(s)}var u=[],l=[];a.forEach(function(e){var r=new y.SketchPointDrawTool({view:t.view,layer:t.layer,sketchStyle:new g.default({vertexStyle:t.sketchStyle._selectBoxVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_getCenterCoordinate:t._getCenterCoordinate,_parent:t});t._drawTools.push(r),r.addFeature(e.point,t.sketchStage,{direction:e.direction,type:e.type},t._sketchInnerLayer),u.push(r),l.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=l,this._otherDrawTools=this._otherDrawTools.concat(u)}this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage),this._mapClickEvent||this._parent&&(!this._parent||this._parent._mapClickEvent)||this._registeMapClickEvent()}}},{key:"_registeMapClickEvent",value:function(){var e=this;this._mapClickEvent=function(){e._preventFirstCall?e._preventFirstCall=void 0:(e.sketchStage.selectBoxGraphics.concat(e.sketchStage.selectBoxVertexGraphics).concat(e.sketchStage.vertexGraphics).concat(e.sketchStage.midVertexGraphics).forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.view.off(l.ViewEventType.immediateClick,e._mapClickEvent),e.view._mapActionControl("drag-pan",!0),e._mapClickEvent=null,e.fire("selected",{isSelected:!1},self),e._fireRemoveSelectEvent(e.sketchStage.entityGraphic),e.sketchStage.selectBoxGraphics=[],e.sketchStage.selectBoxVertexGraphics=[],e.sketchStage.vertexGraphics=[],e.sketchStage.midVertexGraphics=[],e._editMode=l.SketchEditMode.none,e._isAddTip&&e._updateTipText((0,m.getTipTextByEditOption)("draw-end",e._tipText,e._editOption),e._sketchInnerLayer),e.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),setTimeout(function(){e.view.on(l.ViewEventType.immediateClick,e._mapClickEvent)},0)}},{key:"_stopAll",value:function(){this._stopDraw(),this._stopHitTest()}},{key:"_stopDraw",value:function(){var e=this;this._drawEventHandlers&&(this._drawEventHandlers.forEach(function(t){e.view.off(l.ViewEventType.immediateClick,t),e.view.off(l.ViewEventType.pointerUp,t),e.view.off(l.ViewEventType.pointerMove,t),e.view.off(l.ViewEventType.pointerDown,t),e.view.off(l.ViewEventType.doubleClick,t),e.view.off(l.ViewEventType.drag,t)}),this._drawEventHandlers=[]),this._stopInitSnap()}},{key:"_stopHitTest",value:function(){var e=this;this._hitTestEventHandlers&&(this._hitTestEventHandlers.forEach(function(t){t&&(e.view.off(l.ViewEventType.pointerUp,t),e.view.off(l.ViewEventType.pointerMove,t),e.view.off(l.ViewEventType.pointerDown,t),e.view.off(l.ViewEventType.click,t),e.view.off(l.ViewEventType.immediateClick,e._mapClickEvent))}),this._mapClickEvent=null,this._hitTestEventHandlers=[])}},{key:"setSketchStyle",value:function(e){this.sketchStyle=e}},{key:"_clearEditGraphics",value:function(e){var t=this,r=function(){t.sketchStage.selectBoxGraphics.concat(t.sketchStage.selectBoxVertexGraphics).forEach(function(e){t._removeFeatureFromLayer(e,t._sketchInnerLayer)}),t._otherDrawTools=[],t.sketchStage.selectBoxGraphics=[],t.sketchStage.selectBoxVertexGraphics=[]},n=function(){var e=null;(e=t._parent?t._parent:t).sketchStage.vertexGraphics.concat(e.sketchStage.midVertexGraphics).forEach(function(e){t._removeFeatureFromLayer(e,t._sketchInnerLayer)}),e._otherDrawTools=[],e.sketchStage.vertexGraphics=[],e.sketchStage.midVertexGraphics=[]};e===l.SketchEditMode.editGraphic?r():e===l.SketchEditMode.editVertex?n():(r(),n())}},{key:"_isDrawToolFeature",value:function(e){var t=this,r=e.id,n=!1;return this.sketchStage.entityGraphic.id===r&&(n=!0,this._editMode=l.SketchEditMode.editGraphic),this.sketchStage.vertexGraphics.forEach(function(e){e.id===r&&(n=!0,t._editMode=l.SketchEditMode.editVertex)}),this.sketchStage.midVertexGraphics.forEach(function(e){e.id===r&&(n=!0,t._editMode=l.SketchEditMode.editVertex)}),n||(this._editMode=l.SketchEditMode.none),n}},{key:"_getDrawToolByFeature",value:function(e){var t=e.id,r=null;return this.sketchStage.entityGraphic.id===t&&(r=this.sketchStage.entityGraphic),r.length>0?r[0]:null}},{key:"_addFeatureToLayer",value:function(e,t){if(t instanceof p.GraphicsLayer)t.add(e);else if(t instanceof p.GroupLayer){var r=t.allLayers.find(function(e){return e instanceof p.GraphicsLayer});r&&r.add(e)}}},{key:"_removeFeatureFromLayer",value:function(e,t){if(t instanceof p.GraphicsLayer)t.remove(e);else if(t instanceof p.GroupLayer){var r=t.allLayers.find(function(e){return e instanceof p.GraphicsLayer});r&&r.remove(e)}}},{key:"_dispatchEvent",value:function(e,t,r){return this._parent&&this._parent.fire(e,t,r),this}},{key:"updateFeature",value:function(e,t){var r=t.id;this.sketchStage.entityGraphic.id===r&&(this.sketchStage.entityGraphic.coordinates=e.coordinates,this.sketchStage.entityGraphic.geometry=e,t=this.sketchStage.entityGraphic)}},{key:"_clearDrawToolSketchStage",value:function(){this._removeFeatureFromLayer(this.sketchStage.entityGraphic,this.layer),this._removeEditGraphics()}},{key:"removeDrawTool",value:function(){this._stopAll(),this.sketchStage=null}},{key:"removeEntityGraphic",value:function(){this._removeFeatureFromLayer(this.sketchStage.entityGraphic,this._layer),this.sketchStage.entityGraphic=null}},{key:"removeVertexGraphics",value:function(){var e=this;this.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),this.sketchStage.vertexGraphics=[]}},{key:"addVertex",value:function(e,t){}},{key:"updateVertex",value:function(e,t){}},{key:"removeVertex",value:function(e,t){}},{key:"getDistanceByPixel",value:function(e){return this.view.getResolution?this.view.getResolution()*e:1e3}},{key:"getPanCoordinates",value:function(e,t,r,n,i){return"e"===n?this._getCenterCoordinate([i.xmax,i.ymin],[i.xmax,i.ymax]):"s"===n?this._getCenterCoordinate([i.xmax,i.ymin],[i.xmin,i.ymin]):"w"===n?this._getCenterCoordinate([i.xmin,i.ymin],[i.xmin,i.ymax]):"n"===n?this._getCenterCoordinate([i.xmax,i.ymax],[i.xmin,i.ymax]):[e[0]+t,e[1]+r]}},{key:"getScaleCoordinates",value:function(e,t,r,n,i,o,a){var s=[];return o=o||[],e.forEach(function(e,a){var u=function(e,t,r,o,a){var s=1,u=1,l=Number(e[0].toString()),c=Number(e[1].toString()),f=n.coordinates,h=i.coordinates;return o=o||[],"ne"===r&&(s=(h[0]-t.xmin)/(f[0]-t.xmin),l=([o[0]]-t.xmin)*s+t.xmin,u=(h[1]-t.ymin)/(f[1]-t.ymin),c=(o[1]-t.ymin)*u+t.ymin),"se"===r&&(s=(h[0]-t.xmin)/(f[0]-t.xmin),l=([o[0]]-t.xmin)*s+t.xmin,u=(h[1]-t.ymax)/(f[1]-t.ymax),c=(o[1]-t.ymax)*u+t.ymax),"sw"===r&&(s=(h[0]-t.xmax)/(f[0]-t.xmax),l=([o[0]]-t.xmax)*s+t.xmax,u=(h[1]-t.ymax)/(f[1]-t.ymax),c=(o[1]-t.ymax)*u+t.ymax),"nw"===r&&(s=(h[0]-t.xmax)/(f[0]-t.xmax),l=([o[0]]-t.xmax)*s+t.xmax,u=(h[1]-t.ymin)/(f[1]-t.ymin),c=(o[1]-t.ymin)*u+t.ymin),[l,c]}(e,r,t,o[a]);void 0!==e[2]&&(u[2]=e[2]),s.push(u)}),s}},{key:"getMidScaleCoordinates",value:function(e,t,r,n,i,o){var a=[];return o=o||[],e.forEach(function(e,s){var u=function(e,t,r,o){var a=1,s=1,u=e[0],l=e[1],c=n.coordinates,f=i.coordinates;return o=o||[],"e"===r&&(a=(f[0]-t.xmin)/(c[0]-t.xmin),u=([o[0]]-t.xmin)*a+t.xmin),"s"===r&&(s=(f[1]-t.ymax)/(c[1]-t.ymax),l=(o[1]-t.ymax)*s+t.ymax),"w"===r&&(a=(f[0]-t.xmax)/(c[0]-t.xmax),u=([o[0]]-t.xmax)*a+t.xmax),"n"===r&&(s=(f[1]-t.ymin)/(c[1]-t.ymin),l=(o[1]-t.ymin)*s+t.ymin),[u,l]}(e,r,t,o[s]);e[2]&&(u[2]=e[2]),a.push(u)}),a}},{key:"getCenterScaleCoordinates",value:function(e,t,r,n,i,o){var a=[];return o=o||[],e.forEach(function(e,s){var u=function(e,t,r,o){var a=1,s=1,u=e[0],l=e[1],c=n.coordinates,f=i.coordinates;return o=o||[],"e"===r&&(a=(f[0]-t.xmin)/(c[0]-t.xmin),u=([o[0]]-t.xmin)*a+t.xmin),"s"===r&&(s=(f[1]-t.ymax)/(c[1]-t.ymax),l=(o[1]-t.ymax)*s+t.ymax),"w"===r&&(a=(f[0]-t.xmax)/(c[0]-t.xmax),u=([o[0]]-t.xmax)*a+t.xmax),"n"===r&&(s=(f[1]-t.ymin)/(c[1]-t.ymin),l=(o[1]-t.ymin)*s+t.ymin),[u,l]}(e,r,t,o[s]);e[2]&&(u[2]=e[2]),a.push(u)}),a}},{key:"_setSketchStage",value:function(e){this.sketchStage=e}},{key:"_getDrawToolByFeatureId",value:function(e){return this._drawTools.find(function(t){return t.sketchStage.entityGraphic&&t.sketchStage.entityGraphic.id===e})}},{key:"_removeEditGraphics",value:function(){var e=this;this.sketchStage.selectBoxGraphics.concat(this.sketchStage.selectBoxVertexGraphics).concat(this.sketchStage.vertexGraphics).concat(this.sketchStage.midVertexGraphics).concat(this.sketchStage.snapGraphics).forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),this.sketchStage.selectBoxGraphics=[],this.sketchStage.selectBoxVertexGraphics=[],this.sketchStage.vertexGraphics=[],this.sketchStage.midVertexGraphics=[],this.sketchStage.snapGraphics=[]}},{key:"_getInteractiveDom",value:function(){for(var e=[],t=document.getElementsByClassName("leaflet-interactive"),r=0;r<t.length;r++)e.push(t[r]);return e}},{key:"_removeInteractiveStyle",value:function(e){for(var t=0;t<e.length;t++)e[t].classList.remove("leaflet-interactive")}},{key:"_addInteractiveStyle",value:function(e){for(var t=0;t<e.length;t++)e[t].classList.add("leaflet-interactive")}},{key:"_setInitSnap",value:function(){var e=this;this._snapPoint=null,this._handlerInitMouseMove=function(t){if(t&&t.x&&t.y){var r={x:t.x,y:t.y},n=e.view.toMap({x:r.x,y:r.y});e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._snapPoint=e.getSnapGraphics(n)}},this._drawEventHandlers.push(this._handlerInitMouseMove),this.view.on(l.ViewEventType.pointerMove,this._handlerInitMouseMove)}},{key:"_stopInitSnap",value:function(){this._handlerInitMouseMove&&(this.view.off(l.ViewEventType.pointerMove,this._handlerInitMouseMove),this._handlerInitMouseMove=void 0)}},{key:"_fireStartDrawEvent",value:function(e){e=e||this;var t=new d.SketchEditorEvent({type:l.SketchEditorEventType.create,toolEventInfo:{},state:l.SketchEditorState.start});e.fire(l.SketchEditorEventType.create,t,self)}},{key:"_fireDrawVertexEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.create,toolEventInfo:{type:l.SketchEditorToolEventType.vertexAdd},state:l.SketchEditorState.active,feature:e,geometry:e?e.geometry:void 0});t.fire(l.SketchEditorEventType.create,r,self)}},{key:"_fireChangeCursorEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.create,toolEventInfo:{type:l.SketchEditorToolEventType.cursorChange},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.create,r,self)}},{key:"_fireStopDrawEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.create,toolEventInfo:null,state:l.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.create,r,self)}},{key:"_fireStartPanEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.moveStart},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_firePanningEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.move},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireStopPanEvent",value:function(e,t){var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.moveStop},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireStartScaleEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.scaleStart},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireScalingEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.scale},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireStopScaleEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.scaleStop},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireStartVertexMoveEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.vertexMoveStart},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireUpdateVertex",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.vertexUpdate},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireStopVertexMoveEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.vertexMoveStop},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireAddVertexEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.vertexAdd},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireAddVertexEventByFun",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.vertexAdd},state:l.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,this)}},{key:"_fireUpdateVertexByFun",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.vertexUpdate},state:l.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireRemoveVertexByFun",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.vertexRemove},state:l.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,this)}},{key:"_fireRemoveSelectEvent",value:function(e,t){t=t||this;var r=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:null,state:l.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(l.SketchEditorEventType.update,r,self)}},{key:"_fireUnsimpleDraw",value:function(e){e=e||this;var t=new d.SketchEditorEvent({type:l.SketchEditorEventType.create,toolEventInfo:{type:l.SketchEditorToolEventType.geometryUnsimple},state:l.SketchEditorState.active});e.fire(l.SketchEditorEventType.create,t,self)}},{key:"_fireUnsimpleUpdate",value:function(e){e=e||this;var t=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.geometryUnsimple},state:l.SketchEditorState.active});e.fire(l.SketchEditorEventType.update,t,self)}},{key:"_fireUnsimpleUpdateByFun",value:function(e){e=e||this;var t=new d.SketchEditorEvent({type:l.SketchEditorEventType.update,toolEventInfo:{type:l.SketchEditorToolEventType.geometryUnsimple},state:l.SketchEditorState.complete});e.fire(l.SketchEditorEventType.update,t,self)}},{key:"getSnapGraphics",value:function(e,t){var r=this,n=null,i=null,o=[],a=null;t&&0!==t.length?1===t.length?i=new f.LineString({coordinates:[t[0],e.coordinates],spatialReference:this._spatialReference}):(i=new f.LineString({coordinates:t.slice(-2),spatialReference:this._spatialReference}),"sketchFreehandPolylineDrawTool"!==this.type&&"sketchFreehandPolygonDrawTool"!==this.type&&(a=new f.LineString({coordinates:t.slice(0,t.length),spatialReference:this._spatialReference}))):i=e,o=this.snapAndReferGeometries,this.sketchSnappingTool.snapSketchGeometry&&a&&(o=this.snapAndReferGeometries.concat([a])),t&&t.length>0&&("sketchFreehandPolylineDrawTool"===this.type||"sketchFreehandPolygonDrawTool"===this.type)&&o.push(new f.Point({coordinates:t[0],spatialReference:this._spatialReference}));var s=this.sketchSnappingTool.snapGeometries(e,i,o);if(s.coincidentPoint){var u=new l.Feature({geometry:s.coincidentPoint.realPoint,symbol:this.sketchStyle._coincidentPointStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(u),n=s.coincidentPoint.realPoint}else if(s.inLineAndParallel){s.inLineAndParallel.lines.forEach(function(e){var t=new l.Feature({geometry:e,symbol:r.sketchStyle._parallelLineStyle,elevationInfo:r.elevationInfo});r.sketchStage.snapGraphics.push(t)});var c=new l.Feature({geometry:s.inLineAndParallel.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(c),s.inLineAndParallel.symbolGeometry){var h=new l.Feature({geometry:s.inLineAndParallel.symbolGeometry,symbol:this.sketchStyle._parallelLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(h)}n=s.inLineAndParallel.realPoint}else if(s.inLineAndPerpendicular){s.inLineAndPerpendicular.lines.forEach(function(e){var t=new l.Feature({geometry:e,symbol:r.sketchStyle._perpendicularLineStyle,elevationInfo:r.elevationInfo});r.sketchStage.snapGraphics.push(t)});var d=new l.Feature({geometry:s.inLineAndPerpendicular.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(d),s.inLineAndPerpendicular.symbolGeometry){var p=new l.Feature({geometry:s.inLineAndPerpendicular.symbolGeometry,symbol:this.sketchStyle._perpendicularLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(p)}n=s.inLineAndPerpendicular.realPoint}else if(s.pointInLine){var y=new l.Feature({geometry:s.pointInLine.line,symbol:this.sketchStyle._highlightLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(y);var g=new l.Feature({geometry:s.pointInLine.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(g),n=s.pointInLine.realPoint}else if(s.parallelLine){var m=new l.Feature({geometry:s.parallelLine.line,symbol:this.sketchStyle._parallelLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(m);var v=new l.Feature({geometry:s.parallelLine.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(v),s.parallelLine.symbolGeometry){var _=new l.Feature({geometry:s.parallelLine.symbolGeometry,symbol:this.sketchStyle._parallelLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(_)}n=s.parallelLine.realPoint}else if(s.perpendicularLine){var S=new l.Feature({geometry:s.perpendicularLine.line,symbol:this.sketchStyle._perpendicularLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(S);var b=new l.Feature({geometry:s.perpendicularLine.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(b),s.perpendicularLine.symbolGeometry){var x=new l.Feature({geometry:s.perpendicularLine.symbolGeometry,symbol:this.sketchStyle._perpendicularLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(x)}n=s.perpendicularLine.realPoint}return this.sketchStage.snapGraphics.forEach(function(e){r._addFeatureToLayer(e,r._sketchInnerLayer)}),n}},{key:"setSnapAndReferGeometries",value:function(e){e?this.snapAndReferGeometries=e:this._sketchEditor&&(this.snapAndReferGeometries=this._sketchEditor.snapAndReferGeometries)}},{key:"debounce",value:function(e,t){var r=void 0;return function(){var n=this,i=arguments;clearTimeout(r),r=setTimeout(function(){e.apply(n,i)},t)}}},{key:"_updateTipText",value:function(e,t,r){if(e&&(t=t||this._sketchInnerLayer,this.sketchStyle&&this.sketchStyle.tipTextStyle)){var n=this.sketchStyle.tipTextStyle.clone();n.id=(0,c.getGUID)(),e.text&&(n.text=e.text),e.lineWidth&&(n.lineWidth=e.lineWidth),this._tipTextGraphics&&this._tipTextGraphics.length>0&&(this._tipTextGraphics[0].symbol=n,this._tipTextGraphics[0].visible=this._isShowTip)}}},{key:"_getTipTextObject",value:function(){var e=void 0;switch(this.type){case"sketchPolygonDrawTool":case"sketchPolylineDrawTool":case"sketchFreehandPolygonDrawTool":case"sketchFreehandPolylineDrawTool":e={drawStart:{text:"左键单击增加一个顶点,双击完成绘制;",lineWidth:150},editGraphic:{text:"左键拖动外包盒,更改位置;左键拖动外包盒顶点,更改大小;左键单击外包盒,进入顶点编辑",lineWidth:200},beforeEditGraphic:{text:"左键单击外包盒,进入顶点编辑;",lineWidth:160},moveGraphic:{text:"左键拖动外包盒,更改位置;",lineWidth:200},scaleGraphic:{text:"左键拖动外包盒顶点,更改大小;",lineWidth:200},editVertex:{text:"左键拖动外包盒顶点,更改顶点位置;左键拖动中点,增加一个顶点;",lineWidth:250},beforeEditVertex:{text:"左键单击外包盒,进入顶点编辑;",lineWidth:160},moveVertex:{text:"左键拖动外包盒顶点,更改顶点位置;",lineWidth:120},addVertex:{text:"左键拖动中点,增加一个顶点;",lineWidth:120}};break;case"sketchCircleDrawTool":default:e={drawStart:{text:"左键按下确定圆心,拖动确定半径;",lineWidth:200},editGraphic:{text:"左键拖动外包盒,更改位置;左键拖动外包盒顶点,更改大小;",lineWidth:200},beforeEditGraphic:{text:"左键单击外包盒,进入顶点编辑;",lineWidth:160},moveGraphic:{text:"左键拖动外包盒,更改位置;",lineWidth:200},scaleGraphic:{text:"左键拖动外包盒顶点,更改大小;",lineWidth:200}};break;case"sketchExtentDrawTool":e={drawStart:{text:"左键按下确定矩形左上角,拖动确定矩形右下角;",lineWidth:200},editGraphic:{text:"左键拖动外包盒,更改位置;左键拖动外包盒顶点,更改大小;",lineWidth:200},beforeEditGraphic:{text:"左键单击外包盒,进入顶点编辑;",lineWidth:160},moveGraphic:{text:"左键拖动外包盒,更改位置;",lineWidth:200},scaleGraphic:{text:"左键拖动外包盒顶点,更改大小;",lineWidth:200}};break;case"sketchPointDrawTool":e={drawStart:{text:"左键单击绘制点;",lineWidth:140},editGraphic:{text:"左键按下移动选中要素;",lineWidth:140},beforeEditGraphic:{text:"左键按下移动选中要素;",lineWidth:140},moveGraphic:{text:"左键按下移动选中要素;",lineWidth:140},beforeEditVertex:{text:"左键按下移动选中要素;",lineWidth:160},editVertex:{text:"左键按下移动选中要素;",lineWidth:250},moveVertex:{text:"左键按下移动选中要素;",lineWidth:120}}}return e}},{key:"_getEditOption",value:function(){var e=void 0;switch(this._sketchEditor?e=this._sketchEditor._editOption:this._parent&&this._parent._editOption&&(e=this._parent._editOption),e=(0,c.defaultValue)(e,{graphic:{},vertex:{}}),e=(0,c.extendDeep)({graphic:{move:!0,scale:!0},vertex:{move:!0,add:!0}},e),this.type){case"sketchCircleDrawTool":case"sketchExtentDrawTool":e.vertex.move=!1,e.vertex.add=!1;break;case"sketchPointDrawTool":e.graphic.scale=!1,e.vertex.add=!1}return e}},{key:"_getEditOptionMode",value:function(e){var t={editGraphic:!0,editVertex:!0};return e&&0!==(0,n.default)(e).length||(this._editOption={graphic:{move:!0,scale:!0},vertex:{move:!0,add:!0}}),e.graphic.move||e.graphic.scale||(t.editGraphic=!1),e.vertex.move||e.vertex.add||(t.editVertex=!1),t}}]),t}(l.Evented);t.default=_},function(e,t,r){var n=r(120),i=r(119);e.exports=function(e){return n(i(e))}},function(e,t,r){var n=r(37),i=r(76);e.exports=r(33)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib,n=r.Base,i=r.WordArray,o=t.algo,a=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,o=n.hasher.create(),a=i.create(),s=a.words,u=n.keySize,l=n.iterations;s.length<u;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var c=1;c<l;c++)r=o.finalize(r),o.reset();a.concat(r)}return a.sigBytes=4*u,a}});t.EvpKDF=function(e,t,r){return s.create(r).compute(e,t)}}(),e.EvpKDF}(r(14),r(171),r(130))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),this.initPropertys(t),this.sourceTarget=(0,o.defaultValue)(t.sourceTarget,null),this.target=(0,o.defaultValue)(t.target,null)}return(0,i.default)(e,[{key:"initPropertys",value:function(e){var t=e||{};return this.type=t.type,this.target=t.target,t}},{key:"addProperty",value:function(e,t){e&&(this[e]=t)}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=s(r(185));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t,r,i,a){(0,n.default)(this,e),this.red=(0,o.defaultValue)(t,0),this.green=(0,o.defaultValue)(r,0),this.blue=(0,o.defaultValue)(i,0),this.alpha=(0,o.defaultValue)(a,1)}return(0,i.default)(e,[{key:"toCesiumRGB",value:function(){return{red:this.red/255,green:this.green/255,blue:this.blue/255,alpha:this.alpha}}},{key:"toCssRGBAString",value:function(){return"rgba("+this.red+","+this.green+","+this.blue+","+this.alpha+")"}},{key:"toCssRGBString",value:function(){return"rgb("+this.red+","+this.green+","+this.blue+")"}},{key:"clone",value:function(){return new e(this.red,this.green,this.blue,this.alpha)}},{key:"toJSON",value:function(){return{red:this.red,green:this.green,blue:this.blue,alpha:this.alpha}}}]),e}();u.fromRGBString=function(e){if(u.isRGB(e))if(e.indexOf("rgba")>-1||e.indexOf("RGBA")>-1){var t=e.substring(5,e.length-1);if(4===(t=t.split(",")).length)return new u(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3]))}else if(e.indexOf("rgb")>-1||e.indexOf("RGB")>-1){var r=e.substring(4,e.length-1);if(3===(r=r.split(",")).length)return new u(Number(r[0]),Number(r[1]),Number(r[2]))}},u.fromHexString=function(e){if(u.isHex(e)){var t=u.hexToRgb(e);if(t.indexOf("rgba")>-1||t.indexOf("RGBA")>-1)return u.fromRGBString(t);if(t.indexOf("rgb")>-1||t.indexOf("RGB")>-1)return u.fromRGBString(t)}},u.fromJSON=function(e){e=(0,o.defaultValue)(e,{});var t=(0,o.defaultValue)(e.red,255),r=(0,o.defaultValue)(e.green,255),n=(0,o.defaultValue)(e.blue,255),i=(0,o.defaultValue)(e.alpha,1);return new u(t,r,n,i)},u.hexToRgb=function(e){if(/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/.test(e)){var t=e.toLowerCase().replace(/\#/g,""),r=t.length;if(3===r||4===r){for(var n="",i=0;i<r;i++)n+=t.slice(i,i+1).concat(t.slice(i,i+1));r=(t=n).length}for(var o=[],a=0;a<r;a+=2){var s=t.slice(a,a+2);o.push(parseInt("0x"+s))}var u=void 0;if(6===r)u="rgb("+o.join(",")+")";else if(8===r){u="rgba(";for(var l=0;l<3;l++)u+=o[l]+",";u+=o[3]/255+")"}return u}},u.rgbToHex=function(e){if(/^(rgb|rgba|RGB|RGBA)/.test(e)){var t;t=e.indexOf("rgba")>-1||e.indexOf("RGBA")>-1?e.slice(5,e.length-1).split(","):e.slice(4,e.length-1).split(",");for(var r="#",n=0;n<3;n++)r+=i(t[n]);return 4===t.length&&(r+=i(255*Number(t[3]))),r}function i(e){var t=Number(e).toString(16);return"0"===t&&(t+="0"),1===t.length&&(t="0"+t),t}},u.fromCssString=function(e){if(!e||"string"!=typeof e)return u.fromHexString("#000000");var t=e.toLowerCase(),r=a.default[t];return r?u.fromHexString(r):u.fromHexString("#000000")},u.fromColor=function(e){return"string"==typeof e?u.isHex(e)?u.fromHexString(e):u.isRGB(e)?u.fromRGBString(e):u.fromCssString(e):e instanceof u?e:Array.isArray(e)?3===e.length?new u(e[0],e[1],e[2]):4===e.length?new u(e[0],e[1],e[2],e[3]):(o.Log.info("非法颜色值数组!"),new u):e instanceof Object?u.fromJSON(e):new u},u.isHex=function(e){return/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/.test(e)},u.isRGB=function(e){return/^(rgb|rgba|RGB|RGBA)/.test(e)},t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(0)),i=o(r(2));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(){(0,n.default)(this,e),this.type="unkown"}return(0,i.default)(e,[{key:"toJSON",value:function(){return{type:this.type}}},{key:"clone",value:function(){}}],[{key:"fromJSON",value:function(){}}]),e}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatWebTileUrl=t.RasterInfo=t.RasterFunction=t.IGSImageryTileLayer=t.IGSImageryLayer=t.SubLayer=t.VoxelFilter=t.FeatureFilter=t.S3MTilesCacheLayer=t.OverlayLayer=t.UnknownLayer=t.TileLayer=t.VectorTileLayer=t.LOD=t.getFullBaseUrl=t.appendUrlParams=t.TileInfo=t.FeatureCollection=t.getZoomOffset=t.WebTileLayer=t.ArcGISVectorTileSubLayer=t.ArcGISVectorTileLayer=t.VisualVariable=t.OpacityVariable=t.ColorVariable=t.SizeVariable=t.HeatmapColorStop=t.setElevationInfo=t.Layer=t.TileInfoUtil=t.getIGSDynamicLayer=t.isCustomSP=t.is4326=t.getUrlType=t.ArcGISTileLayer=t.ArcGISMapImageSubLayer=t.ArcGISMapImageLayer=t.LabelClass=t.Projection=t.Basemap=t.Map=t.M3DModelCacheLayer=t.BaseRenderer=t.HeatmapRenderer=t.RankRenderer=t.RandomRenderer=t.ClusterRenderer=t.SimpleRenderer=t.ClassBreakRenderer=t.UniqueValueRenderer=t.VideoLayer=t.TerrainCacheLayer=t.Cesium3DTilesCacheLayer=t.GeoJSONLayer=t.GraphicsLayer=t.GroupLayer=t.MapVLayer=t.EchartsLayer=t.ISSceneModelCacheSubLayer=t.ISSceneSubLayer=t.ISSceneLayer=t.IGSFeatureLayer=t.BaseScene=t.ISScene=t.IGSScene=t.IGSTileLayer=t.IGSSceneTerrainSubLayer=t.IGSSceneMapRefSubLayer=t.IGSSceneModelCacheSubLayer=t.IGSSceneLabelSubLayer=t.IGSSceneSubLayer=t.IGSSceneLayer=t.IGSMapImageSubLayer=t.IGSMapImageLayer=t.IGSVectorTileSubLayer=t.IGSVectorTileLayer=t.WMTSSubLayer=t.WFSLayer=t.WMSSubLayer=t.WMSLayer=t.WMTSLayer=t.OGCLayer=void 0;var n=r(60),i=r(43),o=r(561),a=function(e){return e&&e.__esModule?e:{default:e}}(r(83));t.OGCLayer=n.OGCLayer,t.WMTSLayer=n.WMTSLayer,t.WMSLayer=n.WMSLayer,t.WMSSubLayer=n.WMSSubLayer,t.WFSLayer=n.WFSLayer,t.WMTSSubLayer=n.WMTSSubLayer,t.IGSVectorTileLayer=n.IGSVectorTileLayer,t.IGSVectorTileSubLayer=n.IGSVectorTileSubLayer,t.IGSMapImageLayer=n.IGSMapImageLayer,t.IGSMapImageSubLayer=n.IGSMapImageSubLayer,t.IGSSceneLayer=n.IGSSceneLayer,t.IGSSceneSubLayer=n.IGSSceneSubLayer,t.IGSSceneLabelSubLayer=n.IGSSceneLabelSubLayer,t.IGSSceneModelCacheSubLayer=n.IGSSceneModelCacheSubLayer,t.IGSSceneMapRefSubLayer=n.IGSSceneMapRefSubLayer,t.IGSSceneTerrainSubLayer=n.IGSSceneTerrainSubLayer,t.IGSTileLayer=n.IGSTileLayer,t.IGSScene=n.IGSScene,t.ISScene=n.ISScene,t.BaseScene=n.BaseScene,t.IGSFeatureLayer=n.IGSFeatureLayer,t.ISSceneLayer=n.ISSceneLayer,t.ISSceneSubLayer=n.ISSceneSubLayer,t.ISSceneModelCacheSubLayer=n.ISSceneModelCacheSubLayer,t.EchartsLayer=n.EchartsLayer,t.MapVLayer=n.MapVLayer,t.GroupLayer=n.GroupLayer,t.GraphicsLayer=n.GraphicsLayer,t.GeoJSONLayer=n.GeoJSONLayer,t.Cesium3DTilesCacheLayer=n.Cesium3DTilesCacheLayer,t.TerrainCacheLayer=n.TerrainCacheLayer,t.VideoLayer=n.VideoLayer,t.UniqueValueRenderer=i.UniqueValueRenderer,t.ClassBreakRenderer=i.ClassBreakRenderer,t.SimpleRenderer=i.SimpleRenderer,t.ClusterRenderer=i.ClusterRenderer,t.RandomRenderer=i.RandomRenderer,t.RankRenderer=i.RankRenderer,t.HeatmapRenderer=i.HeatmapRenderer,t.BaseRenderer=i.BaseRenderer,t.M3DModelCacheLayer=n.M3DModelCacheLayer,t.Map=o.Map,t.Basemap=o.Basemap,t.Projection=n.Projection,t.LabelClass=a.default,t.ArcGISMapImageLayer=n.ArcGISMapImageLayer,t.ArcGISMapImageSubLayer=n.ArcGISMapImageSubLayer,t.ArcGISTileLayer=n.ArcGISTileLayer,t.getUrlType=n.getUrlType,t.is4326=n.is4326,t.isCustomSP=n.isCustomSP,t.getIGSDynamicLayer=i.getIGSDynamicLayer,t.TileInfoUtil=n.TileInfoUtil,t.Layer=n.Layer,t.setElevationInfo=n.setElevationInfo,t.HeatmapColorStop=i.HeatmapColorStop,t.SizeVariable=i.SizeVariable,t.ColorVariable=i.ColorVariable,t.OpacityVariable=i.OpacityVariable,t.VisualVariable=i.VisualVariable,t.ArcGISVectorTileLayer=n.ArcGISVectorTileLayer,t.ArcGISVectorTileSubLayer=n.ArcGISVectorTileSubLayer,t.WebTileLayer=n.WebTileLayer,t.getZoomOffset=n.getZoomOffset,t.FeatureCollection=n.FeatureCollection,t.TileInfo=n.TileInfo,t.appendUrlParams=n.appendUrlParams,t.getFullBaseUrl=n.getFullBaseUrl,t.LOD=n.LOD,t.VectorTileLayer=n.VectorTileLayer,t.TileLayer=n.TileLayer,t.UnknownLayer=n.UnknownLayer,t.OverlayLayer=n.OverlayLayer,t.S3MTilesCacheLayer=n.S3MTilesCacheLayer,t.FeatureFilter=n.FeatureFilter,t.VoxelFilter=n.VoxelFilter,t.SubLayer=n.SubLayer,t.IGSImageryLayer=n.IGSImageryLayer,t.IGSImageryTileLayer=n.IGSImageryTileLayer,t.RasterFunction=n.RasterFunction,t.RasterInfo=n.RasterInfo,t.formatWebTileUrl=n.formatWebTileUrl},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatWebTileUrl=t.RasterInfo=t.RasterFunction=t.IGSImageryTileLayer=t.IGSImageryLayer=t.SubLayer=t.VoxelFilter=t.FeatureFilter=t.S3MTilesCacheLayer=t.SceneLayer=t.OverlayLayer=t.TileLayer=t.VectorTileLayer=t.LOD=t.getFullBaseUrl=t.appendUrlParams=t.TileInfo=t.FeatureCollection=t.getZoomOffset=t.WebTileLayer=t.setElevationInfo=t.TileInfoUtil=t.getLayerViewScaleVisible=t.isCustomSP=t.is4326=t.getUrlType=t.ArcGISVectorTileSubLayer=t.ArcGISVectorTileLayer=t.ArcGISTileLayer=t.ArcGISMapImageSubLayer=t.ArcGISMapImageLayer=t.Projection=t.M3DModelCacheLayer=t.ISSceneModelCacheSubLayer=t.ISSceneSubLayer=t.ISSceneLayer=t.IGSFeatureLayer=t.BaseScene=t.ISScene=t.IGSScene=t.IGSTileLayer=t.IGSSceneTerrainSubLayer=t.IGSSceneMapRefSubLayer=t.IGSSceneModelCacheSubLayer=t.IGSSceneLabelSubLayer=t.IGSSceneSubLayer=t.IGSSceneLayer=t.IGSMapImageSubLayer=t.IGSMapImageLayer=t.IGSVectorTileSubLayer=t.IGSVectorTileLayer=t.VideoLayer=t.UnknownLayer=t.GeoJSONLayer=t.GraphicsLayer=t.GroupLayer=t.MapVLayer=t.EchartsLayer=t.TerrainCacheLayer=t.Cesium3DTilesCacheLayer=t.FeatureLayer=t.WMTSSubLayer=t.WFSLayer=t.WMSSubLayer=t.WMSLayer=t.WMTSLayer=t.OGCLayer=t.Layer=void 0;var n=r(493),i=r(536),o=O(r(160)),a=r(16),s=r(539),u=r(12),l=r(544),c=O(r(548)),f=O(r(549)),h=r(550),d=O(r(553)),p=O(r(554)),y=O(r(555)),g=O(r(556)),m=O(r(557)),v=O(r(94)),_=r(29),S=O(r(72)),b=O(r(84)),x=O(r(115)),w=O(r(162)),E=O(r(558)),T=O(r(559)),I=O(r(560)),M=O(r(229)),k=O(r(238)),P=O(r(230)),L=O(r(100));function O(e){return e&&e.__esModule?e:{default:e}}t.Layer=a.Layer,t.OGCLayer=l.OGCLayer,t.WMTSLayer=l.WMTSLayer,t.WMSLayer=l.WMSLayer,t.WMSSubLayer=l.WMSSubLayer,t.WFSLayer=l.WFSLayer,t.WMTSSubLayer=l.WMTSSubLayer,t.FeatureLayer=a.FeatureLayer,t.Cesium3DTilesCacheLayer=c.default,t.TerrainCacheLayer=f.default,t.EchartsLayer=h.EchartsLayer,t.MapVLayer=h.MapVLayer,t.GroupLayer=d.default,t.GraphicsLayer=p.default,t.GeoJSONLayer=y.default,t.UnknownLayer=T.default,t.VideoLayer=m.default,t.IGSVectorTileLayer=n.IGSVectorTileLayer,t.IGSVectorTileSubLayer=n.IGSVectorTileSubLayer,t.IGSMapImageLayer=n.IGSMapImageLayer,t.IGSMapImageSubLayer=n.IGSMapImageSubLayer,t.IGSSceneLayer=n.IGSSceneLayer,t.IGSSceneSubLayer=n.IGSSceneSubLayer,t.IGSSceneLabelSubLayer=n.IGSSceneLabelSubLayer,t.IGSSceneModelCacheSubLayer=n.IGSSceneModelCacheSubLayer,t.IGSSceneMapRefSubLayer=n.IGSSceneMapRefSubLayer,t.IGSSceneTerrainSubLayer=n.IGSSceneTerrainSubLayer,t.IGSTileLayer=n.IGSTileLayer,t.IGSScene=n.IGSScene,t.ISScene=i.ISScene,t.BaseScene=o.default,t.IGSFeatureLayer=n.IGSFeatureLayer,t.ISSceneLayer=i.ISSceneLayer,t.ISSceneSubLayer=i.ISSceneSubLayer,t.ISSceneModelCacheSubLayer=i.ISSceneModelCacheSubLayer,t.M3DModelCacheLayer=g.default,t.Projection=v.default,t.ArcGISMapImageLayer=s.ArcGISMapImageLayer,t.ArcGISMapImageSubLayer=s.ArcGISMapImageSubLayer,t.ArcGISTileLayer=s.ArcGISTileLayer,t.ArcGISVectorTileLayer=s.ArcGISVectorTileLayer,t.ArcGISVectorTileSubLayer=s.ArcGISVectorTileSubLayer,t.getUrlType=_.getUrlType,t.is4326=_.is4326,t.isCustomSP=_.isCustomSP,t.getLayerViewScaleVisible=_.getLayerViewScaleVisible,t.TileInfoUtil=b.default,t.setElevationInfo=u.setElevationInfo,t.WebTileLayer=E.default,t.getZoomOffset=_.getZoomOffset,t.FeatureCollection=w.default,t.TileInfo=S.default,t.appendUrlParams=_.appendUrlParams,t.getFullBaseUrl=_.getFullBaseUrl,t.LOD=x.default,t.VectorTileLayer=a.VectorTileLayer,t.TileLayer=a.TileLayer,t.OverlayLayer=h.OverlayLayer,t.SceneLayer=a.SceneLayer,t.S3MTilesCacheLayer=I.default,t.FeatureFilter=M.default,t.VoxelFilter=k.default,t.SubLayer=a.SubLayer,t.IGSImageryLayer=n.IGSImageryLayer,t.IGSImageryTileLayer=n.IGSImageryTileLayer,t.RasterFunction=P.default,t.RasterInfo=L.default,t.formatWebTileUrl=_.formatWebTileUrl},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=m(r(15)),i=m(r(3)),o=m(r(0)),a=m(r(2)),s=m(r(4)),u=m(r(5)),l=r(8),c=r(1),f=r(6),h=r(41),d=m(r(70)),p=r(9),y=r(12),g=r(25);function m(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this));return e=(0,c.defaultValue)(e,{}),r.id=(0,c.defaultValue)(e.id,(0,c.getGUID)()),r.description=(0,c.defaultValue)(e.description,"图层基类"),r.copyright=(0,c.defaultValue)(e.copyright,"中地数码版权所有"),r.loadStatus=(0,c.defaultValue)(e.loadStatus,f.LoadStatus.notLoaded),r.loaded=(0,c.defaultValue)(e.loaded,!1),r.loadError=null,r.tokenKey=(0,c.defaultValue)(e.tokenKey,"token"),r.tokenValue=(0,c.defaultValue)(e.tokenValue,null),r.tokenAttachType=(0,c.defaultValue)(e.tokenAttachType,f.TokenAttachType.normal),r.title=(0,c.defaultValue)(e.title,""),r.minScale=(0,c.defaultValue)(e.minScale,0),r.maxScale=(0,c.defaultValue)(e.maxScale,0),r.extendProps=(0,c.defaultValue)(e.extendProps,{}),r.type=f.LayerType.base,r.httpMethod=(0,c.defaultValue)(e.httpMethod,f.FetchMethod.get),r.headers=(0,c.defaultValue)(e.headers,{}),r.extensionOptions=(0,c.defaultValue)(e.extensionOptions,{}),r.visible=(0,c.defaultValue)(e.visible,!0),r.opacity=parseFloat((0,c.defaultValue)(e.opacity,1)),r.extent=r._decorate("extent",(0,c.defaultValue)(e.extent,null),p.Extent,p.Extent.fromJSON),r.spatialReference=r._decorate("spatialReference",(0,c.defaultValue)(e.spatialReference,null),d.default,d.default.fromJSON),r.forceRefreshDebounceDelay=(0,c.defaultValue)(e.forceRefreshDebounceDelay,5),r.capabilities=(0,y.mergeCommonClientCapbilities)(e.capabilities,{description:!0,copyright:!0,loaded:!0,tokenKey:!0,tokenValue:!0,title:!0,minScale:!0,maxScale:!0,extensionOptions:!0,type:!0,httpMethod:!0,headers:!0,extendProps:!0,visible:!0,opacity:!0,extent:!0,spatialReference:!0}),r.autoAddTo2D=(0,c.defaultValue)(e.autoAddTo2D,!0),r.autoAddTo3D=(0,c.defaultValue)(e.autoAddTo3D,!0),r._loadPromise=null,r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"isLoaded",value:function(){return this.loadStatus===f.LoadStatus.loaded}},{key:"load",value:function(){var e=this;return this.loadStatus===f.LoadStatus.notLoaded?(this.loadStatus=f.LoadStatus.loading,this._loadPromise=this._load().catch(function(t){return t&&(t.layer=e),c.Log.error(e.type+"图层load失败,错误信息:",t),e.loadError=t,e.loadStatus=f.LoadStatus.failed,e.loaded=!1,e})):(this.loadStatus,f.LoadStatus.loading),this._loadPromise}},{key:"setMap",value:function(e){this._map=e}},{key:"destroy",value:function(){}},{key:"toJSON",value:function(){return{id:this.id,description:this.description,copyright:this.copyright,loadStatus:this.loadStatus,loaded:this.loaded,tokenKey:this.tokenKey,tokenValue:this.tokenValue,tokenAttachType:this.tokenAttachType,title:this.title,minScale:this.minScale,maxScale:this.maxScale,type:this.type,visible:this.visible,opacity:this.opacity,spatialReference:(0,c.toJSON)(this.spatialReference,d.default),extent:(0,c.toJSON)(this.extent,p.Extent),autoAddTo2D:this.autoAddTo2D,autoAddTo3D:this.autoAddTo3D,extendProps:(0,g.jsonClone)(this.extendProps),extensionOptions:(0,g.jsonClone)(this.extensionOptions),capabilities:(0,g.jsonClone)(this.capabilities),httpMethod:this.httpMethod,headers:this.headers}}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"_load",value:function(){var e=this;return new n.default(function(t){e.loadStatus=f.LoadStatus.loaded,e.loaded=!0,t(e)})}},{key:"_fireUpdateEvent",value:function(e,t){if(this._map){var r=new h.LayerViewUpdateEvent({type:f.LayerEventType.layerUpdate,target:this._map,layer:this,message:e,updateContent:t});this.fire(f.LayerEventType.layerUpdate,r),this._map.fire(f.LayerEventType.layerUpdate,r)}}},{key:"_updateDiff",value:function(e,t,r){this._fireUpdateEvent("",[{name:e,params:[t],dataChanged:!0,operationType:"property"}])}},{key:"refresh",value:function(){this._fireUpdateEvent("刷新图层",[{params:arguments,dataChanged:!0,name:"refresh",operationType:"method"}])}},{key:"getCumulative",value:function(e,t){for(var r=this[e],n=this.parent;n;)r=t(r,n[e]),n=n.parent;return r}}],[{key:"fromServerUrl",value:function(e,t){return t=t||{},new n.default(function(r){t.url=e,r((0,y.createLayer)(t))})}},{key:"fromJSON",value:function(e){return e=e||{},(0,y.createLayer)(e)}}]),t}(l.Evented);t.default=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(5)),u=r(43),l=r(8),c=r(1);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this));return e=(0,c.defaultValue)(e,{}),r.id=(0,c.defaultValue)(e.id,(0,c.getGUID)()),r.type="",r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,id:this.id}}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}(l.Evented);h.fromJSON=function(e){return(0,u.createRender)(e)},t.default=h},function(e,t,r){var n=r(119);e.exports=function(e){return Object(n(e))}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib.WordArray;t.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return r.create(i,o)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}(r(14))},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],u=e[t+1],d=e[t+2],p=e[t+3],y=e[t+4],g=e[t+5],m=e[t+6],v=e[t+7],_=e[t+8],S=e[t+9],b=e[t+10],x=e[t+11],w=e[t+12],E=e[t+13],T=e[t+14],I=e[t+15],M=o[0],k=o[1],P=o[2],L=o[3];k=h(k=h(k=h(k=h(k=f(k=f(k=f(k=f(k=c(k=c(k=c(k=c(k=l(k=l(k=l(k=l(k,P=l(P,L=l(L,M=l(M,k,P,L,a,7,s[0]),k,P,u,12,s[1]),M,k,d,17,s[2]),L,M,p,22,s[3]),P=l(P,L=l(L,M=l(M,k,P,L,y,7,s[4]),k,P,g,12,s[5]),M,k,m,17,s[6]),L,M,v,22,s[7]),P=l(P,L=l(L,M=l(M,k,P,L,_,7,s[8]),k,P,S,12,s[9]),M,k,b,17,s[10]),L,M,x,22,s[11]),P=l(P,L=l(L,M=l(M,k,P,L,w,7,s[12]),k,P,E,12,s[13]),M,k,T,17,s[14]),L,M,I,22,s[15]),P=c(P,L=c(L,M=c(M,k,P,L,u,5,s[16]),k,P,m,9,s[17]),M,k,x,14,s[18]),L,M,a,20,s[19]),P=c(P,L=c(L,M=c(M,k,P,L,g,5,s[20]),k,P,b,9,s[21]),M,k,I,14,s[22]),L,M,y,20,s[23]),P=c(P,L=c(L,M=c(M,k,P,L,S,5,s[24]),k,P,T,9,s[25]),M,k,p,14,s[26]),L,M,_,20,s[27]),P=c(P,L=c(L,M=c(M,k,P,L,E,5,s[28]),k,P,d,9,s[29]),M,k,v,14,s[30]),L,M,w,20,s[31]),P=f(P,L=f(L,M=f(M,k,P,L,g,4,s[32]),k,P,_,11,s[33]),M,k,x,16,s[34]),L,M,T,23,s[35]),P=f(P,L=f(L,M=f(M,k,P,L,u,4,s[36]),k,P,y,11,s[37]),M,k,v,16,s[38]),L,M,b,23,s[39]),P=f(P,L=f(L,M=f(M,k,P,L,E,4,s[40]),k,P,a,11,s[41]),M,k,p,16,s[42]),L,M,m,23,s[43]),P=f(P,L=f(L,M=f(M,k,P,L,S,4,s[44]),k,P,w,11,s[45]),M,k,I,16,s[46]),L,M,d,23,s[47]),P=h(P,L=h(L,M=h(M,k,P,L,a,6,s[48]),k,P,v,10,s[49]),M,k,T,15,s[50]),L,M,g,21,s[51]),P=h(P,L=h(L,M=h(M,k,P,L,w,6,s[52]),k,P,p,10,s[53]),M,k,b,15,s[54]),L,M,u,21,s[55]),P=h(P,L=h(L,M=h(M,k,P,L,_,6,s[56]),k,P,I,10,s[57]),M,k,m,15,s[58]),L,M,E,21,s[59]),P=h(P,L=h(L,M=h(M,k,P,L,y,6,s[60]),k,P,x,10,s[61]),M,k,d,15,s[62]),L,M,S,21,s[63]),o[0]=o[0]+M|0,o[1]=o[1]+k|0,o[2]=o[2]+P|0,o[3]=o[3]+L|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,u=s.words,l=0;l<4;l++){var c=u[l];u[l]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<<o|s>>>32-o)+t}function c(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<<o|s>>>32-o)+t}function h(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<<o|s>>>32-o)+t}r.MD5=o._createHelper(u),r.HmacMD5=o._createHmacHelper(u)}(Math),e.MD5}(r(14))},function(e,t,r){"use strict";t.__esModule=!0;var n=a(r(308)),i=a(r(314)),o="function"==typeof i.default&&"symbol"==typeof n.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof i.default&&"symbol"===o(n.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":o(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.default="default",n.color="color",n.opacity="opacity",n.size="size",i);Object.defineProperty(a,"default",{writable:!1}),Object.defineProperty(a,"color",{writable:!1}),Object.defineProperty(a,"opacity",{writable:!1}),Object.defineProperty(a,"size",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(5)),u=d(r(93)),l=r(8),c=r(1),f=r(6),h=r(28);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this));return e=(0,c.defaultValue)(e,{}),r.id=(0,c.defaultValue)(e.id,(0,c.getGUID)()),r.color=l.Color.fromColor((0,c.defaultValue)(e.color,new l.Color(0,0,0,.25))),r.type=f.SymbolType.default,r.extensionOptions=(0,c.defaultValue)(e.extensionOptions,{}),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{color:l.Color.fromColor(this.color).toJSON(),type:this.type,extensionOptions:(0,c.cloneObject)(this.extensionOptions),id:this.id}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return(0,h.createSymbol)(e)}}]),t}(u.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(67)),i=l(r(0)),o=l(r(2)),a=r(1),s=r(206),u=l(r(147));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(t){(0,i.default)(this,e),t=(0,a.defaultValue)(t,{});var r=this._parseSpatialReferenceOptions(t),n=r.wkid,o=r.wkt;this.wkid=n,this.wkt=o,this.unit=t.unit}return(0,o.default)(e,[{key:"_parseSpatialReferenceOptions",value:function(e){var t=4326,r=void 0;if(e.wkid&&e.wkt)return{wkid:e.wkid,wkt:e.wkt};if("string"==typeof e){var i=e.match(/\d+$/);/^(EPSG|epsg)(:)?\d+$/.test(e)&&i?(t=parseInt(i[0]),r=void 0):(r=e,t=void 0)}else"object"===(void 0===e?"undefined":(0,n.default)(e))?((0,a.defined)(e.wkid)&&(t=parseInt(e.wkid)),e.wkt&&(r=e.wkt,t=void 0)):a.Log.error("无法解析传入的空间参考系参数");return{wkid:t,wkt:r}}},{key:"clone",value:function(){return new e(this.toJSON())}},{key:"toJSON",value:function(){return{wkid:this.wkid,wkt:this.wkt}}},{key:"toString",value:function(){return this.wkid?"EPSG:"+this.wkid:this.wkt?this.wkt:void 0}},{key:"equals",value:function(t){if(!(t instanceof e||t instanceof Object&&t.hasOwnProperty("wkid")&&t.hasOwnProperty("wkt")))throw new Error("spatialReference的格式不正确!");return!!(this===t||this.wkid&&t.wkid&&this.wkid===t.wkid||this.wkt&&t.wkt&&this.wkt.toUpperCase()===t.wkt.toUpperCase())}},{key:"isWGS84",get:function(){return 4326===this.wkid}},{key:"isGeographic",get:function(){return!!(this.wkid&&void 0===s.ProjUnitWkidMap[this.wkid]||/^GEOGCS/.test(this.wkt)||/^GEOGCRS/.test(this.wkt)||/^[+]proj=longlat/.test(this.wkt))||this.wkid===u.default.bd09ll||this.wkid===u.default.gcj02ll}},{key:"isWebMercator",get:function(){return[102113,102100,900913,3857].indexOf(this.wkid)>-1||this.wkid===u.default.bd09mc||this.wkid===u.default.gcj02mc}},{key:"isWrappable",get:function(){return[4326,4490,4610,4214,102113,102100,900913,3857].indexOf(this.wkid)>-1}},{key:"WebMercator",get:function(){return this.isWebMercator?this.clone():void 0}},{key:"WGS84",get:function(){return this.isGeographic?this.clone():void 0}}],[{key:"fromJSON",value:function(t){return new e(t=(0,a.defaultValue)(t,{}))}}]),e}();t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=b(r(10)),i=b(r(24)),o=b(r(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(39)),s=r(1),u=r(6),l=b(r(40)),c=b(r(97)),f=b(r(207)),h=b(r(208)),d=b(r(94)),p=b(r(70)),y=b(r(112)),g=b(r(209)),m=b(r(50)),v=b(r(210)),_=b(r(79)),S=b(r(212));function b(e){return e&&e.__esModule?e:{default:e}}var x=function e(){(0,o.default)(this,e)};x.difference=function(e,t){(0,s.isNull)(e)&&s.Log.error("inputGeometry不能为空!"),(0,s.isNull)(t)&&s.Log.error("subtractGeometry不能为空!"),e instanceof c.default||e instanceof h.default||e instanceof _.default||e instanceof v.default||s.Log.error("inputGeometry类型错误!"),t instanceof c.default||t instanceof h.default||t instanceof _.default||t instanceof v.default||s.Log.error("subtractGeometry类型错误!");var r=void 0;switch(e.type){case y.default.polygon:r=x._polygonDifferenceGeometry(a.polygon(e.coordinates),t);break;case y.default.extent:case y.default.circle:r=x._polygonDifferenceGeometry(a.polygon(e.toPolygon().coordinates),t);break;case y.default.multiPolygon:r=x._polygonDifferenceGeometry(a.multiPolygon(e.coordinates),t)}return(0,s.isNull)(r)||(r="Polygon"===r.geometry.type?new c.default({coordinates:r.geometry.coordinates,spatialReference:p.default.fromJSON(e.spatialReference)}):new h.default({coordinates:r.geometry.coordinates,spatialReference:p.default.fromJSON(e.spatialReference)})),r},x._polygonDifferenceGeometry=function(e,t){var r=e,n=void 0;switch(t.type){case y.default.polygon:n=a.polygon(t.coordinates);break;case y.default.multiPolygon:n=a.multiPolygon(t.coordinates);break;case y.default.extent:case y.default.circle:n=a.polygon(t.toPolygon().coordinates)}return a.difference(r,n)},x.buffer=function(e,t,r,n){r=(0,s.defaultValue)(r,u.LengthUnit.meters),n=(0,s.defaultValue)(n,!1),t=(0,s.defaultValue)(t,1e3),x._checkBufferOptions(e,t,r,n);var i=void 0;if(e instanceof Array)if(t instanceof Array){if(t.length<e.length){i=[];for(var o=t.length>0?t[t.length-1]:1e3,a=t.length;a<e.length;a++)i.push(o)}}else{i=[];for(var f=0;f<e.length;f++)i.push(t)}else i=t instanceof Array?t.length>0?t[0]:1e3:t;var h=e;if(e instanceof Array){h=[];for(var g=0;g<e.length;g++)h.push(d.default.projectGeometry(e[g],new p.default({wkid:4326})))}else 4326!==e.spatialReference.wkid&&(h=d.default.projectGeometry(e,new p.default({wkid:4326})));var m=void 0;if(e instanceof Array){if(e instanceof Array){if(m=[],t instanceof Array&&t.length<e.length)for(var v=t[t.length-1],_=t.length-1;_<e.length;_++)t.push(v);for(var S=0;S<h.length;S++){var b;b=t instanceof Array?t[S]:t,m.push(x._polygonBuffer(h[S],b,r))}n&&(m=x.union(m))}}else switch(e.type){case y.default.point:case y.default.multiPoint:case y.default.lineString:case y.default.multiLineString:case y.default.polygon:case y.default.multiPolygon:m=x._polygonBuffer(h,i,r);break;case y.default.extent:var w=new c.default({coordinates:[[[h.xmin,h.ymin],[h.xmax,h.ymin],[h.xmax,h.ymax],[h.xmin,h.ymax],[h.xmin,h.ymin]]]});m=x._polygonBuffer(w,i,r);break;case y.default.circle:(m=l.default.fromJSON(e)).radius+=i;break;default:s.Log.error("geometry是不支持的几何类型!")}if(e instanceof Array){if(!e[0].spatialReference.isGeographic)if(m instanceof Array)for(var E=0;E<m.length;E++)m[E].type!==y.default.circle&&(m[E]=d.default.projectGeometry(m[E],p.default.fromJSON(e[0].spatialReference)));else m.type!==y.default.circle&&(m=d.default.projectGeometry(m,p.default.fromJSON(e[0].spatialReference)))}else e.spatialReference.isGeographic||e.type===y.default.circle||(m=d.default.projectGeometry(m,p.default.fromJSON(e.spatialReference)));return m},x._checkBufferOptions=function(e,t,r,n){if((0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),(0,s.isNull)(t)&&s.Log.error("distance不能为空!"),(0,s.isNull)(e)&&s.Log.error("unit不能为空!"),(0,s.isNull)(e)&&s.Log.error("unionResults不能为空!"),e instanceof Array){for(var o=0;o<e.length;o++)if(!(e[o]instanceof c.default||e[o]instanceof h.default)){s.Log.error("geometry的子元素类型不为Polygon或者MultiPolygon!");break}0===e.length&&s.Log.error("geometry的长度为0!")}else e instanceof l.default||s.Log.error("geometry不是基础几何类型!");if(t instanceof Array){e instanceof Array||s.Log.error("distance的类型为数组,但是geometry的类型不是数组!");for(var a=0;a<t.length;a++)if("number"!=typeof t[a]){s.Log.error("distance的子元素不是数字类型!");break}}else"number"!=typeof t&&s.Log.error("distance的不是数字类型!");if("string"==typeof r)if(r){var f=!1;(0,i.default)(u.LengthUnit).forEach(function(e){f||u.LengthUnit[e]!==r||(f=!0)}),f||s.Log.error("unit是不支持的单位类型!")}else s.Log.error("unit的值不能为空!");else s.Log.error("unit类型不是字符串!");"boolean"!=typeof n&&s.Log.error("unionResults类型不是布尔值类型!")},x._polygonBuffer=function(e,t,r){var n=void 0;switch(e.type){case y.default.point:n=a.point(e.coordinates);break;case y.default.multiPoint:n=a.multiPoint(e.coordinates);break;case y.default.lineString:n=a.lineString(e.coordinates);break;case y.default.multiLineString:n=a.multiLineString(e.coordinates);break;case y.default.polygon:n=a.polygon(e.coordinates);break;case y.default.multiPolygon:n=a.multiPolygon(e.coordinates)}var i=a.buffer(n,t,{units:r});return l.default.fromJSON({type:i.geometry.type,coordinates:i.geometry.coordinates})},x._multiPolygonBuffer=function(e,t,r){var n=a.multiPolygon(e.coordinates),i=a.buffer(n,t,{units:r});return"Polygon"===i.geometry.type?new c.default({coordinates:i.geometry.coordinates}):new h.default({coordinates:i.geometry.coordinates})},x._buffer=function(e,t,r){if(e.hasOwnProperty("coordinates")||s.Log.error("geometry缺少coordinates属性!"),e instanceof c.default){var n=a.polygon(e.coordinates);return a.buffer(n,t,{units:r})}},x.union=function(e){if((e=(0,s.defaultValue)(e,[]))instanceof Array||s.Log.error("geometries必须为数组类型!"),0===e.length)return[];var t=!0,r=!0,n=e[0].type;if(e.length>1){switch(e[0].type){case y.default.polygon:case y.default.multiPolygon:for(var i=1;i<e.length;i++)if(e[i].type!==y.default.polygon&&e[i].type!==y.default.multiPolygon){t=!1;break}break;case y.default.point:case y.default.multiPoint:for(var o=1;o<e.length;o++)if(e[o].type!==y.default.point&&e[o].type!==y.default.multiPoint){t=!1;break}break;case y.default.circle:for(var u=1;u<e.length;u++)if(e[u].type!==y.default.circle){t=!1;break}break;case y.default.extent:for(var l=1;l<e.length;l++)if(e[l].type!==y.default.extent){t=!1;break}break;case y.default.lineString:case y.default.multiLineString:for(var d=1;d<e.length;d++)if(e[d].type!==y.default.lineString&&e[d].type!==y.default.multiLineString){t=!1;break}break;default:s.Log.error("geometries的子元素中有求并方法不支持的数据类型!")}t||s.Log.error("几何数组的类型不同!");for(var v=e[0].spatialReference,_=1;_<e.length;_++)v.equals(e[_].spatialReference)||(r=!1);r||s.Log.error("几何数组的坐标系不同!");var b=void 0,w=[];switch(n){case y.default.point:case y.default.multiPoint:for(var E=[],T=0;T<e.length;T++)e[T]instanceof m.default?E.push(e[T].coordinates):e[T]instanceof g.default&&(E=E.concat(e[T].coordinates));if(1===E.length)b=new m.default({coordinates:E[0],spatialReference:p.default.fromJSON(e[0].spatialReference)});else{var I=a.multiPoint(E);I=a.cleanCoords(I),b=new g.default({coordinates:I.geometry.coordinates,spatialReference:p.default.fromJSON(e[0].spatialReference)})}break;case y.default.polygon:case y.default.multiPolygon:var M=void 0,k=e[0].type===y.default.polygon?a.polygon(e[0].coordinates):a.multiPolygon(e[0].coordinates),P=e[1].type===y.default.polygon?a.polygon(e[1].coordinates):a.multiPolygon(e[1].coordinates);M=a.union(k,P);for(var L=2;L<e.length;L++){var O=e[L].type===y.default.polygon?a.polygon(e[L].coordinates):a.multiPolygon(e[L].coordinates);M=a.union(M.geometry,O)}b=M.geometry.type===y.default.polygon?new c.default({coordinates:M.geometry.coordinates,spatialReference:p.default.fromJSON(e[0].spatialReference)}):new h.default({coordinates:M.geometry.coordinates,spatialReference:p.default.fromJSON(e[0].spatialReference)});break;case y.default.lineString:case y.default.multiLineString:for(var C=[],N=0;N<e.length;N++)e[N]instanceof f.default?C.push(e[N].coordinates):C=C.concat(e[N].coordinates);b=1===C.length?new f.default({coordinates:C[0],spatialReference:p.default.fromJSON(e[0].spatialReference)}):new S.default({coordinates:C,spatialReference:p.default.fromJSON(e[0].spatialReference)});break;case y.default.extent:w=[];for(var R=0;R<e.length;R++){var G=new c.default({coordinates:[[[e[R].xmin,e[R].ymin],[e[R].xmax,e[R].ymin],[e[R].xmax,e[R].ymax],[e[R].xmin,e[R].ymax],[e[R].xmin,e[R].ymin]]],spatialReference:p.default.fromJSON(e[0].spatialReference)});w.push(G)}b=x.union(w);break;case y.default.circle:w=[];for(var A=0;A<e.length;A++)w.push(e[A].toPolygon());b=x.union(w)}return b}return 1===e.length?e[0]:void 0},x.intersects=function(e,t){x._checkTwoGeometry(e,t);var r=x._geometryToTurf(e),n=x._geometryToTurf(t);return!a.booleanDisjoint(r,n)},x.geodesicLength=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry对象不能为空!"),e instanceof f.default||e instanceof S.default||e instanceof c.default||e instanceof h.default||e instanceof v.default||e instanceof _.default||s.Log.error("geometry类型不正确!");var r;r=e.spatialReference.isGeographic?e:d.default.project(e,new p.default({wkid:4326})),"string"!=typeof(t=(0,s.defaultValue)(t,u.LengthUnit.meters))&&s.Log.error("unit类型不正确!");var n=x._geometryToTurf(r),i=1e3*a.length(n,{units:"kilometers"});switch(t){case u.LengthUnit.kilometers:i/=1e3;break;case u.LengthUnit.miles:i*=.000621371192237}return i},x.geodesicArea=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry对象不能为空!"),e instanceof c.default||e instanceof h.default||e instanceof v.default||e instanceof _.default||s.Log.error("polygon对象不是Polyon或MultiPolygon或Circle或Extent类型!"),t=(0,s.defaultValue)(t,u.LinearUnits.meters);var r;r=e.spatialReference.isGeographic?e:d.default.project(e,new p.default({wkid:4326}));var n=x._geometryToTurf(r),i=a.area(n);switch(t){case u.AreaUnits.squareKilometers:i*=1e-6;break;case u.AreaUnits.squareMiles:i*=6214e-7*6214e-7;break;case u.AreaUnits.squareYards:i*=1.1959900499368898;break;case u.AreaUnits.squareFeet:i*=10.763910416689228;break;case u.AreaUnits.acres:i*=2471e-7;break;case u.AreaUnits.ares:i*=.01;break;case u.AreaUnits.hectares:i*=1e-4;break;case u.AreaUnits.squareMeters:}return i},x._geodesicPolygonArea=function(e){return a.area(a.polygon(e.coordinates))},x._geometryToTurf=function(e){var t=void 0;switch(e.type!==y.default.extent&&e.type!==y.default.circle&&(t=JSON.parse((0,n.default)(e.coordinates))),e.type){case y.default.point:return a.point(t);case y.default.multiPoint:return a.multiPoint(t);case y.default.lineString:return a.lineString(t);case y.default.multiLineString:return a.multiLineString(t);case y.default.polygon:return a.polygon(t);case y.default.multiPolygon:return a.multiPolygon(t);case y.default.extent:return a.polygon([[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]);case y.default.circle:return a.polygon(e.toPolygon().coordinates);default:s.Log.error("geometry为不支持的几何类型!")}},x._lineContainPoint=function(e,t){var r=a.point(t.coordinates),n=a.lineString(e.coordinates),i=a.booleanContains(n,r);if(!i)for(var o=0;o<e.coordinates.length;o++){var s=new m.default({coordinates:e.coordinates[o],spatialReference:p.default.fromJSON(e.spatialReference)});if(x.equals(t,s)){i=!0;break}}return i},x._multiLineContainPoint=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new f.default({coordinates:e.coordinates[n],spatialReference:p.default.fromJSON(e.spatialReference)});if(x._lineContainPoint(i,t)){r=!0;break}}return r},x._polygonContainPoint=function(e,t){var r=a.point(t.coordinates),n=a.polygon(e.coordinates);return a.booleanContains(n,r)},x._polygonContainLine=function(e,t){var r=a.polygon(e.coordinates),n=a.lineString(t.coordinates);return a.booleanContains(r,n)},x._multiPointContainsPoint=function(e,t){var r=a.point(t.coordinates),n=a.multiPoint(e.coordinates);return a.booleanContains(n,r)},x._lineContainMultiPoint=function(e,t){for(var r=!0,n=0;n<t.coordinates.length;n++){var i=new m.default({coordinates:t.coordinates[n]});if(!(r=x._lineContainPoint(e,i)))break}return r},x._polygonContainMultiPoint=function(e,t){for(var r=!0,n=0;n<t.coordinates.length;n++){var i=new m.default({coordinates:t.coordinates[n]});if(!(r=x._polygonContainPoint(e,i)))break}return r},x._checkTwoGeometry=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry1对象为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2对象为空!"),e instanceof l.default||s.Log.error("geometry1对象未继承于Geometry对象!"),t instanceof l.default||s.Log.error("geometry2对象未继承于Geometry对象!"),e.spatialReference.equals(t.spatialReference)||s.Log.error("geometry1和geometry2的坐标系不相同!")},x.intersect=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry1不能为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2不能为空!"),e instanceof l.default||e instanceof Array||s.Log.error("geometry1必须为几何对象或者数组对象!"),t instanceof l.default||s.Log.error("geometry2必须为几何对象或者数组对象!");var r=void 0;if(e instanceof Array){r=[];for(var n=0;n<e.length;n++)r.push(x.intersect(e[n],t));return r}switch(e.type){case y.default.point:r=x._pointIntersectGeometry(e,t);break;case y.default.multiPoint:r=x._multiPointIntersectGeometry(e,t);break;case y.default.lineString:switch(t.type){case y.default.point:x.contains(e,t)&&(r=new m.default({coordinates:t.coordinates}));break;case y.default.multiPoint:r=x._lineIntersectMultiPoint(e,t);break;case y.default.polygon:r=x._lineIntersectPolygon(e,t);break;case y.default.multiPolygon:r=x._lineIntersectMultiPolygon(e,t);break;case y.default.lineString:case y.default.multiLineString:r=x._lineIntersectLine(e,t);break;case y.default.extent:r=x._lineIntersectExtent(e,t);break;case y.default.circle:r=x._lineIntersectPolygon(e,t.toPolygon())}break;case y.default.polygon:switch(t.type){case y.default.point:r=x._pointIntersectGeometry(t,e);break;case y.default.multiPoint:r=x._multiPointIntersectGeometry(t,e);break;case y.default.lineString:r=x._lineIntersectPolygon(t,e);break;case y.default.multiLineString:r=x._multiLineIntersectPolygon(t,e);break;case y.default.polygon:r=x._polygonIntersectPolygon(e,t);break;case y.default.multiPolygon:r=x._polygonIntersectMultiPolygon(e,t);break;case y.default.circle:r=x._polygonIntersectPolygon(e,t.toPolygon());break;case y.default.extent:r=x._polygonIntersectExtent(e,t)}break;case y.default.multiPolygon:switch(t.type){case y.default.point:r=x._pointIntersectGeometry(t,e);break;case y.default.multiPoint:r=x._multiPointIntersectGeometry(t,e);break;case y.default.lineString:r=x._lineIntersectMultiPolygon(t,e);break;case y.default.multiLineString:r=x._multiLineIntersectMultiPolygon(t,e);break;case y.default.polygon:r=x._polygonIntersectMultiPolygon(t,e);break;case y.default.multiPolygon:r=x._multiPolygonIntersectMultiPolygon(e,t);break;case y.default.extent:r=x._multiPolygonIntersectExtent(e,t);break;case y.default.circle:r=x._polygonIntersectMultiPolygon(t.toPolygon(),e)}break;case y.default.extent:switch(t.type){case y.default.point:r=x._pointIntersectGeometry(t,e);break;case y.default.multiPoint:r=x._multiPointIntersectGeometry(t,e);break;case y.default.lineString:r=x._lineIntersectExtent(t,e);break;case y.default.multiLineString:r=x._multiLineIntersectExtent(t,e);break;case y.default.polygon:r=x._polygonIntersectExtent(t,e);break;case y.default.multiPolygon:r=x._multiPolygonIntersectExtent(t,e);break;case y.default.extent:var i=t.toPolygon();r=x._polygonIntersectExtent(i,e);break;case y.default.circle:var o=e.toPolygon();r=x._polygonIntersectPolygon(o,t.toPolygon())}break;case y.default.circle:var a=e.toPolygon();switch(t.type){case y.default.point:r=x._pointIntersectGeometry(t,a);break;case y.default.multiPoint:r=x._multiPointIntersectGeometry(t,a);break;case y.default.lineString:r=x._lineIntersectPolygon(t,a);break;case y.default.multiLineString:r=x._multiLineIntersectPolygon(t,a);break;case y.default.polygon:r=x._polygonIntersectPolygon(t,a);break;case y.default.multiPolygon:r=x._polygonIntersectMultiPolygon(a,t);break;case y.default.circle:r=x._polygonIntersectPolygon(t.toPolygon(),a);break;case y.default.extent:r=x._polygonIntersectExtent(a,t)}break;case y.default.multiLineString:switch(t.type){case y.default.point:r=x._pointIntersectGeometry(t,e);break;case y.default.multiPoint:r=x._multiPointIntersectGeometry(t,e);break;case y.default.lineString:r=x._lineIntersectLine(t,e);break;case y.default.multiLineString:for(var u=[],c=[],h=0;h<e.coordinates.length;h++){var d=new f.default({coordinates:e.coordinates[h]}),p=x._lineIntersectLine(d,t);p&&p.point&&u.push(p.point),p&&p.lineString&&c.push(p.lineString)}(r={point:void 0,lineString:void 0}).point=x.union(u),r.lineString=x.union(c);break;case y.default.polygon:r=x._multiLineIntersectPolygon(e,t);break;case y.default.multiPolygon:r=x._multiLineIntersectMultiPolygon(e,t)}}return r},x._lineIntersectLine=function(e,t){var r,n,i=e.spatialReference;r=e.type===y.default.lineString?a.lineString(e.coordinates):a.multiLineString(e.coordinates),n=t.type===y.default.lineString?a.lineString(t.coordinates):a.multiLineString(t.coordinates);var o=void 0,s=void 0;if(e.type===y.default.lineString)o=[e];else{o=[];for(var u=0;u<e.coordinates.length;u++)o.push(new f.default({coordinates:e.coordinates[u],spatialReference:i}))}if(t.type===y.default.lineString)s=[t];else{s=[];for(var l=0;l<t.coordinates.length;l++)s.push(new f.default({coordinates:t.coordinates[l],spatialReference:i}))}for(var c=[],h=0;h<o.length;h++)for(var d=0;d<s.length;d++){var p=a.lineString(o[h].coordinates),v=a.lineString(s[d].coordinates),_=a.lineOverlap(p,v);if(_.features.length>0)for(var S=0;S<_.features.length;S++)c.push(new f.default({coordinates:_.features[S].geometry.coordinates,spatialReference:i}))}var b=a.lineIntersect(r,n),w={point:void 0,lineString:void 0};1===c.length?w.lineString=new f.default({coordinates:c[0].coordinates,spatialReference:i}):c.length>1&&(w.lineString=x.union(c));for(var E=0;E<b.features.length;E++){var T=new m.default({coordinates:b.features[E].geometry.coordinates,spatialReference:i});w.lineString&&x.contains(w.lineString,T)&&b.features.splice(E,1)}if(1===b.features.length)w.point=new m.default({coordinates:b.features[0].geometry.coordinates,spatialReference:i});else if(b.features.length>1){for(var I=[],M=0;M<b.features.length;M++)I.push(b.features[M].geometry.coordinates);w.point=new g.default({coordinates:I,spatialReference:i})}return w},x._lineIntersectMultiPoint=function(e,t){for(var r=[],n=void 0,i=e.spatialReference,o=0;o<t.coordinates.length;o++){var a=new m.default({coordinates:t.coordinates[o],spatialReference:i});x.contains(e,a)&&r.push(a.coordinates)}return 1===r.length?n=new m.default({coordinates:r[0],spatialReference:i}):r.length>1&&(n=new g.default({coordinates:r,spatialReference:i})),n},x._lineIntersectPolygon=function(e,t){var r=e.spatialReference,n=a.lineString(e.coordinates),i=a.polygon(t.coordinates),o=a.lineIntersect(n,i);o.features=o.features.sort(function(e,t){return e.geometry.coordinates[0]-t.geometry.coordinates[0]});for(var s=[],u=0;u<e.coordinates.length-1;u++){var l=new f.default({coordinates:[e.coordinates[u],e.coordinates[u+1]],spatialReference:r});l.coordinates=l.coordinates.sort(function(e,t){return e-t});for(var c=[],h=0;h<o.features.length;h++){var d=new m.default({coordinates:o.features[h].geometry.coordinates,spatialReference:r});x.contains(l,d)&&c.push(d)}var p=new m.default({coordinates:e.coordinates[u],spatialReference:r});c[0]&&x.equals(p,c[0])||(c=[p].concat(c));var v=new m.default({coordinates:e.coordinates[u+1],spatialReference:r});0!==c.length&&x.equals(v,c[c.length-1])||c.push(v);for(var _=0;_<c.length-1;_++){var b=new f.default({coordinates:[c[_].coordinates,c[_+1].coordinates],spatialReference:r});x.contains(t,b)&&s.push(b)}}if(1===s.length)return s[0];if(s.length>1){for(var w=[],E=0;E<s.length;E++)w.push(s[E].coordinates);return new S.default({coordinates:w,spatialReference:r})}for(var T=[],I=0;I<o.features.length;I++)o.features[I].geometry.type===y.default.point&&T.push(o.features[I].geometry.coordinates);return 1===T.length?new m.default({coordinates:T[0],spatialReference:r}):T.length>1?new g.default({coordinates:T,spatialReference:r}):void 0},x._multiLineIntersectPolygon=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<e.coordinates.length;i++){var o=new f.default({coordinates:e.coordinates[i],spatialReference:r}),a=x._lineIntersectPolygon(o,t);a&&n.push(a)}if(1===n.length)return new f.default({coordinates:n[0].coordinates,spatialReference:r});if(n.length>1){for(var s=[],u=0;u<n.length;u++)n[u].type===y.default.lineString?s.push(n[u].coordinates):s=s.concat(n[u].coordinates);return new S.default({coordinates:s,spatialReference:r})}},x._multiLineIntersectMultiPolygon=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<t.coordinates.length;i++){var o=new c.default({coordinates:t.coordinates[i],spatialReference:r}),a=x._multiLineIntersectPolygon(e,o);a&&n.push(a)}return x.union(n)},x._lineIntersectExtent=function(e,t){var r=e.spatialReference,n=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]],spatialReference:r});return x._lineIntersectPolygon(e,n)},x._multiLineIntersectExtent=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<e.coordinates.length;i++){var o=new f.default({coordinates:e.coordinates[i],spatialReference:r}),a=x._lineIntersectExtent(o,t);a&&n.push(a)}if(1===n.length)return n[0];if(n.length>1){for(var s=[],u=0;u<n.length;u++)s.push(n[u].coordinates);return new S.default({coordinates:s,spatialReference:r})}},x._lineIntersectMultiPolygon=function(e,t){for(var r=e.spatialReference,n=void 0,i=[],o=0;o<t.coordinates.length;o++){var a=new c.default({coordinates:t.coordinates[o],spatialReference:r});i.push(x._lineIntersectPolygon(e,a))}for(var s=[],u=0;u<i.length;u++)i[u].type===y.default.lineString?s.push(i[u].coordinates):s=s.concat(i[u].coordinates);return 1===s.length?n=new f.default({coordinates:s,spatialReference:r}):s.length>1&&(n=new S.default({coordinates:s,spatialReference:r})),n},x._pointIntersectGeometry=function(e,t){var r=e.spatialReference;if(x.contains(t,e))return new m.default({coordinates:e.coordinates,spatialReference:r})},x._multiPointIntersectGeometry=function(e,t){for(var r=[],n=e.spatialReference,i=0;i<e.coordinates.length;i++){var o=new m.default({coordinates:e.coordinates[i],spatialReference:n});x.contains(t,o)&&r.push(o.coordinates)}var a=void 0;return 1===r.length?a=new m.default({coordinates:r[0],spatialReference:n}):r.length>1&&(a=new g.default({coordinates:r,spatialReference:n})),a},x._polygonIntersectPolygon=function(e,t){var r=e.spatialReference,n=a.polygon(e.coordinates),i=a.polygon(t.coordinates),o=a.intersect(n,i);if(o)return o.geometry.type===y.default.polygon?new c.default({coordinates:o.geometry.coordinates,spatialReference:r}):new h.default({coordinates:o.geometry.coordinates,spatialReference:r})},x._polygonIntersectMultiPolygon=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<t.coordinates.length;i++){var o=new c.default({coordinates:t.coordinates[i],spatialReference:r}),a=x._polygonIntersectPolygon(e,o);a&&n.push(a)}return x.union(n)},x._multiPolygonIntersectMultiPolygon=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<e.coordinates.length;i++){var o=new c.default({coordinates:e.coordinates[i],spatialReference:r}),a=x._polygonIntersectMultiPolygon(o,t);a&&n.push(a)}return x.union(n)},x._polygonIntersectExtent=function(e,t){var r=e.spatialReference,n=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]],spatialReference:r});return x._polygonIntersectPolygon(e,n)},x._multiPolygonIntersectExtent=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<e.coordinates.length;i++){var o=new c.default({coordinates:e.coordinates[i],spatialReference:r}),a=x._polygonIntersectExtent(o,t);a&&n.push(a)}return x.union(n)},x.overlaps=function(e,t){return!!x.intersects(e,t)&&!x.contains(e,t)&&!x.contains(t,e)},x.rotate=function(e,t,r){t=(0,s.defaultValue)(t,0),(0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),(0,s.isNull)(t)&&s.Log.error("angle不能为空!"),e instanceof l.default||s.Log.error("geometry不是基础几何对象!"),"number"!=typeof t&&s.Log.error("angle不是数字!"),!r||r instanceof m.default||s.Log.error("rotationOrigin不是Point对象!"),r&&!e.spatialReference.equals(r.spatialReference)&&s.Log.error("rotationOrigin和geometry不是同一个坐标系!");var n=void 0,i=void 0;e.spatialReference.isGeographic?(n=e,i=r):(n=d.default.projectGeometry(e,new p.default({wkid:4326})),i=d.default.projectGeometry(r,new p.default({wkid:4326})));var o=x._geometryToTurf(n),u=void 0;i&&(u=[i.coordinates[0],i.coordinates[1]]);var c={pivot:u,mutate:!0},f=a.transformRotate(o,t,c);return f=x._turfFeatureToGeometry(f),e.spatialReference.isGeographic||(f=d.default.projectGeometry(f,p.default.fromJSON(e.spatialReference))),f},x._turfFeatureToGeometry=function(e){switch(e.geometry.type){case y.default.point:return new m.default({coordinates:e.geometry.coordinates});case y.default.multiPoint:return new g.default({coordinates:e.geometry.coordinates});case y.default.lineString:return new f.default({coordinates:e.geometry.coordinates});case y.default.multiLineString:return new S.default({coordinates:e.geometry.coordinates});case y.default.polygon:return new c.default({coordinates:e.geometry.coordinates});case y.default.multiPolygon:return new h.default({coordinates:e.geometry.coordinates})}},x.nearestCoordinate=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),(0,s.isNull)(t)&&s.Log.error("inputPoint不能为空!");var r=e,n=t;if(n instanceof m.default||s.Log.error("inputPoint类型错误,需要输入Point!"),r instanceof m.default||r instanceof f.default||r instanceof c.default||r instanceof g.default||r instanceof S.default||r instanceof h.default||r instanceof _.default||r instanceof v.default||s.Log.error("geometry类型错误!"),r.spatialReference.equals(n.spatialReference)||s.Log.error("_geometryPro1、inputPoint坐标系不同!"),r=(0,s.defaultValue)(r,void 0),n=(0,s.defaultValue)(n,void 0),r.spatialReference.isGeographic||(r=d.default.projectGeometry(r,new p.default({wkid:4326})),n=d.default.projectGeometry(n,new p.default({wkid:4326}))),!(0,s.isNull)(r)&&!(0,s.isNull)(n)){var i=void 0,o=void 0,u=void 0,b=[],x=a.point(n.coordinates);switch(r.type){case y.default.multiPoint:for(var w=0;w<r.coordinates.length;w++)b.push(a.point(r.coordinates[w]));var E=a.featureCollection(b);i=a.nearestPoint(x,E);break;case y.default.lineString:o=a.lineString(r.coordinates),i=a.nearestPointOnLine(o,x,{units:"kilometers"});break;case y.default.multiLineString:o=a.multiLineString(r.coordinates),i=a.nearestPointOnLine(o,x,{units:"kilometers"});break;case y.default.polygon:for(var T=0;T<r.coordinates[0].length;T++)b.push(r.coordinates[0][T]);o=a.lineString(b),i=a.nearestPointOnLine(o,x,{units:"kilometers"});break;case y.default.multiPolygon:for(var I=[],M=0;M<r.coordinates.length;M++){b=[];for(var k=0;k<r.coordinates[M][0].length;k++)b.push(r.coordinates[M][0][k]);I.push(b),o=a.multiLineString(I)}i=a.nearestPointOnLine(o,x,{units:"kilometers"});break;case y.default.circle:u=a.polygon(r.toPolygon().coordinates);for(var P=0;P<u.geometry.coordinates[0].length;P++)b.push(u.geometry.coordinates[0][P]);o=a.lineString(b),i=a.nearestPointOnLine(o,x,{units:"kilometers"});break;case y.default.extent:u=new c.default({coordinates:[[[r.xmin,r.ymin],[r.xmax,r.ymin],[r.xmax,r.ymax],[r.xmin,r.ymax],[r.xmin,r.ymin]]]});for(var L=0;L<u.coordinates[0].length;L++)b.push(u.coordinates[0][L]);o=a.lineString(b),i=a.nearestPointOnLine(o,x,{units:"kilometers"})}return i=l.default.fromJSON(i.geometry),t.spatialReference.isGeographic||(i=d.default.projectGeometry(i,t.spatialReference)),i}},x.planarArea=function(e,t){e instanceof c.default||e instanceof h.default||e instanceof v.default||e instanceof _.default||s.Log.error("polygon对象不是Polyon或MultiPolygon或Circle或Extent类型!");var r=0;if(e instanceof c.default)r=x._polygonArea(e);else if(e instanceof h.default)for(var n=e.toPolygonArray(),i=0;i<n.length;i++)r+=x._polygonArea(n[i]);else e instanceof v.default?r=Math.abs(Math.PI*e.radius*e.radius):e instanceof _.default&&(r=Math.abs((e.xmax-e.xmin)*(e.ymax-e.ymin)));switch(t){case u.AreaUnits.squareKilometers:r*=1e-6;break;case u.AreaUnits.squareMiles:r*=6214e-7*6214e-7;break;case u.AreaUnits.squareYards:r*=1.1959900499368898;break;case u.AreaUnits.squareFeet:r*=10.763910416689228;break;case u.AreaUnits.acres:r*=2471e-7;break;case u.AreaUnits.ares:r*=.01;break;case u.AreaUnits.hectares:r*=1e-4;break;case u.AreaUnits.squareMeters:}return r},x._ringArea=function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r][0]*e[r===e.length-1?0:r+1][1]*.5,t-=e[r===e.length-1?0:r+1][0]*e[r][1]*.5;return Math.abs(t)},x._polygonArea=function(e){for(var t=x._ringArea(e.coordinates[0]),r=0,n=1;n<e.coordinates.length;n++)r+=x._ringArea(e.coordinates[n]);return t-r},x.planarLength=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry对象不能为空!"),e instanceof f.default||e instanceof S.default||e instanceof c.default||e instanceof h.default||e instanceof v.default||e instanceof _.default||s.Log.error("geometry类型不正确!");var r=0,n=void 0;switch(e.type){case y.default.lineString:r=x._planarLineStringLength(e);break;case y.default.multiLineString:r=x._planarMultiLineStringLength(e);break;case y.default.polygon:n=new c.default({coordinates:[e.coordinates[0]]}),r=x._planarMultiLineStringLength(n);break;case y.default.multiPolygon:for(var i=0;i<e.coordinates.length;i++){var o=new c.default({coordinates:[e.coordinates[i][0]]});r+=x._planarMultiLineStringLength(o)}break;case y.default.circle:r=2*Math.PI*e.radius;break;case y.default.extent:n=new c.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]}),r+=x._planarMultiLineStringLength(n)}switch(t){case u.LinearUnits.kilometers:r*=.001;break;case u.LinearUnits.feet:r*=3.28083989501;break;case u.LinearUnits.miles:r*=6214e-7;break;case u.LinearUnits.nauticalMiles:r*=54e-5;break;case u.LinearUnits.yards:r*=1.0936133;break;case u.LinearUnits.meters:}return r},x._planarLineStringLength=function(e){for(var t=0,r=0;r<e.coordinates.length-1;r++){var n=Math.abs(e.coordinates[r+1][0]-e.coordinates[r][0]),i=Math.abs(e.coordinates[r+1][1]-e.coordinates[r][1]);t+=Math.sqrt(Math.pow(n,2)+Math.pow(i,2))}return t},x._planarMultiLineStringLength=function(e){for(var t=0,r=0;r<e.coordinates.length;r++){var n=new f.default({coordinates:e.coordinates[r]});t+=x._planarLineStringLength(n)}return t},x.contains=function(e,t){x._checkTwoGeometry(e,t);var r=!1,n=void 0;switch(e.type){case y.default.point:switch(t.type){case y.default.point:return x.equals(e,t)}break;case y.default.multiPoint:switch(t.type){case y.default.point:return x._multiPointContainsPoint(e,t);case y.default.multiPoint:r=!0;for(var i=0;i<t.coordinates.length&&(n=new m.default({coordinates:t.coordinates[i]}),r=x._lineContainPoint(e,n));i++);return r}break;case y.default.lineString:switch(t.type){case y.default.point:return x._lineContainPoint(e,t);case y.default.multiPoint:r=!0;for(var o=0;o<t.coordinates.length;o++)if(n=new m.default({coordinates:t.coordinates[o],spatialReference:p.default.fromJSON(t.spatialReference)}),!x._lineContainPoint(e,n)){r=!1;break}return r;case y.default.lineString:return x._lineContainLine(e,t);case y.default.multiLineString:r=!0;for(var a=0;a<t.coordinates.length;a++){var s=new f.default({coordinates:t.coordinates[a],spatialReference:p.default.fromJSON(t.spatialReference)});if(!x._lineContainLine(e,s)){r=!1;break}}return r}break;case y.default.multiLineString:switch(t.type){case y.default.point:return x._multiLineContainPoint(e,t);case y.default.multiPoint:r=!0;for(var u=0;u<t.coordinates.length;u++){var l=new m.default({coordinates:t.coordinates[u],spatialReference:p.default.fromJSON(t.spatialReference)});if(!x._multiLineContainPoint(e,l)){r=!1;break}}return r;case y.default.lineString:return x._multiLineContainLine(e,t);case y.default.multiLineString:r=!0;for(var h=0;h<t.coordinates.length;h++){var d=new f.default({coordinates:t.coordinates[h],spatialReference:p.default.fromJSON(t.spatialReference)});if(!x._multiLineContainLine(e,d)){r=!1;break}}return r}break;case y.default.polygon:switch(t.type){case y.default.point:return x._polygonContainPoint(e,t);case y.default.multiPoint:r=!0;for(var g=0;g<t.coordinates.length;g++){var v=new m.default({coordinates:t.coordinates[g]});if(!x._polygonContainPoint(e,v)){r=!1;break}}return r;case y.default.lineString:return x._polygonContainLine(e,t);case y.default.multiLineString:r=!0;for(var _=0;_<t.coordinates.length;_++){var S=new f.default({coordinates:t.coordinates[_]});if(!x._polygonContainLine(e,S)){r=!1;break}}return r;case y.default.polygon:return x._polygonContainPolygon(e,t);case y.default.multiPolygon:r=!0;for(var b=0;b<t.coordinates.length;b++){var w=new c.default({coordinates:t.coordinates[b]});if(!x._polygonContainPolygon(e,w)){r=!1;break}}return r;case y.default.circle:return x._polygonContainPolygon(e,t.toPolygon());case y.default.extent:var E=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return x._polygonContainPolygon(e,E)}break;case y.default.multiPolygon:switch(t.type){case y.default.point:return x._multiPolygonContainsPoint(e,t);case y.default.multiPoint:return x._multiContainsMulti(e,t,m.default,x._multiPolygonContainsPoint);case y.default.lineString:return x._multiPolygonContainsLine(e,t);case y.default.multiLineString:return x._multiContainsMulti(e,t,f.default,x._multiPolygonContainsLine);case y.default.polygon:return x._multiPolygonContainsPolygon(e,t);case y.default.multiPolygon:return x._multiContainsMulti(e,t,c.default,x._multiPolygonContainsPolygon);case y.default.circle:r=!1;for(var T=0;T<e.coordinates.length;T++){var I=new c.default({coordinates:e.coordinates[T]});if(x._polygonContainPolygon(I,t.toPolygon())){r=!0;break}}return r;case y.default.extent:r=!1;for(var M=0;M<e.coordinates.length;M++){var k=new c.default({coordinates:e.coordinates[M]}),P=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});if(x._polygonContainPolygon(k,P)){r=!0;break}}return r}break;case y.default.circle:switch(t.type){case y.default.point:return x._polygonContainPoint(e.toPolygon(),t);case y.default.multiPoint:return x._singleContainsMulti(e.toPolygon(),t,m.default,x._polygonContainPoint);case y.default.lineString:return x._polygonContainMultiPoint(e.toPolygon(),t);case y.default.multiLineString:return x._singleContainsMulti(e.toPolygon(),t,f.default,x._polygonContainMultiPoint);case y.default.polygon:return x._polygonContainPolygon(e.toPolygon(),t);case y.default.multiPolygon:return x._singleContainsMulti(e.toPolygon(),t,c.default,x._polygonContainPolygon);case y.default.circle:return x._polygonContainPolygon(e.toPolygon(),t.toPolygon());case y.default.extent:var L=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return x._polygonContainPolygon(e.toPolygon(),L)}break;case y.default.extent:var O=new c.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]});switch(t.type){case y.default.point:return x._polygonContainPoint(O,t);case y.default.multiPoint:return x._singleContainsMulti(O,t,m.default,x._polygonContainPoint);case y.default.lineString:return x._polygonContainMultiPoint(O,t);case y.default.multiLineString:return x._singleContainsMulti(O,t,f.default,x._polygonContainMultiPoint);case y.default.polygon:return x._polygonContainPolygon(O,t);case y.default.multiPolygon:return x._singleContainsMulti(O,t,c.default,x._polygonContainPolygon);case y.default.circle:return x._polygonContainPolygon(O,t.toPolygon());case y.default.extent:var C=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return x._polygonContainPolygon(O,C)}break;default:return!1}},x._singleContainsMulti=function(e,t,r,n){for(var i=!0,o=0;o<t.coordinates.length;o++)if(!n(e,new r({coordinates:t.coordinates[o]}))){i=!1;break}return i},x._multiContainsMulti=function(e,t,r,n){for(var i=!0,o=0;o<t.coordinates.length;o++)if(!n(e,new r({coordinates:t.coordinates[o]}))){i=!1;break}return i},x._multiPolygonContainsPoint=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new c.default({coordinates:e.coordinates[n]});if(x._polygonContainPoint(i,t)){r=!0;break}}return r},x._multiPolygonContainsLine=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new c.default({coordinates:e.coordinates[n]});if(x._polygonContainMultiPoint(i,t)){r=!0;break}}return r},x._multiPolygonContainsPolygon=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new c.default({coordinates:e.coordinates[n]});if(x._polygonContainPolygon(i,t)){r=!0;break}}return r},x._lineContainLine=function(e,t){var r=a.lineString(e.coordinates),n=a.lineString(t.coordinates),i=a.booleanContains(r,n);if(i||(i=x.equals(e,t)),!i){var o=new f.default({coordinates:[t.coordinates[1],t.coordinates[0]]});i=x.equals(e,o)}return i},x._multiLineContainLine=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new f.default({coordinates:e.coordinates[n],spatialReference:p.default.fromJSON(e.spatialReference)});if(x._lineContainLine(i,t)){r=!0;break}}return r},x._polygonContainPolygon=function(e,t){var r=a.polygon(e.coordinates),n=a.polygon(t.coordinates);return a.booleanContains(r,n)},x.distance=function(e,t,r){if((0,s.isNull)(e)&&s.Log.error("geometry1不能为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2不能为空!"),e instanceof m.default||s.Log.error("geometry1类型错误,需要输入Point!"),t instanceof m.default||t instanceof f.default||t instanceof c.default||t instanceof g.default||t instanceof S.default||t instanceof h.default||t instanceof _.default||t instanceof v.default||s.Log.error("geometry2类型错误!"),e.spatialReference.equals(t.spatialReference)||s.Log.error("geometry1、geometry2坐标系不同!"),r=(0,s.defaultValue)(r,u.LengthUnit.kilometers),e=(0,s.defaultValue)(e,void 0),t=(0,s.defaultValue)(t,void 0),e.spatialReference.isGeographic||(e=d.default.projectGeometry(e,new p.default({wkid:4326})),t=d.default.projectGeometry(t,new p.default({wkid:4326}))),!(0,s.isNull)(e)&&!(0,s.isNull)(t)){var n=void 0,i=void 0,o=void 0,l=[],b=[],x=a.point(e.coordinates);switch(t.type){case y.default.point:i=a.point(t.coordinates),n=a.distance(x,i,{units:r});break;case y.default.multiPoint:for(var w=0;w<t.coordinates.length;w++)l.push(a.point(t.coordinates[w]));var E=a.featureCollection(l),T=a.nearestPoint(x,E);n=a.distance(x,T,{units:r});break;case y.default.lineString:i=a.lineString(t.coordinates),n=a.pointToLineDistance(x,i,{units:r});break;case y.default.multiLineString:for(var I=0;I<t.coordinates.length;I++)i=a.lineString(t.coordinates[I]),b.push(a.pointToLineDistance(x,i,{units:r}));b.sort(function(e,t){return e-t}),n=b[0];break;case y.default.polygon:for(var M=0;M<t.coordinates[0].length;M++)l.push(t.coordinates[0][M]);i=a.lineString(l),n=a.pointToLineDistance(x,i,{units:r});break;case y.default.multiPolygon:for(var k=0;k<t.coordinates.length;k++){l=[];for(var P=0;P<t.coordinates[k][0].length;P++)l.push(t.coordinates[k][0][P]);i=a.lineString(l),b.push(a.pointToLineDistance(x,i,{units:r}))}b.sort(function(e,t){return e-t}),n=b[0];break;case y.default.circle:o=a.polygon(t.toPolygon().coordinates);for(var L=0;L<o.geometry.coordinates[0].length;L++)l.push(o.geometry.coordinates[0][L]);i=a.lineString(l),n=a.pointToLineDistance(x,i,{units:r});break;case y.default.extent:for(var O=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]}),C=0;C<O.coordinates[0].length;C++)l.push(O.coordinates[0][C]);i=a.lineString(l),n=a.pointToLineDistance(x,i,{units:r})}return n}},x.equals=function(e,t){if((0,s.isNull)(e)&&s.Log.error("geometry1对象为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2对象为空!"),e instanceof l.default||s.Log.error("geometry1对象未继承于Geometry对象!"),t instanceof l.default||s.Log.error("geometry2对象未继承于Geometry对象!"),e.type!==t.type)return!1;if(!e.spatialReference.equals(t.spatialReference))return!1;switch(e.type){case y.default.point:if(!e.equals(t))return!1;break;case y.default.polygon:return x._equalPolygon(e,t);case y.default.lineString:return x._equalLinePoint(e,t);case y.default.extent:if(e.xmin!==t.xmin||e.ymin!==t.ymin||e.xmax!==t.xmax||e.ymax!==t.ymax)return!1;break;case y.default.circle:if(e.radius!==t.radius||e.radiusUnit!==t.radiusUnit)return!1;if(e.center.length!==t.center.length)return!1;for(var r=0;r<e.center.length;r++)if(e.center[r]!==t.center[r])return!1;break;case y.default.multiPoint:return x._equalLinePoint(e,t);case y.default.multiLineString:if(e.coordinates.length!==t.coordinates.length)return!1;for(var n=0;n<e.coordinates.length;n++){var i=new f.default({coordinates:e.coordinates[n],spatialReference:e.spatialReference}),o=new f.default({coordinates:t.coordinates[n],spatialReference:t.spatialReference});if(!x.equals(i,o))return!1}break;case y.default.multiPolygon:if(e.coordinates.length!==t.coordinates.length)return!1;for(var a=0;a<e.coordinates.length;a++){var u=new c.default({coordinates:e.coordinates[a],spatialReference:e.spatialReference}),h=new c.default({coordinates:t.coordinates[a],spatialReference:t.spatialReference});if(!x.equals(u,h))return!1}}return!0},x._equalLinePoint=function(e,t){if(e.coordinates.length!==t.coordinates.length)return!1;for(var r=0;r<e.coordinates.length;r++){var n=new m.default({coordinates:e.coordinates[r]}),i=new m.default({coordinates:t.coordinates[r]});if(!n.equals(i))return!1}return!0},x._equalPolygon=function(e,t){if(e.coordinates.length!==t.coordinates.length)return!1;for(var r=0;r<e.coordinates.length;r++)if(e.coordinates[r].length!==t.coordinates[r].length)return!1;for(var n=0;n<e.coordinates.length;n++){var i=new f.default({coordinates:e.coordinates[n],spatialReference:e.spatialReference}),o=new f.default({coordinates:t.coordinates[n],spatialReference:t.spatialReference});if(!x.equals(i,o))return!1}return!0},x.disjoint=function(e,t){return!x.intersects(e,t)},x.within=function(e,t){return x.contains(t,e)},x.crosses=function(e,t){if((0,s.isNull)(e)&&s.Log.error("geometry1不能为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2不能为空!"),e.spatialReference.equals(t.spatialReference)||s.Log.error("geometry1、geometry2坐标系不同!"),e instanceof f.default||e instanceof S.default)return x._crosses(e,t);if(t instanceof f.default||t instanceof S.default){var r=e;return x._crosses(e=t,t=r)}s.Log.error("geometry1和geometry2中至少有一个参数类型必须为lineString和multiLineString中的一个!")},x._crosses=function(e,t){if(t instanceof f.default||t instanceof c.default||t instanceof S.default||t instanceof h.default||t instanceof _.default||t instanceof v.default||s.Log.error("geometry2类型错误!"),e=(0,s.defaultValue)(e,void 0),t=(0,s.defaultValue)(t,void 0),e.spatialReference.isGeographic||(e=d.default.projectGeometry(e,new p.default({wkid:4326})),t=d.default.projectGeometry(t,new p.default({wkid:4326}))),!(0,s.isNull)(e)&&!(0,s.isNull)(t)){var r=void 0,n=void 0,i=void 0;switch(e.type){case y.default.lineString:switch(t.type){case y.default.lineString:if(n=x._geometryToTurf(e),i=x._geometryToTurf(t),!(r=a.booleanCrosses(n,i))&&x.intersects(e,t)){var o=[],u=new g.default({coordinates:[t.coordinates[0],t.coordinates[t.coordinates.length-1]]});if(u.coordinates[0].toString()===u.coordinates[1].toString()){var l=x.intersect(e,t);if("MultiPoint"===l.point.type)r=!0;else if("Point"===l.point.type){var b=new m.default({coordinates:e.coordinates[0]}),w=new m.default({coordinates:e.coordinates[e.coordinates.length-1]});r=!x.contains(t,b)&&!x.contains(t,w)}}else{for(var E=0;E<e.coordinates.length;E++)o.push(e.coordinates[E]);for(var T=0;T<t.coordinates.length;T++)o.push(t.coordinates[T]);var I=a.multiPoint(o);if(!(a.cleanCoords(I).geometry.coordinates.length<I.geometry.coordinates.length)){for(var M=void 0,k=0;k<e.coordinates.length;k++){if(M){r=!M;break}var P=new m.default({coordinates:e.coordinates[k]});M=x.contains(t,P)}for(var L=0;L<t.coordinates.length;L++){if(M){r=!M;break}var O=new m.default({coordinates:t.coordinates[L]});M=x.contains(e,O)}M||(r=!0);break}r=!1}}break;case y.default.multiLineString:for(var C=0;C<t.coordinates.length&&!r;C++)i=new f.default({coordinates:t.coordinates[C]}),r=x._crosses(e,i);break;case y.default.polygon:case y.default.extent:case y.default.circle:n=x._geometryToTurf(e),i=x._geometryToTurf(t),(r=a.booleanCrosses(n,i))&&"Point"===x.intersect(e,t).type&&(r=!1);break;case y.default.multiPolygon:for(var N=0;N<t.coordinates.length&&!r;N++)i=new c.default({coordinates:t.coordinates[N]}),r=x._crosses(e,i)}break;case y.default.multiLineString:for(var R=0;R<e.coordinates.length&&!r;R++)n=new f.default({coordinates:e.coordinates[R]}),r=x._crosses(n,t)}return r}},x.touches=function(e,t){if((0,s.isNull)(e)&&s.Log.error("geometry1不能为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2不能为空!"),e instanceof f.default||e instanceof c.default||e instanceof S.default||e instanceof h.default||e instanceof _.default||e instanceof v.default||s.Log.error("geometry1类型错误,需要输入LineString、Polygon、MultiLineString、MultiPolygon、Circle、Extent!"),t instanceof m.default||t instanceof f.default||t instanceof c.default||t instanceof g.default||t instanceof S.default||t instanceof h.default||t instanceof _.default||t instanceof v.default||s.Log.error("geometry2类型错误!"),e.spatialReference.equals(t.spatialReference)||s.Log.error("geometry1、geometry2坐标系不同!"),e=(0,s.defaultValue)(e,void 0),t=(0,s.defaultValue)(t,void 0),e.spatialReference.isGeographic||(e=d.default.projectGeometry(e,new p.default({wkid:4326})),t=d.default.projectGeometry(t,new p.default({wkid:4326}))),!(0,s.isNull)(e)&&!(0,s.isNull)(t)){var r=!1,n=void 0,i=void 0,o=[];switch(e.type){case y.default.lineString:switch(t.type){case y.default.point:var a=new g.default({coordinates:[e.coordinates[0],e.coordinates[e.coordinates.length-1]]});x.contains(a,t)&&a.coordinates[0].toString()!==a.coordinates[1].toString()&&(r=!0);break;case y.default.multiPoint:for(var u=0;u<t.coordinates.length;u++){var l=new m.default({coordinates:t.coordinates[u]}),b=x.touches(e,l);if(b)r=b;else if(x.intersects(e,l)){r=!1;break}}break;case y.default.lineString:if(x.intersect(e,t).point){var w=new m.default({coordinates:e.coordinates[0]}),E=new m.default({coordinates:e.coordinates[e.coordinates.length-1]});if(x.contains(t,w)||x.contains(t,E))r=!x.crosses(e,t);else{var T=new m.default({coordinates:t.coordinates[0]}),I=new m.default({coordinates:t.coordinates[t.coordinates.length-1]});r=!(!x.contains(e,T)&&!x.contains(e,I)||x.crosses(e,t))}}else r=!1;break;case y.default.multiLineString:for(var M=0;M<t.coordinates.length;M++){i=new f.default({coordinates:t.coordinates[M]});var k=x.touches(e,i);if(k)r=k;else if(x.intersects(e,i)){r=!1;break}}break;case y.default.polygon:for(var P=0;P<t.coordinates[0].length;P++)o.push(t.coordinates[0][P]);i=new f.default({coordinates:o}),x.intersects(e,i)&&(x.crosses(e,i)||(r=!0));break;case y.default.multiPolygon:for(var L=0;L<t.coordinates.length;L++){i=new c.default({coordinates:t.coordinates[L]});var O=x.touches(e,i);if(O)r=O;else if(x.intersects(e,i)){r=!1;break}}break;case y.default.circle:var C=new m.default({coordinates:t.center}),N=x.nearestCoordinate(e,C),R=new f.default({coordinates:[t.center,N.geometry.coordinates]}),G=x.planarLength(R);Math.round(G)===t.radius&&(r=!0);break;case y.default.extent:var A=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=x.touches(e,A)}break;case y.default.multiLineString:for(var V=0;V<e.coordinates.length;V++){n=new f.default({coordinates:e.coordinates[V]});var D=x.touches(n,t);if(D)r=D;else if(x.intersects(n,t)){r=!1;break}}break;case y.default.polygon:switch(t.type){case y.default.point:if(!x.contains(e,t)){for(var F=0;F<e.coordinates.length;F++)o.push(e.coordinates[F]);n=new S.default({coordinates:o}),x.contains(n,t)&&(r=!0)}break;case y.default.multiPoint:for(var j=0;j<t.coordinates.length;j++){var B=new m.default({coordinates:t.coordinates[j]}),q=x.touches(e,B);if(q)r=q;else if(x.contains(e,B)){r=!1;break}}break;case y.default.lineString:case y.default.multiLineString:r=x.touches(t,e);break;case y.default.polygon:x.intersects(e,t)&&(x.intersect(e,t)||(r=!0));break;case y.default.multiPolygon:for(var U=0;U<t.coordinates.length;U++){i=new c.default({coordinates:t.coordinates[U]});var J=x.touches(e,i);if(J)r=J;else if(x.intersects(e,i)){r=!1;break}}break;case y.default.circle:for(var z=0;z<e.coordinates[0].length;z++)o.push(e.coordinates[0][z]);n=new f.default({coordinates:o});var W=new m.default({coordinates:t.center}),H=x.nearestCoordinate(n,W),Y=new f.default({coordinates:[t.center,H.geometry.coordinates]}),X=x.planarLength(Y);Math.round(X)===t.radius&&(x.intersect(e,t)||(r=!0));break;case y.default.extent:var K=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=x.touches(e,K)}break;case y.default.multiPolygon:switch(t.type){case y.default.point:for(var Z=0;Z<e.coordinates.length;Z++){n=new c.default({coordinates:e.coordinates[Z]});var Q=x.touches(n,t);if(Q)r=Q;else if(x.contains(n,t)){r=!1;break}}break;case y.default.multiPoint:for(var $=0;$<t.coordinates.length;$++){var ee=new m.default({coordinates:t.coordinates[$]}),te=x.touches(e,ee);if(te)r=te;else if(x.contains(e,ee)){r=!1;break}}break;case y.default.lineString:case y.default.multiLineString:case y.default.polygon:r=x.touches(t,e);break;case y.default.multiPolygon:for(var re=0;re<t.coordinates.length;re++){i=new c.default({coordinates:t.coordinates[re]});var ne=x.touches(e,i);if(ne)r=ne;else if(x.intersects(e,i)){r=!1;break}}break;case y.default.extent:var ie=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=x.touches(e,ie);break;case y.default.circle:for(var oe=0;oe<e.coordinates.length;oe++){n=new c.default({coordinates:e.coordinates[oe]});var ae=x.touches(n,t);if(ae)r=ae;else if(x.intersects(n,t)){r=!1;break}}}break;case y.default.extent:var se=new c.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]});r=x.touches(se,t);break;case y.default.circle:switch(t.type){case y.default.point:var ue=new f.default({coordinates:[e.center,t.coordinates]}),le=x.planarLength(ue);Math.round(le)===e.radius&&(r=!0);break;case y.default.multiPoint:for(var ce=0;ce<t.coordinates.length;ce++){var fe=new m.default({coordinates:t.coordinates[ce]}),he=x.touches(e,fe);if(he)r=he;else{var de=new f.default({coordinates:[e.center,fe.coordinates]}),pe=x.planarLength(de);if(Math.round(pe)<e.radius){r=!1;break}}}break;case y.default.lineString:case y.default.multiLineString:case y.default.polygon:case y.default.multiPolygon:case y.default.extent:r=x.touches(t,e);break;case y.default.circle:var ye=new f.default({coordinates:[e.center,t.center]}),ge=x.planarLength(ye);Math.round(ge)===e.radius+t.radius&&(r=!0)}}return r}},x.cut=function(e,t){if((0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),(0,s.isNull)(t)&&s.Log.error("cutter不能为空!"),e instanceof f.default||e instanceof S.default||e instanceof c.default||e instanceof h.default||s.Log.error("geometry类型错误!"),t instanceof f.default||s.Log.error("cutter类型错误!"),e.spatialReference.equals(t.spatialReference)||s.Log.error("geometry对象和cutter对象的坐标系不同!"),!x.intersects(e,t))return[];var r=[],n=void 0,i=void 0;switch(e.type){case y.default.lineString:r=x._lineCutLine(e,t);break;case y.default.multiLineString:for(var o=0;o<e.coordinates.length;o++){var a=new f.default({coordinates:e.coordinates[o],spatialReference:p.default.fromJSON(e.spatialReference)});r=r.concat(x._lineCutLine(a,t))}break;case y.default.polygon:n=void 0,r=x._lineCutPolygon(n=e,i=t);break;case y.default.multiPolygon:n=void 0;for(var u=0;u<n.coordinates.length;u++){var l=new c.default({coordinates:n.coordinates[u],spatialReference:p.default.fromJSON(e.spatialReference)});r=r.concat(x._lineCutPolygon(l,i))}}return r},x._polygonAndCutterToWGS84=function(e,t){return{polygon:e.spatialReference.isGeographic?e:x._geometryToWGS84(e),cutter:t.spatialReference.isGeographic?t:x._geometryToWGS84(t)}},x._lineCutLine=function(e,t){for(var r=[],n=a.lineString(e.coordinates),i=a.lineString(t.coordinates),o=a.lineSplit(n,i),s=0;s<o.features.length;s++)r.push(new f.default({coordinates:o.features[s].geometry.coordinates,spatialReference:p.default.fromJSON(e.spatialReference)}));return r},x._lineCutPolygon=function(e,t){var r=e.spatialReference,n=[],i=new f.default({coordinates:e.coordinates[0],spatialReference:r}),o=a.lineString(i.coordinates),s=a.lineString(t.coordinates);if(a.booleanDisjoint(s,i))return e.clone();for(var u=[],l=0;l<t.coordinates.length-1;l++){var h=a.lineString([t.coordinates[l],t.coordinates[l+1]]);a.booleanDisjoint(h,i)||u.push(t.coordinates[l],t.coordinates[l+1])}s=a.lineString(u),s=a.cleanCoords(s);for(var d=a.lineSplit(o,s),p=a.lineSplit(s,o),g=[],m=new c.default({coordinates:[e.coordinates[0]],spatialReference:r}),v=0;v<p.features.length;v++){var _=new f.default({coordinates:p.features[v].geometry.coordinates,spatialReference:r});x.contains(m,_)&&g.push(p.features[v])}d.features=d.features.concat(g);for(var S=0;S<d.features.length;S++)for(var b=0;b<d.features[S].geometry.coordinates.length;b++)d.features[S].geometry.coordinates[b][0]=d.features[S].geometry.coordinates[b][0].toFixed(7)/1,d.features[S].geometry.coordinates[b][1]=d.features[S].geometry.coordinates[b][1].toFixed(7)/1;for(var w=a.polygonize(d),E=0;E<w.features.length;E++){var T=new c.default({coordinates:w.features[E].geometry.coordinates,spatialReference:r});n.push(T)}if(e.coordinates.length>1)for(var I=0;I<n.length;I++)for(var M=1;M<e.coordinates.length;M++){var k=new c.default({coordinates:[e.coordinates[M]],spatialReference:r}),P=a.polygon(k.coordinates),L=a.polygon(n[I].coordinates);a.booleanDisjoint(P,L)||(n[I]=x.difference(n[I],k))}for(var O=[],C=0;C<n.length;C++)if(n[C].type===y.default.multiPolygon)for(var N=0;N<n[C].coordinates.length;N++)O.push(new c.default({coordinates:n[C].coordinates[N],spatialReference:r}));else O.push(n[C]);return O},x._coordinateToWGS84=function(e){var t=e[0]/20037508.342789244*180,r=e[1]/20037508.342789244*180;return[t.toFixed(7)/1,r.toFixed(7)/1]},x._coordinateToOrigin=function(e){return[20037508.342789244*e[0]/180,20037508.342789244*e[1]/180]},x._geometryToWGS84=function(e){var t=void 0;switch(e.type){case y.default.polygon:t=c.default.fromJSON(e.toJSON());for(var r=0;r<t.coordinates.length;r++)for(var n=0;n<t.coordinates[r].length;n++)t.coordinates[r][n]=x._coordinateToWGS84(t.coordinates[r][n]);break;case y.default.multiPolygon:t=h.default.fromJSON(e.toJSON());for(var i=0;i<t.coordinates.length;i++)for(var o=0;o<t.coordinates[i].length;o++)for(var a=0;a<t.coordinates[i][o].length;a++)t.coordinates[i][o][a]=x._coordinateToWGS84(t.coordinates[i][o][a]);break;case y.default.lineString:t=f.default.fromJSON(e.toJSON());for(var s=0;s<t.coordinates.length;s++)t.coordinates[s]=x._coordinateToWGS84(t.coordinates[s])}return t},x._geometryToOrigin=function(e){var t=void 0;switch(e.type){case y.default.polygon:t=c.default.fromJSON(e.toJSON());for(var r=0;r<t.coordinates.length;r++)for(var n=0;n<t.coordinates[r].length;n++)t.coordinates[r][n]=x._coordinateToOrigin(t.coordinates[r][n]);break;case y.default.lineString:t=f.default.fromJSON(e.toJSON());for(var i=0;i<t.coordinates.length;i++)t.coordinates[i]=x._coordinateToOrigin(t.coordinates[i])}return t},x.isSimple=function(e){(0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),e instanceof f.default||e instanceof S.default||e instanceof c.default||e instanceof h.default||s.Log.error("geometry为不支持的类型!");var t=!0;switch(e.type){case y.default.lineString:t=x._lineIsSimple(e);break;case y.default.multiLineString:t=x._multiLineIsSimple(e);break;case y.default.polygon:t=x._polygonIsSimple(e);break;case y.default.multiPolygon:t=x._multiPolygonIsSimple(e)}return t},x._lineIsSimple=function(e){var t=e.spatialReference,r=!0;if(e.coordinates.length>2){for(var n=[],i=0;i<e.coordinates.length-1;i++)n.push(new f.default({coordinates:[e.coordinates[i],e.coordinates[i+1]],spatialReference:t}));for(var o=0;o<n.length-1;o++)for(var s=o+1;s<n.length;s++)if(x.contains(n[o],n[s])||x.contains(n[s],n[o])){r=!1;break}for(var u=0;u<n.length-2;u++)for(var l=u+2;l<n.length;l++)if(x.intersects(n[u],n[l])){var c=a.multiPoint([n[u].coordinates[0],n[u].coordinates[1],n[l].coordinates[0],n[l].coordinates[1]]);if(3!==(c=a.cleanCoords(c)).geometry.coordinates.length){r=!1;break}r=!0}for(var h=0;h<e.coordinates.length;h++){for(var d=!1,p=h+1;p<e.coordinates.length;p++)if(x._equalPoints(e.coordinates[h],e.coordinates[p])){d=!0;break}if(d){r=!1;break}}return r}return 2===e.coordinates.length?x._equalPoints(e.coordinates[0],e.coordinates[1]):r},x._equalPoints=function(e,t){return 2===e.length&&t.length>=2?e[0]===t[0]&&e[1]===t[1]:3===e.length&&t.length>=3&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},x._getLinesFromPolygon=function(e){for(var t=[],r=0;r<e.coordinates.length;r++)for(var n=0;n<e.coordinates[r].length-1;n++)t.push(new f.default({coordinates:[e.coordinates[r][n],e.coordinates[r][n+1]]}));return t},x._multiLineIsSimple=function(e){var t=e.spatialReference,r=!0;if(1===e.coordinates.length){var n=new f.default({coordinates:e.coordinates[0],spatialReference:t});r=x._lineIsSimple(n)}else{for(var i=0;i<e.coordinates.length;i++){var o=new f.default({coordinates:e.coordinates[i],spatialReference:t});if(x._lineIsSimple(o)){r=!1;break}}if(r)for(var a=0;a<e.coordinates.length-1;a++){var s=new f.default({coordinates:e.coordinates[a],spatialReference:t}),u=new f.default({coordinates:e.coordinates[a+1],spatialReference:t});if(x.intersects(s,u)){r=!1;break}}}return r},x._polygonIsSimple=function(e){var t=e.spatialReference,r=[],n=[];e.coordinates.forEach(function(e){r.push(e.slice(0,e.length-1));for(var t=[],i=1;i<e.length-3;i++)t.push([e[i],e[i+1]]);t.push([e[e.length-2],e[e.length-1]]),n.push(t)});for(var i=new S.default({coordinates:r,spatialReference:t}),o=x._multiLineIsSimple(i),a=!1,s=0;s<n.length;s++){for(var u=new f.default({coordinates:n[s][n[s].length-1],spatialReference:t}),l=0;l<n[s].length-1;l++)if(a=x.intersects(new f.default({coordinates:n[s][l],spatialReference:t}),u)){o=!1;break}if(a)break}return o},x._multiPolygonIsSimple=function(e){var t=e.spatialReference,r=[];e.coordinates.forEach(function(e){e.forEach(function(e){r.push(e.slice(0,e.length-1))})});var n=new S.default({coordinates:r,spatialReference:t});return x._multiLineIsSimple(n)},x.getPositionsFromArc=function(e){var t=[(e=(0,s.defaultValue)(e,{})).point1,e.point2,e.point3],r=x.getCenter(t[0],t[1],t[2]);return x._tranArcToPath({center:r,pointBegan:t[0],pointEnd:t[2],numberOfPoints:e.numberOfPoints})},x._tranArcToPath=function(e){var t=(0,s.defaultValue)(e.center,void 0);t=JSON.parse((0,n.default)(t));var r=(0,s.defaultValue)(e.pointBegan,void 0);r=JSON.parse((0,n.default)(r));var i=(0,s.defaultValue)(e.pointEnd,void 0);i=JSON.parse((0,n.default)(i));var o=(0,s.defaultValue)(e.numberOfPoints,360),a=(0,s.defaultValue)(e.spatialReference,new p.default({wkid:4326}));a=p.default.fromJSON(a);var u=new f.default({coordinates:[t,r]}),l=x.planarLength(u),c=x.getAngleFromPoints(r,t,[t[0]+10,t[1]]),h=x.getAngleFromPoints(i,t,[t[0]+10,t[1]])-c;o*=h/360,o=Math.abs(o);var d=Math.PI*(h/180)/o;c=Math.PI*(c/180);for(var y=[r],g=0;g<o-1;g++){c+=d;var m=[t[0]+l*Math.cos(c),t[1]+l*Math.sin(c)];y.push(m)}return y.push(i),this.hasZ&&y.map(function(e){return[e[0],e[1],t[2]]}),y},x.getCenter=function(e,t,r,n){var i=e[0],o=t[0],a=r[0],s=e[1],u=t[1],l=r[1],c=0*s-0*u-0*s+0*l+0*u-0*l,f=-(0*i-0*o-0*i+0*a+0*o-0*a),h=i*u-o*s-i*l+a*s+o*l-a*u,d=-(i*u*0-i*l*0-o*s*0+o*l*0+a*s*0-a*u*0),p=2*(o-i),y=2*(u-s),g=i*i+s*s+0-o*o-u*u-0,m=2*(a-i),v=2*(l-s),_=i*i+s*s+0-a*a-l*l-0,S=-(0*f*_-0*f*g-y*h*_+0*y*d+v*h*g-0*v*d)/(c*y*0-c*v*0-p*f*0+p*v*h+m*f*0-m*y*h),b=(0*c*_-0*c*g-p*h*_+0*p*d+m*h*g-0*m*d)/(c*y*0-c*v*0-p*f*0+p*v*h+m*f*0-m*y*h);return n?[S,b,e[2]]:[S,b]},x._getArcFromPath=function(e){e=(0,s.defaultValue)(e,{});var t=(0,s.defaultValue)(e.coordinates,[]),r=(0,s.defaultValue)(e.arcInfo,[]),n=(0,s.defaultValue)(e.numberOfPoints,360),i=[],o=t.slice(0,r[0].centerPointIndex-1);i=i.concat(o);var a=Number(r[0].centerPointIndex),u=[t[a-1],t[a],t[a+1]],l=x.getPositionsFromArc({point1:u[0],point2:u[1],point3:u[2],numberOfPoints:n});i=i.concat(l);for(var c=1;c<r.length;c++)if(r[c].hasOwnProperty("centerPointIndex")){var f=t.slice(r[c-1].centerPointIndex+2,r[c].centerPointIndex+1);i=i.concat(f);var h=Number(r[c].centerPointIndex),d=[t[h-1],t[h],t[h+1]],p=x.getPositionsFromArc({point1:d[0],point2:d[1],point3:d[2],numberOfPoints:n});i=i.concat(p)}var y=t.slice(r[r.length-1].centerPointIndex+2,t.length);return i.concat(y)},x._getArcInfos=function(e,t,r){var n={};switch(r){case y.default.multiLineString:case y.default.polygon:for(var i=0;i<t.length;i++){n[i]=[];for(var o=0;o<e.length;o++)(r===y.default.multiLineString?e[o].lineIndex:e[o].ringIndex)===i&&n[i].push(e[o]);n[i].sort(function(e,t){return Number(e.centerPointIndex)-Number(t.centerPointIndex)})}return n;case y.default.multiPolygon:for(var a=0;a<t.length;a++){n[a]=[];for(var s=0;s<e.length;s++)e[s].polygonIndex===a&&n[a].push(e[s]);n[a]=x._getArcInfos(n[a],t[a],y.default.polygon)}return n;default:return n}},x.getAngleFromPoints=function(e,t,r){var n=e[0]-t[0],i=e[1]-t[1],o=r[0]-t[0],a=r[1]-t[1],s=(n*o+i*a)/(Math.sqrt(n*n+i*i)*Math.sqrt(o*o+a*a)),u=180*Math.acos(s)/Math.PI;return 0===Math.abs(u)||180===Math.abs(u)?Math.abs(u):e[1]<r[1]?-1*u:u},x.getArcFromGeometry=function(e){e=(0,s.defaultValue)(e,{});var t=(0,s.defaultValue)(e.geometry,void 0),r=(0,s.defaultValue)(e.numberOfPoints,360),n=(0,s.defaultValue)(e.arcInfo,[]);if(!t)return t;if(!(t instanceof l.default))return s.Log.error("geometry不是基础几何类型!"),t;if(!n)return t;if(!(n instanceof Array))return t;if(n.length<1)return t;var o=t.coordinates,a=t.spatialReference,u=void 0,d=void 0;switch(t.type){case y.default.lineString:return u=x._getArcFromPath({coordinates:o,arcInfo:n,numberOfPoints:r}),new f.default({coordinates:u,spatialReference:p.default.fromJSON(t.spatialReference)});case y.default.multiLineString:return d=x._getArcInfos(n,o,y.default.multiLineString),u=[],(0,i.default)(d).forEach(function(e){u.push(x._getArcFromPath({coordinates:o[e],arcInfo:d[e],numberOfPoints:r}))}),new S.default({coordinates:u,spatialReference:a});case y.default.polygon:return d=x._getArcInfos(n,o,y.default.polygon),u=[],(0,i.default)(d).forEach(function(e){var t=o[e].slice(0,o[e].length),n=x._getArcFromPath({coordinates:t,arcInfo:d[e],numberOfPoints:r});n.push(n[0]),u.push(n)}),new c.default({coordinates:u,spatialReference:a});case y.default.multiPolygon:d=x._getArcInfos(n,o,y.default.multiPolygon),u=[];for(var g=function(e){var t=[];(0,i.default)(d[e]).forEach(function(n){var i=o[e][n].slice(0,o[e][n].length),a=x._getArcFromPath({coordinates:i,arcInfo:d[e][n],numberOfPoints:r});a.push(a[0]),t.push(a)}),u.push(t)},m=0;m<o.length;m++)g(m);return new h.default({coordinates:u,spatialReference:a});default:return t}},x._getTurfMultiLineStringFromLines=function(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].coordinates);return a.multiLineString(t)},x._initIntersects=function(e){for(var t={},r=0;r<e.length;r++)e[r].id=r,t[r]={intersectPoints:[],intersectLines:[]};return t},x._pointOnLineEndPoint=function(e,t){return e.coordinates[0]===t.coordinates[0][0]&&e.coordinates[1]===t.coordinates[0][1]||e.coordinates[0]===t.coordinates[1][0]&&e.coordinates[1]===t.coordinates[1][1]},x._lineEqualLine=function(e,t){return e.coordinates[0][0]===t.coordinates[0][0]&&e.coordinates[0][1]===t.coordinates[0][1]&&e.coordinates[1][0]===t.coordinates[1][0]&&e.coordinates[1][1]===t.coordinates[1][1]||e.coordinates[0][0]===t.coordinates[1][0]&&e.coordinates[0][1]===t.coordinates[1][1]&&e.coordinates[1][0]===t.coordinates[0][0]&&e.coordinates[1][1]===t.coordinates[0][1]},x._lineEqualLineTurf=function(e,t){return e.geometry.coordinates[0][0]===t.geometry.coordinates[0][0]&&e.geometry.coordinates[0][1]===t.geometry.coordinates[0][1]&&e.geometry.coordinates[1][0]===t.geometry.coordinates[1][0]&&e.geometry.coordinates[1][1]===t.geometry.coordinates[1][1]},x._singRingSimplify=function(e){for(var t=x._getLinesFromPolygon(e),r=x._initIntersects(t),n=0;n<t.length-1;n++)for(var i=n+1;i<t.length;i++){var o=x.intersect(t[n],t[i]);o.point&&(x._pointOnLineEndPoint(o.point,t[n])||x._pointOnLineEndPoint(o.point,t[i])||(r[n].intersectPoints.push(o.point),r[i].intersectPoints.push(o.point))),o.lineString&&(r[n].intersectLines.push(o.lineString),r[i].intersectLines.push(o.lineString))}for(var s=[],u=0;u<t.length;u++){for(var l=!1,c=0;c<r[u].intersectLines.length;c++){if(x._lineEqualLine(t[u],r[u].intersectLines[c])){l=!0;break}t[u].coordinates[0][0]===r[u].intersectLines[c].coordinates[0][0]&&t[u].coordinates[0][1]===r[u].intersectLines[c].coordinates[0][1]||r[u].intersectPoints.push(new m.default({coordinates:r[u].intersectLines[c].coordinates[0]}),new m.default({coordinates:r[u].intersectLines[c].coordinates[0]})),t[u].coordinates[1][0]===r[u].intersectLines[c].coordinates[1][0]&&t[u].coordinates[1][1]===r[u].intersectLines[c].coordinates[1][1]||r[u].intersectPoints.push(new m.default({coordinates:r[u].intersectLines[c].coordinates[1]}),new m.default({coordinates:r[u].intersectLines[c].coordinates[1]}))}if(!l){r[u].intersectPoints.sort(function(e,t){return e.coordinates[0]-t.coordinates[0]}),r[u].intersectPoints.sort(function(e,t){return t.coordinates[1]-e.coordinates[1]}),r[u].intersectPoints.splice(0,0,new m.default({coordinates:t[u].coordinates[0]})),r[u].intersectPoints.push(new m.default({coordinates:t[u].coordinates[1]}));for(var f=x.union(r[u].intersectPoints),h=0;h<f.coordinates.length-1;h++)s.push(a.lineString([f.coordinates[h],f.coordinates[h+1]]))}}for(var d=0;d<s.length;d++)for(var p=d+1;p<s.length;p++)x._lineEqualLineTurf(s[d],s[p])&&(s.splice(p,1),p--);var y=a.featureCollection(s);return a.polygonize(y)},x._getPolygonsFromRings=function(e,t){for(var r=0;r<e.length;r++)e[r].isOuter=!0,e[r].innerPolygons=[];1===e.length&&t.push(e[0]);for(var n=0;n<e.length-1;n++)if(e[n].isOuter){t.push(e[n]);for(var i=n+1;i<e.length;i++)x.contains(e[n],e[i])&&(e[i].isOuter=!1,e[n].innerPolygons.push(e[i]))}e.length>1&&e[e.length-1].isOuter&&t.push(e[e.length-1]);for(var o=[],a=0;a<t.length;a++){for(var s=[],u=0;u<t[a].innerPolygons.length-1;u++)for(var l=u+1;l<t[a].innerPolygons.length;l++)x.contains(t[a].innerPolygons[u],t[a].innerPolygons[l])&&!t[a].innerPolygons[l].isOuter&&(t[a].innerPolygons[l].isOuter=!0,t[a].innerPolygons[l].innerPolygons=[],s.push(t[a].innerPolygons[l]));for(var c=0;c<t[a].innerPolygons.length;c++)t[a].innerPolygons[c].isOuter&&(t[a].innerPolygons.splice(c,1),c--);if(s.length>0){var f=x._getPolygonsFromRings(s,[]);o=o.concat(f)}}return t.concat(o)},x._singlePolygonSimplify=function(e){for(var t={largerInnerPolygon:[],intersectInnerPolygon:[],smallInnerPolygon:[]},r=new c.default({coordinates:[e.coordinates[0]],spatialReference:p.default.fromJSON(e.spatialReference)}),i=[],o=1;o<e.coordinates.length;o++){var a=new c.default({coordinates:[e.coordinates[o]],spatialReference:p.default.fromJSON(e.spatialReference)});i.push(a)}for(var s=0;s<i.length-1;s++)for(var u=s+1;u<i.length;u++){var f=x.intersect(i[s],i[u]);(f instanceof c.default||f instanceof h.default)&&(i[s]=x.difference(i[s],f),i[u]=x.difference(i[u],f))}for(var d=0;d<i.length;d++){var y=i[d];if(x.contains(r,y)){var g=x.difference(r,y),m=JSON.parse((0,n.default)(r.coordinates[0])),v=JSON.parse((0,n.default)(g.coordinates[0]));m.sort(function(e,t){return e[0]-t[0]}),m.sort(function(e,t){return e[1]-t[1]}),v.sort(function(e,t){return e[0]-t[0]}),v.sort(function(e,t){return e[1]-t[1]}),(0,n.default)(m)===(0,n.default)(v)?t.smallInnerPolygon.push(y):t.intersectInnerPolygon.push(y)}else if(x.contains(y,r)){var _=r.toJSON(),S=y.toJSON();r=l.default.fromJSON(S),y=l.default.fromJSON(_),t.smallInnerPolygon.push(y)}else x.intersects(r,y)?t.intersectInnerPolygon.push(y):x.disjoint(r,y)&&t.largerInnerPolygon.push(y)}for(var b=[],w=0;w<t.intersectInnerPolygon.length;w++){var E=x.intersect(r,t.intersectInnerPolygon[w]);if(E instanceof c.default||E instanceof h.default){r=x.difference(r,E);var T=x.difference(t.intersectInnerPolygon[w],E);b.push(T)}}for(var I=x._singRingSimplify(r),M=0;M<I.features.length;M++)b.push(new c.default({coordinates:I.features[M].geometry.coordinates}));if(t.largerInnerPolygon.length>0)for(var k=0;k<t.largerInnerPolygon.length;k++)b.push(t.largerInnerPolygon[k]);for(var P=[],L=0;L<t.smallInnerPolygon.length;L++)for(var O=x._singRingSimplify(t.smallInnerPolygon[L]),C=0;C<O.features.length;C++){var N=new c.default({coordinates:O.features[C].geometry.coordinates});N.isPicked=!1,P.push(N)}!(P=x.union(P))||P instanceof Array||(P=[P]);for(var R=0;R<b.length;R++)for(var G=0;G<P.length;G++)!P[G].isPicked&&b[R]&&P[G]&&x.contains(b[R],P[G])&&(b[R].coordinates.push(P[G].coordinates[0]),P[G].isPicked=!0);return b},x.simplify=function(e){if((0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),e.type===y.default.point||e.type===y.default.multiPoint||e.type===y.default.extent||e.type===y.default.circle)return e;switch(e.type){case y.default.polygon:case y.default.multiPolygon:var t=[],r=void 0;if(e.type===y.default.polygon){r=JSON.parse((0,n.default)(e.coordinates));for(var i=0;i<r.length;i++)t.push(new c.default({coordinates:[r[i]],spatialReference:p.default.fromJSON(e.spatialReference)}))}else for(var o=JSON.parse((0,n.default)(e.coordinates)),a=0;a<o.length;a++)for(var u=0;u<o[a].length;u++)t.push(new c.default({coordinates:[o[a][u]],spatialReference:p.default.fromJSON(e.spatialReference)}));for(var l=0;l<t.length;l++)t[l].area=x.planarArea(t[l]);t.sort(function(e,t){return t.area-e.area});for(var f=x._getPolygonsFromRings(t,[]),d=0;d<f.length-1;d++)for(var g=d+1;g<f.length;g++)if(!x.contains(f[d],f[g])){var m=x.intersect(f[d],f[g]);m&&(f[d].coordinates=x.difference(f[d],m).coordinates,f[g].coordinates=x.difference(f[g],m).coordinates)}for(var v=[],_=0;_<f.length;_++){for(var S=0;S<f[_].innerPolygons.length;S++)f[_].coordinates.push(f[_].innerPolygons[S].coordinates[0]);var b=x._singlePolygonSimplify(f[_]);v=v.concat(b)}if(1===v.length)return v[0];if(v.length>1){for(var w=[],E=0;E<v.length;E++)v[E]&&w.push(v[E].coordinates);return new h.default({coordinates:w,spatialReference:p.default.fromJSON(e.spatialReference)})}break;case y.default.lineString:}},x.getEllipseCoordinates=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:50;if(!e||!e.coordinates||void 0===t||void 0===r)return[];for(var i=[],o=e.coordinates,a=0;a<=n;a++){var s=a/n*2*Math.PI,u=o[0]+t*Math.cos(s),l=o[1]+r*Math.sin(s);i.push([u,l])}return i.push(i[0]),i},x.getCenterPoint=function(e){return x._getCenterOrCentroid(e,"center")},x.getCentroid=function(e){return x._getCenterOrCentroid(e,"centroid")},x._getCenterOrCentroid=function(e,t){var r=e.type,n=e.spatialReference;if(r===y.default.circle)return new m.default({coordinates:[e.center[0],e.center[1],0],spatialReference:n});if(r===y.default.extent)return new m.default({coordinates:[(e.xmin+e.xmax)/2,(e.ymin+e.ymax)/2,0],spatialReference:n});var i=void 0,o=void 0;switch(r){case y.default.point:return m.default.fromJSON(e.toJSON());case y.default.multiPoint:i=e.coordinates,o=a.points(e.coordinates);case y.default.lineString:i=e.coordinates,o=a.lineString(e.coordinates);break;case y.default.polygon:i=e.coordinates[0],o=a.polygon(e.coordinates);break;default:return null}var s;if(s="centroid"===t?a.centroid(o):a.center(o),this.hasZ){for(var u=0,l=0,c=0;c<i.length;c++){u+=i[c].length;for(var f=0;f<i[c].length;f++)l+=i[c][f][2]}return l/=u,new m.default({coordinates:[s.geometry.coordinates[0],s.geometry.coordinates[1],l],spatialReference:n})}return new m.default({coordinates:[s.geometry.coordinates[0],s.geometry.coordinates[1]],spatialReference:n})},x.getLabelPoint=function(e){if(!(e instanceof l.default))return null;var t=e.clone(),r=t.type,n=t.spatialReference;switch(r){case y.default.circle:return[new m.default({coordinates:[t.center[0],t.center[1],0],spatialReference:n})];case y.default.extent:return[new m.default({coordinates:[(t.xmin+t.xmax)/2,(t.ymin+t.ymax)/2,0],spatialReference:n})];case y.default.polygon:return x._getPolygonLabel(t);default:return null}},x._getPolygonLabel=function(e){var t=e.coordinates,r=e.extent,n=(r.ymin+r.ymax)/2,i=[],o={x:void 0,x2:void 0,hasTwoXCoordinate:!1},a=!1,s=void 0;do{s=[];for(var u=0;u<t.length;u++)for(var l=t[u],c=1;c<l.length;c++)Math.min(l[c-1][1],l[c][1])<=n&&Math.max(l[c-1][1],l[c][1])>n&&(l[c][1]===n?((o={x:void 0,x2:void 0,hasTwoXCoordinate:!1}).x=l[c][0],o.hasTwoXCoordinate=!1,c<l.length-1&&l[c+1][1]===n&&(o.hasTwoXCoordinate=!0,o.x2=l[c+1][0]),i.push(o)):l[c-1][1]===n?((o={x:void 0,x2:void 0,hasTwoXCoordinate:!1}).x=l[c-1][0],o.hasTwoXCoordinate=!1,c>1&&l[c-2]===n&&(o.hasTwoXCoordinate=!0,o.x2=l[c-2][0]),i.push(o)):((o={x:void 0,x2:void 0,hasTwoXCoordinate:!1}).x=l[c][0]-(l[c][0]-l[c-1][0])/(l[c][1]-l[c-1][1])*(l[c][1]-n),o.hasTwoXCoordinate=!1,i.push(o)));if(i.length>=2){i.sort(function(e,t){return e.x>t.x});for(var f=0,h=0;h<i.length-1;h+=2){var d=i[h].x,y=i[h+1].x;d!==y&&Math.abs(d-y)>f&&(f=Math.abs(d-y),i[h].hasTwoXCoordinate&&(d=Math.max(d,i[h].x2)),i[h+1].hasTwoXCoordinate&&(y=Math.min(y,i[h+1].x2)),s[0]=(d+y)/2,s[1]=n,a=!0)}a&&(x.contains(e,new m.default({coordinates:[s[0],s[1]],spatialReference:p.default.fromJSON(e.spatialReference)}))||(a=!1,s=[]))}else a=!0;a||(n+=(r.ymax-r.ymin)/101)}while(!a);return 0===s.length?null:new m.default({coordinates:[s[0],s[1],0],spatialReference:p.default.fromJSON(e.spatialReference)})},t.default=x},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(0)),i=u(r(2)),o=r(1),a=u(r(115)),s=r(9);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){(0,n.default)(this,e),t=t||{},this.dpi=(0,o.defaultValue)(t.dpi,-1),this.format=(0,o.defaultValue)(t.format,"png"),this.origin=t.origin?s.Point.fromJSON(t.origin):void 0;for(var r=[],i=(0,o.defaultValue)(t.lods,[]),u=0;u<i.length;u++){var l=a.default.fromJSON(i[u]);(0,o.defined)(l.levelValue)||(l.levelValue=String(l.level)),r.push(l)}this.lods=r,this.size=Array.isArray(t.size)?[t.size[0],t.size[1]]:null,this.spatialReference=t.spatialReference?s.SpatialReference.fromJSON(t.spatialReference):null}return(0,i.default)(e,[{key:"toJSON",value:function(){return{dpi:this.dpi,format:this.format,origin:this.origin?this.origin.toJSON():void 0,lods:this.lods.map(function(e){return e.toJSON()}),size:this.size?[this.size[0],this.size[1]]:void 0,spatialReference:this.spatialReference&&this.spatialReference.toJSON()}}},{key:"scaleToZoom",value:function(e){return 0}},{key:"zoomToScale",value:function(e){return 0}},{key:"getTileSize",value:function(){return Array.isArray(this.size)&&this.size.length>=2?Math.max(this.size[0],this.size[1]):256}},{key:"clone",value:function(){return e.fromJSON(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=m(r(10)),i=m(r(3)),o=m(r(0)),a=m(r(2)),s=m(r(4)),u=m(r(7)),l=m(r(5)),c=r(8),f=r(9),h=m(r(52)),d=m(r(51)),p=m(r(45)),y=r(1),g=r(85);function m(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r._initEvent(),r.type="sketchPolygonDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r.vertexNum=0,r._tipText=r._getTipTextObject(),r._editOption=r._getEditOption(),r}return(0,l.default)(t,e),(0,a.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("vertexScale",this._processEvent),this.on("midVertexScale",this._processEvent),this.on("vertexMove",this._processEvent),this.on("midVertexAdd",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=c.SketchEditMode.drawing,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,i=null,o=[],a=[];this.vertexNum=0;var s=null;this.cursorStyle=this.view.cursor,(0,y.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var u=this._getInteractiveDom(),l=this.extensionOptions&&this.extensionOptions.vertexNumber?this.extensionOptions.vertexNumber:null;this._setInitSnap(),this._fireStartDrawEvent();var h=function r(n){if(n&&n.x&&n.y){e._stopInitSnap(),clearTimeout(null);var o={x:n.x,y:n.y};e._editMode=c.SketchEditMode.drawing;var u;u=e._snapPoint?e._snapPoint:e.view.toMap({x:o.x,y:o.y});var h=e.vertexNum+1;if(1===h)a=[u.coordinates],(i=e._getFeature()).geometry.coordinates=[[a[0],a[0],a[0],a[0]]];else if(2===h){var p=i.geometry.coordinates[0][0];if(p&&p[0]===u.coordinates[0]&&p[1]===u.coordinates[1])return y.Log.info("相邻两顶点重复!");a=[i.geometry.coordinates[0][0],i.geometry.coordinates[0][1]]}else{var g=(a=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2))[a.length-1];if(g&&g[0]===u.coordinates[0]&&g[1]===u.coordinates[1])return y.Log.info("相邻两顶点重复!");if(a.push(u.coordinates),e._sketchEditor.isSimple){var m=new f.Polygon({coordinates:[a.concat([a[0]])],spatialReference:e._spatialReference,extensionOptions:{arcType:e.arcType}});if(!f.GeometryEngine.isSimple(m))return e._fireUnsimpleDraw(),y.Log.info("该坐标构成的几何不符合拓扑规范!")}}if(e.vertexNum=h,l&&h>=l)e.view.off(c.ViewEventType.immediateClick,r);else{e.sketchStage.entityGraphic=i;var v=new d.default({view:e.view,layer:e._sketchInnerLayer,sketchInnerLayer:e._sketchInnerLayer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});v.addFeature(u,void 0,void 0,e._sketchInnerLayer),e._drawTools.push(v);var _=v.sketchStage.entityGraphic;e.sketchStage.vertexGraphics.push(_),i&&(t=!0),s="click",e.fire("drawn-vertex",{geometry:v.sketchStage.entityGraphic.geometry,feature:v.sketchStage.entityGraphic},self),e._fireDrawVertexEvent(i),e.undoRedoManager&&e.undoRedoManager.addProcess("add-vertex",e.sketchStage,e._editMode)}}},p=!0,g=function(c){if(c&&c.x&&c.y&&t&&!r){clearTimeout(null),r=!0,i=e.sketchStage.entityGraphic,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var f={x:c.x,y:c.y};o[o.length-1]=f;var h=e.view.toMap({x:f.x,y:f.y}),d=l&&e.vertexNum===l?e.vertexNum-1:e.vertexNum;1===d?a=[i.geometry.coordinates[0][0]]:2===d?(i.geometry.coordinates[0][2]=h.coordinates,a=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2)):a=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2),1===e.vertexNum?e._snapPoint=e.getSnapGraphics(h,a):e.vertexNum>1&&(e._snapPoint=e.getSnapGraphics(h,a)),e._snapPoint&&(h=e._snapPoint),e._currentMovePoint=h,1===d?(i.geometry.coordinates[0][1]=h.coordinates,i.geometry.coordinates[0][2]=h.coordinates):2===d?i.geometry.coordinates[0][2]=h.coordinates:"click"===s?i.geometry.coordinates[0].splice(i.geometry.coordinates[0].length-1,0,h.coordinates):"move"===s&&i.geometry.coordinates[0].splice(i.geometry.coordinates[0].length-2,1,h.coordinates),e.sketchStage.entityGraphic=i,i.geometry.coordinates=[JSON.parse((0,n.default)(i.geometry.coordinates[0]))],p&&(e._addFeatureToLayer(i,e.layer),p=!1),r=!1,s="move";var y=e._getInteractiveDom();u=u.concat(y),e._removeInteractiveStyle(y),e._fireChangeCursorEvent(i)}},m=function(r){return clearTimeout(null),clearTimeout(null),t?(i=e.sketchStage.entityGraphic)&&e._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(i.geometry)?(e._fireUnsimpleDraw(),y.Log.info("该坐标构成的几何不符合拓扑规范!")):e.vertexNum<3&&e.sketchStage.entityGraphic?y.Log.info("区几何顶点少于三个,不符合规范!"):(a=[],o=[],t=!1,e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=c.SketchEditMode.none,s="doubleClick",e.view.cursor=e.cursorStyle,e._addInteractiveStyle(u),e.fire("drawn",{geometry:i.geometry,feature:i},self),e._fireStopDrawEvent(i),e.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.vertexNum=0,e.sketchStage.vertexGraphics=[],e._currentMovePoint=void 0,e.undoRedoManager._initDrawProcess(),r.native&&r.native.preventDefault&&r.native.preventDefault(),r.innerViewerEvent&&r.innerViewerEvent.preventDefault&&r.innerViewerEvent.preventDefault(),e.view._mapActionControl("double-click-zoom",!0),void e.view._mapActionControl("video-map-active",!1)):(i=null,a=[],void(o=[]))};this._drawEventHandlers.push(h,g,m),this.view.on(c.ViewEventType.immediateClick,h),this.view.on(c.ViewEventType.pointerMove,g),this.view.on(c.ViewEventType.doubleClick,m)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.fillStyle?t.fillStyle:this.sketchStyle._fillStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.fillStyle?t.fillStyle:this.sketchStyle._fillStyle;var o=new c.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[0,0],[0,0],[0,0]]);var t=new f.Polygon({coordinates:[e],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),r=this.sketchStyle.fillStyle.clone();r.id=(0,y.getGUID)();var n=new c.Feature({geometry:t,symbol:r,elevationInfo:this.elevationInfo});return n.isShowArea=this.sketchStyle.isShowArea,n.isShowArea&&(n._textStyle=this.sketchStyle.textStyle),n}},{key:"selectFeature",value:function(e){(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"selectFeature",this).call(this,e)}},{key:"selectFeatureVertex",value:function(e){var t=this;!this._parent&&this._isAddTip&&this._updateTipText((0,g.getTipTextByEditOption)("edit-vertex",this._tipText,this._editOption),this._sketchInnerLayer),this._clearEditGraphics(1);var r=[],n=[];e.geometry.coordinates[0].forEach(function(i,o){if(o<e.geometry.coordinates[0].length-1){var a=new d.default({view:t.view,layer:t._sketchInnerLayer,sketchInnerLayer:t._sketchInnerLayer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t}),s=new f.Point({coordinates:i,spatialReference:t._spatialReference});t._drawTools.push(a),a.addFeature(s,void 0,{vertexIndex:o},t._sketchInnerLayer),r.push(a),t.sketchStage.vertexGraphics.push(a.sketchStage.entityGraphic)}if(o>0){var u=new d.default({view:t.view,layer:t._sketchInnerLayer,sketchInnerLayer:t._sketchInnerLayer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});n.push(u);var l,c=e.geometry.coordinates[0][o-1],h=t._getCenterCoordinate(i,c);l=new f.Point({coordinates:h,spatialReference:t._spatialReference}),t._drawTools.push(u),u.addFeature(l,void 0,{vertexIndex:o-1,type:"midVertex"},t._sketchInnerLayer),t.sketchStage.midVertexGraphics.push(u.sketchStage.entityGraphic)}});var i=r.concat(n);this._otherDrawTools=this._otherDrawTools?this._otherDrawTools.concat(i):i,this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage,this._editMode)}},{key:"startPanGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var i=null;i=t.mapPoint;var o=!0,a=setTimeout(function(){o=!1,r._parent&&r._fireStartPanEvent(r._parent.sketchStage.entityGraphic,r._parent)},200),s=this._getEditOptionMode(this._editOption);this._parent&&this._parent._mapClickEvent&&s.editVertex&&this.view.off(c.ViewEventType.immediateClick,this._parent._mapClickEvent);var u=function(t){if(r._editOption.graphic.move&&t&&t.x&&t.y&&!n&&r._startPan&&!r._editMode!==c.SketchEditMode.editGraphic&&!o){clearTimeout(null),n=!0;var a={x:t.x,y:t.y},s=r.view.toMap({x:a.x,y:a.y}),u=s.coordinates[0]-i.coordinates[0],l=s.coordinates[1]-i.coordinates[1];if(0!==u||0!==l){var h=[];e.geometry.coordinates[0].forEach(function(e){h.push(r.getPanCoordinates(e,u,l))});var d=new f.Polygon({coordinates:[h],spatialReference:r._spatialReference,extensionOptions:{arcType:r.arcType}});i=s,r._dispatchEvent("pan",{deltaPosition:{x:u,y:l},extent:d.extent},r),r.updateFeature(d,e),n=!1,r._parent&&r._firePanningEvent(r._parent.sketchStage.entityGraphic,r._parent)}else n=!1}},l=function e(){if(!r._editMode!==c.SketchEditMode.editGraphic&&r._startPan){if(o&&r._parent&&r._parent._editMode===c.SketchEditMode.editGraphic&&"sketchPointDrawTool"!==r._parent.type&&r._parent.selectFeatureVertex)return r._parent._editMode=c.SketchEditMode.editVertex,clearTimeout(a),s.editVertex&&(r._parent.selectFeatureVertex(r._parent.sketchStage.entityGraphic),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(c.ViewEventType.immediateClick,r._parent._mapClickEvent)},0)),r._startPan=!1,r.view.off(c.ViewEventType.pointerMove,u),void r.view.off(c.ViewEventType.pointerUp,e);r._editMode=c.SketchEditMode.none,r._startPan=!1,r.view.off(c.ViewEventType.pointerMove,u),r.view.off(c.ViewEventType.pointerUp,e),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage,r._editMode),r._parent&&r._parent._mapClickEvent&&r.view.on(c.ViewEventType.immediateClick,r._parent._mapClickEvent),r._parent&&r._fireStopPanEvent(r._parent.sketchStage.entityGraphic,r._parent),setTimeout(function(){r.view._mapActionControl("drag-pan",!0)},0)}};this._hitTestEventHandlers.push(l),this.view.on(c.ViewEventType.pointerUp,l),this._hitTestEventHandlers.push(u),this.view.on(c.ViewEventType.pointerMove,u)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type?this._handlerMidVertexScaleEvent(e):"circleVertexScale"===e.type?this._handlerCircleVertexScaleEvent(e):"vertexMove"===e.type?this._handlerVertexMoveEvent(e):"midVertexAdd"===e.type&&this._handlerMidVertexAddEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this,r=[];this.sketchStage.entityGraphic.geometry.coordinates[0].forEach(function(n){r.push(t.getPanCoordinates(n,e.deltaPosition.x,e.deltaPosition.y))});var n=new f.Polygon({coordinates:[r],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});this.sketchStage.entityGraphic.geometry=n,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new f.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_handlerMidVertexScaleEvent",value:function(e){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new f.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_resetSelectBoxDirection",value:function(){var e=this,t=this.sketchStage.entityGraphic.geometry.extent;this.sketchStage.selectBoxVertexGraphics.forEach(function(r){r.attributes&&("ne"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymax]:"se"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymin]:"sw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymin]:"nw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymax]:"e"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]):"s"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymin],[t.xmin,t.ymin]):"w"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]):"n"===r.attributes.direction&&(r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymax],[t.xmax,t.ymax])))})}},{key:"_handlerCircleVertexScaleEvent",value:function(e){if(this._parent&&this._parent.sketchStage.entityGraphic){var t,r=this._parent.sketchStage.entityGraphic.geometry.extent,n=[[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax]];(t=new f.Polygon({coordinates:[[[0,0],[0,0],[0,0],[0,0]]],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}})).coordinates=[n],this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}))}}},{key:"_handlerVertexMoveEvent",value:function(e){this.sketchStage.currentVertexIndex=e.vertexIndex;var t=this.sketchStage.entityGraphic,r=t.geometry.coordinates[0],i=JSON.parse((0,n.default)(r));i[e.vertexIndex]=e.movePoint.coordinates,i.length-1===e.vertexIndex?i[0]=e.movePoint.coordinates:0===e.vertexIndex&&(i[t.geometry.coordinates[0].length-1]=e.movePoint.coordinates);var o=new f.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(o))return this._fireUnsimpleUpdate(),y.Log.info("该坐标构成的几何不符合拓扑规范!");if(t.geometry=o,this._otherDrawTools){var a=e.vertexIndex,s=0===a?a-1+this.sketchStage.midVertexGraphics.length:a-1,u=a===this.sketchStage.midVertexGraphics.length-1?0:a+1,l=this.sketchStage.midVertexGraphics[a],c=this.sketchStage.midVertexGraphics[s],h=this.sketchStage.vertexGraphics[a],d=i[s],p=i[a],g=i[u];l.geometry.coordinates=this._getCenterCoordinate(p,g),c.geometry.coordinates=this._getCenterCoordinate(p,d),h.geometry.coordinates=p}}},{key:"_handlerMidVertexAddEvent",value:function(e){var t=this;if("changeFeature"===e.action&&(this.sketchStage.entityGraphic.geometry.coordinates[0].splice(e.vertexIndex+1,0,e.point.coordinates),this.sketchStage.entityGraphic.geometry=new f.Polygon({coordinates:[this.sketchStage.entityGraphic.geometry.coordinates[0]],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}})),"moveMidVertex"===e.action){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));r[e.vertexIndex+1]=e.movePoint.coordinates;var i=new f.Polygon({coordinates:[r],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(i))return this._fireUnsimpleUpdate(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.currentVertexIndex=e.vertexIndex,this.sketchStage.entityGraphic.geometry=i,this.sketchStage.midVertexGraphics[e.vertexIndex].geometry.coordinates=e.movePoint.coordinates}if("addVertex"===e.action){var o=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),a=new d.default({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(a),a.addFeature(e.point,void 0,void 0,this._sketchInnerLayer),this.sketchStage.vertexGraphics.splice(e.vertexIndex+1,0,a.sketchStage.entityGraphic);var s,u=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex];this._getHight;var l=this._getCenterCoordinate(u,e.point.coordinates);s=new f.Point({coordinates:l,spatialReference:this._spatialReference});var c=new d.default({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(c),c.addFeature(s,void 0,{type:"midVertex"},this._sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,c.sketchStage.entityGraphic);var h,g=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex+2];this._getHight;var m=this._getCenterCoordinate(g,e.point.coordinates);h=new f.Point({coordinates:m,spatialReference:this._spatialReference});var v=new d.default({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(v),v.addFeature(h,void 0,{type:"midVertex"},this._sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e.vertexIndex+1,0,v.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools.forEach(function(e){e.sketchStage.entityGraphic.id===o&&t._removeFeatureFromLayer(e.sketchStage.entityGraphic,t._sketchInnerLayer)}),this._otherDrawTools.push(a),this._otherDrawTools.push(c),this._otherDrawTools.push(v)}}},{key:"addMidVertex",value:function(e,t){var r=new d.default;r.addPoint(t),this.sketchStage.midVertexGraphics=r}},{key:"addVertex",value:function(e,t){var r=null;if(--t>-1){var i=[];if(t<this.sketchStage.entityGraphic.geometry.coordinates[0].length-1){if((i=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]))).splice(t,0,e.coordinates),0===t?i[i.length-1]=e.coordinates:t===i.length-1&&i.splice(0,0,e.coordinates),r=new f.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=r;var o=void 0,a=void 0,s=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],[s.xmax,s.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var u=[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],this._getCenterCoordinate([s.xmax,s.ymax],[s.xmin,s.ymax]),this._getCenterCoordinate([s.xmax,s.ymin],[s.xmin,s.ymin]),this._getCenterCoordinate([s.xmax,s.ymax],[s.xmax,s.ymin]),this._getCenterCoordinate([s.xmin,s.ymax],[s.xmin,s.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=u[t]})}if(this.sketchStage.vertexGraphics.length>0&&(o=new d.default({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(o),o.addFeatureByGeometry(e,void 0,void 0,this._sketchInnerLayer),this.sketchStage.vertexGraphics.splice(t,0,o.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})),this.sketchStage.midVertexGraphics.length>0){var l=-1,c=-1,h=null,g=null;0===t?(c=0,l=this.sketchStage.midVertexGraphics.length-1,h=this.sketchStage.entityGraphic.geometry.coordinates[0][this.sketchStage.entityGraphic.geometry.coordinates[0].length-2],g=this.sketchStage.entityGraphic.geometry.coordinates[0][1]):(l=t-1,c=t+1,h=this.sketchStage.entityGraphic.geometry.coordinates[0][l],g=this.sketchStage.entityGraphic.geometry.coordinates[0][c]);var m=new f.Point({coordinates:this._getCenterCoordinate(h,e.coordinates),spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[l].geometry.coordinates=m.coordinates;var v=new f.Point({coordinates:this._getCenterCoordinate(g,e.coordinates),spatialReference:this._spatialReference});a=new d.default({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(a),a.addFeatureByGeometry(v,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(t,0,a.sketchStage.entityGraphic),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})}o&&this._otherDrawTools.push(o),a&&this._otherDrawTools.push(a),this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireAddVertexEventByFun(o.sketchStage.entityGraphic,this._parent)}return r}}},{key:"updateVertex",value:function(e,t){var r=null;if(--t>-1){if(t<this.sketchStage.entityGraphic.geometry.coordinates[0].length-1){var i=this.sketchStage.entityGraphic,o=JSON.parse((0,n.default)(i.geometry.coordinates[0]));if(this.currentVertexIndex=t,o[t]=e.coordinates,o.length-1===t?o[0]=e.coordinates:0===t&&(o[o.length-1]=e.coordinates),r=new f.Polygon({coordinates:[o],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),y.Log.info("该坐标构成的几何不符合拓扑规范!");i.geometry.coordinates=[o];var a=i.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],[a.xmax,a.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var s=[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],this._getCenterCoordinate([a.xmax,a.ymax],[a.xmin,a.ymax]),this._getCenterCoordinate([a.xmax,a.ymin],[a.xmin,a.ymin]),this._getCenterCoordinate([a.xmax,a.ymax],[a.xmax,a.ymin]),this._getCenterCoordinate([a.xmin,a.ymax],[a.xmin,a.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=s[t]})}if(this.sketchStage.vertexGraphics.length>0&&(this.sketchStage.vertexGraphics[t].geometry.coordinates=e.coordinates),this.sketchStage.midVertexGraphics.length>0){var u=t,l=0===u?u-1+this.sketchStage.midVertexGraphics.length:u-1,c=u===this.sketchStage.midVertexGraphics.length-1?0:u+1,h=this.sketchStage.midVertexGraphics[u],d=this.sketchStage.midVertexGraphics[l],p=o[l],g=o[u],m=o[c];h.geometry.coordinates=this._getCenterCoordinate(m,g),h.geometry=new f.Point({coordinates:h.geometry.coordinates,spatialReference:this._spatialReference}),d.geometry.coordinates=this._getCenterCoordinate(p,g),d.geometry=new f.Point({coordinates:d.geometry.coordinates,spatialReference:this._spatialReference})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireUpdateVertexByFun(this.sketchStage.entityGraphic,this._parent)}return r}},{key:"removeVertex",value:function(e){var t=null;if(--e>-1){var r=this.sketchStage.entityGraphic.geometry.coordinates[0].length-1;if(r>3&&e<r){var i=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));if(i.splice(e,1),0===e&&i.splice(i.length-1,1,i[0]),t=new f.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(t))return this._fireUnsimpleUpdateByFun(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=t;var o=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[o.xmax,o.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var a=[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],this._getCenterCoordinate([o.xmax,o.ymax],[o.xmin,o.ymax]),this._getCenterCoordinate([o.xmax,o.ymin],[o.xmin,o.ymin]),this._getCenterCoordinate([o.xmax,o.ymax],[o.xmax,o.ymin]),this._getCenterCoordinate([o.xmin,o.ymax],[o.xmin,o.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=a[t]})}if(this.sketchStage.vertexGraphics.length>0){var s=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromLayer(this.sketchStage.vertexGraphics[e],this._sketchInnerLayer),this.sketchStage.vertexGraphics.splice(e,1),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==s)return e})}if(this.sketchStage.midVertexGraphics.length>0){var u=[],l=-1;0===e?(u=[(t.coordinates[0][t.coordinates[0].length-2][0]+t.coordinates[0][e][0])/2,(t.coordinates[0][t.coordinates[0].length-2][1]+t.coordinates[0][e][1])/2],l=this.sketchStage.midVertexGraphics.length-1):(u=[(t.coordinates[0][e-1][0]+t.coordinates[0][e][0])/2,(t.coordinates[0][e-1][1]+t.coordinates[0][e][1])/2],l=e-1),this.sketchStage.midVertexGraphics[l].geometry=new f.Point({coordinates:u,spatialReference:this._spatialReference});var c=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromLayer(this.sketchStage.midVertexGraphics[e],this._sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e,1),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==c)return e})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireRemoveVertexByFun(this.sketchStage.entityGraphic,this._parent)}return t}}]),t}(h.default);t.default=v},function(e,t,r){var n=r(168),i=r(124);e.exports=Object.keys||function(e){return n(e,i)}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){"use strict";var n=r(310)(!0);r(131)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t){e.exports={}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=_(r(13)),i=_(r(3)),o=_(r(0)),a=_(r(2)),s=_(r(4)),u=_(r(7)),l=_(r(5)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(39)),f=_(r(40)),h=r(1),d=_(r(50)),p=r(6),y=_(r(94)),g=_(r(70)),m=_(r(71)),v=_(r(97));function _(e){return e&&e.__esModule?e:{default:e}}var S=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));if(e=(0,h.defaultValue)(e,{}),r.xmin=(0,h.defaultValue)(e.xmin,0),r.ymin=(0,h.defaultValue)(e.ymin,0),r.xmax=(0,h.defaultValue)(e.xmax,0),r.ymax=(0,h.defaultValue)(e.ymax,0),r.zmin=(0,h.defaultValue)(e.zmin,void 0),r.zmax=(0,h.defaultValue)(e.zmax,void 0),r.type=p.GeometryType.extent,r.hasZ=!(!(0,h.isNumber)(r.zmin)||!(0,h.isNumber)(r.zmax)),!(0,h.isNumber)(r.xmin)||!(0,h.isNumber)(r.ymin)||!(0,h.isNumber)(r.xmax)||!(0,h.isNumber)(r.ymax)||void 0!==r.zmin&&!(0,h.isNumber)(r.zmin)||void 0!==r.zmax&&!(0,h.isNumber)(r.zmax))throw new Error("坐标必须为数字");return r}return(0,l.default)(t,e),(0,a.default)(t,[{key:"centerAt",value:function(e){if(!e)throw new Error("传入参数错误");var t=d.default.toCoordinates(e),r=this.width,n=this.height;if(this.xmin=t[0]-r/2,this.xmax=t[0]+r/2,this.ymin=t[1]-n/2,this.ymax=t[1]+n/2,this.hasZ&&e.hasZ){var i=this.zmax-this.zmin;this.zmin=t[2]-i/2,this.zmax=t[2]+i/2}return this}},{key:"contains",value:function(e){if(!(e instanceof d.default||e instanceof t))return!1;var r=e;r.isGeographic||(r=y.default.project(e,new g.default({wkid:4326})));var n=this;n.isGeographic||(n=y.default.project(this,new g.default({wkid:4326})));var i,o=c.polygon([[[n.xmin,n.ymin],[n.xmin,n.ymax],[n.xmax,n.ymax],[n.xmax,n.ymin],[n.xmin,n.ymin]]]);return i=r instanceof d.default?c.point(r._cloneCoordinates()):c.polygon([[[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin]]]),c.booleanContains(o,i)}},{key:"intersection",value:function(e){e||h.Log.error("传入参数错误!"),e instanceof t||h.Log.error("extent不是Extent几何!"),this.spatialReference.equals(e.spatialReference)||h.Log.error("不是同一个坐标系!");var r=e;r.isGeographic||(r=y.default.project(e,new g.default({wkid:4326})));var n=this;n.isGeographic||(n=y.default.project(this,new g.default({wkid:4326})));var i=c.polygon([[[n.xmin,n.ymin],[n.xmin,n.ymax],[n.xmax,n.ymax],[n.xmax,n.ymin],[n.xmin,n.ymin]]]),o=c.polygon([[[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin]]]),a=null,s=c.intersect(i,o);if(s&&s.geometry){var u=void 0;"Polygon"===s.geometry.type?u=c.bbox(c.polygon(s.geometry.coordinates)):"MultiPolygon"===s.geometry.type&&(u=c.bbox(c.multiPolygon(s.geometry.coordinates))),u&&(a=new t({xmin:u[0],ymin:u[1],xmax:u[2],ymax:u[3]}),this.spatialReference.isGeographic||(a=y.default.project(a,g.default.fromJSON(this.spatialReference))))}return a}},{key:"intersects",value:function(e){return m.default.intersects(this,e)}},{key:"equals",value:function(e){if(!e)throw new Error("传入参数错误");var t=!!Math.abs(this.xmax-e.xmax)<=1e-7,r=!!Math.abs(this.xmin-e.xmin)<=1e-7,n=!!Math.abs(this.ymax-e.ymax)<=1e-7,i=!!Math.abs(this.ymin-e.ymin)<=1e-7;if(!this.hasZ)return t&&r&&n&&i;var o=!!Math.abs(this.zmax-e.zmax)<=1e-7,a=!!Math.abs(this.zmin-e.zmin)<=1e-7;return t&&r&&n&&i&&o&&a}},{key:"expand",value:function(e){if("number"==typeof e){if(e>=1){e=Math.abs(e);var t=this.width*e,r=this.height*e,n=t-this.width,i=r-this.height;this.xmin-=n/2,this.xmax+=n/2,this.ymin-=i/2,this.ymax+=i/2}return this}throw new Error("按照给定的因子扩大范围,需要的是一个num值")}},{key:"offset",value:function(e,t,r){if(!(0,h.isNumber)(e)||!(0,h.isNumber)(t)||this.hasZ&&!(0,h.isNumber)(r))throw new Error("传入参数错误");return this.xmax+=e,this.xmin+=e,this.ymax+=t,this.ymin+=t,this.hasZ&&(this.zmax+=r,this.zmin+=r),this}},{key:"union",value:function(e){if(!e)throw new Error("传入参数错误");return this.hasZ?new t({xmin:e.xmin<this.xmin?e.xmin:this.xmin,xmax:e.xmax>this.xmax?e.xmax:this.xmax,ymin:e.ymin<this.ymin?e.ymin:this.ymin,ymax:e.ymax>this.ymax?e.ymax:this.ymax,zmin:e.zmin<this.zmin?e.zmin:this.zmin,zmax:e.zmax>this.zmax?e.zmax:this.zmax}):new t({xmin:e.xmin<this.xmin?e.xmin:this.xmin,xmax:e.xmax>this.xmax?e.xmax:this.xmax,ymin:e.ymin<this.ymin?e.ymin:this.ymin,ymax:e.ymax>this.ymax?e.ymax:this.ymax})}},{key:"toString",value:function(){return this.hasZ?this.xmin+","+this.ymin+","+this.zmin+","+this.xmax+","+this.ymax+","+this.zmax:this.xmin+","+this.ymin+","+this.xmax+","+this.ymax}},{key:"toJSON",value:function(){var e=(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"toJSON",this).call(this);return e.xmin=this.xmin,e.ymin=this.ymin,e.xmax=this.xmax,e.ymax=this.ymax,e.zmin=this.zmin,e.zmax=this.zmax,e.width=this.width,e.height=this.height,e}},{key:"toIGSOldString",value:function(){return this.xmin+"$"+this.ymin+"$"+this.xmax+"$"+this.ymax}},{key:"getIGSType",value:function(){return this.hasZ?p.IGSGeometryType.extent3D:p.IGSGeometryType.extent}},{key:"normalize",value:function(){var e=new d.default({coordinates:[this.xmin,this.ymin]}),r=new d.default({coordinates:[this.xmax,this.ymax]});return e=e.normalize(),r=r.normalize(),new t({xmin:e.coordinates[0],ymin:e.coordinates[1],xmax:r.coordinates[0],ymax:r.coordinates[1]})}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toPolygon",value:function(){return v.default.fromExtent(this)}},{key:"toGeoJSON",value:function(){return this.toPolygon().toGeoJSON()}}],[{key:"fromJSON",value:function(e){return new t(e=(0,h.defaultValue)(e,{}))}}]),t}(f.default);(0,n.default)(S.prototype,{width:{configurable:!1,get:function(){return this.xmax-this.xmin}},height:{configurable:!1,get:function(){return this.ymax-this.ymin}},center:{configurable:!1,set:function(e){this.centerAt(e)},get:function(){return this.hasZ?new d.default({coordinates:[(this.xmax-this.xmin)/2+this.xmin,(this.ymax-this.ymin)/2+this.ymin,(this.zmax-this.zmin)/2+this.zmin],spatialReference:this.spatialReference}):new d.default({coordinates:[(this.xmax-this.xmin)/2+this.xmin,(this.ymax-this.ymin)/2+this.ymin],spatialReference:this.spatialReference})}}}),t.default=S},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(6);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(){(0,n.default)(this,e)}return(0,i.default)(e,null,[{key:"info",value:function(){if([o.LogType.info,o.LogType.all,o.LogType.infoAndError].indexOf(window.zondy.LOGTYPE)>-1){var e=Array.prototype.slice.call(arguments);e.unshift("%c info ","color:rgb(255,128,0);background-color: wheat;border: 1px solid rgb(255,128,0);border-radius: 3px;"),console.log.apply(console,e)}}},{key:"error",value:function(){if([o.LogType.error,o.LogType.all,o.LogType.infoAndError,o.LogType.warningAndError].indexOf(window.zondy.LOGTYPE)>-1){var e=Array.prototype.slice.call(arguments);e.unshift("%c error ","color:rgb(255,0,0);background-color: rgb(250,181,181);border: 1px solid rgb(255,0,0);border-radius: 3px;"),console.error.apply(console,e)}}},{key:"warning",value:function(){if([o.LogType.warning,o.LogType.warningAndError,o.LogType.all].indexOf(window.zondy.LOGTYPE)>-1){var e=Array.prototype.slice.call(arguments);e.unshift("%c warning ","color:rgb(230 162 60);background-color: rgb(253 246 236);border: 1px solid rgb(230 162 60);border-radius: 3px;"),console.log.apply(console,e)}}},{key:"throwError",value:function(e){throw new Error(e)}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(10)),i=l(r(24)),o=l(r(470)),a=l(r(138)),s=l(r(0)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function e(){(0,s.default)(this,e)};c.getBaseUrlAndParams=function(e){var t=void 0,r={},n=e.split("?");if(0===n.length)throw new Error("url传入不合法");return 1===n.length?t=n[0]:(t=n[0],n[1].split("&").map(function(e){var t=e.indexOf("=");if(t>0){var n=e.substring(0,t),i=e.substring(t+1,e.length);r[n]=i}}),n.length>=3&&u.Log.error("url有多个'?'连接符,不合法")),{baseUrl:t,params:r=(0,u.deleteNullValue)(r)}},c.completeUrlEndMark=function(e){return e.indexOf("?")>-1?"?"===e.slice(-1)||"&"===e.slice(-1)?e+="":e+="&":e+="?",e},c.getObjectFromExtensions=function(e){var t={},r=(0,u.defaultValue)(e,[]);return r instanceof Array&&(r=(0,a.default)(new o.default(r))).forEach(function(e){t[e.key]=e.value}),t},c.getStringFromObject=function(e){var t="";return(e=(0,u.defaultValue)(e,{}))instanceof Object&&(e=(0,u.deleteNullValue)(e),(0,i.default)(e).forEach(function(r){t+=r+"=",e[r]instanceof Function?t+=e[r]():e[r]instanceof Object?t+=(0,n.default)(e[r]):t+=e[r],t+="&"}),t.length>0&&(t=t.substring(0,t.length-1))),t},c.deleteNullValue=u.deleteNullValue,t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSublayerOptionsArr=void 0;var n=r(1),i=r(8);t.createSublayerOptionsArr=function e(t,r,o,a,s){r=r||[],s=s||{};var u=void 0,l=void 0,c=void 0;if(t){var f=t instanceof i.Collection?t.items:t;u=new window.Map,l=new window.Map,c=new window.Map,f.forEach(function(e){(0,n.defined)(e.name)&&u.set(e.name,e.toJSON?e.toJSON():e),(0,n.defined)(e.id)&&l.set(e.id,e.toJSON?e.toJSON():e),(0,n.defined)(e.layerIndex)&&c.set(e.layerIndex,e.toJSON?e.toJSON():e)})}for(var h=[],d=0;d<r.length;d++){var p=r[d],y=!1,g=void 0;if(l||u||c?(g=l.get(String(p.id))||l.get(String(p.name))||l.get(String(p.index))||u.get(String(p.name))||l.get(String(p.layerIndex))||c.get(String(p.layerIndex)))&&(y=!0):y=!0,y){var m=o(p,g||{},s);m.sublayers=e(g?g.sublayers:null,a(p),o,a,s),h.push(m)}}return h}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(0)),i=u(r(2)),o=r(8),a=r(1),s=r(28);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){(0,n.default)(this,e),t=(0,a.defaultValue)(t,{}),this.symbol=new s.MapGISTextSymbol(t.symbol),this.renderMode=(0,a.defaultValue)(t.renderMode,"canvas"),this.deconflictionStrategy=(0,a.defaultValue)(t.deconflictionStrategy,"static"),this.maxScale=t.maxScale,this.minScale=t.minScale,this.elevationInfo=new o.ElevationInfo(t.elevationInfo),this.labelPlacement=t.labelPlacement,this.currentAttributeName=t.currentAttributeName,this.labelExpression=t.labelExpression,this.repeatLabel=(0,a.defaultValue)(t.repeatLabel,!0),this.repeatLabelDistance=(0,a.defaultValue)(t.repeatLabelDistance,6e3),this.repeatStartRate=(0,a.defaultValue)(t.repeatStartRate,.3),this.repeatEndRate=(0,a.defaultValue)(t.repeatEndRate,.7),this.lineLabelSpread=(0,a.defaultValue)(t.lineLabelSpread,"auto-spread"),this.labelPositionAlong=(0,a.defaultValue)(t.labelPositionAlong,"middle"),this.skeletonLineStartRate=(0,a.defaultValue)(t.skeletonLineStartRate,.4),this.skeletonLineEndRate=(0,a.defaultValue)(t.skeletonLineEndRate,.6),this.groundScale=(0,a.defaultValue)(t.groundScale,20),this.onScreenLabelCount=(0,a.defaultValue)(t.onScreenLabelCount,4e3),this.extensionOptions=(0,a.defaultValue)(t.extensionOptions,{})}return(0,i.default)(e,[{key:"toJSON",value:function(){return{symbol:this.symbol.toJSON(),renderMode:this.renderMode,deconflictionStrategy:this.deconflictionStrategy,maxScale:this.maxScale,minScale:this.minScale,elevationInfo:this.elevationInfo.toJSON(),labelPlacement:this.labelPlacement,currentAttributeName:this.currentAttributeName,labelExpression:this.labelExpression,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,repeatStartRate:this.repeatStartRate,repeatEndRate:this.repeatEndRate,lineLabelSpread:this.lineLabelSpread,labelPositionAlong:this.labelPositionAlong,skeletonLineStartRate:this.skeletonLineStartRate,skeletonLineEndRate:this.skeletonLineEndRate,groundScale:this.groundScale,onScreenLabelCount:this.onScreenLabelCount,extensionOptions:(0,a.cloneObject)(this.extensionOptions)}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,a.defaultValue)(t,{}))}}]),e}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=f(r(0)),i=f(r(2)),o=r(9),a=r(1),s=f(r(115)),u=f(r(72)),l=r(6),c=(r(8),r(29));function f(e){return e&&e.__esModule?e:{default:e}}window.CustomWKID=l.CustomWKID;var h=function(){function e(){(0,n.default)(this,e)}return(0,i.default)(e,null,[{key:"parseTileInfo1",value:function(e){e||a.Log.error("tileInfo未定义");var t=e.tileWidth,r=e.tileHeight,n=e.lods,i=e.originX,l=e.originY;return e.startLevel,e.endLevel,new u.default({origin:new o.Point({coordinates:[i,l]}),lods:n.map(function(e){var t=s.default.fromJSON(e);return(0,a.defined)(t.levelValue)||(t.levelValue=String(t.level)),t}),size:[t,r]})}},{key:"parseTileInfo2",value:function(e){e||a.Log.error("tileInfo未定义");var t,r=e.cols,n=e.rows,i=e.dpi,l=e.format,f=e.origin,h=e.lods,d=e.spatialReference;return t=d&&d.srsWkt?new o.SpatialReference({wkt:d.srsWkt,wkid:(0,a.defined)(d.wkid)&&0!==d.wkid?d.wkid:void 0}):d&&d.tileSRefInfo&&d.tileSRefInfo.Name?(0,c.getSpatialReferenceBySrsName)(d.tileSRefInfo.Name):new o.SpatialReference(d),new u.default({dpi:i,format:l,origin:new o.Point({coordinates:[f.x,f.y],spatialReference:t}),lods:h.map(function(e){var t=s.default.fromJSON(e);return(0,a.defined)(t.levelValue)||(t.levelValue=String(t.level)),t}),size:[r,n],spatialReference:t})}},{key:"parseArcgisTileInfo",value:function(e){e||a.Log.error("tileInfo未定义");var t=e.cols,r=e.rows,n=e.dpi,i=e.format,l=e.origin,c=e.lods,f=e.spatialReference;return new u.default({dpi:n,format:i,origin:new o.Point({coordinates:[l.x,l.y],spatialReference:new o.SpatialReference({wkid:f.latestWkid||f.wkid})}),lods:c.map(function(e){var t=s.default.fromJSON(e);return(0,a.defined)(t.levelValue)||(t.levelValue=String(t.level)),t}),size:[t,r],spatialReference:new o.SpatialReference({wkid:f.latestWkid||f.wkid})})}},{key:"parseWMSTileInfo",value:function(t){t||a.Log.error("wmsLayer未定义");var r=t.extent,n=Math.max(t.imageWidth,t.imageHeight),i=t.spatialReferences[0];return e.generateTileInfo(r,n,i)}},{key:"generateTileInfo",value:function(e,t,r){e&&t||a.Log.error("动态计算tileInfo传入参数不合法");var n=Math.max(e.ymax-e.ymin,e.xmax-e.xmin)/t,i=[];i.push(n);for(var l=0;l<20;l++)i.push(i[l]/2);var c=new o.Point({coordinates:[e.xmin,e.ymax],spatialReference:r}),f=1;return r.isGeographic&&(f=111319.49079327358),new u.default({origin:c,lods:i.map(function(e,t){return s.default.fromJSON({level:t,levelValue:String(t),resolution:e,scale:f*(96*e)/.0254})}),size:[t,t],spatialReference:r})}},{key:"parseWebTileLayerInfo",value:function(e,t,r){e||a.Log.error("IGSMapImageLayer未定义"),r=(0,a.defaultValue)(r,2);var n=e.tileSize,i=(t.xmax-t.xmin)/r/n,l=[];l.push(i);for(var c=0;c<19;c++)l.push(l[c]/2);var f=new o.Point({coordinates:[t.xmin,t.ymax],spatialReference:e.spatialReference}),h=1;return e.spatialReference.isGeographic&&(h=111319.49079327358),new u.default({origin:f,lods:l.map(function(e,t){return s.default.fromJSON({level:t,levelValue:String(t),resolution:e,scale:h*(96*e)/.0254})}),size:[n,n],spatialReference:e.spatialReference})}},{key:"parseIGSImageTileInfo",value:function(e){var t=e.cols,r=e.rows,n=e.lods,i=e.origin,l=(e.startLevel,e.endLevel,e.spatialReference),c=e.dpi;return new u.default({origin:new o.Point({coordinates:[i.x,i.y],spatialReference:new o.SpatialReference(l)}),lods:n.map(function(e,t){return s.default.fromJSON({level:t,resolution:e.resolution,scale:e.scale,levelValue:(0,a.defined)(e.levelValue)?e.levelValue:String(t)})}),size:[t,r],spatialReference:new o.SpatialReference(l),dpi:c})}},{key:"createCommonTileInfo",value:function(e){if(e&&e.extent){var t=e.extent,r=t.spatialReference,n=(0,a.defaultValue)(e.origin,new o.Point({coordinates:[t.xmin,t.ymax],spatialReference:r})),i=(0,a.defaultValue)(e.tileSize,256),l=(0,a.defaultValue)(e.minLevel,0),c=(0,a.defaultValue)(e.maxLevel,19),f=(0,a.defaultValue)(e.numberOfMinLevelTilesX,1),h=((0,a.defaultValue)(e.numberOfMinLevelTilesY,1),(t.xmax-t.xmin)/f/i),d=[];d.push(h);for(var p=l;p<c;p++)d.push(d[p]/2);var y=1;return r.isGeographic&&(y=111319.49079327358),new u.default({origin:n,lods:d.map(function(e,t){return s.default.fromJSON({level:t,levelValue:String(t),resolution:e,scale:y*(96*e)/.0254})}),size:[i,i],spatialReference:r})}}},{key:"getLods",value:function(e,t,r){for(var n=Math.max(0,r),i=[],o=2*Math.PI*6378137/360,a=0;a<n;a++){var u,l=e/Math.pow(2,a);u="degree"===t?o*l:96*l/.0254,i.push(new s.default({level:a,levelValue:a,resolution:l,scale:u}))}return i}},{key:"getReferenceLayer",value:function(e,t){for(var r=null,n=null,i=0;i<e.length;i++){var o=e[i];if(o.loaded&&(o.type===l.LayerType.IGSTile||o.type===l.LayerType.IGSImageTile||o.type===l.LayerType.ArcGISTile||o.type===l.LayerType.WMTS||o.type===l.LayerType.IGSVectorTile||o.type===l.LayerType.ArcGISVectorTile||o.type===l.LayerType.webTile)&&(!t||t.equals(o.spatialReference)||t.isWebMercator&&o.spatialReference.wkid&&[l.CustomWKID.gcj02mc,l.CustomWKID.bd09mc].indexOf(o.spatialReference.wkid)>-1)){n=o,r=o.spatialReference;break}}if(!r)for(var a=0;a<e.length;a++){var s=e[a];if(s.loaded&&(s.type===l.LayerType.IGSMapImage||s.type===l.LayerType.ArcGISMapImage||s.type===l.LayerType.WMS||s.type===l.LayerType.IGSFeature||s.type===l.LayerType.WFS||s.type===l.LayerType.GeoJSON||s.type===l.LayerType.IGSImage)){n=s,r=t||s.spatialReference;break}}return n}},{key:"isSameSpatialReference",value:function(e,t){var r=!1,n=void 0,i=void 0,a=void 0,s=void 0,u=void 0,l=void 0;return void 0!==e&&void 0!==t&&(e instanceof o.SpatialReference?(n=e.wkt?e.wkt.toString():void 0,i=e.wkid?e.wkid.toString():void 0):a=e.toString(),t instanceof o.SpatialReference?(s=t.wkt?t.wkt.toString():void 0,u=t.wkid?t.wkid.toString():void 0):l=t.toString()),n&&s&&n===s?r=!0:i&&u&&(i===u||["4326","4490","4610","4214"].indexOf(i)>-1&&["4326","4490","4610","4214"].indexOf(u)>-1||["102113","102100","900913","3857"].indexOf(i)>-1&&["102113","102100","900913","3857"].indexOf(u)>-1)?r=!0:a&&l&&a===l&&(r=!0),r}},{key:"getLevelRangeByTileInfo",value:function(e,t){if(!e||!Array.isArray(e.lods)||0===e.lods.length)return[0,22];for(var r=e.lods,n=r.slice().reverse(),i=r[0].level,o=r[r.length-1].level,a=0,s=r.length-1,u=0;u<r.length;u++)if(0!==r[u].scale){i=r[u].level,a=u;break}for(var l=0;l<n.length;l++)if(0!==n[l].scale){o=n[l].level,s=n.length-1-l;break}return t?[a,s]:[i,o]}},{key:"getTileInfoByLayer",value:function(t){var r=t.tileInfo;if(t.type===l.LayerType.WMTS)r=t.getCurrentTileInfo();else if(t.type===l.LayerType.WMS)r=e.parseWMSTileInfo(t,t.extent);else if(t.type===l.LayerType.IGSMapImage||t.type===l.LayerType.IGSImage||t.type===l.LayerType.ArcGISMapImage||t.type===l.LayerType.IGSFeature||t.type===l.LayerType.WFS||t.type===l.LayerType.GeoJSON){var n=256;t.imageWidth&&t.imageHeight&&(n=Math.max(t.imageWidth,t.imageHeight)),r=e.generateTileInfo(t.extent,n,t.spatialReference)}return r}},{key:"scaleToResolution",value:function(e,t,r){var n=1;return r.isGeographic&&(n=111319.49079327358),.0254*e/t/n}},{key:"resolutionToScale",value:function(e,t,r){var n=1;return r.isGeographic&&(n=111319.49079327358),n*(e*t)/.0254}}]),e}();t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTipTextByEditOption=function(e,t,r){if(r&&r.graphic&&r.vertex){var n={text:"",lineWidth:0};switch(e){case"before-edit":case"draw-end":r.graphic.move||r.graphic.scale?(n.text=t.beforeEditGraphic.text,n.lineWidth=t.beforeEditGraphic.lineWidth):(r.vertex.move||r.vertex.add)&&(n.text=t.beforeEditVertex.text,n.lineWidth=t.beforeEditVertex.lineWidth);break;case"edit-graphic":var i=0;r.graphic.move&&(n.text=t.moveGraphic.text,i+=t.moveGraphic.lineWidth),r.graphic.scale&&(n.text+=t.scaleGraphic.text,i+=t.scaleGraphic.lineWidth),(r.vertex.move||r.vertex.add)&&(n.text+=t.beforeEditVertex.text,i+=t.beforeEditVertex.lineWidth),n.editGraphic&&n.editGraphic.lineWidth?n.lineWidth=t.moveGraphic.lineWidth:n.lineWidth=i;break;case"edit-vertex":var o=0;r.vertex.move&&(n.text=t.moveVertex.text,o+=t.moveVertex.lineWidth),r.vertex.add&&(n.text+=t.addVertex.text,o+=t.addVertex.lineWidth),n.editVertex&&n.editVertex.lineWidth?n.lineWidth=t.moveGraphic.lineWidth:n.lineWidth=o;break;default:n=void 0}return n}}},function(e,t,r){var n=r(11).Buffer;e.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(n.isBuffer(e)){for(var t=new Uint8Array(e.length),r=e.length,i=0;i<r;i++)t[i]=e[i];return t.buffer}throw new Error("Argument must be a Buffer")}},function(e,t){e.exports=!0},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){var n=r(37).f,i=r(46),o=r(31)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},function(e,t,r){r(312);for(var n=r(30),i=r(54),o=r(78),a=r(31)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var l=s[u],c=n[l],f=c&&c.prototype;f&&!f[a]&&i(f,a,l),o[l]=o.Array}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){var n=r(91),i=r(76),o=r(53),a=r(127),s=r(46),u=r(169),l=Object.getOwnPropertyDescriptor;t.f=r(33)?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return i(!n.f.call(e,t),e[t])}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=f(r(67)),i=f(r(346)),o=f(r(349)),a=f(r(0)),s=f(r(2)),u=r(1),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(352)),c=r(41);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(){function e(){return(0,a.default)(this,e),this.initialize.apply(this,arguments),this._createEventedProxy()}return(0,s.default)(e,[{key:"initialize",value:function(){}},{key:"_createEventedProxy",value:function(){this._decorateParents=[],this._decorateProperties={};var e=this;return new Proxy(this,{set:function(t,r,n,a){if(e._decorateProperties[r]){var s=e._decorateProperties[r],l=s.type,c=s.createInstance;n=e._constructDecorateValue(n,l,c),(0,u.defined)(n)&&Array.isArray(n._decorateParents)&&-1===n._decorateParents.findIndex(function(t){return t.instance===e})&&n._decorateParents.push({instance:e,key:r})}if(t[r]===n)return!0;var f=(0,o.default)(t,r);null!==f&&void 0!==f&&f._decorateParents&&(f._decorateParents=[]);var h={target:t,key:r,value:n,oldValue:f,receiver:a},d=(0,i.default)(t,r,n,a);return/^_[^_].*/.test(r)?d:(e._decorateEventFire(e,e,[],"set",h,h),e._updateDiff(r,n,f),d)},get:function(e,t,r){return(0,o.default)(e,t,r)}})}},{key:"_updateDiff",value:function(e,t,r){}},{key:"_decorateEventFire",value:function(e,t,r,n,i,o){for(var a=i.key,s=i.value,u=i.oldValue,l=[a],f=0;f<r.length;f++)l.push(r[f]);var h={key:a,value:s,oldValue:u},d=new c.ProxyEvent({eventName:n,target:e,eventData:h,eventPath:l,sourceTarget:t,sourceEventData:o});e.fire(n,d,!1);var p=e._decorateParents||[];if(0!==p.length)for(var y=0;y<p.length;y++){var g=p[y],m=g.instance,v={key:g.key,value:e,oldValue:e};this._decorateEventFire(m,t,l,n,v,o)}}},{key:"_decorate",value:function(e,t,r,n){return n=(0,u.defaultValue)(n,function(e){return e}),t=this._constructDecorateValue(t,r,n),this._decorateProperties[e]={type:r,createInstance:n},t}},{key:"_constructDecorateValue",value:function(e,t,r){return(0,u.defined)(e)&&r&&(t&&e instanceof t||(e=r(e))),e}},{key:"on",value:function(e,t,r){if("object"===(void 0===e?"undefined":(0,n.default)(e)))for(var i in e)this._on(i,e[i],t);else for(var o=0,a=(e=l.splitWords(e)).length;o<a;o++)this._on(e[o],t,r);return this}},{key:"off",value:function(e,t,r){if(e)if("object"===(void 0===e?"undefined":(0,n.default)(e)))for(var i in e)this._off(i,e[i],t);else for(var o=0,a=(e=l.splitWords(e)).length;o<a;o++)this._off(e[o],t,r);else delete this._Evented;return this}},{key:"_on",value:function(e,t,r){this._Evented=this._Evented||{};var n=this._Evented[e];n||(n=[],this._Evented[e]=n),r===this&&(r=void 0);for(var i={fn:t,ctx:r},o=n,a=0,s=o.length;a<s;a++)if(o[a].fn===t&&o[a].ctx===r)return;o.push(i)}},{key:"_off",value:function(e,t,r){var n=void 0,i=void 0,o=void 0;if(this._Evented&&(n=this._Evented[e]))if(t){if(r===this&&(r=void 0),n)for(i=0,o=n.length;i<o;i++){var a=n[i];if(a.ctx===r&&a.fn===t)return a.fn=l.falseFn,this._firingCount&&(this._Evented[e]=n=n.slice()),void n.splice(i,1)}}else{for(i=0,o=n.length;i<o;i++)n[i].fn=l.falseFn;delete this._Evented[e]}}},{key:"fire",value:function(e,t,r){if(!this.listens(e,r))return this;var n=t;if(n&&(n.type=e,n.target=this,n.sourceTarget=t&&t.sourceTarget||this),this._Evented){var i=this._Evented[e];if(i){this._firingCount=this._firingCount+1||1;for(var o=0,a=i.length;o<a;o++){var s=i[o];s.fn.call(s.ctx||this,n)}this._firingCount--}}return r&&this._propagateEvent(n),this}},{key:"listens",value:function(e,t){var r=this._Evented&&this._Evented[e];if(r&&r.length)return!0;if(t)for(var n in this._eventParents)if(this._eventParents[n].listens(e,t))return!0;return!1}},{key:"once",value:function(e,t,r){var i=this;if("object"===(void 0===e?"undefined":(0,n.default)(e))){for(var o in e)this.once(o,e[o],t);return this}var a=l.bind(function(){i.off(e,t,r).off(e,a,r)},this);return this.on(e,t,r).on(e,a,r)}},{key:"addEventParent",value:function(e){return this._eventParents=this._eventParents||{},this._eventParents[l.stamp(e)]=e,this}},{key:"removeEventParent",value:function(e){return this._eventParents&&delete this._eventParents[l.stamp(e)],this}},{key:"_propagateEvent",value:function(e){for(var t in this._eventParents)this._eventParents[t].fire(e.type,l.extend({layer:e.target,propagatedFrom:e.target},e),!0)}}]),e}();t.default=h,h.addEventListener=h.on,h.removeEventListener=h.clearAllEventListeners=h.off,h.addOneTimeEventListener=h.once,h.fireEvent=h.fire,h.hasEventListeners=h.listens},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(0)),i=h(r(268)),o=h(r(111)),a=r(1),s=r(9),u=h(r(112)),l=h(r(213)),c=h(r(214)),f=h(r(147));function h(e){return e&&e.__esModule?e:{default:e}}var d=function e(){(0,n.default)(this,e)};d.projectMercatorToLonLat=function(e){var t={longitude:0,latitude:0},r=e.x/20037508.342789244*180,n=e.y/20037508.342789244*180;return n=180/Math.PI*(2*Math.atan(Math.exp(n*Math.PI/180))-Math.PI/2),t.longitude=r,t.latitude=n,t},d.projectToGeographyPoints=function(e){return d.projectPoints({points:e.points,originDefs:e.proj4Defs,originWKID:e.wkid,targetWKID:4326})},d.projectPoints=function(e){e=(0,a.defaultValue)(e,{});var t=(0,a.defaultValue)(e.points,[]),r=(0,a.defaultValue)(e.originWKID,-1),n=(0,a.defaultValue)(e.originDefs,void 0),o=(0,a.defaultValue)(e.targetWKID,-1),s=(0,a.defaultValue)(e.targetDefs,void 0),u=void 0,l=void 0,c=[];try{if(n)u=n;else{var f=d.getEPSGByWKID(r);f&&(u=f.strProject)}if(s)l=s;else{var h=d.getEPSGByWKID(o);h&&(l=h.strProject)}for(var p=[],y=[],g=0;g<t.length;g++)p=t[g],y=u&&l?(0,i.default)(u,l,p):u&&!l?d._toCustomWkidPoint(u,o,p):!u&&l?d._fromCustomWkidPoint(r,l,p):d._CustomWkidToCustomWkidPoint(r,o,p),c.push(y);return c}catch(e){a.Log.error("proj4投影报错",e)}return c},d.getEPSGByWKID=function(e){for(var t=void 0,r=0;r<o.default.length;r++)if(String(o.default[r].id)===String(e)){t=o.default[r];break}return t||a.Log.info("epsg未定义wkid为"+e+"的坐标系信息"),t},d.projectGeometry=function(e,t){var r=[],n={originWKID:e.spatialReference.wkid,originDefs:e.spatialReference.wkt,targetWKID:t.wkid,targetDefs:t.wkt};switch(e.type){case u.default.point:return r=[e.coordinates],n.points=r,r=d.projectPoints(n),new s.Point({coordinates:r[0],spatialReference:new s.SpatialReference(t)});case u.default.multiPoint:return r=e.coordinates,n.points=r,r=d.projectPoints(n),new s.MultiPoint({coordinates:r,spatialReference:new s.SpatialReference(t)});case u.default.lineString:return r=e.coordinates,n.points=r,r=d.projectPoints(n),new s.LineString({coordinates:r,spatialReference:new s.SpatialReference(t)});case u.default.multiLineString:r=e.coordinates;for(var i=[],o=0;o<r.length;o++)n.points=r[o],i.push(d.projectPoints(n));return new s.MultiLineString({coordinates:i,spatialReference:new s.SpatialReference(t)});case u.default.polygon:r=e.coordinates;for(var a=[],l=0;l<r.length;l++)n.points=r[l],a.push(d.projectPoints(n));return new s.Polygon({coordinates:a,spatialReference:new s.SpatialReference(t)});case u.default.multiPolygon:r=e.coordinates;for(var c=[],f=0;f<r.length;f++){for(var h=[],p=0;p<r[f].length;p++)n.points=r[f][p],h.push(d.projectPoints(n));c.push(h)}return new s.MultiPolygon({coordinates:c,spatialReference:new s.SpatialReference(t)});case u.default.circle:return r=[e.clone().center],n.points=r,r=d.projectPoints(n),new s.Circle({center:r[0],radius:e.radius,radiusUnit:e.radiusUnit,spatialReference:new s.SpatialReference(t)});case u.default.extent:return r=[[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]],n.points=r,r=d.projectPoints(n),new s.Extent({xmin:Math.min(r[0][0],r[1][0],r[2][0],r[3][0]),ymin:Math.min(r[0][1],r[1][1],r[2][1],r[3][1]),zmin:e.zmin,xmax:Math.max(r[0][0],r[1][0],r[2][0],r[3][0]),ymax:Math.max(r[0][1],r[1][1],r[2][1],r[3][1]),zmax:e.zmax,spatialReference:new s.SpatialReference(t)});default:return e}},d.project=function(e,t){if(e instanceof Array){for(var r=[],n=0;n<e.length;n++)r.push(d.projectGeometry(e[n],t));return r}if(e.spatialReference.isGeographic){var i=function(e){return e>89.99999999?e=89.99999999:e<-89.99999999&&(e=-89.99999999),e};e.coordinates&&e.coordinates.length>1&&(e.coordinates[1]=i(e.coordinates[1])),e.ymax=i(e.ymax),e.ymin=i(e.ymin)}return d.projectGeometry(e,t)},d.isCustomWKID=function(e){return e===f.default.gcj02ll||e===f.default.gcj02mc||e===f.default.bd09ll||e===f.default.bd09mc},d._toCustomWkidPoint=function(e,t,r){var n=void 0,o=d.getEPSGByWKID(4326).strProject,s=(0,i.default)(e,o,r);if(t===f.default.bd09ll)n=l.default.wgs84tobd09(s[0],s[1]);else if(t===f.default.bd09mc){var u=l.default.wgs84tobd09(s[0],s[1]);u[0]=Math.min(u[0],180),u[0]=Math.max(u[0],-180),u[1]=Math.min(u[1],74.000022),u[1]=Math.max(u[1],-71.988531);var h=(new c.default).convertLL2MC({lng:u[0],lat:u[1]});n=[h.lng,h.lat]}else if(t===f.default.gcj02ll)n=l.default.wgs84togcj02(s[0],s[1]);else if(t===f.default.gcj02mc){var p=l.default.wgs84togcj02(s[0],s[1]);n=(0,i.default)(o,d.getEPSGByWKID(3857).strProject,p)}else a.Log.error("wkid为"+t+"的投影方式未定义!");return n},d._fromCustomWkidPoint=function(e,t,r){var n=void 0,o=d.getEPSGByWKID(4326).strProject;if(e===f.default.bd09ll){var s=l.default.bd09towgs84(r[0],r[1]);n=(0,i.default)(o,t,s)}else if(e===f.default.bd09mc){var u=(new c.default).convertMC2LL({lng:r[0],lat:r[1]}),h=l.default.bd09towgs84(u.lng,u.lat);n=(0,i.default)(o,t,h)}else if(e===f.default.gcj02ll){var p=l.default.gcj02towgs84(r[0],r[1]);n=(0,i.default)(o,t,p)}else if(e===f.default.gcj02mc){var y=(0,i.default)(d.getEPSGByWKID(3857).strProject,o,r),g=l.default.gcj02towgs84(y[0],y[1]);n=(0,i.default)(d.getEPSGByWKID(4326).strProject,t,g)}else a.Log.error("wkid为"+e+"的投影方式未定义!");return n},d._CustomWkidToCustomWkidPoint=function(e,t,r){var n=void 0,i=d.getEPSGByWKID(4326).strProject;if(e===f.default.bd09ll){var o=d._fromCustomWkidPoint(e,i,r);n=d._toCustomWkidPoint(i,t,o)}else a.Log.error("wkid为"+e+"的投影方式未定义!");return n},d.getProj=function(e,t){return i.default.defs(e,t),(0,i.default)(e)},t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(3)),i=h(r(0)),o=h(r(2)),a=h(r(4)),s=h(r(5)),u=r(1),l=h(r(140)),c=h(r(69)),f=r(193);function h(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,u.defaultValue)(e,{}),r.styleOrigin=void 0,r.symbolLayers=new l.default,(0,u.defaultValue)(e.symbolLayers,[]).forEach(function(e){r.symbolLayers.add((0,f.createSymbol3DLayer)(e))}),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=[];return this.symbolLayers.forEach(function(t){e.push(t.toJSON())}),{type:this.type,styleOrigin:this.styleOrigin,symbolLayers:e}}}]),t}(c.default);t.default=d},function(e,t,r){var n=r(47),i=r(182),o=r(183),a=r(38),s=r(104),u=r(137),l={},c={};(t=e.exports=function(e,t,r,f,h){var d,p,y,g,m=h?function(){return e}:u(e),v=n(r,f,t?2:1),_=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(o(m)){for(d=s(e.length);d>_;_++)if((g=t?v(a(p=e[_])[0],p[1]):v(e[_]))===l||g===c)return g}else for(y=m.call(e);!(p=y.next()).done;)if((g=i(y,v,p.value,t))===l||g===c)return g}).BREAK=l,t.RETURN=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=_(r(13)),i=_(r(10)),o=_(r(3)),a=_(r(0)),s=_(r(2)),u=_(r(4)),l=_(r(7)),c=_(r(5)),f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(39)),h=_(r(40)),d=r(1),p=r(6),y=_(r(50)),g=_(r(79)),m=r(49),v=_(r(71));function _(e){return e&&e.__esModule?e:{default:e}}var S=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,d.defaultValue)(e,{}),r.coordinates=(0,d.defaultValue)(e.coordinates,[]),r.type=p.GeometryType.polygon,!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");for(var n=0;n<r.coordinates.length;n++){var i=r.coordinates[n];if(i.length<4)throw new Error("每个环至少有四个点");if(i[i.length-1].length!==i[0].length)throw new Error("首尾点维度不相等");for(var s=0;s<i[i.length-1].length;s++)if(i[i.length-1][s]!==i[0][s])throw new Error("第一个位置和最后一个位置不相等")}return 3===r.coordinates[0][0].length&&(r.hasZ=!0),r._centroid=void 0,r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"addRing",value:function(e){if(!Array.isArray(e))throw new Error("传入参数错误");var t=[];return e.forEach(function(e){t.push(y.default.toCoordinates(e))}),this.coordinates.push(t),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"removeRing",value:function(e){if(e=Number(e),!this._isValidate(e,0))return null;var t=JSON.parse((0,i.default)(this._cloneCoordinates()[e]));this.coordinates.splice(e,1),this.coordinates=JSON.parse((0,i.default)(this.coordinates));for(var r=[],n=0;n<t.length;n++){var o=new y.default({coordinates:t[n]});r.push(o)}return r}},{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e}},{key:"contains",value:function(e){if(!e)throw new Error("传入参数错误");var t=f.polygon(this._cloneCoordinates()),r=f.point(y.default.toCoordinates(e));return f.booleanPointInPolygon(r,t)}},{key:"getPoint",value:function(e,t){if(!this._isValidate(e,t))return null;var r=this._cloneCoordinates()[e];return new y.default({coordinates:r[t]})}},{key:"insertPoint",value:function(e,t,r){if(!this._isValidate(e,t))return null;var n=this.coordinates[e];return Array.isArray(n)&&n.splice(t,0,r._cloneCoordinates()),this.coordinates[e]=n,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"removePoint",value:function(e,t){if(!this._isValidate(e,t))return null;var r=this.clone(),n=r.coordinates[e],o=new y.default({coordinates:n[t]});return Array.isArray(n)&&n.splice(t,1),this.coordinates=r.coordinates,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),o}},{key:"setPoint",value:function(e,t,r){if(!this._isValidate(e,t))return this;r instanceof y.default&&(r=r._cloneCoordinates());var n=this.coordinates[e];return Array.isArray(n)&&n.splice(t,1,r),this.coordinates[e]=n,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"toXMl",value:function(){return""}},{key:"toString",value:function(){for(var e="",t=0;t<this.coordinates.length;t++){for(var r=this.coordinates[t],n=0;n<r.length;n++)for(var i=r[n],o=0;o<i.length;o++)e+=i[o]+",";e=e.substring(0,e.length-1),e+="|"}return e.substring(0,e.length-1)}},{key:"toOldIGSGeometry",value:function(){for(var e=[],t={Rings:[],GID:0},r={},n=this.coordinates,i=0;i<n.length;i++){r={Arcs:[]};for(var o=[],a=0;a<n[i].length;a++){var s=n[i][a];o.push({x:s[0],y:s[1]})}r.Arcs.push({Dots:o,ArcID:i}),t.Rings.push(r)}return e.push(t),{RegGeom:e}}},{key:"getIGSType",value:function(){return p.IGSGeometryType.polygon}},{key:"toDots",value:function(){for(var e=[],t=this.coordinates[0],r=0;r<t.length;r++)e.push({x:t[r][0],y:t[r][1]});return e}},{key:"isClockwise",value:function(e){var t=[];if(!(e instanceof Array))throw new Error("ring不是数组类型!");for(var r=0;r<e.length;r++)if(e[r]instanceof y.default)t.push(e[r].coordinates);else{if(!(e[r]instanceof Array&&e[r].length>=2))throw new Error("ring中的点不是数组或Point类型!");t.push(e[r])}var n=f.lineString(t);return f.booleanClockwise(n)}},{key:"_isValidate",value:function(e,t){var r=this.coordinates.length;if(!(0,d.isNumber)(e)||e<0||e>=r)return!1;var n=this.coordinates[e].length;return!(!(0,d.isNumber)(t)||t<0||t>=n)}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return(0,m.calcExtent)(e,t,p.GeometryType.polygon,this.spatialReference)}},{key:"_isSelfIntersecting",value:function(){var e=f.polygon(this.coordinates);return f.kinks(e).features.length>0}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromExtent",value:function(e){var r=[];if(e instanceof g.default){var n=[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]];if(e&&e.hasZ){var i=e.zmin+.5*(e.zmax-e.zmin);n.forEach(function(e){e.push(i)})}r.push(n)}return new t({coordinates:r,spatialReference:e.spatialReference.clone()})}},{key:"fromJSON",value:function(e){return new t(e=(0,d.defaultValue)(e,{}))}}]),t}(h.default);(0,n.default)(S.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}},isSelfIntersecting:{configurable:!1,get:function(){return this._isSelfIntersecting()}},centroid:{configurable:!1,get:function(){return this._centroid=v.default.getCentroid(this),this._centroid}}}),t.default=S},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createVisualVariable=t.OpacityVariable=t.SizeVariable=t.ColorVariable=t.VisualVariable=void 0;var n=r(1),i=l(r(68)),o=l(r(116)),a=l(r(499)),s=l(r(501)),u=l(r(503));function l(e){return e&&e.__esModule?e:{default:e}}t.VisualVariable=o.default,t.ColorVariable=a.default,t.SizeVariable=s.default,t.OpacityVariable=u.default,t.createVisualVariable=function(e){switch((e=(0,n.defaultValue)(e,{})).type){case i.default.color:return new a.default(e);case i.default.size:return new s.default(e);case i.default.opacity:return new u.default(e);default:n.Log.error("视觉变量传入type类型参数有误!")}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(13)),i=g(r(3)),o=g(r(0)),a=g(r(2)),s=g(r(4)),u=g(r(7)),l=g(r(5)),c=r(16),f=r(1),h=r(9),d=r(6),p=r(12),y=r(29);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return e=(0,f.defaultValue)(e,{}),r.type=d.SubLayerType.IGSSceneSub,r.originLayerType=(0,f.defaultValue)(e.originLayerType,""),r.layerIndex=(0,f.defaultValue)(e.layerIndex,0),r.renderType=(0,f.defaultValue)(e.renderType,""),r.beginLevel=(0,f.defaultValue)(e.beginLevel,-1),r.endLevel=(0,f.defaultValue)(e.endLevel,-1),r.originPoint=e.originPoint?h.Point.fromJSON(e.originPoint):null,r.maxFrameSize=e.maxFrameSize?e.maxFrameSize:null,r.layerName=(0,f.defaultValue)(e.layerName,null),r.layerRenderIndex=(0,f.defaultValue)(e.layerRenderIndex,null),r.elevationScale=(0,f.defaultValue)(e.elevationScale,null),r.originLayerType===d.IGSSceneOriginLayerType.groupLayer3D&&(r.extent=(0,y.getExtentBySubLayers)(r.sublayers.items)),r.capabilities=(0,p.mergeCommonClientCapbilities)(r.capabilities,{type:!0,layerIndex:!0,maxFrameSize:!0}),r}return(0,l.default)(t,e),(0,a.default)(t,[{key:"reset",value:function(){this.layer&&this.layer._fireUpdateEvent("重置视角",[{name:"reset",params:[this.id],dataChanged:!0,operationType:"method"}])}},{key:"toJSON",value:function(){var e=(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"toJSON",this).call(this);return e.originLayerType=this.originLayerType,e.layerIndex=this.layerIndex,e.renderType=this.renderType,e.beginLevel=this.beginLevel,e.endLevel=this.endLevel,e.originPoint=this.originPoint?this.originPoint.toJSON():null,e.maxFrameSize=this.maxFrameSize?this.maxFrameSize:null,e.layerName=this.layerName,e.layerRenderIndex=this.layerRenderIndex,e.elevationScale=this.elevationScale,e}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"_updateDiff",value:function(e,r,n){(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"_updateDiff",this).call(this,e,r,n),this.layer&&this.layer._fireSublayerUpdateEvent(this.id,e,this[e])}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(c.SubLayer);(0,n.default)(m.prototype,{visible:{get:function(){return this._visible},set:function(e){this._visible=e}},opacity:{get:function(){return this._opacity},set:function(e){this._opacity=e}}}),t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(10)),i=u(r(0)),o=u(r(2)),a=r(9),s=r(1);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){(0,i.default)(this,e),t=(0,s.defaultValue)(t,{}),this.bandCount=t.bandCount,this.pixelType=t.pixelType,this.width=t.width,this.height=t.height,this.spatialReference=a.SpatialReference.fromJSON(t.spatialReference),this.colormap=t.colormap,this.extent=t.extent?a.Extent.fromJSON(t.extent):null,this.histograms=t.histograms,this.pixelSize=t.pixelSize?a.Point.fromJSON(t.pixelSize):null,this.statistics=t.statistics}return(0,o.default)(e,[{key:"toJSON",value:function(){var e={};return e.bandCount=this.bandCount,e.pixelType=this.pixelType,e.width=this.width,e.height=this.height,e.spatialReference=this.spatialReference?this.spatialReference.toJSON():null,e.colormap=JSON.parse((0,n.default)(this.colormap)),e.extent=this.extent?this.extent.toJSON():null,e.histograms=JSON.parse((0,n.default)(this.histograms)),e.pixelSize=this.pixelSize?this.pixelSize.toJSON():null,e.statistics=JSON.parse((0,n.default)(this.statistics)),e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,s.defaultValue)(t,{}))}}]),e}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.default=function e(t){(0,n.default)(this,e),t=(0,i.defaultValue)(t,{}),(0,i.extend)(this,t),this.Caption=void 0!==t.Caption?t.Caption:null,this.IsVisible=void 0===t.IsVisible||t.IsVisible,this.MaxScale=void 0!==t.MaxScale?parseFloat(t.MaxScale):0,this.MinScale=void 0!==t.MinScale?parseFloat(t.MinScale):0,this.RegInfo=void 0!==t.RegInfo?t.RegInfo:null,this.LinInfo=void 0!==t.LinInfo?t.LinInfo:null,this.PntInfo=void 0!==t.PntInfo?t.PntInfo:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(13)),i=y(r(3)),o=y(r(0)),a=y(r(2)),s=y(r(4)),u=y(r(5)),l=r(8),c=r(6),f=r(41),h=r(110),d=r(1),p=r(25);function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this)),n=(0,d.defaultValue)(e,{});return r.view=n.view,r.view||d.Log.error("视图对象不存在!"),r.layer=n.layer,r.layer||d.Log.error("图层对象不存在!"),r.innerLayer=null,r.id=r.layer.id,r._updateScaleVisible(),r.onRefresh=(0,p.debounce)(r.onRefresh,r.layer.forceRefreshDebounceDelay,r),r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"onAdd",value:function(e){}},{key:"onRemove",value:function(e){}},{key:"onUpdate",value:function(e){}},{key:"_getLayerViewVisible",value:function(e){return e||this._updateScaleVisible(),this._getVisible()&&this._scaleVisible}},{key:"_updateScaleVisible",value:function(){var e=this.view,t=e.scale;t&&e.getScale&&(t=e.getScale());var r=this._getMinScale(),n=this._getMaxScale(),i=!1;(!t||0===n&&0===r||0===n&&t<=r||0===r&&t>=n||0!==n&&0!==n&&n<=t&&t<=r)&&(i=!0),this._scaleVisible=i}},{key:"_getOpacity",value:function(){return this.layer.getCumulative("opacity",function(e,t){return e*t})}},{key:"_getVisible",value:function(){return this.layer.getCumulative("visible",function(e,t){return e&&t})}},{key:"_getMinScale",value:function(){return this.layer.getCumulative("minScale",function(e,t){return"number"==typeof t&&0!==t?0===e?t:Math.min(e,t):e})}},{key:"_getMaxScale",value:function(){return this.layer.getCumulative("maxScale",function(e,t){return"number"==typeof t&&0!==t?0===e?t:Math.max(e,t):e})}},{key:"checkLayerCanAddedStatus",value:function(){var e=this.layer.parent;return!(!e||!e.findLayerById(this.id))}},{key:"onRefresh",value:function(){}},{key:"_fireLayerViewUpdateEvent",value:function(e,t){var r=this.layer,n=new f.LayerViewUpdateEvent({type:c.LayerEventType.layerViewUpdate,target:this,layer:r,message:e,view:this.view,layerView:this,updateContent:Array.isArray(t)?t.map(function(e){return new h.LayerViewUpdateContent(e)}):[new h.LayerViewUpdateContent(t)]});r.fire(c.LayerEventType.layerViewUpdate,n),this.view.fire(c.LayerEventType.layerViewUpdate,n)}},{key:"_fireLayerViewEvent",value:function(e,t){var r=this.layer,n=new l.LayerEvent({type:e,message:t||"",layer:r});n.addProperty("view",this.view),n.addProperty("layerView",this),r.fire(e,n),this.view.fire(e,n)}}]),t}(l.Evented);(0,n.default)(g.prototype,{innerView:{get:function(){return this.view.getInnerView()}}}),t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMapGISBaseUrl=t.buildModuleUrl=t.decryptIGS=t.formatWebTileUrl=t.LayerBaseUrlRegExp=t.ServerBaseUrlRegExp=t.BaseRegExp=t.deleteNullValue=t.ServerUtil=t.UrlUtil=t.getFunctionArguments=t.TileMonitor=t.TimeInterval=t.TimeInfo=t.TimeExtent=t.EngineType=t.RasterInterpolationType=t.NormalizationType=t.TemporalUnit=t.getLayersExtent=t.getCrsOptions=t.getCrsOptionsBySpatialReference=t.getLayerViewsGeographicExtent=t.getValidLayers=t.isLayerViewValid=t.ExpressionParser=t.VectorTileLayer=t.TileSliceType=t.TDTLayerType=t.VisualVariableType=t.SeverVectorTileSubLayerType=t.ColorNameToHexMap=t.GeometryFilter=t.IGSSceneOriginLayerType=t.convertIGSClippingString=t.RasterInfo=t.RasterFunction=t.IGSImageryTileLayer=t.IGSImageryLayer=t.VoxelFilter=t.LOD=t.getFullBaseUrl=t.appendUrlParams=t.TileInfo=t.FetchRequest=t.ArcType=t.AreaUnits=t.LinearUnits=t.allSettled=t.inOrderPromise=t.debouncePromise=t.compareObject=t.throttle=t.getTileLayerNearestCenterAndScale=t.convertImageSourceToBase64=t.isWMTSReverse=t.isWMSReverse=t.getProjectionSrs=t.OGCLayer=t.OverlayLayer=t.UnknownLayer=t.RequestConfig=t.BaseServer=t.TileLayer=t.WorkFlowServer=t.Interceptor=t.CAttStruct=t.CAttDataRow=t.FeatureCollection=t.getZoomOffset=t.WebTileLayer=t.ArcGISVectorTileSubLayer=t.ArcGISVectorTileLayer=t.StylePattern3D=t.ColorMaterial=void 0,t.MaterialType=t.WaveStrength=t.WaterbodySize=t.WaterSymbol3DLayer=t.TextHalo=t.TextSymbol3DLayer=t.Edges3D=t.ExtrudeSymbol3DLayer=t.ObjectSymbol3DLayer=t.IconResource=t.PointSymbol3DOutline=t.IconSymbol3DLayer=t.PatternStyle=t.FillSymbol3DOutline=t.FillSymbol3DLayer=t.ProfileType=t.AnchorType=t.PathSymbol3DLayer=t.LineSymbol3DLayer=t.LineStylePattern3D=t.LinePatternStyle=t.LineStyleMarker3D=t.LineMarkerStyle=t.LineMarkerPlacement=t.LineJoinType=t.LineCapType=t.Symbol3DLayerType=t.Symbol3DLayer=t.Symbol3DVerticalOffset=t.Callout3D=t.LineCallout3D=t.PolygonSymbol3D=t.PointSymbol3D=t.LineSymbol3D=t.LabelSymbol3D=t.Symbol3D=t.RendererUtil=t.VisualVariable=t.OpacityVariable=t.ColorVariable=t.SizeVariable=t.HeatmapColorStop=t.LabelClass=t.setElevationInfo=t.Corporation=t.WMTSCorporation=t.TileInfoUtil=t.BaseFeatureLayerView=t.createSimpleFillSymbolCanvas=t.createSimpleMarkerSymbolCanvas=t.ServiceConfigResponseInterceptors=t.ServiceConfigRequestInterceptors=t.ServiceConfigToken=t.Config=t.editGeometryByArc3=t.editFeatureByArc3=t.Geometry=t.RadiusUnit=t.formatBaseUrl=t.T=t.proj4=t.EPSG=t.isCustomSP=t.is4326=t.getUrlType=t.PictureFormat=t.UrlServerType=t.SpatialReference=t.LayerView=t.GroupLayerView=t.BaseRendererLayerView=t.BaseGraphicsLayerView=t.SceneView=t.MapView=t.BaseView=t.inputCss=t.getBaseUrl=t.toJSON=t.getVideoType=t.isObject=t.notNULL=t.cloneObject=t.returnPoint=t.formatPoints=t.newGuid=t.extendDeep=t.isBoolean=t.deepClone=t.isString=t.Log=t.getOutStatisticsParameter=t.getGeometryParameter=t.isNull=t.limitExtentToSRSMaxExtent=t.getExtendExtentByPixel=t.createGeometry=t.normalize=t.defined=t.defaultValue=t.getGUID=void 0,t.bind=t.getParameterString=t.urlAppend=t.transformResult=t.isInTheSameDomain=t.isNumber=t.isArray=t.extend=t.getIGSDynamicLayer=t.BaseRenderer=t.HeatmapRenderer=t.RankRenderer=t.RandomRenderer=t.ClusterRenderer=t.SimpleRenderer=t.ClassBreakRenderer=t.UniqueValueRenderer=t.MapGISTextSymbol=t.PictureFillSymbol=t.PictureMarkerSymbol=t.Symbol=t.TextSymbol=t.SimpleMarkerSymbol=t.SimpleLineSymbol=t.SimpleFillSymbol=t.BaseSwipeTool=t.SwipeMode=t.ShadowMode=t.SceneMode=t.VerticalAlignment=t.HorizontalAlignment=t.FeatureExpressionInfo=t.ProjectInfoBySrsID=t.TileMatrixSet=t.OutStatistic=t.ProjectInfo=t.ElevationInfo=t.ElevationMode=t.IGSSymbolType=t.SymbolType=t.SketchEditorToolEventType=t.SketchEditorState=t.SketchEditorEventType=t.SketchEditMode=t.SketchDataType=t.VideoSourceType=t.VectorTileGeometryType=t.RendererType=t.AngleUnit=t.LengthUnit=t.ViewEventType=t.LoadStatus=t.LogType=t.IGSGeometryType=t.TokenAttachType=t.SubLayerType=t.LayerType=t.GeometryType=t.CustomWKID=t.SpatialRelation=t.StatisticType=t.MapEventType=t.LayerEventType=t.FetchMethod=t.ReturnFormat=t.getFeaturesFromFeatureSet=t.Feature=t.FeatureSet=t.CollectionFlattener=t.Collection=t.ErrorEvent=t.FeatureRender=t.Evented=t.zondy=t.Zondy=t.Event=t.LayerEvent=t.Font=t.Color=t.GeometryEngine=t.MultiPoint=t.MultiLineString=t.MultiPolygon=t.Circle=t.Point=t.LineString=t.Polygon=t.Extent=t.SketchEditorEvent=t.SketchStyle=t.getTipTextByEditOption=t.SketchFreehandPolygonDrawTool=t.SketchFreehandPolylineDrawTool=t.SketchExtentDrawTool=t.SketchCircleDrawTool=t.SketchPolygonDrawTool=t.SketchPolylineDrawTool=t.SketchPointDrawTool=t.SketchBaseDrawTool=t.SketchEditor3D=void 0,t.SketchEditor=t.CoordnateTransform=t.WMTSStyle=t.Projection=t.Layer=t.S3MTilesCacheLayer=t.VideoLayer=t.TerrainCacheLayer=t.Cesium3DTilesCacheLayer=t.GeoJSONLayer=t.GraphicsLayer=t.GroupLayer=t.MapVLayer=t.EchartsLayer=t.SubLayer=t.ISSceneModelCacheSubLayer=t.ISSceneSubLayer=t.ISSceneLayer=t.FeatureFilter=t.IGSFeatureLayer=t.BaseScene=t.ISScene=t.IGSScene=t.IGSTileLayer=t.IGSSceneTerrainSubLayer=t.IGSSceneMapRefSubLayer=t.IGSSceneModelCacheSubLayer=t.IGSSceneLabelSubLayer=t.IGSSceneSubLayer=t.IGSSceneLayer=t.IGSMapImageSubLayer=t.IGSMapImageLayer=t.IGSVectorTileSubLayer=t.IGSVectorTileLayer=t.WMTSSubLayer=t.WFSLayer=t.WMSSubLayer=t.WMSLayer=t.WMTSLayer=t.ArcGISTileLayer=t.ArcGISMapImageSubLayer=t.M3DModelCacheLayer=t.ArcGISMapImageLayer=t.Basemap=t.Map=t.ArcGISVectorTileServer=t.ArcGISFeatureServer=t.ArcGISGeometryServer=t.ThemesInfo=t.ThemeServer=t.ItemValue=t.FolderInfoAttribute=t.FolderInfo=t.ExpInfo=t.CUniqueThemeInfo=t.CUniqueTheme=t.CThemeInfo=t.CTheme=t.CSimpleTheme=t.CRegInfo=t.CRangeThemeInfo=t.CRangeTheme=t.CRandomTheme=t.CPntInfo=t.CMultiClassTheme=t.CLinInfo=t.CGraduatedSymbolTheme=t.CFourColorTheme=t.CDotDensityTheme=t.CChartType=t.CChartThemeRepresentInfo=t.CChartThemeInfo=t.CChartTheme=t.CChartLabelFormat=t.CAnnInfo=t.CAllOtherDataItemInfoSource=t.ISSceneServer=t.ArcGISMapServer=t.WFSServer=t.WMTSServer=t.WMSServer=t.SceneServer=t.ResourceServer=t.PlotServer=t.VectorTileServer=t.TileServer=t.RootServer=t.SecurityServer=t.TerrainServer=t.PoiServer=t.Cesium3DTilesServer=t.AddressServer=t.GeometryServer=t.ImageServer=t.M3DServer=t.FeatureServer=t.MapServer=t.ResponseInterceptor=t.RequestInterceptor=t.FetchServer=void 0;var n=S(r(24)),i=S(r(268)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(39)),a=r(643),s=r(302),u=r(27),l=r(163),c=r(59),f=r(9),h=r(8),d=r(1),p=r(6),y=r(28),g=r(621),m=r(260),v=r(641),_=r(642);function S(e){return e&&e.__esModule?e:{default:e}}window.zondy={};var b=window.zondy;b.service={},b.geometry={},b.layer={},b.enum={},b.symbol={},b.widget={},b.tool={},b.renderer={},b.renderer.visualvariable={},b.themelayer={},b.util={},b.video={},b.LOGTYPE="warningAndError",b.VERSION="17.6.21",b.service.FetchServer=u.FetchServer,b.service.RequestInterceptor=u.RequestInterceptor,b.service.ResponseInterceptor=u.ResponseInterceptor,b.service.MapServer=u.MapServer,b.service.FeatureServer=u.FeatureServer,b.service.M3DServer=u.M3DServer,b.service.ImageServer=u.ImageServer,b.service.GeometryServer=u.GeometryServer,b.service.AddressServer=u.AddressServer,b.service.Cesium3DTilesServer=u.Cesium3DTilesServer,b.service.PoiServer=u.PoiServer,b.service.TerrainServer=u.TerrainServer,b.service.SecurityServer=u.SecurityServer,b.service.RootServer=u.RootServer,b.service.TileServer=u.TileServer,b.service.VectorTileServer=u.VectorTileServer,b.service.PlotServer=u.PlotServer,b.service.ResourceServer=u.ResourceServer,b.service.SceneServer=u.SceneServer,b.service.WMSServer=u.WMSServer,b.service.WMTSServer=u.WMTSServer,b.service.WFSServer=u.WFSServer,b.service.ArcGISMapServer=u.ArcGISMapServer,b.service.ThemeServer=u.ThemeServer,b.service.ArcGISGeometryServer=u.ArcGISGeometryServer,b.service.ArcGISFeatureServer=u.ArcGISFeatureServer,b.service.ArcGISVectorTileServer=u.ArcGISVectorTileServer,b.service.Config=u.Config,b.service.FetchRequest=u.FetchRequest,b.service.GeometryFilter=u.GeometryFilter,b.service.Interceptor=u.Interceptor,b.service.WorkFlowServer=u.WorkFlowServer,b.service.BaseServer=u.BaseServer,b.service.RequestConfig=u.RequestConfig,b.service.ISSceneServer=u.ISSceneServer,b.themelayer.CAllOtherDataItemInfoSource=u.CAllOtherDataItemInfoSource,b.themelayer.CAnnInfo=u.CAnnInfo,b.themelayer.CChartLabelFormat=u.CChartLabelFormat,b.themelayer.CChartTheme=u.CChartTheme,b.themelayer.CChartThemeInfo=u.CChartThemeInfo,b.themelayer.CChartThemeRepresentInfo=u.CChartThemeRepresentInfo,b.themelayer.CChartType=u.CChartType,b.themelayer.CDotDensityTheme=u.CDotDensityTheme,b.themelayer.CFourColorTheme=u.CFourColorTheme,b.themelayer.CGraduatedSymbolTheme=u.CGraduatedSymbolTheme,b.themelayer.CLinInfo=u.CLinInfo,b.themelayer.CMultiClassTheme=u.CMultiClassTheme,b.themelayer.CPntInfo=u.CPntInfo,b.themelayer.CRandomTheme=u.CRandomTheme,b.themelayer.CRangeTheme=u.CRangeTheme,b.themelayer.CRangeThemeInfo=u.CRangeThemeInfo,b.themelayer.CRegInfo=u.CRegInfo,b.themelayer.CSimpleTheme=u.CSimpleTheme,b.themelayer.CTheme=u.CTheme,b.themelayer.CThemeInfo=u.CThemeInfo,b.themelayer.CUniqueTheme=u.CUniqueTheme,b.themelayer.CUniqueThemeInfo=u.CUniqueThemeInfo,b.themelayer.ExpInfo=u.ExpInfo,b.themelayer.FolderInfo=u.FolderInfo,b.themelayer.FolderInfoAttribute=u.FolderInfoAttribute,b.themelayer.ItemValue=u.ItemValue,b.themelayer.ThemesInfo=u.ThemesInfo,b.layer.WMTSLayer=c.WMTSLayer,b.layer.WMSLayer=c.WMSLayer,b.layer.WMSSubLayer=c.WMSSubLayer,b.layer.WFSLayer=c.WFSLayer,b.layer.WMTSSubLayer=c.WMTSSubLayer,b.layer.VectorTileLayer=c.VectorTileLayer,b.layer.IGSVectorTileLayer=c.IGSVectorTileLayer,b.layer.IGSVectorTileSubLayer=c.IGSVectorTileSubLayer,b.layer.IGSMapImageLayer=c.IGSMapImageLayer,b.layer.IGSMapImageSubLayer=c.IGSMapImageSubLayer,b.layer.IGSSceneLayer=c.IGSSceneLayer,b.layer.IGSSceneSubLayer=c.IGSSceneSubLayer,b.layer.IGSSceneLabelSubLayer=c.IGSSceneLabelSubLayer,b.layer.IGSSceneModelCacheSubLayer=c.IGSSceneModelCacheSubLayer,b.layer.IGSSceneMapRefSubLayer=c.IGSSceneMapRefSubLayer,b.layer.IGSSceneTerrainSubLayer=c.IGSSceneTerrainSubLayer,b.layer.IGSTileLayer=c.IGSTileLayer,b.layer.IGSScene=c.IGSScene,b.layer.ISScene=c.ISScene,b.layer.BaseScene=c.BaseScene,b.layer.IGSFeatureLayer=c.IGSFeatureLayer,b.layer.FeatureFilter=c.FeatureFilter,b.layer.EchartsLayer=c.EchartsLayer,b.layer.MapVLayer=c.MapVLayer,b.layer.GroupLayer=c.GroupLayer,b.layer.GraphicsLayer=c.GraphicsLayer,b.layer.GeoJSONLayer=c.GeoJSONLayer,b.layer.Cesium3DTilesCacheLayer=c.Cesium3DTilesCacheLayer,b.layer.TerrainCacheLayer=c.TerrainCacheLayer,b.layer.VideoLayer=c.VideoLayer,b.layer.LabelClass=c.LabelClass,b.layer.ArcGISMapImageLayer=c.ArcGISMapImageLayer,b.layer.ArcGISMapImageSubLayer=c.ArcGISMapImageSubLayer,b.layer.M3DModelCacheLayer=c.M3DModelCacheLayer,b.layer.ArcGISTileLayer=c.ArcGISTileLayer,b.layer.Layer=c.Layer,b.layer.ArcGISVectorTileLayer=c.ArcGISVectorTileLayer,b.layer.ArcGISVectorTileSubLayer=c.ArcGISVectorTileSubLayer,b.layer.WebTileLayer=c.WebTileLayer,b.layer.TileInfo=c.TileInfo,b.layer.LOD=c.LOD,b.layer.VoxelFilter=c.VoxelFilter,b.layer.IGSImageryLayer=c.IGSImageryLayer,b.layer.IGSImageryTileLayer=c.IGSImageryTileLayer,b.layer.RasterFunction=c.RasterFunction,b.layer.RasterInfo=c.RasterInfo,b.layer.TileLayer=c.TileLayer,b.layer.UnknownLayer=c.UnknownLayer,b.layer.OverlayLayer=c.OverlayLayer,b.layer.OGCLayer=c.OGCLayer,b.layer.ISSceneLayer=c.ISSceneLayer,b.layer.ISSceneSubLayer=c.ISSceneSubLayer,b.layer.ISSceneModelCacheSubLayer=c.ISSceneModelCacheSubLayer,b.layer.SubLayer=c.SubLayer,b.layer.S3MTilesCacheLayer=c.S3MTilesCacheLayer,b.Map=c.Map,b.Basemap=c.Basemap,b.SpatialReference=f.SpatialReference,b.Color=h.Color,b.Collection=h.Collection,b.CollectionFlattener=h.CollectionFlattener,b.FeatureSet=h.FeatureSet,b.Feature=h.Feature,b.ElevationInfo=h.ElevationInfo,b.ProjectInfo=h.ProjectInfo,b.OutStatistic=h.OutStatistic,b.TileMatrixSet=h.TileMatrixSet,b.ProjectInfoBySrsID=h.ProjectInfoBySrsID,b.FeatureExpressionInfo=h.FeatureExpressionInfo,b.BaseView=g.BaseView,b.MapView=g.MapView,b.SceneView=g.SceneView,b.BaseFeatureLayerView=g.BaseFeatureLayerView,b.BaseRendererLayerView=g.BaseRendererLayerView,b.GroupLayerView=g.GroupLayerView,b.WMTSStyle=h.WMTSStyle,b.CAttDataRow=u.CAttDataRow,b.CAttStruct=u.CAttStruct,b.TimeExtent=h.TimeExtent,b.TimeInfo=h.TimeInfo,b.TimeInterval=h.TimeInterval,b.TileMonitor=h.TileMonitor,b.renderer.UniqueValueRenderer=c.UniqueValueRenderer,b.renderer.ClassBreakRenderer=c.ClassBreakRenderer,b.renderer.SimpleRenderer=c.SimpleRenderer,b.renderer.ClusterRenderer=c.ClusterRenderer,b.renderer.RandomRenderer=c.RandomRenderer,b.renderer.RankRenderer=c.RankRenderer,b.renderer.HeatmapRenderer=c.HeatmapRenderer,b.renderer.BaseRenderer=c.BaseRenderer,b.renderer.HeatmapColorStop=c.HeatmapColorStop,b.renderer.visualvariable.SizeVariable=c.SizeVariable,b.renderer.visualvariable.ColorVariable=c.ColorVariable,b.renderer.visualvariable.OpacityVariable=c.OpacityVariable,b.renderer.visualvariable.VisualVariable=c.VisualVariable,b.geometry.Extent=f.Extent,b.geometry.Polygon=f.Polygon,b.geometry.MultiPolygon=f.MultiPolygon,b.geometry.LineString=f.LineString,b.geometry.MultiLineString=f.MultiLineString,b.geometry.Point=f.Point,b.geometry.MultiPoint=f.MultiPoint,b.geometry.Circle=f.Circle,b.geometry.GeometryEngine=f.GeometryEngine,b.geometry.Geometry=f.Geometry,b.geometry.Projection=h.Projection,b.geometry.Proj4=i.default,b.geometry.T=o,b.enum.ReturnFormat=p.ReturnFormat,b.enum.FetchMethod=p.FetchMethod,b.enum.LayerEventType=p.LayerEventType,b.enum.MapEventType=p.MapEventType,b.enum.StatisticType=p.StatisticType,b.enum.SpatialRelation=p.SpatialRelation,b.enum.CustomWKID=p.CustomWKID,b.enum.LayerType=p.LayerType,b.enum.SubLayerType=p.SubLayerType,b.enum.TokenAttachType=p.TokenAttachType,b.enum.IGSGeometryType=p.IGSGeometryType,b.enum.LogType=p.LogType,b.enum.LoadStatus=p.LoadStatus,b.enum.ViewEventType=p.ViewEventType,b.enum.LengthUnit=p.LengthUnit,b.enum.AngleUnit=p.AngleUnit,b.enum.RendererType=p.RendererType,b.enum.VectorTileGeometryType=p.VectorTileGeometryType,b.enum.VideoSourceType=p.VideoSourceType,b.enum.SketchDataType=p.SketchDataType,b.enum.SketchEditMode=p.SketchEditMode,b.enum.SketchEditorEventType=p.SketchEditorEventType,b.enum.SketchEditorState=p.SketchEditorState,b.enum.SketchEditorToolEventType=p.SketchEditorToolEventType,b.enum.SymbolType=p.SymbolType,b.enum.IGSSymbolType=p.IGSSymbolType,b.enum.ElevationMode=p.ElevationMode,b.enum.HorizontalAlignment=p.HorizontalAlignment,b.enum.VerticalAlignment=p.VerticalAlignment,b.enum.SceneMode=p.SceneMode,b.enum.ShadowMode=p.ShadowMode,b.enum.SwipeMode=p.SwipeMode,b.enum.UrlServerType=p.UrlServerType,b.enum.PictureFormat=p.PictureFormat,b.enum.RadiusUnit=p.RadiusUnit,b.enum.WMTSCorporation=p.WMTSCorporation,b.enum.Corporation=p.Corporation,b.enum.Symbol3DLayerType=p.Symbol3DLayerType,b.enum.LineCapType=p.LineCapType,b.enum.LineJoinType=p.LineJoinType,b.enum.LineMarkerPlacement=p.LineMarkerPlacement,b.enum.LineMarkerStyle=p.LineMarkerStyle,b.enum.LinePatternStyle=p.LinePatternStyle,b.enum.AnchorType=p.AnchorType,b.enum.ProfileType=p.ProfileType,b.enum.PatternStyle=p.PatternStyle,b.enum.WaterbodySize=p.WaterbodySize,b.enum.WaveStrength=p.WaveStrength,b.enum.MaterialType=p.MaterialType,b.enum.LinearUnits=p.LinearUnits,b.enum.AreaUnits=p.AreaUnits,b.enum.ArcType=p.ArcType,b.enum.IGSSceneOriginLayerType=p.IGSSceneOriginLayerType,b.enum.ColorNameToHexMap=p.ColorNameToHexMap,b.enum.SeverVectorTileSubLayerType=p.SeverVectorTileSubLayerType,b.enum.GeometryType=p.GeometryType,b.enum.VisualVariableType=p.VisualVariableType,b.enum.TDTLayerType=p.TDTLayerType,b.enum.TileSliceType=p.TileSliceType,b.enum.TemporalUnit=p.TemporalUnit,b.enum.NormalizationType=p.NormalizationType,b.enum.RasterInterpolationType=p.RasterInterpolationType,b.enum.EngineType=p.EngineType,b.util.formatBaseUrl=u.formatBaseUrl,b.util.ServiceConfigToken=u.ServiceConfigToken,b.util.ServiceConfigRequestInterceptors=u.ServiceConfigRequestInterceptors,b.util.ServiceConfigResponseInterceptors=u.ServiceConfigResponseInterceptors,b.util.convertIGSClippingString=u.convertIGSClippingString,b.util.getUrlType=c.getUrlType,b.util.is4326=c.is4326,b.util.isCustomSP=c.isCustomSP,b.util.getIGSDynamicLayer=c.getIGSDynamicLayer,b.util.setElevationInfo=c.setElevationInfo,b.util.TileInfoUtil=c.TileInfoUtil,b.util.getZoomOffset=c.getZoomOffset,b.util.appendUrlParams=c.appendUrlParams,b.util.getFullBaseUrl=c.getFullBaseUrl,b.util.editFeatureByArc3=f.editFeatureByArc3,b.util.editGeometryByArc3=f.editGeometryByArc3,b.util.CoordnateTransform=h.CoordnateTransform,b.util.getFeaturesFromFeatureSet=h.getFeaturesFromFeatureSet,b.util.EPSG=h.EPSG,b.util.extend=d.extend,b.util.isArray=d.isArray,b.util.isNumber=d.isNumber,b.util.isInTheSameDomain=d.isInTheSameDomain,b.util.transformResult=d.transformResult,b.util.urlAppend=d.urlAppend,b.util.getParameterString=d.getParameterString,b.util.bind=d.bind,b.util.getGUID=d.getGUID,b.util.defaultValue=d.defaultValue,b.util.defined=d.defined,b.util.normalize=d.normalize,b.util.createGeometry=d.createGeometry,b.util.getExtendExtentByPixel=d.getExtendExtentByPixel,b.util.limitExtentToSRSMaxExtent=d.limitExtentToSRSMaxExtent,b.util.isNull=d.isNull,b.util.getGeometryParameter=d.getGeometryParameter,b.util.getOutStatisticsParameter=d.getOutStatisticsParameter,b.util.Log=d.Log,b.util.isString=d.isString,b.util.deepClone=d.deepClone,b.util.isBoolean=d.isBoolean,b.util.extendDeep=d.extendDeep,b.util.newGuid=d.newGuid,b.util.formatPoints=d.formatPoints,b.util.returnPoint=d.returnPoint,b.util.cloneObject=d.cloneObject,b.util.notNULL=d.notNULL,b.util.isObject=d.isObject,b.util.getVideoType=d.getVideoType,b.util.toJSON=d.toJSON,b.util.getBaseUrl=d.getBaseUrl,b.util.inputCss=d.inputCss,b.util.getProjectionSrs=d.getProjectionSrs,b.util.isWMSReverse=d.isWMSReverse,b.util.isWMTSReverse=d.isWMTSReverse,b.util.convertImageSourceToBase64=d.convertImageSourceToBase64,b.util.getTileLayerNearestCenterAndScale=d.getTileLayerNearestCenterAndScale,b.util.throttle=d.throttle,b.util.compareObject=d.compareObject,b.util.debouncePromise=d.debouncePromise,b.util.inOrderPromise=d.inOrderPromise,b.util.allSettled=d.allSettled,b.util.ExpressionParser=d.ExpressionParser,b.util.RendererUtil=g.RendererUtil,b.util.createSimpleMarkerSymbolCanvas=v.createSimpleMarkerSymbolCanvas,b.util.createSimpleFillSymbolCanvas=v.createSimpleFillSymbolCanvas,b.util.isLayerViewValid=l.isLayerViewValid,b.util.getValidLayers=l.getValidLayers,b.util.getLayerViewsGeographicExtent=l.getLayerViewsGeographicExtent,b.util.getCrsOptionsBySpatialReference=l.getCrsOptionsBySpatialReference,b.util.getCrsOptions=l.getCrsOptions,b.util.getLayersExtent=l.getLayersExtent,b.util.getFunctionArguments=d.getFunctionArguments,b.util.deleteNullValue=d.deleteNullValue,b.util.ServerUtil=u.ServerUtil,b.util.UrlUtil=u.UrlUtil,b.util.BaseRegExp=u.BaseRegExp,b.util.ServerBaseUrlRegExp=u.ServerBaseUrlRegExp,b.util.LayerBaseUrlRegExp=u.LayerBaseUrlRegExp,b.util.formatWebTileUrl=c.formatWebTileUrl,b.util.decryptIGS=a.decryptIGS,b.util.buildModuleUrl=d.buildModuleUrl,b.util.getMapGISBaseUrl=d.getMapGISBaseUrl,b.symbol.SimpleFillSymbol=y.SimpleFillSymbol,b.symbol.SimpleLineSymbol=y.SimpleLineSymbol,b.symbol.SimpleMarkerSymbol=y.SimpleMarkerSymbol,b.symbol.TextSymbol=y.TextSymbol,b.symbol.Symbol=y.Symbol,b.symbol.PictureMarkerSymbol=y.PictureMarkerSymbol,b.symbol.PictureFillSymbol=y.PictureFillSymbol,b.symbol.MapGISTextSymbol=y.MapGISTextSymbol,b.symbol.Symbol3D=y.Symbol3D,b.symbol.LabelSymbol3D=y.LabelSymbol3D,b.symbol.LineSymbol3D=y.LineSymbol3D,b.symbol.PointSymbol3D=y.PointSymbol3D,b.symbol.PolygonSymbol3D=y.PolygonSymbol3D,b.symbol.LineCallout3D=y.LineCallout3D,b.symbol.Callout3D=y.Callout3D,b.symbol.Symbol3DVerticalOffset=y.Symbol3DVerticalOffset,b.symbol.Symbol3DLayer=y.Symbol3DLayer,b.symbol.LineStyleMarker3D=y.LineStyleMarker3D,b.symbol.LineStylePattern3D=y.LineStylePattern3D,b.symbol.LineSymbol3DLayer=y.LineSymbol3DLayer,b.symbol.PathSymbol3DLayer=y.PathSymbol3DLayer,b.symbol.FillSymbol3DLayer=y.FillSymbol3DLayer,b.symbol.FillSymbol3DOutline=y.FillSymbol3DOutline,b.symbol.IconSymbol3DLayer=y.IconSymbol3DLayer,b.symbol.PointSymbol3DOutline=y.PointSymbol3DOutline,b.symbol.IconResource=y.IconResource,b.symbol.ObjectSymbol3DLayer=y.ObjectSymbol3DLayer,b.symbol.ExtrudeSymbol3DLayer=y.ExtrudeSymbol3DLayer,b.symbol.Edges3D=y.Edges3D,b.symbol.TextSymbol3DLayer=y.TextSymbol3DLayer,b.symbol.TextHalo=y.TextHalo,b.symbol.WaterSymbol3DLayer=y.WaterSymbol3DLayer,b.symbol.ColorMaterial=y.ColorMaterial,b.symbol.StylePattern3D=y.StylePattern3D,b.symbol.Font=h.Font,b.tool.sketch={},b.tool.sketch.SketchStyle=m.SketchStyle,b.tool.sketch.SketchEditorEvent=m.SketchEditorEvent,b.tool.sketch.SketchEditor=m.SketchEditor,b.tool.sketch.SketchEditor3D=m.SketchEditor3D,b.tool.sketch.SketchBaseDrawTool=m.SketchBaseDrawTool,b.tool.sketch.SketchPointDrawTool=m.SketchPointDrawTool,b.tool.sketch.SketchPolylineDrawTool=m.SketchPolylineDrawTool,b.tool.sketch.SketchPolygonDrawTool=m.SketchPolygonDrawTool,b.tool.sketch.SketchCircleDrawTool=m.SketchCircleDrawTool,b.tool.sketch.SketchExtentDrawTool=m.SketchExtentDrawTool,b.tool.sketch.SketchFreehandPolylineDrawTool=m.SketchFreehandPolylineDrawTool,b.tool.sketch.SketchFreehandPolygonDrawTool=m.SketchFreehandPolygonDrawTool,b.tool.sketch.Utils={},b.tool.sketch.Utils.getTipTextByEditOption=m.getTipTextByEditOption,b.tool.BaseSwipeTool=s.BaseSwipeTool,window.Zondy={};var x=window.Zondy;x.Service=b.service,x.Geometry=b.geometry,x.Layer=b.layer,x.Enum=b.enum,x.Symbol=b.symbol,x.Widget=b.widget,x.Tool={},x.Tool.Sketch=b.widget.sketch,x.Renderer={},(0,n.default)(b.renderer).forEach(function(e){"visualvariable"!==e&&(x.Renderer[e]=b.renderer[e])}),x.Renderer.VisualVariable=b.renderer.visualvariable,x.Object={},x.Object.Theme={},x.Object.Theme.CAllOtherDataItemInfoSource=u.CAllOtherDataItemInfoSource,x.Object.Theme.CAnnInfo=u.CAnnInfo,x.Object.Theme.CChartLabelFormat=u.CChartLabelFormat,x.Object.Theme.CChartTheme=u.CChartTheme,x.Object.Theme.CChartThemeInfo=u.CChartThemeInfo,x.Object.Theme.CChartThemeRepresentInfo=u.CChartThemeRepresentInfo,x.Object.Theme.CChartType=u.CChartType,x.Object.Theme.CDotDensityTheme=u.CDotDensityTheme,x.Object.Theme.CFourColorTheme=u.CFourColorTheme,x.Object.Theme.CGraduatedSymbolTheme=u.CGraduatedSymbolTheme,x.Object.Theme.CLinInfo=u.CLinInfo,x.Object.Theme.CMultiClassTheme=u.CMultiClassTheme,x.Object.Theme.CPntInfo=u.CPntInfo,x.Object.Theme.CRandomTheme=u.CRandomTheme,x.Object.Theme.CRangeTheme=u.CRangeTheme,x.Object.Theme.CRangeThemeInfo=u.CRangeThemeInfo,x.Object.Theme.CRegInfo=u.CRegInfo,x.Object.Theme.CSimpleTheme=u.CSimpleTheme,x.Object.Theme.CTheme=u.CTheme,x.Object.Theme.CThemeInfo=u.CThemeInfo,x.Object.Theme.CUniqueTheme=u.CUniqueTheme,x.Object.Theme.CUniqueThemeInfo=u.CUniqueThemeInfo,x.Object.Theme.ExpInfo=u.ExpInfo,x.Object.Theme.FolderInfo=u.FolderInfo,x.Object.Theme.FolderInfoAttribute=u.FolderInfoAttribute,x.Object.Theme.ItemValue=u.ItemValue,x.Object.Theme.ThemesInfo=u.ThemesInfo,x.Object.CAttDataRow=u.CAttDataRow,x.Object.CAttStruct=u.CAttStruct,x.Utils=b.util,x.Map=c.Map,x.Basemap=c.Basemap,x.SpatialReference=f.SpatialReference,x.Color=h.Color,x.Font=h.Font,x.Collection=h.Collection,x.FeatureSet=h.FeatureSet,x.Feature=h.Feature,x.ElevationInfo=h.ElevationInfo,x.ProjectInfo=h.ProjectInfo,x.OutStatistic=h.OutStatistic,x.TileMatrixSet=h.TileMatrixSet,x.ProjectInfoBySrsID=h.ProjectInfoBySrsID,x.FeatureExpressionInfo=h.FeatureExpressionInfo,x.BaseView=g.BaseView,x.MapView=g.MapView,x.SceneView=g.SceneView,x.BaseFeatureLayerView=g.BaseFeatureLayerView,x.BaseRendererLayerView=g.BaseRendererLayerView,x.GroupLayerView=g.GroupLayerView,x.WMTSStyle=h.WMTSStyle,x.SketchPolygonDrawTool=m.SketchPolygonDrawTool,x.SketchStyle=m.SketchStyle,x.LogType=b.LOGTYPE,x.Version=b.VERSION;var w={FetchServer:u.FetchServer,RequestInterceptor:u.RequestInterceptor,ResponseInterceptor:u.ResponseInterceptor,MapServer:u.MapServer,FeatureServer:u.FeatureServer,M3DServer:u.M3DServer,ImageServer:u.ImageServer,GeometryServer:u.GeometryServer,AddressServer:u.AddressServer,Cesium3DTilesServer:u.Cesium3DTilesServer,PoiServer:u.PoiServer,TerrainServer:u.TerrainServer,SecurityServer:u.SecurityServer,RootServer:u.RootServer,TileServer:u.TileServer,VectorTileServer:u.VectorTileServer,PlotServer:u.PlotServer,ResourceServer:u.ResourceServer,SceneServer:u.SceneServer,WMSServer:u.WMSServer,WMTSServer:u.WMTSServer,WFSServer:u.WFSServer,ArcGISMapServer:u.ArcGISMapServer,ISSceneServer:u.ISSceneServer,CAllOtherDataItemInfoSource:u.CAllOtherDataItemInfoSource,CAnnInfo:u.CAnnInfo,CChartLabelFormat:u.CChartLabelFormat,CChartTheme:u.CChartTheme,CChartThemeInfo:u.CChartThemeInfo,CChartThemeRepresentInfo:u.CChartThemeRepresentInfo,CChartType:u.CChartType,CDotDensityTheme:u.CDotDensityTheme,CFourColorTheme:u.CFourColorTheme,CGraduatedSymbolTheme:u.CGraduatedSymbolTheme,CLinInfo:u.CLinInfo,CMultiClassTheme:u.CMultiClassTheme,CPntInfo:u.CPntInfo,CRandomTheme:u.CRandomTheme,CRangeTheme:u.CRangeTheme,CRangeThemeInfo:u.CRangeThemeInfo,CRegInfo:u.CRegInfo,CSimpleTheme:u.CSimpleTheme,CTheme:u.CTheme,CThemeInfo:u.CThemeInfo,CUniqueTheme:u.CUniqueTheme,CUniqueThemeInfo:u.CUniqueThemeInfo,ExpInfo:u.ExpInfo,FolderInfo:u.FolderInfo,FolderInfoAttribute:u.FolderInfoAttribute,ItemValue:u.ItemValue,ThemeServer:u.ThemeServer,ThemesInfo:u.ThemesInfo,ArcGISGeometryServer:u.ArcGISGeometryServer,ArcGISFeatureServer:u.ArcGISFeatureServer,ArcGISVectorTileServer:u.ArcGISVectorTileServer,Map:c.Map,Basemap:c.Basemap,ArcGISMapImageLayer:c.ArcGISMapImageLayer,M3DModelCacheLayer:c.M3DModelCacheLayer,ArcGISMapImageSubLayer:c.ArcGISMapImageSubLayer,ArcGISTileLayer:c.ArcGISTileLayer,WMTSLayer:c.WMTSLayer,WMSLayer:c.WMSLayer,WMSSubLayer:c.WMSSubLayer,WFSLayer:c.WFSLayer,WMTSSubLayer:c.WMTSSubLayer,IGSVectorTileLayer:c.IGSVectorTileLayer,IGSVectorTileSubLayer:c.IGSVectorTileSubLayer,IGSMapImageLayer:c.IGSMapImageLayer,IGSMapImageSubLayer:c.IGSMapImageSubLayer,IGSSceneLayer:c.IGSSceneLayer,IGSSceneSubLayer:c.IGSSceneSubLayer,IGSSceneLabelSubLayer:c.IGSSceneLabelSubLayer,IGSSceneModelCacheSubLayer:c.IGSSceneModelCacheSubLayer,IGSSceneMapRefSubLayer:c.IGSSceneMapRefSubLayer,IGSSceneTerrainSubLayer:c.IGSSceneTerrainSubLayer,IGSTileLayer:c.IGSTileLayer,IGSScene:c.IGSScene,ISScene:c.ISScene,BaseScene:c.BaseScene,IGSFeatureLayer:c.IGSFeatureLayer,FeatureFilter:c.FeatureFilter,ISSceneLayer:c.ISSceneLayer,ISSceneSubLayer:c.ISSceneSubLayer,ISSceneModelCacheSubLayer:c.ISSceneModelCacheSubLayer,SubLayer:c.SubLayer,EchartsLayer:c.EchartsLayer,MapVLayer:c.MapVLayer,GroupLayer:c.GroupLayer,GraphicsLayer:c.GraphicsLayer,GeoJSONLayer:c.GeoJSONLayer,Cesium3DTilesCacheLayer:c.Cesium3DTilesCacheLayer,TerrainCacheLayer:c.TerrainCacheLayer,VideoLayer:c.VideoLayer,S3MTilesCacheLayer:c.S3MTilesCacheLayer,Layer:c.Layer,Projection:h.Projection,WMTSStyle:h.WMTSStyle,CoordnateTransform:h.CoordnateTransform,SketchEditor:m.SketchEditor,SketchEditor3D:m.SketchEditor3D,SketchBaseDrawTool:m.SketchBaseDrawTool,SketchPointDrawTool:m.SketchPointDrawTool,SketchPolylineDrawTool:m.SketchPolylineDrawTool,SketchPolygonDrawTool:m.SketchPolygonDrawTool,SketchCircleDrawTool:m.SketchCircleDrawTool,SketchExtentDrawTool:m.SketchExtentDrawTool,SketchFreehandPolylineDrawTool:m.SketchFreehandPolylineDrawTool,SketchFreehandPolygonDrawTool:m.SketchFreehandPolygonDrawTool,getTipTextByEditOption:m.getTipTextByEditOption,SketchStyle:m.SketchStyle,SketchEditorEvent:m.SketchEditorEvent,Extent:f.Extent,Polygon:f.Polygon,LineString:f.LineString,Point:f.Point,Circle:f.Circle,MultiPolygon:f.MultiPolygon,MultiLineString:f.MultiLineString,MultiPoint:f.MultiPoint,GeometryEngine:f.GeometryEngine,Color:h.Color,Font:h.Font,LayerEvent:h.LayerEvent,Event:h.Event,Zondy:x,zondy:b,Evented:h.Evented,FeatureRender:h.FeatureRender,ErrorEvent:h.ErrorEvent,Collection:h.Collection,CollectionFlattener:h.CollectionFlattener,FeatureSet:h.FeatureSet,Feature:h.Feature,getFeaturesFromFeatureSet:h.getFeaturesFromFeatureSet,ReturnFormat:p.ReturnFormat,FetchMethod:p.FetchMethod,LayerEventType:p.LayerEventType,MapEventType:p.MapEventType,StatisticType:p.StatisticType,SpatialRelation:p.SpatialRelation,CustomWKID:p.CustomWKID,GeometryType:p.GeometryType,LayerType:p.LayerType,SubLayerType:p.SubLayerType,TokenAttachType:p.TokenAttachType,IGSGeometryType:p.IGSGeometryType,LogType:p.LogType,LoadStatus:p.LoadStatus,ViewEventType:p.ViewEventType,LengthUnit:p.LengthUnit,AngleUnit:p.AngleUnit,RendererType:p.RendererType,VectorTileGeometryType:p.VectorTileGeometryType,VideoSourceType:p.VideoSourceType,SketchDataType:p.SketchDataType,SketchEditMode:p.SketchEditMode,SketchEditorEventType:p.SketchEditorEventType,SketchEditorState:p.SketchEditorState,SketchEditorToolEventType:p.SketchEditorToolEventType,SymbolType:p.SymbolType,IGSSymbolType:p.IGSSymbolType,ElevationMode:p.ElevationMode,ElevationInfo:h.ElevationInfo,ProjectInfo:h.ProjectInfo,OutStatistic:h.OutStatistic,TileMatrixSet:h.TileMatrixSet,ProjectInfoBySrsID:h.ProjectInfoBySrsID,FeatureExpressionInfo:h.FeatureExpressionInfo,HorizontalAlignment:p.HorizontalAlignment,VerticalAlignment:p.VerticalAlignment,SceneMode:p.SceneMode,ShadowMode:p.ShadowMode,SwipeMode:p.SwipeMode,BaseSwipeTool:s.BaseSwipeTool,SimpleFillSymbol:y.SimpleFillSymbol,SimpleLineSymbol:y.SimpleLineSymbol,SimpleMarkerSymbol:y.SimpleMarkerSymbol,TextSymbol:y.TextSymbol,Symbol:y.Symbol,PictureMarkerSymbol:y.PictureMarkerSymbol,PictureFillSymbol:y.PictureFillSymbol,MapGISTextSymbol:y.MapGISTextSymbol,UniqueValueRenderer:c.UniqueValueRenderer,ClassBreakRenderer:c.ClassBreakRenderer,SimpleRenderer:c.SimpleRenderer,ClusterRenderer:c.ClusterRenderer,RandomRenderer:c.RandomRenderer,RankRenderer:c.RankRenderer,HeatmapRenderer:c.HeatmapRenderer,BaseRenderer:c.BaseRenderer,getIGSDynamicLayer:c.getIGSDynamicLayer,extend:d.extend,isArray:d.isArray,isNumber:d.isNumber,isInTheSameDomain:d.isInTheSameDomain,transformResult:d.transformResult,urlAppend:d.urlAppend,getParameterString:d.getParameterString,bind:d.bind,getGUID:d.getGUID,defaultValue:d.defaultValue,defined:d.defined,normalize:d.normalize,createGeometry:d.createGeometry,getExtendExtentByPixel:d.getExtendExtentByPixel,limitExtentToSRSMaxExtent:d.limitExtentToSRSMaxExtent,isNull:d.isNull,getGeometryParameter:d.getGeometryParameter,getOutStatisticsParameter:d.getOutStatisticsParameter,Log:d.Log,isString:d.isString,deepClone:d.deepClone,isBoolean:d.isBoolean,extendDeep:d.extendDeep,newGuid:d.newGuid,formatPoints:d.formatPoints,returnPoint:d.returnPoint,cloneObject:d.cloneObject,notNULL:d.notNULL,isObject:d.isObject,getVideoType:d.getVideoType,toJSON:d.toJSON,getBaseUrl:d.getBaseUrl,inputCss:d.inputCss,BaseView:g.BaseView,MapView:g.MapView,SceneView:g.SceneView,BaseGraphicsLayerView:g.BaseGraphicsLayerView,BaseRendererLayerView:g.BaseRendererLayerView,GroupLayerView:g.GroupLayerView,LayerView:g.LayerView,SpatialReference:f.SpatialReference,UrlServerType:p.UrlServerType,PictureFormat:p.PictureFormat,getUrlType:c.getUrlType,is4326:c.is4326,isCustomSP:c.isCustomSP,EPSG:h.EPSG,proj4:i.default,T:o,formatBaseUrl:u.formatBaseUrl,RadiusUnit:p.RadiusUnit,Geometry:f.Geometry,editFeatureByArc3:f.editFeatureByArc3,editGeometryByArc3:f.editGeometryByArc3,Config:u.Config,ServiceConfigToken:u.ServiceConfigToken,ServiceConfigRequestInterceptors:u.ServiceConfigRequestInterceptors,ServiceConfigResponseInterceptors:u.ServiceConfigResponseInterceptors,createSimpleMarkerSymbolCanvas:v.createSimpleMarkerSymbolCanvas,createSimpleFillSymbolCanvas:v.createSimpleFillSymbolCanvas,BaseFeatureLayerView:g.BaseFeatureLayerView,TileInfoUtil:c.TileInfoUtil,WMTSCorporation:p.WMTSCorporation,Corporation:p.Corporation,setElevationInfo:c.setElevationInfo,LabelClass:c.LabelClass,HeatmapColorStop:c.HeatmapColorStop,SizeVariable:c.SizeVariable,ColorVariable:c.ColorVariable,OpacityVariable:c.OpacityVariable,VisualVariable:c.VisualVariable,RendererUtil:g.RendererUtil,Symbol3D:y.Symbol3D,LabelSymbol3D:y.LabelSymbol3D,LineSymbol3D:y.LineSymbol3D,PointSymbol3D:y.PointSymbol3D,PolygonSymbol3D:y.PolygonSymbol3D,LineCallout3D:y.LineCallout3D,Callout3D:y.Callout3D,Symbol3DVerticalOffset:y.Symbol3DVerticalOffset,Symbol3DLayer:y.Symbol3DLayer,Symbol3DLayerType:p.Symbol3DLayerType,LineCapType:p.LineCapType,LineJoinType:p.LineJoinType,LineMarkerPlacement:p.LineMarkerPlacement,LineMarkerStyle:p.LineMarkerStyle,LineStyleMarker3D:y.LineStyleMarker3D,LinePatternStyle:p.LinePatternStyle,LineStylePattern3D:y.LineStylePattern3D,LineSymbol3DLayer:y.LineSymbol3DLayer,PathSymbol3DLayer:y.PathSymbol3DLayer,AnchorType:p.AnchorType,ProfileType:p.ProfileType,FillSymbol3DLayer:y.FillSymbol3DLayer,FillSymbol3DOutline:y.FillSymbol3DOutline,PatternStyle:p.PatternStyle,IconSymbol3DLayer:y.IconSymbol3DLayer,PointSymbol3DOutline:y.PointSymbol3DOutline,IconResource:y.IconResource,ObjectSymbol3DLayer:y.ObjectSymbol3DLayer,ExtrudeSymbol3DLayer:y.ExtrudeSymbol3DLayer,Edges3D:y.Edges3D,TextSymbol3DLayer:y.TextSymbol3DLayer,TextHalo:y.TextHalo,WaterSymbol3DLayer:y.WaterSymbol3DLayer,WaterbodySize:p.WaterbodySize,WaveStrength:p.WaveStrength,MaterialType:p.MaterialType,ColorMaterial:y.ColorMaterial,StylePattern3D:y.StylePattern3D,ArcGISVectorTileLayer:c.ArcGISVectorTileLayer,ArcGISVectorTileSubLayer:c.ArcGISVectorTileSubLayer,WebTileLayer:c.WebTileLayer,getZoomOffset:c.getZoomOffset,FeatureCollection:c.FeatureCollection,CAttDataRow:u.CAttDataRow,CAttStruct:u.CAttStruct,Interceptor:u.Interceptor,WorkFlowServer:u.WorkFlowServer,TileLayer:c.TileLayer,BaseServer:u.BaseServer,RequestConfig:u.RequestConfig,OverlayLayer:c.OverlayLayer,OGCLayer:c.OGCLayer,UnknownLayer:c.UnknownLayer,getProjectionSrs:d.getProjectionSrs,isWMSReverse:d.isWMSReverse,isWMTSReverse:d.isWMTSReverse,convertImageSourceToBase64:d.convertImageSourceToBase64,getTileLayerNearestCenterAndScale:d.getTileLayerNearestCenterAndScale,throttle:d.throttle,compareObject:d.compareObject,debouncePromise:d.debouncePromise,inOrderPromise:d.inOrderPromise,allSettled:d.allSettled,LinearUnits:p.LinearUnits,AreaUnits:p.AreaUnits,ArcType:p.ArcType,FetchRequest:u.FetchRequest,TileInfo:c.TileInfo,appendUrlParams:c.appendUrlParams,getFullBaseUrl:c.getFullBaseUrl,LOD:c.LOD,VoxelFilter:c.VoxelFilter,IGSImageryLayer:c.IGSImageryLayer,IGSImageryTileLayer:c.IGSImageryTileLayer,RasterFunction:c.RasterFunction,RasterInfo:c.RasterInfo,convertIGSClippingString:u.convertIGSClippingString,IGSSceneOriginLayerType:p.IGSSceneOriginLayerType,GeometryFilter:u.GeometryFilter,ColorNameToHexMap:p.ColorNameToHexMap,VectorTileLayer:c.VectorTileLayer,SeverVectorTileSubLayerType:p.SeverVectorTileSubLayerType,ExpressionParser:d.ExpressionParser,VisualVariableType:p.VisualVariableType,TDTLayerType:p.TDTLayerType,TileSliceType:p.TileSliceType,isLayerViewValid:l.isLayerViewValid,getValidLayers:l.getValidLayers,getLayerViewsGeographicExtent:l.getLayerViewsGeographicExtent,getCrsOptionsBySpatialReference:l.getCrsOptionsBySpatialReference,getCrsOptions:l.getCrsOptions,getLayersExtent:l.getLayersExtent,TemporalUnit:p.TemporalUnit,NormalizationType:p.NormalizationType,RasterInterpolationType:p.RasterInterpolationType,EngineType:p.EngineType,TimeExtent:h.TimeExtent,TimeInfo:h.TimeInfo,TimeInterval:h.TimeInterval,TileMonitor:h.TileMonitor,getFunctionArguments:d.getFunctionArguments,UrlUtil:u.UrlUtil,ServerUtil:u.ServerUtil,deleteNullValue:d.deleteNullValue,BaseRegExp:u.BaseRegExp,ServerBaseUrlRegExp:u.ServerBaseUrlRegExp,LayerBaseUrlRegExp:u.LayerBaseUrlRegExp,formatWebTileUrl:c.formatWebTileUrl,buildModuleUrl:d.buildModuleUrl,getMapGISBaseUrl:d.getMapGISBaseUrl};window.MapGISCommon=w,(0,_.initMapGISEvn)(),t.FetchServer=u.FetchServer,t.RequestInterceptor=u.RequestInterceptor,t.ResponseInterceptor=u.ResponseInterceptor,t.MapServer=u.MapServer,t.FeatureServer=u.FeatureServer,t.M3DServer=u.M3DServer,t.ImageServer=u.ImageServer,t.GeometryServer=u.GeometryServer,t.AddressServer=u.AddressServer,t.Cesium3DTilesServer=u.Cesium3DTilesServer,t.PoiServer=u.PoiServer,t.TerrainServer=u.TerrainServer,t.SecurityServer=u.SecurityServer,t.RootServer=u.RootServer,t.TileServer=u.TileServer,t.VectorTileServer=u.VectorTileServer,t.PlotServer=u.PlotServer,t.ResourceServer=u.ResourceServer,t.SceneServer=u.SceneServer,t.WMSServer=u.WMSServer,t.WMTSServer=u.WMTSServer,t.WFSServer=u.WFSServer,t.ArcGISMapServer=u.ArcGISMapServer,t.ISSceneServer=u.ISSceneServer,t.CAllOtherDataItemInfoSource=u.CAllOtherDataItemInfoSource,t.CAnnInfo=u.CAnnInfo,t.CChartLabelFormat=u.CChartLabelFormat,t.CChartTheme=u.CChartTheme,t.CChartThemeInfo=u.CChartThemeInfo,t.CChartThemeRepresentInfo=u.CChartThemeRepresentInfo,t.CChartType=u.CChartType,t.CDotDensityTheme=u.CDotDensityTheme,t.CFourColorTheme=u.CFourColorTheme,t.CGraduatedSymbolTheme=u.CGraduatedSymbolTheme,t.CLinInfo=u.CLinInfo,t.CMultiClassTheme=u.CMultiClassTheme,t.CPntInfo=u.CPntInfo,t.CRandomTheme=u.CRandomTheme,t.CRangeTheme=u.CRangeTheme,t.CRangeThemeInfo=u.CRangeThemeInfo,t.CRegInfo=u.CRegInfo,t.CSimpleTheme=u.CSimpleTheme,t.CTheme=u.CTheme,t.CThemeInfo=u.CThemeInfo,t.CUniqueTheme=u.CUniqueTheme,t.CUniqueThemeInfo=u.CUniqueThemeInfo,t.ExpInfo=u.ExpInfo,t.FolderInfo=u.FolderInfo,t.FolderInfoAttribute=u.FolderInfoAttribute,t.ItemValue=u.ItemValue,t.ThemeServer=u.ThemeServer,t.ThemesInfo=u.ThemesInfo,t.ArcGISGeometryServer=u.ArcGISGeometryServer,t.ArcGISFeatureServer=u.ArcGISFeatureServer,t.ArcGISVectorTileServer=u.ArcGISVectorTileServer,t.Map=c.Map,t.Basemap=c.Basemap,t.ArcGISMapImageLayer=c.ArcGISMapImageLayer,t.M3DModelCacheLayer=c.M3DModelCacheLayer,t.ArcGISMapImageSubLayer=c.ArcGISMapImageSubLayer,t.ArcGISTileLayer=c.ArcGISTileLayer,t.WMTSLayer=c.WMTSLayer,t.WMSLayer=c.WMSLayer,t.WMSSubLayer=c.WMSSubLayer,t.WFSLayer=c.WFSLayer,t.WMTSSubLayer=c.WMTSSubLayer,t.IGSVectorTileLayer=c.IGSVectorTileLayer,t.IGSVectorTileSubLayer=c.IGSVectorTileSubLayer,t.IGSMapImageLayer=c.IGSMapImageLayer,t.IGSMapImageSubLayer=c.IGSMapImageSubLayer,t.IGSSceneLayer=c.IGSSceneLayer,t.IGSSceneSubLayer=c.IGSSceneSubLayer,t.IGSSceneLabelSubLayer=c.IGSSceneLabelSubLayer,t.IGSSceneModelCacheSubLayer=c.IGSSceneModelCacheSubLayer,t.IGSSceneMapRefSubLayer=c.IGSSceneMapRefSubLayer,t.IGSSceneTerrainSubLayer=c.IGSSceneTerrainSubLayer,t.IGSTileLayer=c.IGSTileLayer,t.IGSScene=c.IGSScene,t.ISScene=c.ISScene,t.BaseScene=c.BaseScene,t.IGSFeatureLayer=c.IGSFeatureLayer,t.FeatureFilter=c.FeatureFilter,t.ISSceneLayer=c.ISSceneLayer,t.ISSceneSubLayer=c.ISSceneSubLayer,t.ISSceneModelCacheSubLayer=c.ISSceneModelCacheSubLayer,t.SubLayer=c.SubLayer,t.EchartsLayer=c.EchartsLayer,t.MapVLayer=c.MapVLayer,t.GroupLayer=c.GroupLayer,t.GraphicsLayer=c.GraphicsLayer,t.GeoJSONLayer=c.GeoJSONLayer,t.Cesium3DTilesCacheLayer=c.Cesium3DTilesCacheLayer,t.TerrainCacheLayer=c.TerrainCacheLayer,t.VideoLayer=c.VideoLayer,t.S3MTilesCacheLayer=c.S3MTilesCacheLayer,t.Layer=c.Layer,t.Projection=h.Projection,t.WMTSStyle=h.WMTSStyle,t.CoordnateTransform=h.CoordnateTransform,t.SketchEditor=m.SketchEditor,t.SketchEditor3D=m.SketchEditor3D,t.SketchBaseDrawTool=m.SketchBaseDrawTool,t.SketchPointDrawTool=m.SketchPointDrawTool,t.SketchPolylineDrawTool=m.SketchPolylineDrawTool,t.SketchPolygonDrawTool=m.SketchPolygonDrawTool,t.SketchCircleDrawTool=m.SketchCircleDrawTool,t.SketchExtentDrawTool=m.SketchExtentDrawTool,t.SketchFreehandPolylineDrawTool=m.SketchFreehandPolylineDrawTool,t.SketchFreehandPolygonDrawTool=m.SketchFreehandPolygonDrawTool,t.getTipTextByEditOption=m.getTipTextByEditOption,t.SketchStyle=m.SketchStyle,t.SketchEditorEvent=m.SketchEditorEvent,t.Extent=f.Extent,t.Polygon=f.Polygon,t.LineString=f.LineString,t.Point=f.Point,t.Circle=f.Circle,t.MultiPolygon=f.MultiPolygon,t.MultiLineString=f.MultiLineString,t.MultiPoint=f.MultiPoint,t.GeometryEngine=f.GeometryEngine,t.Color=h.Color,t.Font=h.Font,t.LayerEvent=h.LayerEvent,t.Event=h.Event,t.Zondy=x,t.zondy=b,t.Evented=h.Evented,t.FeatureRender=h.FeatureRender,t.ErrorEvent=h.ErrorEvent,t.Collection=h.Collection,t.CollectionFlattener=h.CollectionFlattener,t.FeatureSet=h.FeatureSet,t.Feature=h.Feature,t.getFeaturesFromFeatureSet=h.getFeaturesFromFeatureSet,t.ReturnFormat=p.ReturnFormat,t.FetchMethod=p.FetchMethod,t.LayerEventType=p.LayerEventType,t.MapEventType=p.MapEventType,t.StatisticType=p.StatisticType,t.SpatialRelation=p.SpatialRelation,t.CustomWKID=p.CustomWKID,t.GeometryType=p.GeometryType,t.LayerType=p.LayerType,t.SubLayerType=p.SubLayerType,t.TokenAttachType=p.TokenAttachType,t.IGSGeometryType=p.IGSGeometryType,t.LogType=p.LogType,t.LoadStatus=p.LoadStatus,t.ViewEventType=p.ViewEventType,t.LengthUnit=p.LengthUnit,t.AngleUnit=p.AngleUnit,t.RendererType=p.RendererType,t.VectorTileGeometryType=p.VectorTileGeometryType,t.VideoSourceType=p.VideoSourceType,t.SketchDataType=p.SketchDataType,t.SketchEditMode=p.SketchEditMode,t.SketchEditorEventType=p.SketchEditorEventType,t.SketchEditorState=p.SketchEditorState,t.SketchEditorToolEventType=p.SketchEditorToolEventType,t.SymbolType=p.SymbolType,t.IGSSymbolType=p.IGSSymbolType,t.ElevationMode=p.ElevationMode,t.ElevationInfo=h.ElevationInfo,t.ProjectInfo=h.ProjectInfo,t.OutStatistic=h.OutStatistic,t.TileMatrixSet=h.TileMatrixSet,t.ProjectInfoBySrsID=h.ProjectInfoBySrsID,t.FeatureExpressionInfo=h.FeatureExpressionInfo,t.HorizontalAlignment=p.HorizontalAlignment,t.VerticalAlignment=p.VerticalAlignment,t.SceneMode=p.SceneMode,t.ShadowMode=p.ShadowMode,t.SwipeMode=p.SwipeMode,t.BaseSwipeTool=s.BaseSwipeTool,t.SimpleFillSymbol=y.SimpleFillSymbol,t.SimpleLineSymbol=y.SimpleLineSymbol,t.SimpleMarkerSymbol=y.SimpleMarkerSymbol,t.TextSymbol=y.TextSymbol,t.Symbol=y.Symbol,t.PictureMarkerSymbol=y.PictureMarkerSymbol,t.PictureFillSymbol=y.PictureFillSymbol,t.MapGISTextSymbol=y.MapGISTextSymbol,t.UniqueValueRenderer=c.UniqueValueRenderer,t.ClassBreakRenderer=c.ClassBreakRenderer,t.SimpleRenderer=c.SimpleRenderer,t.ClusterRenderer=c.ClusterRenderer,t.RandomRenderer=c.RandomRenderer,t.RankRenderer=c.RankRenderer,t.HeatmapRenderer=c.HeatmapRenderer,t.BaseRenderer=c.BaseRenderer,t.getIGSDynamicLayer=c.getIGSDynamicLayer,t.extend=d.extend,t.isArray=d.isArray,t.isNumber=d.isNumber,t.isInTheSameDomain=d.isInTheSameDomain,t.transformResult=d.transformResult,t.urlAppend=d.urlAppend,t.getParameterString=d.getParameterString,t.bind=d.bind,t.getGUID=d.getGUID,t.defaultValue=d.defaultValue,t.defined=d.defined,t.normalize=d.normalize,t.createGeometry=d.createGeometry,t.getExtendExtentByPixel=d.getExtendExtentByPixel,t.limitExtentToSRSMaxExtent=d.limitExtentToSRSMaxExtent,t.isNull=d.isNull,t.getGeometryParameter=d.getGeometryParameter,t.getOutStatisticsParameter=d.getOutStatisticsParameter,t.Log=d.Log,t.isString=d.isString,t.deepClone=d.deepClone,t.isBoolean=d.isBoolean,t.extendDeep=d.extendDeep,t.newGuid=d.newGuid,t.formatPoints=d.formatPoints,t.returnPoint=d.returnPoint,t.cloneObject=d.cloneObject,t.notNULL=d.notNULL,t.isObject=d.isObject,t.getVideoType=d.getVideoType,t.toJSON=d.toJSON,t.getBaseUrl=d.getBaseUrl,t.inputCss=d.inputCss,t.BaseView=g.BaseView,t.MapView=g.MapView,t.SceneView=g.SceneView,t.BaseGraphicsLayerView=g.BaseGraphicsLayerView,t.BaseRendererLayerView=g.BaseRendererLayerView,t.GroupLayerView=g.GroupLayerView,t.LayerView=g.LayerView,t.SpatialReference=f.SpatialReference,t.UrlServerType=p.UrlServerType,t.PictureFormat=p.PictureFormat,t.getUrlType=c.getUrlType,t.is4326=c.is4326,t.isCustomSP=c.isCustomSP,t.EPSG=h.EPSG,t.proj4=i.default,t.T=o,t.formatBaseUrl=u.formatBaseUrl,t.RadiusUnit=p.RadiusUnit,t.Geometry=f.Geometry,t.editFeatureByArc3=f.editFeatureByArc3,t.editGeometryByArc3=f.editGeometryByArc3,t.Config=u.Config,t.ServiceConfigToken=u.ServiceConfigToken,t.ServiceConfigRequestInterceptors=u.ServiceConfigRequestInterceptors,t.ServiceConfigResponseInterceptors=u.ServiceConfigResponseInterceptors,t.createSimpleMarkerSymbolCanvas=v.createSimpleMarkerSymbolCanvas,t.createSimpleFillSymbolCanvas=v.createSimpleFillSymbolCanvas,t.BaseFeatureLayerView=g.BaseFeatureLayerView,t.TileInfoUtil=c.TileInfoUtil,t.WMTSCorporation=p.WMTSCorporation,t.Corporation=p.Corporation,t.setElevationInfo=c.setElevationInfo,t.LabelClass=c.LabelClass,t.HeatmapColorStop=c.HeatmapColorStop,t.SizeVariable=c.SizeVariable,t.ColorVariable=c.ColorVariable,t.OpacityVariable=c.OpacityVariable,t.VisualVariable=c.VisualVariable,t.RendererUtil=g.RendererUtil,t.Symbol3D=y.Symbol3D,t.LabelSymbol3D=y.LabelSymbol3D,t.LineSymbol3D=y.LineSymbol3D,t.PointSymbol3D=y.PointSymbol3D,t.PolygonSymbol3D=y.PolygonSymbol3D,t.LineCallout3D=y.LineCallout3D,t.Callout3D=y.Callout3D,t.Symbol3DVerticalOffset=y.Symbol3DVerticalOffset,t.Symbol3DLayer=y.Symbol3DLayer,t.Symbol3DLayerType=p.Symbol3DLayerType,t.LineCapType=p.LineCapType,t.LineJoinType=p.LineJoinType,t.LineMarkerPlacement=p.LineMarkerPlacement,t.LineMarkerStyle=p.LineMarkerStyle,t.LineStyleMarker3D=y.LineStyleMarker3D,t.LinePatternStyle=p.LinePatternStyle,t.LineStylePattern3D=y.LineStylePattern3D,t.LineSymbol3DLayer=y.LineSymbol3DLayer,t.PathSymbol3DLayer=y.PathSymbol3DLayer,t.AnchorType=p.AnchorType,t.ProfileType=p.ProfileType,t.FillSymbol3DLayer=y.FillSymbol3DLayer,t.FillSymbol3DOutline=y.FillSymbol3DOutline,t.PatternStyle=p.PatternStyle,t.IconSymbol3DLayer=y.IconSymbol3DLayer,t.PointSymbol3DOutline=y.PointSymbol3DOutline,t.IconResource=y.IconResource,t.ObjectSymbol3DLayer=y.ObjectSymbol3DLayer,t.ExtrudeSymbol3DLayer=y.ExtrudeSymbol3DLayer,t.Edges3D=y.Edges3D,t.TextSymbol3DLayer=y.TextSymbol3DLayer,t.TextHalo=y.TextHalo,t.WaterSymbol3DLayer=y.WaterSymbol3DLayer,t.WaterbodySize=p.WaterbodySize,t.WaveStrength=p.WaveStrength,t.MaterialType=p.MaterialType,t.ColorMaterial=y.ColorMaterial,t.StylePattern3D=y.StylePattern3D,t.ArcGISVectorTileLayer=c.ArcGISVectorTileLayer,t.ArcGISVectorTileSubLayer=c.ArcGISVectorTileSubLayer,t.WebTileLayer=c.WebTileLayer,t.getZoomOffset=c.getZoomOffset,t.FeatureCollection=c.FeatureCollection,t.CAttDataRow=u.CAttDataRow,t.CAttStruct=u.CAttStruct,t.Interceptor=u.Interceptor,t.WorkFlowServer=u.WorkFlowServer,t.TileLayer=c.TileLayer,t.BaseServer=u.BaseServer,t.RequestConfig=u.RequestConfig,t.UnknownLayer=c.UnknownLayer,t.OverlayLayer=c.OverlayLayer,t.OGCLayer=c.OGCLayer,t.getProjectionSrs=d.getProjectionSrs,t.isWMSReverse=d.isWMSReverse,t.isWMTSReverse=d.isWMTSReverse,t.convertImageSourceToBase64=d.convertImageSourceToBase64,t.getTileLayerNearestCenterAndScale=d.getTileLayerNearestCenterAndScale,t.throttle=d.throttle,t.compareObject=d.compareObject,t.debouncePromise=d.debouncePromise,t.inOrderPromise=d.inOrderPromise,t.allSettled=d.allSettled,t.LinearUnits=p.LinearUnits,t.AreaUnits=p.AreaUnits,t.ArcType=p.ArcType,t.FetchRequest=u.FetchRequest,t.TileInfo=c.TileInfo,t.appendUrlParams=c.appendUrlParams,t.getFullBaseUrl=c.getFullBaseUrl,t.LOD=c.LOD,t.VoxelFilter=c.VoxelFilter,t.IGSImageryLayer=c.IGSImageryLayer,t.IGSImageryTileLayer=c.IGSImageryTileLayer,t.RasterFunction=c.RasterFunction,t.RasterInfo=c.RasterInfo,t.convertIGSClippingString=u.convertIGSClippingString,t.IGSSceneOriginLayerType=p.IGSSceneOriginLayerType,t.GeometryFilter=u.GeometryFilter,t.ColorNameToHexMap=p.ColorNameToHexMap,t.SeverVectorTileSubLayerType=p.SeverVectorTileSubLayerType,t.VisualVariableType=p.VisualVariableType,t.TDTLayerType=p.TDTLayerType,t.TileSliceType=p.TileSliceType,t.VectorTileLayer=c.VectorTileLayer,t.ExpressionParser=d.ExpressionParser,t.isLayerViewValid=l.isLayerViewValid,t.getValidLayers=l.getValidLayers,t.getLayerViewsGeographicExtent=l.getLayerViewsGeographicExtent,t.getCrsOptionsBySpatialReference=l.getCrsOptionsBySpatialReference,t.getCrsOptions=l.getCrsOptions,t.getLayersExtent=l.getLayersExtent,t.TemporalUnit=p.TemporalUnit,t.NormalizationType=p.NormalizationType,t.RasterInterpolationType=p.RasterInterpolationType,t.EngineType=p.EngineType,t.TimeExtent=h.TimeExtent,t.TimeInfo=h.TimeInfo,t.TimeInterval=h.TimeInterval,t.TileMonitor=h.TileMonitor,t.getFunctionArguments=d.getFunctionArguments,t.UrlUtil=u.UrlUtil,t.ServerUtil=u.ServerUtil,t.deleteNullValue=d.deleteNullValue,t.BaseRegExp=u.BaseRegExp,t.ServerBaseUrlRegExp=u.ServerBaseUrlRegExp,t.LayerBaseUrlRegExp=u.LayerBaseUrlRegExp,t.formatWebTileUrl=c.formatWebTileUrl,t.decryptIGS=a.decryptIGS,t.buildModuleUrl=d.buildModuleUrl,t.getMapGISBaseUrl=d.getMapGISBaseUrl},function(e,t,r){var n=r(121),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.Base,o=n.WordArray,a=r.x64={};a.Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var i=e[n];r.push(i.high),r.push(i.low)}return o.create(r,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}})}(),e}(r(14))},function(e,t,r){var n=r(46),i=r(63),o=r(122)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,r){var n=r(38),i=r(175),o=r(124),a=r(122)("IE_PROTO"),s=function(){},u=function(){var e,t=r(126)("iframe"),n=o.length;for(t.style.display="none",r(176).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u.prototype[o[n]];return u()};e.exports=Object.create||function(e,t){var r;return null!==e?(s.prototype=n(e),r=new s,s.prototype=null,r[a]=e):r=u(),void 0===t?r:i(r,t)}},function(e,t,r){var n=r(75),i=r(31)("toStringTag"),o="Arguments"==n(function(){return arguments}());e.exports=function(e){var t,r,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:o?n(t):"Object"==(a=n(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LayerViewUpdateEvent=t.LayerViewUpdateContent=void 0;var n=c(r(3)),i=c(r(2)),o=c(r(4)),a=c(r(7)),s=c(r(5)),u=c(r(0)),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){return(0,u.default)(this,t),(0,o.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,i.default)(t,[{key:"initPropertys",value:function(e){var r=(0,a.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"initPropertys",this).call(this,e);return this.updateContent=(0,l.defaultValue)(r.updateContent,[]),this.layerView=(0,l.defaultValue)(r.layerView,null),this.view=(0,l.defaultValue)(r.view,null),r}}]),t}(c(r(139)).default);t.LayerViewUpdateContent=function e(t){(0,u.default)(this,e);var r=(0,l.defaultValue)(t,{});this.dataChanged=(0,l.defaultValue)(r.dataChanged,!1),this.name=(0,l.defaultValue)(r.name,""),this.operationType=(0,l.defaultValue)(r.operationType,"method"),this.params=(0,l.defaultValue)(r.params,[]),this.extendProps=(0,l.defaultValue)(r.extendProps,{})},t.LayerViewUpdateEvent=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{id:2348,name:"高斯大地坐标系_西安80_23带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2347,name:"高斯大地坐标系_西安80_22带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2346,name:"高斯大地坐标系_西安80_21带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2345,name:"高斯大地坐标系_西安80_20带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2344,name:"高斯大地坐标系_西安80_19带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2343,name:"高斯大地坐标系_西安80_18带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2342,name:"高斯大地坐标系_西安80_17带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2341,name:"高斯大地坐标系_西安80_16带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2340,name:"高斯大地坐标系_西安80_15带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2339,name:"高斯大地坐标系_西安80_14带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2338,name:"高斯大地坐标系_西安80_13带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2390,name:"高斯大地坐标系_西安80_45带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2389,name:"高斯大地坐标系_西安80_44带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2388,name:"高斯大地坐标系_西安80_43带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2387,name:"高斯大地坐标系_西安80_42带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2386,name:"高斯大地坐标系_西安80_41带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2385,name:"高斯大地坐标系_西安80_40带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2384,name:"高斯大地坐标系_西安80_39带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2383,name:"高斯大地坐标系_西安80_38带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2382,name:"高斯大地坐标系_西安80_37带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2381,name:"高斯大地坐标系_西安80_36带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2380,name:"高斯大地坐标系_西安80_35带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2379,name:"高斯大地坐标系_西安80_34带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2378,name:"高斯大地坐标系_西安80_33带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2377,name:"高斯大地坐标系_西安80_32带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2376,name:"高斯大地坐标系_西安80_31带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2375,name:"高斯大地坐标系_西安80_30带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2374,name:"高斯大地坐标系_西安80_29带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2373,name:"高斯大地坐标系_西安80_28带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2372,name:"高斯大地坐标系_西安80_27带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2371,name:"高斯大地坐标系_西安80_26带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2370,name:"高斯大地坐标系_西安80_25带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2327,name:"高斯大地坐标系_西安80_13带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=13500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2328,name:"高斯大地坐标系_西安80_14带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=14500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2329,name:"高斯大地坐标系_西安80_15带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=15500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2330,name:"高斯大地坐标系_西安80_16带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=16500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2331,name:"高斯大地坐标系_西安80_17带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=17500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2332,name:"高斯大地坐标系_西安80_18带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=18500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2333,name:"高斯大地坐标系_西安80_19带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=19500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2334,name:"高斯大地坐标系_西安80_20带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=20500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2335,name:"高斯大地坐标系_西安80_21带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=21500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2336,name:"高斯大地坐标系_西安80_22带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=22500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2337,name:"高斯大地坐标系_西安80_23带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=23500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2403,name:"高斯大地坐标系_西安80_27带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=27500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2404,name:"高斯大地坐标系_西安80_28带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=28500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2405,name:"高斯大地坐标系_西安80_29带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=29500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2406,name:"高斯大地坐标系_西安80_30带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2407,name:"高斯大地坐标系_西安80_31带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=31500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2408,name:"高斯大地坐标系_西安80_32带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=32500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2409,name:"高斯大地坐标系_西安80_33带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=33500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2410,name:"高斯大地坐标系_西安80_34带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=34500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2411,name:"高斯大地坐标系_西安80_35带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2412,name:"高斯大地坐标系_西安80_36带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2413,name:"高斯大地坐标系_西安80_37带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2414,name:"高斯大地坐标系_西安80_38带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2415,name:"高斯大地坐标系_西安80_39带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=39500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2416,name:"高斯大地坐标系_西安80_40带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2417,name:"高斯大地坐标系_西安80_41带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=41500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2418,name:"高斯大地坐标系_西安80_42带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=42500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2419,name:"高斯大地坐标系_西安80_43带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=43500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2420,name:"高斯大地坐标系_西安80_44带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=44500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2421,name:"高斯大地坐标系_西安80_45带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=45500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2349,name:"高斯大地坐标系_西安80_25带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=25500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2350,name:"高斯大地坐标系_西安80_26带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=26500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2351,name:"高斯大地坐标系_西安80_27带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=27500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2352,name:"高斯大地坐标系_西安80_28带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=28500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2353,name:"高斯大地坐标系_西安80_29带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=29500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2354,name:"高斯大地坐标系_西安80_30带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2355,name:"高斯大地坐标系_西安80_31带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=31500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2356,name:"高斯大地坐标系_西安80_32带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=32500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2357,name:"高斯大地坐标系_西安80_33带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=33500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2358,name:"高斯大地坐标系_西安80_34带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=34500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2359,name:"高斯大地坐标系_西安80_35带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2360,name:"高斯大地坐标系_西安80_36带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2361,name:"高斯大地坐标系_西安80_37带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2362,name:"高斯大地坐标系_西安80_38带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2363,name:"高斯大地坐标系_西安80_39带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=39500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2364,name:"高斯大地坐标系_西安80_40带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2365,name:"高斯大地坐标系_西安80_41带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=41500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2366,name:"高斯大地坐标系_西安80_42带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=42500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2367,name:"高斯大地坐标系_西安80_43带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=43500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2368,name:"高斯大地坐标系_西安80_44带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=44500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2369,name:"高斯大地坐标系_西安80_45带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=45500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:21413,name:"高斯大地坐标系_北京54_13带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=13500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21414,name:"高斯大地坐标系_北京54_14带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=14500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21415,name:"高斯大地坐标系_北京54_15带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=15500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21416,name:"高斯大地坐标系_北京54_16带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=16500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21417,name:"高斯大地坐标系_北京54_17带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=17500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21418,name:"高斯大地坐标系_北京54_18带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=18500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21419,name:"高斯大地坐标系_北京54_19带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=19500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21420,name:"高斯大地坐标系_北京54_20带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=20500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21421,name:"高斯大地坐标系_北京54_21带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=21500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21422,name:"高斯大地坐标系_北京54_22带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=22500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21423,name:"高斯大地坐标系_北京54_23带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=23500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2431,name:"高斯大地坐标系_北京54_34带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2401,name:"高斯大地坐标系_北京54_25带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=25500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2402,name:"高斯大地坐标系_北京54_26带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=26500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:32646,name:"Beijing 1954 / 3-degree Gauss-Kruger CM 102E",type:1,strProject:"+proj=utm +zone=46 +datum=WGS84 +units=m +no_defs"},{id:4502,name:"高斯大地坐标系_中国2000_13带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4503,name:"高斯大地坐标系_中国2000_14带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4504,name:"高斯大地坐标系_中国2000_15带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4505,name:"高斯大地坐标系_中国2000_16带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4506,name:"高斯大地坐标系_中国2000_17带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4507,name:"高斯大地坐标系_中国2000_18带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4508,name:"高斯大地坐标系_中国2000_19带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4509,name:"高斯大地坐标系_中国2000_20带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4510,name:"高斯大地坐标系_中国2000_21带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4511,name:"高斯大地坐标系_中国2000_22带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4512,name:"高斯大地坐标系_中国2000_23带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4513,name:"高斯大地坐标系_中国2000_25带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=25500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4514,name:"高斯大地坐标系_中国2000_26带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=26500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4515,name:"高斯大地坐标系_中国2000_27带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=27500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4516,name:"高斯大地坐标系_中国2000_28带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=28500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4517,name:"高斯大地坐标系_中国2000_29带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=29500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4518,name:"高斯大地坐标系_中国2000_30带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4519,name:"高斯大地坐标系_中国2000_31带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=31500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4520,name:"高斯大地坐标系_中国2000_32带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=32500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4521,name:"高斯大地坐标系_中国2000_33带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=33500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4522,name:"高斯大地坐标系_中国2000_34带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=34500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4523,name:"高斯大地坐标系_中国2000_35带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4524,name:"高斯大地坐标系_中国2000_36带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4525,name:"高斯大地坐标系_中国2000_37带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4526,name:"高斯大地坐标系_中国2000_38带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4527,name:"高斯大地坐标系_中国2000_39带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=39500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4528,name:"高斯大地坐标系_中国2000_40带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4529,name:"高斯大地坐标系_中国2000_41带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=41500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4530,name:"高斯大地坐标系_中国2000_42带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=42500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4531,name:"高斯大地坐标系_中国2000_43带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=43500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4532,name:"高斯大地坐标系_中国2000_44带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=44500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4533,name:"高斯大地坐标系_中国2000_45带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=45500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4546,name:"高斯大地坐标系_中国2000_37带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4547,name:"高斯大地坐标系_中国2000_38带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4545,name:"高斯大地坐标系_中国2000_36带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:3857,name:"Web墨卡托_WGS1984",type:1,strProject:"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"},{id:900913,name:"天地图3857",type:1,strProject:"+proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +wktext +no_defs +type=crs"},{id:4610,name:"地理坐标系(西安)_度",type:0,strProject:"+proj=longlat +a=6378140 +b=6356755.288157528 +units=degrees +no_defs"},{id:4214,name:"地理坐标系(北京)_度",type:0,strProject:'GEOGCRS["Beijing 1954",DATUM["Beijing 1954",ELLIPSOID["Krassowsky 1940",6378245,298.3,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["Geodesy."],AREA["China - onshore and offshore."],BBOX[16.7,73.62,53.56,134.77]],ID["EPSG",4214]]'},{id:4490,name:"中国2000国家大地坐标系_度",type:0,strProject:"+proj=longlat +ellps=GRS80 +units=degrees +no_defs"},{id:4326,name:"WGS1984_度",type:0,strProject:"+proj=longlat +datum=WGS84 +no_defs +type=crs"}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.geometry="Geometry",n.point="Point",n.lineString="LineString",n.polygon="Polygon",n.multiPoint="MultiPoint",n.multiLineString="MultiLineString",n.multiPolygon="MultiPolygon",n.circle="Circle",n.extent="Extent",i);Object.defineProperty(a,"geometry",{writable:!1}),Object.defineProperty(a,"point",{writable:!1}),Object.defineProperty(a,"lineString",{writable:!1}),Object.defineProperty(a,"polygon",{writable:!1}),Object.defineProperty(a,"multiPoint",{writable:!1}),Object.defineProperty(a,"multiLineString",{writable:!1}),Object.defineProperty(a,"multiPolygon",{writable:!1}),Object.defineProperty(a,"circle",{writable:!1}),Object.defineProperty(a,"extent",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allSettled=t.inOrderPromise=t.debouncePromise=void 0;var n=o(r(15)),i=o(r(80));function o(e){return e&&e.__esModule?e:{default:e}}t.debouncePromise=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=void 0,o=void 0,a=void 0,s=[];return function(){var u=function(e){return"function"==typeof e?e():e}(t),l=(new Date).getTime(),c=!i||l-i>u;i=l;for(var f=arguments.length,h=Array(f),d=0;d<f;d++)h[d]=arguments[d];if(c&&r.leading)return r.accumulate?n.default.resolve(e.call(this,[h])).then(function(e){return e[0]}):n.default.resolve(e.call.apply(e,[this].concat(h)));if(o?clearTimeout(a):o=function(){var e={};return e.promise=new n.default(function(t,r){e.resolve=t,e.reject=r}),e}(),s.push(h),a=setTimeout(function(){var t=o;clearTimeout(a),n.default.resolve(r.accumulate?e.call(this,s):e.apply(this,s[s.length-1])).then(t.resolve,t.reject),s=[],o=null}.bind(this),u),r.accumulate){var p=s.length-1;return o.promise.then(function(e){return e[p]})}return o.promise}},t.inOrderPromise=async function(e){for(var t=[],r=0;r<e.length;r++)try{var n=await e[r]();t.push(n)}catch(e){i.default.error(e)}return t},t.allSettled=function(e){var t=function(e){return{status:"rejected",reason:e}},r=function(e){return{status:"fulfilled",value:e}},i=e.map(function(e){return n.default.resolve(e).then(r,t)});return n.default.all(i)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(13)),i=y(r(10)),o=y(r(3)),a=y(r(0)),s=y(r(2)),u=y(r(4)),l=y(r(5)),c=r(8),f=r(6),h=r(1),d=r(9),p=r(12);function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return e=(0,h.defaultValue)(e,{}),r.id=(0,h.defaultValue)(e.id,(0,h.getGUID)()),r.type=f.SubLayerType.baseSub,r.layer=(0,h.defaultValue)(e.layer,null),r.sublayers=r._decorate("sublayers",(0,h.defaultValue)(e.sublayers,null),null,function(e){return e instanceof c.Collection?e:Array.isArray(e)?new c.Collection(e.map(function(e){return e.layer=r.layer,e.parent=r,r._createSublayer(e)})):null}),r.copyright=(0,h.defaultValue)(e.copyright,""),r.title=(0,h.defaultValue)(e.title||e.layerName,null),r.extensionOptions=(0,h.defaultValue)(e.extensionOptions,{}),r.extendProps=(0,h.defaultValue)(e.extendProps,{}),r.description=(0,h.defaultValue)(e.description,""),r.parent=(0,h.defaultValue)(e.parent,null),r.spatialReference=e.spatialReference?d.SpatialReference.fromJSON(e.spatialReference):null,r.extent=e.extent?d.Extent.fromJSON(e.extent):null,r.capabilities=(0,p.mergeCommonClientCapbilities)(e.capabilities,{layer:!0,sublayers:!0,title:!0,extensionOptions:!0,extendProps:!0,description:!0,copyright:!0,parent:!0,spatialReference:!0,extent:!0,visible:!0,opacity:!0,minScale:!0,maxScale:!0}),r._visible=(0,h.defaultValue)(e.visible,!0),r._opacity=(0,h.defaultValue)(e.opacity,1),r._minScale=(0,h.defaultValue)(e.minScale,0),r._maxScale=(0,h.defaultValue)(e.maxScale,0),r}return(0,l.default)(t,e),(0,s.default)(t,[{key:"toJSON",value:function(){var e={};return e.id=this.id,e.type=this.type,e.copyright=this.copyright,e.sublayers=this.sublayers?this.sublayers.map(function(e){return e.toJSON()}):null,e.title=this.title,e.description=this.description,e.visible=this.visible,e.opacity=this.opacity,e.extendProps=JSON.parse((0,i.default)(this.extendProps)),e.extensionOptions=JSON.parse((0,i.default)(this.extensionOptions)),e.spatialReference=this.spatialReference?this.spatialReference.toJSON():null,e.extent=this.extent?this.extent.toJSON():null,e.maxScale=this.maxScale,e.minScale=this.minScale,e.capabilities=JSON.parse((0,i.default)(this.capabilities)),e}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"_createSublayer",value:function(e){return(0,p.createSublayer)(e)}},{key:"getCumulative",value:function(e,t){for(var r=this[e],n=this.parent;n;)r=t(r,n[e]),n=n.parent;return r}}],[{key:"fromJSON",value:function(e){return(0,p.createSublayer)(e)}}]),t}(c.Evented);(0,n.default)(g.prototype,{visible:{get:function(){return this._visible},set:function(e){this._visible=e,this.layer&&this.layer.refresh()}},opacity:{get:function(){return this._opacity},set:function(e){this._opacity=e}},maxScale:{get:function(){return this._maxScale},set:function(e){this._maxScale=e}},minScale:{get:function(){return this._minScale},set:function(e){this._minScale=e}}}),t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(13)),i=s(r(0)),o=s(r(2)),a=r(1);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,i.default)(this,e),t=t||{},this.level=t.level,this.resolution=t.resolution,this.scale=t.scale,this._levelValue=String((0,a.defaultValue)(t.levelValue,"")),(0,a.defined)(this._levelValue)||(this._levelValue=String(this.level))}return(0,o.default)(e,[{key:"toJSON",value:function(){return{level:this.level,levelValue:this.levelValue,resolution:this.resolution,scale:this.scale}}},{key:"clone",value:function(){return e.fromJSON(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();(0,n.default)(u.prototype,{levelValue:{get:function(){return this._levelValue},set:function(e){this._levelValue=String((0,a.defaultValue)(e,""))}}}),t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(0)),i=u(r(2)),o=u(r(68)),a=r(1),s=r(98);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){(0,n.default)(this,e),t=(0,a.defaultValue)(t,{}),this.type=o.default.default,this.field=(0,a.defaultValue)(t.field,""),this.valueExpression=(0,a.defaultValue)(t.valueExpression,""),this.valueExpressionTitle=(0,a.defaultValue)(t.valueExpressionTitle,"")}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.field=this.field,e.valueExpression=this.valueExpression,e.valueExpressionTitle=this.valueExpressionTitle,e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(e){return e=(0,a.defaultValue)(e,{}),(0,s.createVisualVariable)(e)}}]),e}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(10)),i=p(r(3)),o=p(r(0)),a=p(r(2)),s=p(r(4)),u=p(r(7)),l=p(r(5)),c=r(6),f=r(1),h=r(16),d=r(12);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return e=(0,f.defaultValue)(e,{}),r.type=c.LayerType.OGC,r.version=(0,f.defaultValue)(e.version,""),r.customParameters=(0,f.defaultValue)(e.customParameters,{}),r.customLayerParameters=(0,f.defaultValue)(e.customLayerParameters,{}),r.capabilities=(0,d.mergeCommonClientCapbilities)(r.capabilities,{type:!0,customParameters:!0,customLayerParameters:!0}),r}return(0,l.default)(t,e),(0,a.default)(t,[{key:"toJSON",value:function(){var e=(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"toJSON",this).call(this);return e.version=this.version,e.customParameters=JSON.parse((0,n.default)(this.customParameters)),e.customLayerParameters=JSON.parse((0,n.default)(this.customLayerParameters)),e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,f.defaultValue)(e,{}))}}]),t}(h.Layer);t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.default=function(e){var t=(0,n.defaultValue)(e,{});(0,n.extend)(this,t),this.FldNumber=(0,n.defaultValue)(t.FldNumber,0),this.FldName=(0,n.defaultValue)(t.FldName,null),this.FldType=(0,n.defaultValue)(t.FldType,null)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(75);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(123)("keys"),i=r(105);e.exports=function(e){return n[e]||(n[e]=i(e))}},function(e,t,r){var n=r(18),i=r(30),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(87)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(21),i=r(18),o=r(64);e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*o(function(){r(1)}),"Object",a)}},function(e,t,r){var n=r(32),i=r(30).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,r){var n=r(32);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[],u=[];!function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)e(n)&&(i<8&&(s[i]=r(t.pow(n,.5))),u[i]=r(t.pow(n,1/3)),i++),n++}();var l=[],c=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],c=r[5],f=r[6],h=r[7],d=0;d<64;d++){if(d<16)l[d]=0|e[t+d];else{var p=l[d-15],y=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=l[d-2],m=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;l[d]=y+l[d-7]+m+l[d-16]}var v=n&i^n&o^i&o,_=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),S=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&f)+u[d]+l[d];h=f,f=c,c=s,s=a+S|0,a=o,o=i,i=n,n=S+(_+v)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+f|0,r[7]=r[7]+h|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=t.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=o._createHelper(c),r.HmacSHA256=o._createHmacHelper(c)}(Math),e.SHA256}(r(14))},function(e,t,r){e.exports=function(e){!function(){var t=e,r=t.lib.Base,n=t.enc.Utf8;t.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,u=a.words,l=0;l<r;l++)s[l]^=1549556828,u[l]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})}()}(r(14))},function(e,t,r){"use strict";var n=r(87),i=r(21),o=r(174),a=r(54),s=r(78),u=r(311),l=r(89),c=r(107),f=r(31)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,r,p,y,g,m){u(r,t,p);var v,_,S,b=function(e){if(!h&&e in T)return T[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},x=t+" Iterator",w="values"==y,E=!1,T=e.prototype,I=T[f]||T["@@iterator"]||y&&T[y],M=I||b(y),k=y?w?b("entries"):M:void 0,P="Array"==t&&T.entries||I;if(P&&(S=c(P.call(new e)))!==Object.prototype&&S.next&&(l(S,x,!0),n||"function"==typeof S[f]||a(S,f,d)),w&&I&&"values"!==I.name&&(E=!0,M=function(){return I.call(this)}),n&&!m||!h&&!E&&T[f]||a(T,f,M),s[t]=M,s[x]=d,y)if(v={values:w?M:b("values"),keys:g?M:b("keys"),entries:k},m)for(_ in v)_ in T||o(T,_,v[_]);else i(i.P+i.F*(h||E),t,v);return v}},function(e,t,r){t.f=r(31)},function(e,t,r){var n=r(105)("meta"),i=r(32),o=r(46),a=r(37).f,s=0,u=Object.isExtensible||function(){return!0},l=!r(64)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},f=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[n].w},onFreeze:function(e){return l&&f.NEED&&u(e)&&!o(e,n)&&c(e),e}}},function(e,t,r){var n=r(30),i=r(18),o=r(87),a=r(132),s=r(37).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){},function(e,t,r){var n=r(109),i=r(31)("iterator"),o=r(78);e.exports=r(18).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[n(e)]}},function(e,t,r){e.exports={default:r(332),__esModule:!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(2)),a=c(r(4)),s=c(r(7)),u=c(r(5)),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"initPropertys",value:function(e){var r=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"initPropertys",this).call(this,e);return this.layer=r.layer,this.message=r.message,(0,l.isNull)(r.layerView)||(this.layerView=r.layerView),(0,l.isNull)(r.view)||(this.view=r.view),(0,l.isNull)(r.layerIndex)||(this.layerIndex=r.layerIndex),r}}]),t}(c(r(56)).default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(13)),i=p(r(24)),o=p(r(67)),a=p(r(3)),s=p(r(0)),u=p(r(2)),l=p(r(4)),c=p(r(5)),f=r(1),h=p(r(93)),d=r(41);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,s.default)(this,t);var r=(0,l.default)(this,(t.__proto__||(0,a.default)(t)).call(this));return r.type="collection",r.id=(0,f.getGUID)(),e instanceof t?r._items=e.all():Array.isArray(e)?r._items=e:r._items=[],r._items=r._items.map(function(e){return r.createInstance(e)}),r}return(0,c.default)(t,e),(0,u.default)(t,[{key:"add",value:function(e,t){return this._add(e,t),this._fireCollectionChangeEvent({added:[e],target:this,sourceTarget:this}),this}},{key:"addMany",value:function(e,t){var r=this;if(Array.isArray(e)){var n=e.map(function(e){return r.createInstance(e)}),i=this._getNextIndex(t);n.forEach(function(e,t){r._items.splice(i+t,0,e)}),this._fireCollectionChangeEvent({target:this,sourceTarget:this,added:n})}}},{key:"at",value:function(e){return(e=Number(e))>=0?this._items[e]:this._items[this._items.length-1+e]}},{key:"clone",value:function(){for(var e=[],r=0;r<this._items.length;r++)e.push((0,f.cloneObject)(this.items[r]));return new t(e)}},{key:"concat",value:function(e){var t=e;e instanceof this.constructor?t=e.all():e instanceof Array?t=e:"object"===(void 0===e?"undefined":(0,o.default)(e))&&(t=[],(0,i.default)(e).forEach(function(r){t.push(e[r])}));var r=this._items;return t.forEach(function(e){r.push(e)}),new this.constructor(r)}},{key:"every",value:function(e){var t=!0;if(!(e instanceof Function))return!1;for(var r=0;r<this._items.length;r++)if(!e(this._items[r])){t=!1;break}return t}},{key:"filter",value:function(e){if(e instanceof Function){for(var r=[],n=0;n<this._items.length;n++)e(this._items[n])&&r.push(this._items[n]);return new t(r)}}},{key:"find",value:function(e){if(e instanceof Function){for(var t=void 0,r=0;r<this._items.length;r++)if(e(this._items[r])){t=this._items[r];break}return t}}},{key:"findIndex",value:function(e){return this._items.findIndex(e)}},{key:"flatten",value:function(e){if(e instanceof Function){for(var r=[],n=0;n<this._items.length;n++)r.push(this._items[n]);for(var i=0;i<r.length;i++)r=r.concat(o(r[i],e));return new t(r)}function o(e,r){var n=r(e);if(n){if(n instanceof Array)return n;if(n instanceof t){for(var i=n.toArray(),a=0;a<n._items.length;a++)i=i.concat(o(n._items[a],r));return i}return[n]}return[]}}},{key:"forEach",value:function(e){return this._items.forEach(e)}},{key:"getItemAt",value:function(e){return this._items[e]}},{key:"includes",value:function(e){return this._items.includes(e)}},{key:"indexOf",value:function(e,t){return this._items.indexOf(e,t)}},{key:"join",value:function(e){for(var t="",r=0;r<this._items.length-1;r++)t+=this._items[r]+e;return t+this._items[this._items.length-1]}},{key:"lastIndexOf",value:function(e,t){for(var r=-1,n=t=(0,f.defaultValue)(t,this._items.length-1);n>=0;n--)if(this._items[n]===e){r=n;break}return r}},{key:"map",value:function(e){var t=this;if(Array.isArray(this._items))return new this.constructor(this._items.map(e));var r={};return(0,i.default)(this._items).forEach(function(n){r[n]=e(t._items[n],n)}),new this.constructor(r)}},{key:"pop",value:function(){return this._items.pop()}},{key:"push",value:function(e){return this.add(e)}},{key:"reduce",value:function(e,t){var r=this,n=null;return void 0!==t&&(n=t),Array.isArray(this._items)?this._items.forEach(function(t){n=e(n,t)}):(0,i.default)(this._items).forEach(function(t){n=e(n,r._items[t],t)}),n}},{key:"reduceRight",value:function(e,r){for(var n=[],i=this._items.length-1;i>=0;i--)n.push(this._items[i]);return new t(n).reduce(e,r)}},{key:"remove",value:function(e){var t=this._remove(e);return t&&this._fireCollectionChangeEvent({removed:[e],target:this,sourceTarget:this}),t}},{key:"removeAll",value:function(){this._items=[],this._fireCollectionChangeEvent({target:this,sourceTarget:this})}},{key:"removeAt",value:function(e){var t=this._items.splice(e,1);return this._fireCollectionChangeEvent({target:this,sourceTarget:this}),t}},{key:"removeMany",value:function(e){var t=this;if(Array.isArray(e)){for(var r=[],n=[],i=function(i){var o=t._items.findIndex(function(t){return t===e[i]});o>-1&&(n.push(o),r.push(e[i]))},o=0;o<e.length;o++)i(o);return r.length>0&&(this._items=this._items.filter(function(e,t){return n.every(function(e){return e!==t})}),this._fireCollectionChangeEvent({removed:r,target:this,sourceTarget:this})),r}}},{key:"reorder",value:function(e,t){this._reorder(e,t)&&this._fireCollectionChangeEvent({moved:[e],target:this,sourceTarget:this})}},{key:"reverse",value:function(){var e=[].concat(this._items).reverse();return new this.constructor(e)}},{key:"shift",value:function(){return this._items.shift()}},{key:"slice",value:function(e,t){var r=this._items.slice(e);return void 0!==t&&(r=r.slice(0,t)),new this.constructor(r)}},{key:"some",value:function(e){if(!(e instanceof Function))return!1;for(var t=!1,r=0;r<this._items.length;r++)if(e(this._items[r])){t=!0;break}return t}},{key:"sort",value:function(e){var t=[].concat(this._items);return void 0===e?this.every(function(e){return"number"==typeof e})?t.sort(function(e,t){return e-t}):t.sort():t.sort(e),new this.constructor(t)}},{key:"splice",value:function(e,r){for(var n,i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return new t((n=this._items).splice.apply(n,[e,r].concat(o)))}},{key:"toArray",value:function(){for(var e=[],t=0;t<this._items.length;t++)e.push(this.items[t]);return e}},{key:"unshift",value:function(){var e;(e=this._items).unshift.apply(e,arguments)}},{key:"all",value:function(){return this.toArray()}},{key:"unique",value:function(e){var t=void 0;if(void 0===e)t=this._items.filter(function(e,t,r){return r.indexOf(e)===t});else{t=[];for(var r=[],n=0,i=this._items.length;n<i;n+=1){var o;o=e instanceof Function?e(this._items[n]):this._items[n][e],-1===r.indexOf(o)&&(t.push(this._items[n]),r.push(o))}}return new this.constructor(t)}},{key:"createInstance",value:function(e){return e}},{key:"_fireCollectionChangeEvent",value:function(e){if(this.fire("change",new d.CollectionChangeEvent(e),!1),this.fire("collection-refresh",new d.CollectionChangeEvent(e),!1),this._parentCollection)for(var t=this._parentCollection;t;)t.fire("collection-refresh",new d.CollectionChangeEvent(e),!1),t=t._parentCollection}},{key:"_addParentCollection",value:function(e){this._parentCollection=e}},{key:"_removeParentCollection",value:function(){this._parentCollection=void 0}},{key:"_getNextIndex",value:function(e){return e=(0,f.defaultValue)(e,this._items.length),Math.max(0,Math.min(this._items.length,e))}},{key:"_add",value:function(e,t){var r=this.createInstance(e);this._items.splice(this._getNextIndex(t),0,r)}},{key:"_remove",value:function(e){var t=this._items.indexOf(e);return t>-1&&(this._items.splice(t,1),!0)}},{key:"_reorder",value:function(e,t){var r=this._items.length;t=(0,f.defaultValue)(t,r-1);var n=this._items.indexOf(e);return n>-1&&(t=Math.min(Math.max(0,t),r-1))!==n&&(this._items.splice(n,1),this._items.splice(t,0,e),!0)}}],[{key:"isCollection",value:function(e){return e instanceof t}}]),t}(h.default);(0,n.default)(y.prototype,{items:{get:function(){return this._items},set:function(e){var t=this;this._items=e;var r=e.map(function(e){return t.createInstance(e)});this._fireCollectionChangeEvent({target:this,sourceTarget:this,added:r})}},length:{get:function(){return this._items.length}}}),t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.family=(0,o.defaultValue)(t.family,"微软雅黑"),this.size=(0,o.defaultValue)(t.size,12),this.style=(0,o.defaultValue)(t.style,"normal"),this.weight=(0,o.defaultValue)(t.weight,"normal"),this.decoration=(0,o.defaultValue)(t.decoration,"none")}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.family=this.family,e.size=this.size,e.style=this.style,e.weight=this.weight,e.decoration=this.decoration,e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.default="default",n.line="simple-line",n.simpleLine="simple-line",n.fill="simple-fill",n.simpleFill="simple-fill",n.marker="simple-marker",n.simpleMarker="simple-marker",n.pictureMarker="picture-marker",n.text="text",n.pictureFill="picture-fill",n.mapgisText="mapgis-text",n.point3D="point-3d",n.polygon3D="polygon-3d",n.line3D="line-3d",n.label3D="label-3d",i);Object.defineProperty(a,"default",{writable:!1}),Object.defineProperty(a,"line",{writable:!1}),Object.defineProperty(a,"simpleLine",{writable:!1}),Object.defineProperty(a,"fill",{writable:!1}),Object.defineProperty(a,"simpleFill",{writable:!1}),Object.defineProperty(a,"marker",{writable:!1}),Object.defineProperty(a,"simpleMarker",{writable:!1}),Object.defineProperty(a,"pictureMarker",{writable:!1}),Object.defineProperty(a,"text",{writable:!1}),Object.defineProperty(a,"pictureFill",{writable:!1}),Object.defineProperty(a,"mapgisText",{writable:!1}),Object.defineProperty(a,"point3D",{writable:!1}),Object.defineProperty(a,"polygon3D",{writable:!1}),Object.defineProperty(a,"line3D",{writable:!1}),Object.defineProperty(a,"label3D",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.left="left",n.right="right",n.center="center",i);Object.defineProperty(a,"left",{writable:!1}),Object.defineProperty(a,"right",{writable:!1}),Object.defineProperty(a,"center",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.baseline="baseline",n.top="top",n.middle="middle",n.bottom="bottom",i);Object.defineProperty(a,"baseline",{writable:!1}),Object.defineProperty(a,"top",{writable:!1}),Object.defineProperty(a,"middle",{writable:!1}),Object.defineProperty(a,"bottom",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.butt="butt",n.round="round",n.square="square",i);Object.defineProperty(a,"butt",{writable:!1}),Object.defineProperty(a,"round",{writable:!1}),Object.defineProperty(a,"square",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.bevel="bevel",n.miter="miter",n.round="round",i);Object.defineProperty(a,"bevel",{writable:!1}),Object.defineProperty(a,"miter",{writable:!1}),Object.defineProperty(a,"round",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.gcj02ll=20010201,n.gcj02mc=20010202,n.bd09ll=20020901,n.bd09mc=20020902,i);Object.defineProperty(a,"gcj02ll",{writable:!1}),Object.defineProperty(a,"gcj02mc",{writable:!1}),Object.defineProperty(a,"bd09ll",{writable:!1}),Object.defineProperty(a,"bd09mc",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeaturesFromFeatureSet=t.FeatureSet=t.Feature=void 0;var n=a(r(192)),i=a(r(440)),o=r(449);function a(e){return e&&e.__esModule?e:{default:e}}t.Feature=n.default,t.FeatureSet=i.default,t.getFeaturesFromFeatureSet=o.getFeaturesFromFeatureSet},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(7)),u=d(r(5)),l=r(1),c=r(6),f=d(r(430)),h=d(r(431));function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));e=(0,l.defaultValue)(e,{}),r.type=c.SymbolType.simpleLine,r.cap=(0,l.defaultValue)(e.cap,"round"),r.join=(0,l.defaultValue)(e.join,"round"),r.miterLimit=(0,l.defaultValue)(e.miterLimit,2),r.style=(0,l.defaultValue)(e.style,"solid");var o=(0,l.defaultValue)(e.marker,null);return o?(o.color=(0,l.defaultValue)(o.color,r.color.clone()),r.marker=h.default.fromJSON(o)):r.marker=null,r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.cap=this.cap,e.join=this.join,e.miterLimit=this.miterLimit,e.style=this.style,e.marker=this.marker?this.marker.toJSON():null,e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(f.default);t.default=p},function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){"use strict";var n=r(88);e.exports.f=function(e){return new function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)}(e)}},function(e,t,r){var n=r(54);e.exports=function(e,t,r){for(var i in t)r&&e[i]?e[i]=t[i]:n(e,i,t[i]);return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(0)),i=o(r(2));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(){(0,n.default)(this,e)}return(0,i.default)(e,[{key:"drawFeature",value:function(e,t){}},{key:"updateFeature",value:function(e,t,r){}},{key:"clearFeature",value:function(e,t){}},{key:"clear",value:function(e){}}]),e}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.default=function e(t){(0,n.default)(this,e),t=(0,i.defaultValue)(t,{}),this.before=(0,i.defaultValue)(t.success,void 0),this.failure=(0,i.defaultValue)(t.failure,void 0)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.default=function e(t){(0,n.default)(this,e),t=(0,i.defaultValue)(t,{}),this.success=(0,i.defaultValue)(t.success,void 0),this.failure=(0,i.defaultValue)(t.failure,void 0)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),i=r(6),o=window.fetch,a={commit:function(e,t,r,n){switch(e=e?e.toUpperCase():e){case"GET":return this._get(t,n);case"POST":return this._post(t,r,n);case"PUT":return this._put(t,r,n);case"DELETE":return this._delete(t,r,n);default:return this._get(t,n)}},_get:function(e,t){return t=(0,n.defaultValue)(t,{}),this._fetch(e,void 0,t,i.FetchMethod.get)},_delete:function(e,t,r){return r=(0,n.defaultValue)(r,{}),this._fetch(e,t,r,i.FetchMethod.delete)},_post:function(e,t,r){return r=(0,n.defaultValue)(r,{}),this._fetch(e,t,r,i.FetchMethod.post)},_put:function(e,t,r){return r=(0,n.defaultValue)(r,{}),this._fetch(e,t,r,i.FetchMethod.put)},_fetch:function(e,t,r,a){if((r=(0,n.defaultValue)(r,{})).withCredentials=(0,n.defaultValue)(r.withCredentials,!0),r.headers=(0,n.defaultValue)(r.headers,{}),r.requestTimeout=(0,n.defaultValue)(r.requestTimeout,45e3),r.headers["Content-Type"]||(r.headers["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8"),!(0,n.isNull)(r.tokenKey)&&!(0,n.isNull)(r.tokenValue)){var s=function(){"string"==typeof t?"&"===t.slice(-1)?t+=r.tokenKey+"="+r.tokenValue:t+="&"+r.tokenKey+"="+r.tokenValue:t instanceof Object&&(t[r.tokenKey]=r.tokenValue)},u=function(){e.indexOf("?")<0?e+="?"+r.tokenKey+"="+r.tokenValue:"&"===e.slice(-1)||"?"===e.slice(-1)?e+=r.tokenKey+"="+r.tokenValue:e+="&"+r.tokenKey+"="+r.tokenValue};switch((0,n.defaultValue)(r.tokenAttachType,i.TokenAttachType.normal)){case i.TokenAttachType.normal:default:a===i.FetchMethod.post?s():u();break;case i.TokenAttachType.url:u();break;case i.TokenAttachType.header:r.headers[r.tokenKey]=r.tokenValue;break;case i.TokenAttachType.body:s()}}var l={method:a,body:t,headers:r.headers,credentials:r.withCredentials?"same-origin":"omit",mode:"cors",timeout:r.requestTimeout};return r.responseType&&(l.responseType=r.responseType),o(e,l).then(function(e){return e}).catch(function(e){return e})}};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(13)),i=u(r(24)),o=u(r(0)),a=u(r(2)),s=r(1);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(){(0,o.default)(this,e)}return(0,a.default)(e,null,[{key:"matchString",value:function(e){for(var t=(0,i.default)(this.regExps),r=0;r<t.length;r++)if(this.regExps[t[r]].test(e)){var n=e.match(this.regExps[t[r]]);return"MapServerV1"===t[r]?n[0].replace("/igs/rest/mrcs/docs/","/igs/rest/mrms/docs/"):n[0]}return s.Log.warning("无法匹配输入的字符串: ",e,",不影响后续处理流程"),e}},{key:"testByRegExpNames",value:function(e,t){for(var r=!1,n=0;n<t.length;n++)if(r=this.regExps[t[n]].test(e))return r;return r}},{key:"matchStringByRegExpNames",value:function(e,t){t=(0,s.defaultValue)(t,[]);for(var r=0;r<t.length;r++){var n=this.regExps[t[r]];if(n.test(e)){var i=e.match(n);return"MapServerV1Wrong"===t[r]?i[0].replace("/igs/rest/mrcs/docs/","/igs/rest/mrms/docs/"):i[0]}}return s.Log.warning("无法匹配输入的字符串: ",e,",不影响后续处理流程"),e}},{key:"initRegExps",value:function(){}}]),e}();l._regExps=null,l.requestWordRegExp="[一-龟\\w:%_-]+",l.IPAndPortRegExp="(([0-9.a-zA-Z]+|localhost):[0-9]{1,5}|([0-9.a-zA-Z]+|localhost))",l.ProtocolRegExp="(http://|https://|ftp://|gopher://|file://|file:///)",(0,n.default)(l,{regExps:{get:function(){return this._regExps||this.initRegExps(),this._regExps},set:function(e){this._regExps=e}}}),t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CAttStruct=t.CAttDataRow=t.ArcGISVectorTileServer=t.ArcGISFeatureServer=t.ArcGISGeometryServer=t.ThemesInfo=t.ThemeServer=t.ItemValue=t.FolderInfoAttribute=t.FolderInfo=t.ExpInfo=t.CUniqueThemeInfo=t.CUniqueTheme=t.CThemeInfo=t.CTheme=t.CSimpleTheme=t.CRegInfo=t.CRangeThemeInfo=t.CRangeTheme=t.CRandomTheme=t.CPntInfo=t.CMultiClassTheme=t.CLinInfo=t.CGraduatedSymbolTheme=t.CFourColorTheme=t.CDotDensityTheme=t.CChartType=t.CChartThemeRepresentInfo=t.CChartThemeInfo=t.CChartTheme=t.CChartLabelFormat=t.CAnnInfo=t.CAllOtherDataItemInfoSource=t.ArcGISMapServer=t.WorkFlowServer=t.WFSServer=t.WMTSServer=t.WMSServer=t.SceneServer=t.ResourceServer=t.PlotServer=t.VectorTileServer=t.TileServer=t.RootServer=t.SecurityServer=t.TerrainServer=t.PoiServer=t.Cesium3DTilesServer=t.AddressServer=t.GeometryServer=t.ImageServer=t.M3DServer=t.FeatureServer=t.MapServer=void 0;var n=T(r(489)),i=T(r(490)),o=T(r(491)),a=T(r(492)),s=T(r(563)),u=T(r(564)),l=T(r(565)),c=T(r(566)),f=T(r(237)),h=T(r(567)),d=T(r(568)),p=T(r(221)),y=T(r(569)),g=T(r(570)),m=T(r(571)),v=T(r(572)),_=T(r(164)),S=T(r(118)),b=r(573),x=r(579),w=r(583),E=r(257);function T(e){return e&&e.__esModule?e:{default:e}}t.MapServer=n.default,t.FeatureServer=i.default,t.M3DServer=o.default,t.ImageServer=a.default,t.GeometryServer=s.default,t.AddressServer=u.default,t.Cesium3DTilesServer=l.default,t.PoiServer=c.default,t.TerrainServer=f.default,t.SecurityServer=h.default,t.RootServer=d.default,t.TileServer=p.default,t.VectorTileServer=y.default,t.PlotServer=g.default,t.ResourceServer=m.default,t.SceneServer=v.default,t.WMSServer=b.WMSServer,t.WMTSServer=b.WMTSServer,t.WFSServer=b.WFSServer,t.WorkFlowServer=E.WorkFlowServer,t.ArcGISMapServer=x.ArcGISMapServer,t.CAllOtherDataItemInfoSource=w.CAllOtherDataItemInfoSource,t.CAnnInfo=w.CAnnInfo,t.CChartLabelFormat=w.CChartLabelFormat,t.CChartTheme=w.CChartTheme,t.CChartThemeInfo=w.CChartThemeInfo,t.CChartThemeRepresentInfo=w.CChartThemeRepresentInfo,t.CChartType=w.CChartType,t.CDotDensityTheme=w.CDotDensityTheme,t.CFourColorTheme=w.CFourColorTheme,t.CGraduatedSymbolTheme=w.CGraduatedSymbolTheme,t.CLinInfo=w.CLinInfo,t.CMultiClassTheme=w.CMultiClassTheme,t.CPntInfo=w.CPntInfo,t.CRandomTheme=w.CRandomTheme,t.CRangeTheme=w.CRangeTheme,t.CRangeThemeInfo=w.CRangeThemeInfo,t.CRegInfo=w.CRegInfo,t.CSimpleTheme=w.CSimpleTheme,t.CTheme=w.CTheme,t.CThemeInfo=w.CThemeInfo,t.CUniqueTheme=w.CUniqueTheme,t.CUniqueThemeInfo=w.CUniqueThemeInfo,t.ExpInfo=w.ExpInfo,t.FolderInfo=w.FolderInfo,t.FolderInfoAttribute=w.FolderInfoAttribute,t.ItemValue=w.ItemValue,t.ThemeServer=w.ThemeServer,t.ThemesInfo=w.ThemesInfo,t.ArcGISGeometryServer=x.ArcGISGeometryServer,t.ArcGISFeatureServer=x.ArcGISFeatureServer,t.ArcGISVectorTileServer=x.ArcGISVectorTileServer,t.CAttDataRow=_.default,t.CAttStruct=S.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=_(r(13)),i=_(r(20)),o=_(r(10)),a=_(r(3)),s=_(r(0)),u=_(r(2)),l=_(r(4)),c=_(r(7)),f=_(r(5)),h=r(1),d=_(r(83)),p=_(r(496)),y=_(r(114)),g=r(6),m=r(43),v=r(12);function _(e){return e&&e.__esModule?e:{default:e}}function S(e,t){e.sublayers.forEach(function(e){S(e,t)}),e._styleLayers.forEach(function(e){t.push(e)})}var b=function(e){function t(e){(0,s.default)(this,t);var r=(0,l.default)(this,(t.__proto__||(0,a.default)(t)).call(this,e));return e=(0,h.defaultValue)(e,{}),r.type=g.SubLayerType.vectorTileSub,r.originLayerType=(0,h.defaultValue)(e.originLayerType,"SFeatureLayer"),r.capabilities=(0,v.mergeCommonClientCapbilities)(r.capabilities,{labelingInfo:!0,styleLayers:!0,visible:!0,opacity:!0,renderer:!0}),r._labelingInfo=(0,h.defaultValue)(e.labelingInfo,[]),r._styleLayers=(0,h.defaultValue)(e.styleLayers,[]),r._visible=(0,h.defaultValue)(e.visible,!0),r._opacity=(0,h.defaultValue)(e.opacity,1),r._renderer=e.renderer?m.BaseRenderer.fromJSON(e.renderer):null,r._updateStyleLayers(),r}return(0,f.default)(t,e),(0,u.default)(t,[{key:"_updateStyleLayers",value:function(){var e=this;this._convertLabelInfoToLabelClass(),this._styleLayers.forEach(function(t){t.paint||(t.paint={}),t.layout||(t.layout={}),e._renderer&&e._updateStyleLayerByRenderer(t),e._updateStyleLayerVisibleBySublayer(t),e._updateStyleLayerOpacityBySublayer(t),e._updateStyleLayerByLabelingInfo(t)})}},{key:"_updateOpacity",value:function(){var e=this;this.sublayers.forEach(function(e){e._updateOpacity()}),this._styleLayers.forEach(function(t){e._updateStyleLayerOpacityBySublayer(t)})}},{key:"_updateVisible",value:function(){var e=this;this.sublayers.forEach(function(e){e._updateVisible()}),this._styleLayers.forEach(function(t){e._updateStyleLayerVisibleBySublayer(t)})}},{key:"_updateStyleLayerVisibleBySublayer",value:function(e){var t=this.getCumulative("visible",function(e,t){return e&&t});e.layout.visibility=t?"visible":"none"}},{key:"_updateStyleLayerOpacityBySublayer",value:function(e){var t=this.getCumulative("opacity",function(e,t){return e*t});switch(e.type){case"fill":e.paint["fill-opacity"]=t;break;case"line":e.paint["line-opacity"]=t;break;case"symbol":e.paint["icon-opacity"]=t,e.paint["text-opacity"]=t;break;case"raster":e.paint["raster-opacity"]=t;break;case"background":e.paint["background-opacity"]=t;break;case"circle":e.paint["circle-opacity"]=t,e.paint["circle-stroke-opacity"]=t}}},{key:"_updateStyleLayerByRenderer",value:function(e){var t=p.default.renderToStyle(this._renderer,e.type,JSON.parse((0,o.default)(e)));if(t){var r=t.paint,n=t.layout;e.paint=(0,i.default)(e.paint,r),e.layout=(0,i.default)(e.layout,n)}}},{key:"_convertLabelInfoToLabelClass",value:function(){for(var e=(0,h.cloneObject)(this._labelingInfo),t=[],r=0;r<e.length;r++)t.push(new d.default(e[r]));this._labelingInfo=t}},{key:"_updateStyleLayerByLabelingInfo",value:function(e){this.layer.setExtendProperties(e.id,"labelingInfo",this._labelingInfo)}},{key:"toJSON",value:function(){var e=(0,c.default)(t.prototype.__proto__||(0,a.default)(t.prototype),"toJSON",this).call(this);return e.type=this.type,e.styleLayers=JSON.parse((0,o.default)(this.styleLayers)),e.renderer=this.renderer?this.renderer.toJSON():null,e.labelingInfo=this.labelingInfo.map(function(e){return e.toJSON()}),e.originLayerType=this.originLayerType,e}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"_fireSublayerUpdateEvent",value:function(){this.layer._fireLayerUpdateEvent([{params:arguments,dataChanged:!0,name:"sublayerUpdate",operationType:"method"}])}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(y.default);(0,n.default)(b.prototype,{styleLayers:{get:function(){return this._styleLayers}},renderer:{get:function(){return this._renderer},set:function(e){var t=this;this._renderer=e?m.BaseRenderer.fromJSON(e):null,this._styleLayers.forEach(function(e){t._updateStyleLayerByRenderer(e)}),this._fireSublayerUpdateEvent(this._styleLayers)}},visible:{get:function(){return this._visible},set:function(e){this._visible=e,this._updateVisible();var t=[];S(this,t),this._fireSublayerUpdateEvent(t)}},opacity:{get:function(){return this._opacity},set:function(e){this._opacity=e,this._updateOpacity();var t=[];S(this,t),this._fireSublayerUpdateEvent(t)}},labelingInfo:{get:function(){return this._labelingInfo},set:function(e){var t=this;this._labelingInfo=e,this._convertLabelInfoToLabelClass(),this._styleLayers.forEach(function(e){t._updateStyleLayerByLabelingInfo(e)}),this._fireSublayerUpdateEvent(this._styleLayers)}}}),t.default=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(10)),i=d(r(3)),o=d(r(0)),a=d(r(2)),s=d(r(4)),u=d(r(5)),l=r(8),c=r(9),f=r(1),h=r(16);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this));return e=(0,f.defaultValue)(e,{}),r.sceneIndex=(0,f.defaultValue)(e.sceneIndex,0),r.sceneName=(0,f.defaultValue)(e.sceneName,""),r.sceneMode=(0,f.defaultValue)(e.sceneMode,""),r.sceneRange=e.sceneRange?new c.Extent({xmin:e.sceneRange.xMin,ymin:e.sceneRange.yMin,xmax:e.sceneRange.xMax,ymax:e.sceneRange.yMax,zmin:e.sceneRange.zMin,zmax:e.sceneRange.zMax}):null,r.layer=(0,f.defaultValue)(e.layer,null),r.sublayers=r._decorate("sublayers",(0,f.defaultValue)(e.sublayers,null),null,function(e){return e instanceof l.Collection?e:Array.isArray(e)?new l.Collection(e.map(function(e){return e.layer=r.layer,e.parent=r.layer,h.SubLayer.fromJSON(e)})):null}),r.allSublayers=new l.CollectionFlattener({getCollections:function(){return r.sublayers instanceof l.Collection?[r.sublayers]:[]},getChildrenFunction:function(e){return e.sublayers}}),r.extendedProps=(0,f.defaultValue)(e.extendedProps,{}),r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"findSublayerById",value:function(e){return this.allSublayers.find(function(t){return String(t.id)===String(e)})}},{key:"toJSON",value:function(){var e={};return e.sceneIndex=this.sceneIndex,e.sceneName=this.sceneName,e.sceneMode=this.sceneMode,e.sceneRange=this.sceneRange?this.sceneRange.toJSON():null,e.extendedProps=JSON.parse((0,n.default)(this.extendedProps)),e.sublayers=this.sublayers?this.sublayers.map(function(e){return e.toJSON()}):null,e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(l.Evented);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(7)),u=d(r(5)),l=r(16),c=r(1),f=r(6),h=r(12);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,c.defaultValue)(e,{}),r.type=f.LayerType.overlay,r.capabilities=(0,h.mergeCommonClientCapbilities)(r.capabilities,{type:!0}),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,c.defaultValue)(e,{}))}}]),t}(l.Layer);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(2)),a=c(r(4)),s=c(r(7)),u=c(r(5)),l=r(8);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"createInstance",value:function(e){var t=e;return e instanceof l.Feature||(t=l.Feature.fromJSON(e)),Array.isArray(t._decorateParents)||(t._decorateParents=[]),t._decorateParents.push({instance:this,key:t.id}),t}},{key:"getFeatureById",value:function(e){var t=this.findIndex(function(t){return t.id===e});if(t>-1)return this.items[t]}},{key:"removeFeatureById",value:function(e){var t=this.findIndex(function(t){return t.id===e});return t>-1&&(this._removeEventParent(this.items[t]),this.items.splice(t,1),!0)}},{key:"remove",value:function(e){return this._removeEventParent(e),(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"remove",this).call(this,e)}},{key:"removeMany",value:function(e){var r=this;return e.forEach(function(e){r._removeEventParent(e)}),(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"removeMany",this).call(this,e)}},{key:"removeAll",value:function(){var e=this;this._items.forEach(function(t){e._removeEventParent(t)}),this._items=[],this._fireCollectionChangeEvent({target:this,sourceTarget:this})}},{key:"removeAt",value:function(e){return e<this._items.length&&this._removeEventParent(this._items[e]),(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"_removeAt",this).call(this,e)}},{key:"_removeEventParent",value:function(e){var t=this;if(e&&Array.isArray(e._decorateParents)){var r=e._decorateParents.findIndex(function(e){return e.instance===t});r>-1&&e._decorateParents.splice(r,1)}}}],[{key:"collect",value:function(e){return new t(e)}}]),t}(l.Collection);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLayersExtent=t.getCrsOptions=t.getCrsOptionsBySpatialReference=t.getLayerViewsGeographicExtent=t.getValidLayers=t.isLayerViewValid=void 0;var n=r(9),i=r(6),o=r(8),a=r(1),s=r(59);function u(e,t){var r=!1;if(t&&t.spatialReference&&e){var o=e;o instanceof n.SpatialReference||(o=n.SpatialReference.fromJSON(o)),r=!(i.LayerType.isTileLayer(t.type)&&t.spatialReference.wkid&&!(o.isWebMercator&&[i.CustomWKID.gcj02mc,i.CustomWKID.bd09mc].indexOf(t.spatialReference.wkid)>-1))||o.equals(t.spatialReference)||o.isGeographic&&t.spatialReference.isGeographic||o.isWebMercator&&t.spatialReference.isWebMercator}return r}t.isLayerViewValid=u,t.getValidLayers=function(e,t){var r=e.spatialReference,n=[];return t.forEach(function(e){u(r,e)&&n.push(e)}),n},t.getLayerViewsGeographicExtent=function(e,t,r){var i=e.extent,a=r._getLayersExtent(t);return a||(a=n.Extent.fromJSON(i.toJSON())),o.Projection.project(a,new n.SpatialReference("EPSG:4326"))},t.getCrsOptionsBySpatialReference=function(e,t,r){r||(r=s.TileInfoUtil.generateTileInfo(t,256,e));var n=r.origin.coordinates,i=r.lods.map(function(e){return e.clone()});return t.spatialReference.equals(e)||(t=o.Projection.project(t,e)),{spatialReference:e,lods:i,origin:n,extent:{xmin:t.xmin,ymin:t.ymin,xmax:t.xmax,ymax:t.ymax}}},t.getCrsOptions=function(e,t,r){r=(0,a.defaultValue)(r,{});var o=(0,a.defaultValue)(r.fullExtent,void 0),u=(0,a.defaultValue)(r.mergeLevelRatio,1.05),l=(0,a.defaultValue)(r.maxScale,void 0),c=(0,a.defaultValue)(r.minScale,void 0),f=(0,a.defaultValue)(r.refSpatialReference,void 0),h=void 0,d=void 0,p=e.tileInfo,y=e.spatialReference;if(f&&f.isWebMercator&&[i.CustomWKID.gcj02mc,i.CustomWKID.bd09mc].indexOf(y.wkid)>-1)h=new n.Extent({xmin:-20037508.342789244,ymin:-20037508.342789244,xmax:20037508.342789244,ymax:20037508.342789244,spatialReference:f}),d=i.TileSliceType.WMTS,p=s.TileInfoUtil.createCommonTileInfo({extent:h,numberOfMinLevelTilesX:1,maxLevel:18});else if(e.type===i.LayerType.WMTS)p=e.getCurrentTileInfo();else if(e.type===i.LayerType.WMS)p=s.TileInfoUtil.parseWMSTileInfo(e,o);else if(e.type===i.LayerType.IGSMapImage||e.type===i.LayerType.ArcGISMapImage||e.type===i.LayerType.IGSFeature||e.type===i.LayerType.WFS||e.type===i.LayerType.GeoJSON||e.type===i.LayerType.IGSImage){var g=256;e.imageWidth&&e.imageHeight&&(g=Math.max(e.imageWidth,e.imageHeight)),p=s.TileInfoUtil.generateTileInfo(o,g,y)}var m=n.Point.toCoordinates(p.origin),v=[];if(f&&f.isWebMercator&&[i.CustomWKID.gcj02mc,i.CustomWKID.bd09mc].indexOf(y.wkid)>-1){var _=p.lods.map(function(e){return e.clone()});v=v.concat(_)}if(t.forEach(function(e){var t=[];e.tileInfo?t=e.tileInfo.lods.map(function(e){return e.clone()}):e.type===i.LayerType.WMTS&&(t=e.getCurrentTileInfo().lods.map(function(e){return e.clone()})),v=v.concat(t)}),0===v.length&&(v=p.lods),v=v.filter(function(e){return 0!==e.scale}).sort(function(e,t){return t.resolution-e.resolution}),(0,a.defined)(c))for(;(0,a.defined)(v[0].scale)&&v[0].scale<c;){var S=v[0],b={level:S.level-1,resolution:2*S.resolution,scale:2*S.scale};2*S.scale>c&&S.scale<c&&(b={level:S.level-1,resolution:c/S.scale*S.resolution,scale:c}),v.unshift(s.LOD.fromJSON(b))}if((0,a.defined)(l))for(;(0,a.defined)(v[v.length-1].scale)&&v[v.length-1].scale>l;){var x=v[v.length-1],w={level:x.level+1,resolution:x.resolution/2,scale:x.scale/2};x.scale/2<l&&x.scale>l&&(w={level:x.level+1,resolution:l/x.scale*x.resolution,scale:l}),v.push(s.LOD.fromJSON(w))}for(var E=[v[0]],T=1;T<v.length;T++){var I=v[T];E[E.length-1].resolution/I.resolution<=u||E.push(I)}E.forEach(function(e,t){e.level=t,e.levelValue=t});var M=E.map(function(e){return e.resolution});return{spatialReference:f||y,resolutions:M,origin:m,extent:h||o,lods:E,tileSize:p.getTileSize(),tileSliceType:d||e.tileSliceType}},t.getLayersExtent=function(e,t){var r=void 0;return e.forEach(function(e){if(e.extent){var i=void 0;i=s.TileInfoUtil.isSameSpatialReference(e.extent.spatialReference,t)?e.extent:o.Projection.project(e.extent,t),e.extent.spatialReference&&t&&e.loaded&&(r?(r.xmin>i.xmin&&(r.xmin=i.xmin),r.ymin>i.ymin&&(r.ymin=i.ymin),r.xmax<i.xmax&&(r.xmax=i.xmax),r.ymax<i.ymax&&(r.ymax=i.ymax)):r=n.Extent.fromJSON(i.toJSON()))}}),r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.default=function(e,t,r){var i=(0,n.defaultValue)(r,{});(0,n.extend)(this,i),this.FID=(0,n.defaultValue)(t,0),this.Values=(0,n.defaultValue)(e,null)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=E(r(13)),i=E(r(15)),o=E(r(24)),a=E(r(48)),s=E(r(3)),u=E(r(0)),l=E(r(2)),c=E(r(4)),f=E(r(5)),h=r(8),d=r(1),p=r(6),y=E(r(102)),g=r(9),m=E(r(239)),v=E(r(166)),_=E(r(622)),S=r(59),b=E(r(623)),x=r(110),w=r(41);function E(e){return e&&e.__esModule?e:{default:e}}var T=function(e){function t(e){(0,u.default)(this,t);var r=(0,c.default)(this,(t.__proto__||(0,s.default)(t)).call(this));return e=(0,d.defaultValue)(e,{}),r._map=null,r._id=(0,d.getGUID)(),r._cursor=(0,d.defaultValue)(e.cursor,void 0),r.scale=(0,d.defaultValue)(e.scale,void 0),r.minScale=void 0,r.maxScale=void 0,r.rotation=0,r.center=(0,d.defaultValue)(e.center,[0,0]),r.minZoom=(0,d.defaultValue)(e.minZoom,0),r.maxZoom=(0,d.defaultValue)(e.maxZoom,19),r.zoom=(0,d.defaultValue)(e.zoom,1),r.extensionOptions=(0,d.defaultValue)(e.extensionOptions,{}),r.extendProps=(0,d.defaultValue)(e.extendProps,{}),r.popup=void 0,r.stationary=!0,r._spatialReference=new g.SpatialReference("EPSG:4326"),r.layerViews=new h.Collection,r.basemapLayerViews=new h.Collection,r._viewLayersMap=new m.default,r._graphicsLayers=r._viewLayersMap.groupLayer,r._viewLayersGroupLayerView=void 0,r._setViewLayers(r._graphicsLayers),r.overlayLayerViews=new h.Collection,r.allLayerViews=new h.CollectionFlattener({getCollections:function(){return[r.basemapLayerViews,r.layerViews,r.overlayLayerViews,r._viewLayersGroupLayerView.layerViews]},getChildrenFunction:function(e){return e.layerViews}}),r.layerViewFilter=b.default.fromJSON((0,d.defaultValue)(e.layerViewFilter,{})),r.initialGoTo=(0,d.defaultValue)(e.initialGoTo,!0),r._initMapEventHandlers(),r.setMap(e.map),r._viewId=(0,d.defaultValue)(e.viewId,""),r._innerView=null,r._initCursor(),r}return(0,f.default)(t,e),(0,l.default)(t,[{key:"setMap",value:function(e){this._map||(this._map=e instanceof m.default?e:m.default.fromJSON(e),this._linkMapEvent(this._map),this._linkLayerEvent(this._map),this._map._loadLayers(),this.groupLayerView=new v.default({layer:this._map.groupLayer,layerViews:this.layerViews,view:this}),this.overlayGroupLayerView=new v.default({layer:this._map.overlayLayers,layerViews:this.overlayLayerViews,view:this}),this._map.basemap&&this._setBasemapLayerView())}},{key:"getInnerView",value:function(){return this._innerView}},{key:"getInnerLayer",value:function(e,t){if(e){var r="string"==typeof e?e:e.id,n=this._findLayerViewById(r);return t&&n?this._getInnerSublayer(n,t):n?n.innerLayer:null}}},{key:"_getInnerSublayer",value:function(e,t){return null}},{key:"getLayer",value:function(e){return(this._findLayerViewById(e)||{}).layer}},{key:"_setBasemapLayerView",value:function(){this._basemapView=new _.default({baseGroupLayer:this._map.basemap._baseGroupLayer,baseLayerViews:this.basemapLayerViews,view:this}),this.basemapGroupLayerView=this._basemapView.groupLayerView}},{key:"_removeBasemapLayerView",value:function(){this._basemapView=null,this.basemapGroupLayerView=null}},{key:"_linkLayerEvent",value:function(e){var t=this;if(e){var r=!0,n=!1,i=void 0;try{for(var s,u=function(){var r=s.value,n=t;e.on(p.LayerEventType[r],function(e){var t=e;t instanceof h.Event?t.addProperty("view",n):t&&(t.view=n),n.fire(p.LayerEventType[r],t)},e)},l=(0,a.default)((0,o.default)(p.LayerEventType));!(r=(s=l.next()).done);r=!0)u()}catch(e){n=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(n)throw i}}}}},{key:"_linkMapEvent",value:function(e){var t=this;if(e){var r=!0,n=!1,i=void 0;try{for(var s,u=function(){var r=s.value,n=t;e.on(p.MapEventType[r],function(e){var t=e;t instanceof h.Event?t.addProperty("view",n):t&&(t.view=n),n.fire(p.MapEventType[r],t)})},l=(0,a.default)((0,o.default)(p.MapEventType));!(r=(s=l.next()).done);r=!0)u()}catch(e){n=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(n)throw i}}}}},{key:"_getLayerView",value:function(e){if(e)return this._findLayerViewById(e.id)}},{key:"_initMapEventHandlers",value:function(){this.on(p.MapEventType.layerLoaded,this._processEvent,this),this.on(p.MapEventType.layerChange,this._processEvent,this),this.on(p.LayerEventType.layerUpdate,this._processEvent,this),this.on(p.MapEventType.basemapChange,this._processEvent,this)}},{key:"_processEvent",value:function(e){e.type===p.MapEventType.layerChange&&this._processLayerChange(e),e.type===p.MapEventType.layerLoaded&&this._processLayerLoad(e),e.type===p.LayerEventType.layerUpdate&&e.layer instanceof S.Layer&&this._updateLayerView(e.layer,e),e.type===p.MapEventType.basemapChange&&e.detail&&(e.detail.find(function(e){return"baseLayers-destroy"===e.action})?this._removeBasemapLayerView(e):e.detail.find(function(e){return"basemap-create"===e.action})&&(this._basemapView||this._setBasemapLayerView(e)))}},{key:"_processLayerLoad",value:function(e){var t=this;if(e){var r=e.addDetail;this._prePromise||(this._prePromise=i.default.resolve()),this._prePromise=this._prePromise.then(function(){return t._loadViewSpatialReference().then(function(e){if(!1!==e){var n=i.default.resolve();return r.forEach(function(e){n=n.then(function(){var r=e.added,n=e.sourceTarget,i=t._findGroupLayerViewById(n.id);if(i)return i.addMany(r).then(function(e){i._fireLayerViewCreatedByLayerViews(e),Array.isArray(e)&&e.forEach(function(e){i._reorderLayerView(e)})})})}),n}}).catch(function(e){d.Log.error(e)})})}}},{key:"_processLayerChange",value:function(e){var t=this;if(e&&this.groupLayerView){var r=e.added,n=e.removed,i=e.moved,o=e.sourceTarget,a=this._findGroupLayerViewById(o.id);if(a){var s=void 0;0===n.length&&0===r.length&&0===i.length?s=a.removeAll():n.length>0&&(s=a.removeMany(n)),s&&s.then(function(){return t._loadViewSpatialReference().then().catch(function(e){d.Log.info(e)})}),i.length>0&&i.forEach(function(e){a.reorder(e)})}}}},{key:"_findGroupLayerViewById",value:function(e){var t=void 0;return e===this.groupLayerView.id?t=this.groupLayerView:e===this.overlayGroupLayerView.id?t=this.overlayGroupLayerView:this.basemapGroupLayerView&&e===this.basemapGroupLayerView.id?t=this.basemapGroupLayerView:this._viewLayersMap&&this._viewLayersGroupLayerView&&e===this._viewLayersGroupLayerView.id?t=this._viewLayersGroupLayerView:(!(t=this.groupLayerView._findFlatLayerViewById(e))&&this.basemapGroupLayerView&&(t=this.basemapGroupLayerView._findFlatLayerViewById(e)),!t&&this.overlayGroupLayerView&&(t=this.overlayGroupLayerView._findFlatLayerViewById(e)),!t&&this._viewLayersGroupLayerView&&(t=this._viewLayersGroupLayerView._findFlatLayerViewById(e))),t}},{key:"_loadViewSpatialReference",value:function(){var e=this;return new i.default(function(t,r){e._map._setSpatialReference(e._spatialReference),e._map.getFullExtent(),e._spatialReference?t(!0):r()})}},{key:"_loadLayerViews",value:function(){var e=this;return new i.default(function(t){e._map._spatialReference=e._spatialReference,e._map._fullExtent=e._fullExtent,t()})}},{key:"_getFlyToCenter",value:function(e){var t=void 0;if(e.center){if(Array.isArray(e.center)&&e.center.length>1){var r=e.center.length>2?[e.center[0],e.center[1],e.center[2]]:[e.center[0],e.center[1]];t=new g.Point({coordinates:r,spatialReference:this._spatialReference?this._spatialReference:new g.SpatialReference({wkid:4326})})}else e.center instanceof g.Point?t=g.Point.fromJSON(e.center):e.center instanceof g.Point||d.Log.error("center类型为不支持的类型!");t.spatialReference.isGeographic||(t=h.Projection.project(t,new g.SpatialReference({wkid:4326})))}return t}},{key:"_getFlyToExtent",value:function(e){var t=void 0;return e.extent&&(e.extent instanceof g.Extent?(t=g.Extent.fromJSON(e.extent)).spatialReference.isGeographic||(t=h.Projection.project(t,new g.SpatialReference({wkid:4326}))):d.Log.error("extent类型为不支持的类型!")),t}},{key:"_updateLayerView",value:function(e,t){var r=this,n=this._findLayerViewById(e.id);return n instanceof y.default?n.onUpdate(t).then(function(){return n}).then(function(n){d.Log.info("更新图层",e),t&&(t.addProperty("view",self),t.addProperty("layerView",n)),r.dispatchEvent(p.LayerEventType.layerViewUpdate,t)}):(d.Log.info("图层更新失败,未找到该类型的视图!"),i.default.resolve())}},{key:"dispatchEvent",value:function(e,t,r){return t instanceof h.LayerEvent&&t.layer&&t.layer.fire(e,t,r),this._map&&this._map.dispatchEvent(e,t,r),this}},{key:"_findLayerViewById",value:function(e){var t=this.allLayerViews.items.find(function(t){return t.id===e});return t||(t=this._viewLayersGroupLayerView.allLayerViews.items.find(function(t){return t.id===e})),t}},{key:"_updateLayerViewScaleVisible",value:function(){for(var e=this.allLayerViews.items.filter(function(e){return e.type!==p.LayerType.group}),t=[],r=0;r<e.length;r++){var n=e[r],i=n.layer;if(i.type!==p.LayerType.IGSScene&&i.type!==p.LayerType.ISScene||!n.sublayerViews){if(i.visible){var o=n._scaleVisible;n._updateScaleVisible();var a=n._scaleVisible;if(o!==a){var s=new x.LayerViewUpdateContent({name:"scaleVisible",params:[{beforeScaleVisible:o,currentScaleVisible:a}],dataChanged:!0,operationType:"property"});i._fireUpdateEvent("图层视图比例尺显示和隐藏状态变化",[s]);var u=new w.LayerViewScaleVisibleEvent({type:p.LayerEventType.layerViewScaleVisible,target:i,layer:i,view:this,layerView:n,beforeScaleVisible:o,currentScaleVisible:a,message:"图层视图比例尺显示和隐藏状态变化"});i.fire(p.LayerEventType.layerViewScaleVisible,u),this.fire(p.LayerEventType.layerViewScaleVisible,u)}}}else t=t.concat(n.sublayerViews.items)}for(var l=0;l<t.length;l++){var c=t[l],f=c.layer;if(f.visible){var h=c._scaleVisible;c._updateScaleVisible();var d=c._scaleVisible;if(h!==d){f.layer._fireSublayerUpdateEvent(f.id,"scaleVisible",{beforeScaleVisible:h,currentScaleVisible:d});var y=new w.LayerViewScaleVisibleEvent({type:p.LayerEventType.layerViewScaleVisible,target:f,layer:f,view:this,layerView:c,beforeScaleVisible:h,currentScaleVisible:d,message:"场景子图层视图比例尺显示和隐藏状态变化"});this.fire(p.LayerEventType.layerViewScaleVisible,y)}}}}},{key:"_orderLayerView",value:function(e,t){if(e instanceof v.default)this._moveGroupLayerView(e,t);else if(t instanceof v.default){var r=this._getLastLayerView(t);this._moveLayerView(e,r)}else if(t instanceof v.default&&e instanceof v.default){var n=this._getLastLayerView(t);this._moveGroupLayerView(e,n)}else this._moveLayerView(e,t)}},{key:"_isImageLayerView",value:function(e){return e.layer instanceof S.IGSTileLayer||e.layer instanceof S.ArcGISTileLayer||e.layer instanceof S.WebTileLayer||e.layer instanceof S.IGSMapImageLayer||e.layer instanceof S.ArcGISMapImageLayer||e.layer instanceof S.IGSImageryLayer||e.layer instanceof S.IGSImageryTileLayer||e.layer instanceof S.WMTSLayer||e.layer instanceof S.WMSLayer||e.layer instanceof S.IGSSceneMapRefSubLayer}},{key:"_isVectorTileLayerView",value:function(e){return e.layer instanceof S.IGSVectorTileLayer||e.layer instanceof S.ArcGISVectorTileLayer}},{key:"_isVisualizationLayerView",value:function(e){return e.layer instanceof S.MapVLayer||e.layer instanceof S.EchartsLayer}},{key:"_isVectorLayerView",value:function(e){return e.layer instanceof S.IGSFeatureLayer||e.layer instanceof S.GeoJSONLayer||e.layer instanceof S.WFSLayer||e.layer instanceof S.GraphicsLayer}},{key:"_isSceneLayerView",value:function(e){return e.layer instanceof S.IGSSceneLayer||e.layer instanceof S.ISSceneLayer}},{key:"_isModelCacheLayerView",value:function(e){return e.layer instanceof S.M3DModelCacheLayer||e.layer instanceof S.IGSSceneModelCacheSubLayer||e.layer instanceof S.Cesium3DTilesCacheLayer||e.layer instanceof S.S3MTilesCacheLayer||e.layer instanceof S.ISSceneModelCacheSubLayer}},{key:"_isTerrainCacheLayerView",value:function(e){return e.layer instanceof S.TerrainCacheLayer}},{key:"_moveGroupLayerView",value:function(e,t){var r=this;e.allLayerViews.forEach(function(e){e instanceof v.default?r._moveGroupLayerView(e,t):r._moveLayerView(e,t)})}},{key:"_moveLayerView",value:function(e,t){}},{key:"_getLastLayerView",value:function(e){var t=e.toArray(),r=t[t.length-1];return r instanceof v.default?this._getLastLayerView(r):r}},{key:"_addAllLayerViews",value:function(){var e=this,t=[];return this.basemapGroupLayerView&&t.push(function(){return e.basemapGroupLayerView.onAdd()}),this.groupLayerView&&t.push(function(){return e.groupLayerView.onAdd()}),this.overlayGroupLayerView&&t.push(function(){return e.overlayGroupLayerView.onAdd()}),this._viewLayersMap&&this._viewLayersGroupLayerView&&t.push(function(){return e._viewLayersGroupLayerView.onAdd()}),(0,d.inOrderPromise)(t)}},{key:"_removeAllLayerViews",value:function(){var e=this,t=[];return this.basemapGroupLayerView&&t.push(function(){return e.basemapGroupLayerView.onRemove()}),this.groupLayerView&&t.push(function(){return e.groupLayerView.onRemove()}),this.overlayGroupLayerView&&t.push(function(){return e.overlayGroupLayerView.onRemove()}),this._viewLayersMap&&this._viewLayersGroupLayerView&&t.push(function(){return e._viewLayersGroupLayerView.onRemove()}),(0,d.inOrderPromise)(t)}},{key:"_createLayerView",value:function(e){return null}},{key:"_initCursor",value:function(){this._setCursor(this.cursor)}},{key:"_setCursor",value:function(e){this._innerView&&(e&&null!==e?this._innerView._container.style.cursor=e:this._innerView._container.style.removeProperty("cursor"),this._cursor=e)}},{key:"_getTargetExtent",value:function(e){var t=void 0;if(e instanceof g.Geometry)e instanceof g.Extent?t=this._getFlyToExtent({extent:e}):e.extent&&(t=this._getFlyToExtent({extent:e.extent}));else{var r=[],n=void 0;Array.isArray(e)?r=e:e instanceof h.Collection&&(r=e.items),r.forEach(function(e){var t=void 0;e instanceof g.Extent?t=e:e instanceof g.Geometry&&e.extent&&(t=e.extent),t.spatialReference.isGeographic||(t=h.Projection.project(t.clone(),new g.SpatialReference("EPSG:4326"))),n?(n.xmin>t.xmin&&(n.xmin=t.xmin),n.xmax<t.xmax&&(n.xmax=t.xmax),n.ymin>t.ymin&&(n.ymin=t.ymin),n.ymax<t.ymax&&(n.ymax=t.ymax)):n=t}),t=this._getFlyToExtent({extent:n})}return t}},{key:"_setViewLayers",value:function(e){this._linkMapEvent(this._viewLayersMap),this._linkLayerEvent(this._viewLayersMap),this._viewLayersGroupLayerView=new v.default({layer:this._viewLayersMap.groupLayer,view:this})}},{key:"_processGraphicsLayersChange",value:function(e){var t=e.added,r=e.removed;t&&t.length>0&&this._viewLayersMap.addMany(t),r&&r.length>0&&this._viewLayersMap.removeMany(r)}},{key:"_getValidCenter",value:function(e){var t=void 0;return(0,d.isNull)(e)||(Array.isArray(e)?e.length>2?t=new g.Point({coordinates:[e[0],e[1],e[2]]}):e.length>1&&(t=new g.Point({coordinates:[e[0],e[1]]})):e instanceof g.Point?t=e:e instanceof Object&&(t=g.Point.fromJSON(e))),t}},{key:"toJSON",value:function(){return{map:this._map?this._map.toJSON():[],viewId:this.viewId,cursor:this.cursor,scale:this.scale,center:(0,d.toJSON)(this._center,g.Point),minZoom:this.minZoom,maxZoom:this.maxZoom,zoom:this.zoom,extensionOptions:this.extensionOptions,extendProps:this.extendProps,layerViewFilter:this.layerViewFilter.toJSON()}}}]),t}(h.Evented);(0,n.default)(T.prototype,{map:{get:function(){return this._map},set:function(e){this._map=e}},cursor:{get:function(){return this._cursor},set:function(e){this._setCursor(e)}},spatialReference:{get:function(){return this._spatialReference},set:function(){}},graphicsLayers:{get:function(){return this._graphicsLayers}}}),t.default=T},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(15)),i=p(r(3)),o=p(r(0)),a=p(r(2)),s=p(r(4)),u=p(r(5)),l=p(r(102)),c=r(8),f=r(6),h=r(113),d=r(1);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.layerViews=e.layerViews||new c.Collection,r.allLayerViews=new c.CollectionFlattener({getCollections:function(){return[r.layerViews]},getChildrenFunction:function(e){return e.layerViews}}),r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"onAdd",value:function(e){var t=this;return this.addMany(this.layer.layers.items).then(function(){return t})}},{key:"add",value:function(e,t){return this.addMany([e],t)}},{key:"remove",value:function(e){return this.removeMany([e])}},{key:"addMany",value:function(e,t){var r=this;if(!e||!this.layerViews)return n.default.resolve([]);var i=this.view,o=this.layer,a=e.filter(function(e){return e&&(e.loaded||e.type===f.LayerType.group)&&o.findLayerById(e.id)&&!r._findLayerViewById(e.id)}).map(function(e){return i._createLayerView(e)}).filter(function(e){return e}),s=(0,h.inOrderPromise)(a.map(function(e){return function(){return e.checkLayerCanAddedStatus()?e.onAdd().catch(function(t){d.Log.error(t),r._fireLayerCreatedError(e.layer,e,t)}).then(function(e){return e||void 0}):n.default.resolve(void 0)}}));return s.catch(function(e){r._fireLayerCreatedError(r.layer,r,e)}),s.then(function(e){e=e.filter(function(e){return e instanceof l.default});for(var n=[],i=[],a=0;a<e.length;a++){var s=e[a];o.findLayerById(s.id)&&!r._findLayerViewById(s.id)?i.push(s):n.push(s)}return n.length>0&&r._removeLayerViews(n),i.length>0&&(r._setItemParent(i,r),r.layerViews.addMany(i,t)),i})}},{key:"removeMany",value:function(e){var t=this;if(!e||!this.layerViews)return n.default.resolve([]);var r=e.map(function(e){return t._findLayerViewById(e.id)}).filter(function(e){return e});return 0===r.length?n.default.resolve([]):this._removeLayerViews(r)}},{key:"_removeLayerViews",value:function(e){var t=this,r=e.map(function(e){return e.onRemove().then(function(e){return t._fireLayerViewRemove(e.layer,e),e}).catch(function(e){d.Log.error(e)})});return(0,h.allSettled)(r).then(function(e){var r=e.filter(function(e){return"fulfilled"===e.status}).map(function(e){return e.value});t.layerViews.removeMany(r),t._setItemParent(r,null)})}},{key:"removeAll",value:function(){this.layerViews&&this._removeLayerViews(this.layerViews.items.map(function(e){return e}))}},{key:"reorder",value:function(e){var t=this;if(this.layerViews&&e&&e.parent){var r=e.parent,n=this.layerViews.items.findIndex(function(t){return t.id===e.id}),i=r.layers.items.filter(function(e){return t.layerViews.items.some(function(t){return t.id===e.id})}),o=i.findIndex(function(t){return t.id===e.id});if(n!==o&&-1!==n&&-1!==o){var a=this.layerViews.items[n];this.layerViews.reorder(a,o),o===i.length-1?i.slice(0,o).reverse().forEach(function(e){var r=t._findLayerViewById(e.id);r&&t._reorderLayerView(r)}):this._reorderLayerView(a)}}}},{key:"onRemove",value:function(e){var t=this;return this.removeMany(this.layer.layers.items).then(function(){return t})}},{key:"onUpdate",value:function(e){var t=this,r=this.layerViews.items;return n.default.all(r.map(function(t){return t.onUpdate(e)})).then(function(){return t})}},{key:"_setItemParent",value:function(e,t){(e instanceof c.Collection?e._items:Array.isArray(e)?e:[e]).forEach(function(e){e&&(e.parent=t)})}},{key:"_fireLayerViewCreatedByLayerViews",value:function(e){if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];if(n instanceof l.default){if(n instanceof t){var i=n.layerViews.items;this._fireLayerViewCreatedByLayerViews(i)}this._fireLayerViewCreated(n.layer,n)}}}},{key:"_fireLayerViewCreated",value:function(e,t){var r=new c.LayerEvent({type:f.LayerEventType.layerViewCreated,message:"图层在视图中创建完毕",layer:e});r.addProperty("view",this.view),r.addProperty("layerView",t),e.fire(f.LayerEventType.layerViewCreated,r),this.view.fire(f.LayerEventType.layerViewCreated,r)}},{key:"_fireLayerCreatedError",value:function(e,t,r){var n=new c.LayerEvent({type:f.LayerEventType.layerViewCreatedError,target:e,error:r||"图层在视图中创建失败",layer:e});n.addProperty("view",this.view),n.addProperty("layerView",t),e.fire(f.LayerEventType.layerViewCreatedError,n),this.view.fire(f.LayerEventType.layerViewCreatedError,n)}},{key:"_fireLayerViewRemove",value:function(e,t){var r=new c.LayerEvent({type:f.LayerEventType.layerViewRemove,message:"移除图层视图",layer:e});r.addProperty("view",this.view),r.addProperty("layerView",t),e.fire(f.LayerEventType.layerViewRemove,r),this.view.fire(f.LayerEventType.layerViewRemove,r)}},{key:"_findLayerViewById",value:function(e){return this.layerViews.items.find(function(t){return t.id===e})}},{key:"_findFlatLayerViewById",value:function(e){return this.allLayerViews.items.find(function(t){return t.id===e})}},{key:"_findLastLayerViewById",value:function(e){var r=this.view;if(e&&r){var n=this._findLayerViewById(e);if(n){var i=n;if(n instanceof t){var o=n.allLayerViews.items.filter(function(e){return!(e instanceof t)});if(0===o.length)return;i=o[o.length-1]}var a=r.allLayerViews.items.findIndex(function(e){return e.id===i.id});if(-1!==a){var s=r.allLayerViews.items.slice(a+1).filter(function(e){return!(e instanceof t)});if(0!==s.length)return s[0]}}}}},{key:"_reorderLayerView",value:function(e){var t=this._findLastLayerViewById(e.id);t&&this.view._orderLayerView(e,t)}}]),t}(l.default);t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SketchEditorEvent=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.SketchEditorEvent=function e(t){(0,n.default)(this,e);var r=(0,i.defaultValue)(t,{});this.type=(0,i.defaultValue)(r.type,""),this.toolEventInfo=(0,i.defaultValue)(r.toolEventInfo,null),this.state=(0,i.defaultValue)(r.state,null),this.feature=(0,i.defaultValue)(r.feature,null)}},function(e,t,r){var n=r(46),i=r(53),o=r(271)(!1),a=r(122)("IE_PROTO");e.exports=function(e,t){var r,s=i(e),u=0,l=[];for(r in s)r!=a&&n(s,r)&&l.push(r);for(;t.length>u;)n(s,r=t[u++])&&(~o(l,r)||l.push(r));return l}},function(e,t,r){e.exports=!r(33)&&!r(64)(function(){return 7!=Object.defineProperty(r(126)("div"),"a",{get:function(){return 7}}).a})},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u,l=[],c=!1,f=-1;function h(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&d())}function d(){if(!c){var e=s(h);c=!0;for(var t=l.length;t;){for(u=l,l=[];++f<t;)u&&u[f].run();f=-1,t=l.length}u=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function y(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new p(e,t)),1!==l.length||c||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=[],a=t.algo.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],a=r[2],s=r[3],u=r[4],l=0;l<80;l++){if(l<16)o[l]=0|e[t+l];else{var c=o[l-3]^o[l-8]^o[l-14]^o[l-16];o[l]=c<<1|c>>>31}var f=(n<<5|n>>>27)+u+o[l];f+=l<20?1518500249+(i&a|~i&s):l<40?1859775393+(i^a^s):l<60?(i&a|i&s|a&s)-1894007588:(i^a^s)-899497514,u=s,s=a,a=i<<30|i>>>2,i=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+s|0,r[4]=r[4]+u|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=i._createHelper(a),t.HmacSHA1=i._createHmacHelper(a)}(),e.SHA1}(r(14))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib.Hasher,n=t.x64,i=n.Word,o=n.WordArray,a=t.algo;function s(){return i.create.apply(i,arguments)}var u=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=s()}();var c=a.SHA512=r.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],c=r[5],f=r[6],h=r[7],d=n.high,p=n.low,y=i.high,g=i.low,m=o.high,v=o.low,_=a.high,S=a.low,b=s.high,x=s.low,w=c.high,E=c.low,T=f.high,I=f.low,M=h.high,k=h.low,P=d,L=p,O=y,C=g,N=m,R=v,G=_,A=S,V=b,D=x,F=w,j=E,B=T,q=I,U=M,J=k,z=0;z<80;z++){var W,H,Y=l[z];if(z<16)H=Y.high=0|e[t+2*z],W=Y.low=0|e[t+2*z+1];else{var X=l[z-15],K=X.high,Z=X.low,Q=(K>>>1|Z<<31)^(K>>>8|Z<<24)^K>>>7,$=(Z>>>1|K<<31)^(Z>>>8|K<<24)^(Z>>>7|K<<25),ee=l[z-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=l[z-7],ae=oe.high,se=oe.low,ue=l[z-16],le=ue.high,ce=ue.low;H=(H=(H=Q+ae+((W=$+se)>>>0<$>>>0?1:0))+ne+((W+=ie)>>>0<ie>>>0?1:0))+le+((W+=ce)>>>0<ce>>>0?1:0),Y.high=H,Y.low=W}var fe,he=V&F^~V&B,de=D&j^~D&q,pe=P&O^P&N^O&N,ye=L&C^L&R^C&R,ge=(P>>>28|L<<4)^(P<<30|L>>>2)^(P<<25|L>>>7),me=(L>>>28|P<<4)^(L<<30|P>>>2)^(L<<25|P>>>7),ve=(V>>>14|D<<18)^(V>>>18|D<<14)^(V<<23|D>>>9),_e=(D>>>14|V<<18)^(D>>>18|V<<14)^(D<<23|V>>>9),Se=u[z],be=Se.high,xe=Se.low,we=U+ve+((fe=J+_e)>>>0<J>>>0?1:0),Ee=me+ye;U=B,J=q,B=F,q=j,F=V,j=D,V=G+(we=(we=(we=we+he+((fe+=de)>>>0<de>>>0?1:0))+be+((fe+=xe)>>>0<xe>>>0?1:0))+H+((fe+=W)>>>0<W>>>0?1:0))+((D=A+fe|0)>>>0<A>>>0?1:0)|0,G=N,A=R,N=O,R=C,O=P,C=L,P=we+(ge+pe+(Ee>>>0<me>>>0?1:0))+((L=fe+Ee|0)>>>0<fe>>>0?1:0)|0}p=n.low=p+L,n.high=d+P+(p>>>0<L>>>0?1:0),g=i.low=g+C,i.high=y+O+(g>>>0<C>>>0?1:0),v=o.low=v+R,o.high=m+N+(v>>>0<R>>>0?1:0),S=a.low=S+A,a.high=_+G+(S>>>0<A>>>0?1:0),x=s.low=x+D,s.high=b+V+(x>>>0<D>>>0?1:0),E=c.low=E+j,c.high=w+F+(E>>>0<j>>>0?1:0),I=f.low=I+q,f.high=T+B+(I>>>0<q>>>0?1:0),k=h.low=k+J,h.high=M+U+(k>>>0<J>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=r._createHelper(c),t.HmacSHA512=r._createHmacHelper(c)}(),e.SHA512}(r(14),r(106))},function(e,t,r){e.exports={default:r(306),__esModule:!0}},function(e,t,r){e.exports=r(54)},function(e,t,r){var n=r(37),i=r(38),o=r(74);e.exports=r(33)?Object.defineProperties:function(e,t){i(e);for(var r,a=o(t),s=a.length,u=0;s>u;)n.f(e,r=a[u++],t[r]);return e}},function(e,t,r){var n=r(30).document;e.exports=n&&n.documentElement},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){var n=r(75);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n=r(168),i=r(124).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},function(e,t,r){e.exports={default:r(325),__esModule:!0}},function(e,t,r){"use strict";t.__esModule=!0;var n=o(r(327)),i=o(r(48));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(Array.isArray(e))return e;if((0,n.default)(Object(e)))return function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var s,u=(0,i.default)(e);!(n=(s=u.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(o)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,r){var n=r(38);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},function(e,t,r){var n=r(78),i=r(31)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},function(e,t,r){var n=r(31)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},e(o)}catch(e){}return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.aliceblue="#f0f8ff",n.antiquewhite="#faebd7",n.aqua="#00ffff",n.auqamarin="#7fffaa",n.azure="#f0ffff",n.beige="#6b8e23",n.bisque="#ffe4c4",n.black="#000000",n.blanchedalmond="#ffebcd",n.blue="#0000ff",n.blueviolet="#8a2be2",n.brown="#a52a2a",n.brulywood="#deb887",n.cadetblue="#5f9ea0",n.chartreuse="#7fff00",n.chocolate="#d2691e",n.coral="#ff7f50",n.cornflowerblue="#6495ed",n.cornislk="#fff8dc",n.crimson="#dc143c",n.cyan="#00ffff",n.darkblue="#00008b",n.darkcyan="#008b8b",n.darkgray="#a9a9a9",n.darkgreen="#006400",n.darkkhaki="#bdb76b",n.darkmagenta="#8b008b",n.darkorange="#ff8c00",n.darkorchid="#9932cc",n.darkred="#8b0000",n.darksalmon="#e9967a",n.darkseagreen="#8fbc8f",n.darkslateblue="#483d8b",n.darkslategray="#2f4f4f",n.darkturquoise="#00ced1",n.darkvoilet="#9400d3",n.deeppink="#ff1493",n.deepskyblue="#00bfff",n.dimgray="#696969",n.doderblue="#1e90ff",n.firebrick="#b22222",n.floralwhite="#fffaf0",n.forestgreen="#228b22",n.fuchsia="#ff00ff",n.gainsboro="#dcdcdc",n.ghostwhite="#f8f8ff",n.gold="#ffd700",n.goldenrod="#daa520",n.gray="#808080",n.green="#008000",n.greenyellow="#adff2f",n.honeydew="#f0fff0",n.hotpink="#ff69b4",n.indianred="#cd5c5c",n.indigo="#4b0082",n.ivory="#fffff0",n.khaki="#f0e68c",n.lavender="#e6e6fa",n.lavenderblush="#fff0f5",n.lawngreen="#7cfc00",n.lemonchiffon="#fffacd",n.lightblue="#add8e6",n.lightcoral="#f08080",n.lightcyan="#e1ffff",n.lightgoldenrodyellow="#fafad2",n.lightgreen="#90ee90",n.lightgrey="#d3d3d3",n.lightpink="#ffb6c1",n.lightsalmon="#ffa07a",n.lightseagreen="#20b2aa",n.lightskyblue="#87cefa",n.lightslategray="#778899",n.lightsteelblue="#b0c4de",n.lightyellow="#ffffe0",n.lime="#00ff00",n.limegreen="#32cd32",n.linen="#faf0e6",n.magenta="#ff00ff",n.maroon="#800000",n.mediumaquamarine="#00fa9a",n.mediumblue="#0000cd",n.mediumorchid="#ba55d3",n.mediumpurple="#9370db",n.mediumslateblue="#7b68ee",n.mediumspringgreen="#f5fffa",n.mediumturquoise="#48d1cc",n.mediumvioletred="#c71585",n.midnightblue="#191970",n.mintcream="#00ff7f",n.mistyrose="#ffe4e1",n.moccasin="#ffe4b5",n.navajowhite="#ffdead",n.navy="#000080",n.oldlace="#fdf5e6",n.olive="#808000",n.olivedrab="#556b2f",n.orange="#ffa500",n.orangered="#ff4500",n.orchid="#da70d6",n.palegodenrod="#eee8aa",n.palegreen="#98fb98",n.paleturquoise="#afeeee",n.palevioletred="#db7093",n.papayawhip="#ffefd5",n.peachpuff="#ffdab9",n.peru="#cd853f",n.pink="#ffc0cb",n.plum="#dda0dd",n.powderblue="#b0e0e6",n.purple="#800080",n.red="#ff0000",n.rosybrown="#bc8f8f",n.royalblue="#4169e1",n.saddlebrown="#8b4513",n.salmon="#fa8072",n.sandybrown="#f4a460",n.seagreen="#2e8b57",n.seashell="#fff5ee",n.sienna="#a0522d",n.silver="#c0c0c0",n.skyblue="#87ceeb",n.slateblue="#6a5acd",n.slategray="#708090",n.snow="#fffafa",n.springgreen="#3cb371",n.steelblue="#4682b4",n.tan="#d2b48c",n.teal="#008080",n.thistle="#d8bfd8",n.tomato="#ff6347",n.turquoise="#40e0d0",n.violet="#ee82ee",n.wheat="#f5deb3",n.white="#ffffff",n.whitesmoke="#f5f5f5",n.yellow="#ffff00",i);Object.defineProperty(a,"aliceblue",{writable:!1}),Object.defineProperty(a,"antiquewhite",{writable:!1}),Object.defineProperty(a,"aqua",{writable:!1}),Object.defineProperty(a,"auqamarin",{writable:!1}),Object.defineProperty(a,"azure",{writable:!1}),Object.defineProperty(a,"beige",{writable:!1}),Object.defineProperty(a,"bisque",{writable:!1}),Object.defineProperty(a,"black",{writable:!1}),Object.defineProperty(a,"blanchedalmond",{writable:!1}),Object.defineProperty(a,"blue",{writable:!1}),Object.defineProperty(a,"blueviolet",{writable:!1}),Object.defineProperty(a,"brown",{writable:!1}),Object.defineProperty(a,"brulywood",{writable:!1}),Object.defineProperty(a,"cadetblue",{writable:!1}),Object.defineProperty(a,"chartreuse",{writable:!1}),Object.defineProperty(a,"chocolate",{writable:!1}),Object.defineProperty(a,"coral",{writable:!1}),Object.defineProperty(a,"cornflowerblue",{writable:!1}),Object.defineProperty(a,"cornislk",{writable:!1}),Object.defineProperty(a,"crimson",{writable:!1}),Object.defineProperty(a,"cyan",{writable:!1}),Object.defineProperty(a,"darkblue",{writable:!1}),Object.defineProperty(a,"darkcyan",{writable:!1}),Object.defineProperty(a,"darkgray",{writable:!1}),Object.defineProperty(a,"darkgreen",{writable:!1}),Object.defineProperty(a,"darkkhaki",{writable:!1}),Object.defineProperty(a,"darkmagenta",{writable:!1}),Object.defineProperty(a,"darkorange",{writable:!1}),Object.defineProperty(a,"darkorchid",{writable:!1}),Object.defineProperty(a,"darkred",{writable:!1}),Object.defineProperty(a,"darksalmon",{writable:!1}),Object.defineProperty(a,"darkseagreen",{writable:!1}),Object.defineProperty(a,"darkslateblue",{writable:!1}),Object.defineProperty(a,"darkslategray",{writable:!1}),Object.defineProperty(a,"darkturquoise",{writable:!1}),Object.defineProperty(a,"darkvoilet",{writable:!1}),Object.defineProperty(a,"deeppink",{writable:!1}),Object.defineProperty(a,"deepskyblue",{writable:!1}),Object.defineProperty(a,"dimgray",{writable:!1}),Object.defineProperty(a,"doderblue",{writable:!1}),Object.defineProperty(a,"firebrick",{writable:!1}),Object.defineProperty(a,"floralwhite",{writable:!1}),Object.defineProperty(a,"forestgreen",{writable:!1}),Object.defineProperty(a,"fuchsia",{writable:!1}),Object.defineProperty(a,"gainsboro",{writable:!1}),Object.defineProperty(a,"ghostwhite",{writable:!1}),Object.defineProperty(a,"gold",{writable:!1}),Object.defineProperty(a,"goldenrod",{writable:!1}),Object.defineProperty(a,"gray",{writable:!1}),Object.defineProperty(a,"green",{writable:!1}),Object.defineProperty(a,"greenyellow",{writable:!1}),Object.defineProperty(a,"honeydew",{writable:!1}),Object.defineProperty(a,"hotpink",{writable:!1}),Object.defineProperty(a,"indianred",{writable:!1}),Object.defineProperty(a,"indigo",{writable:!1}),Object.defineProperty(a,"ivory",{writable:!1}),Object.defineProperty(a,"khaki",{writable:!1}),Object.defineProperty(a,"lavender",{writable:!1}),Object.defineProperty(a,"lavenderblush",{writable:!1}),Object.defineProperty(a,"lawngreen",{writable:!1}),Object.defineProperty(a,"lemonchiffon",{writable:!1}),Object.defineProperty(a,"lightblue",{writable:!1}),Object.defineProperty(a,"lightcoral",{writable:!1}),Object.defineProperty(a,"lightcyan",{writable:!1}),Object.defineProperty(a,"lightgoldenrodyellow",{writable:!1}),Object.defineProperty(a,"lightgreen",{writable:!1}),Object.defineProperty(a,"lightgrey",{writable:!1}),Object.defineProperty(a,"lightpink",{writable:!1}),Object.defineProperty(a,"lightsalmon",{writable:!1}),Object.defineProperty(a,"lightseagreen",{writable:!1}),Object.defineProperty(a,"lightskyblue",{writable:!1}),Object.defineProperty(a,"lightslategray",{writable:!1}),Object.defineProperty(a,"lightsteelblue",{writable:!1}),Object.defineProperty(a,"lightyellow",{writable:!1}),Object.defineProperty(a,"lime",{writable:!1}),Object.defineProperty(a,"limegreen",{writable:!1}),Object.defineProperty(a,"linen",{writable:!1}),Object.defineProperty(a,"magenta",{writable:!1}),Object.defineProperty(a,"maroon",{writable:!1}),Object.defineProperty(a,"mediumaquamarine",{writable:!1}),Object.defineProperty(a,"mediumblue",{writable:!1}),Object.defineProperty(a,"mediumorchid",{writable:!1}),Object.defineProperty(a,"mediumpurple",{writable:!1}),Object.defineProperty(a,"mediumslateblue",{writable:!1}),Object.defineProperty(a,"mediumspringgreen",{writable:!1}),Object.defineProperty(a,"mediumturquoise",{writable:!1}),Object.defineProperty(a,"mediumvioletred",{writable:!1}),Object.defineProperty(a,"midnightblue",{writable:!1}),Object.defineProperty(a,"mintcream",{writable:!1}),Object.defineProperty(a,"mistyrose",{writable:!1}),Object.defineProperty(a,"moccasin",{writable:!1}),Object.defineProperty(a,"navajowhite",{writable:!1}),Object.defineProperty(a,"navy",{writable:!1}),Object.defineProperty(a,"oldlace",{writable:!1}),Object.defineProperty(a,"olive",{writable:!1}),Object.defineProperty(a,"olivedrab",{writable:!1}),Object.defineProperty(a,"orange",{writable:!1}),Object.defineProperty(a,"orangered",{writable:!1}),Object.defineProperty(a,"orchid",{writable:!1}),Object.defineProperty(a,"palegodenrod",{writable:!1}),Object.defineProperty(a,"palegreen",{writable:!1}),Object.defineProperty(a,"paleturquoise",{writable:!1}),Object.defineProperty(a,"palevioletred",{writable:!1}),Object.defineProperty(a,"papayawhip",{writable:!1}),Object.defineProperty(a,"peachpuff",{writable:!1}),Object.defineProperty(a,"peru",{writable:!1}),Object.defineProperty(a,"pink",{writable:!1}),Object.defineProperty(a,"plum",{writable:!1}),Object.defineProperty(a,"powderblue",{writable:!1}),Object.defineProperty(a,"purple",{writable:!1}),Object.defineProperty(a,"red",{writable:!1}),Object.defineProperty(a,"rosybrown",{writable:!1}),Object.defineProperty(a,"royalblue",{writable:!1}),Object.defineProperty(a,"saddlebrown",{writable:!1}),Object.defineProperty(a,"salmon",{writable:!1}),Object.defineProperty(a,"sandybrown",{writable:!1}),Object.defineProperty(a,"seagreen",{writable:!1}),Object.defineProperty(a,"seashell",{writable:!1}),Object.defineProperty(a,"sienna",{writable:!1}),Object.defineProperty(a,"silver",{writable:!1}),Object.defineProperty(a,"skyblue",{writable:!1}),Object.defineProperty(a,"slateblue",{writable:!1}),Object.defineProperty(a,"slategray",{writable:!1}),Object.defineProperty(a,"snow",{writable:!1}),Object.defineProperty(a,"springgreen",{writable:!1}),Object.defineProperty(a,"steelblue",{writable:!1}),Object.defineProperty(a,"tan",{writable:!1}),Object.defineProperty(a,"teal",{writable:!1}),Object.defineProperty(a,"thistle",{writable:!1}),Object.defineProperty(a,"tomato",{writable:!1}),Object.defineProperty(a,"turquoise",{writable:!1}),Object.defineProperty(a,"violet",{writable:!1}),Object.defineProperty(a,"wheat",{writable:!1}),Object.defineProperty(a,"white",{writable:!1}),Object.defineProperty(a,"whitesmoke",{writable:!1}),Object.defineProperty(a,"yellow",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.backwardDiagonal="backward-diagonal",n.cross="cross",n.diagonalCross="diagonal-cross",n.forwardDiagonal="forward-diagonal",n.horizontal="horizontal",n.none="none",n.solid="solid",n.vertical="vertical",i);Object.defineProperty(a,"backwardDiagonal",{writable:!1}),Object.defineProperty(a,"cross",{writable:!1}),Object.defineProperty(a,"diagonalCross",{writable:!1}),Object.defineProperty(a,"forwardDiagonal",{writable:!1}),Object.defineProperty(a,"horizontal",{writable:!1}),Object.defineProperty(a,"none",{writable:!1}),Object.defineProperty(a,"solid",{writable:!1}),Object.defineProperty(a,"vertical",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.small="small",n.medium="medium",n.large="large",i);Object.defineProperty(a,"small",{writable:!1}),Object.defineProperty(a,"medium",{writable:!1}),Object.defineProperty(a,"large",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.calm="calm",n.rippled="rippled",n.slight="slight",n.moderate="moderate",i);Object.defineProperty(a,"calm",{writable:!1}),Object.defineProperty(a,"rippled",{writable:!1}),Object.defineProperty(a,"slight",{writable:!1}),Object.defineProperty(a,"moderate",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),a=(i=n=function e(){(0,o.default)(this,e)},n.field="field",n.log="log",n.percentOfTotal="percent-of-total",i);Object.defineProperty(a,"field",{writable:!1}),Object.defineProperty(a,"log",{writable:!1}),Object.defineProperty(a,"percentOfTotal",{writable:!1}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.extent=(0,o.defaultValue)(t.extent,void 0),this.id=(0,o.defaultValue)(t.id,(0,o.getGUID)()),this.tileInfo=t.tileInfo,this.layer=(0,o.defaultValue)(t.layer,void 0),this.tileMatrix=(0,o.defaultValue)(t.tileMatrix,[]),this.identifier=(0,o.defaultValue)(t.identifier,void 0),this.supportedCRS=(0,o.defaultValue)(t.supportedCRS,void 0)}return(0,i.default)(e,[{key:"getTileResolution",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.28,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],n=0;n<this.tileMatrix.length;n++){var i=t?Number(this.tileMatrix[n].scaleDenominator)*e/111319490.7932735:Number(this.tileMatrix[n].scaleDenominator)*e/1e3;r.push(i)}return r}},{key:"toJSON",value:function(){return{extent:this.extent&&this.extent.toJSON(),id:this.id,tileInfo:this.tileInfo&&this.tileInfo.toJSON(),tileMatrix:this.tileMatrix,identifier:this.identifier,supportedCRS:this.supportedCRS}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e);var r=(0,o.defaultValue)(t,{});this.expression=(0,o.defaultValue)(r.expression,"")}return(0,i.default)(e,[{key:"clone",value:function(){return new e({expression:this.expression})}},{key:"toJSON",value:function(){return{expression:this.expression}}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(24)),i=y(r(10)),o=y(r(3)),a=y(r(0)),s=y(r(2)),u=y(r(4)),l=y(r(5)),c=y(r(93)),f=r(1),h=r(9),d=r(28),p=r(6);function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return e=(0,f.defaultValue)(e,{}),r.id=(0,f.defaultValue)(e.id,(0,f.getGUID)()),r.attributes=(0,f.defaultValue)(e.attributes,{}),(0,f.defined)(e.geometry)?r.geometry=r._decorate("geometry",(0,f.defaultValue)(e.geometry,{}),h.Geometry,h.Geometry.fromJSON):(r.geometry=null,f.Log.info("要素几何信息缺失,依赖几何对象的功能将无法使用!")),r.symbol=r._decorate("symbol",(0,f.defaultValue)(e.symbol,{}),d.Symbol,r._getSymbol.bind(r)),r.visible=(0,f.defaultValue)(e.visible,!0),r.type="Feature",r.elevationInfo=(0,f.defaultValue)(e.elevationInfo,null),r.additional=(0,f.defaultValue)(e.additional,{}),r.styleInfo=(0,f.defaultValue)(e.styleInfo,{}),r}return(0,l.default)(t,e),(0,s.default)(t,[{key:"_getSymbol",value:function(e){if(!(0,f.defined)(this.geometry))return d.Symbol.fromJSON(e);var t=e?e.type:"undefine",r=this.geometry.type,n=e instanceof d.Symbol?e:d.Symbol.fromJSON(e);switch(r){case p.GeometryType.multiPoint:case p.GeometryType.point:var i=[p.SymbolType.simpleMarker,p.SymbolType.text,p.SymbolType.mapgisText,p.SymbolType.pictureMarker,p.SymbolType.point3D,p.SymbolType.label3D];(0,f.defined)(e)||(n=new d.SimpleMarkerSymbol),i.some(function(e){return e===t})||(f.Log.info("图元几何和符号不匹配"),n=new d.SimpleMarkerSymbol({color:n.color.clone()}));break;case p.GeometryType.multiLineString:case p.GeometryType.lineString:var o=[p.SymbolType.simpleLine,p.SymbolType.line3D];(0,f.defined)(e)||(n=new d.SimpleLineSymbol),o.some(function(e){return e===t})||(f.Log.info("图元几何和符号不匹配"),n=new d.SimpleLineSymbol({color:n.color.clone()}));break;case p.GeometryType.polygon:case p.GeometryType.extent:case p.GeometryType.circle:case p.GeometryType.multiPolygon:var a=[p.SymbolType.simpleFill,p.SymbolType.simpleMarker,p.SymbolType.text,p.SymbolType.mapgisText,p.SymbolType.pictureMarker,p.SymbolType.pictureFill,p.SymbolType.polygon3D];(0,f.defined)(e)||(n=new d.SimpleFillSymbol),a.some(function(e){return e===t})||(f.Log.info("图元几何和符号不匹配"),n=new d.SimpleFillSymbol({color:n.color.clone()}))}return n}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e={};return e.id=this.id,e.attributes=JSON.parse((0,i.default)(this.attributes)),e.geometry=(0,f.toJSON)(this.geometry,h.Geometry),e.symbol=(0,f.toJSON)(this.symbol,d.Symbol),e.visible=this.visible,e.type=this.type,e.elevationInfo=this.elevationInfo,e}},{key:"fromGeoJSON",value:function(e){var t=this;e=(0,f.defaultValue)(e,{});var r=(0,f.defaultValue)(e.geometry,null);(0,f.defined)(r)&&(this.geometry=h.Geometry.fromGeoJSON(r));var i=(0,f.defaultValue)(e.properties,{});(0,n.default)(i).forEach(function(e){i.hasOwnProperty(e)&&(t.attributes[e]=i[e])})}},{key:"toGeoJSON",value:function(){var e=JSON.parse((0,i.default)(this.attributes));return e.id=this.id,{type:"Feature",geometry:this.geometry.toGeoJSON(),properties:e,style:this.symbol.toJSON(),id:this.id}}},{key:"toIGSFeature",value:function(){var e=null;this.styleInfo instanceof Object&&"{}"!==(0,i.default)(this.styleInfo)&&(e=JSON.parse((0,i.default)(this.styleInfo)));var t=this.geometry.toJSON();return{type:"Feature",geometry:{type:t.type,coordinates:t.coordinates},attributes:JSON.parse((0,i.default)(this.attributes)),styleInfo:e}}},{key:"toOldIGSFeature",value:function(){return{fGeom:this.geometry.toOldIGSGeometry(),GraphicInfo:this.toGraphicInfo(),AttValue:this.toAttValue(),FID:this.id,bound:null,ftype:this.toFType()}}},{key:"toGraphicInfo",value:function(){var e=void 0;switch(this.geometry.type){case"Point":case"MultiPoint":e={InfoType:1,PntInfo:this.symbol};break;case"LineString":case"MultiLineString":e={InfoType:2,LinInfo:this.symbol};break;case"Polygon":case"MultiPolygon":default:e={InfoType:3,RegInfo:this.symbol}}return e}},{key:"toAttValue",value:function(){var e=[],t=this;return(0,n.default)(this.attributes).forEach(function(r){t.attributes.hasOwnProperty(r)&&e.push(t.attributes[r])}),e}},{key:"toFType",value:function(){var e=void 0;switch(this.geometry.type){case"Point":case"MultiPoint":e=1;break;case"LineString":case"MultiLineString":e=2;break;case"Polygon":case"MultiPolygon":default:e=3}return e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,f.defaultValue)(e,{}))}}]),t}(c.default);t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSymbol3DLayer=t.WaterSymbol3DLayer=t.TextSymbol3DLayer=t.ExtrudeSymbol3DLayer=t.ObjectSymbol3DLayer=t.IconSymbol3DLayer=t.FillSymbol3DLayer=t.LineSymbol3DLayer=t.PathSymbol3DLayer=t.Symbol3DLayer=void 0;var n=d(r(58)),i=d(r(411)),o=d(r(422)),a=d(r(423)),s=d(r(424)),u=d(r(425)),l=d(r(426)),c=d(r(427)),f=d(r(428)),h=r(6);function d(e){return e&&e.__esModule?e:{default:e}}t.Symbol3DLayer=n.default,t.PathSymbol3DLayer=i.default,t.LineSymbol3DLayer=o.default,t.FillSymbol3DLayer=a.default,t.IconSymbol3DLayer=s.default,t.ObjectSymbol3DLayer=u.default,t.ExtrudeSymbol3DLayer=l.default,t.TextSymbol3DLayer=c.default,t.WaterSymbol3DLayer=f.default,t.createSymbol3DLayer=function(e){var t=e||{},r=null;switch(t.type){case h.Symbol3DLayerType.line:r=new o.default(t);break;case h.Symbol3DLayerType.path:r=new i.default(t);break;case h.Symbol3DLayerType.fill:r=new a.default(t);break;case h.Symbol3DLayerType.icon:r=new s.default(t);break;case h.Symbol3DLayerType.object:r=new u.default(t);break;case h.Symbol3DLayerType.extrude:r=new l.default(t);break;case h.Symbol3DLayerType.text:r=new c.default(t);break;case h.Symbol3DLayerType.water:r=new f.default(t)}return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(0)),i=o(r(2));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(){(0,n.default)(this,e)}return(0,i.default)(e,[{key:"toJSON",value:function(){}},{key:"clone",value:function(){}}],[{key:"fromJSON",value:function(){}}]),e}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=r(8);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.color=t.color?a.Color.fromJSON(t.color):new a.Color,this.size=(0,o.defaultValue)(t.size,0)}return(0,i.default)(e,[{key:"toJSON",value:function(){return{color:(0,o.toJSON)(this.color,a.Color),size:this.size}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=r(6);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.style=(0,o.defaultValue)(t.style,a.LinePatternStyle.solid),this.type="style"}return(0,i.default)(e,[{key:"toJSON",value:function(){return{style:this.style,type:this.type}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(3)),i=g(r(0)),o=g(r(2)),a=g(r(4)),s=g(r(7)),u=g(r(5)),l=g(r(69)),c=r(1),f=r(6),h=g(r(57)),d=g(r(143)),p=g(r(144)),y=g(r(141));function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,c.defaultValue)(e,{}),r.type=f.SymbolType.text,r.angle=(0,c.defaultValue)(e.angle,0),r.backgroundColor=(0,c.defined)(e.backgroundColor)?h.default.fromColor((0,c.defaultValue)(e.backgroundColor,new h.default(255,255,255,.25))):void 0,r.borderLineColor=h.default.fromColor((0,c.defaultValue)(e.borderLineColor,new h.default(0,0,0,1))),r.borderLineSize=(0,c.defaultValue)(e.borderLineSize,0),r.color=h.default.fromColor((0,c.defaultValue)(e.color,new h.default)),r.font=y.default.fromJSON((0,c.defaultValue)(e.font,new y.default)),r.haloColor=h.default.fromColor((0,c.defaultValue)(e.haloColor,new h.default)),r.haloSize=(0,c.defaultValue)(e.haloSize,0),r.horizontalAlignment=(0,c.defaultValue)(e.horizontalAlignment,d.default.center),r.kerning=(0,c.defaultValue)(e.kerning,!1),r.lineHeight=(0,c.defaultValue)(e.lineHeight,1.1),r.lineWidth=(0,c.defaultValue)(e.lineWidth,192),r.rotated=(0,c.defaultValue)(e.rotated,!1),r.text=(0,c.defaultValue)(e.text,""),r.verticalAlignment=(0,c.defaultValue)(e.verticalAlignment,p.default.baseline),r.xoffset=(0,c.defaultValue)(e.xoffset,0),r.yoffset=(0,c.defaultValue)(e.yoffset,0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.angle=this.angle,e.backgroundColor=(0,c.toJSON)(this.backgroundColor,h.default),e.borderLineColor=(0,c.toJSON)(this.borderLineColor,h.default),e.borderLineSize=this.borderLineSize,e.color=(0,c.toJSON)(this.color,h.default),e.font=(0,c.toJSON)(this.font,y.default),e.haloColor=(0,c.toJSON)(this.haloColor,h.default),e.haloSize=this.haloSize,e.horizontalAlignment=this.horizontalAlignment,e.kerning=this.kerning,e.lineHeight=this.lineHeight,e.lineWidth=this.lineWidth,e.rotated=this.rotated,e.text=this.text,e.verticalAlignment=this.verticalAlignment,e.xoffset=this.xoffset,e.yoffset=this.yoffset,e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,c.defaultValue)(e,{}))}}]),t}(l.default);t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(7)),u=f(r(5)),l=r(1),c=r(6);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.type=c.SymbolType.simpleMarker,r.xoffset=(0,l.defaultValue)(e.xoffset,0),r.yoffset=(0,l.defaultValue)(e.yoffset,0),r.angle=(0,l.defaultValue)(e.angle,0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.angle=this.angle,e.xoffset=this.xoffset,e.yoffset=this.yoffset,e}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}(f(r(69)).default);t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(7)),u=d(r(5)),l=r(1),c=d(r(69)),f=d(r(149)),h=r(6);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.type=h.SymbolType.simpleFill,r.outline=r._decorate("outline",(0,l.defaultValue)(e.outline,{}),f.default,f.default.fromJSON),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.type=this.type,e.outline=this.outline.toJSON(),e}}]),t}(c.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertDataSource=t.getFeaturesFromFeatureSet=void 0;var n=h(r(15)),i=h(r(10)),o=r(148),a=r(1),s=r(9),u=r(8),l=r(49),c=r(448),f=h(r(111));function h(e){return e&&e.__esModule?e:{default:e}}var d={"urn:ogc:def:crs:OGC:1.3:CRS84":"EPSG:4326","EPSG:4326":"EPSG:4326","urn:ogc:def:crs:EPSG::4326":"EPSG:4326"},p={},y={},g={Feature:v,FeatureCollection:function(e,t,r,n){for(var i=t.features,o=0,a=i.length;o<a;o++)v(e,i[o],void 0,n)},GeometryCollection:_,LineString:b,MultiLineString:x,MultiPoint:w,MultiPolygon:E,Point:T,Polygon:I,Topology:M},m={GeometryCollection:_,LineString:b,MultiLineString:x,MultiPoint:w,MultiPolygon:E,Point:T,Polygon:I,Topology:M};function v(e,t,r,n){if(null!==t.geometry){if(!(0,a.defined)(t.geometry))throw new Error("feature.geometry is required.");var i=t.geometry.type,o=m[i];if(!(0,a.defined)(o))throw new Error("Unknown geometry type: "+i);o(e,t,t.geometry,n)}}function _(e,t,r,n){for(var i=r.geometries,o=0,s=i.length;o<s;o++){var u=i[o],l=u.type,c=m[l];if(!(0,a.defined)(c))throw new Error("Unknown geometry type: "+l);c(e,t,u,n)}}function S(e,t,r){var n={};e&&"Feature"===e.type&&(n=e.properties||{});var i=(0,l.createGeometryByGeoJSON)(t,r);return new o.Feature({geometry:i,attributes:n})}function b(e,t,r,n){e.features.push(S(t,r,n))}function x(e,t,r,n){e.features.push(S(t,r,n))}function w(e,t,r,n){e.features.push(S(t,r,n))}function E(e,t,r,n){e.features.push(S(t,r,n))}function T(e,t,r,n){e.features.push(S(t,r,n))}function I(e,t,r,n){e.features.push(S(t,r,n))}function M(e,t,r,n){for(var i in r.objects)if(r.objects.hasOwnProperty(i)){var o=(0,c.feature)(r,r.objects[i]);(0,g[o.type])(e,o,o,n)}}function k(e,t,r){var n=new o.FeatureSet({spatialReference:t});return r(n,e,e,n.spatialReference),n}t.getFeaturesFromFeatureSet=function(e){var t=[];e instanceof o.FeatureSet?t=e.features:Array.isArray(e)&&e.every(function(e){return e instanceof o.Feature})?t=e:a.Log.info("传入要素集错误");for(var r=[],n=0;n<t.length;n++)r[n]=o.Feature.fromJSON(t[n].toJSON());return r},t.convertDataSource=function(e){var t=(e=e||{}).type,r=g[t];if(!r)throw new Error("无法解析type为"+t+"的数据类型,请检查输入参数的类型是否合法");var o=!1,l=e.crs,c=new s.SpatialReference("EPSG:4326");if((0,a.defined)(l)){if(!(0,a.defined)(l.properties))throw new Error("crs.properties is undefined.");var h=l.properties;if("name"===l.type){var m=d[h.name];if(m)c=new s.SpatialReference(m);else if(h.name&&h.name.startsWith("urn:ogc:def:crs:EPSG::")){var v=parseInt(h.name.split("::")[1]),_=f.default.find(function(e){return e.id===v});_?c=new s.SpatialReference({wkid:_.id,wkt:_.strProject}):(a.Log.error("未收录的参考系wkid:"+v),o=!0)}else o=!0}else if("link"===l.type){if(c=p[h.href],(0,a.defined)(c)||(c=y[h.type]),!(0,a.defined)(c))throw new Error("Unable to resolve crs link: "+(0,i.default)(h))}else{if("EPSG"!==l.type)throw new Error("Unknown crs type: "+l.type);u.EPSG.some(function(e){return e.id===parseInt(h.code)})?c=new s.SpatialReference("EPSG:"+h.code):(a.Log.error("未收录的参考系wkid: "+h.code),o=!0)}if(o)return a.GdalUtil.geojsonCRSToOGCWKT(l).then(function(t){return!t&&h.name&&(t=h.name),c=new s.SpatialReference({wkt:t}),k(e,c,r)})}return n.default.resolve(k(e,c,r))}},function(e,t,r){var n=r(38),i=r(88),o=r(31)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||void 0==(r=n(a)[o])?t:i(r)}},function(e,t,r){var n,i,o,a=r(47),s=r(443),u=r(176),l=r(126),c=r(30),f=c.process,h=c.setImmediate,d=c.clearImmediate,p=c.MessageChannel,y=c.Dispatch,g=0,m={},v=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},_=function(e){v.call(e.data)};h&&d||(h=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return m[++g]=function(){s("function"==typeof e?e:Function(e),t)},n(g),g},d=function(e){delete m[e]},"process"==r(75)(f)?n=function(e){f.nextTick(a(v,e,1))}:y&&y.now?n=function(e){y.now(a(v,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=_,n=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(e){c.postMessage(e+"","*")},c.addEventListener("message",_,!1)):n="onreadystatechange"in l("script")?function(e){u.appendChild(l("script")).onreadystatechange=function(){u.removeChild(this),v.call(e)}}:function(e){setTimeout(a(v,e,1),0)}),e.exports={set:h,clear:d}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,r){var n=r(38),i=r(32),o=r(151);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){"use strict";var n=r(30),i=r(18),o=r(37),a=r(33),s=r(31)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:n[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProjUnitWkidMap={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.116756,5e4,15e4],2000:0,2001:0,2002:0,2003:0,2004:0,2005:0,2006:0,2007:0,2008:0,2009:0,2010:0,2011:0,2012:0,2013:0,2014:0,2015:0,2016:0,2017:0,2018:0,2019:0,2020:0,2021:0,2022:0,2023:0,2024:0,2025:0,2026:0,2027:0,2028:0,2029:0,2030:0,2031:0,2032:0,2033:0,2034:0,2035:0,2036:0,2037:0,2038:0,2039:0,2040:0,2041:0,2042:0,2043:0,2044:0,2045:0,2056:0,2057:0,2058:0,2059:0,2060:0,2061:0,2062:0,2063:0,2064:0,2065:0,2066:5,2067:0,2068:0,2069:0,2070:0,2071:0,2072:0,2073:0,2074:0,2075:0,2076:0,2077:0,2078:0,2079:0,2080:0,2081:0,2082:0,2083:0,2084:0,2085:0,2086:0,2087:0,2088:0,2089:0,2090:0,2091:0,2092:0,2093:0,2094:0,2095:0,2096:0,2097:0,2098:0,2099:0,2100:0,2101:0,2102:0,2103:0,2104:0,2105:0,2106:0,2107:0,2108:0,2109:0,2110:0,2111:0,2112:0,2113:0,2114:0,2115:0,2116:0,2117:0,2118:0,2119:0,2120:0,2121:0,2122:0,2123:0,2124:0,2125:0,2126:0,2127:0,2128:0,2129:0,2130:0,2131:0,2132:0,2133:0,2134:0,2135:0,2136:12,2137:0,2138:0,2139:0,2140:0,2141:0,2142:0,2143:0,2144:0,2145:0,2146:0,2147:0,2148:0,2149:0,2150:0,2151:0,2152:0,2153:0,2154:0,2155:2,2157:0,2158:0,2159:12,2160:12,2161:0,2162:0,2163:0,2164:0,2165:0,2166:0,2167:0,2168:0,2169:0,2170:0,2172:0,2173:0,2174:0,2175:0,2176:0,2177:0,2178:0,2179:0,2180:0,2181:0,2182:0,2183:0,2184:0,2185:0,2186:0,2187:0,2188:0,2189:0,2190:0,2191:0,2192:0,2193:0,2195:0,2196:0,2197:0,2198:0,2200:0,2201:0,2202:0,2203:0,2204:2,2205:0,2206:0,2207:0,2208:0,2209:0,2210:0,2211:0,2212:0,2213:0,2214:0,2215:0,2216:0,2217:0,2219:0,2220:0,2222:1,2223:1,2224:1,2225:2,2226:2,2227:2,2228:2,2229:2,2230:2,2231:2,2232:2,2233:2,2234:2,2235:2,2236:2,2237:2,2238:2,2239:2,2240:2,2241:2,2242:2,2243:2,2244:2,2245:2,2246:2,2247:2,2248:2,2249:2,2250:2,2251:1,2252:1,2253:1,2254:2,2255:2,2256:1,2257:2,2258:2,2259:2,2260:2,2261:2,2262:2,2263:2,2264:2,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2274:2,2275:2,2276:2,2277:2,2278:2,2279:2,2280:1,2281:1,2282:1,2283:2,2284:2,2285:2,2286:2,2287:2,2288:2,2289:2,2290:0,2291:0,2292:0,2294:0,2295:0,2308:0,2309:0,2310:0,2311:0,2312:0,2313:0,2314:3,2315:0,2316:0,2317:0,2318:0,2319:0,2320:0,2321:0,2322:0,2323:0,2324:0,2325:0,2326:0,2327:0,2328:0,2329:0,2330:0,2331:0,2332:0,2333:0,2334:0,2335:0,2336:0,2337:0,2338:0,2339:0,2340:0,2341:0,2342:0,2343:0,2344:0,2345:0,2346:0,2347:0,2348:0,2349:0,2350:0,2351:0,2352:0,2353:0,2354:0,2355:0,2356:0,2357:0,2358:0,2359:0,2360:0,2361:0,2362:0,2363:0,2364:0,2365:0,2366:0,2367:0,2368:0,2369:0,2370:0,2371:0,2372:0,2373:0,2374:0,2375:0,2376:0,2377:0,2378:0,2379:0,2380:0,2381:0,2382:0,2383:0,2384:0,2385:0,2386:0,2387:0,2388:0,2389:0,2390:0,2391:0,2392:0,2393:0,2394:0,2395:0,2396:0,2397:0,2398:0,2399:0,2400:0,2401:0,2402:0,2403:0,2404:0,2405:0,2406:0,2407:0,2408:0,2409:0,2410:0,2411:0,2412:0,2413:0,2414:0,2415:0,2416:0,2417:0,2418:0,2419:0,2420:0,2421:0,2422:0,2423:0,2424:0,2425:0,2426:0,2427:0,2428:0,2429:0,2430:0,2431:0,2432:0,2433:0,2434:0,2435:0,2436:0,2437:0,2438:0,2439:0,2440:0,2441:0,2442:0,2443:0,2444:0,2445:0,2446:0,2447:0,2448:0,2449:0,2450:0,2451:0,2452:0,2453:0,2454:0,2455:0,2456:0,2457:0,2458:0,2459:0,2460:0,2461:0,2462:0,2523:0,2524:0,2525:0,2526:0,2527:0,2528:0,2529:0,2530:0,2531:0,2532:0,2533:0,2534:0,2535:0,2536:0,2537:0,2538:0,2539:0,2540:0,2541:0,2542:0,2543:0,2544:0,2545:0,2546:0,2547:0,2548:0,2549:0,2550:0,2551:0,2552:0,2553:0,2554:0,2555:0,2556:0,2557:0,2558:0,2559:0,2560:0,2561:0,2562:0,2563:0,2564:0,2565:0,2566:0,2567:0,2568:0,2569:0,2570:0,2571:0,2572:0,2573:0,2574:0,2575:0,2576:0,2577:0,2578:0,2579:0,2580:0,2581:0,2582:0,2583:0,2584:0,2585:0,2586:0,2587:0,2588:0,2589:0,2590:0,2591:0,2592:0,2593:0,2594:0,2595:0,2596:0,2597:0,2598:0,2599:0,2600:0,2601:0,2602:0,2603:0,2604:0,2605:0,2606:0,2607:0,2608:0,2609:0,2610:0,2611:0,2612:0,2613:0,2614:0,2615:0,2616:0,2617:0,2618:0,2619:0,2620:0,2621:0,2622:0,2623:0,2624:0,2625:0,2626:0,2627:0,2628:0,2629:0,2630:0,2631:0,2632:0,2633:0,2634:0,2635:0,2636:0,2637:0,2638:0,2639:0,2640:0,2641:0,2642:0,2643:0,2644:0,2645:0,2646:0,2647:0,2648:0,2649:0,2650:0,2651:0,2652:0,2653:0,2654:0,2655:0,2656:0,2657:0,2658:0,2659:0,2660:0,2661:0,2662:0,2663:0,2664:0,2665:0,2666:0,2667:0,2668:0,2669:0,2670:0,2671:0,2672:0,2673:0,2674:0,2675:0,2676:0,2677:0,2678:0,2679:0,2680:0,2681:0,2682:0,2683:0,2684:0,2685:0,2686:0,2687:0,2688:0,2689:0,2690:0,2691:0,2692:0,2693:0,2694:0,2695:0,2696:0,2697:0,2698:0,2699:0,2700:0,2701:0,2702:0,2703:0,2704:0,2705:0,2706:0,2707:0,2708:0,2709:0,2710:0,2711:0,2712:0,2713:0,2714:0,2715:0,2716:0,2717:0,2718:0,2719:0,2720:0,2721:0,2722:0,2723:0,2724:0,2725:0,2726:0,2727:0,2728:0,2729:0,2730:0,2731:0,2732:0,2733:0,2734:0,2735:0,2736:0,2737:0,2738:0,2739:0,2740:0,2741:0,2742:0,2743:0,2744:0,2745:0,2746:0,2747:0,2748:0,2749:0,2750:0,2751:0,2752:0,2753:0,2754:0,2755:0,2756:0,2757:0,2758:0,2759:0,2760:0,2761:0,2762:0,2763:0,2764:0,2765:0,2766:0,2767:0,2768:0,2769:0,2770:0,2771:0,2772:0,2773:0,2774:0,2775:0,2776:0,2777:0,2778:0,2779:0,2780:0,2781:0,2782:0,2783:0,2784:0,2785:0,2786:0,2787:0,2788:0,2789:0,2790:0,2791:0,2792:0,2793:0,2794:0,2795:0,2796:0,2797:0,2798:0,2799:0,2800:0,2801:0,2802:0,2803:0,2804:0,2805:0,2806:0,2807:0,2808:0,2809:0,2810:0,2811:0,2812:0,2813:0,2814:0,2815:0,2816:0,2817:0,2818:0,2819:0,2820:0,2821:0,2822:0,2823:0,2824:0,2825:0,2826:0,2827:0,2828:0,2829:0,2830:0,2831:0,2832:0,2833:0,2834:0,2835:0,2836:0,2837:0,2838:0,2839:0,2840:0,2841:0,2842:0,2843:0,2844:0,2845:0,2846:0,2847:0,2848:0,2849:0,2850:0,2851:0,2852:0,2853:0,2854:0,2855:0,2856:0,2857:0,2858:0,2859:0,2860:0,2861:0,2862:0,2863:0,2864:0,2865:0,2866:0,2867:1,2868:1,2869:1,2870:2,2871:2,2872:2,2873:2,2874:2,2875:2,2876:2,2877:2,2878:2,2879:2,2880:2,2881:2,2882:2,2883:2,2884:2,2885:2,2886:2,2887:2,2888:2,2891:2,2892:2,2893:2,2894:2,2895:2,2896:1,2897:1,2898:1,2899:2,2900:2,2901:1,2902:2,2903:2,2904:2,2905:2,2906:2,2907:2,2908:2,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2915:2,2916:2,2917:2,2918:2,2919:2,2920:2,2921:1,2922:1,2923:1,2924:2,2925:2,2926:2,2927:2,2928:2,2929:2,2930:2,2931:0,2932:0,2933:0,2934:0,2935:0,2936:0,2937:0,2938:0,2939:0,2940:0,2941:0,2942:0,2943:0,2944:0,2945:0,2946:0,2947:0,2948:0,2949:0,2950:0,2951:0,2952:0,2953:0,2954:0,2955:0,2956:0,2957:0,2958:0,2959:0,2960:0,2961:0,2962:0,2964:2,2965:2,2966:2,2967:2,2968:2,2969:0,2970:0,2971:0,2972:0,2973:0,2975:0,2976:0,2977:0,2978:0,2979:0,2980:0,2981:0,2982:0,2983:0,2984:0,2985:0,2986:0,2987:0,2988:0,2989:0,2990:0,2991:0,2992:1,2993:0,2994:1,2995:0,2996:0,2997:0,2998:0,2999:0,3000:0,3001:0,3002:0,3003:0,3004:0,3005:0,3006:0,3007:0,3008:0,3009:0,3010:0,3011:0,3012:0,3013:0,3014:0,3015:0,3016:0,3017:0,3018:0,3019:0,3020:0,3021:0,3022:0,3023:0,3024:0,3025:0,3026:0,3027:0,3028:0,3029:0,3030:0,3031:0,3032:0,3033:0,3034:0,3035:0,3036:0,3037:0,3038:0,3039:0,3040:0,3041:0,3042:0,3043:0,3044:0,3045:0,3046:0,3047:0,3048:0,3049:0,3050:0,3051:0,3054:0,3055:0,3056:0,3057:0,3058:0,3059:0,3060:0,3061:0,3062:0,3063:0,3064:0,3065:0,3066:0,3067:0,3068:0,3069:0,3070:0,3071:0,3072:0,3073:0,3074:0,3075:0,3076:0,3077:0,3078:0,3079:0,3080:1,3081:0,3082:0,3083:0,3084:0,3085:0,3086:0,3087:0,3088:0,3089:2,3090:0,3091:2,3092:0,3093:0,3094:0,3095:0,3096:0,3097:0,3098:0,3099:0,3100:0,3101:0,3102:2,3106:0,3107:0,3108:0,3109:0,3110:0,3111:0,3112:0,3113:0,3114:0,3115:0,3116:0,3117:0,3118:0,3119:0,3120:0,3121:0,3122:0,3123:0,3124:0,3125:0,3126:0,3127:0,3128:0,3129:0,3130:0,3131:0,3132:0,3133:0,3134:0,3135:0,3136:0,3137:0,3138:0,3141:0,3142:0,3146:0,3147:0,3148:0,3149:0,3150:0,3151:0,3153:0,3154:0,3155:0,3156:0,3157:0,3158:0,3159:0,3160:0,3161:0,3162:0,3163:0,3164:0,3165:0,3166:0,3167:13,3168:0,3169:0,3170:0,3171:0,3172:0,3174:0,3175:0,3176:0,3177:0,3178:0,3179:0,3180:0,3181:0,3182:0,3183:0,3184:0,3185:0,3186:0,3187:0,3188:0,3189:0,3190:0,3191:0,3192:0,3193:0,3194:0,3195:0,3196:0,3197:0,3198:0,3199:0,3200:0,3201:0,3202:0,3203:0,3294:0,3295:0,3296:0,3297:0,3298:0,3299:0,3300:0,3301:0,3302:0,3303:0,3304:0,3305:0,3306:0,3307:0,3308:0,3309:0,3310:0,3311:0,3312:0,3313:0,3314:0,3315:0,3316:0,3317:0,3318:0,3319:0,3320:0,3321:0,3322:0,3323:0,3324:0,3325:0,3326:0,3327:0,3328:0,3329:0,3330:0,3331:0,3332:0,3333:0,3334:0,3335:0,3336:0,3337:0,3338:0,3339:0,3340:0,3341:0,3342:0,3343:0,3344:0,3345:0,3346:0,3347:0,3348:0,3349:0,3350:0,3351:0,3352:0,3353:0,3354:0,3355:0,3356:0,3357:0,3358:0,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3367:0,3368:0,3369:0,3370:0,3371:0,3372:0,3373:0,3374:0,3375:0,3376:0,3377:0,3378:0,3379:0,3380:0,3381:0,3382:0,3383:0,3384:0,3385:0,3386:0,3387:0,3388:0,3389:0,3390:0,3391:0,3392:0,3393:0,3394:0,3395:0,3396:0,3397:0,3398:0,3399:0,3400:0,3401:0,3402:0,3403:0,3404:2,3405:0,3406:0,3407:3,3408:0,3409:0,3410:0,3411:0,3412:0,3413:0,3414:0,3415:0,3416:0,3417:2,3418:2,3419:2,3420:2,3421:2,3422:2,3423:2,3424:2,3425:2,3426:2,3427:2,3428:2,3429:2,3430:2,3431:2,3432:2,3433:2,3434:2,3435:2,3436:2,3437:2,3438:2,3439:0,3440:0,3441:2,3442:2,3443:2,3444:2,3445:2,3446:2,3447:0,3448:0,3449:0,3450:0,3451:2,3452:2,3453:2,3454:2,3455:2,3456:2,3457:2,3458:2,3459:2,3460:0,3461:0,3462:0,3463:0,3464:0,3465:0,3466:0,3467:0,3468:0,3469:0,3470:0,3471:0,3472:0,3473:0,3474:0,3475:0,3476:0,3477:0,3478:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3554:0,3555:0,3556:0,3557:0,3558:0,3559:0,3560:2,3561:2,3562:2,3563:2,3564:2,3565:2,3566:2,3567:2,3568:2,3569:2,3570:2,3571:0,3572:0,3573:0,3574:0,3575:0,3576:0,3577:0,3578:0,3579:0,3580:0,3581:0,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3594:0,3595:0,3596:0,3597:0,3598:2,3599:0,3600:2,3601:0,3602:0,3603:0,3604:0,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3637:0,3638:0,3639:0,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3665:0,3666:0,3667:0,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3693:0,3694:0,3695:0,3696:2,3697:0,3698:2,3699:0,3700:2,3701:0,3702:0,3703:0,3704:0,3705:0,3706:0,3707:0,3708:0,3709:0,3710:0,3711:0,3712:0,3713:0,3714:0,3715:0,3716:0,3717:0,3718:0,3719:0,3720:0,3721:0,3722:0,3723:0,3724:0,3725:0,3726:0,3727:0,3728:2,3729:2,3730:2,3731:2,3732:2,3733:2,3734:2,3735:2,3736:2,3737:2,3738:2,3739:2,3740:0,3741:0,3742:0,3743:0,3744:0,3745:0,3746:0,3747:0,3748:0,3749:0,3750:0,3751:0,3753:2,3754:2,3755:2,3756:2,3757:2,3758:2,3759:2,3760:2,3761:0,3762:0,3763:0,3764:0,3765:0,3766:0,3767:0,3768:0,3769:0,3770:0,3771:0,3772:0,3773:0,3775:0,3776:0,3777:0,3779:0,3780:0,3781:0,3783:0,3784:0,3785:0,3788:0,3789:0,3790:0,3791:0,3793:0,3794:0,3797:0,3798:0,3799:0,3800:0,3801:0,3802:0,3812:0,3814:0,3815:0,3816:0,3825:0,3826:0,3827:0,3828:0,3829:0,3832:0,3833:0,3834:0,3835:0,3836:0,3837:0,3838:0,3839:0,3840:0,3841:0,3844:0,3845:0,3846:0,3847:0,3848:0,3849:0,3850:0,3851:0,3852:0,3854:0,3857:0,3873:0,3874:0,3875:0,3876:0,3877:0,3878:0,3879:0,3880:0,3881:0,3882:0,3883:0,3884:0,3885:0,3890:0,3891:0,3892:0,3893:0,3907:0,3908:0,3909:0,3910:0,3911:0,3912:0,3920:0,3942:0,3943:0,3944:0,3945:0,3946:0,3947:0,3948:0,3949:0,3950:0,3968:0,3969:0,3970:0,3973:0,3974:0,3975:0,3976:0,3978:0,3979:0,3986:0,3987:0,3988:0,3989:0,3991:2,3992:2,3994:0,3995:0,3996:0,3997:0,4026:0,4037:0,4038:0,4048:0,4049:0,4050:0,4051:0,4056:0,4057:0,4058:0,4059:0,4060:0,4061:0,4062:0,4063:0,4071:0,4082:0,4083:0,4093:0,4094:0,4095:0,4096:0,4217:2,4399:2,4400:2,4401:2,4402:2,4403:2,4404:2,4405:2,4406:2,4407:2,4408:2,4409:2,4410:2,4411:2,4412:2,4413:2,4414:0,4415:0,4417:0,4418:2,4419:2,4420:2,4421:2,4422:2,4423:2,4424:2,4425:2,4426:2,4427:2,4428:2,4429:2,4430:2,4431:2,4432:2,4433:2,4434:0,4437:0,4438:2,4439:2,4455:2,4456:2,4457:2,4462:0,4467:0,4471:0,4474:0,4484:0,4485:0,4486:0,4487:0,4488:0,4489:0,4491:0,4492:0,4493:0,4494:0,4495:0,4496:0,4497:0,4498:0,4499:0,4500:0,4501:0,4502:0,4503:0,4504:0,4505:0,4506:0,4507:0,4508:0,4509:0,4510:0,4511:0,4512:0,4513:0,4514:0,4515:0,4516:0,4517:0,4518:0,4519:0,4520:0,4521:0,4522:0,4523:0,4524:0,4525:0,4526:0,4527:0,4528:0,4529:0,4530:0,4531:0,4532:0,4533:0,4534:0,4535:0,4536:0,4537:0,4538:0,4539:0,4540:0,4541:0,4542:0,4543:0,4544:0,4545:0,4546:0,4547:0,4548:0,4549:0,4550:0,4551:0,4552:0,4553:0,4554:0,4559:0,4568:0,4569:0,4570:0,4571:0,4572:0,4573:0,4574:0,4575:0,4576:0,4577:0,4578:0,4579:0,4580:0,4581:0,4582:0,4583:0,4584:0,4585:0,4586:0,4587:0,4588:0,4589:0,4647:0,4652:0,4653:0,4654:0,4655:0,4656:0,4766:0,4767:0,4768:0,4769:0,4770:0,4771:0,4772:0,4773:0,4774:0,4775:0,4776:0,4777:0,4778:0,4779:0,4780:0,4781:0,4782:0,4783:0,4784:0,4785:0,4786:0,4787:0,4788:0,4789:0,4790:0,4791:0,4792:0,4793:0,4794:0,4795:0,4796:0,4797:0,4798:0,4799:0,4800:0,4822:0,4826:0,4839:0,5014:0,5015:0,5016:0,5018:0,5048:0,5069:0,5070:0,5071:0,5072:0,5105:0,5106:0,5107:0,5108:0,5109:0,5110:0,5111:0,5112:0,5113:0,5114:0,5115:0,5116:0,5117:0,5118:0,5119:0,5120:0,5121:0,5122:0,5123:0,5124:0,5125:0,5126:0,5127:0,5128:0,5129:0,5130:0,5167:0,5168:0,5173:0,5174:0,5175:0,5176:0,5177:0,5178:0,5179:0,5180:0,5181:0,5182:0,5183:0,5184:0,5185:0,5186:0,5187:0,5188:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5253:0,5254:0,5255:0,5256:0,5257:0,5258:0,5259:0,5266:0,5269:0,5270:0,5271:0,5272:0,5273:0,5274:0,5275:0,5292:0,5293:0,5294:0,5295:0,5296:0,5297:0,5298:0,5299:0,5300:0,5301:0,5302:0,5303:0,5304:0,5305:0,5306:0,5307:0,5308:0,5309:0,5310:0,5311:0,5316:0,5320:0,5321:0,5325:0,5329:0,5330:0,5331:0,5337:0,5343:0,5344:0,5345:0,5346:0,5347:0,5348:0,5349:0,5355:0,5356:0,5357:0,5361:0,5362:0,5367:0,5382:0,5383:0,5387:0,5388:0,5389:0,5396:0,5456:0,5457:0,5459:0,5460:0,5461:0,5462:0,5463:0,5469:0,5472:4,5479:0,5480:0,5481:0,5482:0,5490:0,5513:0,5514:0,5518:0,5519:0,5520:0,5523:0,5530:0,5531:0,5532:0,5533:0,5534:0,5535:0,5536:0,5537:0,5538:0,5539:0,5550:0,5551:0,5552:0,5559:0,5562:0,5563:0,5564:0,5565:0,5566:0,5567:0,5568:0,5569:0,5570:0,5571:0,5572:0,5573:0,5574:0,5575:0,5576:0,5577:0,5578:0,5579:0,5580:0,5581:0,5582:0,5583:0,5588:1,5589:3,5596:0,5623:2,5624:2,5625:2,5627:0,5629:0,5631:0,5632:0,5633:0,5634:0,5635:0,5636:0,5637:0,5638:0,5639:0,5641:0,5643:0,5644:0,5646:2,5649:0,5650:0,5651:0,5652:0,5653:0,5654:2,5655:2,5659:0,5663:0,5664:0,5665:0,5666:0,5667:0,5668:0,5669:0,5670:0,5671:0,5672:0,5673:0,5674:0,5675:0,5676:0,5677:0,5678:0,5679:0,5680:0,5682:0,5683:0,5684:0,5685:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5875:0,5876:0,5877:0,5879:0,5880:0,5887:0,5890:0,5921:0,5922:0,5923:0,5924:0,5925:0,5926:0,5927:0,5928:0,5929:0,5930:0,5931:0,5932:0,5933:0,5934:0,5935:0,5936:0,5937:0,5938:0,5939:0,5940:0,6050:0,6051:0,6052:0,6053:0,6054:0,6055:0,6056:0,6057:0,6058:0,6059:0,6060:0,6061:0,6062:0,6063:0,6064:0,6065:0,6066:0,6067:0,6068:0,6069:0,6070:0,6071:0,6072:0,6073:0,6074:0,6075:0,6076:0,6077:0,6078:0,6079:0,6080:0,6081:0,6082:0,6083:0,6084:0,6085:0,6086:0,6087:0,6088:0,6089:0,6090:0,6091:0,6092:0,6093:0,6094:0,6095:0,6096:0,6097:0,6098:0,6099:0,6100:0,6101:0,6102:0,6103:0,6104:0,6105:0,6106:0,6107:0,6108:0,6109:0,6110:0,6111:0,6112:0,6113:0,6114:0,6115:0,6116:0,6117:0,6118:0,6119:0,6120:0,6121:0,6122:0,6123:0,6124:0,6125:0,6128:1,6129:1,6141:1,6210:0,6211:0,6244:0,6245:0,6246:0,6247:0,6248:0,6249:0,6250:0,6251:0,6252:0,6253:0,6254:0,6255:0,6256:0,6257:0,6258:0,6259:0,6260:0,6261:0,6262:0,6263:0,6264:0,6265:0,6266:0,6267:0,6268:0,6269:0,6270:0,6271:0,6272:0,6273:0,6274:0,6275:0,6316:0,6328:0,6329:0,6330:0,6331:0,6332:0,6333:0,6334:0,6335:0,6336:0,6337:0,6338:0,6339:0,6340:0,6341:0,6342:0,6343:0,6344:0,6345:0,6346:0,6347:0,6348:0,6350:0,6351:0,6352:0,6353:0,6354:0,6391:1,20002:0,20003:0,20004:0,20005:0,20006:0,20007:0,20008:0,20009:0,20010:0,20011:0,20012:0,20013:0,20014:0,20015:0,20016:0,20017:0,20018:0,20019:0,20020:0,20021:0,20022:0,20023:0,20024:0,20025:0,20026:0,20027:0,20028:0,20029:0,20030:0,20031:0,20032:0,20062:0,20063:0,20064:0,20065:0,20066:0,20067:0,20068:0,20069:0,20070:0,20071:0,20072:0,20073:0,20074:0,20075:0,20076:0,20077:0,20078:0,20079:0,20080:0,20081:0,20082:0,20083:0,20084:0,20085:0,20086:0,20087:0,20088:0,20089:0,20090:0,20091:0,20092:0,20135:0,20136:0,20137:0,20138:0,20248:0,20249:0,20250:0,20251:0,20252:0,20253:0,20254:0,20255:0,20256:0,20257:0,20258:0,20348:0,20349:0,20350:0,20351:0,20352:0,20353:0,20354:0,20355:0,20356:0,20357:0,20358:0,20436:0,20437:0,20438:0,20439:0,20440:0,20499:0,20538:0,20539:0,20790:0,20791:0,20822:0,20823:0,20824:0,20934:0,20935:0,20936:0,21035:0,21036:0,21037:0,21095:0,21096:0,21097:0,21148:0,21149:0,21150:0,21291:0,21292:0,21413:0,21414:0,21415:0,21416:0,21417:0,21418:0,21419:0,21420:0,21421:0,21422:0,21423:0,21473:0,21474:0,21475:0,21476:0,21477:0,21478:0,21479:0,21480:0,21481:0,21482:0,21483:0,21500:0,21780:0,21781:0,21782:0,21817:0,21818:0,21891:0,21892:0,21893:0,21894:0,21896:0,21897:0,21898:0,21899:0,22032:0,22033:0,22091:0,22092:0,22171:0,22172:0,22173:0,22174:0,22175:0,22176:0,22177:0,22181:0,22182:0,22183:0,22184:0,22185:0,22186:0,22187:0,22191:0,22192:0,22193:0,22194:0,22195:0,22196:0,22197:0,22234:0,22235:0,22236:0,22332:0,22391:0,22392:0,22521:0,22522:0,22523:0,22524:0,22525:0,22700:0,22770:0,22780:0,22832:0,22991:0,22992:0,22993:0,22994:0,23028:0,23029:0,23030:0,23031:0,23032:0,23033:0,23034:0,23035:0,23036:0,23037:0,23038:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,23830:0,23831:0,23832:0,23833:0,23834:0,23835:0,23836:0,23837:0,23838:0,23839:0,23840:0,23841:0,23842:0,23843:0,23844:0,23845:0,23846:0,23847:0,23848:0,23849:0,23850:0,23851:0,23852:0,23853:0,23866:0,23867:0,23868:0,23869:0,23870:0,23871:0,23872:0,23877:0,23878:0,23879:0,23880:0,23881:0,23882:0,23883:0,23884:0,23886:0,23887:0,23888:0,23889:0,23890:0,23891:0,23892:0,23893:0,23894:0,23946:0,23947:0,23948:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24311:0,24312:0,24313:0,24342:0,24343:0,24344:0,24345:0,24346:0,24347:0,24370:10,24371:10,24372:10,24373:10,24374:10,24375:0,24376:0,24377:0,24378:0,24379:0,24380:0,24381:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,24718:0,24719:0,24720:0,24721:0,24817:0,24818:0,24819:0,24820:0,24821:0,24877:0,24878:0,24879:0,24880:0,24881:0,24882:0,24891:0,24892:0,24893:0,25000:0,25231:0,25391:0,25392:0,25393:0,25394:0,25395:0,25828:0,25829:0,25830:0,25831:0,25832:0,25833:0,25834:0,25835:0,25836:0,25837:0,25838:0,25884:0,25932:0,26191:0,26192:0,26193:0,26194:0,26195:0,26237:0,26331:0,26332:0,26391:0,26392:0,26393:0,26432:0,26591:0,26592:0,26632:0,26692:0,26701:0,26702:0,26703:0,26704:0,26705:0,26706:0,26707:0,26708:0,26709:0,26710:0,26711:0,26712:0,26713:0,26714:0,26715:0,26716:0,26717:0,26718:0,26719:0,26720:0,26721:0,26722:0,26729:2,26730:2,26731:2,26732:2,26733:2,26734:2,26735:2,26736:2,26737:2,26738:2,26739:2,26740:2,26741:2,26742:2,26743:2,26744:2,26745:2,26746:2,26747:2,26748:2,26749:2,26750:2,26751:2,26752:2,26753:2,26754:2,26755:2,26756:2,26757:2,26758:2,26759:2,26760:2,26761:2,26762:2,26763:2,26764:2,26765:2,26766:2,26767:2,26768:2,26769:2,26770:2,26771:2,26772:2,26773:2,26774:2,26775:2,26776:2,26777:2,26778:2,26779:2,26780:2,26781:2,26782:2,26783:2,26784:2,26785:2,26786:2,26787:2,26788:2,26789:2,26790:2,26791:2,26792:2,26793:2,26794:2,26795:2,26796:2,26797:2,26798:2,26799:2,26801:2,26802:2,26803:2,26811:2,26812:2,26813:2,26847:2,26848:2,26849:2,26850:2,26851:2,26852:2,26853:2,26854:2,26855:2,26856:2,26857:2,26858:2,26859:2,26860:2,26861:2,26862:2,26863:2,26864:2,26865:2,26866:2,26867:2,26868:2,26869:2,26870:2,26891:0,26892:0,26893:0,26894:0,26895:0,26896:0,26897:0,26898:0,26899:0,26901:0,26902:0,26903:0,26904:0,26905:0,26906:0,26907:0,26908:0,26909:0,26910:0,26911:0,26912:0,26913:0,26914:0,26915:0,26916:0,26917:0,26918:0,26919:0,26920:0,26921:0,26922:0,26923:0,26929:0,26930:0,26931:0,26932:0,26933:0,26934:0,26935:0,26936:0,26937:0,26938:0,26939:0,26940:0,26941:0,26942:0,26943:0,26944:0,26945:0,26946:0,26948:0,26949:0,26950:0,26951:0,26952:0,26953:0,26954:0,26955:0,26956:0,26957:0,26958:0,26959:0,26960:0,26961:0,26962:0,26963:0,26964:0,26965:0,26966:0,26967:0,26968:0,26969:0,26970:0,26971:0,26972:0,26973:0,26974:0,26975:0,26976:0,26977:0,26978:0,26979:0,26980:0,26981:0,26982:0,26983:0,26984:0,26985:0,26986:0,26987:0,26988:0,26989:0,26990:0,26991:0,26992:0,26993:0,26994:0,26995:0,26996:0,26997:0,26998:0,27037:0,27038:0,27039:0,27040:0,27120:0,27200:0,27205:0,27206:0,27207:0,27208:0,27209:0,27210:0,27211:0,27212:0,27213:0,27214:0,27215:0,27216:0,27217:0,27218:0,27219:0,27220:0,27221:0,27222:0,27223:0,27224:0,27225:0,27226:0,27227:0,27228:0,27229:0,27230:0,27231:0,27232:0,27258:0,27259:0,27260:0,27291:6,27292:6,27391:0,27392:0,27393:0,27394:0,27395:0,27396:0,27397:0,27398:0,27429:0,27492:0,27493:0,27500:0,27561:0,27562:0,27563:0,27564:0,27571:0,27572:0,27573:0,27574:0,27581:0,27582:0,27583:0,27584:0,27591:0,27592:0,27593:0,27594:0,27700:0,28191:0,28192:0,28193:0,28232:0,28348:0,28349:0,28350:0,28351:0,28352:0,28353:0,28354:0,28355:0,28356:0,28357:0,28358:0,28402:0,28403:0,28404:0,28405:0,28406:0,28407:0,28408:0,28409:0,28410:0,28411:0,28412:0,28413:0,28414:0,28415:0,28416:0,28417:0,28418:0,28419:0,28420:0,28421:0,28422:0,28423:0,28424:0,28425:0,28426:0,28427:0,28428:0,28429:0,28430:0,28431:0,28432:0,28462:0,28463:0,28464:0,28465:0,28466:0,28467:0,28468:0,28469:0,28470:0,28471:0,28472:0,28473:0,28474:0,28475:0,28476:0,28477:0,28478:0,28479:0,28480:0,28481:0,28482:0,28483:0,28484:0,28485:0,28486:0,28487:0,28488:0,28489:0,28490:0,28491:0,28492:0,28600:0,28991:0,28992:0,29100:0,29101:0,29118:0,29119:0,29120:0,29121:0,29122:0,29168:0,29169:0,29170:0,29171:0,29172:0,29177:0,29178:0,29179:0,29180:0,29181:0,29182:0,29183:0,29184:0,29185:0,29187:0,29188:0,29189:0,29190:0,29191:0,29192:0,29193:0,29194:0,29195:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29900:0,29901:0,29902:0,29903:0,30161:0,30162:0,30163:0,30164:0,30165:0,30166:0,30167:0,30168:0,30169:0,30170:0,30171:0,30172:0,30173:0,30174:0,30175:0,30176:0,30177:0,30178:0,30179:0,30200:5,30339:0,30340:0,30491:0,30492:0,30493:0,30494:0,30591:0,30592:0,30729:0,30730:0,30731:0,30732:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31251:0,31252:0,31253:0,31254:0,31255:0,31256:0,31257:0,31258:0,31259:0,31265:0,31266:0,31267:0,31268:0,31275:0,31276:0,31277:0,31278:0,31279:0,31281:0,31282:0,31283:0,31284:0,31285:0,31286:0,31287:0,31288:0,31289:0,31290:0,31291:0,31292:0,31293:0,31294:0,31295:0,31296:0,31297:0,31370:0,31461:0,31462:0,31463:0,31464:0,31465:0,31466:0,31467:0,31468:0,31469:0,31491:0,31492:0,31493:0,31494:0,31495:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,31917:0,31918:0,31919:0,31920:0,31921:0,31922:0,31965:0,31966:0,31967:0,31968:0,31969:0,31970:0,31971:0,31972:0,31973:0,31974:0,31975:0,31976:0,31977:0,31978:0,31979:0,31980:0,31981:0,31982:0,31983:0,31984:0,31985:0,31986:0,31987:0,31988:0,31989:0,31990:0,31991:0,31992:0,31993:0,31994:0,31995:0,31996:0,31997:0,31998:0,31999:0,32000:0,32001:2,32002:2,32003:2,32005:2,32006:2,32007:2,32008:2,32009:2,32010:2,32011:2,32012:2,32013:2,32014:2,32015:2,32016:2,32017:2,32018:2,32019:2,32020:2,32021:2,32022:2,32023:2,32024:2,32025:2,32026:2,32027:2,32028:2,32029:2,32030:2,32031:2,32033:2,32034:2,32035:2,32036:2,32037:2,32038:2,32039:2,32040:2,32041:2,32042:2,32043:2,32044:2,32045:2,32046:2,32047:2,32048:2,32049:2,32050:2,32051:2,32052:2,32053:2,32054:2,32055:2,32056:2,32057:2,32058:2,32059:2,32060:2,32061:0,32062:0,32064:2,32065:2,32066:2,32067:2,32074:2,32075:2,32076:2,32077:2,32081:0,32082:0,32083:0,32084:0,32085:0,32086:0,32098:0,32099:2,32100:0,32104:0,32107:0,32108:0,32109:0,32110:0,32111:0,32112:0,32113:0,32114:0,32115:0,32116:0,32117:0,32118:0,32119:0,32120:0,32121:0,32122:0,32123:0,32124:0,32125:0,32126:0,32127:0,32128:0,32129:0,32130:0,32133:0,32134:0,32135:0,32136:0,32137:0,32138:0,32139:0,32140:0,32141:0,32142:0,32143:0,32144:0,32145:0,32146:0,32147:0,32148:0,32149:0,32150:0,32151:0,32152:0,32153:0,32154:0,32155:0,32156:0,32157:0,32158:0,32161:0,32164:2,32165:2,32166:2,32167:2,32180:0,32181:0,32182:0,32183:0,32184:0,32185:0,32186:0,32187:0,32188:0,32189:0,32190:0,32191:0,32192:0,32193:0,32194:0,32195:0,32196:0,32197:0,32198:0,32199:0,32201:0,32202:0,32203:0,32204:0,32205:0,32206:0,32207:0,32208:0,32209:0,32210:0,32211:0,32212:0,32213:0,32214:0,32215:0,32216:0,32217:0,32218:0,32219:0,32220:0,32221:0,32222:0,32223:0,32224:0,32225:0,32226:0,32227:0,32228:0,32229:0,32230:0,32231:0,32232:0,32233:0,32234:0,32235:0,32236:0,32237:0,32238:0,32239:0,32240:0,32241:0,32242:0,32243:0,32244:0,32245:0,32246:0,32247:0,32248:0,32249:0,32250:0,32251:0,32252:0,32253:0,32254:0,32255:0,32256:0,32257:0,32258:0,32259:0,32260:0,32301:0,32302:0,32303:0,32304:0,32305:0,32306:0,32307:0,32308:0,32309:0,32310:0,32311:0,32312:0,32313:0,32314:0,32315:0,32316:0,32317:0,32318:0,32319:0,32320:0,32321:0,32322:0,32323:0,32324:0,32325:0,32326:0,32327:0,32328:0,32329:0,32330:0,32331:0,32332:0,32333:0,32334:0,32335:0,32336:0,32337:0,32338:0,32339:0,32340:0,32341:0,32342:0,32343:0,32344:0,32345:0,32346:0,32347:0,32348:0,32349:0,32350:0,32351:0,32352:0,32353:0,32354:0,32355:0,32356:0,32357:0,32358:0,32359:0,32360:0,32601:0,32602:0,32603:0,32604:0,32605:0,32606:0,32607:0,32608:0,32609:0,32610:0,32611:0,32612:0,32613:0,32614:0,32615:0,32616:0,32617:0,32618:0,32619:0,32620:0,32621:0,32622:0,32623:0,32624:0,32625:0,32626:0,32627:0,32628:0,32629:0,32630:0,32631:0,32632:0,32633:0,32634:0,32635:0,32636:0,32637:0,32638:0,32639:0,32640:0,32641:0,32642:0,32643:0,32644:0,32645:0,32646:0,32647:0,32648:0,32649:0,32650:0,32651:0,32652:0,32653:0,32654:0,32655:0,32656:0,32657:0,32658:0,32659:0,32660:0,32661:0,32662:0,32664:2,32665:2,32666:2,32667:2,32701:0,32702:0,32703:0,32704:0,32705:0,32706:0,32707:0,32708:0,32709:0,32710:0,32711:0,32712:0,32713:0,32714:0,32715:0,32716:0,32717:0,32718:0,32719:0,32720:0,32721:0,32722:0,32723:0,32724:0,32725:0,32726:0,32727:0,32728:0,32729:0,32730:0,32731:0,32732:0,32733:0,32734:0,32735:0,32736:0,32737:0,32738:0,32739:0,32740:0,32741:0,32742:0,32743:0,32744:0,32745:0,32746:0,32747:0,32748:0,32749:0,32750:0,32751:0,32752:0,32753:0,32754:0,32755:0,32756:0,32757:0,32758:0,32759:0,32760:0,32761:0,32766:0,53001:0,53002:0,53003:0,53004:0,53008:0,53009:0,53010:0,53011:0,53012:0,53013:0,53014:0,53015:0,53016:0,53017:0,53018:0,53019:0,53021:0,53022:0,53023:0,53024:0,53025:0,53026:0,53027:0,53028:0,53029:0,53030:0,53031:0,53032:0,53034:0,53042:0,53043:0,53044:0,53045:0,53046:0,53048:0,53049:0,54001:0,54002:0,54003:0,54004:0,54008:0,54009:0,54010:0,54011:0,54012:0,54013:0,54014:0,54015:0,54016:0,54017:0,54018:0,54019:0,54021:0,54022:0,54023:0,54024:0,54025:0,54026:0,54027:0,54028:0,54029:0,54030:0,54031:0,54032:0,54034:0,54042:0,54043:0,54044:0,54045:0,54046:0,54048:0,54049:0,54050:0,54051:0,54052:0,54053:0,65061:2,65062:2,65161:0,65163:0,102001:0,102002:0,102003:0,102004:0,102005:0,102006:0,102007:0,102008:0,102009:0,102010:0,102011:0,102012:0,102013:0,102014:0,102015:0,102016:0,102017:0,102018:0,102019:0,102020:0,102021:0,102022:0,102023:0,102024:0,102025:0,102026:0,102027:0,102028:0,102029:0,102030:0,102031:0,102032:0,102033:0,102034:0,102035:0,102036:0,102037:0,102038:0,102039:0,102040:0,102041:2,102042:0,102043:0,102044:0,102045:0,102046:0,102047:0,102048:0,102049:0,102050:0,102051:0,102052:0,102053:0,102054:0,102055:0,102056:0,102057:0,102058:0,102059:0,102060:0,102061:0,102062:0,102063:0,102064:11,102065:0,102066:0,102067:0,102068:14,102069:15,102070:0,102071:0,102072:0,102073:0,102074:0,102075:0,102076:0,102077:0,102078:0,102079:0,102080:0,102081:0,102082:0,102083:0,102084:0,102085:0,102086:0,102087:0,102088:0,102089:0,102090:0,102091:0,102092:0,102093:0,102094:0,102095:0,102096:0,102097:0,102098:0,102099:0,102100:0,102101:0,102102:0,102103:0,102104:0,102105:0,102106:0,102107:0,102108:0,102109:0,102110:0,102111:0,102112:0,102113:0,102114:0,102115:0,102116:0,102117:0,102118:2,102119:1,102120:2,102121:2,102122:0,102123:0,102124:0,102125:0,102126:0,102127:0,102128:0,102129:0,102130:0,102131:0,102132:0,102133:0,102134:0,102135:0,102136:0,102137:0,102138:0,102139:0,102140:0,102141:0,102142:0,102143:0,102144:0,102145:0,102146:0,102147:0,102148:0,102149:0,102150:0,102151:0,102152:0,102153:0,102154:0,102155:0,102156:0,102157:0,102158:0,102159:0,102160:0,102161:0,102162:0,102163:0,102164:0,102165:0,102166:0,102167:0,102168:0,102169:0,102170:0,102171:0,102172:0,102173:0,102174:0,102175:0,102176:0,102177:0,102178:0,102179:0,102180:0,102181:0,102182:0,102183:0,102184:0,102185:0,102186:0,102187:0,102188:0,102189:0,102190:0,102191:0,102192:0,102193:0,102194:0,102195:0,102196:0,102197:0,102198:0,102199:0,102200:0,102201:0,102202:0,102203:0,102204:0,102205:0,102206:0,102207:0,102208:0,102209:0,102210:0,102211:0,102212:0,102213:0,102214:0,102215:0,102216:0,102217:2,102218:0,102219:2,102220:2,102221:0,102222:0,102223:0,102224:0,102225:0,102226:0,102227:0,102228:0,102229:0,102230:0,102231:0,102232:0,102233:0,102234:0,102235:0,102236:0,102237:0,102238:0,102239:0,102240:0,102241:0,102242:0,102243:0,102244:0,102245:0,102246:0,102247:0,102248:0,102249:0,102250:0,102251:0,102252:0,102253:0,102254:0,102255:0,102256:0,102257:0,102258:0,102259:0,102260:0,102261:0,102262:0,102263:0,102264:0,102265:0,102266:0,102267:0,102268:0,102269:0,102270:0,102271:0,102272:0,102273:0,102274:0,102275:0,102276:0,102277:0,102278:0,102279:0,102280:0,102281:0,102282:0,102283:0,102284:0,102285:0,102286:0,102287:0,102288:0,102289:0,102290:0,102291:0,102292:0,102293:0,102294:0,102295:0,102296:0,102297:0,102298:0,102299:0,102300:0,102301:0,102302:0,102303:0,102304:0,102305:0,102306:0,102307:0,102308:0,102309:0,102310:0,102311:0,102312:0,102313:0,102314:0,102315:0,102316:0,102317:0,102318:0,102319:0,102320:0,102321:0,102322:0,102323:0,102324:0,102325:0,102326:0,102327:0,102328:0,102329:0,102330:0,102331:0,102332:0,102333:0,102334:0,102335:0,102336:0,102337:0,102338:0,102339:0,102340:0,102341:0,102342:0,102343:0,102344:0,102345:0,102346:0,102347:0,102348:0,102349:0,102350:0,102351:0,102352:0,102353:0,102354:0,102355:0,102356:0,102357:0,102358:0,102359:0,102360:0,102361:0,102362:0,102363:0,102364:0,102365:0,102366:0,102367:0,102368:0,102369:0,102370:0,102371:0,102372:0,102373:0,102374:0,102375:0,102376:0,102377:0,102378:1,102379:1,102380:0,102381:1,102382:0,102383:0,102384:0,102385:0,102386:0,102387:0,102388:0,102389:2,102390:2,102391:2,102392:2,102393:2,102394:2,102395:2,102396:2,102397:2,102398:2,102401:0,102402:0,102403:0,102404:0,102405:0,102406:0,102407:0,102408:0,102409:0,102410:0,102411:0,102412:0,102413:0,102414:0,102415:0,102416:0,102417:0,102418:0,102419:0,102420:0,102421:0,102422:0,102423:0,102424:0,102425:0,102426:0,102427:0,102428:0,102429:0,102430:0,102431:0,102432:0,102433:0,102434:0,102435:0,102436:0,102437:0,102438:0,102439:0,102440:0,102441:0,102442:0,102443:0,102444:0,102445:2,102446:2,102447:2,102450:0,102451:0,102452:0,102461:2,102462:2,102463:2,102464:2,102465:2,102466:2,102467:2,102468:2,102469:0,102470:0,102471:0,102472:0,102473:0,102474:0,102475:0,102476:0,102477:0,102478:0,102479:0,102480:0,102481:0,102482:0,102483:0,102484:0,102485:0,102486:0,102487:0,102488:0,102489:0,102490:0,102491:0,102492:0,102493:0,102494:0,102495:0,102496:0,102500:1,102501:1,102502:1,102503:1,102504:1,102505:1,102506:1,102507:1,102508:1,102509:1,102510:1,102511:1,102512:1,102513:1,102514:1,102515:1,102516:1,102517:1,102518:1,102519:1,102520:0,102521:0,102522:0,102523:0,102524:0,102525:2,102526:2,102527:2,102528:2,102529:2,102530:0,102531:0,102532:0,102533:0,102534:0,102535:0,102536:0,102537:0,102538:0,102539:0,102540:0,102541:0,102542:0,102543:0,102544:0,102545:0,102546:0,102547:0,102548:0,102549:0,102570:0,102571:0,102572:0,102573:0,102574:0,102575:0,102576:0,102577:0,102578:0,102579:0,102580:0,102581:0,102582:0,102583:0,102584:0,102585:0,102586:0,102587:0,102588:0,102589:2,102590:0,102591:0,102592:0,102593:0,102594:0,102595:0,102596:0,102597:0,102598:0,102599:2,102600:2,102601:0,102602:0,102603:0,102604:2,102605:0,102606:0,102607:0,102608:0,102609:0,102610:0,102611:0,102612:0,102613:0,102614:0,102615:0,102616:0,102617:0,102618:0,102619:0,102620:0,102621:0,102622:0,102623:0,102624:0,102625:0,102626:0,102627:0,102628:0,102629:2,102630:2,102631:2,102632:2,102633:2,102634:2,102635:2,102636:2,102637:2,102638:2,102639:2,102640:2,102641:2,102642:2,102643:2,102644:2,102645:2,102646:2,102647:0,102648:2,102649:2,102650:2,102651:2,102652:2,102653:2,102654:2,102655:2,102656:2,102657:2,102658:2,102659:2,102660:2,102661:2,102662:2,102663:2,102664:2,102665:2,102666:2,102667:2,102668:2,102669:2,102670:2,102671:2,102672:2,102673:2,102674:2,102675:2,102676:2,102677:2,102678:2,102679:2,102680:2,102681:2,102682:2,102683:2,102684:2,102685:2,102686:2,102687:2,102688:2,102689:2,102690:2,102691:2,102692:2,102693:2,102694:2,102695:2,102696:2,102697:2,102698:2,102699:2,102700:2,102701:0,102702:0,102703:0,102704:2,102705:2,102707:2,102708:2,102709:2,102710:2,102711:2,102712:2,102713:2,102714:2,102715:2,102716:2,102717:2,102718:2,102719:2,102720:2,102721:2,102722:2,102723:2,102724:2,102725:2,102726:2,102727:2,102728:2,102729:2,102730:2,102733:2,102734:2,102735:2,102736:2,102737:2,102738:2,102739:2,102740:2,102741:2,102742:2,102743:2,102744:2,102745:2,102746:2,102747:2,102748:2,102749:2,102750:2,102751:2,102752:2,102753:2,102754:2,102755:2,102756:2,102757:2,102758:2,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102767:0,102768:0,102769:0,102770:0,102771:0,102772:0,102773:0,102774:0,102775:0,102776:0,102777:0,102778:0,102779:0,102780:0,102781:0,102782:0,102783:0,102784:0,102785:0,102786:0,102787:0,102788:0,102789:0,102790:0,102791:0,102792:0,102793:0,102794:0,102795:0,102796:0,102797:0,102798:0,102962:0,102963:0,102964:0,102965:0,102966:0,102967:0,102968:0,102969:0,102970:1,102971:0,102972:0,102973:0,102974:2,102975:0,102976:0,102977:0,102978:0,102979:0,102980:0,102981:0,102982:0,102983:0,102984:0,102985:0,102986:0,102987:0,102988:0,102989:0,102990:1,102991:1,102992:1,102993:0,102994:0,102995:2,102996:2,102997:0,102998:0,102999:0,103000:0,103001:0,103002:0,103003:2,103004:2,103005:2,103006:2,103007:2,103008:2,103009:0,103010:0,103011:0,103012:2,103013:2,103014:2,103015:0,103016:2,103017:0,103018:2,103019:0,103020:0,103021:0,103022:2,103023:2,103024:2,103025:0,103026:0,103027:2,103028:2,103029:0,103030:0,103031:0,103032:2,103033:2,103034:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103065:0,103066:0,103067:0,103068:0,103069:2,103070:0,103071:0,103072:2,103073:2,103074:0,103075:0,103076:0,103077:1,103078:1,103079:1,103080:0,103081:0,103082:0,103083:2,103084:2,103085:2,103086:0,103087:0,103088:2,103089:2,103090:0,103091:0,103092:0,103093:0,103094:1,103095:0,103096:2,103097:0,103098:0,103099:0,103100:2,103101:2,103102:2,103103:0,103104:2,103105:0,103106:2,103107:0,103108:0,103109:0,103110:2,103111:2,103112:2,103113:0,103114:0,103115:0,103116:0,103117:2,103118:2,103119:2,103120:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103153:0,103154:0,103155:0,103156:0,103157:0,103158:2,103159:2,103160:2,103161:2,103162:2,103163:0,103164:0,103165:0,103166:1,103167:1,103168:1,103169:2,103170:2,103171:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103186:0,103187:0,103188:0,103189:2,103190:2,103191:2,103192:0,103193:0,103194:0,103195:0,103196:2,103197:2,103198:2,103199:2,103200:0,103201:0,103202:0,103203:0,103204:0,103205:0,103206:0,103207:0,103208:0,103209:0,103210:0,103211:0,103212:0,103213:0,103214:0,103215:0,103216:0,103217:0,103218:0,103219:0,103220:0,103221:0,103222:0,103223:0,103224:0,103225:1,103226:1,103227:1,103228:0,103229:0,103230:2,103231:2,103232:0,103233:0,103234:0,103235:0,103236:0,103237:0,103238:2,103239:2,103240:2,103241:2,103242:2,103243:2,103244:0,103245:0,103246:0,103247:2,103248:2,103249:2,103250:0,103251:2,103252:0,103253:2,103254:0,103255:0,103256:0,103257:2,103258:2,103259:2,103260:0,103261:0,103262:2,103263:2,103264:0,103265:0,103266:0,103267:2,103268:2,103269:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103300:0,103301:0,103302:0,103303:0,103304:0,103305:0,103306:0,103307:0,103308:0,103309:0,103310:0,103311:0,103312:0,103313:0,103314:0,103315:0,103316:0,103317:0,103318:0,103319:0,103320:0,103321:0,103322:0,103323:0,103324:0,103325:0,103326:0,103327:0,103328:0,103329:0,103330:0,103331:0,103332:0,103333:0,103334:0,103335:0,103336:0,103337:0,103338:0,103339:0,103340:0,103341:0,103342:0,103343:0,103344:0,103345:0,103346:0,103347:0,103348:0,103349:0,103350:0,103351:0,103352:0,103353:0,103354:0,103355:0,103356:0,103357:0,103358:0,103359:0,103360:0,103361:0,103362:0,103363:0,103364:0,103365:0,103366:0,103367:0,103368:0,103369:0,103370:0,103371:0,103372:0,103373:0,103374:0,103375:0,103376:2,103377:0,103378:0,103379:2,103380:2,103381:0,103382:0,103383:0,103384:1,103385:1,103386:1,103387:0,103388:0,103389:0,103390:2,103391:2,103392:2,103393:0,103394:0,103395:2,103396:2,103397:0,103398:0,103399:0,103400:2,103401:2,103402:2,103403:2,103404:2,103405:2,103406:2,103407:2,103408:2,103409:2,103410:2,103411:2,103412:2,103413:2,103414:2,103415:2,103416:2,103417:2,103418:2,103419:2,103420:2,103421:2,103422:2,103423:2,103424:2,103425:2,103426:2,103427:2,103428:2,103429:2,103430:2,103431:2,103432:2,103433:2,103434:2,103435:2,103436:2,103437:2,103438:2,103439:2,103440:2,103441:2,103442:2,103443:2,103444:2,103445:2,103446:2,103447:2,103448:2,103449:2,103450:2,103451:2,103452:2,103453:2,103454:2,103455:2,103456:2,103457:2,103458:2,103459:2,103460:2,103461:2,103462:2,103463:2,103464:2,103465:2,103466:2,103467:2,103468:2,103469:2,103470:2,103471:2,103472:0,103473:1,103474:0,103475:2,103476:0,103477:0,103478:0,103479:2,103480:2,103481:2,103482:0,103483:2,103484:0,103485:2,103486:0,103487:0,103488:0,103489:2,103490:2,103491:2,103492:0,103493:0,103494:0,103495:0,103496:2,103497:2,103498:2,103499:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103528:0,103529:0,103530:0,103531:0,103532:0,103533:0,103534:0,103535:0,103536:0,103537:0,103538:0,103539:0,103540:0,103541:0,103542:0,103543:0,103544:2,103545:2,103546:2,103547:2,103548:2,103549:0,103550:0,103551:0,103552:1,103553:1,103554:1,103555:2,103556:2,103557:2,103558:0,103559:0,103560:0,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103571:0,103572:0,103573:0,103574:2,103575:2,103576:2,103577:0,103578:0,103579:0,103580:0,103581:2,103582:2,103583:2,103584:0,103585:2,103600:0,103601:0,103602:0,103603:0,103604:0,103605:0,103606:0,103607:0,103608:0,103609:0,103610:0,103611:0,103612:0,103613:0,103614:0,103615:0,103616:0,103617:0,103618:0,103619:0,103620:0,103621:0,103622:0,103623:0,103624:0,103625:0,103626:0,103627:0,103628:0,103629:0,103630:0,103631:0,103632:0,103633:0,103634:0,103635:0,103636:0,103637:0,103638:0,103639:0,103640:0,103641:0,103642:0,103643:0,103644:0,103645:0,103646:0,103647:0,103648:0,103649:0,103650:0,103651:0,103652:0,103653:0,103654:0,103655:0,103656:0,103657:0,103658:0,103659:0,103660:0,103661:0,103662:0,103663:0,103664:0,103665:0,103666:0,103667:0,103668:0,103669:0,103670:0,103671:0,103672:0,103673:0,103674:0,103675:0,103676:0,103677:0,103678:0,103679:0,103680:0,103681:0,103682:0,103683:0,103684:0,103685:0,103686:0,103687:0,103688:0,103689:0,103690:0,103691:0,103692:0,103693:0,103694:0,103695:2,103700:2,103701:2,103702:2,103703:2,103704:2,103705:2,103706:2,103707:2,103708:2,103709:2,103710:2,103711:2,103712:2,103713:2,103714:2,103715:2,103716:2,103717:2,103718:2,103719:2,103720:2,103721:2,103722:2,103723:2,103724:2,103725:2,103726:2,103727:2,103728:2,103729:2,103730:2,103731:2,103732:2,103733:2,103734:2,103735:2,103736:2,103737:2,103738:2,103739:2,103740:2,103741:2,103742:2,103743:2,103744:2,103745:2,103746:2,103747:2,103748:2,103749:2,103750:2,103751:2,103752:2,103753:2,103754:2,103755:2,103756:2,103757:2,103758:2,103759:2,103760:2,103761:2,103762:2,103763:2,103764:2,103765:2,103766:2,103767:2,103768:2,103769:2,103770:2,103771:2,103772:2,103773:2,103774:2,103775:2,103776:2,103777:2,103778:2,103779:2,103780:2,103781:2,103782:2,103783:2,103784:2,103785:2,103786:2,103787:2,103788:2,103789:2,103790:2,103791:2,103792:2,103793:2,103794:0,103795:0,103796:0,103797:0,103798:0,103799:0,103800:0,103801:0,103802:0,103803:0,103804:0,103805:0,103806:0,103807:0,103808:0,103809:0,103810:0,103811:0,103812:0,103813:0,103814:0,103815:0,103816:0,103817:0,103818:0,103819:0,103820:0,103821:0,103822:0,103823:0,103824:0,103825:0,103826:0,103827:0,103828:0,103829:0,103830:0,103831:0,103832:0,103833:0,103834:0,103835:0,103836:0,103837:0,103838:0,103839:0,103840:0,103841:0,103842:0,103843:0,103844:0,103845:0,103846:0,103847:0,103848:0,103849:0,103850:0,103851:0,103852:0,103853:0,103854:0,103855:0,103856:0,103857:0,103858:0,103859:0,103860:0,103861:0,103862:0,103863:0,103864:0,103865:0,103866:0,103867:0,103868:0,103869:0,103870:0,103871:0,103900:2,103901:2,103902:2,103903:2,103904:2,103905:2,103906:2,103907:2,103908:2,103909:2,103910:2,103911:2,103912:2,103913:2,103914:2,103915:2,103916:2,103917:2,103918:2,103919:2,103920:2,103921:2,103922:2,103923:2,103924:2,103925:2,103926:2,103927:2,103928:2,103929:2,103930:2,103931:2,103932:2,103933:2,103934:2,103935:2,103936:2,103937:2,103938:2,103939:2,103940:2,103941:2,103942:2,103943:2,103944:2,103945:2,103946:2,103947:2,103948:2,103949:2,103950:2,103951:2,103952:2,103953:2,103954:2,103955:2,103956:2,103957:2,103958:2,103959:2,103960:2,103961:2,103962:2,103963:2,103964:2,103965:2,103966:2,103967:2,103968:2,103969:2,103970:2,103971:2,900913:0,20010201:0,20010202:0,20020901:0,20020902:0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(13)),i=g(r(10)),o=g(r(3)),a=g(r(0)),s=g(r(2)),u=g(r(4)),l=g(r(7)),c=g(r(5)),f=g(r(40)),h=r(1),d=r(6),p=g(r(50)),y=r(49);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,h.defaultValue)(e,{}),r.type=d.GeometryType.lineString,r.coordinates=(0,h.defaultValue)(e.coordinates,[]),!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");if(r.coordinates.length<2)throw new Error("坐标必须是两个或多个位置的数组");return 3===r.coordinates[0].length&&(r.hasZ=!0),r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"getPoint",value:function(e){return e=Number(e),this._isValidate(e)?new p.default({coordinates:this._cloneCoordinates()[e]}):null}},{key:"insertPoint",value:function(e,t){return this._isValidate(e)?(Array.isArray(this.coordinates)&&this.coordinates.splice(e,0,p.default.toCoordinates(t)),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this):null}},{key:"removePoint",value:function(e){if(e=Number(e),!this._isValidate(e))return this;var t=this._cloneCoordinates()[e];return this.coordinates.splice(e,1),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),new p.default({coordinates:t})}},{key:"setPoint",value:function(e,t){return this._isValidate(e)?(Array.isArray(this.coordinates)&&this.coordinates.splice(e,1,p.default.toCoordinates(t)),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this):this}},{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=this.extent.toJSON(),e}},{key:"toString",value:function(){for(var e="",t=0;t<this.coordinates.length;t++)for(var r=this.coordinates[t],n=0;n<r.length;n++)e+=r[n]+",";return e.substring(0,e.length-1)}},{key:"toXMl",value:function(){}},{key:"toOldIGSGeometry",value:function(){for(var e=[],t=0;t<this.coordinates.length;t++)e.push({x:this.coordinates[t][0],y:this.coordinates[t][1]});return{LinGeom:[{Line:{Arcs:[{Dots:e,ArcID:0}]},GID:0}],GID:parseInt(String(1e7*Math.random()))}}},{key:"getIGSType",value:function(){return d.IGSGeometryType.lineString}},{key:"toDots",value:function(){for(var e=[],t=this.coordinates,r=0;r<t.length;r++)e.push({x:t[r][0],y:t[r][1]});return e}},{key:"_isValidate",value:function(e){var t=this.coordinates.length;return!(!(0,h.isNumber)(e)||e<0||e>=t)}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return(0,y.calcExtent)(e,t,d.GeometryType.lineString,this.spatialReference)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,h.defaultValue)(e,{}))}}]),t}(f.default);(0,n.default)(m.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=b(r(13)),i=b(r(10)),o=b(r(48)),a=b(r(3)),s=b(r(0)),u=b(r(2)),l=b(r(4)),c=b(r(7)),f=b(r(5)),h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(39)),d=b(r(40)),p=r(1),y=r(6),g=b(r(97)),m=b(r(50)),v=b(r(70)),_=b(r(80)),S=r(49);function b(e){return e&&e.__esModule?e:{default:e}}var x=function(e){function t(e){(0,s.default)(this,t);var r=(0,l.default)(this,(t.__proto__||(0,a.default)(t)).call(this,e));if(e=(0,p.defaultValue)(e,{}),r.coordinates=(0,p.defaultValue)(e.coordinates,[]),r.isSelfIntersecting=(0,p.defaultValue)(e.isSelfIntersecting,!1),r.type=y.GeometryType.multiPolygon,!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");for(var n=0;n<r.coordinates.length;n++){var i=r.coordinates[n],u=!0,c=!1,f=void 0;try{for(var h,d=(0,o.default)(i);!(u=(h=d.next()).done);u=!0){var g=h.value;if(g.length<4)throw new Error("每个环至少有四个点");if(g[g.length-1].length!==g[0].length)throw new Error("首尾点维度不相等");for(var m=0;m<g[g.length-1].length;m++)if(g[g.length-1][m]!==g[0][m])throw new Error("第一个位置和最后一个位置不相等")}}catch(e){c=!0,f=e}finally{try{!u&&d.return&&d.return()}finally{if(c)throw f}}}return 3===r.coordinates[0][0][0].length&&(r.hasZ=!0),r}return(0,f.default)(t,e),(0,u.default)(t,[{key:"addPolygon",value:function(e,t){if(t=(0,p.defaultValue)(t,"add"),e instanceof g.default||_.default.error("polygon类型不是Polygon对象类型!"),"add"===t)this.coordinates.push(e._cloneCoordinates());else{for(var r=[],n=0;n<this.coordinates.length;n++){var o=h.polygon(this.coordinates[n]),a=h.polygon(e.coordinates);h.booleanDisjoint(o,a)||(r.push(o),this.coordinates[n]=void 0)}for(var s=0;s<this.coordinates.length;s++)this.coordinates[s]||this.coordinates.splice(s,1);for(var u=h.polygon(e.coordinates),l=0;l<r.length;l++)u=h.union(u,r[l]).geometry;this.coordinates.push(u.coordinates)}return this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"removePolygon",value:function(e){if(!this._isValidate(e))return null;var t=JSON.parse((0,i.default)(this._cloneCoordinates()[e]));return this.coordinates.splice(e,1),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),new g.default({coordinates:t})}},{key:"toXMl",value:function(){return""}},{key:"contains",value:function(e){if(!e)throw new Error("传入参数错误");var t=h.multiPolygon(this._cloneCoordinates()),r=h.point(m.default.toCoordinates(e));return h.booleanPointInPolygon(r,t)}},{key:"toJSON",value:function(){var e=(0,c.default)(t.prototype.__proto__||(0,a.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=this.extent.toJSON(),e}},{key:"toString",value:function(){for(var e="",t=0;t<this.coordinates.length;t++){for(var r=this.coordinates[t],n=0;n<r.length;n++){for(var i=r[n],o=0;o<i.length;o++)for(var a=i[o],s=0;s<a.length;s++)e+=a[s]+",";e=e.substring(0,e.length-1),e+="|"}e=e.substring(0,e.length-1),e+=";"}return e.substring(0,e.length-1)}},{key:"toOldIGSGeometry",value:function(){for(var e=[],t={},r={},n=0;n<this.coordinates.length;n++){var i=this.coordinates[n];t={Rings:[],GID:n};for(var o=0;o<i.length;o++){r={Arcs:[]};for(var a=[],s=0;s<i[o].length;s++){var u=i[o][s];a.push({x:u[0],y:u[1]})}r.Arcs.push({Dots:a,ArcID:o}),t.Rings.push(r)}e.push(t)}return{RegGeom:e}}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_isValidate",value:function(e){var t=this.coordinates.length;return!(!(0,p.isNumber)(e)||e<0||e>=t)}},{key:"_calcExtent",value:function(e,t){return(0,S.calcExtent)(e,t,y.GeometryType.multiPolygon,this.spatialReference)}},{key:"getIGSType",value:function(){return y.IGSGeometryType.multiPolygon}},{key:"toPolygonArray",value:function(){for(var e=[],t=0;t<this.coordinates.length;t++)e.push(new g.default({coordinates:this.coordinates[t],spatialReference:v.default.fromJSON(this.spatialReference)}));return e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,p.defaultValue)(e,{}))}}]),t}(d.default);(0,n.default)(x.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=x},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=m(r(13)),i=m(r(10)),o=m(r(3)),a=m(r(0)),s=m(r(2)),u=m(r(4)),l=m(r(7)),c=m(r(5)),f=r(1),h=m(r(40)),d=r(6),p=m(r(50)),y=m(r(80)),g=r(49);function m(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,f.defaultValue)(e,{}),r.coordinates=(0,f.defaultValue)(e.coordinates,[]),!Array.isArray(r.coordinates))throw new Error("坐标必须是数组");for(var n=0;n<r.coordinates.length;n++){if(r.coordinates[n].length<2||r.coordinates[n].length>3)throw new Error("多点的数组长度必须在合理范围内(2或者3)");3===r.coordinates[n].length?r.hasZ=!0:r.hasZ=!1}return r.type=d.GeometryType.multiPoint,r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"addPoint",value:function(e,t){if(t=(0,f.defaultValue)(t,"add"),e instanceof p.default)this._addPoint(e,t);else if(e instanceof Array)if(this._isNumberArray(e))this._addPoint(new p.default({coordinates:e}),t);else for(var r=0;r<e.length;r++)e[r]instanceof p.default?this._addPoint(e[r],t):e[r]instanceof Array?this._isNumberArray(e[r])?this._addPoint(new p.default({coordinates:e[r]}),t):e instanceof p.default?this._addPoint(e[r],t):y.default.error("point的子元素类型不是点几何对象或者点坐标数组!"):y.default.error("point的类型不是点几何对象或者点坐标数组!");else y.default.error("point的类型不是点几何对象或者点坐标数组!");return this.coordinates.length>=2&&(this.extent=this._calcExtent(this.coordinates,this.hasZ)),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"_addPoint",value:function(e,t){"add"===t?this.coordinates.push(e.coordinates):this.contains(e)||this.coordinates.push(e.coordinates)}},{key:"_isNumberArray",value:function(e){if(!(e instanceof Array))return!1;var t=!0;if(2===e.length||3===e.length){for(var r=0;r<e.length;r++)if("number"!=typeof e[r]){t=!1;break}}else t=!1;return t}},{key:"contains",value:function(e){if(e instanceof p.default){for(var t=0;t<this.coordinates.length;t++)if(e.equals(this.coordinates[t]))return!0}else if(e instanceof Array&&(2===e.length||3===e.length)){for(var r=0;r<this.coordinates.length;r++)if(new p.default({coordinates:e}).equals(this.coordinates[r]))return!0}else y.default.error("必须为点对象或坐标数组才能比较是否相等!");return!1}},{key:"getPoint",value:function(e){if(e=Number(e),!this._isValidate(e))throw new Error("未找到指定索引,请输入正确的索引");var t=this._cloneCoordinates();return new p.default({coordinates:t[e]})}},{key:"removePoint",value:function(e){if(e=Number(e),!this._isValidate(e))return null;var t=this._cloneCoordinates();return this.coordinates.splice(e,1),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),new p.default({coordinates:t[e]})}},{key:"setPoint",value:function(e,t){if(!this._isValidate(e))throw new Error("未找到指定索引,请输入正确的索引");var r=this._cloneCoordinates();return Array.isArray(r)&&(r.splice(e,1,p.default.toCoordinates(t)),this.coordinates=r),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"getIGSType",value:function(){return d.IGSGeometryType.multiPoint}},{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=this.extent?this.extent.toJSON():void 0,e}},{key:"toOldIGSGeometry",value:function(){for(var e=[],t=0;t<this.coordinates.length;t++){var r;r={x:this.coordinates[t][0],y:this.coordinates[t][1]},e.push({Dot:r,GID:t})}return{PntGeom:e}}},{key:"toString",value:function(){for(var e="",t=0;t<this.coordinates.length;t++)for(var r=this.coordinates[t],n=0;n<r.length;n++)e+=r[n]+",";return e.substring(0,e.length-1)}},{key:"toDots",value:function(){for(var e=[],t=this.coordinates,r=0;r<t.length;r++)e.push({x:t[r][0],y:t[r][1]});return e}},{key:"_isValidate",value:function(e){var t=this.coordinates.length;return!(!(0,f.isNumber)(e)||e<0||e>=t)}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_calcExtent",value:function(e,t){if(e.length>1)return(0,g.calcExtent)(e,t,d.GeometryType.lineString,this.spatialReference)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,f.defaultValue)(e,{}))}}]),t}(h.default);(0,n.default)(v.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=_(r(13)),i=_(r(10)),o=_(r(3)),a=_(r(0)),s=_(r(2)),u=_(r(4)),l=_(r(7)),c=_(r(5)),f=_(r(40)),h=r(1),d=r(6),p=_(r(97)),y=_(r(50)),g=_(r(70)),m=r(49),v=r(211);function _(e){return e&&e.__esModule?e:{default:e}}var S=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,h.defaultValue)(e,{}),r.center=(0,h.defaultValue)(e.center,void 0),!r.center)throw new Error("缺少圆心坐标");if(r.center=y.default.toCoordinates(r.center),r.radius=(0,h.defaultValue)(e.radius,1e3),!(0,h.isNumber)(r.radius))throw new Error("半径必须为数字");if(r.geodesic=(0,h.defaultValue)(e.geodesic,!1),r.radiusUnit=(0,h.defaultValue)(e.radiusUnit,d.RadiusUnit.meters),r.numberOfPoints=(0,h.defaultValue)(e.numberOfPoints,40),!(0,h.isNumber)(r.numberOfPoints))throw new Error("圆曲线上点的数量必须为数字");return r.type=d.GeometryType.circle,3===r.center.length&&(r.hasZ=!0),r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.center=JSON.parse((0,i.default)(this.center)),e.radius=this.radius,e.radiusUnit=this.radiusUnit,e.numberOfPoints=this.numberOfPoints,e.extent=this.extent.toJSON(),e}},{key:"toPolygon",value:function(){var e=this.spatialReference,t=this.geodesic,r=v.RadiusUnitToMeter[this.radiusUnit]||1,n=this.radius*r,i="geographic";if(e.isWebMercator)i="webMercator";else if(e.wkid&&(0,h.defined)(v.ProjUnitWkidMap[e.wkid]))i="proj";else if(e.wkt){var o=e.wkt;["PROJS","proj4","PROJCRS","+proj"].some(function(e){return 0===o.indexOf(e)})&&(i="proj")}if(!t){"geographic"===i&&(n/=v.RadiusUnitToMeter.degrees);var a=this._tranCircleToPath(this.center,n,this.numberOfPoints);return new p.default({coordinates:a,spatialReference:g.default.fromJSON(this.spatialReference)})}switch(i){case"proj":h.Log.error("暂时仅支持墨卡托投影坐标系和地理坐标系使用geodesic属性");break;case"webMercator":case"geographic":var s=6378137,u=Math.PI/180,l={latitude:this.center[1],longitude:this.center[0]};"webMercator"===i&&(l={longitude:180*l.longitude/Math.PI/s,latitude:180*(2*Math.atan(Math.exp(l.latitude/s))-Math.PI/2)/Math.PI});for(var c=n/1e3,f=c/(111.32*Math.cos(l.latitude*Math.PI/180)),d=c/110.574,y=[],m=0;m<this.numberOfPoints;m+=1){var _=m/this.numberOfPoints*(2*Math.PI),S=f*Math.cos(_),b=d*Math.sin(_),x=l.longitude+S,w=l.latitude+b;if("webMercator"===i){var E=Math.max(Math.min(85.0511287798,w),-85.0511287798),T=Math.sin(E*u);y.push([s*x*u,s*Math.log((1+T)/(1-T))/2])}else y.push([x,w])}return y.length<=3&&h.Log.error("生成圆几何点个数不能小于3"),y.push(y[0]),new p.default({coordinates:[y],spatialReference:g.default.fromJSON(this.spatialReference)})}}},{key:"toString",value:function(){return this.hasZ?this.center[0]+","+this.center[1]+","+this.center[2]+","+this.radius:this.center[0]+","+this.center[1]+","+this.radius}},{key:"toXMl",value:function(){return""}},{key:"getIGSType",value:function(){return d.IGSGeometryType.circle}},{key:"_tranCircleToPath",value:function(e,t,r){for(var n=2*Math.PI/r,i=0,o=[],a=[],s=0;s<r;s++){i-=n;var u=[e[0]+t*Math.cos(i),e[1]+t*Math.sin(i)];a.push(u)}var l=a[a.length-1],c=a[0];return Math.abs(l[0]-c[0])>1e-15&&Math.abs(l[1]-c[1])>1e-15&&a.push([c[0],c[1]]),o.push(a),this.hasZ&&(o=o.map(function(t){return t.map(function(t){return[t[0],t[1],e[2]]})})),o}},{key:"_calcExtent",value:function(e){var t=this.toPolygon();return(0,m.calcExtent)(t._cloneCoordinates(),e,d.GeometryType.polygon,this.spatialReference)}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toGeoJSON",value:function(){return this.toPolygon().toGeoJSON()}}],[{key:"fromJSON",value:function(e){return new t(e=(0,h.defaultValue)(e,{}))}}]),t}(f.default);(0,n.default)(S.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.hasZ)}}}),t.default=S},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProjUnitWkidMap=t.getMetersPerSpatialReference=t.LengthUnitToMeter=t.RadiusUnitToMeter=t.DegreesUnitToMeter=void 0;var n=r(206),i={degrees:111320},o={degrees:i.degrees,miles:1609.34,"nautical-miles":1852,yard:.9144,meters:1,kilometers:1e3};t.DegreesUnitToMeter=i,t.RadiusUnitToMeter=o,t.LengthUnitToMeter={kilometers:1e3,meters:1,miles:1609.34},t.getMetersPerSpatialReference=function(e){if(e.isGeographic)return i.degrees;var t=e.wkid;return n.ProjUnitWkidMap[t]?n.ProjUnitWkidMap.values[n.ProjUnitWkidMap[t]]:1},t.ProjUnitWkidMap=n.ProjUnitWkidMap},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(13)),i=g(r(10)),o=g(r(3)),a=g(r(0)),s=g(r(2)),u=g(r(4)),l=g(r(7)),c=g(r(5)),f=g(r(40)),h=r(1),d=r(6),p=g(r(50)),y=r(49);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,h.defaultValue)(e,{}),r.coordinates=(0,h.defaultValue)(e.coordinates,[]),r.type=d.GeometryType.multiLineString,!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");for(var n=0;n<r.coordinates.length;n++)if(r.coordinates[n].length<2)throw new Error("坐标必须是两个或多个位置的数组");return 3===r.coordinates[0][0].length&&(r.hasZ=!0),r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"addPath",value:function(e){if(!Array.isArray(e))throw new Error("传入参数错误");var t=[];return e.forEach(function(e){t.push(p.default.toCoordinates(e))}),this.coordinates.push(t),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"removePath",value:function(e){if(!this._isValidate(e,0))return null;var t=JSON.parse((0,i.default)(this._cloneCoordinates()[e]));return this.coordinates.splice(e,1),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),t.map(function(e){return new p.default({coordinates:e})})}},{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=this.extent.toJSON(),e}},{key:"getPoint",value:function(e,t){if(!this._isValidate(e,t))return null;var r=this._cloneCoordinates()[e];return new p.default({coordinates:r[t]})}},{key:"insertPoint",value:function(e,t,r){if(!this._isValidate(e,t))return null;var n=this.coordinates[e];return Array.isArray(n)&&n.splice(t,0,p.default.toCoordinates(r)),this.coordinates[e]=n,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"removePoint",value:function(e,t){if(!this._isValidate(e,t))return null;var r=this.coordinates[e];return Array.isArray(r)&&r.splice(t,1),this.coordinates=r,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"setPoint",value:function(e,t,r){if(!this._isValidate(e,t))return this;var n=this.coordinates[e];return Array.isArray(n)&&n.splice(t,1,p.default.toCoordinates(r)),this.coordinates[e]=n,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"toString",value:function(){return""}},{key:"toXMl",value:function(){return""}},{key:"getIGSType",value:function(){return d.IGSGeometryType.multiLineString}},{key:"toOldIGSGeometry",value:function(){for(var e=[],t=0;t<this.coordinates.length;t++){for(var r=[],n=0;n<this.coordinates[t].length;n++)r.push({x:this.coordinates[t][n][0],y:this.coordinates[t][n][1]});e.push({Line:{Arcs:[{Dots:r,ArcID:0}]},GID:t})}return{LinGeom:e}}},{key:"_isValidate",value:function(e,t){var r=this.coordinates.length;if(!(0,h.isNumber)(e)||e<0||e>=r)return!1;var n=this.coordinates[e].length;return!(!(0,h.isNumber)(t)||t<0||t>=n)}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return(0,y.calcExtent)(e,t,d.GeometryType.multiLineString,this.spatialReference)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"clone",value:function(e){return new t(e.toJSON())}},{key:"fromJSON",value:function(e){return new t(e=(0,h.defaultValue)(e,{}))}}]),t}(f.default);(0,n.default)(m.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={},i=52.35987755982988,o=3.141592653589793,a=6378245,s=.006693421622965943;n.transformlat=function(e,t){var r=2*(e=+e)-100+3*(t=+t)+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return r+=2*(20*Math.sin(6*e*o)+20*Math.sin(2*e*o))/3,(r+=2*(20*Math.sin(t*o)+40*Math.sin(t/3*o))/3)+2*(160*Math.sin(t/12*o)+320*Math.sin(t*o/30))/3},n.transformlng=function(e,t){var r=300+(e=+e)+2*(t=+t)+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return r+=2*(20*Math.sin(6*e*o)+20*Math.sin(2*e*o))/3,(r+=2*(20*Math.sin(e*o)+40*Math.sin(e/3*o))/3)+2*(150*Math.sin(e/12*o)+300*Math.sin(e/30*o))/3},n.out_of_china=function(e,t){return t=+t,!((e=+e)>73.66&&e<135.05&&t>3.86&&t<53.55)},n.bd09togcj02=function(e,t){var r=(e=+e)-.0065,n=(t=+t)-.006,o=Math.sqrt(r*r+n*n)-2e-5*Math.sin(n*i),a=Math.atan2(n,r)-3e-6*Math.cos(r*i);return[o*Math.cos(a),o*Math.sin(a)]},n.bd09towgs84=function(e,t){var r=n.bd09togcj02(e,t);return n.gcj02towgs84(r[0],r[1])},n.wgs84tobd09=function(e,t){var r=n.wgs84togcj02(e,t);return n.gcj02tobd09(r[0],r[1])},n.gcj02tobd09=function(e,t){t=+t,e=+e;var r=Math.sqrt(e*e+t*t)+2e-5*Math.sin(t*i),n=Math.atan2(t,e)+3e-6*Math.cos(e*i);return[r*Math.cos(n)+.0065,r*Math.sin(n)+.006]},n.wgs84togcj02=function(e,t){var r=[e=+e,t=+t];if(!this.out_of_china(e,t)){var n=this.transformlat(e-105,t-35),i=this.transformlng(e-105,t-35),u=t/180*o,l=Math.sin(u);l=1-s*l*l;var c=Math.sqrt(l);n=180*n/(a*(1-s)/(l*c)*o),r=[e+(i=180*i/(a/c*Math.cos(u)*o)),t+n]}return r},n.gcj02towgs84=function(e,t){var r=[e=+e,t=+t];if(!this.out_of_china(e,t)){var n=this.transformlat(e-105,t-35),i=this.transformlng(e-105,t-35),u=t/180*o,l=Math.sin(u);l=1-s*l*l;var c=Math.sqrt(l);n=180*n/(a*(1-s)/(l*c)*o),r=[2*e-(e+(i=180*i/(a/c*Math.cos(u)*o))),2*t-(t+n)]}return r},t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=[12890594.86,8362377.87,5591021,3481989.83,1678043.12,0],i=[75,60,45,30,15,0],o=[[1.410526172116255e-8,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,17337981.2],[-7.435856389565537e-9,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,10260144.86],[-3.030883460898826e-8,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,6856817.37],[-1.981981304930552e-8,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,4482777.06],[3.09191371068437e-9,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,2555164.4],[2.890871144776878e-9,8983055095805407e-21,-3.068298e-8,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],a=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,647795574.6671607,-4082003173.641316,10774905663.51142,-15171875531.51559,12053065338.62167,-5124939663.577472,913311935.9512032,67.5],[.00337398766765,111320.7020202162,4481351.045890365,-23393751.19931662,79682215.47186455,-115964993.2797253,97236711.15602145,-43661946.33752821,8477230.501135234,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837.749470245,992013.7397791013,-1221952.21711287,1340652.697009075,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758.690035394,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]];function s(e){e=e||{},this._isWgs84=e.isWgs84}(0,function(e){return e&&e.__esModule?e:{default:e}}(r(13)).default)(s.prototype,{isWgs84:{get:function(){return this._isWgs84},set:function(e){this._isWgs84=e}}}),s.prototype.getDistanceByMC=function(e,t){if(!e||!t)return 0;if(!(e=this.convertMC2LL(e)))return 0;var r=this.toRadians(e.lng),n=this.toRadians(e.lat);if(!(t=this.convertMC2LL(t)))return 0;var i=this.toRadians(t.lng),o=this.toRadians(t.lat);return this.getDistance(r,i,n,o)},s.prototype.getDistanceByLL=function(e,t){if(!e||!t)return 0;e.lng=this.getLoop(e.lng,-180,180),e.lat=this.getRange(e.lat,-74,74),t.lng=this.getLoop(t.lng,-180,180),t.lat=this.getRange(t.lat,-74,74);var r=this.toRadians(e.lng),n=this.toRadians(e.lat),i=this.toRadians(t.lng),o=this.toRadians(t.lat);return this.getDistance(r,i,n,o)},s.prototype.convertMC2LL=function(e){if(!e)return{lng:0,lat:0};var t={};if(this.isWgs84){t.lng=e.lng/20037508.342789244*180;var r=e.lat/20037508.342789244*180;return t.lat=180/Math.PI*(2*Math.atan(Math.exp(r*Math.PI/180))-Math.PI/2),{lng:t.lng.toFixed(6),lat:t.lat.toFixed(6)}}Math.abs(e.lng);for(var i=Math.abs(e.lat),a=void 0,s=0;s<n.length;s++)if(i>=n[s]){a=o[s];break}return{lng:(t=this.convertor(e,a)).lng.toFixed(6),lat:t.lat.toFixed(6)}},s.prototype.convertLL2MC=function(e){if(!e)return{lng:0,lat:0};if(e.lng>180||e.lng<-180||e.lat>90||e.lat<-90)return e;if(this.isWgs84){var t={};t.lng=e.lng*Math.PI/180*6378137;var r=e.lat*Math.PI/180;return t.lat=3189068.5*Math.log((1+Math.sin(r))/(1-Math.sin(r))),{lng:parseFloat(t.lng.toFixed(2)),lat:parseFloat(t.lat.toFixed(2))}}e.lng=this.getLoop(e.lng,-180,180),e.lat=this.getRange(e.lat,-74,74),e.lng;for(var n=e.lat,o=void 0,s=0;s<i.length;s++)if(n>=i[s]){o=a[s];break}if(!o)for(var u=0;u<i.length;u++)if(n<=-i[u]){o=a[u];break}var l=this.convertor(e,o);return{lng:parseFloat(l.lng.toFixed(2)),lat:parseFloat(l.lat.toFixed(2))}},s.prototype.convertor=function(e,t){if(!e||!t)return{lng:0,lat:0};var r=t[0]+t[1]*Math.abs(e.lng),n=Math.abs(e.lat)/t[9],i=t[2]+t[3]*n+t[4]*n*n+t[5]*n*n*n+t[6]*n*n*n*n+t[7]*n*n*n*n*n+t[8]*n*n*n*n*n*n;return{lng:r*=e.lng<0?-1:1,lat:i*=e.lat<0?-1:1}},s.prototype.getDistance=function(e,t,r,n){return 6370996.81*Math.acos(Math.sin(r)*Math.sin(n)+Math.cos(r)*Math.cos(n)*Math.cos(t-e))},s.prototype.toRadians=function(e){return Math.PI*e/180},s.prototype.toDegrees=function(e){return 180*e/Math.PI},s.prototype.getRange=function(e,t,r){return null!==t&&(e=Math.max(e,t)),null!==r&&(e=Math.min(e,r)),e},s.prototype.getLoop=function(e,t,r){for(;e>r;)e-=r-t;for(;e<t;)e+=r-t;return e},s.prototype.lngLatToMercator=function(e){return this.convertLL2MC(e)},s.prototype.lngLatToPoint=function(e){var t=this.convertLL2MC(e);return{x:t.lng,y:t.lat}},s.prototype.mercatorToLngLat=function(e){return this.convertMC2LL(e)},s.prototype.pointToLngLat=function(e){var t={lng:e.x,lat:e.y};return this.convertMC2LL(t)},s.prototype.pointToPixel=function(e,t,r,n){if(!e)return{x:0,y:0};e=this.lngLatToMercator(e);var i=this.getZoomUnits(t);return{x:Math.round((e.lng-r.lng)/i+n.width/2),y:Math.round((r.lat-e.lat)/i+n.height/2)}},s.prototype.pixelToPoint=function(e,t,r,n){if(!e)return{lng:0,lat:0};var i=this.getZoomUnits(t),o={lng:r.lng+i*(e.x-n.width/2),lat:r.lat-i*(e.y-n.height/2)};return this.mercatorToLngLat(o)},s.prototype.getZoomUnits=function(e){return Math.pow(2,18-e)},t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.start=(0,o.toDate)(t.start),this.end=(0,o.toDate)(t.end)}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.start=this.start?this.start.toString():null,e.end=this.end?this.end.toString():null,e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.unit=t.unit,this.value=t.value}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.unit=this.unit,e.value=this.value,e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/((?:.*\/)|^)webclient-.*?\.min\.js(?:\?|\#|$)/,i=void 0,o=function(e){return"undefined"==typeof document?e:(i||(i=document.createElement("a")),i.href=e,i.href=i.href,i.href)};function a(){var e;return(e="undefined"!=typeof MAPGIS_BASE_URL?MAPGIS_BASE_URL:function(){for(var e=document.getElementsByTagName("script"),t=0,r=e.length;t<r;++t){var i=e[t].getAttribute("src"),o=n.exec(i);if(null!==o)return o[1]}}())||console.error("Unable to determine MapGIS base URL automatically, try defining a global variable called MAPGIS_BASE_URL."),function(e){return 0!==e.length&&"/"===e[e.length-1]||(e+="/"),e}(o(e))}function s(e){return a()+e}t.buildModuleUrl=s,t.getMapGISBaseUrl=a,t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(15)),i=y(r(467)),o=y(r(20)),a=y(r(0)),s=y(r(2)),u=r(1),l=y(r(156)),c=y(r(154)),f=y(r(155)),h=r(6),d=r(34),p=(r(8),r(9),y(r(219)));function y(e){return e&&e.__esModule?e:{default:e}}y(r(35));var g=function(){function e(t,r){(0,a.default)(this,e),r=(0,u.defaultValue)(r,{}),this.url=t,this.requestInterceptor=(0,u.defaultValue)(r.requestInterceptor,new c.default),this.responseInterceptor=(0,u.defaultValue)(r.responseInterceptor,new f.default),this.requestTimeout=(0,u.defaultValue)(r.requestTimeout,45e3),this.headers=(0,u.defaultValue)(r.headers,{}),this.tokenKey=(0,u.defaultValue)(r.tokenKey,"token"),this.tokenValue=(0,u.defaultValue)(r.tokenValue,void 0),this.tokenAttachType=(0,u.defaultValue)(r.tokenAttachType,h.TokenAttachType.normal)}return(0,s.default)(e,[{key:"destroy",value:function(){this.url=null,this.options=null}},{key:"request",value:function(e){if((e=(0,u.defaultValue)(e,{})).withCredentials=(0,u.defaultValue)(e.withCredentials,!0),!(0,u.isNull)(e.url))return!(0,u.isNull)(this.requestInterceptor)&&this.requestInterceptor.before instanceof Function&&(e=this.requestInterceptor.before(e)),this._commit(e);u.Log.error("url不存在!")}},{key:"_commit",value:function(e){var t=this,r=(0,d.ServiceConfigRequestInterceptors)(p.default,e.url),a={headers:(0,o.default)((0,u.defaultValue)(p.default.headers,{}),(0,u.defaultValue)(this.headers,{}),(0,u.defaultValue)(e.headers,{})),withCredentials:e.withCredentials,requestTimeout:this.requestTimeout,proxy:e.proxy,tokenKey:this.tokenKey||p.default.tokenKey,tokenValue:this.tokenValue||p.default.tokenValue,tokenAttachType:e.tokenAttachType||this.tokenAttachType,responseType:e.responseType};return a=(0,o.default)(a,(0,u.defaultValue)(e.extensionOptions,{})),l.default.commit(e.method,r,e.data,a).then(function(o){if(o instanceof Error||i.default&&(0,i.default)(o))return n.default.reject(o);var s=function(){return n.default.resolve(o)};if(o.text){if("blob"===a.responseType)return o.blob();s=function(){return o.text()}}else o.json&&(s=function(){return o.json()});return 200===o.status?s().then(function(i){return new n.default(function(n){t._handlePromiseSuccess({url:r,data:i,responseInterceptor:t.responseInterceptor,Config:p.default,promiseSuccessCallBack:n,successCallBack:e.success,processData:e.processData})})}):(o.json?o.json():s()).then(function(e){return n.default.reject({data:e,msg:e?e.msg:"HTTP "+o.status+": 请求失败!",status:o.status})})}).catch(function(o){return o instanceof Error||i.default&&(0,i.default)(o)?n.default.reject(o):new n.default(function(n,i){t._handlePromiseFailure({url:r,msg:o.msg||o,status:o.status,data:o.data,responseInterceptor:t.responseInterceptor,Config:p.default,promiseFailureCallBack:i,failureCallBack:e.failure})})})}},{key:"_handlePromiseSuccess",value:function(e){var t=e=(0,u.defaultValue)(e,{}),r=t.url,n=t.data,i=t.responseInterceptor,o=t.Config,a=t.successCallBack,s=t.promiseSuccessCallBack,l=t.processData,c=void 0;c=(0,u.isNull)(n)?{succeed:!0,msg:"服务器没有返回信息",data:void 0}:{succeed:!0,msg:"请求成功",data:n},l instanceof Function?c.data=l(c.data):"string"==typeof c.data&&(c.data=JSON.parse(c.data)),(0,u.isNull)(o)||(0,u.isNull)(r)||(c=(0,d.ServiceConfigResponseInterceptors)(o,r,c)),!(0,u.isNull)(i)&&i.success instanceof Function&&(c=i.success(c)),a instanceof Function&&a(c),s instanceof Function&&s(c)}},{key:"_handlePromiseFailure",value:function(e){var t=e=(0,u.defaultValue)(e,{}),r=t.url,i=t.msg,o=t.status,a=t.data,s=t.responseInterceptor,l=t.Config,c=t.failureCallBack,f=t.promiseFailureCallBack,h={succeed:!1,msg:i,data:a,status:o};return(0,u.isNull)(l)||(0,u.isNull)(r)||(h=(0,d.ServiceConfigResponseInterceptors)(l,r,h)),!(0,u.isNull)(s)&&s.failure instanceof Function&&(h=s.failure(h)),c instanceof Function&&c(h),f instanceof Function?f(h):n.default.reject(h)}}]),e}();t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={tokenKey:"token",tokenValue:void 0,headers:{},request:{interceptors:[]}}},function(e,t,r){var n=r(32);e.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(20)),i=d(r(3)),o=d(r(0)),a=d(r(2)),s=d(r(4)),u=d(r(5)),l=r(1),c=d(r(19)),f=r(36),h=d(r(35));function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return h.default.testByRegExpNames(r.url,["TileServerV1"])?r.igsType="1.0":r.igsType="2.0",r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"queryServerInfo",value:function(e){var t=this;return this._querySimpleInfo(e,function(e){return"1.0"===t.igsType?e.replace("/mrms/tile/","/mrcs/tiles/")+"?f=json":e+"?f=json"})}},{key:"getTile",value:function(e){e=(0,l.defaultValue)(e,{});var t=(0,l.defaultValue)(e.lvl,"{z}"),r=(0,l.defaultValue)(e.row,"{x}"),i=(0,l.defaultValue)(e.col,"{y}"),o=(0,l.defaultValue)(e.f,"image"),a=(0,l.defaultValue)(e.blankTile,null),s={},u="";"1.0"===this.igsType?u=this._baseUrl+"/"+t+"/"+i+"/"+r:(s={f:o,blankTile:a},u=this._baseUrl+"/tileImage/{z}/{y}/{x}"),s=(0,n.default)(this._queryParameters,s);var c=f.UrlUtil.getStringFromObject(s);return c&&(u=f.UrlUtil.completeUrlEndMark(u),u+=c),u}}]),t}(c.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMapboxExpression=t.convertColorToRgb=t.convertLineStyle=void 0;var n=r(8);t.convertLineStyle=function(e,t){switch(e){case"dash":case"esriSLSDash":return t?[4,3]:[3,4];case"dash-dot":case"esriSLSDashDot":return t?[4,3,1,3]:[3,4,0,4];case"dot":case"esriSLSDot":return t?[1,3]:[0,4];case"long-dash":case"esriSLSLongDash":return t?[8,3]:[7,4];case"long-dash-dot":case"esriSLSLongDashDot":return t?[8,3,1,3]:[7,4,0,4];case"long-dash-dot-dot":case"esriSLSDashDotDot":return t?[8,3,1,3,1,3]:[7,4,0,4,0,4];case"short-dash":case"esriSLSShortDash":return t?[4,1]:[3,2];case"short-dash-dot":case"esriSLSShortDashDot":return t?[4,1,1,1]:[3,2,0,2];case"short-dash-dot-dot":case"esriSLSShortDashDotDot":return t?[4,1,1,1,1,1]:[3,2,0,2,0,2];case"short-dot":case"esriSLSShortDot":return t?[1,1]:[0,2];case"solid":case"esriSLSSolid":case"none":default:return}},t.convertColorToRgb=function(e){return e instanceof n.Color?e.toCssRGBAString():e},t.isMapboxExpression=function(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&"== != > < >= <= array at boolean case coalesce collator format image in interpolate interpolate-hcl interpolate-lab\nlength let literal match number number-format object step string to-boolean to-color to-number to-string var within".indexOf(e[0])>-1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(7)),u=f(r(5)),l=r(1),c=r(28);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.value=e.value,r.symbol=c.Symbol.fromJSON(e.symbol),r.visible=(0,l.defaultValue)(e.visible,!0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.value=this.value,e.symbol=this.symbol.toJSON(),e.visible=this.visible,e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(f(r(224)).default);t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.id=(0,o.defaultValue)(t.id,(0,o.getGUID)()),this.label=(0,o.defaultValue)(t.label,""),this.description=(0,o.defaultValue)(t.description,"")}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.id=this.id,e.label=this.label,e.description=this.description,e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(7)),u=f(r(5)),l=r(1),c=r(28);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.minValue=e.minValue,r.maxValue=e.maxValue,r.symbol=c.Symbol.fromJSON(e.symbol),r.visible=(0,l.defaultValue)(e.visible,!0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.minValue=this.minValue,e.maxValue=this.maxValue,e.symbol=this.symbol.toJSON(),e.visible=this.visible,e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(f(r(224)).default);t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=r(8);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.ratio=t.ratio,this.color=a.Color.fromColor((0,o.defaultValue)(t.color,{}))}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.ratio=this.ratio,e.color=this.color.toJSON(),e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(r(13)),i=v(r(15)),o=v(r(3)),a=v(r(0)),s=v(r(2)),u=v(r(4)),l=v(r(7)),c=v(r(5)),f=r(1),h=r(9),d=r(16),p=r(29),y=r(43),g=r(6),m=r(12);function v(e){return e&&e.__esModule?e:{default:e}}var _=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return r.type=g.SubLayerType.IGSMapImageSub,r.originLayerType=(0,f.defaultValue)(e.originLayerType,""),r.geomType=(0,f.defaultValue)(e.geomType,""),r.url=(0,f.defaultValue)(e.url,""),r.name=(0,f.defaultValue)(e.name,""),r.fields=(0,f.defaultValue)(e.fields,[]),r.supportedMethods=(0,f.defaultValue)(e.supportedMethods,[]),r.systemLibGuid=(0,f.defaultValue)(e.systemLibGuid,""),r.index=(0,f.defaultValue)(e.index,""),"Group"===r.originLayerType&&(r.extent=(0,p.getExtentBySubLayers)(r.sublayers.items)),r._geometryFilter=e.geometryFilter?h.Geometry.fromJSON(e.geometryFilter):null,r._renderer=e.renderer?y.BaseRenderer.fromJSON(e.renderer):null,r._definitionExpression=(0,f.defaultValue)(e.definitionExpression,null),r.capabilities=(0,m.mergeCommonClientCapbilities)(r.capabilities,{geometryFilter:!0,renderer:!0,definitionExpression:!0}),r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.url=this.url,e.name=this.name,e.fields=this.fields,e.originLayerType=this.originLayerType,e.geomType=this.geomType,e.supportedMethods=this.supportedMethods.map(function(e){return e}),e.systemLibGuid=this.systemLibGuid,e.systemLibName=this.systemLibName,e.index=this.index,e.renderer=this.renderer?this.renderer.toJSON():null,e.geometryFilter=this.geometryFilter?this.geometryFilter.toJSON():null,e.definitionExpression=this.definitionExpression,e}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"load",value:function(){if(this.layer&&this.layer._mapServer){var e=this;return this.layer._mapServer.queryLayerInfo({layerId:this.id}).then(function(t){var r=t.data;return r&&(r.drawingInfo&&r.drawingInfo.renderer&&(e._renderer=(0,p.formatIGSRenderer)(r.drawingInfo.renderer)),e.fields=r.fields,e.geomType=r.geomType,e.index=r.index,e.id=r.index,e.maxScale=r.maxScale,e.minScale=r.minScale,e.name=r.name,e.extent=new h.Extent({xmin:r.range.xmin,ymin:r.range.ymin,xmax:r.range.xmax,ymax:r.range.ymax}),e.spatialReference=r.spatialReference?new h.SpatialReference(r.spatialReference):new h.SpatialReference({wkid:4326}),e.systemLibGuid=r.systemLibGuid,e.systemLibName=r.systemLibName,e.type=r.type,e.url=r.url),new i.default(function(t){t(e)})})}}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(d.SubLayer);(0,n.default)(_.prototype,{geometryFilter:{get:function(){return this._geometryFilter},set:function(e){!(0,f.defined)(e)||e instanceof h.Geometry?this._geometryFilter=e:this._geometryFilter=h.Geometry.fromJSON(e),this.layer&&this.layer.refresh()}},renderer:{get:function(){return this._renderer},set:function(e){!(0,f.defined)(e)||e instanceof y.BaseRenderer?this._renderer=e:this._renderer=y.BaseRenderer.fromJSON(e),this.layer&&this.layer.refresh()}},definitionExpression:{get:function(){return this._definitionExpression},set:function(e){e&&(this._definitionExpression=e,this.layer&&this.layer.refresh())}},visible:{get:function(){return this._visible},set:function(e){this._visible=e,this.layer&&this.layer.refresh()}}}),t.default=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(2)),a=l(r(4)),s=l(r(7)),u=l(r(5));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=e||{})}}]),t}(l(r(160)).default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(0)),i=l(r(2)),o=r(8),a=r(6),s=l(r(40)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(t){(0,n.default)(this,e),t=(0,u.defaultValue)(t,{}),this.distance=(0,u.defaultValue)(t.distance,.1),this.units=(0,u.defaultValue)(t.units,a.LengthUnit.meters),this.geometry=t.geometry?s.default.fromJSON(t.geometry):null,this.objectIds=t.objectIds,this.spatialRelation=(0,u.defaultValue)(t.spatialRelation,o.SpatialRelation.intersects),this.where=(0,u.defaultValue)(t.where,"")}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.distance=this.distance,e.units=this.units,e.geometry=this.geometry?this.geometry.toJSON():null,e.objectIds=this.objectIds?this.objectIds.map(function(e){return e}):null,e.spatialRelation=this.spatialRelation,e.where=this.where,e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,u.defaultValue)(t,{}))}}]),e}();t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(20)),i=s(r(0)),o=s(r(2)),a=r(1);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,i.default)(this,e),t=(0,a.defaultValue)(t,{}),this.functionArguments=t.functionArguments,this.functionName=t.functionName,this.outputPixelType=t.outputPixelType,this.variableName=t.variableName,this.rasterFunctionDefinition=t.rasterFunctionDefinition}return(0,o.default)(e,[{key:"toJSON",value:function(){var e={};return e.functionArguments=this.functionArguments,e.functionName=this.functionName,e.outputPixelType=this.outputPixelType,e.variableName=this.variableName,e.rasterFunctionDefinition=this.rasterFunctionDefinition,e}},{key:"_toIGSObject",value:function(){return(0,n.default)({type:this.functionName},this.functionArguments)}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,a.defaultValue)(t,{}))}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(2)),a=c(r(4)),s=c(r(7)),u=c(r(5)),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.resourceConfigId=(0,l.defaultValue)(e.resourceConfigId,void 0),r.supportedMediaTypes=(0,l.defaultValue)(e.supportedMediaTypes,void 0),r.resourceType=(0,l.defaultValue)(e.resourceType,void 0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"findSublayerById",value:function(e){return this.allSublayers.find(function(t){return String(t.id)===String(e)})}},{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.resourceConfigId=this.resourceConfigId,e.supportedMediaTypes=this.supportedMediaTypes,e.resourceType=this.resourceType,e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(c(r(160)).default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(5)),u=r(16),l=r(1),c=r(6);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.type=c.SubLayerType.ISSceneSub,r.originLayerType=(0,l.defaultValue)(e.originLayerType,""),r.name=(0,l.defaultValue)(e.name,""),r.layerName=(0,l.defaultValue)(e.layerName,null),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"reset",value:function(){this.layer&&this.layer._fireUpdateEvent("重置视角",[{name:"reset",params:[this.id],dataChanged:!0,operationType:"method"}])}},{key:"toJSON",value:function(){var e=this.toJSON();return e.originLayerType=this.originLayerType,e.url=this.url,e.name=this.name,e.layerName=this.layerName,e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(u.SubLayer);t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(7)),u=d(r(5)),l=r(1),c=r(16),f=r(6),h=r(43);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.type=f.SubLayerType.ArcGISMapImageSub,r.originLayerType=(0,l.defaultValue)(e.originLayerType,""),r.url=(0,l.defaultValue)(e.url,""),r.name=(0,l.defaultValue)(e.name,""),r.fields=(0,l.defaultValue)(e.fields,[]),r.geomType=(0,l.defaultValue)(e.geomType||e.GeomType,""),r.objectIdField=(0,l.defaultValue)(e.objectIdField,""),r.definitionExpression=(0,l.defaultValue)(e.definitionExpression,""),r.renderer=r._decorate("renderer",(0,l.defaultValue)(e.renderer,{}),h.BaseRenderer,h.BaseRenderer.fromJSON),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.url=this.url,e.name=this.name,e.fields=this.fields.map(function(e){return e}),e.geomType=this.geomType,e.objectIdField=this.objectIdField,e.definitionExpression=this.definitionExpression,e.originLayerType=this.originLayerType,e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(c.SubLayer);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(5)),u=r(1),l=f(r(19)),c=r(36);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"queryResourceInfo",value:function(e){return this._querySimpleInfo(e,function(e){return e+"/resources/info"})}},{key:"getStyleList",value:function(e){return this._querySimpleInfo(e,function(e){return e+"/resources/styles"})}},{key:"getStyle",value:function(e){return this._queryByParameters(e,{styleId:{type:"String"}},{},function(e,t){return e+"/resources/styles/"+t.styleId+"?f=json"})}},{key:"getTileMap",value:function(e){return this._querySimpleInfo(e,function(e){return e+"/tilemap"})}},{key:"getRootJSON",value:function(e){var t=void 0,r="";if((e=(0,u.defaultValue)(e,{})).url){var n=c.UrlUtil.getBaseUrlAndParams(e.url),i=n.params;(0,u.defined)(this.tokenKey)&&(0,u.defined)(this.tokenValue)&&delete i[e.tokenValue],t=n.baseUrl,(r=c.UrlUtil.getStringFromObject(i))&&(r="?"+r)}return this._queryByParameters(e,{},{},function(e){return(0,u.defined)(t)?""+t+r:e+"/resources/styles/root.json"})}},{key:"getSpiriteJSON",value:function(e){return this._queryByParameters(e,{},{},function(){return""+e.url})}}]),t}(l.default);t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(3)),i=g(r(0)),o=g(r(2)),a=g(r(4)),s=g(r(7)),u=g(r(5)),l=r(16),c=r(8),f=r(1),h=r(9),d=g(r(79)),p=g(r(72)),y=r(12);function g(e){return e&&e.__esModule?e:{default:e}}r(6);var m=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));if(e=(0,f.defaultValue)(e,{}),r.description="IGS WMTS子图层",r.imageFormat=(0,f.defaultValue)(e.imageFormat,void 0),r.identifier=(0,f.defaultValue)(e.identifier,""),r.imageFormats=(0,f.defaultValue)(e.imageFormats,void 0),r.styleId=(0,f.defaultValue)(e.styleId,void 0),r.styles=(0,f.defaultValue)(e.styles,void 0),r.tileMatrixSets=(0,f.defaultValue)(e.tileMatrixSets,void 0),r.tileMatrixSets&&r.tileMatrixSets instanceof Array)for(var o=0;o<r.tileMatrixSets.length;o++)r.tileMatrixSets[o]instanceof c.TileMatrixSet||(r.tileMatrixSets[o]=c.TileMatrixSet.fromJSON(r.tileMatrixSets[o]),!r.tileMatrixSets[o].tileInfo||r.tileMatrixSets[o].tileInfo instanceof p.default||(r.tileMatrixSets[o].tileInfo=p.default.fromJSON(r.tileMatrixSets[o].tileInfo)));r.tileMatrixSetId=(0,f.defaultValue)(e.tileMatrixSetId,void 0),r.tileMatrixSet=(0,f.defaultValue)(e.tileMatrixSet,void 0),r.resourceURLTemplates=(0,f.defaultValue)(e.resourceURLTemplates,void 0);for(var s=0;s<r.tileMatrixSets.length;s++)r.tileMatrixSets[s].id===r.tileMatrixSetId&&(r.spatialReference=h.SpatialReference.fromJSON(r.tileMatrixSets[s].tileInfo.spatialReference));return r.isReverseXY=(0,f.defaultValue)(e.isReverseXY,null),r.capabilities=(0,y.mergeCommonClientCapbilities)(r.capabilities,{imageFormat:!0,styleId:!0,tileMatrixSetId:!0,resourceURLTemplates:!0}),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);e.description=this.description,e.imageFormat=this.imageFormat,e.identifier=this.identifier,e.title=this.title,e.imageFormats=this.imageFormats,e.styleId=this.styleId,e.tileMatrixSets=this.tileMatrixSets,e.tileMatrixSetId=this.tileMatrixSetId,e.tileMatrixSet=(0,f.toJSON)(this.tileMatrixSet,c.TileMatrixSet),e.extent=this.extent instanceof d.default?this.extent.toJSON():this.extent,e.isReverseXY=this.isReverseXY,e.resourceURLTemplates=this.resourceURLTemplates,e.spatialReference=this.spatialReference instanceof h.SpatialReference?this.spatialReference.toJSON():this.spatialReference;var r=[];if(this.styles)for(var i=0;i<this.styles.length;i++)r.push(this.styles[i]instanceof c.WMTSStyle?this.styles[i].toJSON():this.styles[i]);return e.styles=r,e}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}(l.Layer);m.fromJSON=function(e){return e=(0,f.defaultValue)(e,{}),new m(e)},t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(3)),i=p(r(0)),o=p(r(2)),a=p(r(4)),s=p(r(7)),u=p(r(5)),l=r(1),c=p(r(114)),f=r(9),h=r(6),d=r(12);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.type=h.SubLayerType.WMSSub,r.name=(0,l.defaultValue)(e.name,""),r.queryable=(0,l.defaultValue)(e.queryable,!0),r.spatialReferences=(0,l.defaultValue)(e.spatialReferences,[]).map(function(e){return f.SpatialReference.fromJSON(e)}),r.capabilities=(0,d.mergeCommonClientCapbilities)(r.capabilities,{name:!0,queryable:!0}),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.name=this.name,e.queryable=this.queryable,e.spatialReferences=this.spatialReferences.map(function(e){return e.toJSON()}),e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(c.default);t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(2)),a=c(r(4)),s=c(r(5)),u=(r(1),c(r(19))),l=r(36);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"getLayerJSON",value:function(e){return this._queryByParameters(e,{},{},function(e){return e+"/layer.json"})}},{key:"getTerrainCache",value:function(){var e=this._baseUrl,t=l.UrlUtil.getStringFromObject(this._queryParameters);return t&&(e=l.UrlUtil.completeUrlEndMark(e),e+=t),e}}]),t}(u.default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.minValue=t.minValue,this.maxValue=t.maxValue}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.minValue=this.minValue,e.maxValue=this.maxValue,e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(r(13)),i=v(r(3)),o=v(r(0)),a=v(r(2)),s=v(r(4)),u=v(r(5)),l=r(8),c=r(6),f=r(16),h=r(1),d=r(60),p=r(41),y=r(9),g=r(113),m=r(163);function v(e){return e&&e.__esModule?e:{default:e}}var _=function(e){function t(e){(0,o.default)(this,t),e=(0,h.defaultValue)(e,{});var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this));return r._id=(0,h.defaultValue)(e.id,(0,h.getGUID)()),r._basemap=(0,h.defaultValue)(e.basemap,void 0),r.groupLayer=new d.GroupLayer({layers:e.layers,copyright:""}),r.groupLayer.setMap(r),r.overlayLayers=new d.GroupLayer({layers:e.overlayLayers,copyright:""}),r.overlayLayers.setMap(r),r.layers=r.groupLayer.layers,r.allLayers=new l.CollectionFlattener({getCollections:function(){return r._basemap&&r._basemap.baseLayers?[r._basemap.baseLayers,r.groupLayer.layers,r.overlayLayers.layers]:[r.groupLayer.layers,r.overlayLayers.layers]},getChildrenFunction:function(e){return e.layers}}),r._spatialReference=e.spatialReference?y.SpatialReference.fromJSON(e.spatialReference):null,r._fullExtent=e.fullExtent?y.Extent.fromJSON(e.fullExtent):null,r._waitLoadStorage=[],r._isInitLayersLoaded=!1,r._initHandlers(),r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"toJSON",value:function(){var e={};e.id=this._id,e.spatialReference=this.spatialReference?this.spatialReference.toJSON():null,e.fullExtent=this.fullExtent?this.fullExtent.toJSON():null,e.layers=[];for(var t=0;t<this.layers.items.length;t++)e.layers.push((0,h.toJSON)(this.layers.items[t],f.Layer));return e.exportTime=(new Date).toISOString(),e}},{key:"clone",value:function(){return(0,h.cloneObject)(this)}},{key:"add",value:function(e,t){if(e){var r=e instanceof f.Layer?e:f.Layer.fromJSON(e);this._isValidateLayers([r]),this.groupLayer.add(e,t)}}},{key:"addMany",value:function(e,t){if(e&&Array.isArray(e)){var r=e.map(function(e){return e instanceof f.Layer?e:f.Layer.fromJSON(e)});this._isValidateLayers(r),this.groupLayer.addMany(e,t)}}},{key:"remove",value:function(e){e&&this.groupLayer.remove(e)}},{key:"removeMany",value:function(e){e&&Array.isArray(e)&&this.groupLayer.removeMany(e)}},{key:"removeAll",value:function(){this.groupLayer.removeAll()}},{key:"destroy",value:function(){this.removeAll(),this._removeHandlers()}},{key:"reorder",value:function(e,t){this.groupLayer.reorder(e,t)}},{key:"findLayerById",value:function(e){return this.groupLayer.findLayerById(e)}},{key:"dispatchEvent",value:function(e,t,r){return this.fire(e,t,r),this}},{key:"getFullExtent",value:function(){return this._getLayersExtent(this.allLayers)}},{key:"_isValidateLayers",value:function(e){this.groupLayer._isValidateLayers(e),this.overlayLayers._isValidateLayers(e)}},{key:"_initHandlers",value:function(){this._initBasemapHandlers(),this.groupLayer.on(c.MapEventType.layerChange,this._processGroupLayerChange,this),this.overlayLayers.on(c.MapEventType.layerChange,this._processGroupLayerChange,this)}},{key:"_removeHandlers",value:function(){this.groupLayer.off(c.MapEventType.layerChange,this._processGroupLayerChange,this),this.overlayLayers.off(c.MapEventType.layerChange,this._processGroupLayerChange,this),this._basemap&&this._basemap._baseGroupLayer.off(c.MapEventType.layerChange,this._processGroupLayerChange,this)}},{key:"_initBasemap",value:function(){this._basemap&&(this._initBasemapHandlers(),this.basemap._baseGroupLayer.fire(c.MapEventType.layerChange,new p.LayerChangeEvent({added:this._basemap._baseGroupLayer.layers.items.map(function(e){return e}),path:[this._basemap._baseGroupLayer]})),this.fire(c.MapEventType.basemapChange,new p.BasemapChangeEvent({basemap:this._basemap,detail:[{action:"basemap-create"}]})))}},{key:"_initBasemapHandlers",value:function(){this._basemap&&this._basemap._baseGroupLayer.on(c.MapEventType.layerChange,this._processGroupLayerChange,this)}},{key:"_processGroupLayerChange",value:function(e){var t=e.added,r=e.moved,n=e.removed,i=e.sourceTarget,o=e.path;this._dispatchOldMapEvent(e),this.fire(c.MapEventType.layerChange,new p.LayerChangeEvent({type:c.MapEventType.layerChange,sourceTarget:i,removed:n,path:o,moved:r,added:t})),t.length>0&&(this._waitLoadStorage.push(e),this._triggerLayersAddToView()),0===n.length&&0===t.length&&0===r.length?this._waitLoadStorage=this._waitLoadStorage.filter(function(e){return e.sourceTarget!==i}):n.length>0&&(this._waitLoadStorage.forEach(function(e){e&&e.sourceTarget===i&&(e.added=e.added.filter(function(e){return!n.some(function(t){return t&&e&&t.id===e.id})}))}),this._waitLoadStorage=this._waitLoadStorage.filter(function(e){return e&&e.added&&e.added.length>0}))}},{key:"_triggerLayersAddToView",value:function(){this._isInitLayersLoaded?this._processLoadStorage():(this._cacheProcessLoadStorage||(this._cacheProcessLoadStorage=(0,g.debouncePromise)(this._processLoadStorage,10).bind(this)),this._cacheProcessLoadStorage())}},{key:"_processLoadStorage",value:function(){var e=this;if(0!==this._waitLoadStorage.length){var t=this._waitLoadStorage.map(function(e){var t=e.sourceTarget,r=e.added.filter(function(e){return e});return t.load().then(function(){return{added:r,sourceTarget:t}})});(0,g.allSettled)(t).then(function(t){if(t&&Array.isArray(t)){var r=[];t.forEach(function(e){var t=e.value,n=t.added.filter(function(e){return e&&e.type!==c.LayerType.unknown&&e.loaded});n.length>0&&r.push({added:n,sourceTarget:t.sourceTarget})}),r.length>0&&(e._isInitLayersLoaded=!0,e.fire(c.MapEventType.layerLoaded,new p.LayerLoadedEvent({addDetail:r})))}}),this._waitLoadStorage=[]}}},{key:"_dispatchOldMapEvent",value:function(e){var t=e.added,r=e.removed,n=e.sourceTarget;if(n===this.groupLayer&&(t&&Array.isArray(t)&&t.length>0&&(1===t.length?this.dispatchEvent(c.MapEventType.layerAdd,{type:c.MapEventType.layerAdd,layer:t[0]}):this.dispatchEvent(c.MapEventType.layerAddMany,{type:c.MapEventType.layerAddMany,layers:t})),Array.isArray(r))){var i=n.layers;i&&i.items&&0===i.items.length&&0===r.length?this.dispatchEvent(c.MapEventType.layerRemoveAll,{type:c.MapEventType.layerRemoveAll,layers:r}):1===r.length?this.dispatchEvent(c.MapEventType.layerRemove,{type:c.MapEventType.layerRemove,layer:r[0]}):r.length>1&&this.dispatchEvent(c.MapEventType.layerRemoveMany,{type:c.MapEventType.layerRemoveMany,layers:r})}}},{key:"_loadLayers",value:function(){return this._basemap&&this._basemap._baseGroupLayer.fire(c.MapEventType.layerChange,new p.LayerChangeEvent({added:this._basemap._baseGroupLayer.layers.items.map(function(e){return e}),path:[this._basemap._baseGroupLayer]})),this.groupLayer&&this.groupLayer.fire(c.MapEventType.layerChange,new p.LayerChangeEvent({added:this.groupLayer.layers.items.map(function(e){return e}),path:[this.groupLayer]})),this.overlayLayers&&this.overlayLayers.fire(c.MapEventType.layerChange,new p.LayerChangeEvent({added:this.overlayLayers.layers.items.map(function(e){return e}),path:[this.overlayLayers]})),this}},{key:"_setSpatialReference",value:function(e){this._spatialReference=e}},{key:"_getLayersExtent",value:function(e){var t=(0,m.getLayersExtent)(e,this._spatialReference);return t&&!t.spatialReference.isGeographic&&(t=l.Projection.project(t,new y.SpatialReference("EPSG:4326"))),this._fullExtent=t,t}}],[{key:"fromJSON",value:function(e){return new t(e=(0,h.defaultValue)(e,{}))}}]),t}(l.Evented);(0,n.default)(_.prototype,{basemap:{get:function(){return this._basemap},set:function(e){this._basemap?e?this._basemap._setBasemap(e,this):(this._basemap._setBasemap(e),this._basemap=null):e?(this._basemap=e,this._basemap._map=this,this._initBasemap()):this._basemap=null,this.allLayers._refresh()}},spatialReference:{get:function(){return this._spatialReference},set:function(){}},fullExtent:{get:function(){return this._spatialReference?l.Projection.project(this._fullExtent,this._spatialReference):this._fullExtent},set:function(){}}}),t.default=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={DefaultThemeInfo:1,DataItemIntrinsicInfo:2}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.default=function(e){e=(0,n.defaultValue)(e,{}),(0,n.extend)(this,e),this.LibID=void 0!==e.LibID?e.LibID:0,this.Ovprnt=void 0!==e.Ovprnt&&e.Ovprnt,this.Angle=void 0!==e.Ovprnt?e.Ovprnt:0,this.BackClr=void 0!==e.BackClr?e.BackClr:0,this.BackExp=void 0!==e.BackExp?e.BackExp:0,this.Chnt=void 0!==e.Chnt?e.Chnt:0,this.Color=void 0!==e.Color?e.Color:0,this.FontAngle=void 0!==e.FontAngle?e.FontAngle:0,this.Height=void 0!==e.Height?e.Height:0,this.Ifnt=void 0!==e.Ifnt?e.Ifnt:0,this.Ifnx=void 0!==e.Ifnx?e.Ifnx:0,this.IsFilled=void 0!==e.IsFilled&&e.IsFilled,this.IsHzpl=void 0===e.IsHzpl||e.IsHzpl,this.OffsetX=void 0!==e.OffsetX?e.OffsetX:0,this.OffsetY=void 0!==e.OffsetY?e.OffsetY:0,this.Space=void 0!==e.Space?e.Space:0,this.Width=void 0!==e.Width?e.Width:0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={Unknown:0,Value:1,Percent:2}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(4)),a=c(r(5)),s=c(r(44)),u=c(r(244)),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t);var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.ChartType=void 0!==e.ChartType?e.ChartType:u.default.Bar,r.ChartThemeInfoArr=void 0!==e.ChartThemeInfoArr?e.ChartThemeInfoArr:null,r.RepresentInfo=void 0!==e.RepresentInfo?e.RepresentInfo:null,r.Type="CChartTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={Unknown:0,Bar:1,Bar3D:2,Pie:3,Pie3D:4,Line:5,Line3D:6,Point:7}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(44)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.Expression=void 0!==e.Expression?e.Expression:"",r.Info=void 0!==e.Info?e.Info:null,r.Value=void 0!==e.Value?e.Value:null,r.Type="CDotDensityTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(44)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.ClrInfo=void 0!==e.ClrInfo?e.ClrInfo:[25,57,89,121],r.Type="CFourColorTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(44)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.BaseValue=void 0!==e.BaseValue?e.BaseValue:141e-6,r.DispMinus=void 0!==e.DispMinus&&e.DispMinus,r.DispZero=void 0!==e.DispZero&&e.DispZero,r.Expression=void 0!==e.Expression?e.Expression:null,r.MinusPntInfo=void 0!==e.MinusPntInfo?e.MinusPntInfo:null,r.PlusPntInfo=void 0!==e.PlusPntInfo?e.PlusPntInfo:null,r.ZeroPntInfo=void 0!==e.ZeroPntInfo?e.ZeroPntInfo:null,r.Type="CGraduatedSymbolTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XClsType={SFCls:"SFeatureCls",OCls:"ObjectCls",ACls:"AnnotationCls",GnetCls:"GNetCls",RDS:"RasterDataset",SFClsInfo:"sfcls_new"},t.VectClsType={Unknown:0,SFCls:"SFeatureCls",AnnoCls:"AnnotationCls"},t.FeatureType={Unknown:0,Pnt:1,Lin:2,Reg:3},t.FontShape={Positive:0,LeftOblique:1,RightOblique:2,LeftTowering:3,RightTowering:4},t.LabelLinType={Curved:0,Forward:1,Horizontal:2,Tangent:3},t.LabelRegType={Curved:0,Forward:1,Horizontal:2,Boundray:3,Outside:4},t.LabelPntType={PntAnyDir:0,PntEightDir:1,PntOnFea:2},t.RepeatType={Auto:0,NoRep:1,OnStep:2},t.LabelSpreadType={AutoSpread:0,Centralization:1,Decentralization:2},t.LineConstrain={Left:0,Right:1,Above:2,Below:3,Both:4,NoRes:5},t.EightDirType={East:0,North:1,NorthEast:2,NorthWest:3,South:4,SouthEast:5,SouthWest:6,West:7,NoDir:8},t.ISShowArc={Reg:0,Arc:1,All:2},t.NetAnalyType={UserMode:"UserMode",SysModeCommwayPrefer:"SysModeCommwayPrefer",SysModeHighWayPrefer:"SysModeHighWayPrefer",SysModeMinCost:"SysModeMinCost",SysModeMinDis:"SysModeMinDis",SysModeSysRecommend:"SysModeSysRecommend"},t.NetElemType={Node:1,Edge:2,CNode:3,Chain:4,Center:5,Source:13,Sink:13},t.CLinAdjustType={Adjust:0,NoAdjust:1},t.CLinHeadType={Round:0,Square:1,Butt:2},t.CLinJointType={Round:0,Square:1,Butt:2},t.CLinStyleMakeType={Byrule:0,Bypoint:1},t.CItemType={Unknown:0,UniqueTheme:1,RangeTheme:2},t.MapType={Doc:"mapType",Tile:"tileType"},t.LayerStatusType={Show:"show",Hide:"hide",Include:"include",Exclude:"exclude"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(44)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.DefaultInfo=void 0!==e.DefaultInfo?e.DefaultInfo:null,r.ExpInfoArr=void 0!==e.ExpInfoArr?e.ExpInfoArr:null,r.MultiClassThemeInfoArr=void 0!==e.MultiClassThemeInfoArr?e.MultiClassThemeInfoArr:null,r.GeoInfoType=void 0!==e.GeoInfoType?e.GeoInfoType:null,r.Type="CMultiClassTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(44)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.Type="CRandomTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(4)),a=c(r(5)),s=c(r(44)),u=c(r(240)),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t),e=(0,l.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.AllOtherDataItemInfoSource=void 0!==e.AllOtherDataItemInfoSource?e.AllOtherDataItemInfoSource:u.default.DefaultThemeInfo,r.Expression=void 0!==e.Expression?e.Expression:"",r.DefaultInfo=void 0!==e.DefaultInfo?e.DefaultInfo:null,r.RangeThemeInfoArr=void 0!==e.RangeThemeInfoArr?e.RangeThemeInfoArr:null,r.GeoInfoType=void 0!==e.GeoInfoType?e.GeoInfoType:null,r.Type="CRangeTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(4)),a=c(r(5)),s=c(r(44)),u=c(r(101)),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t),e=(0,l.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.ThemeInfo=void 0!==e.ThemeInfo?e.ThemeInfo:new u.default,r.Type="CSimpleTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(44)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.DefaultInfo=void 0!==e.DefaultInfo?e.DefaultInfo:null,r.Expression=void 0!==e.Expression?e.Expression:"",r.UniqueThemeInfoArr=void 0!==e.UniqueThemeInfoArr?e.UniqueThemeInfoArr:null,r.GeoInfoType=void 0!==e.GeoInfoType?e.GeoInfoType:null,r.Type="CUniqueTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){this.name=void 0!==e?e:null,this.attribute=void 0!==t?t:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){this.name=void 0!==e?e:null,this.Value=void 0!==t?t:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){this.LayerName=void 0!==e?e:null,this.ThemeArr=void 0!==t?t:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWorkflow=t.WorkFlowServer=void 0;var n=I(r(22)),i=I(r(594)),o=I(r(595)),a=I(r(596)),s=I(r(597)),u=I(r(598)),l=I(r(599)),c=I(r(600)),f=I(r(601)),h=I(r(602)),d=I(r(603)),p=I(r(604)),y=I(r(605)),g=I(r(606)),m=I(r(607)),v=I(r(608)),_=I(r(609)),S=I(r(610)),b=I(r(611)),x=I(r(612)),w=I(r(613)),E=I(r(614)),T=I(r(615));function I(e){return e&&e.__esModule?e:{default:e}}var M={WorkFlowServer:n.default,WorkFlowServer600227:i.default,WorkFlowServer600228:o.default,WorkFlowServer600229:a.default,WorkFlowServer600230:s.default,WorkFlowServer600231:u.default,WorkFlowServer600232:l.default,WorkFlowServer600233:c.default,WorkFlowServer600235:f.default,WorkFlowServer600237:h.default,WorkFlowServer600238:d.default,WorkFlowServer600239:p.default,WorkFlowServer600307:y.default,WorkFlowServer600308:g.default,WorkFlowServer600309:m.default,WorkFlowServer600314:v.default,WorkFlowServer600334:_.default,WorkFlowServer600336:S.default,WorkFlowServer600340:b.default,WorkFlowServer600354:x.default,WorkFlowServer600368:w.default,WorkFlowServer600369:E.default,WorkFlowServer600370:T.default};t.WorkFlowServer=n.default,t.createWorkflow=function(e){var t=((e||{}).url||"").match(/(workflow)(\/)\d+(\/)(WorkflowServer)/g);if(!t)throw new Error("未识别工作流id");var r=t[0].split("/"),n=void 0;if(Array.isArray(r)&&3===r.length&&(n=r[1]),!n)throw new Error("未识别工作流id "+n);var i=M["WorkFlowServer"+n];if(!i)throw new Error("id为"+n+"的工作流未定义");return new i(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(2)),a=l(r(4)),s=l(r(7)),u=l(r(5));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r._initInstance(e),r._initHandlers(),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"_initInstance",value:function(e){}},{key:"_initHandlers",value:function(){this._layerChangeAction=this._layerChangeAction.bind(this),this.layer.on("set",this._layerChangeAction)}},{key:"_removeHandlers",value:function(){this.layer.off("set",this._layerChangeAction)}},{key:"_layerChangeAction",value:function(e){"renderer"===e.eventData.key&&this._rendererChangeAction(e)}},{key:"_rendererChangeAction",value:function(e){}},{key:"onRemove",value:function(e){(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"onRemove",this).call(this,e),this._removeHandlers()}}]),t}(l(r(102)).default);t.default=c},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _stringify=__webpack_require__(10),_stringify2=_interopRequireDefault(_stringify),_isNan=__webpack_require__(628),_isNan2=_interopRequireDefault(_isNan),_log=__webpack_require__(631),_log2=_interopRequireDefault(_log),_index=__webpack_require__(103),_util=__webpack_require__(1),_symbol=__webpack_require__(28),_VisualVariableType=__webpack_require__(68),_VisualVariableType2=_interopRequireDefault(_VisualVariableType),_NormalizationType=__webpack_require__(189),_NormalizationType2=_interopRequireDefault(_NormalizationType);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parseExpression(feature,expression){if(!expression)return"";var excuteStr=expression.replace(/\$feature/g,"feature.attributes");try{var v=eval(excuteStr);return v}catch(e){_index.Log.info("字段表达式输入值非法")}return""}function parseFieldAndExpression(e,t,r){var n=(e.attributes||{})[t];return(0,_util.defined)(n)?n:parseExpression(e,r)}function parseClassBreakNormalizationType(e,t,r){var n=t,i=r=r||{},o=i.normalizationField,a=i.normalizationTotal;switch(i.normalizationType){case _NormalizationType2.default.field:n/=e.attributes[o];break;case _NormalizationType2.default.log:n=(0,_log2.default)(n);break;case _NormalizationType2.default.percentOfTotal:n=n/a*100}return n}function randomColor(){return"rgba("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+",1)"}function calcSpaceRatio(e,t,r){var n=r-t;return((0,_isNan2.default)(n)||n<=0)&&_index.Log.error("传入的视觉变量不合法"),e<=t?0:e>r?1:(e-t)/n}function calcGradientInStops(e,t,r){if(Array.isArray(t)&&!(t.length<=0)){var n=t.sort(function(e,t){return e.value-t.value});if(1===n.length)return r(t[0],t[0],1);var i=n[0],o=n[n.length-1];if(e<i.value)return r(i,i,1);if(e>=o.value)return r(o,o,1);for(var a=1;a<n.length;a++){var s=n[a-1],u=n[a];if(e>=s.value&&e<=u.value)return r(s,u,calcSpaceRatio(e,s.value,u.value))}}}function updateFeatureSymbol(e,t,r,n){if(e&&e.symbol&&t){var i=!(0,_util.defined)(r)||r;e.visible!==i&&(e.visible=i);var o=e.symbol.toJSON(),a=t.toJSON();if(o!==a&&(e.symbol=a),n&&Array.isArray(n)&&!(n.length<=0))for(var s=e.symbol instanceof _symbol.Symbol?e.symbol.toJSON():(0,_stringify2.default)(e.symbol),u=0;u<n.length;u++){var l=n[u],c=l.field,f=l.type,h=parseFieldAndExpression(e,c,l.valueExpression);if(h=parseFloat(h),!(0,_isNan2.default)(h)){switch(f){case _VisualVariableType2.default.color:var d=calcGradientInStops(h,l.stops,function(e,t,r){var n=_index.Color.fromColor(e.color),i=_index.Color.fromColor(t.color),o=parseInt(n.red+(i.red-n.red)*r),a=parseInt(n.green+(i.green-n.green)*r),s=parseInt(n.blue+(i.blue-n.blue)*r),u=parseFloat(n.alpha+(i.alpha-n.alpha)*r);return new _index.Color(o,a,s,u)});(0,_util.defined)(d)&&(s.color=d);break;case _VisualVariableType2.default.size:var p=l.stops,y=l.maxDataValue,g=l.minDataValue,m=l.maxSize,v=l.minSize,_=p;(0,_util.isNumber)(y)&&(0,_util.isNumber)(g)&&(0,_util.isNumber)(m)&&(0,_util.isNumber)(v)&&(_=[{size:v,value:g},{size:m,value:y}]);var S=calcGradientInStops(h,_,function(e,t,r){var n=e.size,i=t.size;return parseInt(n+(i-n)*r)});if((0,_util.defined)(S))if(s.symbolLayers)for(var b=0;b<s.symbolLayers.length;b++){var x=s.symbolLayers[b];x.type!==_index.Symbol3DLayerType.extrude&&x.type!==_index.Symbol3DLayerType.icon&&x.type!==_index.Symbol3DLayerType.line&&x.type!==_index.Symbol3DLayerType.text||(x.size=S)}else s.size=S;break;case _VisualVariableType2.default.opacity:var w=calcGradientInStops(h,l.stops,function(e,t,r){var n=e.opacity,i=t.opacity;return parseInt(100*(n+(i-n)*r))/100});if((0,_util.defined)(w)&&s.color){var E=_index.Color.fromColor(s.color);E.alpha=w,s.color=E}}e.symbol=s}}}}function updateRandomFeatureSymbol(e){if(e&&e.geometry)switch(e.geometry.type){case _index.GeometryType.multiPoint:case _index.GeometryType.point:e.symbol=new _symbol.SimpleMarkerSymbol({color:randomColor(),outline:new _symbol.SimpleLineSymbol({color:randomColor()})});break;case _index.GeometryType.multiLineString:case _index.GeometryType.lineString:e.symbol=new _symbol.SimpleLineSymbol({color:randomColor()});break;case _index.GeometryType.polygon:case _index.GeometryType.extent:case _index.GeometryType.circle:case _index.GeometryType.multiPolygon:e.symbol=new _symbol.SimpleFillSymbol({color:randomColor(),outline:new _symbol.SimpleLineSymbol({color:randomColor()})})}}function _isValueInClassBreakInfo(e,t,r){var n=e.maxValue,i=e.minValue;if(r){if(t>=i&&t<=n)return!0}else if(t>=i&&t<n)return!0;return!1}function updateRenderer(e,t){e instanceof _index.FeatureSet&&(e=e.features);var r=(t=t||{}).visualVariables||[];switch(t.type){case _index.RendererType.simple:var n=t.symbol;e.forEach(function(e){updateFeatureSymbol(e,n,!0,r)});break;case _index.RendererType.uniqueValue:for(var i=t.defaultSymbol||{},o=t.defaultVisible,a=t.uniqueValueInfos||[],s=t.valueExpression||"",u=0;u<e.length;u++){var l=e[u],c=parseFieldAndExpression(l,t.field||"",s);if((0,_util.defined)(c)){for(var f=null,h=null,d=0;d<a.length;d++){var p=a[d];if(p.value===c){f=p.symbol,h=p;break}}if(f){updateFeatureSymbol(l,f,h.visible,r);continue}}updateFeatureSymbol(l,i,o,r)}break;case _index.RendererType.classBreak:for(var y=t.defaultSymbol||{},g=t.classBreakInfos||[],m=t.valueExpression||"",v=t.defaultVisible,_=0;_<e.length;_++){var S=e[_],b=t.field||"",x=parseFloat(parseFieldAndExpression(S,b,m));if(x=parseClassBreakNormalizationType(S,x,{normalizationField:t.normalizationField,normalizationTotal:t.normalizationTotal,normalizationType:t.normalizationType}),(0,_util.defined)(x)){for(var w=null,E=null,T=0;T<g.length-1;T++){var I=g[T];_isValueInClassBreakInfo(I,x,!0)&&(w=I.symbol,E=I)}if(!w&&g.length-1>=0){var M=g[g.length-1];_isValueInClassBreakInfo(M,x,!0)&&(w=M.symbol,E=M)}if(w){updateFeatureSymbol(S,w,E.visible,r);continue}}updateFeatureSymbol(S,y,v,r)}break;case _index.RendererType.random:e.forEach(function(e){updateRandomFeatureSymbol(e)});break;case _index.RendererType.rank:var k=t.symbol,P=t,L=P.minSize,O=P.maxSize,C=P.maxDataValue,N=P.minDataValue,R=P.field,G=P.valueExpression;(!k||L>O||!R&&!G)&&_index.Log.error("等级符号专题图参数异常!");var A=void 0,V=void 0;e.forEach(function(e){var t=parseFieldAndExpression(e,R,G);t=parseFloat(t),(0,_util.defined)(A)||(A=t),(0,_util.defined)(V)||(V=t),A=Math.max(A,t),V=Math.min(V,t)}),(0,_util.defined)(N)&&(0,_util.defined)(C)&&C>N&&(A=C,V=N),A-V==0&&(A+=1e-4),e.forEach(function(e){var t,n=k.clone(),i=parseFieldAndExpression(e,R,G);t=(i=parseFloat(i))<V?0:i>A?1:(i-V)/(A-V);var o=parseInt(t*(O-L)+L);if((0,_util.isNumber)(o))switch(n.type){case _index.SymbolType.simpleMarker:n.size=o;break;case _index.SymbolType.pictureMarker:n.width=o,n.height=o;break;case _index.SymbolType.text:var a=n.font||{};a.size=o,n.font=a}updateFeatureSymbol(e,n,!0,r)});break;default:var D=t.symbol;e.forEach(function(e){updateFeatureSymbol(e,D,!0,r)})}}var RendererUtil={updateRenderer:updateRenderer,parseExpression:parseExpression};exports.default=RendererUtil},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTipTextByEditOption=t.SketchFreehandPolygonDrawTool=t.SketchFreehandPolylineDrawTool=t.SketchExtentDrawTool=t.SketchCircleDrawTool=t.SketchPolygonDrawTool=t.SketchPolylineDrawTool=t.SketchPointDrawTool=t.SketchBaseDrawTool=t.SketchEditor3D=t.SketchEditor=t.SketchEditorEvent=t.SketchStyle=void 0;var n=g(r(45)),i=r(167),o=g(r(262)),a=g(r(640)),s=g(r(52)),u=g(r(51)),l=g(r(263)),c=g(r(73)),f=g(r(264)),h=g(r(265)),d=g(r(266)),p=g(r(267)),y=r(85);function g(e){return e&&e.__esModule?e:{default:e}}t.SketchStyle=n.default,t.SketchEditorEvent=i.SketchEditorEvent,t.SketchEditor=o.default,t.SketchEditor3D=a.default,t.SketchBaseDrawTool=s.default,t.SketchPointDrawTool=u.default,t.SketchPolylineDrawTool=l.default,t.SketchPolygonDrawTool=c.default,t.SketchCircleDrawTool=f.default,t.SketchExtentDrawTool=h.default,t.SketchFreehandPolylineDrawTool=d.default,t.SketchFreehandPolygonDrawTool=p.default,t.getTipTextByEditOption=y.getTipTextByEditOption},function(e,t,r){"use strict";t.__esModule=!0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(173));t.default=function(e,t,r){return t in e?(0,n.default)(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=C(r(13)),i=C(r(261)),o=C(r(20)),a=C(r(24)),s=C(r(3)),u=C(r(0)),l=C(r(2)),c=C(r(4)),f=C(r(5)),h=r(8),d=r(6),p=r(1),y=r(9),g=C(r(45)),m=C(r(51)),v=C(r(73)),_=C(r(635)),S=C(r(263)),b=C(r(264)),x=C(r(265)),w=C(r(637)),E=r(85),T=C(r(638)),I=C(r(639)),M=C(r(266)),k=C(r(267)),P=r(167),L=r(59),O=r(28);function C(e){return e&&e.__esModule?e:{default:e}}var N=function(e){function t(e){(0,u.default)(this,t);var r=(0,c.default)(this,(t.__proto__||(0,s.default)(t)).call(this));return(e=(0,p.defaultValue)(e,{})).view||p.Log.error("options.view is null!",e),r._id=(0,p.defaultValue)(e.id,(0,p.getGUID)()),r.view=e.view,r._spatialReference=r.view&&r.view._spatialReference?r.view._spatialReference:new y.SpatialReference("EPSG:4326"),r._sketchInnerLayer=new L.GroupLayer({layers:[new L.GraphicsLayer,new L.GraphicsLayer]}),r._sketchOuterLayer=(0,p.defaultValue)(e.layer,void 0),r._layer=r._sketchOuterLayer||r._sketchInnerLayer,r.sketchStyle=(0,p.defaultValue)(e.sketchStyle,new g.default),r._editable=(0,p.defaultValue)(e.editable,!0),r._editOption=e.editOption&&0!==(0,a.default)(e.editOption).length?e.editOption:{},r._editOption=(0,p.extendDeep)({graphic:{move:!0,scale:!0},vertex:{move:!0,add:!0}},r._editOption),r._isAddTip=!0,r._tipTextGraphics=[],r._isShowTip=(0,p.defaultValue)(e.isShowTip,!0),r.isSimple=(0,p.defaultValue)(e.isSimple,!1),r.snapOption=(0,p.defaultValue)(e.snapOption,{}),r.snapAndReferGeometries=(0,p.defaultValue)(e.snapAndReferGeometries,[]),r.measureOption=(0,p.defaultValue)(e.measureOption,void 0),r._drawTool=null,r._sketchDataType=null,r._sketchTopologyTool=new w.default,r._sketchSnappingTool=new _.default((0,o.default)(r.snapOption,{view:r.view})),r._undoRedoManager=new T.default,r._editorState={editMode:h.SketchEditMode.none,undoRedoManager:r.undoRedoManager,_hitTestEvent:r._hitTestEvent},r.view._graphicsLayers.add(r._sketchInnerLayer),r._hitTestSketchEvent(),r._tipText={none:{text:"",lineWidth:0},beforeEditGraphic:{text:"左键单击图形,进行整体编辑",lineWidth:160},beforeEditVertex:{text:"左键单击外包盒,进入顶点编辑",lineWidth:160}},r._addOrUpdateTipText(r._tipText.none,r._sketchInnerLayer),r}return(0,f.default)(t,e),(0,l.default)(t,[{key:"start",value:function(e,t){var r=this._getDrawTool(e,t),n=r.drawTool,i=r.sketchType;r.isGeometry?this._startDrawTool(n,i,e):this._startDrawTool(n,i)}},{key:"startCustomDrawTool",value:function(e,t){var r=new e({view:this.view,sketchStyle:this.sketchStyle,layer:this._layer,sketchInnerLayer:this._sketchInnerLayer,undoRedoManager:this._undoRedoManager,elevationInfo:this.elevationInfo,_sketchEditor:this});this._startDrawTool(r,t)}},{key:"_getDrawTool",value:function(e,t,r){var n=void 0,i=void 0,o=!1;"number"==typeof e?n=e:e instanceof y.Point?(n=r instanceof O.TextSymbol?h.SketchDataType.text:h.SketchDataType.point,o=!0):e instanceof y.LineString?(n=h.SketchDataType.polyline,o=!0):e instanceof y.Polygon?(n=h.SketchDataType.polygon,o=!0):e instanceof y.Circle?(n=h.SketchDataType.circle,o=!0):e instanceof y.Extent&&(n=h.SketchDataType.rectangle,o=!0);var a={view:this.view,sketchStyle:this.sketchStyle,sketchDataType:n,layer:this._layer,sketchInnerLayer:this._sketchInnerLayer,undoRedoManager:this._undoRedoManager,elevationInfo:this.elevationInfo,extensionOptions:t,_sketchEditor:this,arcType:this.arcType,_getCenterCoordinate:this._getCenterCoordinate};switch(n){case h.SketchDataType.point:case h.SketchDataType.text:i=new m.default(a);break;case h.SketchDataType.polyline:i=new S.default(a);break;case h.SketchDataType.polygon:i=new v.default(a);break;case h.SketchDataType.circle:i=new b.default(a);break;case h.SketchDataType.rectangle:i=new x.default(a);break;case h.SketchDataType.freeHandPolyline:i=new M.default(a);break;case h.SketchDataType.freeHandPolygon:i=new k.default(a)}return{drawTool:i,sketchType:n,isGeometry:o}}},{key:"_startDrawTool",value:function(e,t,r){if(this._drawTool&&(this._drawTool._removeEditGraphics(),this._drawTool._stopAll(),this._drawTools=[],this._undoRedoManager.reset()),this._drawTool=e,this._drawTool){if(this._drawTool._sketchDataType=t,this._sketchEvent(),r){var n=r.clone();if(this.arcType&&(n.extensionOptions?n.extensionOptions.arcType=this.arcType:n.extensionOptions={extensionOptions:{arcType:this.arcType}}),this.isSimple&&!y.GeometryEngine.isSimple(n)){var i=new P.SketchEditorEvent({type:h.SketchEditorEventType.create,toolEventInfo:{type:h.SketchEditorToolEventType.geometryUnsimple},state:h.SketchEditorState.complete});return this._drawTool.fire(h.SketchEditorEventType.create,i,self),p.Log.info("该坐标构成的几何不符合拓扑规范!")}this._addGeometry(n,this._layer),this._bindHit&&this._bindHit(this._drawTool,void 0,this._layer),this._drawTool.state="drawn"}else this._drawTool.start(this._sketchDataType);this._selectEvent(),this._drawEvent()}}},{key:"_addFeatureToSketchEditor",value:function(e,t){var r=e.geometry,n=this._getDrawTool(r,void 0,e.symbol),i=n.drawTool,o=n.sketchType;this._drawTool=i,this._drawTool&&(this._drawTool.sketchStage.entityGraphic=e,this._drawTool.state="drawn",this._drawTool._sketchDataType=o,this._selectEvent(),this._drawEvent(),this._sketchEvent(),t&&this._drawTool._addFeatureToLayer(e,this._layer))}},{key:"stop",value:function(){this._drawTool&&(this.view.cursor=this._drawTool.cursorStyle,this._drawTool.cursorStyle=null,this.view._mapActionControl("drag-pan",!0),this._drawTool.stop(),this._drawTool._editMode===h.SketchEditMode.drawing&&this._remove(),this._fireCancelDrawEvent())}},{key:"remove",value:function(){this._drawTool&&this._fireRemoveEvent(this._drawTool.sketchStage.entityGraphic),this._remove()}},{key:"_remove",value:function(){this._drawTool&&(this._drawTool._clearDrawToolSketchStage(),this._drawTool.removeDrawTool(),this._drawTool=null),this._addOrUpdateTipText((0,E.getTipTextByEditOption)("before-edit",this._tipText,this._editOption),this._sketchInnerLayer)}},{key:"update",value:function(e,t){this._drawTool.updateFeature(e,t)}},{key:"_addGeometry",value:function(e,t){this._drawTool.addFeatureByGeometry(e,void 0,void 0,t)}},{key:"addVertex",value:function(e,t){return this._drawTool.addVertex(e,t)}},{key:"updateVertex",value:function(e,t){return this._drawTool.updateVertex(e,t)}},{key:"removeVertex",value:function(e){return this._drawTool.removeVertex(e)}},{key:"getSketchDataType",value:function(){return this._sketchDataType}},{key:"setSketchStyle",value:function(e){var t=this;if(this.sketchStyle=e.clone(),this._drawTool&&this._drawTool.sketchStage){this._drawTool.sketchStyle=e;var r=this._drawTool.sketchStage;if(!(0,p.isNull)(r.entityGraphic))if(r.entityGraphic.geometry.type===d.GeometryType.point)if(this._drawTool._sketchDataType===h.SketchDataType.text){var n=r.entityGraphic.symbol.text;r.entityGraphic.symbol=e._textStyle,r.entityGraphic.symbol.text=n}else r.entityGraphic.symbol=e._vertexStyle;else r.entityGraphic.geometry.type===d.GeometryType.lineString?r.entityGraphic.symbol=e._lineStyle:r.entityGraphic.geometry.type===d.GeometryType.polygon?r.entityGraphic.symbol=e._fillStyle:r.entityGraphic.geometry.type===d.GeometryType.circle?r.entityGraphic.symbol=e._fillStyle:r.entityGraphic.geometry.type===d.GeometryType.extent&&(r.entityGraphic.symbol=e._fillStyle);(0,p.isNull)(r.vertexGraphics)||r.vertexGraphics.forEach(function(t){t.symbol=e._vertexStyle}),(0,p.isNull)(r.midVertexGraphics)||r.midVertexGraphics.forEach(function(t){t.symbol=e._selectVertexStyle}),(0,p.isNull)(r.selectBoxGraphics)||r.selectBoxGraphics.forEach(function(r){if(t._drawTool._sketchDataType===h.SketchDataType.text){var n=r.symbol.text;r.symbol=e._selectTextStyle,r.symbol.text=n}else t._drawTool._sketchDataType===h.SketchDataType.point?r.symbol=e._selectVertexStyle:r.symbol=e._selectBoxStyle}),(0,p.isNull)(r.selectBoxVertexGraphics)||r.selectBoxVertexGraphics.forEach(function(t){t.symbol=e._selectBoxVertexStyle})}(0,p.isNull)(this._tipTextGraphics)||this._tipTextGraphics.forEach(function(t){var r=t.symbol.text;t.symbol=e._tipTextStyle,t.symbol.text=r})}},{key:"getSketchStyle",value:function(){return this.sketchStyle}},{key:"setLayer",value:function(e){((0,p.isNull)(e)&&!(0,p.isNull)(this._sketchOuterLayer)||!(0,p.isNull)(e)&&e.id!==this._layer.id)&&((0,p.isNull)(this._sketchOuterLayer)&&this._remove(),this._getGraphicsLayer(this._sketchInnerLayer).removeAll(),this._addOrUpdateTipText((0,E.getTipTextByEditOption)("before-edit",this._tipText,this._editOption),this._sketchInnerLayer),this.stop(),this.snapAndReferGeometries=[],this._drawTool=null,this._drawTools=[],this._sketchDataType=null,this._undoRedoManager=new T.default,this._editorState=null,(0,p.isNull)(e)?(this._sketchOuterLayer=void 0,this._layer=this._sketchInnerLayer):(this._sketchOuterLayer=e,this._layer=this._sketchOuterLayer))}},{key:"getLayer",value:function(){return this._externalLayer}},{key:"setIsShowTip",value:function(e){this._isShowTip=e,e?(this._moveTipText(),this._tipTextGraphics&&this._tipTextGraphics.length>0&&(this._tipTextGraphics[0].visible=!0)):(this._stopTipText(),this._tipTextGraphics&&this._tipTextGraphics.length>0&&(this._tipTextGraphics[0].visible=!1))}},{key:"getLayer",value:function(){return this._externalLayer}},{key:"union",value:function(e){for(var t=this,r=this,n=0;n<e.length;n++)if(!y.GeometryEngine.isSimple(e[n]))return p.Log.error("输入的几何不符合拓扑规范!");var i=h.Projection.project(this._sketchTopologyTool.unionPolygons(e),this._spatialReference);if("Polygon"===i.type){var o=r.view.allLayerViews.items.filter(function(e){return e.id===r._layer.id});return this.start(i),o.length>0?(this._selectEvent(),this._drawEvent(),this._sketchEvent()):r._layer.once("layerview-created",function(){r._selectEvent(),r._drawEvent(),t._sketchEvent()}),i}p.Log.error("合并结果不符合规范,请检查输入的几何!")}},{key:"split",value:function(e,r){var n=null,i=this;if(e instanceof y.Polygon)n=e;else{if(!(e instanceof t&&e.drawTool._sketchDataType===h.SketchDataType.polygon))return void p.Log.error("传入对象不符合要求,请检查");n=e.sketchStage.entityGraphic}return function(e,t){for(var r=1;r<e.coordinates[0].length;r++)e.coordinates[0][r][0]===e.coordinates[0][r-1][0]&&e.coordinates[0][r][1]===e.coordinates[0][r-1][1]&&(e.coordinates[0].splice(r,1),r--);var n=i._sketchTopologyTool.splitPolygonByPolyline(e,t);return n.length>0&&(i.view.allLayerViews.items.filter(function(e){return e.id===i._layer.id}).length>0?n.forEach(function(e){e=h.Projection.project(e,i._spatialReference),i.start(e)}):i._layer.once("layerview-created",function(){n.forEach(function(e){e=h.Projection.project(e,i._spatialReference),i.start(e)})})),n}(n,r)}},{key:"drawPolylineToPolygon",value:function(e){var t,r=this,n=this;this._drawTool&&(this._drawTool._removeEditGraphics(),this._drawTool._stopAll(),this._drawTools=[],this._undoRedoManager.reset()),this._drawTool=new I.default((t={view:this.view,layer:this._layer,sketchInnerLayer:this._sketchInnerLayer},(0,i.default)(t,"layer",this._sketchInnerLayer),(0,i.default)(t,"undoRedoManager",this._undoRedoManager),(0,i.default)(t,"elevationInfo",this.elevationInfo),(0,i.default)(t,"_sketchEditor",this),(0,i.default)(t,"snapAndReferGeometries",e),(0,i.default)(t,"arcType",this.arcType),(0,i.default)(t,"_getCenterCoordinate",this._getCenterCoordinate),t)),this._drawTool.start(),this._drawTool.on("drawn",function(e){e.geometry&&(e.geometry instanceof y.Polygon?n.start(e.geometry):e.geometry.coordinates.forEach(function(e){var t=new y.Polygon({coordinates:e,spatialReference:r._spatialReference});n.start(t)}))})}},{key:"undo",value:function(){if(this._editable){var e=this._undoRedoManager.undo();return e?(this._updateByStage(e,"undo"),this._fireUndoEvent(e.entityGraphic),e.entityGraphic.geometry):null}}},{key:"redo",value:function(){if(this._editable){var e=this._undoRedoManager.redo();return e?(this._updateByStage(e,"redo"),this._fireRedoEvent(e.entityGraphic),e.entityGraphic.geometry):null}}},{key:"canUndo",value:function(){return this._undoRedoManager.canUndo()}},{key:"canRedo",value:function(){return this._undoRedoManager.canRedo()}},{key:"select",value:function(e){var t="string"==typeof e?e:e.id,r=this._layer._getFeatureById(t);if(!(0,p.isNull)(r)){var n=this._getCurDrawTool(this._layer.id,t);if(n._editMode===h.SketchEditMode.NONE){if(!(0,p.isNull)(n)&&(0,p.isNull)(n._parent)&&n._editMode===h.SketchEditMode.none){this.fire("selected",{isSelected:!0,selectedDrawTool:this._drawTool,selectedGeometry:this._drawTool.sketchStage.entityGraphic.geometry},this);var i=new P.SketchEditorEvent({type:h.SketchEditorEventType.update,target:this,toolEventInfo:null,state:h.SketchEditorState.start,feature:this._drawTool.sketchStage.entityGraphic,geometry:this._drawTool.sketchStage.entityGraphic.geometry});this.fire(h.SketchEditorEventType.update,i)}n.hitTestFeature(n.sketchStage.entityGraphic,event)}}}},{key:"destroy",value:function(){this._removeSketchEvent(),this.stop(),this._remove(),this._removeTipText(this._sketchInnerLayer),this.view=null,this._spatialReference=null,this._layer=null,this._sketchOuterLayer=null,this._sketchInnerLayer.removeAll(),this._sketchInnerLayer=null,this.sketchStyle=new g.default,this._editable=!0,this.isSimple=!1,this.snapOption={},this.snapAndReferGeometries=[],this.measureOption=null,this._drawTool=null,this._drawTools=[],this._sketchDataType=null,this._sketchTopologyTool={},this._undoRedoManager=new T.default,this._editorState=null,this._sketchSnappingTool=null}},{key:"_updateByStage",value:function(e,t){var r=this;this._drawTool.sketchStage.getAllFeatures().forEach(function(e){r._drawTool._removeFeatureFromLayer(e,r._sketchInnerLayer)}),this._drawTool._removeFeatureFromLayer(this._drawTool.sketchStage.entityGraphic,this._layer),this._drawTool._setSketchStage(e),e.getAllFeatures().forEach(function(n){var i=r._updateDrawToolByFeature(n);if(i)if(i._editMode===h.SketchEditMode.drawing)if(n.id===e.entityGraphic.id){var o=n.clone(),a=[],s=i._currentMovePoint;if(s){if(i.vertexNum&&("undo"===t?i.vertexNum--:"redo"===t&&i.vertexNum++),"Polygon"===o.geometry.type){a=o.geometry.coordinates[0];var u=i.vertexNum||0;1===u?(a[1]=s.coordinates,a[2]=s.coordinates):2===u||1===u?a[2]=s.coordinates:a.splice(a.length-1,0,s.coordinates)}else"LineString"===o.geometry.type&&(a=o.geometry.coordinates,1===i.vertexNum?a[1]=s.coordinates:a[a.length]=s.coordinates);i.sketchStage.entityGraphic=o,i._addFeatureToLayer(o,r._layer)}}else i._addFeatureToLayer(n,r._sketchInnerLayer);else n.id===e.entityGraphic.id?i._addFeatureToLayer(n,r._layer):i._addFeatureToLayer(n,r._sketchInnerLayer)})}},{key:"_updateDrawToolByFeature",value:function(e){for(var t=null,r=this._drawTool._drawTools,n=0;n<r.length;n++)if(r[n].sketchStage.entityGraphic.id===e.id){r[n].sketchStage.entityGraphic=e,t=r[n];break}return t}},{key:"_selectEvent",value:function(){var e=this;this._drawTool.on("selected",function(t){var r=t.isSelected?e:null;e.fire("selected",{selectedSketch:r,isSelected:t.isSelected},e)})}},{key:"_drawEvent",value:function(){var e=this;this._drawTool.on("drawn",function(t){e.fire("drawn",{geometry:t.geometry,feature:t.feature},e)}),this._drawTool.on("drawn-vertex",function(t){e.fire("drawn-vertex",{geometry:t.geometry,feature:t.feature},e)})}},{key:"_sketchEvent",value:function(){var e=this;this._drawTool&&(this._drawTool.on(h.SketchEditorEventType.create,function(t){t.state===h.SketchEditorState.complete&&(e._drawTool&&(e._drawTool.state="drawn",e._bindHit(e._drawTool,void 0,e._layer),e._drawTool._stopAll(),e._drawTool=null),e._undoRedoManager.reset(),e._editable?e._isAddTip&&e._addOrUpdateTipText((0,E.getTipTextByEditOption)("before-edit",e._tipText,e._editOption),e._sketchInnerLayer):e._tipTextGraphics[0].visible=!1),e.fire(h.SketchEditorEventType.create,t,e)}),this._drawTool.on(h.SketchEditorEventType.update,function(t){t.state===h.SketchEditorState.complete&&(e._undoRedoManager.reset(),e._drawTool&&(e._drawTool=null)),e.fire(h.SketchEditorEventType.update,t,e)}))}},{key:"_addFeatureToCustomGraphicLayer",value:function(e){this._layer&&(this.view._map.findLayerById(this._layer.id)&&this._sketchInnerLayer.remove(e),this._layer.graphics.find(function(t){return e.id===t.id})?(this._layer.remove(e),this._layer.add(e)):this._layer.add(e))}},{key:"_removeFeatureToCustomGraphicLayer",value:function(e){this._layer&&this.view._map.findLayerById(this._layer.id)&&this._layer.graphics.find(function(t){return e.id===t.id})&&(this._layer.remove(e),this._sketchInnerLayer.add(e))}},{key:"_removeSketchEvent",value:function(){this.off(h.SketchEditorEventType.create),this.off(h.SketchEditorEventType.update),this.off(h.SketchEditorEventType.undo),this.off(h.SketchEditorEventType.redo),this.off(h.SketchEditorEventType.remove),this.off("drawn"),this.off("selected"),this._removeHitTestSketchEvent()}},{key:"_removeHitTestSketchEvent",value:function(){}},{key:"_fireUndoEvent",value:function(e){var t=new P.SketchEditorEvent({type:h.SketchEditorEventType.undo,feature:e,geometry:e.geometry});this.fire(h.SketchEditorEventType.undo,t,this)}},{key:"_fireRedoEvent",value:function(e){var t=new P.SketchEditorEvent({type:h.SketchEditorEventType.redo,feature:e,geometry:e.geometry});this.fire(h.SketchEditorEventType.redo,t,this)}},{key:"_fireRemoveEvent",value:function(e){var t=new P.SketchEditorEvent({type:h.SketchEditorEventType.remove,feature:e,geometry:e.geometry});this.fire(h.SketchEditorEventType.remove,t,this)}},{key:"_fireCancelDrawEvent",value:function(){var e=new P.SketchEditorEvent({type:h.SketchEditorEventType.create,eventInfo:null,state:h.SketchEditorState.cancel});this.fire(h.SketchEditorEventType.create,e,self)}},{key:"getGeometry",value:function(){return this._drawTool?this._drawTool.sketchStage.entityGraphic.geometry:null}},{key:"setSnapOption",value:function(e){this.snapOption=(0,o.default)(this.snapOption,e),this._sketchSnappingTool.setSnapOption(e)}},{key:"getSnapOption",value:function(){return this.snapOption}},{key:"setSnapAndReferGeometries",value:function(e){this.snapAndReferGeometries=e,this._drawTool&&this._drawTool.setSnapAndReferGeometries()}},{key:"getSnapAndReferGeometries",value:function(){return this.snapAndReferGeometries}},{key:"_bindHit",value:function(){}},{key:"_getGraphicsLayer",value:function(e){var t=void 0;return e instanceof L.GraphicsLayer?t=e:e instanceof L.GroupLayer&&(t=e.allLayers.find(function(e){return e instanceof L.GraphicsLayer})),t}},{key:"_getTipTextGraphicsLayer",value:function(e){var t=void 0;if(e instanceof L.GraphicsLayer)t=e;else if(e instanceof L.GroupLayer){var r=e.allLayers.filter(function(e){return e instanceof L.GraphicsLayer});r&&r.length>0&&(t=r._items[r.length-1])}return t}},{key:"_addOrUpdateTipText",value:function(e,t,r){if(e&&(t=t||this._sketchInnerLayer,this.sketchStyle&&this.sketchStyle.tipTextStyle)){var n=this.sketchStyle.tipTextStyle.clone();if(n.id=(0,p.getGUID)(),e.text&&(n.text=e.text),e.lineWidth&&(n.lineWidth=e.lineWidth),this._tipTextGraphics&&this._tipTextGraphics.length>0)this._tipTextGraphics[0].symbol=n;else{var i=new h.Feature({geometry:new y.Point({coordinates:[0,0]}),symbol:n,visible:!1}),o=this._getTipTextGraphicsLayer(t);o&&o.add(i),this._tipTextGraphics[0]=i,this._moveTipText(),r&&this._tipTextEventHandler(r)}}}},{key:"_moveTipText",value:function(){var e=this,t=function(t){if(t&&t.x&&t.y){var r={x:t.x,y:t.y},n=e.view.toMap({x:r.x,y:r.y});e._tipTextGraphics&&e._tipTextGraphics.length>0&&(e._tipTextGraphics[0].geometry=n)}};this._tipTextEventHandler=t,this.view.on(d.ViewEventType.pointerMove,t)}},{key:"_stopTipText",value:function(){this._tipTextEventHandler&&(this.view.off(d.ViewEventType.pointerMove,this._tipTextEventHandler),this._tipTextEventHandler=void 0)}},{key:"_removeTipText",value:function(e){if(e=e||this._sketchInnerLayer,this._tipTextGraphics&&this._tipTextGraphics.length>0){var t=this._getTipTextGraphicsLayer(e);t&&t.remove(this._tipTextGraphics[0]),this._stopTipText(),this._tipTextGraphics=[]}}}]),t}(h.Evented);(0,n.default)(N.prototype,{editable:{get:function(){return this._editable},set:function(e){this._editable=e}},isShowTip:{get:function(){return this._isShowTip},set:function(e){this.setIsShowTip(e)}},sketchDataType:{get:function(){return this._sketchDataType},set:function(e){this._sketchDataType=e}},layer:{get:function(){return this._sketchOuterLayer},set:function(e){this.setLayer(e)}}}),t.default=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=m(r(10)),i=m(r(3)),o=m(r(0)),a=m(r(2)),s=m(r(4)),u=m(r(7)),l=m(r(5)),c=r(8),f=r(9),h=m(r(52)),d=m(r(51)),p=(m(r(73)),m(r(45))),y=r(1),g=r(85);function m(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r._initEvent(),r.type="sketchPolylineDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r._tipText=r._getTipTextObject(),r._editOption=r._getEditOption(),r}return(0,l.default)(t,e),(0,a.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("vertexScale",this._processEvent),this.on("midVertexScale",this._processEvent),this.on("vertexMove",this._processEvent),this.on("midVertexAdd",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=c.SketchEditMode.drawing,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,i=!1,o=null,a=[],s=[];this.vertexNum=0;var u=[];this.cursorStyle=this.view.cursor,(0,y.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var l=this._getInteractiveDom(),h=this.extensionOptions&&this.extensionOptions.vertexNumber?this.extensionOptions.vertexNumber:null;this._setInitSnap(),this._fireStartDrawEvent();var p=function n(i){if(i&&i.x&&i.y){e._stopInitSnap(),clearTimeout(null);var a={x:i.x,y:i.y};(new Date).getTime(),e._editMode=c.SketchEditMode.drawing;var l;l=e._snapPoint?e._snapPoint:e.view.toMap({x:a.x,y:a.y});var p=e.vertexNum+1;if(1===p)s=[l.coordinates],(o=e._getFeature()).geometry.coordinates=[s[0],s[0]];else if(2===p){var g=o.geometry.coordinates[0];if(g&&g[0]===l.coordinates[0]&&g[1]===l.coordinates[1])return y.Log.info("相邻两顶点重复!");s=[o.geometry.coordinates[0],l.coordinates],o.geometry.coordinates=s,e._polylineGeometry=o}else{var m=(s=o.geometry.coordinates)[s.length-2];if(m&&m[0]===l.coordinates[0]&&m[1]===l.coordinates[1])return y.Log.info("相邻两顶点重复!");if(s[s.length-1]=l.coordinates,e._sketchEditor.isSimple){var v=new f.LineString({coordinates:s,spatialReference:e._spatialReference,extensionOptions:{arcType:e.arcType}});if(!f.GeometryEngine.isSimple(v))return e._fireUnsimpleDraw(),y.Log.info("该坐标构成的几何不符合拓扑规范!")}o.geometry.coordinates=s}if(e.vertexNum=p,h&&p>=h)e.view.off(c.ViewEventType.immediateClick,n);else{var _=new d.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});_.addFeature(l,void 0,void 0,e._sketchInnerLayer),e._drawTools.push(_);var S=_.sketchStage.entityGraphic;e.sketchStage.entityGraphic=o,e.sketchStage.vertexGraphics.push(S),o&&(r=t=!0),s.length>1&&u.push(function(e,t){return(e[1]-t[1])/(e[0]-t[0])}(s[s.length-1],s[s.length-2])),e.fire("drawn-vertex",{geometry:_.sketchStage.entityGraphic.geometry,feature:_.sketchStage.entityGraphic},self),e._fireDrawVertexEvent(o),e.undoRedoManager&&e.undoRedoManager.addProcess("add-vertex",e.sketchStage,e._editMode)}}},g=!0,m=function(u){if(u&&u.x&&u.y&&t&&!i){clearTimeout(null),i=!0,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var c={x:u.x,y:u.y},f=e.view.toMap({x:c.x,y:c.y});o=e.sketchStage.entityGraphic;var d=h&&e.vertexNum===h?e.vertexNum-1:e.vertexNum;s=1===d?[o.geometry.coordinates[0]]:o.geometry.coordinates.slice(0,o.geometry.coordinates.length-1),d>=1&&(e._snapPoint=e.getSnapGraphics(f,s)),e._snapPoint&&(f=e._snapPoint),e._currentMovePoint=f,1===d?o.geometry.coordinates[1]=f.coordinates:d>1&&(r?(o.geometry.coordinates.push(f.coordinates),r=!1):o.geometry.coordinates[o.geometry.coordinates.length-1]=f.coordinates),o.geometry._pixelCoords=a,o.geometry.coordinates=JSON.parse((0,n.default)(o.geometry.coordinates)),g&&(e._addFeatureToLayer(o,e.layer),g=!1),i=!1;var p=e._getInteractiveDom();l=l.concat(p),e._removeInteractiveStyle(p),e._fireChangeCursorEvent(o)}},v=function(t){return clearTimeout(null),clearTimeout(null),(o=e.sketchStage.entityGraphic)&&e._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(o.geometry)?(e._fireUnsimpleDraw(),y.Log.info("该坐标构成的几何不符合拓扑规范!")):e.vertexNum<2&&e.sketchStage.entityGraphic?y.Log.info("线几何顶点少于两个,不符合规范!"):(s=[],a=[],e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=c.SketchEditMode.none,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(l),e.fire("drawn",{geometry:o.geometry,feature:o},self),e._fireStopDrawEvent(o),e.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.vertexNum=0,e.sketchStage.vertexGraphics=[],e._currentMovePoint=void 0,e.undoRedoManager._initDrawProcess(),t.native&&t.native.preventDefault&&t.native.preventDefault(),t.innerViewerEvent&&t.innerViewerEvent.preventDefault&&t.innerViewerEvent.preventDefault(),e.view._mapActionControl("double-click-zoom",!0),void e.view._mapActionControl("video-map-active",!1))};this._drawEventHandlers.push(p,m,v),this.view.on(c.ViewEventType.immediateClick,p),this.view.on(c.ViewEventType.pointerMove,m),this.view.on(c.ViewEventType.doubleClick,v)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=new c.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[1,1]]);var t=new f.LineString({coordinates:e,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),r=this.sketchStyle.lineStyle.clone();return r.id=(0,y.getGUID)(),new c.Feature({geometry:t,symbol:r,elevationInfo:this.elevationInfo})}},{key:"selectFeature",value:function(e){(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"selectFeature",this).call(this,e)}},{key:"selectFeatureVertex",value:function(e){var t=this;!this._parent&&this._isAddTip&&this._updateTipText((0,g.getTipTextByEditOption)("edit-vertex",this._tipText,this._editOption),this._sketchInnerLayer),this._clearEditGraphics(1);var r=[],n=[];e.geometry.coordinates.forEach(function(i,o){var a=new d.default({view:t.view,layer:t.layer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t}),s=new f.Point({coordinates:i,spatialReference:t._spatialReference});if(t._drawTools.push(a),a.addFeature(s,void 0,{vertexIndex:o},t._sketchInnerLayer),r.push(a),t.sketchStage.vertexGraphics.push(a.sketchStage.entityGraphic),o>0){var u=new d.default({view:t.view,layer:t.layer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});n.push(u);var l,c=e.geometry.coordinates[o-1],h=t._getCenterCoordinate(i,c);l=new f.Point({coordinates:h,spatialReference:t._spatialReference}),t._drawTools.push(u),u.addFeature(l,void 0,{vertexIndex:o-1,type:"midVertex"},t._sketchInnerLayer),t.sketchStage.midVertexGraphics.push(u.sketchStage.entityGraphic)}});var i=r.concat(n);this._otherDrawTools=this._otherDrawTools?this._otherDrawTools.concat(i):i,this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage,this.undoRedoManager.addProcess)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type?this._handlerMidVertexScaleEvent(e):"vertexMove"===e.type?this._handlerVertexMoveEvent(e):"midVertexAdd"===e.type&&this._handlerMidVertexAddEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this,r=[];this.sketchStage.entityGraphic.geometry.coordinates.forEach(function(n){r.push(t.getPanCoordinates(n,e.deltaPosition.x,e.deltaPosition.y))});var n=new f.LineString({coordinates:r,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});this.sketchStage.entityGraphic.geometry=n,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new f.LineString({coordinates:i,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}else"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_handlerMidVertexScaleEvent",value:function(e){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new f.LineString({coordinates:i,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_resetSelectBoxDirection",value:function(){var e=this,t=this.sketchStage.entityGraphic.geometry.extent;this.sketchStage.selectBoxVertexGraphics.forEach(function(r){r.attributes&&("ne"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymax]:"se"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymin]:"sw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymin]:"nw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymax]:"e"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]):"s"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymin],[t.xmin,t.ymin]):"w"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]):"n"===r.attributes.direction&&(r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymax],[t.xmax,t.ymax])))})}},{key:"_handlerVertexMoveEvent",value:function(e){this.sketchStage.currentVertexIndex=e.vertexIndex;var t=this.sketchStage.entityGraphic,r=t.geometry.coordinates,i=JSON.parse((0,n.default)(r));i[e.vertexIndex]=e.movePoint.coordinates;var o=new f.LineString({coordinates:i,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(o))return this._fireUnsimpleUpdate(),y.Log.info("该坐标构成的几何不符合拓扑规范!");if(t.geometry=o,this._otherDrawTools){if(0===e.vertexIndex){var a=this.sketchStage.midVertexGraphics[e.vertexIndex],s=i[e.vertexIndex],u=i[e.vertexIndex+1];a.geometry.coordinates=this._getCenterCoordinate(s,u),a.geometry=new f.Point({coordinates:a.geometry.coordinates,spatialReference:this._spatialReference})}else if(e.vertexIndex===i.length-1){var l=this.sketchStage.midVertexGraphics[e.vertexIndex-1],c=i[e.vertexIndex-1],h=i[e.vertexIndex];l.geometry.coordinates=this._getCenterCoordinate(c,h),l.geometry=new f.Point({coordinates:l.geometry.coordinates,spatialReference:this._spatialReference})}else{var d=this.sketchStage.midVertexGraphics[e.vertexIndex],p=this.sketchStage.midVertexGraphics[e.vertexIndex-1],g=i[e.vertexIndex-1],m=i[e.vertexIndex],v=i[e.vertexIndex+1];d.geometry.coordinates=this._getCenterCoordinate(v,m),p.geometry.coordinates=this._getCenterCoordinate(g,m)}this.sketchStage.vertexGraphics[e.vertexIndex].geometry.coordinates=i[e.vertexIndex]}}},{key:"_handlerMidVertexAddEvent",value:function(e){var t=this;if("changeFeature"===e.action&&(this.sketchStage.entityGraphic.geometry.coordinates.splice(e.vertexIndex+1,0,e.point.coordinates),this.sketchStage.entityGraphic.geometry=new f.LineString({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}})),"moveMidVertex"===e.action){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));r[e.vertexIndex+1]=e.movePoint.coordinates;var i=new f.LineString({coordinates:r,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(i))return this._fireUnsimpleUpdate(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.currentVertexIndex=e.vertexIndex,this.sketchStage.entityGraphic.geometry.coordinates=r,this.sketchStage.midVertexGraphics[e.vertexIndex].geometry.coordinates=e.movePoint.coordinates}if("addVertex"===e.action){var o=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),a=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(a),a.addFeature(e.point,void 0,void 0,this._sketchInnerLayer),this.sketchStage.vertexGraphics.splice(e.vertexIndex+1,0,a.sketchStage.entityGraphic);var s,u=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex];this._getHight;var l=this._getCenterCoordinate(u,e.point.coordinates);s=new f.Point({coordinates:l,spatialReference:this._spatialReference});var c=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(c),c.addFeature(s,void 0,{type:"midVertex"},this._sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,c.sketchStage.entityGraphic);var h,g=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex+2];this._getHight;var m=this._getCenterCoordinate(g,e.point.coordinates);h=new f.Point({coordinates:m,spatialReference:this._spatialReference});var v=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(v),v.addFeature(h,void 0,{type:"midVertex"},this._sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e.vertexIndex+1,0,v.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools.forEach(function(e){e.sketchStage.entityGraphic.id===o&&t._removeFeatureFromLayer(e.sketchStage.entityGraphic,t._sketchInnerLayer)}),this._otherDrawTools.push(a),this._otherDrawTools.push(c),this._otherDrawTools.push(v)}}},{key:"addMidVertex",value:function(e,t){var r=new d.default;r.addPoint(t),this.sketchStage.midVertexGraphics=r}},{key:"addVertex",value:function(e,t){var r=null;if(--t>-1&&t<=this.sketchStage.midVertexGraphics.length+1){var i=[];if(t<=this.sketchStage.entityGraphic.geometry.coordinates.length-1){if((i=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates))).splice(t,0,e.coordinates),r=new f.LineString({coordinates:i,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=r;var o=void 0,a=void 0,s=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],[s.xmax,s.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var u=[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],this._getCenterCoordinate([s.xmax,s.ymax],[s.xmin,s.ymax]),this._getCenterCoordinate([s.xmax,s.ymin],[s.xmin,s.ymin]),this._getCenterCoordinate([s.xmax,s.ymax],[s.xmax,s.ymin]),this._getCenterCoordinate([s.xmin,s.ymax],[s.xmin,s.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=u[t]})}if(this.sketchStage.vertexGraphics.length>0&&(o=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(o),o.addFeatureByGeometry(e,void 0,void 0,this._sketchInnerLayer),this.sketchStage.vertexGraphics.splice(t,0,o.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})),this.sketchStage.midVertexGraphics.length>0){var l=-1,c=-1,h=null,g=null;if(0===t?(c=0,g=this.sketchStage.entityGraphic.geometry.coordinates[1]):t===this.sketchStage.midVertexGraphics.length+1?(c=this.sketchStage.midVertexGraphics.length-2,g=this.sketchStage.entityGraphic.geometry.coordinates[c]):(l=t-1,c=t+1,h=this.sketchStage.entityGraphic.geometry.coordinates[l],g=this.sketchStage.entityGraphic.geometry.coordinates[c]),l>-1){var m=new f.Point({coordinates:this._getCenterCoordinate(h,e.coordinates),spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[l].geometry.coordinates=m.coordinates}if(c>-1){var v=new f.Point({coordinates:this._getCenterCoordinate(g,e.coordinates),spatialReference:this._spatialReference});a=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(a),a.addFeatureByGeometry(v,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(t,0,a.sketchStage.entityGraphic)}this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})}o&&this._otherDrawTools.push(o),a&&this._otherDrawTools.push(a),this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireAddVertexEventByFun(o.sketchStage.entityGraphic,this._parent)}return r}}},{key:"updateVertex",value:function(e,t){var r=null;if(--t>-1){var i=this.sketchStage.entityGraphic.geometry.coordinates.length;if(t<i){var o=this.sketchStage.entityGraphic,a=JSON.parse((0,n.default)(o.geometry.coordinates));if(this.currentVertexIndex=t,r=e.coordinates,o.geometry=new f.LineString({coordinates:o.geometry.coordinates,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=r;var s=o.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],[s.xmax,s.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var u=[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],this._getCenterCoordinate([s.xmax,s.ymax],[s.xmin,s.ymax]),this._getCenterCoordinate([s.xmax,s.ymin],[s.xmin,s.ymin]),this._getCenterCoordinate([s.xmax,s.ymax],[s.xmax,s.ymin]),this._getCenterCoordinate([s.xmin,s.ymax],[s.xmin,s.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=u[t]})}if(this.sketchStage.vertexGraphics.length>0&&(this.sketchStage.vertexGraphics[t].geometry.coordinates=e.coordinates),this.sketchStage.midVertexGraphics.length>0){var l=a[t-1],c=a[t],h=a[t+1],d=-1,p=-1;if(0===t?d=t:t===i-1?p=t-1:(d=t,p=t-1),d>-1){var g=this.sketchStage.midVertexGraphics[d];g.geometry.coordinates=this._getCenterCoordinate(h,c),g.geometry=new f.Point({coordinates:g.geometry.coordinates,spatialReference:this._spatialReference})}if(p>-1){var m=this.sketchStage.midVertexGraphics[p];m.geometry.coordinates=this._getCenterCoordinate(l,c),m.geometry=new f.Point({coordinates:m.geometry.coordinates,spatialReference:this._spatialReference})}}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireUpdateVertexByFun(this.sketchStage.entityGraphic,this._parent)}return r}},{key:"removeVertex",value:function(e){var t=null;if(--e>-1){var r=this.sketchStage.entityGraphic.geometry.coordinates.length;if(r>2&&e<r){var i=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));if(i.splice(e,1),t=new f.LineString({coordinates:i,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!f.GeometryEngine.isSimple(t))return this._fireUnsimpleUpdateByFun(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=t;var o=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[o.xmax,o.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var a=[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],this._getCenterCoordinate([o.xmax,o.ymax],[o.xmin,o.ymax]),this._getCenterCoordinate([o.xmax,o.ymin],[o.xmin,o.ymin]),this._getCenterCoordinate([o.xmax,o.ymax],[o.xmax,o.ymin]),this._getCenterCoordinate([o.xmin,o.ymax],[o.xmin,o.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=a[t]})}if(this.sketchStage.vertexGraphics.length>0){var s=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromLayer(this.sketchStage.vertexGraphics[e],this._sketchInnerLayer),this.sketchStage.vertexGraphics.splice(e,1),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==s)return e})}if(this.sketchStage.midVertexGraphics.length>0){var u=[],l=-1,c=-1;0===e?c=0:e===r-1?c=e-1:(u=[(t.coordinates[e-1][0]+t.coordinates[e][0])/2,(t.coordinates[e-1][1]+t.coordinates[e][1])/2],l=e-1,c=e),l>-1&&(this.sketchStage.midVertexGraphics[l].geometry=new f.Point({coordinates:u,spatialReference:this._spatialReference}));var h=this.sketchStage.vertexGraphics[c].id.toString();this._removeFeatureFromLayer(this.sketchStage.midVertexGraphics[c],this._sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(c,1),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==h)return e})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireRemoveVertexByFun(this.sketchStage.entityGraphic,this._parent)}return t}}]),t}(h.default);t.default=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(3)),i=p(r(0)),o=p(r(2)),a=p(r(4)),s=p(r(7)),u=p(r(5)),l=r(8),c=r(9),f=p(r(52)),h=(p(r(51)),p(r(73)),p(r(45)),p(r(71))),d=r(1);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.type="sketchCircleDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._initEvent(),r._tipText=r._getTipTextObject(),r._editOption=r._getEditOption(),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("circleVertexScale",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=l.SketchEditMode.drawing,this.view._mapActionControl("drag-pan",!1),this.view._mapActionControl("video-map-active",!0);var t=null,r=0,n=null;this.cursorStyle=this.view.cursor,(0,d.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var i=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var o=function(o){if(clearTimeout(null),e._stopInitSnap(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),0===o.button)if("start"===o.action)n=e._snapPoint?e._snapPoint:n||e.view.toMap(o.origin),e._fireDrawVertexEvent();else if("update"===o.action){var a=e.view.toMap({x:o.x,y:o.y});e._snapPoint=e.getSnapGraphics(a),e._snapPoint&&(a=e._snapPoint),r=h.default.planarLength(new c.LineString({coordinates:[n.coordinates,a.coordinates],spatialReference:e._spatialReference})),t?t.geometry.radius=r:(t=e._getFeature(n,r),e._addFeatureToLayer(t,e.layer),e.sketchStage.entityGraphic=t);var s=e._getInteractiveDom();i=i.concat(s),e._removeInteractiveStyle(s),e._fireChangeCursorEvent(t)}else"end"===o.action&&(e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),n=null,e._editMode=l.SketchEditMode.none,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(i),e.fire("drawn",{geometry:t.geometry,feature:t},self),e._fireDrawVertexEvent(t),e._fireStopDrawEvent(t),e.view._mapActionControl("drag-pan",!0),e.view._mapActionControl("video-map-active",!1))};this._drawEventHandlers.push(o),this.view.on(l.ViewEventType.drag,o)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=new l.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e,t){e?e instanceof Array?e=new c.Point({coordinates:e,spatialReference:this._spatialReference}):e instanceof c.Point||(e=new c.Point({coordinates:[0,0],spatialReference:this._spatialReference})):e=new c.Point({coordinates:[0,0],spatialReference:this._spatialReference}),t=void 0!==t?t:0;var r=this._spatialReference.isGeographic?l.RadiusUnit.degrees:l.RadiusUnit.meters,n=new c.Circle({center:e,radius:t,radiusUnit:r,spatialReference:this._spatialReference}),i=this.sketchStyle.fillStyle.clone();return i.id=(0,d.getGUID)(),new l.Feature({geometry:n,symbol:i,elevationInfo:this.elevationInfo})}},{key:"selectFeature",value:function(e){(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"selectFeature",this).call(this,e)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"circleVertexScale"===e.type&&this._handlerCircleVertexScaleEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this.sketchStage.entityGraphic.geometry.center;this.sketchStage.entityGraphic.geometry.center=this.getPanCoordinates(t,e.deltaPosition.x,e.deltaPosition.y),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerCircleVertexScaleEvent",value:function(e){if("scale"===e.action){var t=h.default.planarLength(new c.LineString({coordinates:[this.sketchStage.entityGraphic.geometry.center,[e.movePoint.coordinates[0],this.sketchStage.entityGraphic.geometry.center[1]]],spatialReference:this._spatialReference})),r=this._spatialReference.isGeographic?l.RadiusUnit.degrees:l.RadiusUnit.meters,n=new c.Circle({center:this.sketchStage.entityGraphic.geometry.center,radius:t,radiusUnit:r,spatialReference:this._spatialReference});this.sketchStage.entityGraphic.geometry=n,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}else"stop"===e.action&&(this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_resetSelectBoxDirection",value:function(){var e=this,t=this.sketchStage.entityGraphic.geometry.extent;this.sketchStage.selectBoxVertexGraphics.forEach(function(r){if(r.attributes)if("e"===r.attributes.direction){var n=e._sketchEditor._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]);r.geometry.coordinates[0]===n[0]&&r.geometry.coordinates[1]===n[1]&&(r.attributes.direction="w")}else if("w"===r.attributes.direction){var i=e._sketchEditor._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]);r.geometry.coordinates[0]===i[0]&&r.geometry.coordinates[1]===i[1]&&(r.attributes.direction="e")}})}}]),t}(f.default);t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(7)),u=d(r(5)),l=r(8),c=r(9),f=d(r(52)),h=(d(r(51)),d(r(73)),d(r(45)),r(1));function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.type="sketchExtentDrawTool",r._initEvent(),r._drawTools=[r],r._otherDrawTools=[],r._tipText=r._getTipTextObject(),r._editOption=r._getEditOption(),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("vertexScale",this._processEvent),this.on("midVertexScale",this._processEvent),this.on("vertexMove",this._processEvent),this.on("midVertexAdd",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=l.SketchEditMode.drawing,this.view._mapActionControl("drag-pan",!1),this.view._mapActionControl("video-map-active",!0);var t=null,r=null;this.cursorStyle=this.view.cursor,(0,h.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var n=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var i=function(i){if(clearTimeout(null),e.view.off(l.ViewEventType.pointerMove,e._handlerInitMouseMove),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),0===i.button)if("start"===i.action)r=e._snapPoint?e._snapPoint:r||e.view.toMap(i.origin),e._fireDrawVertexEvent();else if("update"===i.action){var o=e.view.toMap({x:i.x,y:i.y});e._snapPoint=e.getSnapGraphics(o),e._snapPoint&&(o=e._snapPoint);var a=Math.min(r.coordinates[0],o.coordinates[0]),s=Math.min(r.coordinates[1],o.coordinates[1]),u=Math.max(r.coordinates[0],o.coordinates[0]),c=Math.max(r.coordinates[1],o.coordinates[1]);t?(t.geometry.xmin=a,t.geometry.ymin=s,t.geometry.xmax=u,t.geometry.ymax=c):(t=e._getFeature(a,s,u,c),e._addFeatureToLayer(t,e.layer),e.sketchStage.entityGraphic=t);var f=e._getInteractiveDom();n=n.concat(f),e._removeInteractiveStyle(f),e._fireChangeCursorEvent(t)}else"end"===i.action&&(e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=l.SketchEditMode.none,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(n),e.fire("drawn",{geometry:t.geometry,feature:t},self),e._fireDrawVertexEvent(t),e._fireStopDrawEvent(t),e.view._mapActionControl("drag-pan",!0),e.view._mapActionControl("video-map-active",!1))};this._drawEventHandlers.push(i),this.view.on(l.ViewEventType.drag,i)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=new l.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e,t,r,n){e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:0,n=void 0!==n?n:0;var i=new c.Extent({xmin:e,ymin:t,xmax:r,ymax:n,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),o=this.sketchStyle.fillStyle.clone();return o.id=(0,h.getGUID)(),new l.Feature({geometry:i,symbol:o,elevationInfo:this.elevationInfo})}},{key:"selectFeature",value:function(e){(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"selectFeature",this).call(this,e)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type&&this._handlerMidVertexScaleEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this.sketchStage.entityGraphic.geometry;t.xmin+=e.deltaPosition.x,t.ymin+=e.deltaPosition.y,t.xmax+=e.deltaPosition.x,t.ymax+=e.deltaPosition.y,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){var t=this.sketchStage.entityGraphic.geometry;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=[[t.xmin,t.ymin],[t.xmax,t.ymax]];this.sketchStage.entityGraphic.attributes.lastCoordinates=r}this.sketchStage.entityGraphic.attributes=this.sketchStage.entityGraphic.attributes?this.sketchStage.entityGraphic.attributes:{};var n=this.getScaleCoordinates([[t.xmin,t.ymin],[t.xmax,t.ymax]],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t.xmin=n[0][0],t.ymin=n[0][1],t.xmax=n[1][0],t.ymax=n[1][1],this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}else"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}))}},{key:"_handlerMidVertexScaleEvent",value:function(e){if("scale"===e.action){var t=this.sketchStage.entityGraphic.geometry;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=[[t.xmin,t.ymin],[t.xmax,t.ymax]];this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getMidScaleCoordinates([[t.xmin,t.ymin],[t.xmax,t.ymax]],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t.xmin=n[0][0],t.ymin=n[0][1],t.xmax=n[1][0],t.ymax=n[1][1],this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}else"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}))}}]),t}(f.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(10)),i=g(r(3)),o=g(r(0)),a=g(r(2)),s=g(r(4)),u=g(r(7)),l=g(r(5)),c=r(8),f=r(9),h=g(r(52)),d=g(r(51)),p=(g(r(73)),g(r(45))),y=r(1);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r._initEvent(),r.type="sketchFreehandPolylineDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r._tipText=r._getTipTextObject(),r._editOption=r._getEditOption(),r}return(0,l.default)(t,e),(0,a.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("vertexScale",this._processEvent),this.on("midVertexScale",this._processEvent),this.on("vertexMove",this._processEvent),this.on("midVertexAdd",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=c.SketchEditMode.drawing,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,i=null,o=[],a=[];this.vertexNum=0;var s=[],u="";this.cursorStyle=this.view.cursor,(0,y.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var l=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var f=function r(n){if(n&&n.x&&n.y){e._stopInitSnap(),clearTimeout(null),e._editMode=c.SketchEditMode.drawing;var o,l={x:n.x,y:n.y};o=e._snapPoint?e._snapPoint:e.view.toMap({x:l.x,y:l.y}),e.vertexNum++,1===e.vertexNum?(a=[o.coordinates],(i=e._getFeature()).geometry.coordinates=[a[0],a[0]]):2===e.vertexNum?(a=[i.geometry.coordinates[0],o.coordinates],i.geometry.coordinates=a):((a=i.geometry.coordinates)[a.length-1]=o.coordinates,i.geometry.coordinates=a),"move"===u&&a[a.length-1][0]===a[a.length-2][0]&&a[a.length-1][1]===a[a.length-2][1]&&a.splice(a.length-1);var f=new d.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});f.addFeature(o,void 0,void 0,e._sketchInnerLayer);var h=f.sketchStage.entityGraphic;e.sketchStage.entityGraphic=i,e.sketchStage.vertexGraphics.push(h),t=!0,a.length>1&&s.push(function(e,t){return(e[1]-t[1])/(e[0]-t[0])}(a[a.length-1],a[a.length-2])),u="click",e.fire("drawn-vertex",{geometry:f.sketchStage.entityGraphic.geometry,feature:f.sketchStage.entityGraphic},self),e.view.off(c.ViewEventType.immediateClick,r)}},h=!0,p=function(s){if(s&&s.x&&s.y&&t&&!r){clearTimeout(null),r=!0,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var c={x:s.x,y:s.y},f=e.view.toMap({x:c.x,y:c.y});e.vertexNum>0&&(e._snapPoint=e.getSnapGraphics(f,[i.geometry.coordinates[0]])),e._snapPoint&&(f=e._snapPoint),e.vertexNum,a.push(f.coordinates),i.geometry.coordinates=a,e.vertexNum++,e.sketchStage.entityGraphic=i,i.geometry._pixelCoords=o,i.geometry.coordinates=JSON.parse((0,n.default)(a)),h&&(e._addFeatureToLayer(i,e.layer),h=!1),r=!1,u="move";var d=e._getInteractiveDom();l=l.concat(d),e._removeInteractiveStyle(d),e._fireDrawVertexEvent(i)}},g=function(n){clearTimeout(null),clearTimeout(null),a=[],o=[],e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=c.SketchEditMode.none,r=!1,t=!1,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(l),e.fire("drawn",{geometry:i.geometry,feature:i},self),e._fireStopDrawEvent(i),e.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.vertexGraphics=[],n.native&&n.native.preventDefault&&n.native.preventDefault(),n.innerViewerEvent&&n.innerViewerEvent.preventDefault&&n.innerViewerEvent.preventDefault(),e.view._mapActionControl("double-click-zoom",!0),e.view._mapActionControl("video-map-active",!1),u="double-click"};this._drawEventHandlers.push(f,p,g),this.view.on(c.ViewEventType.immediateClick,f),this.view.on(c.ViewEventType.pointerMove,this.debounce(p,5)),this.view.on(c.ViewEventType.doubleClick,g)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=new c.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[1,1]]);var t=new f.LineString({coordinates:e,spatialReference:this._spatialReference}),r=this.sketchStyle.lineStyle.clone();return r.id=(0,y.getGUID)(),new c.Feature({geometry:t,symbol:r,elevationInfo:this.elevationInfo})}},{key:"selectFeature",value:function(e){(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"selectFeature",this).call(this,e)}},{key:"startPanGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var i=t.mapPoint.coordinates[0],o=t.mapPoint.coordinates[1],a=null;a=c.Projection.project(new f.Point({coordinates:[i,o]}),this._spatialReference);var s=!0,u=setTimeout(function(){s=!1},200);this._parent&&this._parent._mapClickEvent&&this.view.off(c.ViewEventType.immediateClick,this._parent._mapClickEvent);var l=function(t){if(t&&t.x&&t.y&&!n&&r._startPan&&!r._editMode!==c.SketchEditMode.editGraphic&&!s){clearTimeout(null),n=!0;var i={x:t.x,y:t.y},o=r.view.toMap({x:i.x,y:i.y}),u=o.coordinates[0]-a.coordinates[0],l=o.coordinates[1]-a.coordinates[1];if(0!==u||0!==l){var h=[];e.geometry.coordinates[0].forEach(function(e){h.push(r.getPanCoordinates(e,u,l))});var d=new f.Polygon({coordinates:[h],spatialReference:r._spatialReference});a=o,r._dispatchEvent("pan",{deltaPosition:{x:u,y:l}},r),r.updateFeature(d,e),n=!1}else n=!1}},h=function e(){if(!r._editMode!==c.SketchEditMode.editGraphic&&r._startPan){if(s&&r._parent&&r._parent._editMode===c.SketchEditMode.editGraphic)return r._parent._editMode=c.SketchEditMode.editVertex,clearTimeout(u),r._parent.selectFeatureVertex(r._parent.sketchStage.entityGraphic),r._parent&&r._parent._mapClickEvent&&r.view.on(c.ViewEventType.immediateClick,r._parent._mapClickEvent),r._startPan=!1,r.view.off(c.ViewEventType.pointerMove,l),void r.view.off(c.ViewEventType.pointerUp,e);r._editMode=c.SketchEditMode.none,r._startPan=!1,r._enableMapDrag&&r._enableMapDrag(),r.view.off(c.ViewEventType.pointerMove,l),r.view.off(c.ViewEventType.pointerUp,e),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&(r._parent._preventFirstCall=!0,r.view.on(c.ViewEventType.immediateClick,r._parent._mapClickEvent))}};this._hitTestEventHandlers.push(l),this._hitTestEventHandlers.push(h),this.view.on(c.ViewEventType.pointerUp,h),this.view.on(c.ViewEventType.pointerMove,l)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type?this._handlerMidVertexScaleEvent(e):"vertexMove"===e.type?this._handlerVertexMoveEvent(e):"midVertexAdd"===e.type&&this._handlerMidVertexAddEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this,r=[];this.sketchStage.entityGraphic.geometry.coordinates.forEach(function(n){r.push(t.getPanCoordinates(n,e.deltaPosition.x,e.deltaPosition.y))});var n=new f.LineString({coordinates:r,spatialReference:this._spatialReference});this.sketchStage.entityGraphic.geometry=n,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new f.LineString({coordinates:i,spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}else"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_handlerMidVertexScaleEvent",value:function(e){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new f.LineString({coordinates:i,spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_resetSelectBoxDirection",value:function(){var e=this,t=this.sketchStage.entityGraphic.geometry.extent;this.sketchStage.selectBoxVertexGraphics.forEach(function(r){r.attributes&&("ne"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymax]:"se"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymin]:"sw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymin]:"nw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymax]:"e"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]):"s"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymin],[t.xmin,t.ymin]):"w"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]):"n"===r.attributes.direction&&(r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymax],[t.xmax,t.ymax])))})}},{key:"_handlerVertexMoveEvent",value:function(e){this.sketchStage.currentVertexIndex=e.vertexIndex;var t=this.sketchStage.entityGraphic,r=t.geometry.coordinates;if(t.geometry.coordinates[e.vertexIndex]=e.movePoint.coordinates,t.geometry=new f.LineString({coordinates:t.geometry.coordinates,spatialReference:this._spatialReference}),this._otherDrawTools)if(0===e.vertexIndex){var n=this.sketchStage.midVertexGraphics[e.vertexIndex],i=r[e.vertexIndex],o=r[e.vertexIndex+1];n.geometry.coordinates=[(o[0]+i[0])/2,(o[1]+i[1])/2],n.geometry=new f.Point({coordinates:n.geometry.coordinates,spatialReference:this._spatialReference})}else if(e.vertexIndex===r.length-1){var a=this.sketchStage.midVertexGraphics[e.vertexIndex-1],s=r[e.vertexIndex-1],u=r[e.vertexIndex];a.geometry.coordinates=[(s[0]+u[0])/2,(s[1]+u[1])/2],a.geometry=new f.Point({coordinates:a.geometry.coordinates,spatialReference:this._spatialReference})}else{var l=this.sketchStage.midVertexGraphics[e.vertexIndex],c=this.sketchStage.midVertexGraphics[e.vertexIndex-1],h=r[e.vertexIndex-1],d=r[e.vertexIndex],p=r[e.vertexIndex+1];l.geometry.coordinates=[(p[0]+d[0])/2,(p[1]+d[1])/2],l.geometry=new f.Point({coordinates:l.geometry.coordinates,spatialReference:this._spatialReference}),c.geometry.coordinates=[(h[0]+d[0])/2,(h[1]+d[1])/2],c.geometry=new f.Point({coordinates:c.geometry.coordinates,spatialReference:this._spatialReference})}}},{key:"_handlerMidVertexAddEvent",value:function(e){var t=this;if("changeFeature"===e.action&&(this.sketchStage.entityGraphic.geometry.coordinates.splice(e.vertexIndex+1,0,e.point.coordinates),this.sketchStage.entityGraphic.geometry=new f.LineString({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference})),"moveMidVertex"===e.action&&(this.sketchStage.currentVertexIndex=e.vertexIndex,this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex+1]=e.movePoint.coordinates,this.sketchStage.entityGraphic.geometry=new f.LineString({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference})),"addVertex"===e.action){var r=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),n=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(n),n.addFeature(e.point),this.sketchStage.vertexGraphics.splice(e.vertexIndex+1,0,n.sketchStage.entityGraphic);var i,o=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex],a=null;this._getHight&&(a=0),i=a?new f.Point({coordinates:[(o[0]+e.point.coordinates[0])/2,(o[1]+e.point.coordinates[1])/2,a],spatialReference:this._spatialReference}):new f.Point({coordinates:[(o[0]+e.point.coordinates[0])/2,(o[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var s=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(s),s.addFeature(i,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,s.sketchStage.entityGraphic);var u,l=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex+2],c=null;this._getHight&&(c=0),u=c?new f.Point({coordinates:[(l[0]+e.point.coordinates[0])/2,(l[1]+e.point.coordinates[1])/2,c],spatialReference:this._spatialReference}):new f.Point({coordinates:[(l[0]+e.point.coordinates[0])/2,(l[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var h=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(h),h.addFeature(u,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(e.vertexIndex+1,0,h.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools.forEach(function(e){e.sketchStage.entityGraphic.id===r&&t._removeFeatureFromLayer(e.sketchStage.entityGraphic,t._sketchInnerLayer)}),this._otherDrawTools.push(n),this._otherDrawTools.push(s),this._otherDrawTools.push(h)}}},{key:"addMidVertex",value:function(e,t){var r=new d.default;r.addPoint(t),this.sketchStage.midVertexGraphics=r}},{key:"addVertex",value:function(e,t){if(--t>-1&&t<=this.sketchStage.midVertexGraphics.length+1){var r=[];if(t<=this.sketchStage.entityGraphic.geometry.coordinates.length-1){(r=this.sketchStage.entityGraphic.geometry.coordinates).splice(t,0,e.coordinates),this.sketchStage.entityGraphic.geometry=new f.LineString({coordinates:r,spatialReference:this._spatialReference});var n=void 0,i=void 0,o=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[o.xmax,o.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var a=[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[(o.xmax+o.xmin)/2,o.ymax],[(o.xmax+o.xmin)/2,o.ymin],[o.xmax,(o.ymax+o.ymin)/2],[o.xmin,(o.ymax+o.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=a[t]})}if(this.sketchStage.vertexGraphics.length>0&&(n=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(n),n.addFeatureByGeometry(e),this.sketchStage.vertexGraphics.splice(t,0,n.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})),this.sketchStage.midVertexGraphics.length>0){var s=-1,u=-1,l=null,c=null;if(0===t?(u=0,c=this.sketchStage.entityGraphic.geometry.coordinates[1]):t===this.sketchStage.midVertexGraphics.length+1?(u=this.sketchStage.midVertexGraphics.length-2,c=this.sketchStage.entityGraphic.geometry.coordinates[u]):(s=t-1,u=t+1,l=this.sketchStage.entityGraphic.geometry.coordinates[s],c=this.sketchStage.entityGraphic.geometry.coordinates[u]),s>-1){var h=new f.Point({coordinates:[(l[0]+e.coordinates[0])/2,(l[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[s].geometry.coordinates=h.coordinates}if(u>-1){var y=new f.Point({coordinates:[(c[0]+e.coordinates[0])/2,(c[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});i=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(i),i.addFeatureByGeometry(y,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(t,0,i.sketchStage.entityGraphic)}this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})}n&&this._otherDrawTools.push(n),i&&this._otherDrawTools.push(i),this.undoRedoManager.addProcess("update",this.sketchStage)}return null}}},{key:"updateVertex",value:function(e,t){var r=null;if(--t>-1){var n=this.sketchStage.entityGraphic.geometry.coordinates.length;if(t<n){var i=this.sketchStage.entityGraphic,o=i.geometry.coordinates;i.geometry.coordinates=o,this.currentVertexIndex=t,o[t]=e.coordinates,i.geometry=new f.LineString({coordinates:i.geometry.coordinates,spatialReference:this._spatialReference}),r=i.geometry,this.sketchStage.entityGraphic.geometry=r;var a=i.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],[a.xmax,a.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var s=[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],[(a.xmax+a.xmin)/2,a.ymax],[(a.xmax+a.xmin)/2,a.ymin],[a.xmax,(a.ymax+a.ymin)/2],[a.xmin,(a.ymax+a.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=s[t]})}if(this.sketchStage.vertexGraphics.length>0&&(this.sketchStage.vertexGraphics[t].geometry.coordinates=e.coordinates),this.sketchStage.midVertexGraphics.length>0){var u=o[t-1],l=o[t],c=o[t+1],h=-1,d=-1;if(0===t?h=t:t===n-1?d=t-1:(h=t,d=t-1),h>-1){var p=this.sketchStage.midVertexGraphics[h];p.geometry.coordinates=[(c[0]+l[0])/2,(c[1]+l[1])/2],p.geometry=new f.Point({coordinates:p.geometry.coordinates,spatialReference:this._spatialReference})}if(d>-1){var y=this.sketchStage.midVertexGraphics[d];y.geometry.coordinates=[(u[0]+l[0])/2,(u[1]+l[1])/2],y.geometry=new f.Point({coordinates:y.geometry.coordinates,spatialReference:this._spatialReference})}}}this.undoRedoManager.addProcess("update",this.sketchStage)}return r}},{key:"removeVertex",value:function(e){var t=null;if(--e>-1){var r=this.sketchStage.entityGraphic.geometry.coordinates.length;if(r>2&&e<r){var n=this.sketchStage.entityGraphic.geometry.coordinates;n.splice(e,1),t=new f.LineString({coordinates:n,spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t;var i=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[i.xmax,i.ymax],[i.xmax,i.ymin],[i.xmin,i.ymin],[i.xmin,i.ymax],[i.xmax,i.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var o=[[i.xmax,i.ymax],[i.xmax,i.ymin],[i.xmin,i.ymin],[i.xmin,i.ymax],[(i.xmax+i.xmin)/2,i.ymax],[(i.xmax+i.xmin)/2,i.ymin],[i.xmax,(i.ymax+i.ymin)/2],[i.xmin,(i.ymax+i.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=o[t]})}if(this.sketchStage.vertexGraphics.length>0){var a=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromLayer(this.sketchStage.vertexGraphics[e],this.layer),this.sketchStage.vertexGraphics.splice(e,1),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==a)return e})}if(this.sketchStage.midVertexGraphics.length>0){var s=[],u=-1,l=-1;0===e?l=0:e===r-1?l=e-1:(s=[(t.coordinates[e-1][0]+t.coordinates[e][0])/2,(t.coordinates[e-1][1]+t.coordinates[e][1])/2],u=e-1,l=e),u>-1&&(this.sketchStage.midVertexGraphics[u].geometry=new f.Point({coordinates:s,spatialReference:this._spatialReference}));var c=this.sketchStage.vertexGraphics[l].id.toString();this._removeFeatureFromLayer(this.sketchStage.midVertexGraphics[l],this._sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(l,1),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==c)return e})}}this.undoRedoManager.addProcess("update",this.sketchStage)}return t}}]),t}(h.default);t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(10)),i=g(r(3)),o=g(r(0)),a=g(r(2)),s=g(r(4)),u=g(r(7)),l=g(r(5)),c=r(8),f=r(9),h=g(r(52)),d=g(r(51)),p=(g(r(73)),g(r(45))),y=r(1);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.type="sketchFreehandPolygonDrawTool",r._initEvent(),r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r.vertexNum=0,r._tipText=r._getTipTextObject(),r._editOption=r._getEditOption(),r}return(0,l.default)(t,e),(0,a.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("vertexScale",this._processEvent),this.on("midVertexScale",this._processEvent),this.on("vertexMove",this._processEvent),this.on("midVertexAdd",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=c.SketchEditMode.drawing,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,i=null,o=[],a=null,s=[];this.vertexNum=0;var u=null;this.cursorStyle=this.view.cursor,(0,y.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var l=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var f=function r(n){if(n&&n.x&&n.y){e._stopInitSnap(),clearTimeout(null);var o={x:n.x,y:n.y};if(!(a&&u&&o.x===a.x&&o.y===a.y&&(new Date).getTime()-u<200)){a=o,u=(new Date).getTime(),e._editMode=c.SketchEditMode.drawing;var l;l=e._snapPoint?e._snapPoint:e.view.toMap({x:o.x,y:o.y}),e.vertexNum++,1===e.vertexNum?(s=[l.coordinates],(i=e._getFeature()).geometry.coordinates=[[s[0],s[0],s[0],s[0]]],t=!1):2===e.vertexNum?s=[i.geometry.coordinates[0][0],i.geometry.coordinates[0][1]]:(s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2)).push(l.coordinates),e.sketchStage.entityGraphic=i;var f=new d.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});f.addFeature(l,void 0,void 0,e._sketchInnerLayer),e._drawTools.push(f);var h=f.sketchStage.entityGraphic;e.sketchStage.vertexGraphics.push(h),i&&(t=!0),e.fire("drawn-vertex",{geometry:f.sketchStage.entityGraphic.geometry,feature:f.sketchStage.entityGraphic},self),e.undoRedoManager&&e.undoRedoManager.addProcess("add-vertex",e.sketchStage,e._editMode),e.view.off(c.ViewEventType.immediateClick,r)}}},h=!0,p=function(a){if(a&&a.x&&a.y&&t&&!r){clearTimeout(null),r=!0,i=e.sketchStage.entityGraphic,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var u={x:a.x,y:a.y};o[o.length-1]=u;var c=e.view.toMap({x:u.x,y:u.y});1===e.vertexNum?s=[i.geometry.coordinates[0][0]]:2===e.vertexNum?(i.geometry.coordinates[0][2]=c.coordinates,s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2)):s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2),e.vertexNum>0&&(e._snapPoint=e.getSnapGraphics(c,[i.geometry.coordinates[0][0]])),e._snapPoint&&(c=e._snapPoint),e._currentMovePoint=c,1===e.vertexNum?(i.geometry.coordinates[0][1]=c.coordinates,i.geometry.coordinates[0][2]=c.coordinates,s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2)):2===e.vertexNum?(i.geometry.coordinates[0][2]=c.coordinates,s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-1)):(i.geometry.coordinates[0].splice(i.geometry.coordinates[0].length-1,0,c.coordinates),s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-1)),e.vertexNum++,e.sketchStage.entityGraphic=i,i.geometry.coordinates=[JSON.parse((0,n.default)(i.geometry.coordinates[0]))],h&&(e._addFeatureToLayer(i,e.layer),h=!1),r=!1;var f=e._getInteractiveDom();l=l.concat(f),e._removeInteractiveStyle(f),e._fireDrawVertexEvent(i)}},g=function(r){if(clearTimeout(null),clearTimeout(null),!t)return i=null,s=[],void(o=[]);i=e.sketchStage.entityGraphic,s=[],o=[],t=!1,e.vertexNum=0,e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=c.SketchEditMode.none,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(l),e.fire("drawn",{geometry:i.geometry,feature:i},self),e._fireStopDrawEvent(i),e.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.sketchStage.vertexGraphics=[],e._currentMovePoint=void 0,e.undoRedoManager._initDrawProcess(),r.native&&r.native.preventDefault&&r.native.preventDefault(),r.innerViewerEvent&&r.innerViewerEvent.preventDefault&&r.innerViewerEvent.preventDefault(),e.view._mapActionControl("double-click-zoom",!0),e.view._mapActionControl("video-map-active",!1)};this._drawEventHandlers.push(f,p,g),this.view.on(c.ViewEventType.immediateClick,f),this.view.on(c.ViewEventType.pointerMove,p),this.view.on(c.ViewEventType.doubleClick,g)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.fillStyle?t.fillStyle:this.sketchStyle._fillStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.fillStyle?t.fillStyle:this.sketchStyle._fillStyle;var o=new c.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[0,0],[0,0],[0,0]]);var t=new f.Polygon({coordinates:[e],spatialReference:this._spatialReference}),r=this.sketchStyle.fillStyle.clone();r.id=(0,y.getGUID)();var n=new c.Feature({geometry:t,symbol:r,elevationInfo:this.elevationInfo});return n.isShowArea=this.sketchStyle.isShowArea,n.isShowArea&&(n._textStyle=this.sketchStyle.textStyle),n}},{key:"selectFeature",value:function(e){(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"selectFeature",this).call(this,e)}},{key:"startPanGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var i=null;i=t.mapPoint;var o=!0;setTimeout(function(){o=!1},200),this._parent&&this._parent._mapClickEvent&&this.view.off(c.ViewEventType.immediateClick,this._parent._mapClickEvent);var a=function(t){if(t&&t.x&&t.y&&!n&&r._startPan&&!r._editMode!==c.SketchEditMode.editGraphic&&!o){clearTimeout(null),n=!0;var a={x:t.x,y:t.y},s=r.view.toMap({x:a.x,y:a.y}),u=s.coordinates[0]-i.coordinates[0],l=s.coordinates[1]-i.coordinates[1];if(0!==u||0!==l){var h=[];e.geometry.coordinates[0].forEach(function(e){h.push(r.getPanCoordinates(e,u,l))});var d=new f.Polygon({coordinates:[h],spatialReference:r._spatialReference});i=s,r._dispatchEvent("pan",{deltaPosition:{x:u,y:l}},r),r.updateFeature(d,e),n=!1}else n=!1}},s=function e(){!r._editMode!==c.SketchEditMode.editGraphic&&r._startPan&&(r._editMode=c.SketchEditMode.none,r._startPan=!1,r.view.off(c.ViewEventType.pointerMove,a),r.view.off(c.ViewEventType.pointerUp,e),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage,r._editMode),r._parent&&r._parent._mapClickEvent&&(r._parent._preventFirstCall=!0,r.view.on(c.ViewEventType.immediateClick,r._parent._mapClickEvent)),r.view._mapActionControl("drag-pan",!0))};this._hitTestEventHandlers.push(a),this._hitTestEventHandlers.push(s),this.view.on(c.ViewEventType.pointerUp,s),this.view.on(c.ViewEventType.pointerMove,a)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type?this._handlerMidVertexScaleEvent(e):"circleVertexScale"===e.type?this._handlerCircleVertexScaleEvent(e):"vertexMove"===e.type?this._handlerVertexMoveEvent(e):"midVertexAdd"===e.type&&this._handlerMidVertexAddEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this,r=[];this.sketchStage.entityGraphic.geometry.coordinates[0].forEach(function(n){r.push(t.getPanCoordinates(n,e.deltaPosition.x,e.deltaPosition.y))});var n=new f.Polygon({coordinates:[r],spatialReference:this._spatialReference});this.sketchStage.entityGraphic.geometry=n,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new f.Polygon({coordinates:[i],spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_handlerMidVertexScaleEvent",value:function(e){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new f.Polygon({coordinates:[i],spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_resetSelectBoxDirection",value:function(){var e=this,t=this.sketchStage.entityGraphic.geometry.extent;this.sketchStage.selectBoxVertexGraphics.forEach(function(r){r.attributes&&("ne"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymax]:"se"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymin]:"sw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymin]:"nw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymax]:"e"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]):"s"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymin],[t.xmin,t.ymin]):"w"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]):"n"===r.attributes.direction&&(r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymax],[t.xmax,t.ymax])))})}},{key:"_handlerCircleVertexScaleEvent",value:function(e){if(this._parent&&this._parent.sketchStage.entityGraphic){var t,r=this._parent.sketchStage.entityGraphic.geometry.extent,n=[[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax]];(t=new f.Polygon({coordinates:[[[0,0],[0,0],[0,0],[0,0]]],spatialReference:this._spatialReference})).coordinates=[n],this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}))}}},{key:"_handlerVertexMoveEvent",value:function(e){this.sketchStage.currentVertexIndex=e.vertexIndex;var t=this.sketchStage.entityGraphic,r=t.geometry.coordinates[0];if(t.geometry.coordinates[0][e.vertexIndex]=e.movePoint.coordinates,t.geometry.coordinates[0].length-1===e.vertexIndex?t.geometry.coordinates[0][0]=e.movePoint.coordinates:0===e.vertexIndex&&(t.geometry.coordinates[0][t.geometry.coordinates[0].length-1]=e.movePoint.coordinates),t.geometry=new f.Polygon({coordinates:t.geometry.coordinates,spatialReference:this._spatialReference}),this._otherDrawTools){var n=e.vertexIndex,i=0===n?n-1+this.sketchStage.midVertexGraphics.length:n-1,o=n===this.sketchStage.midVertexGraphics.length-1?0:n+1,a=this.sketchStage.midVertexGraphics[n],s=this.sketchStage.midVertexGraphics[i],u=r[i],l=r[n],c=r[o];a.geometry.coordinates=[(c[0]+l[0])/2,(c[1]+l[1])/2],a.geometry=new f.Point({coordinates:a.geometry.coordinates,spatialReference:this._spatialReference}),s.geometry.coordinates=[(u[0]+l[0])/2,(u[1]+l[1])/2],s.geometry=new f.Point({coordinates:s.geometry.coordinates,spatialReference:this._spatialReference})}}},{key:"_handlerMidVertexAddEvent",value:function(e){var t=this;if("changeFeature"===e.action&&(this.sketchStage.entityGraphic.geometry.coordinates[0].splice(e.vertexIndex+1,0,e.point.coordinates),this.sketchStage.entityGraphic.geometry=new f.Polygon({coordinates:[this.sketchStage.entityGraphic.geometry.coordinates[0]],spatialReference:this._spatialReference})),"moveMidVertex"===e.action&&(this.sketchStage.currentVertexIndex=e.vertexIndex,this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex+1]=e.movePoint.coordinates,this.sketchStage.entityGraphic.geometry=new f.Polygon({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference})),"addVertex"===e.action){var r=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),n=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(n),n.addFeature(e.point),this.sketchStage.vertexGraphics.splice(e.vertexIndex+1,0,n.sketchStage.entityGraphic);var i,o=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex],a=null;this._getHight&&(a=0),i=a?new f.Point({coordinates:[(o[0]+e.point.coordinates[0])/2,(o[1]+e.point.coordinates[1])/2,a],spatialReference:this._spatialReference}):new f.Point({coordinates:[(o[0]+e.point.coordinates[0])/2,(o[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var s=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(s),s.addFeature(i,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,s.sketchStage.entityGraphic);var u,l=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex+2],c=null;this._getHight&&(c=0),u=c?new f.Point({coordinates:[(l[0]+e.point.coordinates[0])/2,(l[1]+e.point.coordinates[1])/2,c],spatialReference:this._spatialReference}):new f.Point({coordinates:[(l[0]+e.point.coordinates[0])/2,(l[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var h=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(h),h.addFeature(u,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(e.vertexIndex+1,0,h.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools.forEach(function(e){e.sketchStage.entityGraphic.id===r&&t._removeFeatureFromLayer(e.sketchStage.entityGraphic,t._sketchInnerLayer)}),this._otherDrawTools.push(n),this._otherDrawTools.push(s),this._otherDrawTools.push(h)}}},{key:"addMidVertex",value:function(e,t){var r=new d.default;r.addPoint(t),this.sketchStage.midVertexGraphics=r}},{key:"addVertex",value:function(e,t){var r=null;if(--t>-1){var n=[];if(t<this.sketchStage.entityGraphic.geometry.coordinates[0].length-1){(n=this.sketchStage.entityGraphic.geometry.coordinates[0]).splice(t,0,e.coordinates),0===t?n[n.length-1]=e.coordinates:t===n.length-1&&n.splice(0,0,e.coordinates),this.sketchStage.entityGraphic.geometry.coordinates=[n],r=this.sketchStage.entityGraphic.geometry;var i=void 0,o=void 0,a=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],[a.xmax,a.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var s=[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],[(a.xmax+a.xmin)/2,a.ymax],[(a.xmax+a.xmin)/2,a.ymin],[a.xmax,(a.ymax+a.ymin)/2],[a.xmin,(a.ymax+a.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=s[t]})}if(this.sketchStage.vertexGraphics.length>0&&(i=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(i),i.addFeatureByGeometry(e),this.sketchStage.vertexGraphics.splice(t,0,i.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})),this.sketchStage.midVertexGraphics.length>0){var u=-1,l=-1,c=null,h=null;0===t?(l=0,u=this.sketchStage.midVertexGraphics.length-1,c=this.sketchStage.entityGraphic.geometry.coordinates[0][this.sketchStage.entityGraphic.geometry.coordinates[0].length-2],h=this.sketchStage.entityGraphic.geometry.coordinates[0][1]):(u=t-1,l=t+1,c=this.sketchStage.entityGraphic.geometry.coordinates[0][u],h=this.sketchStage.entityGraphic.geometry.coordinates[0][l]);var y=new f.Point({coordinates:[(c[0]+e.coordinates[0])/2,(c[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[u].geometry.coordinates=y.coordinates;var g=new f.Point({coordinates:[(h[0]+e.coordinates[0])/2,(h[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});o=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(o),o.addFeatureByGeometry(g,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(t,0,o.sketchStage.entityGraphic),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})}i&&this._otherDrawTools.push(i),o&&this._otherDrawTools.push(o),this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode)}return r}}},{key:"updateVertex",value:function(e,t){var r=null;if(--t>-1){if(t<this.sketchStage.entityGraphic.geometry.coordinates[0].length-1){var n=this.sketchStage.entityGraphic,i=n.geometry.coordinates[0];n.geometry.coordinates=[i],this.currentVertexIndex=t,i[t]=e.coordinates,i.length-1===t?i[0]=e.coordinates:0===t&&(i[i.length-1]=e.coordinates),n.geometry=new f.Polygon({coordinates:n.geometry.coordinates,spatialReference:this._spatialReference}),r=n.geometry;var o=n.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[o.xmax,o.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var a=[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[(o.xmax+o.xmin)/2,o.ymax],[(o.xmax+o.xmin)/2,o.ymin],[o.xmax,(o.ymax+o.ymin)/2],[o.xmin,(o.ymax+o.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=a[t]})}if(this.sketchStage.vertexGraphics.length>0&&(this.sketchStage.vertexGraphics[t].geometry.coordinates=e.coordinates),this.sketchStage.midVertexGraphics.length>0){var s=t,u=0===s?s-1+this.sketchStage.midVertexGraphics.length:s-1,l=s===this.sketchStage.midVertexGraphics.length-1?0:s+1,c=this.sketchStage.midVertexGraphics[s],h=this.sketchStage.midVertexGraphics[u],d=i[u],p=i[s],y=i[l];c.geometry.coordinates=[(y[0]+p[0])/2,(y[1]+p[1])/2],c.geometry=new f.Point({coordinates:c.geometry.coordinates,spatialReference:this._spatialReference}),h.geometry.coordinates=[(d[0]+p[0])/2,(d[1]+p[1])/2],h.geometry=new f.Point({coordinates:h.geometry.coordinates,spatialReference:this._spatialReference})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode)}return r}},{key:"removeVertex",value:function(e){var t=null;if(--e>-1){var r=this.sketchStage.entityGraphic.geometry.coordinates[0].length-1;if(r>3&&e<r){var n=this.sketchStage.entityGraphic.geometry.coordinates[0];n.splice(e,1),0===e&&n.splice(n.length-1,1,n[0]),t=new f.Polygon({coordinates:[n],spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t;var i=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[i.xmax,i.ymax],[i.xmax,i.ymin],[i.xmin,i.ymin],[i.xmin,i.ymax],[i.xmax,i.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var o=[[i.xmax,i.ymax],[i.xmax,i.ymin],[i.xmin,i.ymin],[i.xmin,i.ymax],[(i.xmax+i.xmin)/2,i.ymax],[(i.xmax+i.xmin)/2,i.ymin],[i.xmax,(i.ymax+i.ymin)/2],[i.xmin,(i.ymax+i.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=o[t]})}if(this.sketchStage.vertexGraphics.length>0){var a=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromLayer(this.sketchStage.vertexGraphics[e],this._layer),this.sketchStage.vertexGraphics.splice(e,1),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==a)return e})}if(this.sketchStage.midVertexGraphics.length>0){var s=[],u=-1;0===e?(s=[(t.coordinates[0][t.coordinates[0].length-2][0]+t.coordinates[0][e][0])/2,(t.coordinates[0][t.coordinates[0].length-2][1]+t.coordinates[0][e][1])/2],u=this.sketchStage.midVertexGraphics.length-1):(s=[(t.coordinates[0][e-1][0]+t.coordinates[0][e][0])/2,(t.coordinates[0][e-1][1]+t.coordinates[0][e][1])/2],u=e-1),this.sketchStage.midVertexGraphics[u].geometry=new f.Point({coordinates:s,spatialReference:this._spatialReference});var l=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromLayer(this.sketchStage.midVertexGraphics[e],this._sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e,1),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==l)return e})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode)}return t}}]),t}(h.default);t.default=m},function(e,t,r){"use strict";r.r(t);var n=1,i=2,o=3,a=484813681109536e-20,s=Math.PI/2,u=.16666666666666666,l=.04722222222222222,c=.022156084656084655,f=1e-10,h=.017453292519943295,d=57.29577951308232,p=Math.PI/4,y=2*Math.PI,g=3.14159265359,m={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667},v={mm:{to_meter:.001},cm:{to_meter:.01},ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937},fath:{to_meter:1.8288},kmi:{to_meter:1852},"us-ch":{to_meter:20.1168402336805},"us-mi":{to_meter:1609.34721869444},km:{to_meter:1e3},"ind-ft":{to_meter:.30479841},"ind-yd":{to_meter:.91439523},mi:{to_meter:1609.344},yd:{to_meter:.9144},ch:{to_meter:20.1168},link:{to_meter:.201168},dm:{to_meter:.1},in:{to_meter:.0254},"ind-ch":{to_meter:20.11669506},"us-in":{to_meter:.025400050800101},"us-yd":{to_meter:.914401828803658}},_=/[\s_\-\/\(\)]/g;function S(e,t){if(e[t])return e[t];for(var r,n=Object.keys(e),i=t.toLowerCase().replace(_,""),o=-1;++o<n.length;)if((r=n[o]).toLowerCase().replace(_,"")===i)return e[r]}var b=function(e){var t,r,n,i={},o=e.split("+").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var r=t.split("=");return r.push(!0),e[r[0].toLowerCase()]=r[1],e},{}),a={proj:"projName",datum:"datumCode",rf:function(e){i.rf=parseFloat(e)},lat_0:function(e){i.lat0=e*h},lat_1:function(e){i.lat1=e*h},lat_2:function(e){i.lat2=e*h},lat_ts:function(e){i.lat_ts=e*h},lon_0:function(e){i.long0=e*h},lon_1:function(e){i.long1=e*h},lon_2:function(e){i.long2=e*h},alpha:function(e){i.alpha=parseFloat(e)*h},gamma:function(e){i.rectified_grid_angle=parseFloat(e)*h},lonc:function(e){i.longc=e*h},x_0:function(e){i.x0=parseFloat(e)},y_0:function(e){i.y0=parseFloat(e)},k_0:function(e){i.k0=parseFloat(e)},k:function(e){i.k0=parseFloat(e)},a:function(e){i.a=parseFloat(e)},b:function(e){i.b=parseFloat(e)},r:function(e){i.a=i.b=parseFloat(e)},r_a:function(){i.R_A=!0},zone:function(e){i.zone=parseInt(e,10)},south:function(){i.utmSouth=!0},towgs84:function(e){i.datum_params=e.split(",").map(function(e){return parseFloat(e)})},to_meter:function(e){i.to_meter=parseFloat(e)},units:function(e){i.units=e;var t=S(v,e);t&&(i.to_meter=t.to_meter)},from_greenwich:function(e){i.from_greenwich=e*h},pm:function(e){var t=S(m,e);i.from_greenwich=(t||parseFloat(e))*h},nadgrids:function(e){"@null"===e?i.datumCode="none":i.nadgrids=e},axis:function(e){3===e.length&&-1!=="ewnsud".indexOf(e.substr(0,1))&&-1!=="ewnsud".indexOf(e.substr(1,1))&&-1!=="ewnsud".indexOf(e.substr(2,1))&&(i.axis=e)},approx:function(){i.approx=!0},over:function(){i.over=!0}};for(t in o)r=o[t],t in a?"function"==typeof(n=a[t])?n(r):i[n]=r:i[t]=r;return"string"==typeof i.datumCode&&"WGS84"!==i.datumCode&&(i.datumCode=i.datumCode.toLowerCase()),i.projStr=e,i},x=class{static getId(e){const t=e.find(e=>Array.isArray(e)&&"ID"===e[0]);return t&&t.length>=3?{authority:t[1],code:parseInt(t[2],10)}:null}static convertUnit(e,t="unit"){if(!e||e.length<3)return{type:t,name:"unknown",conversion_factor:null};const r=e[1],n=parseFloat(e[2])||null,i=e.find(e=>Array.isArray(e)&&"ID"===e[0]);return{type:t,name:r,conversion_factor:n,id:i?{authority:i[1],code:parseInt(i[2],10)}:null}}static convertAxis(e){const t=e[1]||"Unknown";let r;const n=t.match(/^\((.)\)$/);if(n){const e=n[1].toUpperCase();if("E"===e)r="east";else if("N"===e)r="north";else{if("U"!==e)throw new Error(`Unknown axis abbreviation: ${e}`);r="up"}}else r=e[2]?e[2].toLowerCase():"unknown";const i=e.find(e=>Array.isArray(e)&&"ORDER"===e[0]),o=i?parseInt(i[1],10):null,a=e.find(e=>Array.isArray(e)&&("LENGTHUNIT"===e[0]||"ANGLEUNIT"===e[0]||"SCALEUNIT"===e[0]));return{name:t,direction:r,unit:this.convertUnit(a),order:o}}static extractAxes(e){return e.filter(e=>Array.isArray(e)&&"AXIS"===e[0]).map(e=>this.convertAxis(e)).sort((e,t)=>(e.order||0)-(t.order||0))}static convert(e,t={}){switch(e[0]){case"PROJCRS":t.type="ProjectedCRS",t.name=e[1],t.base_crs=e.find(e=>Array.isArray(e)&&"BASEGEOGCRS"===e[0])?this.convert(e.find(e=>Array.isArray(e)&&"BASEGEOGCRS"===e[0])):null,t.conversion=e.find(e=>Array.isArray(e)&&"CONVERSION"===e[0])?this.convert(e.find(e=>Array.isArray(e)&&"CONVERSION"===e[0])):null;const r=e.find(e=>Array.isArray(e)&&"CS"===e[0]);r&&(t.coordinate_system={type:r[1],axis:this.extractAxes(e)});const n=e.find(e=>Array.isArray(e)&&"LENGTHUNIT"===e[0]);if(n){const e=this.convertUnit(n);t.coordinate_system.unit=e}t.id=this.getId(e);break;case"BASEGEOGCRS":case"GEOGCRS":t.type="GeographicCRS",t.name=e[1];const i=e.find(e=>Array.isArray(e)&&("DATUM"===e[0]||"ENSEMBLE"===e[0]));if(i){const r=this.convert(i);"ENSEMBLE"===i[0]?t.datum_ensemble=r:t.datum=r;const n=e.find(e=>Array.isArray(e)&&"PRIMEM"===e[0]);n&&"Greenwich"!==n[1]&&(r.prime_meridian={name:n[1],longitude:parseFloat(n[2])})}t.coordinate_system={type:"ellipsoidal",axis:this.extractAxes(e)},t.id=this.getId(e);break;case"DATUM":t.type="GeodeticReferenceFrame",t.name=e[1],t.ellipsoid=e.find(e=>Array.isArray(e)&&"ELLIPSOID"===e[0])?this.convert(e.find(e=>Array.isArray(e)&&"ELLIPSOID"===e[0])):null;break;case"ENSEMBLE":t.type="DatumEnsemble",t.name=e[1],t.members=e.filter(e=>Array.isArray(e)&&"MEMBER"===e[0]).map(e=>({type:"DatumEnsembleMember",name:e[1],id:this.getId(e)}));const o=e.find(e=>Array.isArray(e)&&"ENSEMBLEACCURACY"===e[0]);o&&(t.accuracy=parseFloat(o[1]));const a=e.find(e=>Array.isArray(e)&&"ELLIPSOID"===e[0]);a&&(t.ellipsoid=this.convert(a)),t.id=this.getId(e);break;case"ELLIPSOID":t.type="Ellipsoid",t.name=e[1],t.semi_major_axis=parseFloat(e[2]),t.inverse_flattening=parseFloat(e[3]),e.find(e=>Array.isArray(e)&&"LENGTHUNIT"===e[0])&&this.convert(e.find(e=>Array.isArray(e)&&"LENGTHUNIT"===e[0]),t);break;case"CONVERSION":t.type="Conversion",t.name=e[1],t.method=e.find(e=>Array.isArray(e)&&"METHOD"===e[0])?this.convert(e.find(e=>Array.isArray(e)&&"METHOD"===e[0])):null,t.parameters=e.filter(e=>Array.isArray(e)&&"PARAMETER"===e[0]).map(e=>this.convert(e));break;case"METHOD":t.type="Method",t.name=e[1],t.id=this.getId(e);break;case"PARAMETER":t.type="Parameter",t.name=e[1],t.value=parseFloat(e[2]),t.unit=this.convertUnit(e.find(e=>Array.isArray(e)&&("LENGTHUNIT"===e[0]||"ANGLEUNIT"===e[0]||"SCALEUNIT"===e[0]))),t.id=this.getId(e);break;case"BOUNDCRS":t.type="BoundCRS";const s=e.find(e=>Array.isArray(e)&&"SOURCECRS"===e[0]);if(s){const e=s.find(e=>Array.isArray(e));t.source_crs=e?this.convert(e):null}const u=e.find(e=>Array.isArray(e)&&"TARGETCRS"===e[0]);if(u){const e=u.find(e=>Array.isArray(e));t.target_crs=e?this.convert(e):null}const l=e.find(e=>Array.isArray(e)&&"ABRIDGEDTRANSFORMATION"===e[0]);t.transformation=l?this.convert(l):null;break;case"ABRIDGEDTRANSFORMATION":if(t.type="Transformation",t.name=e[1],t.method=e.find(e=>Array.isArray(e)&&"METHOD"===e[0])?this.convert(e.find(e=>Array.isArray(e)&&"METHOD"===e[0])):null,t.parameters=e.filter(e=>Array.isArray(e)&&("PARAMETER"===e[0]||"PARAMETERFILE"===e[0])).map(e=>"PARAMETER"===e[0]?this.convert(e):"PARAMETERFILE"===e[0]?{name:e[1],value:e[2],id:{authority:"EPSG",code:8656}}:void 0),7===t.parameters.length){const e=t.parameters[6];"Scale difference"===e.name&&(e.value=Math.round(1e12*(e.value-1))/1e6)}t.id=this.getId(e);break;case"AXIS":t.coordinate_system||(t.coordinate_system={type:"unspecified",axis:[]}),t.coordinate_system.axis.push(this.convertAxis(e));break;case"LENGTHUNIT":const c=this.convertUnit(e,"LinearUnit");t.coordinate_system&&t.coordinate_system.axis&&t.coordinate_system.axis.forEach(e=>{e.unit||(e.unit=c)}),c.conversion_factor&&1!==c.conversion_factor&&t.semi_major_axis&&(t.semi_major_axis={value:t.semi_major_axis,unit:c});break;default:t.keyword=e[0]}return t}},w=class extends x{static convert(e,t={}){return super.convert(e,t),t.coordinate_system&&"Cartesian"===t.coordinate_system.subtype&&delete t.coordinate_system,t.usage&&delete t.usage,t}},E=class extends x{static convert(e,t={}){super.convert(e,t);const r=e.find(e=>Array.isArray(e)&&"CS"===e[0]);r&&(t.coordinate_system={subtype:r[1],axis:this.extractAxes(e)});const n=e.find(e=>Array.isArray(e)&&"USAGE"===e[0]);if(n){const e=n.find(e=>Array.isArray(e)&&"SCOPE"===e[0]),r=n.find(e=>Array.isArray(e)&&"AREA"===e[0]),i=n.find(e=>Array.isArray(e)&&"BBOX"===e[0]);t.usage={},e&&(t.usage.scope=e[1]),r&&(t.usage.area=r[1]),i&&(t.usage.bbox=i.slice(1))}return t}};var T=1,I=/\s/,M=/[A-Za-z]/,k=/[A-Za-z84_]/,P=/[,\]]/,L=/[\d\.E\-\+]/;function O(e){if("string"!=typeof e)throw new Error("not a string");this.text=e.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=T}function C(e,t,r){Array.isArray(t)&&(r.unshift(t),t=null);var n=t?{}:e,i=r.reduce(function(e,t){return N(t,e),e},n);t&&(e[t]=i)}function N(e,t){if(Array.isArray(e)){var r=e.shift();if("PARAMETER"===r&&(r=e.shift()),1===e.length)return Array.isArray(e[0])?(t[r]={},void N(e[0],t[r])):void(t[r]=e[0]);if(e.length)if("TOWGS84"!==r){if("AXIS"===r)return r in t||(t[r]=[]),void t[r].push(e);var n;switch(Array.isArray(r)||(t[r]={}),r){case"UNIT":case"PRIMEM":case"VERT_DATUM":return t[r]={name:e[0].toLowerCase(),convert:e[1]},void(3===e.length&&N(e[2],t[r]));case"SPHEROID":case"ELLIPSOID":return t[r]={name:e[0],a:e[1],rf:e[2]},void(4===e.length&&N(e[3],t[r]));case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":return e[0]=["name",e[0]],void C(t,r,e);case"COMPD_CS":case"COMPOUNDCRS":case"FITTED_CS":case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"ENGCRS":case"ENGINEERINGCRS":return e[0]=["name",e[0]],C(t,r,e),void(t[r].type=r);default:for(n=-1;++n<e.length;)if(!Array.isArray(e[n]))return N(e,t[r]);return C(t,r,e)}}else t[r]=e;else t[r]=!0}else t[e]=!0}O.prototype.readCharicter=function(){var e=this.text[this.place++];if(4!==this.state)for(;I.test(e);){if(this.place>=this.text.length)return;e=this.text[this.place++]}switch(this.state){case T:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},O.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(P.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},O.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=T)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=T,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},O.prototype.number=function(e){if(!L.test(e)){if(P.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)}this.word+=e},O.prototype.quoted=function(e){'"'!==e?this.word+=e:this.state=5},O.prototype.keyword=function(e){if(k.test(e))this.word+=e;else{if("["===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=T)}if(!P.test(e))throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place);this.afterItem(e)}},O.prototype.neutral=function(e){if(M.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(L.test(e))return this.word=e,void(this.state=3);if(!P.test(e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this.afterItem(e)},O.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};var R=.017453292519943295;function G(e){return e*R}function A(e){const t=(e.projName||"").toLowerCase().replace(/_/g," ");e.long0||!e.longc||"albers conic equal area"!==t&&"lambert azimuthal equal area"!==t||(e.long0=e.longc),e.lat_ts||!e.lat1||"stereographic south pole"!==t&&"polar stereographic (variant b)"!==t?e.lat_ts||!e.lat0||"polar stereographic"!==t&&"polar stereographic (variant a)"!==t||(e.lat_ts=e.lat0,e.lat0=G(e.lat0>0?90:-90),delete e.lat1):(e.lat0=G(e.lat1>0?90:-90),e.lat_ts=e.lat1,delete e.lat1)}function V(e){let t={units:null,to_meter:void 0};return"string"==typeof e?(t.units=e.toLowerCase(),"metre"===t.units&&(t.units="meter"),"meter"===t.units&&(t.to_meter=1)):e&&e.name&&(t.units=e.name.toLowerCase(),"metre"===t.units&&(t.units="meter"),t.to_meter=e.conversion_factor),t}function D(e){return"object"==typeof e?e.value*e.unit.conversion_factor:e}function F(e,t){e.ellipsoid.radius?(t.a=e.ellipsoid.radius,t.rf=0):(t.a=D(e.ellipsoid.semi_major_axis),void 0!==e.ellipsoid.inverse_flattening?t.rf=e.ellipsoid.inverse_flattening:void 0!==e.ellipsoid.semi_major_axis&&void 0!==e.ellipsoid.semi_minor_axis&&(t.rf=t.a/(t.a-D(e.ellipsoid.semi_minor_axis))))}function j(e,t={}){return e&&"object"==typeof e?"BoundCRS"===e.type?(j(e.source_crs,t),e.transformation&&(e.transformation.method&&"NTv2"===e.transformation.method.name?t.nadgrids=e.transformation.parameters[0].value:t.datum_params=e.transformation.parameters.map(e=>e.value)),t):(Object.keys(e).forEach(r=>{const n=e[r];if(null!==n)switch(r){case"name":if(t.srsCode)break;t.name=n,t.srsCode=n;break;case"type":"GeographicCRS"===n?t.projName="longlat":"ProjectedCRS"===n&&e.conversion&&e.conversion.method&&(t.projName=e.conversion.method.name);break;case"datum":case"datum_ensemble":n.ellipsoid&&(t.ellps=n.ellipsoid.name,F(n,t)),n.prime_meridian&&(t.from_greenwich=n.prime_meridian.longitude*Math.PI/180);break;case"ellipsoid":t.ellps=n.name,F(n,t);break;case"prime_meridian":t.long0=(n.longitude||0)*Math.PI/180;break;case"coordinate_system":if(n.axis)if(t.axis=n.axis.map(e=>{const t=e.direction;if("east"===t)return"e";if("north"===t)return"n";if("west"===t)return"w";if("south"===t)return"s";throw new Error(`Unknown axis direction: ${t}`)}).join("")+"u",n.unit){const{units:e,to_meter:r}=V(n.unit);t.units=e,t.to_meter=r}else if(n.axis[0]&&n.axis[0].unit){const{units:e,to_meter:r}=V(n.axis[0].unit);t.units=e,t.to_meter=r}break;case"id":n.authority&&n.code&&(t.title=n.authority+":"+n.code);break;case"conversion":n.method&&n.method.name&&(t.projName=n.method.name),n.parameters&&n.parameters.forEach(e=>{const r=e.name.toLowerCase().replace(/\s+/g,"_"),n=e.value;e.unit&&e.unit.conversion_factor?t[r]=n*e.unit.conversion_factor:"degree"===e.unit?t[r]=n*Math.PI/180:t[r]=n});break;case"unit":n.name&&(t.units=n.name.toLowerCase(),"metre"===t.units&&(t.units="meter")),n.conversion_factor&&(t.to_meter=n.conversion_factor);break;case"base_crs":j(n,t),t.datumCode=n.id?n.id.authority+"_"+n.id.code:n.name}}),void 0!==t.latitude_of_false_origin&&(t.lat0=t.latitude_of_false_origin),void 0!==t.longitude_of_false_origin&&(t.long0=t.longitude_of_false_origin),void 0!==t.latitude_of_standard_parallel&&(t.lat0=t.latitude_of_standard_parallel,t.lat1=t.latitude_of_standard_parallel),void 0!==t.latitude_of_1st_standard_parallel&&(t.lat1=t.latitude_of_1st_standard_parallel),void 0!==t.latitude_of_2nd_standard_parallel&&(t.lat2=t.latitude_of_2nd_standard_parallel),void 0!==t.latitude_of_projection_centre&&(t.lat0=t.latitude_of_projection_centre),void 0!==t.longitude_of_projection_centre&&(t.longc=t.longitude_of_projection_centre),void 0!==t.easting_at_false_origin&&(t.x0=t.easting_at_false_origin),void 0!==t.northing_at_false_origin&&(t.y0=t.northing_at_false_origin),void 0!==t.latitude_of_natural_origin&&(t.lat0=t.latitude_of_natural_origin),void 0!==t.longitude_of_natural_origin&&(t.long0=t.longitude_of_natural_origin),void 0!==t.longitude_of_origin&&(t.long0=t.longitude_of_origin),void 0!==t.false_easting&&(t.x0=t.false_easting),t.easting_at_projection_centre&&(t.x0=t.easting_at_projection_centre),void 0!==t.false_northing&&(t.y0=t.false_northing),t.northing_at_projection_centre&&(t.y0=t.northing_at_projection_centre),void 0!==t.standard_parallel_1&&(t.lat1=t.standard_parallel_1),void 0!==t.standard_parallel_2&&(t.lat2=t.standard_parallel_2),void 0!==t.scale_factor_at_natural_origin&&(t.k0=t.scale_factor_at_natural_origin),void 0!==t.scale_factor_at_projection_centre&&(t.k0=t.scale_factor_at_projection_centre),void 0!==t.scale_factor_on_pseudo_standard_parallel&&(t.k0=t.scale_factor_on_pseudo_standard_parallel),void 0!==t.azimuth&&(t.alpha=t.azimuth),void 0!==t.azimuth_at_projection_centre&&(t.alpha=t.azimuth_at_projection_centre),t.angle_from_rectified_to_skew_grid&&(t.rectified_grid_angle=t.angle_from_rectified_to_skew_grid),A(t),t):e}var B=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function q(e){if(e.AUTHORITY){var t=Object.keys(e.AUTHORITY)[0];t&&t in e.AUTHORITY&&(e.title=t+":"+e.AUTHORITY[t])}if("GEOGCS"===e.type?e.projName="longlat":"LOCAL_CS"===e.type?(e.projName="identity",e.local=!0):"object"==typeof e.PROJECTION?e.projName=Object.keys(e.PROJECTION)[0]:e.projName=e.PROJECTION,e.AXIS){for(var r="",n=0,i=e.AXIS.length;n<i;++n){var o=[e.AXIS[n][0].toLowerCase(),e.AXIS[n][1].toLowerCase()];-1!==o[0].indexOf("north")||("y"===o[0]||"lat"===o[0])&&"north"===o[1]?r+="n":-1!==o[0].indexOf("south")||("y"===o[0]||"lat"===o[0])&&"south"===o[1]?r+="s":-1!==o[0].indexOf("east")||("x"===o[0]||"lon"===o[0])&&"east"===o[1]?r+="e":-1===o[0].indexOf("west")&&("x"!==o[0]&&"lon"!==o[0]||"west"!==o[1])||(r+="w")}2===r.length&&(r+="u"),3===r.length&&(e.axis=r)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.UNIT.convert&&("GEOGCS"===e.type?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var a=e.GEOGCS;function s(t){return t*(e.to_meter||1)}"GEOGCS"===e.type&&(a=e),a&&(a.DATUM?e.datumCode=a.DATUM.name.toLowerCase():e.datumCode=a.name.toLowerCase(),"d_"===e.datumCode.slice(0,2)&&(e.datumCode=e.datumCode.slice(2)),"new_zealand_1949"===e.datumCode&&(e.datumCode="nzgd49"),"wgs_1984"!==e.datumCode&&"world_geodetic_system_1984"!==e.datumCode||("Mercator_Auxiliary_Sphere"===e.PROJECTION&&(e.sphere=!0),e.datumCode="wgs84"),"belge_1972"===e.datumCode&&(e.datumCode="rnb72"),a.DATUM&&a.DATUM.SPHEROID&&(e.ellps=a.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===e.ellps.toLowerCase().slice(0,13)&&(e.ellps="intl"),e.a=a.DATUM.SPHEROID.a,e.rf=parseFloat(a.DATUM.SPHEROID.rf,10)),a.DATUM&&a.DATUM.TOWGS84&&(e.datum_params=a.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),"ch1903+"===e.datumCode&&(e.datumCode="ch1903"),~e.datumCode.indexOf("israel")&&(e.datumCode="isr93")),e.b&&!isFinite(e.b)&&(e.b=e.a),e.rectified_grid_angle&&(e.rectified_grid_angle=G(e.rectified_grid_angle)),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",G],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",G],["x0","false_easting",s],["y0","false_northing",s],["long0","central_meridian",G],["lat0","latitude_of_origin",G],["lat0","standard_parallel_1",G],["lat1","standard_parallel_1",G],["lat2","standard_parallel_2",G],["azimuth","Azimuth"],["alpha","azimuth",G],["srsCode","name"]].forEach(function(t){return function(e,t){var r=t[0],n=t[1];!(r in e)&&n in e&&(e[r]=e[n],3===t.length&&(e[r]=t[2](e[r])))}(e,t)}),A(e)}var U=function(e){if("object"==typeof e)return j(e);const t=function(e){const t=e.toUpperCase();return t.includes("PROJCRS")||t.includes("GEOGCRS")||t.includes("BOUNDCRS")||t.includes("VERTCRS")||t.includes("LENGTHUNIT")||t.includes("ANGLEUNIT")||t.includes("SCALEUNIT")?"WKT2":(t.includes("PROJCS")||t.includes("GEOGCS")||t.includes("LOCAL_CS")||t.includes("VERT_CS")||t.includes("UNIT"),"WKT1")}(e);var r=function(e){return new O(e).output()}(e);if("WKT2"===t)return j(function(e){return("2019"===function(e){return e.find(e=>Array.isArray(e)&&"USAGE"===e[0])?"2019":e.find(e=>Array.isArray(e)&&"CS"===e[0])?"2015":("BOUNDCRS"===e[0]||"PROJCRS"===e[0]||e[0],"2015")}(e)?E:w).convert(e)}(r));var n=r[0],i={};return N(r,i),function e(t){for(var r=Object.keys(t),n=0,i=r.length;n<i;++n){var o=r[n];-1!==B.indexOf(o)&&q(t[o]),"object"==typeof t[o]&&e(t[o])}}(i),i[n]};function J(e){var t=this;if(2===arguments.length){var r=arguments[1];"string"==typeof r?"+"===r.charAt(0)?J[e]=b(arguments[1]):J[e]=U(arguments[1]):!r||"object"!=typeof r||"projName"in r?(J[e]=r,r||delete J[e]):J[e]=U(arguments[1])}else if(1===arguments.length){if(Array.isArray(e))return e.map(function(e){return Array.isArray(e)?J.apply(t,e):J(e)});if("string"==typeof e){if(e in J)return J[e]}else"EPSG"in e?J["EPSG:"+e.EPSG]=e:"ESRI"in e?J["ESRI:"+e.ESRI]=e:"IAU2000"in e?J["IAU2000:"+e.IAU2000]=e:console.log(e);return}}!function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");for(var t=1;t<=60;++t)e("EPSG:"+(32600+t),"+proj=utm +zone="+t+" +datum=WGS84 +units=m"),e("EPSG:"+(32700+t),"+proj=utm +zone="+t+" +south +datum=WGS84 +units=m");e("EPSG:5041","+title=WGS 84 / UPS North (E,N) +proj=stere +lat_0=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"),e("EPSG:5042","+title=WGS 84 / UPS South (E,N) +proj=stere +lat_0=-90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}(J);var z=J,W=["3857","900913","3785","102113"],H=function(e){if(!function(e){return"string"==typeof e}(e))return"projName"in e?e:U(e);if(function(e){return e in z}(e))return z[e];if(function(e){return 0!==e.indexOf("+")&&-1!==e.indexOf("[")||"object"==typeof e&&!("srsCode"in e)}(e)){var t=U(e);if(function(e){var t=S(e,"authority");if(t){var r=S(t,"epsg");return r&&W.indexOf(r)>-1}}(t))return z["EPSG:3857"];var r=function(e){var t=S(e,"extension");if(t)return S(t,"proj4")}(t);return r?b(r):t}return function(e){return"+"===e[0]}(e)?b(e):void 0},Y=function(e,t){var r,n;if(e=e||{},!t)return e;for(n in t)void 0!==(r=t[n])&&(e[n]=r);return e},X=function(e,t,r){var n=e*t;return r/Math.sqrt(1-n*n)},K=function(e){return e<0?-1:1},Z=function(e,t){return t?e:Math.abs(e)<=g?e:e-K(e)*y},Q=function(e,t,r){var n=e*r,i=.5*e;return n=Math.pow((1-n)/(1+n),i),Math.tan(.5*(s-t))/n},$=function(e,t){for(var r,n,i=.5*e,o=s-2*Math.atan(t),a=0;a<=15;a++)if(r=e*Math.sin(o),o+=n=s-2*Math.atan(t*Math.pow((1-r)/(1+r),i))-o,Math.abs(n)<=1e-10)return o;return-9999};function ee(e){return e}var te=["longlat","identity"],re=[{init:function(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=X(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(e){var t,r,n=e.x,i=e.y;if(i*d>90&&i*d<-90&&n*d>180&&n*d<-180)return null;if(Math.abs(Math.abs(i)-s)<=f)return null;if(this.sphere)t=this.x0+this.a*this.k0*Z(n-this.long0,this.over),r=this.y0+this.a*this.k0*Math.log(Math.tan(p+.5*i));else{var o=Math.sin(i),a=Q(this.e,i,o);t=this.x0+this.a*this.k0*Z(n-this.long0,this.over),r=this.y0-this.a*this.k0*Math.log(a)}return e.x=t,e.y=r,e},inverse:function(e){var t,r,n=e.x-this.x0,i=e.y-this.y0;if(this.sphere)r=s-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var o=Math.exp(-i/(this.a*this.k0));if(-9999===(r=$(this.e,o)))return null}return t=Z(this.long0+n/(this.a*this.k0),this.over),e.x=t,e.y=r,e},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","Mercator_Variant_A","merc"]},{init:function(){},forward:ee,inverse:ee,names:te}],ne={},ie=[];function oe(e,t){var r=ie.length;return e.names?(ie[r]=e,e.names.forEach(function(e){ne[e.toLowerCase()]=r}),this):(console.log(t),!0)}function ae(e){return e.replace(/[-\(\)\s]+/g," ").trim().replace(/ /g,"_")}var se={start:function(){re.forEach(oe)},add:oe,get:function(e){if(!e)return!1;var t=e.toLowerCase();return void 0!==ne[t]&&ie[ne[t]]?ie[ne[t]]:(t=ae(t))in ne&&ie[ne[t]]?ie[ne[t]]:void 0}},ue={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"},WGS84:{a:6378137,rf:298.257223563,ellipseName:"WGS 84"},sphere:{a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}};const le=ue.WGS84;var ce={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},mgi:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Ordnance Survey of Great Britain 1936"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"},EPSG_5451:{towgs84:"6.41,-49.05,-11.28,1.5657,0.5242,6.9718,-5.7649"},IGNF_LURESG:{towgs84:"-192.986,13.673,-39.309,-0.4099,-2.9332,2.6881,0.43"},EPSG_4614:{towgs84:"-119.4248,-303.65872,-11.00061,1.164298,0.174458,1.096259,3.657065"},EPSG_4615:{towgs84:"-494.088,-312.129,279.877,-1.423,-1.013,1.59,-0.748"},ESRI_37241:{towgs84:"-76.822,257.457,-12.817,2.136,-0.033,-2.392,-0.031"},ESRI_37249:{towgs84:"-440.296,58.548,296.265,1.128,10.202,4.559,-0.438"},ESRI_37245:{towgs84:"-511.151,-181.269,139.609,1.05,2.703,1.798,3.071"},EPSG_4178:{towgs84:"24.9,-126.4,-93.2,-0.063,-0.247,-0.041,1.01"},EPSG_4622:{towgs84:"-472.29,-5.63,-304.12,0.4362,-0.8374,0.2563,1.8984"},EPSG_4625:{towgs84:"126.93,547.94,130.41,-2.7867,5.1612,-0.8584,13.8227"},EPSG_5252:{towgs84:"0.023,0.036,-0.068,0.00176,0.00912,-0.01136,0.00439"},EPSG_4314:{towgs84:"597.1,71.4,412.1,0.894,0.068,-1.563,7.58"},EPSG_4282:{towgs84:"-178.3,-316.7,-131.5,5.278,6.077,10.979,19.166"},EPSG_4231:{towgs84:"-83.11,-97.38,-117.22,0.0276,-0.2167,0.2147,0.1218"},EPSG_4274:{towgs84:"-230.994,102.591,25.199,0.633,-0.239,0.9,1.95"},EPSG_4134:{towgs84:"-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006"},EPSG_4254:{towgs84:"18.38,192.45,96.82,0.056,-0.142,-0.2,-0.0013"},EPSG_4159:{towgs84:"-194.513,-63.978,-25.759,-3.4027,3.756,-3.352,-0.9175"},EPSG_4687:{towgs84:"0.072,-0.507,-0.245,0.0183,-0.0003,0.007,-0.0093"},EPSG_4227:{towgs84:"-83.58,-397.54,458.78,-17.595,-2.847,4.256,3.225"},EPSG_4746:{towgs84:"599.4,72.4,419.2,-0.062,-0.022,-2.723,6.46"},EPSG_4745:{towgs84:"612.4,77,440.2,-0.054,0.057,-2.797,2.55"},EPSG_6311:{towgs84:"8.846,-4.394,-1.122,-0.00237,-0.146528,0.130428,0.783926"},EPSG_4289:{towgs84:"565.7381,50.4018,465.2904,-1.91514,1.60363,-9.09546,4.07244"},EPSG_4230:{towgs84:"-68.863,-134.888,-111.49,-0.53,-0.14,0.57,-3.4"},EPSG_4154:{towgs84:"-123.02,-158.95,-168.47"},EPSG_4156:{towgs84:"570.8,85.7,462.8,4.998,1.587,5.261,3.56"},EPSG_4299:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4179:{towgs84:"33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84"},EPSG_4313:{towgs84:"-106.8686,52.2978,-103.7239,0.3366,-0.457,1.8422,-1.2747"},EPSG_4194:{towgs84:"163.511,127.533,-159.789"},EPSG_4195:{towgs84:"105,326,-102.5"},EPSG_4196:{towgs84:"-45,417,-3.5"},EPSG_4611:{towgs84:"-162.619,-276.959,-161.764,0.067753,-2.243649,-1.158827,-1.094246"},EPSG_4633:{towgs84:"137.092,131.66,91.475,-1.9436,-11.5993,-4.3321,-7.4824"},EPSG_4641:{towgs84:"-408.809,366.856,-412.987,1.8842,-0.5308,2.1655,-121.0993"},EPSG_4643:{towgs84:"-480.26,-438.32,-643.429,16.3119,20.1721,-4.0349,-111.7002"},EPSG_4300:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4188:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4660:{towgs84:"982.6087,552.753,-540.873,32.39344,-153.25684,-96.2266,16.805"},EPSG_4662:{towgs84:"97.295,-263.247,310.882,-1.5999,0.8386,3.1409,13.3259"},EPSG_3906:{towgs84:"577.88891,165.22205,391.18289,4.9145,-0.94729,-13.05098,7.78664"},EPSG_4307:{towgs84:"-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547"},EPSG_6892:{towgs84:"-76.269,-16.683,68.562,-6.275,10.536,-4.286,-13.686"},EPSG_4690:{towgs84:"221.597,152.441,176.523,2.403,1.3893,0.884,11.4648"},EPSG_4691:{towgs84:"218.769,150.75,176.75,3.5231,2.0037,1.288,10.9817"},EPSG_4629:{towgs84:"72.51,345.411,79.241,-1.5862,-0.8826,-0.5495,1.3653"},EPSG_4630:{towgs84:"165.804,216.213,180.26,-0.6251,-0.4515,-0.0721,7.4111"},EPSG_4692:{towgs84:"217.109,86.452,23.711,0.0183,-0.0003,0.007,-0.0093"},EPSG_9333:{towgs84:"0,0,0,-8.393,0.749,-10.276,0"},EPSG_9059:{towgs84:"0,0,0"},EPSG_4312:{towgs84:"601.705,84.263,485.227,4.7354,1.3145,5.393,-2.3887"},EPSG_4123:{towgs84:"-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496"},EPSG_4309:{towgs84:"-124.45,183.74,44.64,-0.4384,0.5446,-0.9706,-2.1365"},ESRI_104106:{towgs84:"-283.088,-70.693,117.445,-1.157,0.059,-0.652,-4.058"},EPSG_4281:{towgs84:"-219.247,-73.802,269.529"},EPSG_4322:{towgs84:"0,0,4.5"},EPSG_4324:{towgs84:"0,0,1.9"},EPSG_4284:{towgs84:"43.822,-108.842,-119.585,1.455,-0.761,0.737,0.549"},EPSG_4277:{towgs84:"446.448,-125.157,542.06,0.15,0.247,0.842,-20.489"},EPSG_4207:{towgs84:"-282.1,-72.2,120,-1.529,0.145,-0.89,-4.46"},EPSG_4688:{towgs84:"347.175,1077.618,2623.677,33.9058,-70.6776,9.4013,186.0647"},EPSG_4689:{towgs84:"410.793,54.542,80.501,-2.5596,-2.3517,-0.6594,17.3218"},EPSG_4720:{towgs84:"0,0,4.5"},EPSG_4273:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},EPSG_4240:{towgs84:"204.64,834.74,293.8"},EPSG_4817:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},ESRI_104131:{towgs84:"426.62,142.62,460.09,4.98,4.49,-12.42,-17.1"},EPSG_4265:{towgs84:"-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68"},EPSG_4263:{towgs84:"-111.92,-87.85,114.5,1.875,0.202,0.219,0.032"},EPSG_4298:{towgs84:"-689.5937,623.84046,-65.93566,-0.02331,1.17094,-0.80054,5.88536"},EPSG_4270:{towgs84:"-253.4392,-148.452,386.5267,0.15605,0.43,-0.1013,-0.0424"},EPSG_4229:{towgs84:"-121.8,98.1,-10.7"},EPSG_4220:{towgs84:"-55.5,-348,-229.2"},EPSG_4214:{towgs84:"12.646,-155.176,-80.863"},EPSG_4232:{towgs84:"-345,3,223"},EPSG_4238:{towgs84:"-1.977,-13.06,-9.993,0.364,0.254,0.689,-1.037"},EPSG_4168:{towgs84:"-170,33,326"},EPSG_4131:{towgs84:"199,931,318.9"},EPSG_4152:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_5228:{towgs84:"572.213,85.334,461.94,4.9732,1.529,5.2484,3.5378"},EPSG_8351:{towgs84:"485.021,169.465,483.839,7.786342,4.397554,4.102655,0"},EPSG_4683:{towgs84:"-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06"},EPSG_4133:{towgs84:"0,0,0"},EPSG_7373:{towgs84:"0.819,-0.5762,-1.6446,-0.00378,-0.03317,0.00318,0.0693"},EPSG_9075:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9072:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9294:{towgs84:"1.16835,-1.42001,-2.24431,-0.00822,-0.05508,0.01818,0.23388"},EPSG_4212:{towgs84:"-267.434,173.496,181.814,-13.4704,8.7154,7.3926,14.7492"},EPSG_4191:{towgs84:"-44.183,-0.58,-38.489,2.3867,2.7072,-3.5196,-8.2703"},EPSG_4237:{towgs84:"52.684,-71.194,-13.975,-0.312,-0.1063,-0.3729,1.0191"},EPSG_4740:{towgs84:"-1.08,-0.27,-0.9"},EPSG_4124:{towgs84:"419.3836,99.3335,591.3451,0.850389,1.817277,-7.862238,-0.99496"},EPSG_5681:{towgs84:"584.9636,107.7175,413.8067,1.1155,0.2824,-3.1384,7.9922"},EPSG_4141:{towgs84:"23.772,17.49,17.859,-0.3132,-1.85274,1.67299,-5.4262"},EPSG_4204:{towgs84:"-85.645,-273.077,-79.708,2.289,-1.421,2.532,3.194"},EPSG_4319:{towgs84:"226.702,-193.337,-35.371,-2.229,-4.391,9.238,0.9798"},EPSG_4200:{towgs84:"24.82,-131.21,-82.66"},EPSG_4130:{towgs84:"0,0,0"},EPSG_4127:{towgs84:"-82.875,-57.097,-156.768,-2.158,1.524,-0.982,-0.359"},EPSG_4149:{towgs84:"674.374,15.056,405.346"},EPSG_4617:{towgs84:"-0.991,1.9072,0.5129,1.25033e-7,4.6785e-8,5.6529e-8,0"},EPSG_4663:{towgs84:"-210.502,-66.902,-48.476,2.094,-15.067,-5.817,0.485"},EPSG_4664:{towgs84:"-211.939,137.626,58.3,-0.089,0.251,0.079,0.384"},EPSG_4665:{towgs84:"-105.854,165.589,-38.312,-0.003,-0.026,0.024,-0.048"},EPSG_4666:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},EPSG_4756:{towgs84:"-192.873,-39.382,-111.202,-0.00205,-0.0005,0.00335,0.0188"},EPSG_4723:{towgs84:"-179.483,-69.379,-27.584,-7.862,8.163,6.042,-13.925"},EPSG_4726:{towgs84:"8.853,-52.644,180.304,-0.393,-2.323,2.96,-24.081"},EPSG_4267:{towgs84:"-8.0,160.0,176.0"},EPSG_5365:{towgs84:"-0.16959,0.35312,0.51846,0.03385,-0.16325,0.03446,0.03693"},EPSG_4218:{towgs84:"304.5,306.5,-318.1"},EPSG_4242:{towgs84:"-33.722,153.789,94.959,-8.581,-4.478,4.54,8.95"},EPSG_4216:{towgs84:"-292.295,248.758,429.447,4.9971,2.99,6.6906,1.0289"},ESRI_104105:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},ESRI_104129:{towgs84:"0,0,0"},EPSG_4673:{towgs84:"174.05,-25.49,112.57"},EPSG_4202:{towgs84:"-124,-60,154"},EPSG_4203:{towgs84:"-117.763,-51.51,139.061,0.292,0.443,0.277,-0.191"},EPSG_3819:{towgs84:"595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408"},EPSG_8694:{towgs84:"-93.799,-132.737,-219.073,-1.844,0.648,-6.37,-0.169"},EPSG_4145:{towgs84:"275.57,676.78,229.6"},EPSG_4283:{towgs84:"61.55,-10.87,-40.19,39.4924,32.7221,32.8979,-9.994"},EPSG_4317:{towgs84:"2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266"},EPSG_4272:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993"},EPSG_4248:{towgs84:"-307.7,265.3,-363.5"},EPSG_5561:{towgs84:"24,-121,-76"},EPSG_5233:{towgs84:"-0.293,766.95,87.713,0.195704,1.695068,3.473016,-0.039338"},ESRI_104130:{towgs84:"-86,-98,-119"},ESRI_104102:{towgs84:"682,-203,480"},ESRI_37207:{towgs84:"7,-10,-26"},EPSG_4675:{towgs84:"59.935,118.4,-10.871"},ESRI_104109:{towgs84:"-89.121,-348.182,260.871"},ESRI_104112:{towgs84:"-185.583,-230.096,281.361"},ESRI_104113:{towgs84:"25.1,-275.6,222.6"},IGNF_WGS72G:{towgs84:"0,12,6"},IGNF_NTFG:{towgs84:"-168,-60,320"},IGNF_EFATE57G:{towgs84:"-127,-769,472"},IGNF_PGP50G:{towgs84:"324.8,153.6,172.1"},IGNF_REUN47G:{towgs84:"94,-948,-1262"},IGNF_CSG67G:{towgs84:"-186,230,110"},IGNF_GUAD48G:{towgs84:"-467,-16,-300"},IGNF_TAHI51G:{towgs84:"162,117,154"},IGNF_TAHAAG:{towgs84:"65,342,77"},IGNF_NUKU72G:{towgs84:"84,274,65"},IGNF_PETRELS72G:{towgs84:"365,194,166"},IGNF_WALL78G:{towgs84:"253,-133,-127"},IGNF_MAYO50G:{towgs84:"-382,-59,-262"},IGNF_TANNAG:{towgs84:"-139,-967,436"},IGNF_IGN72G:{towgs84:"-13,-348,292"},IGNF_ATIGG:{towgs84:"1118,23,66"},IGNF_FANGA84G:{towgs84:"150.57,158.33,118.32"},IGNF_RUSAT84G:{towgs84:"202.13,174.6,-15.74"},IGNF_KAUE70G:{towgs84:"126.74,300.1,-75.49"},IGNF_MOP90G:{towgs84:"-10.8,-1.8,12.77"},IGNF_MHPF67G:{towgs84:"338.08,212.58,-296.17"},IGNF_TAHI79G:{towgs84:"160.61,116.05,153.69"},IGNF_ANAA92G:{towgs84:"1.5,3.84,4.81"},IGNF_MARQUI72G:{towgs84:"330.91,-13.92,58.56"},IGNF_APAT86G:{towgs84:"143.6,197.82,74.05"},IGNF_TUBU69G:{towgs84:"237.17,171.61,-77.84"},IGNF_STPM50G:{towgs84:"11.363,424.148,373.13"},EPSG_4150:{towgs84:"674.374,15.056,405.346"},EPSG_4754:{towgs84:"-208.4058,-109.8777,-2.5764"},ESRI_104101:{towgs84:"374,150,588"},EPSG_4693:{towgs84:"0,-0.15,0.68"},EPSG_6207:{towgs84:"293.17,726.18,245.36"},EPSG_4153:{towgs84:"-133.63,-157.5,-158.62"},EPSG_4132:{towgs84:"-241.54,-163.64,396.06"},EPSG_4221:{towgs84:"-154.5,150.7,100.4"},EPSG_4266:{towgs84:"-80.7,-132.5,41.1"},EPSG_4193:{towgs84:"-70.9,-151.8,-41.4"},EPSG_5340:{towgs84:"-0.41,0.46,-0.35"},EPSG_4246:{towgs84:"-294.7,-200.1,525.5"},EPSG_4318:{towgs84:"-3.2,-5.7,2.8"},EPSG_4121:{towgs84:"-199.87,74.79,246.62"},EPSG_4223:{towgs84:"-260.1,5.5,432.2"},EPSG_4158:{towgs84:"-0.465,372.095,171.736"},EPSG_4285:{towgs84:"-128.16,-282.42,21.93"},EPSG_4613:{towgs84:"-404.78,685.68,45.47"},EPSG_4607:{towgs84:"195.671,332.517,274.607"},EPSG_4475:{towgs84:"-381.788,-57.501,-256.673"},EPSG_4208:{towgs84:"-157.84,308.54,-146.6"},EPSG_4743:{towgs84:"70.995,-335.916,262.898"},EPSG_4710:{towgs84:"-323.65,551.39,-491.22"},EPSG_7881:{towgs84:"-0.077,0.079,0.086"},EPSG_4682:{towgs84:"283.729,735.942,261.143"},EPSG_4739:{towgs84:"-156,-271,-189"},EPSG_4679:{towgs84:"-80.01,253.26,291.19"},EPSG_4750:{towgs84:"-56.263,16.136,-22.856"},EPSG_4644:{towgs84:"-10.18,-350.43,291.37"},EPSG_4695:{towgs84:"-103.746,-9.614,-255.95"},EPSG_4292:{towgs84:"-355,21,72"},EPSG_4302:{towgs84:"-61.702,284.488,472.052"},EPSG_4143:{towgs84:"-124.76,53,466.79"},EPSG_4606:{towgs84:"-153,153,307"},EPSG_4699:{towgs84:"-770.1,158.4,-498.2"},EPSG_4247:{towgs84:"-273.5,110.6,-357.9"},EPSG_4160:{towgs84:"8.88,184.86,106.69"},EPSG_4161:{towgs84:"-233.43,6.65,173.64"},EPSG_9251:{towgs84:"-9.5,122.9,138.2"},EPSG_9253:{towgs84:"-78.1,101.6,133.3"},EPSG_4297:{towgs84:"-198.383,-240.517,-107.909"},EPSG_4269:{towgs84:"0,0,0"},EPSG_4301:{towgs84:"-147,506,687"},EPSG_4618:{towgs84:"-59,-11,-52"},EPSG_4612:{towgs84:"0,0,0"},EPSG_4678:{towgs84:"44.585,-131.212,-39.544"},EPSG_4250:{towgs84:"-130,29,364"},EPSG_4144:{towgs84:"214,804,268"},EPSG_4147:{towgs84:"-17.51,-108.32,-62.39"},EPSG_4259:{towgs84:"-254.1,-5.36,-100.29"},EPSG_4164:{towgs84:"-76,-138,67"},EPSG_4211:{towgs84:"-378.873,676.002,-46.255"},EPSG_4182:{towgs84:"-422.651,-172.995,84.02"},EPSG_4224:{towgs84:"-143.87,243.37,-33.52"},EPSG_4225:{towgs84:"-205.57,168.77,-4.12"},EPSG_5527:{towgs84:"-67.35,3.88,-38.22"},EPSG_4752:{towgs84:"98,390,-22"},EPSG_4310:{towgs84:"-30,190,89"},EPSG_9248:{towgs84:"-192.26,65.72,132.08"},EPSG_4680:{towgs84:"124.5,-63.5,-281"},EPSG_4701:{towgs84:"-79.9,-158,-168.9"},EPSG_4706:{towgs84:"-146.21,112.63,4.05"},EPSG_4805:{towgs84:"682,-203,480"},EPSG_4201:{towgs84:"-165,-11,206"},EPSG_4210:{towgs84:"-157,-2,-299"},EPSG_4183:{towgs84:"-104,167,-38"},EPSG_4139:{towgs84:"11,72,-101"},EPSG_4668:{towgs84:"-86,-98,-119"},EPSG_4717:{towgs84:"-2,151,181"},EPSG_4732:{towgs84:"102,52,-38"},EPSG_4280:{towgs84:"-377,681,-50"},EPSG_4209:{towgs84:"-138,-105,-289"},EPSG_4261:{towgs84:"31,146,47"},EPSG_4658:{towgs84:"-73,46,-86"},EPSG_4721:{towgs84:"265.025,384.929,-194.046"},EPSG_4222:{towgs84:"-136,-108,-292"},EPSG_4601:{towgs84:"-255,-15,71"},EPSG_4602:{towgs84:"725,685,536"},EPSG_4603:{towgs84:"72,213.7,93"},EPSG_4605:{towgs84:"9,183,236"},EPSG_4621:{towgs84:"137,248,-430"},EPSG_4657:{towgs84:"-28,199,5"},EPSG_4316:{towgs84:"103.25,-100.4,-307.19"},EPSG_4642:{towgs84:"-13,-348,292"},EPSG_4698:{towgs84:"145,-187,103"},EPSG_4192:{towgs84:"-206.1,-174.7,-87.7"},EPSG_4311:{towgs84:"-265,120,-358"},EPSG_4135:{towgs84:"58,-283,-182"},ESRI_104138:{towgs84:"198,-226,-347"},EPSG_4245:{towgs84:"-11,851,5"},EPSG_4142:{towgs84:"-125,53,467"},EPSG_4213:{towgs84:"-106,-87,188"},EPSG_4253:{towgs84:"-133,-77,-51"},EPSG_4129:{towgs84:"-132,-110,-335"},EPSG_4713:{towgs84:"-77,-128,142"},EPSG_4239:{towgs84:"217,823,299"},EPSG_4146:{towgs84:"295,736,257"},EPSG_4155:{towgs84:"-83,37,124"},EPSG_4165:{towgs84:"-173,253,27"},EPSG_4672:{towgs84:"175,-38,113"},EPSG_4236:{towgs84:"-637,-549,-203"},EPSG_4251:{towgs84:"-90,40,88"},EPSG_4271:{towgs84:"-2,374,172"},EPSG_4175:{towgs84:"-88,4,101"},EPSG_4716:{towgs84:"298,-304,-375"},EPSG_4315:{towgs84:"-23,259,-9"},EPSG_4744:{towgs84:"-242.2,-144.9,370.3"},EPSG_4244:{towgs84:"-97,787,86"},EPSG_4293:{towgs84:"616,97,-251"},EPSG_4714:{towgs84:"-127,-769,472"},EPSG_4736:{towgs84:"260,12,-147"},EPSG_6883:{towgs84:"-235,-110,393"},EPSG_6894:{towgs84:"-63,176,185"},EPSG_4205:{towgs84:"-43,-163,45"},EPSG_4256:{towgs84:"41,-220,-134"},EPSG_4262:{towgs84:"639,405,60"},EPSG_4604:{towgs84:"174,359,365"},EPSG_4169:{towgs84:"-115,118,426"},EPSG_4620:{towgs84:"-106,-129,165"},EPSG_4184:{towgs84:"-203,141,53"},EPSG_4616:{towgs84:"-289,-124,60"},EPSG_9403:{towgs84:"-307,-92,127"},EPSG_4684:{towgs84:"-133,-321,50"},EPSG_4708:{towgs84:"-491,-22,435"},EPSG_4707:{towgs84:"114,-116,-333"},EPSG_4709:{towgs84:"145,75,-272"},EPSG_4712:{towgs84:"-205,107,53"},EPSG_4711:{towgs84:"124,-234,-25"},EPSG_4718:{towgs84:"230,-199,-752"},EPSG_4719:{towgs84:"211,147,111"},EPSG_4724:{towgs84:"208,-435,-229"},EPSG_4725:{towgs84:"189,-79,-202"},EPSG_4735:{towgs84:"647,1777,-1124"},EPSG_4722:{towgs84:"-794,119,-298"},EPSG_4728:{towgs84:"-307,-92,127"},EPSG_4734:{towgs84:"-632,438,-609"},EPSG_4727:{towgs84:"912,-58,1227"},EPSG_4729:{towgs84:"185,165,42"},EPSG_4730:{towgs84:"170,42,84"},EPSG_4733:{towgs84:"276,-57,149"},ESRI_37218:{towgs84:"230,-199,-752"},ESRI_37240:{towgs84:"-7,215,225"},ESRI_37221:{towgs84:"252,-209,-751"},ESRI_4305:{towgs84:"-123,-206,219"},ESRI_104139:{towgs84:"-73,-247,227"},EPSG_4748:{towgs84:"51,391,-36"},EPSG_4219:{towgs84:"-384,664,-48"},EPSG_4255:{towgs84:"-333,-222,114"},EPSG_4257:{towgs84:"-587.8,519.75,145.76"},EPSG_4646:{towgs84:"-963,510,-359"},EPSG_6881:{towgs84:"-24,-203,268"},EPSG_6882:{towgs84:"-183,-15,273"},EPSG_4715:{towgs84:"-104,-129,239"},IGNF_RGF93GDD:{towgs84:"0,0,0"},IGNF_RGM04GDD:{towgs84:"0,0,0"},IGNF_RGSPM06GDD:{towgs84:"0,0,0"},IGNF_RGTAAF07GDD:{towgs84:"0,0,0"},IGNF_RGFG95GDD:{towgs84:"0,0,0"},IGNF_RGNCG:{towgs84:"0,0,0"},IGNF_RGPFGDD:{towgs84:"0,0,0"},IGNF_ETRS89G:{towgs84:"0,0,0"},IGNF_RGR92GDD:{towgs84:"0,0,0"},EPSG_4173:{towgs84:"0,0,0"},EPSG_4180:{towgs84:"0,0,0"},EPSG_4619:{towgs84:"0,0,0"},EPSG_4667:{towgs84:"0,0,0"},EPSG_4075:{towgs84:"0,0,0"},EPSG_6706:{towgs84:"0,0,0"},EPSG_7798:{towgs84:"0,0,0"},EPSG_4661:{towgs84:"0,0,0"},EPSG_4669:{towgs84:"0,0,0"},EPSG_8685:{towgs84:"0,0,0"},EPSG_4151:{towgs84:"0,0,0"},EPSG_9702:{towgs84:"0,0,0"},EPSG_4758:{towgs84:"0,0,0"},EPSG_4761:{towgs84:"0,0,0"},EPSG_4765:{towgs84:"0,0,0"},EPSG_8997:{towgs84:"0,0,0"},EPSG_4023:{towgs84:"0,0,0"},EPSG_4670:{towgs84:"0,0,0"},EPSG_4694:{towgs84:"0,0,0"},EPSG_4148:{towgs84:"0,0,0"},EPSG_4163:{towgs84:"0,0,0"},EPSG_4167:{towgs84:"0,0,0"},EPSG_4189:{towgs84:"0,0,0"},EPSG_4190:{towgs84:"0,0,0"},EPSG_4176:{towgs84:"0,0,0"},EPSG_4659:{towgs84:"0,0,0"},EPSG_3824:{towgs84:"0,0,0"},EPSG_3889:{towgs84:"0,0,0"},EPSG_4046:{towgs84:"0,0,0"},EPSG_4081:{towgs84:"0,0,0"},EPSG_4558:{towgs84:"0,0,0"},EPSG_4483:{towgs84:"0,0,0"},EPSG_5013:{towgs84:"0,0,0"},EPSG_5264:{towgs84:"0,0,0"},EPSG_5324:{towgs84:"0,0,0"},EPSG_5354:{towgs84:"0,0,0"},EPSG_5371:{towgs84:"0,0,0"},EPSG_5373:{towgs84:"0,0,0"},EPSG_5381:{towgs84:"0,0,0"},EPSG_5393:{towgs84:"0,0,0"},EPSG_5489:{towgs84:"0,0,0"},EPSG_5593:{towgs84:"0,0,0"},EPSG_6135:{towgs84:"0,0,0"},EPSG_6365:{towgs84:"0,0,0"},EPSG_5246:{towgs84:"0,0,0"},EPSG_7886:{towgs84:"0,0,0"},EPSG_8431:{towgs84:"0,0,0"},EPSG_8427:{towgs84:"0,0,0"},EPSG_8699:{towgs84:"0,0,0"},EPSG_8818:{towgs84:"0,0,0"},EPSG_4757:{towgs84:"0,0,0"},EPSG_9140:{towgs84:"0,0,0"},EPSG_8086:{towgs84:"0,0,0"},EPSG_4686:{towgs84:"0,0,0"},EPSG_4737:{towgs84:"0,0,0"},EPSG_4702:{towgs84:"0,0,0"},EPSG_4747:{towgs84:"0,0,0"},EPSG_4749:{towgs84:"0,0,0"},EPSG_4674:{towgs84:"0,0,0"},EPSG_4755:{towgs84:"0,0,0"},EPSG_4759:{towgs84:"0,0,0"},EPSG_4762:{towgs84:"0,0,0"},EPSG_4763:{towgs84:"0,0,0"},EPSG_4764:{towgs84:"0,0,0"},EPSG_4166:{towgs84:"0,0,0"},EPSG_4170:{towgs84:"0,0,0"},EPSG_5546:{towgs84:"0,0,0"},EPSG_7844:{towgs84:"0,0,0"},EPSG_4818:{towgs84:"589,76,480"}};for(var fe in ce){var he=ce[fe];he.datumName&&(ce[he.datumName]=he)}var de=ce,pe=function(e,t,r,s,u,l,c){var f={};return f.datum_type=void 0===e||"none"===e?5:4,t&&(f.datum_params=t.map(parseFloat),0===f.datum_params[0]&&0===f.datum_params[1]&&0===f.datum_params[2]||(f.datum_type=n),f.datum_params.length>3&&(0===f.datum_params[3]&&0===f.datum_params[4]&&0===f.datum_params[5]&&0===f.datum_params[6]||(f.datum_type=i,f.datum_params[3]*=a,f.datum_params[4]*=a,f.datum_params[5]*=a,f.datum_params[6]=f.datum_params[6]/1e6+1))),c&&(f.datum_type=o,f.grids=c),f.a=r,f.b=s,f.es=u,f.ep2=l,f},ye={};function ge(e){if(0===e.length)return null;var t="@"===e[0];return t&&(e=e.slice(1)),"null"===e?{name:"null",mandatory:!t,grid:null,isNull:!0}:{name:e,mandatory:!t,grid:ye[e]||null,isNull:!1}}function me(e){return e*Math.PI/180}function ve(e){return e/3600*Math.PI/180}function _e(e,t,r){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,r)))}function Se(e){return e.map(function(e){return[ve(e.longitudeShift),ve(e.latitudeShift)]})}function be(e,t,r){return{name:_e(e,t+8,t+16).trim(),parent:_e(e,t+24,t+24+8).trim(),lowerLatitude:e.getFloat64(t+72,r),upperLatitude:e.getFloat64(t+88,r),lowerLongitude:e.getFloat64(t+104,r),upperLongitude:e.getFloat64(t+120,r),latitudeInterval:e.getFloat64(t+136,r),longitudeInterval:e.getFloat64(t+152,r),gridNodeCount:e.getInt32(t+168,r)}}function xe(e,t,r,n,i){var o=t+176,a=16;!1===i&&(a=8);for(var s=[],u=0;u<r.gridNodeCount;u++){var l={latitudeShift:e.getFloat32(o+u*a,n),longitudeShift:e.getFloat32(o+u*a+4,n)};!1!==i&&(l.latitudeAccuracy=e.getFloat32(o+u*a+8,n),l.longitudeAccuracy=e.getFloat32(o+u*a+12,n)),s.push(l)}return s}function we(e,t){if(!(this instanceof we))return new we(e);this.forward=null,this.inverse=null,this.init=null,this.name,this.names=null,this.title,t=t||function(e){if(e)throw e};var r=H(e);if("object"==typeof r){var n=we.projections.get(r.projName);if(n){if(r.datumCode&&"none"!==r.datumCode){var i=S(de,r.datumCode);i&&(r.datum_params=r.datum_params||(i.towgs84?i.towgs84.split(","):null),r.ellps=i.ellipse,r.datumName=i.datumName?i.datumName:r.datumCode)}r.k0=r.k0||1,r.axis=r.axis||"enu",r.ellps=r.ellps||"wgs84",r.lat1=r.lat1||r.lat0;var o=function(e,t,r,n,i){if(!e){var o=S(ue,n);o||(o=le),e=o.a,t=o.b,r=o.rf}return r&&!t&&(t=(1-1/r)*e),(0===r||Math.abs(e-t)<f)&&(i=!0,t=e),{a:e,b:t,rf:r,sphere:i}}(r.a,r.b,r.rf,r.ellps,r.sphere),a=function(e,t,r,n){var i=e*e,o=t*t,a=(i-o)/i,s=0;return n?(i=(e*=1-a*(u+a*(l+a*c)))*e,a=0):s=Math.sqrt(a),{es:a,e:s,ep2:(i-o)/o}}(o.a,o.b,o.rf,r.R_A),s=function(e){return void 0===e?null:e.split(",").map(ge)}(r.nadgrids),h=r.datum||pe(r.datumCode,r.datum_params,o.a,o.b,a.es,a.ep2,s);Y(this,r),Y(this,n),this.a=o.a,this.b=o.b,this.rf=o.rf,this.sphere=o.sphere,this.es=a.es,this.e=a.e,this.ep2=a.ep2,this.datum=h,"init"in this&&"function"==typeof this.init&&this.init(),t(null,this)}else t("Could not get projection name from: "+e)}else t("Could not parse to valid json: "+e)}we.projections=se,we.projections.start();var Ee=we;function Te(e,t,r){var n,i,o,a,u=e.x,l=e.y,c=e.z?e.z:0;if(l<-s&&l>-1.001*s)l=-s;else if(l>s&&l<1.001*s)l=s;else{if(l<-s)return{x:-1/0,y:-1/0,z:e.z};if(l>s)return{x:1/0,y:1/0,z:e.z}}return u>Math.PI&&(u-=2*Math.PI),i=Math.sin(l),a=Math.cos(l),o=i*i,{x:((n=r/Math.sqrt(1-t*o))+c)*a*Math.cos(u),y:(n+c)*a*Math.sin(u),z:(n*(1-t)+c)*i}}function Ie(e,t,r,n){var i,o,a,s,u,l,c,f,h,d,p,y,g,m,v,_=e.x,S=e.y,b=e.z?e.z:0;if(i=Math.sqrt(_*_+S*S),o=Math.sqrt(_*_+S*S+b*b),i/r<1e-12){if(m=0,o/r<1e-12)return v=-n,{x:e.x,y:e.y,z:e.z}}else m=Math.atan2(S,_);a=b/o,f=(s=i/o)*(1-t)*(u=1/Math.sqrt(1-t*(2-t)*s*s)),h=a*u,g=0;do{g++,l=t*(c=r/Math.sqrt(1-t*h*h))/(c+(v=i*f+b*h-c*(1-t*h*h))),y=(p=a*(u=1/Math.sqrt(1-l*(2-l)*s*s)))*f-(d=s*(1-l)*u)*h,f=d,h=p}while(y*y>1e-24&&g<30);return{x:m,y:Math.atan(p/Math.abs(d)),z:v}}function Me(e){return e===n||e===i}var ke=function(e,t,r){if(function(e,t){return e.datum_type===t.datum_type&&!(e.a!==t.a||Math.abs(e.es-t.es)>5e-11)&&(e.datum_type===n?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:e.datum_type!==i||e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6])}(e,t))return r;if(5===e.datum_type||5===t.datum_type)return r;var a=e.a,s=e.es;if(e.datum_type===o){if(0!==Pe(e,!1,r))return;a=6378137,s=.0066943799901413165}var u=t.a,l=t.b,c=t.es;return t.datum_type===o&&(u=6378137,l=6356752.314,c=.0066943799901413165),s!==c||a!==u||Me(e.datum_type)||Me(t.datum_type)?(r=Te(r,s,a),Me(e.datum_type)&&(r=function(e,t,r){if(t===n)return{x:e.x+r[0],y:e.y+r[1],z:e.z+r[2]};if(t===i){var o=r[0],a=r[1],s=r[2],u=r[3],l=r[4],c=r[5],f=r[6];return{x:f*(e.x-c*e.y+l*e.z)+o,y:f*(c*e.x+e.y-u*e.z)+a,z:f*(-l*e.x+u*e.y+e.z)+s}}}(r,e.datum_type,e.datum_params)),Me(t.datum_type)&&(r=function(e,t,r){if(t===n)return{x:e.x-r[0],y:e.y-r[1],z:e.z-r[2]};if(t===i){var o=r[0],a=r[1],s=r[2],u=r[3],l=r[4],c=r[5],f=r[6],h=(e.x-o)/f,d=(e.y-a)/f,p=(e.z-s)/f;return{x:h+c*d-l*p,y:-c*h+d+u*p,z:l*h-u*d+p}}}(r,t.datum_type,t.datum_params)),r=Ie(r,c,u,l),t.datum_type!==o||0===Pe(t,!0,r)?r:void 0):r};function Pe(e,t,r){if(null===e.grids||0===e.grids.length)return console.log("Grid shift grids not found"),-1;var n={x:-r.x,y:r.y},i={x:Number.NaN,y:Number.NaN},o=[];e:for(var a=0;a<e.grids.length;a++){var s=e.grids[a];if(o.push(s.name),s.isNull){i=n;break}if(null!==s.grid)for(var u=s.grid.subgrids,l=0,c=u.length;l<c;l++){var f=u[l],h=(Math.abs(f.del[1])+Math.abs(f.del[0]))/1e4,p=f.ll[0]-h,y=f.ll[1]-h,g=f.ll[0]+(f.lim[0]-1)*f.del[0]+h,m=f.ll[1]+(f.lim[1]-1)*f.del[1]+h;if(!(y>n.y||p>n.x||m<n.y||g<n.x||(i=Le(n,t,f),isNaN(i.x))))break e}else if(s.mandatory)return console.log("Unable to find mandatory grid '"+s.name+"'"),-1}return isNaN(i.x)?(console.log("Failed to find a grid shift table for location '"+-n.x*d+" "+n.y*d+" tried: '"+o+"'"),-1):(r.x=-i.x,r.y=i.y,0)}function Le(e,t,r){var n={x:Number.NaN,y:Number.NaN};if(isNaN(e.x))return n;var i={x:e.x,y:e.y};i.x-=r.ll[0],i.y-=r.ll[1],i.x=Z(i.x-Math.PI)+Math.PI;var o=Oe(i,r);if(t){if(isNaN(o.x))return n;o.x=i.x-o.x,o.y=i.y-o.y;var a,s,u=9;do{if(s=Oe(o,r),isNaN(s.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}a={x:i.x-(s.x+o.x),y:i.y-(s.y+o.y)},o.x+=a.x,o.y+=a.y}while(u--&&Math.abs(a.x)>1e-12&&Math.abs(a.y)>1e-12);if(u<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=Z(o.x+r.ll[0]),n.y=o.y+r.ll[1]}else isNaN(o.x)||(n.x=e.x+o.x,n.y=e.y+o.y);return n}function Oe(e,t){var r,n={x:e.x/t.del[0],y:e.y/t.del[1]},i=Math.floor(n.x),o=Math.floor(n.y),a=n.x-1*i,s=n.y-1*o,u={x:Number.NaN,y:Number.NaN};if(i<0||i>=t.lim[0])return u;if(o<0||o>=t.lim[1])return u;r=o*t.lim[0]+i;var l=t.cvs[r][0],c=t.cvs[r][1];r++;var f=t.cvs[r][0],h=t.cvs[r][1];r+=t.lim[0];var d=t.cvs[r][0],p=t.cvs[r][1];r--;var y=t.cvs[r][0],g=t.cvs[r][1],m=a*s,v=a*(1-s),_=(1-a)*(1-s),S=(1-a)*s;return u.x=_*l+v*f+S*y+m*d,u.y=_*c+v*h+S*g+m*p,u}var Ce=function(e,t,r){var n,i,o,a=r.x,s=r.y,u=r.z||0,l={};for(o=0;o<3;o++)if(!t||2!==o||void 0!==r.z)switch(0===o?(n=a,i=-1!=="ew".indexOf(e.axis[o])?"x":"y"):1===o?(n=s,i=-1!=="ns".indexOf(e.axis[o])?"y":"x"):(n=u,i="z"),e.axis[o]){case"e":l[i]=n;break;case"w":l[i]=-n;break;case"n":l[i]=n;break;case"s":l[i]=-n;break;case"u":void 0!==r[i]&&(l.z=n);break;case"d":void 0!==r[i]&&(l.z=-n);break;default:return null}return l},Ne=function(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t},Re=function(e){Ge(e.x),Ge(e.y)};function Ge(e){if("function"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function Ae(e,t,r,a){var s,u=void 0!==(r=Array.isArray(r)?Ne(r):{x:r.x,y:r.y,z:r.z,m:r.m}).z;if(Re(r),e.datum&&t.datum&&function(e,t){return(e.datum.datum_type===n||e.datum.datum_type===i||e.datum.datum_type===o)&&"WGS84"!==t.datumCode||(t.datum.datum_type===n||t.datum.datum_type===i||t.datum.datum_type===o)&&"WGS84"!==e.datumCode}(e,t)&&(r=Ae(e,s=new Ee("WGS84"),r,a),e=s),a&&"enu"!==e.axis&&(r=Ce(e,!1,r)),"longlat"===e.projName)r={x:r.x*h,y:r.y*h,z:r.z||0};else if(e.to_meter&&(r={x:r.x*e.to_meter,y:r.y*e.to_meter,z:r.z||0}),!(r=e.inverse(r)))return;if(e.from_greenwich&&(r.x+=e.from_greenwich),r=ke(e.datum,t.datum,r))return r=r,t.from_greenwich&&(r={x:r.x-t.from_greenwich,y:r.y,z:r.z||0}),"longlat"===t.projName?r={x:r.x*d,y:r.y*d,z:r.z||0}:(r=t.forward(r),t.to_meter&&(r={x:r.x/t.to_meter,y:r.y/t.to_meter,z:r.z||0})),a&&"enu"!==t.axis?Ce(t,!0,r):(r&&!u&&delete r.z,r)}var Ve=Ee("WGS84");function De(e,t,r,n){var i,o,a;return Array.isArray(r)?(i=Ae(e,t,r,n)||{x:NaN,y:NaN},r.length>2?void 0!==e.name&&"geocent"===e.name||void 0!==t.name&&"geocent"===t.name?"number"==typeof i.z?[i.x,i.y,i.z].concat(r.slice(3)):[i.x,i.y,r[2]].concat(r.slice(3)):[i.x,i.y].concat(r.slice(2)):[i.x,i.y]):(o=Ae(e,t,r,n),2===(a=Object.keys(r)).length?o:(a.forEach(function(n){if(void 0!==e.name&&"geocent"===e.name||void 0!==t.name&&"geocent"===t.name){if("x"===n||"y"===n||"z"===n)return}else if("x"===n||"y"===n)return;o[n]=r[n]}),o))}function Fe(e){return e instanceof Ee?e:"object"==typeof e&&"oProj"in e?e.oProj:Ee(e)}var je=6,Be="AJSAJS",qe="AFAFAF",Ue=65,Je=73,ze=79,We=86,He=90,Ye={forward:Xe,inverse:function(e){var t=$e(tt(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat,t.lon,t.lat]:[t.left,t.bottom,t.right,t.top]},toPoint:Ke};function Xe(e,t){return t=t||5,function(e,t){var r="00000"+e.easting,n="00000"+e.northing;return e.zoneNumber+e.zoneLetter+function(e,t,r){var n=et(r);return function(e,t,r){var n=r-1,i=Be.charCodeAt(n),o=qe.charCodeAt(n),a=i+e-1,s=o+t,u=!1;return a>He&&(a=a-He+Ue-1,u=!0),(a===Je||i<Je&&a>Je||(a>Je||i<Je)&&u)&&a++,(a===ze||i<ze&&a>ze||(a>ze||i<ze)&&u)&&++a===Je&&a++,a>He&&(a=a-He+Ue-1),s>We?(s=s-We+Ue-1,u=!0):u=!1,(s===Je||o<Je&&s>Je||(s>Je||o<Je)&&u)&&s++,(s===ze||o<ze&&s>ze||(s>ze||o<ze)&&u)&&++s===Je&&s++,s>We&&(s=s-We+Ue-1),String.fromCharCode(a)+String.fromCharCode(s)}(Math.floor(e/1e5),Math.floor(t/1e5)%20,n)}(e.easting,e.northing,e.zoneNumber)+r.substr(r.length-5,t)+n.substr(n.length-5,t)}(function(e){var t,r,n,i,o,a,s=e.lat,u=e.lon,l=6378137,c=Ze(s),f=Ze(u);a=Math.floor((u+180)/6)+1,180===u&&(a=60),s>=56&&s<64&&u>=3&&u<12&&(a=32),s>=72&&s<84&&(u>=0&&u<9?a=31:u>=9&&u<21?a=33:u>=21&&u<33?a=35:u>=33&&u<42&&(a=37)),o=Ze(6*(a-1)-180+3),t=l/Math.sqrt(1-.00669438*Math.sin(c)*Math.sin(c)),r=Math.tan(c)*Math.tan(c),n=.006739496752268451*Math.cos(c)*Math.cos(c);var h=.9996*t*((i=Math.cos(c)*(f-o))+(1-r+n)*i*i*i/6+(5-18*r+r*r+72*n-.39089081163157013)*i*i*i*i*i/120)+5e5,d=.9996*(l*(.9983242984503243*c-.002514607064228144*Math.sin(2*c)+2639046602129982e-21*Math.sin(4*c)-3.418046101696858e-9*Math.sin(6*c))+t*Math.tan(c)*(i*i/2+(5-r+9*n+4*n*n)*i*i*i*i/24+(61-58*r+r*r+600*n-2.2240339282485886)*i*i*i*i*i*i/720));return s<0&&(d+=1e7),{northing:Math.round(d),easting:Math.round(h),zoneNumber:a,zoneLetter:function(e){var t="Z";return 84>=s&&s>=72?t="X":72>s&&s>=64?t="W":64>s&&s>=56?t="V":56>s&&s>=48?t="U":48>s&&s>=40?t="T":40>s&&s>=32?t="S":32>s&&s>=24?t="R":24>s&&s>=16?t="Q":16>s&&s>=8?t="P":8>s&&s>=0?t="N":0>s&&s>=-8?t="M":-8>s&&s>=-16?t="L":-16>s&&s>=-24?t="K":-24>s&&s>=-32?t="J":-32>s&&s>=-40?t="H":-40>s&&s>=-48?t="G":-48>s&&s>=-56?t="F":-56>s&&s>=-64?t="E":-64>s&&s>=-72?t="D":-72>s&&s>=-80&&(t="C"),t}()}}({lat:e[1],lon:e[0]}),t)}function Ke(e){var t=$e(tt(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function Ze(e){return e*(Math.PI/180)}function Qe(e){return e/Math.PI*180}function $e(e){var t=e.northing,r=e.easting,n=e.zoneLetter,i=e.zoneNumber;if(i<0||i>60)return null;var o,a,s,u,l,c,f,h,d=6378137,p=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),y=r-5e5,g=t;n<"N"&&(g-=1e7),c=6*(i-1)-180+3,h=(f=g/.9996/6367449.145945056)+(3*p/2-27*p*p*p/32)*Math.sin(2*f)+(21*p*p/16-55*p*p*p*p/32)*Math.sin(4*f)+151*p*p*p/96*Math.sin(6*f),o=d/Math.sqrt(1-.00669438*Math.sin(h)*Math.sin(h)),a=Math.tan(h)*Math.tan(h),s=.006739496752268451*Math.cos(h)*Math.cos(h),u=.99330562*d/Math.pow(1-.00669438*Math.sin(h)*Math.sin(h),1.5),l=y/(.9996*o);var m=h-o*Math.tan(h)/u*(l*l/2-(5+3*a+10*s-4*s*s-.06065547077041606)*l*l*l*l/24+(61+90*a+298*s+45*a*a-1.6983531815716497-3*s*s)*l*l*l*l*l*l/720);m=Qe(m);var v,_=(l-(1+2*a+s)*l*l*l/6+(5-2*s+28*a-3*s*s+.05391597401814761+24*a*a)*l*l*l*l*l/120)/Math.cos(h);if(_=c+Qe(_),e.accuracy){var S=$e({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});v={top:S.lat,right:S.lon,bottom:m,left:_}}else v={lat:m,lon:_};return v}function et(e){var t=e%je;return 0===t&&(t=je),t}function tt(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,r=e.length,n=null,i="",o=0;!/[A-Z]/.test(t=e.charAt(o));){if(o>=2)throw"MGRSPoint bad conversion from: "+e;i+=t,o++}var a=parseInt(i,10);if(0===o||o+3>r)throw"MGRSPoint bad conversion from: "+e;var s=e.charAt(o++);if(s<="A"||"B"===s||"Y"===s||s>="Z"||"I"===s||"O"===s)throw"MGRSPoint zone letter "+s+" not handled: "+e;n=e.substring(o,o+=2);for(var u=et(a),l=function(e,t){for(var r=Be.charCodeAt(t-1),n=1e5,i=!1;r!==e.charCodeAt(0);){if(++r===Je&&r++,r===ze&&r++,r>He){if(i)throw"Bad character: "+e;r=Ue,i=!0}n+=1e5}return n}(n.charAt(0),u),c=function(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;for(var r=qe.charCodeAt(t-1),n=0,i=!1;r!==e.charCodeAt(0);){if(++r===Je&&r++,r===ze&&r++,r>We){if(i)throw"Bad character: "+e;r=Ue,i=!0}n+=1e5}return n}(n.charAt(1),u);c<rt(s);)c+=2e6;var f=r-o;if(f%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+e;var h,d,p,y=f/2,g=0,m=0;return y>0&&(h=1e5/Math.pow(10,y),d=e.substring(o,o+y),g=parseFloat(d)*h,p=e.substring(o+y),m=parseFloat(p)*h),{easting:g+l,northing:m+c,zoneLetter:s,zoneNumber:a,accuracy:h}}function rt(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function nt(e,t,r){if(!(this instanceof nt))return new nt(e,t,r);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if("object"==typeof e)this.x=e.x,this.y=e.y,this.z=e.z||0;else if("string"==typeof e&&void 0===t){var n=e.split(",");this.x=parseFloat(n[0]),this.y=parseFloat(n[1]),this.z=parseFloat(n[2])||0}else this.x=e,this.y=t,this.z=r||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}nt.fromMGRS=function(e){return new nt(Ke(e))},nt.prototype.toMGRS=function(e){return Xe([this.x,this.y],e)};var it=nt,ot=.01068115234375,at=function(e){var t=[];t[0]=1-e*(.25+e*(.046875+e*(.01953125+e*ot))),t[1]=e*(.75-e*(.046875+e*(.01953125+e*ot)));var r=e*e;return t[2]=r*(.46875-e*(.013020833333333334+.007120768229166667*e)),r*=e,t[3]=r*(.3645833333333333-.005696614583333333*e),t[4]=r*e*.3076171875,t},st=function(e,t,r,n){return r*=t,t*=t,n[0]*e-r*(n[1]+t*(n[2]+t*(n[3]+t*n[4])))},ut=function(e,t,r){for(var n=1/(1-t),i=e,o=20;o;--o){var a=Math.sin(i),s=1-t*a*a;if(i-=s=(st(i,a,Math.cos(i),r)-e)*(s*Math.sqrt(s))*n,Math.abs(s)<f)return i}return i},lt={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=at(this.es),this.ml0=st(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(e){var t,r,n,i=e.x,o=e.y,a=Z(i-this.long0,this.over),s=Math.sin(o),u=Math.cos(o);if(this.es){var l=u*a,c=Math.pow(l,2),h=this.ep2*Math.pow(u,2),d=Math.pow(h,2),p=Math.abs(u)>f?Math.tan(o):0,y=Math.pow(p,2),g=Math.pow(y,2);t=1-this.es*Math.pow(s,2),l/=Math.sqrt(t);var m=st(o,s,u,this.en);r=this.a*(this.k0*l*(1+c/6*(1-y+h+c/20*(5-18*y+g+14*h-58*y*h+c/42*(61+179*g-g*y-479*y)))))+this.x0,n=this.a*(this.k0*(m-this.ml0+s*a*l/2*(1+c/12*(5-y+9*h+4*d+c/30*(61+g-58*y+270*h-330*y*h+c/56*(1385+543*g-g*y-3111*y))))))+this.y0}else{var v=u*Math.sin(a);if(Math.abs(Math.abs(v)-1)<f)return 93;if(r=.5*this.a*this.k0*Math.log((1+v)/(1-v))+this.x0,n=u*Math.cos(a)/Math.sqrt(1-Math.pow(v,2)),(v=Math.abs(n))>=1){if(v-1>f)return 93;n=0}else n=Math.acos(n);o<0&&(n=-n),n=this.a*this.k0*(n-this.lat0)+this.y0}return e.x=r,e.y=n,e},inverse:function(e){var t,r,n,i,o=(e.x-this.x0)*(1/this.a),a=(e.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+a/this.k0,r=ut(t,this.es,this.en),Math.abs(r)<s){var u=Math.sin(r),l=Math.cos(r),c=Math.abs(l)>f?Math.tan(r):0,h=this.ep2*Math.pow(l,2),d=Math.pow(h,2),p=Math.pow(c,2),y=Math.pow(p,2);t=1-this.es*Math.pow(u,2);var g=o*Math.sqrt(t)/this.k0,m=Math.pow(g,2);n=r-(t*=c)*m/(1-this.es)*.5*(1-m/12*(5+3*p-9*h*p+h-4*d-m/30*(61+90*p-252*h*p+45*y+46*h-m/56*(1385+3633*p+4095*y+1574*y*p)))),i=Z(this.long0+g*(1-m/6*(1+2*p+h-m/20*(5+28*p+24*y+8*h*p+6*h-m/42*(61+662*p+1320*y+720*y*p))))/l,this.over)}else n=s*K(a),i=0;else{var v=Math.exp(o/this.k0),_=.5*(v-1/v),S=this.lat0+a/this.k0,b=Math.cos(S);t=Math.sqrt((1-Math.pow(b,2))/(1+Math.pow(_,2))),n=Math.asin(t),a<0&&(n=-n),i=0===_&&0===b?0:Z(Math.atan2(_,b)+this.long0,this.over)}return e.x=i,e.y=n,e},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]},ct=function(e){var t=Math.exp(e);return(t-1/t)/2},ft=function(e,t){e=Math.abs(e),t=Math.abs(t);var r=Math.max(e,t),n=Math.min(e,t)/(r||1);return r*Math.sqrt(1+Math.pow(n,2))},ht=function(e,t){for(var r,n=2*Math.cos(2*t),i=e.length-1,o=e[i],a=0;--i>=0;)r=n*o-a+e[i],a=o,o=r;return t+r*Math.sin(2*t)},dt=function(e,t,r){for(var n,i,o=Math.sin(t),a=Math.cos(t),s=ct(r),u=function(e){var t=Math.exp(e);return(t+1/t)/2}(r),l=2*a*u,c=-2*o*s,f=e.length-1,h=e[f],d=0,p=0,y=0;--f>=0;)n=p,i=d,h=l*(p=h)-n-c*(d=y)+e[f],y=c*p-i+l*d;return[(l=o*u)*h-(c=a*s)*y,l*y+c*h]},pt={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(lt.init.apply(this),this.forward=lt.forward,this.inverse=lt.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),r=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),r*=t,this.cgb[1]=r*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=r*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),r*=t,this.cgb[2]=r*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=r*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),r*=t,this.cgb[3]=r*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=r*(1237/630+t*(t*(-24832/14175)-2.4)),r*=t,this.cgb[4]=r*(4174/315+t*(-144838/6237)),this.cbg[4]=r*(-734/315+t*(109598/31185)),r*=t,this.cgb[5]=r*(601676/22275),this.cbg[5]=r*(444337/155925),r=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+r*(.25+r*(1/64+r/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=r*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=r*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),r*=t,this.utg[2]=r*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=r*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),r*=t,this.utg[3]=r*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=r*(49561/161280+t*(-179/168+t*(6601661/7257600))),r*=t,this.utg[4]=r*(-4583/161280+t*(108847/3991680)),this.gtu[4]=r*(34729/80640+t*(-3418889/1995840)),r*=t,this.utg[5]=-.03233083094085698*r,this.gtu[5]=.6650675310896665*r;var n=ht(this.cbg,this.lat0);this.Zb=-this.Qn*(n+function(e,t){for(var r,n=2*Math.cos(t),i=e.length-1,o=e[i],a=0;--i>=0;)r=n*o-a+e[i],a=o,o=r;return Math.sin(t)*r}(this.gtu,2*n))},forward:function(e){var t=Z(e.x-this.long0,this.over),r=e.y;r=ht(this.cbg,r);var n=Math.sin(r),i=Math.cos(r),o=Math.sin(t),a=Math.cos(t);r=Math.atan2(n,a*i),t=Math.atan2(o*i,ft(n,i*a)),t=function(e){var t=Math.abs(e);return t=function(e){var t=1+e,r=t-1;return 0===r?e:e*Math.log(t)/r}(t*(1+t/(ft(1,t)+1))),e<0?-t:t}(Math.tan(t));var s,u,l=dt(this.gtu,2*r,2*t);return r+=l[0],t+=l[1],Math.abs(t)<=2.623395162778?(s=this.a*(this.Qn*t)+this.x0,u=this.a*(this.Qn*r+this.Zb)+this.y0):(s=1/0,u=1/0),e.x=s,e.y=u,e},inverse:function(e){var t,r,n=(e.x-this.x0)*(1/this.a),i=(e.y-this.y0)*(1/this.a);if(i=(i-this.Zb)/this.Qn,n/=this.Qn,Math.abs(n)<=2.623395162778){var o=dt(this.utg,2*i,2*n);i+=o[0],n+=o[1],n=Math.atan(ct(n));var a=Math.sin(i),s=Math.cos(i),u=Math.sin(n),l=Math.cos(n);i=Math.atan2(a*l,ft(u,l*s)),n=Math.atan2(u,l*s),t=Z(n+this.long0,this.over),r=ht(this.cgb,i)}else t=1/0,r=1/0;return e.x=t,e.y=r,e},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"]},yt={init:function(){var e=function(e,t){if(void 0===e){if((e=Math.floor(30*(Z(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}(this.zone,this.long0);if(void 0===e)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*h,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,pt.init.apply(this),this.forward=pt.forward,this.inverse=pt.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"},gt=function(e,t){return Math.pow((1-e)/(1+e),t)},mt={init:function(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+p)/(Math.pow(Math.tan(.5*this.lat0+p),this.C)*gt(this.e*e,this.ratexp))},forward:function(e){var t=e.x,r=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*r+p),this.C)*gt(this.e*Math.sin(r),this.ratexp))-s,e.x=this.C*t,e},inverse:function(e){for(var t=e.x/this.C,r=e.y,n=Math.pow(Math.tan(.5*r+p)/this.K,1/this.C),i=20;i>0&&(r=2*Math.atan(n*gt(this.e*Math.sin(e.y),-.5*this.e))-s,!(Math.abs(r-e.y)<1e-14));--i)e.y=r;return i?(e.x=t,e.y=r,e):null},names:["gauss"]},vt={init:function(){mt.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(e){var t,r,n,i;return e.x=Z(e.x-this.long0,this.over),mt.forward.apply(this,[e]),t=Math.sin(e.y),r=Math.cos(e.y),n=Math.cos(e.x),i=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*r*n),e.x=i*r*Math.sin(e.x),e.y=i*(this.cosc0*t-this.sinc0*r*n),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){var t,r,n,i,o;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,o=ft(e.x,e.y)){var a=2*Math.atan2(o,this.R2);t=Math.sin(a),r=Math.cos(a),i=Math.asin(r*this.sinc0+e.y*t*this.cosc0/o),n=Math.atan2(e.x*t,o*this.cosc0*r-e.y*this.sinc0*t)}else i=this.phic0,n=0;return e.x=n,e.y=i,mt.inverse.apply(this,[e]),e.x=Z(e.x+this.long0,this.over),e},names:["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};function _t(e,t,r){return t*=r,Math.tan(.5*(s+e))*Math.pow((1-t)/(1+t),.5*r)}var St={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=f&&(this.k0=.5*(1+K(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=f&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=f&&Math.abs(Math.cos(this.lat_ts))>f&&(this.k0=.5*this.cons*X(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/Q(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=X(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(_t(this.lat0,this.sinlat0,this.e))-s,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(e){var t,r,n,i,o,a,u=e.x,l=e.y,c=Math.sin(l),h=Math.cos(l),d=Z(u-this.long0,this.over);return Math.abs(Math.abs(u-this.long0)-Math.PI)<=f&&Math.abs(l+this.lat0)<=f?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*c+this.coslat0*h*Math.cos(d)),e.x=this.a*t*h*Math.sin(d)+this.x0,e.y=this.a*t*(this.coslat0*c-this.sinlat0*h*Math.cos(d))+this.y0,e):(r=2*Math.atan(_t(l,c,this.e))-s,i=Math.cos(r),n=Math.sin(r),Math.abs(this.coslat0)<=f?(o=Q(this.e,l*this.con,this.con*c),a=2*this.a*this.k0*o/this.cons,e.x=this.x0+a*Math.sin(u-this.long0),e.y=this.y0-this.con*a*Math.cos(u-this.long0),e):(Math.abs(this.sinlat0)<f?(t=2*this.a*this.k0/(1+i*Math.cos(d)),e.y=t*n):(t=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*n+this.cosX0*i*Math.cos(d))),e.y=t*(this.cosX0*n-this.sinX0*i*Math.cos(d))+this.y0),e.x=t*i*Math.sin(d)+this.x0,e))},inverse:function(e){var t,r,n,i,o;e.x-=this.x0,e.y-=this.y0;var a=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var u=2*Math.atan(a/(2*this.a*this.k0));return t=this.long0,r=this.lat0,a<=f?(e.x=t,e.y=r,e):(r=Math.asin(Math.cos(u)*this.sinlat0+e.y*Math.sin(u)*this.coslat0/a),t=Math.abs(this.coslat0)<f?this.lat0>0?Z(this.long0+Math.atan2(e.x,-1*e.y),this.over):Z(this.long0+Math.atan2(e.x,e.y),this.over):Z(this.long0+Math.atan2(e.x*Math.sin(u),a*this.coslat0*Math.cos(u)-e.y*this.sinlat0*Math.sin(u)),this.over),e.x=t,e.y=r,e)}if(Math.abs(this.coslat0)<=f){if(a<=f)return r=this.lat0,t=this.long0,e.x=t,e.y=r,e;e.x*=this.con,e.y*=this.con,n=a*this.cons/(2*this.a*this.k0),r=this.con*$(this.e,n),t=this.con*Z(this.con*this.long0+Math.atan2(e.x,-1*e.y),this.over)}else i=2*Math.atan(a*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,a<=f?o=this.X0:(o=Math.asin(Math.cos(i)*this.sinX0+e.y*Math.sin(i)*this.cosX0/a),t=Z(this.long0+Math.atan2(e.x*Math.sin(i),a*this.cosX0*Math.cos(i)-e.y*this.sinX0*Math.sin(i)),this.over)),r=-1*$(this.e,Math.tan(.5*(s+o)));return e.x=t,e.y=r,e},names:["stere","Stereographic_South_Pole","Polar_Stereographic_variant_A","Polar_Stereographic_variant_B","Polar_Stereographic"],ssfn_:_t},bt={init:function(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),r=this.a,n=1/this.rf,i=2*n-Math.pow(n,2),o=this.e=Math.sqrt(i);this.R=this.k0*r*Math.sqrt(1-i)/(1-i*Math.pow(t,2)),this.alpha=Math.sqrt(1+i/(1-i)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),s=Math.log(Math.tan(Math.PI/4+e/2)),u=Math.log((1+o*t)/(1-o*t));this.K=a-this.alpha*s+this.alpha*o/2*u},forward:function(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),r=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),n=-this.alpha*(t+r)+this.K,i=2*(Math.atan(Math.exp(n))-Math.PI/4),o=this.alpha*(e.x-this.lambda0),a=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(o))),s=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(o));return e.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,e.x=this.R*a+this.x0,e},inverse:function(e){for(var t=e.x-this.x0,r=e.y-this.y0,n=t/this.R,i=2*(Math.atan(Math.exp(r/this.R))-Math.PI/4),o=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(n)),a=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(i))),s=this.lambda0+a/this.alpha,u=0,l=o,c=-1e3,f=0;Math.abs(l-c)>1e-7;){if(++f>20)return;u=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),c=l,l=2*Math.atan(Math.exp(u))-Math.PI/2}return e.x=s,e.y=l,e},names:["somerc"]},xt=1e-7,wt={init:function(){var e,t,r,n,i,o,a,u,l,c,h,d=0,g=0,m=0,v=0,_=0,S=0,b=0;this.no_off=function(e){var t=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],r="object"==typeof e.projName?Object.keys(e.projName)[0]:e.projName;return"no_uoff"in e||"no_off"in e||-1!==t.indexOf(r)||-1!==t.indexOf(ae(r))}(this),this.no_rot="no_rot"in this;var x=!1;"alpha"in this&&(x=!0);var w=!1;if("rectified_grid_angle"in this&&(w=!0),x&&(b=this.alpha),w&&(d=this.rectified_grid_angle),x||w)g=this.longc;else if(m=this.long1,_=this.lat1,v=this.long2,S=this.lat2,Math.abs(_-S)<=xt||(e=Math.abs(_))<=xt||Math.abs(e-s)<=xt||Math.abs(Math.abs(this.lat0)-s)<=xt||Math.abs(Math.abs(S)-s)<=xt)throw new Error;var E=1-this.es;t=Math.sqrt(E),Math.abs(this.lat0)>f?(u=Math.sin(this.lat0),r=Math.cos(this.lat0),e=1-this.es*u*u,this.B=r*r,this.B=Math.sqrt(1+this.es*this.B*this.B/E),this.A=this.B*this.k0*t/e,(i=(n=this.B*t/(r*Math.sqrt(e)))*n-1)<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=n,this.E*=Math.pow(Q(this.e,this.lat0,u),this.B)):(this.B=1/t,this.A=this.k0,this.E=n=i=1),x||w?(x?(h=Math.asin(Math.sin(b)/n),w||(d=b)):(h=d,b=Math.asin(n*Math.sin(h))),this.lam0=g-Math.asin(.5*(i-1/i)*Math.tan(h))/this.B):(o=Math.pow(Q(this.e,_,Math.sin(_)),this.B),a=Math.pow(Q(this.e,S,Math.sin(S)),this.B),i=this.E/o,l=(a-o)/(a+o),c=((c=this.E*this.E)-a*o)/(c+a*o),(e=m-v)<-Math.PI?v-=y:e>Math.PI&&(v+=y),this.lam0=Z(.5*(m+v)-Math.atan(c*Math.tan(.5*this.B*(m-v))/l)/this.B,this.over),h=Math.atan(2*Math.sin(this.B*Z(m-this.lam0,this.over))/(i-1/i)),d=b=Math.asin(n*Math.sin(h))),this.singam=Math.sin(h),this.cosgam=Math.cos(h),this.sinrot=Math.sin(d),this.cosrot=Math.cos(d),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(n*n-1)/Math.cos(b))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*h,this.v_pole_n=this.ArB*Math.log(Math.tan(p-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(p+i))},forward:function(e){var t,r,n,i,o,a,u,l,c={};if(e.x=e.x-this.lam0,Math.abs(Math.abs(e.y)-s)>f){if(t=.5*((o=this.E/Math.pow(Q(this.e,e.y,Math.sin(e.y)),this.B))-(a=1/o)),r=.5*(o+a),i=Math.sin(this.B*e.x),n=(t*this.singam-i*this.cosgam)/r,Math.abs(Math.abs(n)-1)<f)throw new Error;l=.5*this.ArB*Math.log((1-n)/(1+n)),a=Math.cos(this.B*e.x),u=Math.abs(a)<xt?this.A*e.x:this.ArB*Math.atan2(t*this.cosgam+i*this.singam,a)}else l=e.y>0?this.v_pole_n:this.v_pole_s,u=this.ArB*e.y;return this.no_rot?(c.x=u,c.y=l):(u-=this.u_0,c.x=l*this.cosrot+u*this.sinrot,c.y=u*this.cosrot-l*this.sinrot),c.x=this.a*c.x+this.x0,c.y=this.a*c.y+this.y0,c},inverse:function(e){var t,r,n,i,o,a,u,l={};if(e.x=(e.x-this.x0)*(1/this.a),e.y=(e.y-this.y0)*(1/this.a),this.no_rot?(r=e.y,t=e.x):(r=e.x*this.cosrot-e.y*this.sinrot,t=e.y*this.cosrot+e.x*this.sinrot+this.u_0),i=.5*((n=Math.exp(-this.BrA*r))-1/n),o=.5*(n+1/n),u=((a=Math.sin(this.BrA*t))*this.cosgam+i*this.singam)/o,Math.abs(Math.abs(u)-1)<f)l.x=0,l.y=u<0?-s:s;else{if(l.y=this.E/Math.sqrt((1+u)/(1-u)),l.y=$(this.e,Math.pow(l.y,1/this.B)),l.y===1/0)throw new Error;l.x=-this.rB*Math.atan2(i*this.cosgam-a*this.singam,Math.cos(this.BrA*t))}return l.x+=this.lam0,l},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Variant_B","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]},Et={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<f)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),r=Math.cos(this.lat1),n=X(this.e,t,r),i=Q(this.e,this.lat1,t),o=Math.sin(this.lat2),a=Math.cos(this.lat2),u=X(this.e,o,a),l=Q(this.e,this.lat2,o),c=Math.abs(Math.abs(this.lat0)-s)<f?0:Q(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>f?this.ns=Math.log(n/u)/Math.log(i/l):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=n/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(e){var t=e.x,r=e.y;Math.abs(2*Math.abs(r)-Math.PI)<=f&&(r=K(r)*(s-2*f));var n,i,o=Math.abs(Math.abs(r)-s);if(o>f)n=Q(this.e,r,Math.sin(r)),i=this.a*this.f0*Math.pow(n,this.ns);else{if((o=r*this.ns)<=0)return null;i=0}var a=this.ns*Z(t-this.long0,this.over);return e.x=this.k0*(i*Math.sin(a))+this.x0,e.y=this.k0*(this.rh-i*Math.cos(a))+this.y0,e},inverse:function(e){var t,r,n,i,o,a=(e.x-this.x0)/this.k0,u=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(a*a+u*u),r=1):(t=-Math.sqrt(a*a+u*u),r=-1);var l=0;if(0!==t&&(l=Math.atan2(r*a,r*u)),0!==t||this.ns>0){if(r=1/this.ns,n=Math.pow(t/(this.a*this.f0),r),-9999===(i=$(this.e,n)))return null}else i=-s;return o=Z(l/this.ns+this.long0,this.over),e.x=o,e.y=i,e},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]},Tt={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(e){var t,r,n,i,o,a,s,u=e.x,l=e.y,c=Z(u-this.long0,this.over);return t=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),r=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/t)-this.s45),n=-c*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(r)+Math.sin(this.ad)*Math.cos(r)*Math.cos(n)),o=Math.asin(Math.cos(r)*Math.sin(n)/Math.cos(i)),a=this.n*o,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),e.y=s*Math.cos(a)/1,e.x=s*Math.sin(a)/1,this.czech||(e.y*=-1,e.x*=-1),e},inverse:function(e){var t,r,n,i,o,a,s,u=e.x;e.x=e.y,e.y=u,this.czech||(e.y*=-1,e.x*=-1),o=Math.sqrt(e.x*e.x+e.y*e.y),i=Math.atan2(e.y,e.x)/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),r=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(t)),e.x=this.long0-r/this.alfa,a=t,s=0;var l=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-e.y)<1e-10&&(s=1),a=e.y,l+=1}while(0===s&&l<15);return l>=15?null:e},names:["Krovak","krovak"]},It=function(e,t,r,n,i){return e*i-t*Math.sin(2*i)+r*Math.sin(4*i)-n*Math.sin(6*i)},Mt=function(e){return 1-.25*e*(1+e/16*(3+1.25*e))},kt=function(e){return.375*e*(1+.25*e*(1+.46875*e))},Pt=function(e){return.05859375*e*e*(1+.75*e)},Lt=function(e){return e*e*e*(35/3072)},Ot=function(e,t,r){var n=t*r;return e/Math.sqrt(1-n*n)},Ct=function(e){return Math.abs(e)<s?e:e-K(e)*Math.PI},Nt=function(e,t,r,n,i){var o,a;o=e/t;for(var s=0;s<15;s++)if(o+=a=(e-(t*o-r*Math.sin(2*o)+n*Math.sin(4*o)-i*Math.sin(6*o)))/(t-2*r*Math.cos(2*o)+4*n*Math.cos(4*o)-6*i*Math.cos(6*o)),Math.abs(a)<=1e-10)return o;return NaN},Rt={init:function(){this.sphere||(this.e0=Mt(this.es),this.e1=kt(this.es),this.e2=Pt(this.es),this.e3=Lt(this.es),this.ml0=this.a*It(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(e){var t,r,n=e.x,i=e.y;if(n=Z(n-this.long0,this.over),this.sphere)t=this.a*Math.asin(Math.cos(i)*Math.sin(n)),r=this.a*(Math.atan2(Math.tan(i),Math.cos(n))-this.lat0);else{var o=Math.sin(i),a=Math.cos(i),s=Ot(this.a,this.e,o),u=Math.tan(i)*Math.tan(i),l=n*Math.cos(i),c=l*l,f=this.es*a*a/(1-this.es);t=s*l*(1-c*u*(1/6-(8-u+8*f)*c/120)),r=this.a*It(this.e0,this.e1,this.e2,this.e3,i)-this.ml0+s*o/a*c*(.5+(5-u+6*f)*c/24)}return e.x=t+this.x0,e.y=r+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,r,n=e.x/this.a,i=e.y/this.a;if(this.sphere){var o=i+this.lat0;t=Math.asin(Math.sin(o)*Math.cos(n)),r=Math.atan2(Math.tan(n),Math.cos(o))}else{var a=this.ml0/this.a+i,u=Nt(a,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(u)-s)<=f)return e.x=this.long0,e.y=s,i<0&&(e.y*=-1),e;var l=Ot(this.a,this.e,Math.sin(u)),c=l*l*l/this.a/this.a*(1-this.es),h=Math.pow(Math.tan(u),2),d=n*this.a/l,p=d*d;t=u-l*Math.tan(u)/c*d*d*(.5-(1+3*h)*d*d/24),r=d*(1-p*(h/3+(1+3*h)*h*p/15))/Math.cos(u)}return e.x=Z(r+this.long0,this.over),e.y=Ct(t),e},names:["Cassini","Cassini_Soldner","cass"]},Gt=function(e,t){var r;return e>1e-7?(1-e*e)*(t/(1-(r=e*t)*r)-.5/e*Math.log((1-r)/(1+r))):2*t},At={init:function(){var e,t=Math.abs(this.lat0);if(Math.abs(t-s)<f?this.mode=this.lat0<0?1:2:Math.abs(t)<f?this.mode=3:this.mode=4,this.es>0)switch(this.qp=Gt(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(e){var t,r=[];return r[0]=.3333333333333333*e,t=e*e,r[0]+=.17222222222222222*t,r[1]=.06388888888888888*t,t*=e,r[0]+=.10257936507936508*t,r[1]+=.0664021164021164*t,r[2]=.016415012942191543*t,r}(this.es),this.mode){case 2:case 1:this.dd=1;break;case 3:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case 4:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=Gt(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else 4===this.mode&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(e){var t,r,n,i,o,a,u,l,c,h,d=e.x,y=e.y;if(d=Z(d-this.long0,this.over),this.sphere){if(o=Math.sin(y),h=Math.cos(y),n=Math.cos(d),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((r=this.mode===this.EQUIT?1+h*n:1+this.sinph0*o+this.cosph0*h*n)<=f)return null;t=(r=Math.sqrt(2/r))*h*Math.sin(d),r*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*h*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(y+this.lat0)<f)return null;r=p-.5*y,t=(r=2*(this.mode===this.S_POLE?Math.cos(r):Math.sin(r)))*Math.sin(d),r*=n}}else{switch(u=0,l=0,c=0,n=Math.cos(d),i=Math.sin(d),o=Math.sin(y),a=Gt(this.e,o),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(u=a/this.qp,l=Math.sqrt(1-u*u)),this.mode){case this.OBLIQ:c=1+this.sinb1*u+this.cosb1*l*n;break;case this.EQUIT:c=1+l*n;break;case this.N_POLE:c=s+y,a=this.qp-a;break;case this.S_POLE:c=y-s,a=this.qp+a}if(Math.abs(c)<f)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:c=Math.sqrt(2/c),r=this.mode===this.OBLIQ?this.ymf*c*(this.cosb1*u-this.sinb1*l*n):(c=Math.sqrt(2/(1+l*n)))*u*this.ymf,t=this.xmf*c*l*i;break;case this.N_POLE:case this.S_POLE:a>=0?(t=(c=Math.sqrt(a))*i,r=n*(this.mode===this.S_POLE?c:-c)):t=r=0}}return e.x=this.a*t+this.x0,e.y=this.a*r+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,r,n,i,o,a,u,l=e.x/this.a,c=e.y/this.a;if(this.sphere){var h,d=0,p=0;if((r=.5*(h=Math.sqrt(l*l+c*c)))>1)return null;switch(r=2*Math.asin(r),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(p=Math.sin(r),d=Math.cos(r)),this.mode){case this.EQUIT:r=Math.abs(h)<=f?0:Math.asin(c*p/h),l*=p,c=d*h;break;case this.OBLIQ:r=Math.abs(h)<=f?this.lat0:Math.asin(d*this.sinph0+c*p*this.cosph0/h),l*=p*this.cosph0,c=(d-Math.sin(r)*this.sinph0)*h;break;case this.N_POLE:c=-c,r=s-r;break;case this.S_POLE:r-=s}t=0!==c||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(l,c):0}else{if(u=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(l/=this.dd,c*=this.dd,(a=Math.sqrt(l*l+c*c))<f)return e.x=this.long0,e.y=this.lat0,e;i=2*Math.asin(.5*a/this.rq),n=Math.cos(i),l*=i=Math.sin(i),this.mode===this.OBLIQ?(u=n*this.sinb1+c*i*this.cosb1/a,o=this.qp*u,c=a*this.cosb1*n-c*this.sinb1*i):(u=c*i/a,o=this.qp*u,c=a*n)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(c=-c),!(o=l*l+c*c))return e.x=this.long0,e.y=this.lat0,e;u=1-o/this.qp,this.mode===this.S_POLE&&(u=-u)}t=Math.atan2(l,c),r=function(e,t){var r=e+e;return e+t[0]*Math.sin(r)+t[1]*Math.sin(r+r)+t[2]*Math.sin(r+r+r)}(Math.asin(u),this.apa)}return e.x=Z(this.long0+t,this.over),e.y=r,e},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4},Vt=function(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)},Dt={init:function(){Math.abs(this.lat1+this.lat2)<f||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=X(this.e3,this.sin_po,this.cos_po),this.qs1=Gt(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=X(this.e3,this.sin_po,this.cos_po),this.qs2=Gt(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Gt(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>f?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(e){var t=e.x,r=e.y;this.sin_phi=Math.sin(r),this.cos_phi=Math.cos(r);var n=Gt(this.e3,this.sin_phi),i=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,o=this.ns0*Z(t-this.long0,this.over),a=i*Math.sin(o)+this.x0,s=this.rh-i*Math.cos(o)+this.y0;return e.x=a,e.y=s,e},inverse:function(e){var t,r,n,i,o,a;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),n=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),n=-1),i=0,0!==t&&(i=Math.atan2(n*e.x,n*e.y)),n=t*this.ns0/this.a,this.sphere?a=Math.asin((this.c-n*n)/(2*this.ns0)):(r=(this.c-n*n)/this.ns0,a=this.phi1z(this.e3,r)),o=Z(i/this.ns0+this.long0,this.over),e.x=o,e.y=a,e},names:["Albers_Conic_Equal_Area","Albers_Equal_Area","Albers","aea"],phi1z:function(e,t){var r,n,i,o,a,s=Vt(.5*t);if(e<f)return s;for(var u=e*e,l=1;l<=25;l++)if(r=Math.sin(s),n=Math.cos(s),s+=a=.5*(o=1-(i=e*r)*i)*o/n*(t/(1-u)-r/o+.5/e*Math.log((1-i)/(1+i))),Math.abs(a)<=1e-7)return s;return null}},Ft={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(e){var t,r,n,i,o,a,s,u=e.x,l=e.y;return n=Z(u-this.long0,this.over),t=Math.sin(l),r=Math.cos(l),i=Math.cos(n),(o=this.sin_p14*t+this.cos_p14*r*i)>0||Math.abs(o)<=f?(a=this.x0+1*this.a*r*Math.sin(n)/o,s=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*r*i)/o):(a=this.x0+this.infinity_dist*r*Math.sin(n),s=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*r*i)),e.x=a,e.y=s,e},inverse:function(e){var t,r,n,i,o,a;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(i=Math.atan2(t,this.rc),r=Math.sin(i),n=Math.cos(i),a=Vt(n*this.sin_p14+e.y*r*this.cos_p14/t),o=Math.atan2(e.x*r,t*this.cos_p14*n-e.y*this.sin_p14*r),o=Z(this.long0+o,this.over)):(a=this.phic0,o=0),e.x=o,e.y=a,e},names:["gnom"]},jt={init:function(){this.sphere||(this.k0=X(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(e){var t,r,n=e.x,i=e.y,o=Z(n-this.long0,this.over);if(this.sphere)t=this.x0+this.a*o*Math.cos(this.lat_ts),r=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var a=Gt(this.e,Math.sin(i));t=this.x0+this.a*this.k0*o,r=this.y0+this.a*a*.5/this.k0}return e.x=t,e.y=r,e},inverse:function(e){var t,r;return e.x-=this.x0,e.y-=this.y0,this.sphere?(t=Z(this.long0+e.x/this.a/Math.cos(this.lat_ts),this.over),r=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(r=function(e,t){var r=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-r)<1e-6)return t<0?-1*s:s;for(var n,i,o,a,u=Math.asin(.5*t),l=0;l<30;l++)if(i=Math.sin(u),o=Math.cos(u),a=e*i,u+=n=Math.pow(1-a*a,2)/(2*o)*(t/(1-e*e)-i/(1-a*a)+.5/e*Math.log((1-a)/(1+a))),Math.abs(n)<=1e-10)return u;return NaN}(this.e,2*e.y*this.k0/this.a),t=Z(this.long0+e.x/(this.a*this.k0),this.over)),e.x=t,e.y=r,e},names:["cea"]},Bt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(e){var t=e.x,r=e.y,n=Z(t-this.long0,this.over),i=Ct(r-this.lat0);return e.x=this.x0+this.a*n*this.rc,e.y=this.y0+this.a*i,e},inverse:function(e){var t=e.x,r=e.y;return e.x=Z(this.long0+(t-this.x0)/(this.a*this.rc),this.over),e.y=Ct(this.lat0+(r-this.y0)/this.a),e},names:["Equirectangular","Equidistant_Cylindrical","Equidistant_Cylindrical_Spherical","eqc"]},qt={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Mt(this.es),this.e1=kt(this.es),this.e2=Pt(this.es),this.e3=Lt(this.es),this.ml0=this.a*It(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(e){var t,r,n,i=e.x,o=e.y,a=Z(i-this.long0,this.over);if(n=a*Math.sin(o),this.sphere)Math.abs(o)<=f?(t=this.a*a,r=-1*this.a*this.lat0):(t=this.a*Math.sin(n)/Math.tan(o),r=this.a*(Ct(o-this.lat0)+(1-Math.cos(n))/Math.tan(o)));else if(Math.abs(o)<=f)t=this.a*a,r=-1*this.ml0;else{var s=Ot(this.a,this.e,Math.sin(o))/Math.tan(o);t=s*Math.sin(n),r=this.a*It(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+s*(1-Math.cos(n))}return e.x=t+this.x0,e.y=r+this.y0,e},inverse:function(e){var t,r,n,i,o,a,s,u,l;if(n=e.x-this.x0,i=e.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=f)t=Z(n/this.a+this.long0,this.over),r=0;else{var c;for(a=this.lat0+i/this.a,s=n*n/this.a/this.a+a*a,u=a,o=20;o;--o)if(u+=l=-1*(a*(u*(c=Math.tan(u))+1)-u-.5*(u*u+s)*c)/((u-a)/c-1),Math.abs(l)<=f){r=u;break}t=Z(this.long0+Math.asin(n*Math.tan(u)/this.a)/Math.sin(r),this.over)}else if(Math.abs(i+this.ml0)<=f)r=0,t=Z(this.long0+n/this.a,this.over);else{var h,d,p,y,g;for(a=(this.ml0+i)/this.a,s=n*n/this.a/this.a+a*a,u=a,o=20;o;--o)if(g=this.e*Math.sin(u),h=Math.sqrt(1-g*g)*Math.tan(u),d=this.a*It(this.e0,this.e1,this.e2,this.e3,u),p=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),u-=l=(a*(h*(y=d/this.a)+1)-y-.5*h*(y*y+s))/(this.es*Math.sin(2*u)*(y*y+s-2*a*y)/(4*h)+(a-y)*(h*p-2/Math.sin(2*u))-p),Math.abs(l)<=f){r=u;break}h=Math.sqrt(1-this.es*Math.pow(Math.sin(r),2))*Math.tan(r),t=Z(this.long0+Math.asin(n*h/this.a)/Math.sin(r),this.over)}return e.x=t,e.y=r,e},names:["Polyconic","American_Polyconic","poly"]},Ut={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(e){var t,r=e.x,n=e.y-this.lat0,i=r-this.long0,o=n/a*1e-5,s=i,u=1,l=0;for(t=1;t<=10;t++)u*=o,l+=this.A[t]*u;var c,f=l,h=s,d=1,p=0,y=0,g=0;for(t=1;t<=6;t++)c=p*f+d*h,d=d*f-p*h,p=c,y=y+this.B_re[t]*d-this.B_im[t]*p,g=g+this.B_im[t]*d+this.B_re[t]*p;return e.x=g*this.a+this.x0,e.y=y*this.a+this.y0,e},inverse:function(e){var t,r,n=e.x,i=e.y,o=n-this.x0,s=(i-this.y0)/this.a,u=o/this.a,l=1,c=0,f=0,h=0;for(t=1;t<=6;t++)r=c*s+l*u,l=l*s-c*u,c=r,f=f+this.C_re[t]*l-this.C_im[t]*c,h=h+this.C_im[t]*l+this.C_re[t]*c;for(var d=0;d<this.iterations;d++){var p,y=f,g=h,m=s,v=u;for(t=2;t<=6;t++)p=g*f+y*h,y=y*f-g*h,g=p,m+=(t-1)*(this.B_re[t]*y-this.B_im[t]*g),v+=(t-1)*(this.B_im[t]*y+this.B_re[t]*g);y=1,g=0;var _=this.B_re[1],S=this.B_im[1];for(t=2;t<=6;t++)p=g*f+y*h,y=y*f-g*h,g=p,_+=t*(this.B_re[t]*y-this.B_im[t]*g),S+=t*(this.B_im[t]*y+this.B_re[t]*g);var b=_*_+S*S;f=(m*_+v*S)/b,h=(v*_-m*S)/b}var x=f,w=h,E=1,T=0;for(t=1;t<=9;t++)E*=x,T+=this.D[t]*E;var I=this.lat0+T*a*1e5,M=this.long0+w;return e.x=M,e.y=I,e},names:["New_Zealand_Map_Grid","nzmg"]},Jt={init:function(){},forward:function(e){var t=e.x,r=e.y,n=Z(t-this.long0,this.over),i=this.x0+this.a*n,o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+r/2.5))*1.25;return e.x=i,e.y=o,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t=Z(this.long0+e.x/this.a,this.over),r=2.5*(Math.atan(Math.exp(.8*e.y/this.a))-Math.PI/4);return e.x=t,e.y=r,e},names:["Miller_Cylindrical","mill"]},zt={init:function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=at(this.es)},forward:function(e){var t,r,n=e.x,i=e.y;if(n=Z(n-this.long0,this.over),this.sphere){if(this.m)for(var o=this.n*Math.sin(i),a=20;a;--a){var s=(this.m*i+Math.sin(i)-o)/(this.m+Math.cos(i));if(i-=s,Math.abs(s)<f)break}else i=1!==this.n?Math.asin(this.n*Math.sin(i)):i;t=this.a*this.C_x*n*(this.m+Math.cos(i)),r=this.a*this.C_y*i}else{var u=Math.sin(i),l=Math.cos(i);r=this.a*st(i,u,l,this.en),t=this.a*n*l/Math.sqrt(1-this.es*u*u)}return e.x=t,e.y=r,e},inverse:function(e){var t,r,n,i;return e.x-=this.x0,n=e.x/this.a,e.y-=this.y0,t=e.y/this.a,this.sphere?(t/=this.C_y,n/=this.C_x*(this.m+Math.cos(t)),this.m?t=Vt((this.m*t+Math.sin(t))/this.n):1!==this.n&&(t=Vt(Math.sin(t)/this.n)),n=Z(n+this.long0,this.over),t=Ct(t)):(t=ut(e.y/this.a,this.es,this.en),(i=Math.abs(t))<s?(i=Math.sin(t),r=this.long0+e.x*Math.sqrt(1-this.es*i*i)/(this.a*Math.cos(t)),n=Z(r,this.over)):i-f<s&&(n=this.long0)),e.x=n,e.y=t,e},names:["Sinusoidal","sinu"]},Wt={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0},forward:function(e){for(var t=e.x,r=e.y,n=Z(t-this.long0,this.over),i=r,o=Math.PI*Math.sin(r);;){var a=-(i+Math.sin(i)-o)/(1+Math.cos(i));if(i+=a,Math.abs(a)<f)break}i/=2,Math.PI/2-Math.abs(r)<f&&(n=0);var s=.900316316158*this.a*n*Math.cos(i)+this.x0,u=1.4142135623731*this.a*Math.sin(i)+this.y0;return e.x=s,e.y=u,e},inverse:function(e){var t,r;e.x-=this.x0,e.y-=this.y0,r=e.y/(1.4142135623731*this.a),Math.abs(r)>.999999999999&&(r=.999999999999),t=Math.asin(r);var n=Z(this.long0+e.x/(.900316316158*this.a*Math.cos(t)),this.over);n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),r=(2*t+Math.sin(2*t))/Math.PI,Math.abs(r)>1&&(r=1);var i=Math.asin(r);return e.x=n,e.y=i,e},names:["Mollweide","moll"]},Ht={init:function(){Math.abs(this.lat1+this.lat2)<f||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Mt(this.es),this.e1=kt(this.es),this.e2=Pt(this.es),this.e3=Lt(this.es),this.sin_phi=Math.sin(this.lat1),this.cos_phi=Math.cos(this.lat1),this.ms1=X(this.e,this.sin_phi,this.cos_phi),this.ml1=It(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<f?this.ns=this.sin_phi:(this.sin_phi=Math.sin(this.lat2),this.cos_phi=Math.cos(this.lat2),this.ms2=X(this.e,this.sin_phi,this.cos_phi),this.ml2=It(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=It(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(e){var t,r=e.x,n=e.y;if(this.sphere)t=this.a*(this.g-n);else{var i=It(this.e0,this.e1,this.e2,this.e3,n);t=this.a*(this.g-i)}var o=this.ns*Z(r-this.long0,this.over),a=this.x0+t*Math.sin(o),s=this.y0+this.rh-t*Math.cos(o);return e.x=a,e.y=s,e},inverse:function(e){var t,r,n,i;e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns>=0?(r=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(r=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var o=0;if(0!==r&&(o=Math.atan2(t*e.x,t*e.y)),this.sphere)return i=Z(this.long0+o/this.ns,this.over),n=Ct(this.g-r/this.a),e.x=i,e.y=n,e;var a=this.g-r/this.a;return n=Nt(a,this.e0,this.e1,this.e2,this.e3),i=Z(this.long0+o/this.ns,this.over),e.x=i,e.y=n,e},names:["Equidistant_Conic","eqdc"]},Yt={init:function(){this.R=this.a},forward:function(e){var t,r,n=e.x,i=e.y,o=Z(n-this.long0,this.over);Math.abs(i)<=f&&(t=this.x0+this.R*o,r=this.y0);var a=Vt(2*Math.abs(i/Math.PI));(Math.abs(o)<=f||Math.abs(Math.abs(i)-s)<=f)&&(t=this.x0,r=i>=0?this.y0+Math.PI*this.R*Math.tan(.5*a):this.y0+Math.PI*this.R*-Math.tan(.5*a));var u=.5*Math.abs(Math.PI/o-o/Math.PI),l=u*u,c=Math.sin(a),h=Math.cos(a),d=h/(c+h-1),p=d*d,y=d*(2/c-1),g=y*y,m=Math.PI*this.R*(u*(d-g)+Math.sqrt(l*(d-g)*(d-g)-(g+l)*(p-g)))/(g+l);o<0&&(m=-m),t=this.x0+m;var v=l+d;return m=Math.PI*this.R*(y*v-u*Math.sqrt((g+l)*(l+1)-v*v))/(g+l),r=i>=0?this.y0+m:this.y0-m,e.x=t,e.y=r,e},inverse:function(e){var t,r,n,i,o,a,s,u,l,c,h,d;return e.x-=this.x0,e.y-=this.y0,h=Math.PI*this.R,o=(n=e.x/h)*n+(i=e.y/h)*i,h=3*(i*i/(u=-2*(a=-Math.abs(i)*(1+o))+1+2*i*i+o*o)+(2*(s=a-2*i*i+n*n)*s*s/u/u/u-9*a*s/u/u)/27)/(l=(a-s*s/3/u)/u)/(c=2*Math.sqrt(-l/3)),Math.abs(h)>1&&(h=h>=0?1:-1),d=Math.acos(h)/3,r=e.y>=0?(-c*Math.cos(d+Math.PI/3)-s/3/u)*Math.PI:-(-c*Math.cos(d+Math.PI/3)-s/3/u)*Math.PI,t=Math.abs(n)<f?this.long0:Z(this.long0+Math.PI*(o-1+Math.sqrt(1+2*(n*n-i*i)+o*o))/2/n,this.over),e.x=t,e.y=r,e},names:["Van_der_Grinten_I","VanDerGrinten","Van_der_Grinten","vandg"]},Xt={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0),this.f=this.es/(1+Math.sqrt(1-this.es))},forward:function(e){var t,r,n,i,o,a,u,l,c,h,d,p=e.x,y=e.y,g=Math.sin(e.y),m=Math.cos(e.y),v=Z(p-this.long0,this.over);return this.sphere?Math.abs(this.sin_p12-1)<=f?(e.x=this.x0+this.a*(s-y)*Math.sin(v),e.y=this.y0-this.a*(s-y)*Math.cos(v),e):Math.abs(this.sin_p12+1)<=f?(e.x=this.x0+this.a*(s+y)*Math.sin(v),e.y=this.y0+this.a*(s+y)*Math.cos(v),e):(c=this.sin_p12*g+this.cos_p12*m*Math.cos(v),l=(u=Math.acos(c))?u/Math.sin(u):1,e.x=this.x0+this.a*l*m*Math.sin(v),e.y=this.y0+this.a*l*(this.cos_p12*g-this.sin_p12*m*Math.cos(v)),e):(t=Mt(this.es),r=kt(this.es),n=Pt(this.es),i=Lt(this.es),Math.abs(this.sin_p12-1)<=f?(o=this.a*It(t,r,n,i,s),a=this.a*It(t,r,n,i,y),e.x=this.x0+(o-a)*Math.sin(v),e.y=this.y0-(o-a)*Math.cos(v),e):Math.abs(this.sin_p12+1)<=f?(o=this.a*It(t,r,n,i,s),a=this.a*It(t,r,n,i,y),e.x=this.x0+(o+a)*Math.sin(v),e.y=this.y0+(o+a)*Math.cos(v),e):Math.abs(p)<f&&Math.abs(y-this.lat0)<f?(e.x=e.y=0,e):(d=(h=function(e,t,r,n,i,o){const a=n-t,s=Math.atan((1-o)*Math.tan(e)),u=Math.atan((1-o)*Math.tan(r)),l=Math.sin(s),c=Math.cos(s),f=Math.sin(u),h=Math.cos(u);let d,p,y,g,m,v,_,S,b,x,w,E,T,I,M,k=a,P=100;do{if(p=Math.sin(k),y=Math.cos(k),0===(g=Math.sqrt(h*p*(h*p)+(c*f-l*h*y)*(c*f-l*h*y))))return{azi1:0,s12:0};m=l*f+c*h*y,v=Math.atan2(g,m),d=k,k=a+(1-(x=o/16*(S=1-(_=c*h*p/g)*_)*(4+o*(4-3*S))))*o*_*(v+x*g*((b=0!==S?m-2*l*f/S:0)+x*m*(2*b*b-1)))}while(Math.abs(k-d)>1e-12&&--P>0);return 0===P?{azi1:NaN,s12:NaN}:(M=i*(1-o)*(E=1+(w=S*(i*i-i*(1-o)*(i*(1-o)))/(i*(1-o)*(i*(1-o))))/16384*(4096+w*(w*(320-175*w)-768)))*(v-(I=(T=w/1024*(256+w*(w*(74-47*w)-128)))*g*(b+T/4*(m*(2*b*b-1)-T/6*b*(4*g*g-3)*(4*b*b-3))))),{azi1:Math.atan2(h*p,c*f-l*h*y),s12:M})}(this.lat0,this.long0,y,p,this.a,this.f)).azi1,e.x=h.s12*Math.sin(d),e.y=h.s12*Math.cos(d),e))},inverse:function(e){var t,r,n,i,o,a,u,l,c,h,d,p,y,g,m;if(e.x-=this.x0,e.y-=this.y0,this.sphere){if((t=Math.sqrt(e.x*e.x+e.y*e.y))>2*s*this.a)return;return r=t/this.a,n=Math.sin(r),i=Math.cos(r),o=this.long0,Math.abs(t)<=f?a=this.lat0:(a=Vt(i*this.sin_p12+e.y*n*this.cos_p12/t),u=Math.abs(this.lat0)-s,o=Math.abs(u)<=f?this.lat0>=0?Z(this.long0+Math.atan2(e.x,-e.y),this.over):Z(this.long0-Math.atan2(-e.x,e.y),this.over):Z(this.long0+Math.atan2(e.x*n,t*this.cos_p12*i-e.y*this.sin_p12*n),this.over)),e.x=o,e.y=a,e}return l=Mt(this.es),c=kt(this.es),h=Pt(this.es),d=Lt(this.es),Math.abs(this.sin_p12-1)<=f?(p=this.a*It(l,c,h,d,s),t=Math.sqrt(e.x*e.x+e.y*e.y),a=Nt((p-t)/this.a,l,c,h,d),o=Z(this.long0+Math.atan2(e.x,-1*e.y),this.over),e.x=o,e.y=a,e):Math.abs(this.sin_p12+1)<=f?(p=this.a*It(l,c,h,d,s),t=Math.sqrt(e.x*e.x+e.y*e.y),a=Nt((t-p)/this.a,l,c,h,d),o=Z(this.long0+Math.atan2(e.x,e.y),this.over),e.x=o,e.y=a,e):(y=Math.atan2(e.x,e.y),g=Math.sqrt(e.x*e.x+e.y*e.y),m=function(e,t,r,n,i,o){const a=Math.atan((1-o)*Math.tan(e)),s=Math.sin(a),u=Math.cos(a),l=Math.sin(r),c=Math.cos(r),f=Math.atan2(s,u*c),h=u*l,d=1-h*h,p=d*(i*i-i*(1-o)*(i*(1-o)))/(i*(1-o)*(i*(1-o))),y=1+p/16384*(4096+p*(p*(320-175*p)-768)),g=p/1024*(256+p*(p*(74-47*p)-128));let m,v,_,S,b,x=n/(i*(1-o)*y),w=100;do{v=Math.cos(2*f+x),m=x,x=n/(i*(1-o)*y)+(b=g*(_=Math.sin(x))*(v+g/4*((S=Math.cos(x))*(2*v*v-1)-g/6*v*(4*_*_-3)*(4*v*v-3))))}while(Math.abs(x-m)>1e-12&&--w>0);if(0===w)return{lat2:NaN,lon2:NaN};const E=s*_-u*S*c,T=o/16*d*(4+o*(4-3*d));return{lat2:Math.atan2(s*S+u*_*c,(1-o)*Math.sqrt(h*h+E*E)),lon2:t+(Math.atan2(_*l,u*S-s*_*c)-(1-T)*o*h*(x+T*_*(v+T*S*(2*v*v-1))))}}(this.lat0,this.long0,y,g,this.a,this.f),e.x=m.lon2,e.y=m.lat2,e)},names:["Azimuthal_Equidistant","aeqd"]},Kt={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(e){var t,r,n,i,o,a,s,u=e.x,l=e.y;return n=Z(u-this.long0,this.over),t=Math.sin(l),r=Math.cos(l),i=Math.cos(n),((o=this.sin_p14*t+this.cos_p14*r*i)>0||Math.abs(o)<=f)&&(a=1*this.a*r*Math.sin(n),s=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*r*i)),e.x=a,e.y=s,e},inverse:function(e){var t,r,n,i,o,a,u;return e.x-=this.x0,e.y-=this.y0,t=Math.sqrt(e.x*e.x+e.y*e.y),r=Vt(t/this.a),n=Math.sin(r),i=Math.cos(r),a=this.long0,Math.abs(t)<=f?(u=this.lat0,e.x=a,e.y=u,e):(u=Vt(i*this.sin_p14+e.y*n*this.cos_p14/t),o=Math.abs(this.lat0)-s,Math.abs(o)<=f?(a=this.lat0>=0?Z(this.long0+Math.atan2(e.x,-e.y),this.over):Z(this.long0-Math.atan2(-e.x,e.y),this.over),e.x=a,e.y=u,e):(a=Z(this.long0+Math.atan2(e.x*n,t*this.cos_p14*i-e.y*this.sin_p14*n),this.over),e.x=a,e.y=u,e))},names:["ortho"]},Zt=1,Qt=2,$t=3,er=4,tr=5,rr=6,nr={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function ir(e,t,r,n){var i;return e<f?(n.value=nr.AREA_0,i=0):(i=Math.atan2(t,r),Math.abs(i)<=p?n.value=nr.AREA_0:i>p&&i<=s+p?(n.value=nr.AREA_1,i-=s):i>s+p||i<=-(s+p)?(n.value=nr.AREA_2,i=i>=0?i-g:i+g):(n.value=nr.AREA_3,i+=s)),i}function or(e,t){var r=e+t;return r<-g?r+=y:r>+g&&(r-=y),r}var ar={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=s-p/2?this.face=tr:this.lat0<=-(s-p/2)?this.face=rr:Math.abs(this.long0)<=p?this.face=Zt:Math.abs(this.long0)<=s+p?this.face=this.long0>0?Qt:er:this.face=$t,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(e){var t,r,n,i,o,a,u={x:0,y:0},l={value:0};if(e.x-=this.long0,t=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,r=e.x,this.face===tr)i=s-t,r>=p&&r<=s+p?(l.value=nr.AREA_0,n=r-s):r>s+p||r<=-(s+p)?(l.value=nr.AREA_1,n=r>0?r-g:r+g):r>-(s+p)&&r<=-p?(l.value=nr.AREA_2,n=r+s):(l.value=nr.AREA_3,n=r);else if(this.face===rr)i=s+t,r>=p&&r<=s+p?(l.value=nr.AREA_0,n=-r+s):r<p&&r>=-p?(l.value=nr.AREA_1,n=-r):r<-p&&r>=-(s+p)?(l.value=nr.AREA_2,n=-r-s):(l.value=nr.AREA_3,n=r>0?-r+g:-r-g);else{var c,f,h,d,y,m;this.face===Qt?r=or(r,+s):this.face===$t?r=or(r,+g):this.face===er&&(r=or(r,-s)),d=Math.sin(t),y=Math.cos(t),m=Math.sin(r),c=y*Math.cos(r),f=y*m,h=d,this.face===Zt?n=ir(i=Math.acos(c),h,f,l):this.face===Qt?n=ir(i=Math.acos(f),h,-c,l):this.face===$t?n=ir(i=Math.acos(-c),h,-f,l):this.face===er?n=ir(i=Math.acos(-f),h,c,l):(i=n=0,l.value=nr.AREA_0)}return a=Math.atan(12/g*(n+Math.acos(Math.sin(n)*Math.cos(p))-s)),o=Math.sqrt((1-Math.cos(i))/(Math.cos(a)*Math.cos(a))/(1-Math.cos(Math.atan(1/Math.cos(n))))),l.value===nr.AREA_1?a+=s:l.value===nr.AREA_2?a+=g:l.value===nr.AREA_3&&(a+=1.5*g),u.x=o*Math.cos(a),u.y=o*Math.sin(a),u.x=u.x*this.a+this.x0,u.y=u.y*this.a+this.y0,e.x=u.x,e.y=u.y,e},inverse:function(e){var t,r,n,i,o,a,u,l,c,f,h,d,p={lam:0,phi:0},y={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,r=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),t=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?y.value=nr.AREA_0:e.y>=0&&e.y>=Math.abs(e.x)?(y.value=nr.AREA_1,t-=s):e.x<0&&-e.x>=Math.abs(e.y)?(y.value=nr.AREA_2,t=t<0?t+g:t-g):(y.value=nr.AREA_3,t+=s),c=g/12*Math.tan(t),o=Math.sin(c)/(Math.cos(c)-1/Math.sqrt(2)),a=Math.atan(o),(u=1-(n=Math.cos(t))*n*(i=Math.tan(r))*i*(1-Math.cos(Math.atan(1/Math.cos(a)))))<-1?u=-1:u>1&&(u=1),this.face===tr)l=Math.acos(u),p.phi=s-l,y.value===nr.AREA_0?p.lam=a+s:y.value===nr.AREA_1?p.lam=a<0?a+g:a-g:y.value===nr.AREA_2?p.lam=a-s:p.lam=a;else if(this.face===rr)l=Math.acos(u),p.phi=l-s,y.value===nr.AREA_0?p.lam=-a+s:y.value===nr.AREA_1?p.lam=-a:y.value===nr.AREA_2?p.lam=-a-s:p.lam=a<0?-a-g:-a+g;else{var m,v,_;c=(m=u)*m,v=(c+=(_=c>=1?0:Math.sqrt(1-c)*Math.sin(a))*_)>=1?0:Math.sqrt(1-c),y.value===nr.AREA_1?(c=v,v=-_,_=c):y.value===nr.AREA_2?(v=-v,_=-_):y.value===nr.AREA_3&&(c=v,v=_,_=-c),this.face===Qt?(c=m,m=-v,v=c):this.face===$t?(m=-m,v=-v):this.face===er&&(c=m,m=v,v=-c),p.phi=Math.acos(-_)-s,p.lam=Math.atan2(v,m),this.face===Qt?p.lam=or(p.lam,-s):this.face===$t?p.lam=or(p.lam,-g):this.face===er&&(p.lam=or(p.lam,+s))}return 0!==this.es&&(f=p.phi<0?1:0,h=Math.tan(p.phi),d=this.b/Math.sqrt(h*h+this.one_minus_f_squared),p.phi=Math.atan(Math.sqrt(this.a*this.a-d*d)/(this.one_minus_f*d)),f&&(p.phi=-p.phi)),p.lam+=this.long0,e.x=p.lam,e.y=p.phi,e},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]},sr=[[1,2.2199e-17,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],ur=[[-5.20417e-18,.0124,1.21431e-18,-8.45284e-11],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],lr=d/5,cr=1/lr,fr=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))},hr={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(e){var t=Z(e.x-this.long0,this.over),r=Math.abs(e.y),n=Math.floor(r*lr);n<0?n=0:n>=18&&(n=17);var i={x:fr(sr[n],r=d*(r-cr*n))*t,y:fr(ur[n],r)};return e.y<0&&(i.y=-i.y),i.x=i.x*this.a*.8487+this.x0,i.y=i.y*this.a*1.3523+this.y0,i},inverse:function(e){var t={x:(e.x-this.x0)/(.8487*this.a),y:Math.abs(e.y-this.y0)/(1.3523*this.a)};if(t.y>=1)t.x/=sr[18][0],t.y=e.y<0?-s:s;else{var r=Math.floor(18*t.y);for(r<0?r=0:r>=18&&(r=17);;)if(ur[r][0]>t.y)--r;else{if(!(ur[r+1][0]<=t.y))break;++r}var n=ur[r],i=5*(t.y-n[0])/(ur[r+1][0]-n[0]);i=function(e,t,r,n){for(var i=t;n;--n){var o=e(i);if(i-=o,Math.abs(o)<r)break}return i}(function(e){return(fr(n,e)-t.y)/function(e,t){return e[1]+t*(2*e[2]+3*t*e[3])}(n,e)},i,f,100),t.x/=fr(sr[r],i),t.y=(5*r+i)*h,e.y<0&&(t.y=-t.y)}return t.x=Z(t.x+this.long0,this.over),t},names:["Robinson","robin"]},dr={init:function(){this.name="geocent"},forward:function(e){return Te(e,this.es,this.a)},inverse:function(e){return Ie(e,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]},pr=0,yr=1,gr=2,mr=3,vr={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}},_r={init:function(){if(Object.keys(vr).forEach(function(e){if(void 0===this[e])this[e]=vr[e].def;else{if(vr[e].num&&isNaN(this[e]))throw new Error("Invalid parameter value, must be numeric "+e+" = "+this[e]);vr[e].num&&(this[e]=parseFloat(this[e]))}vr[e].degrees&&(this[e]=this[e]*h)}.bind(this)),Math.abs(Math.abs(this.lat0)-s)<f?this.mode=this.lat0<0?yr:pr:Math.abs(this.lat0)<f?this.mode=gr:(this.mode=mr,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var e=this.tilt,t=this.azi;this.cg=Math.cos(t),this.sg=Math.sin(t),this.cw=Math.cos(e),this.sw=Math.sin(e)},forward:function(e){e.x-=this.long0;var t,r,n,i,o=Math.sin(e.y),a=Math.cos(e.y),s=Math.cos(e.x);switch(this.mode){case mr:r=this.sinph0*o+this.cosph0*a*s;break;case gr:r=a*s;break;case yr:r=-o;break;case pr:r=o}switch(t=(r=this.pn1/(this.p-r))*a*Math.sin(e.x),this.mode){case mr:r*=this.cosph0*o-this.sinph0*a*s;break;case gr:r*=o;break;case pr:r*=-a*s;break;case yr:r*=a*s}return i=1/((n=r*this.cg+t*this.sg)*this.sw*this.h1+this.cw),t=(t*this.cg-r*this.sg)*this.cw*i,r=n*i,e.x=t*this.a,e.y=r*this.a,e},inverse:function(e){e.x/=this.a,e.y/=this.a;var t,r,n,i={x:e.x,y:e.y};n=1/(this.pn1-e.y*this.sw),t=this.pn1*e.x*n,r=this.pn1*e.y*this.cw*n,e.x=t*this.cg+r*this.sg,e.y=r*this.cg-t*this.sg;var o=ft(e.x,e.y);if(Math.abs(o)<f)i.x=0,i.y=e.y;else{var a,s;switch(s=1-o*o*this.pfact,s=(this.p-Math.sqrt(s))/(this.pn1/o+o/this.pn1),a=Math.sqrt(1-s*s),this.mode){case mr:i.y=Math.asin(a*this.sinph0+e.y*s*this.cosph0/o),e.y=(a-this.sinph0*Math.sin(i.y))*o,e.x*=s*this.cosph0;break;case gr:i.y=Math.asin(e.y*s/o),e.y=a*o,e.x*=s;break;case pr:i.y=Math.asin(a),e.y=-e.y;break;case yr:i.y=-Math.asin(a)}i.x=Math.atan2(e.x,e.y)}return e.x=i.x+this.long0,e.y=i.y,e},names:["Tilted_Perspective","tpers"]},Sr={init:function(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var e=1-this.es,t=1/e;this.radius_p=Math.sqrt(e),this.radius_p2=e,this.radius_p_inv2=t,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function(e){var t,r,n,i,o=e.x,a=e.y;if(o-=this.long0,"ellipse"===this.shape){a=Math.atan(this.radius_p2*Math.tan(a));var s=this.radius_p/ft(this.radius_p*Math.cos(a),Math.sin(a));if(r=s*Math.cos(o)*Math.cos(a),n=s*Math.sin(o)*Math.cos(a),i=s*Math.sin(a),(this.radius_g-r)*r-n*n-i*i*this.radius_p_inv2<0)return e.x=Number.NaN,e.y=Number.NaN,e;t=this.radius_g-r,this.flip_axis?(e.x=this.radius_g_1*Math.atan(n/ft(i,t)),e.y=this.radius_g_1*Math.atan(i/t)):(e.x=this.radius_g_1*Math.atan(n/t),e.y=this.radius_g_1*Math.atan(i/ft(n,t)))}else"sphere"===this.shape&&(t=Math.cos(a),r=Math.cos(o)*t,n=Math.sin(o)*t,i=Math.sin(a),t=this.radius_g-r,this.flip_axis?(e.x=this.radius_g_1*Math.atan(n/ft(i,t)),e.y=this.radius_g_1*Math.atan(i/t)):(e.x=this.radius_g_1*Math.atan(n/t),e.y=this.radius_g_1*Math.atan(i/ft(n,t))));return e.x=e.x*this.a,e.y=e.y*this.a,e},inverse:function(e){var t,r,n,i,o=-1,a=0,s=0;if(e.x=e.x/this.a,e.y=e.y/this.a,"ellipse"===this.shape){this.flip_axis?(s=Math.tan(e.y/this.radius_g_1),a=Math.tan(e.x/this.radius_g_1)*ft(1,s)):(a=Math.tan(e.x/this.radius_g_1),s=Math.tan(e.y/this.radius_g_1)*ft(1,a));var u=s/this.radius_p;if(t=a*a+u*u+o*o,(n=(r=2*this.radius_g*o)*r-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;i=(-r-Math.sqrt(n))/(2*t),o=this.radius_g+i*o,a*=i,s*=i,e.x=Math.atan2(a,o),e.y=Math.atan(s*Math.cos(e.x)/o),e.y=Math.atan(this.radius_p_inv2*Math.tan(e.y))}else if("sphere"===this.shape){if(this.flip_axis?(s=Math.tan(e.y/this.radius_g_1),a=Math.tan(e.x/this.radius_g_1)*Math.sqrt(1+s*s)):(a=Math.tan(e.x/this.radius_g_1),s=Math.tan(e.y/this.radius_g_1)*Math.sqrt(1+a*a)),t=a*a+s*s+o*o,(n=(r=2*this.radius_g*o)*r-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;i=(-r-Math.sqrt(n))/(2*t),o=this.radius_g+i*o,a*=i,s*=i,e.x=Math.atan2(a,o),e.y=Math.atan(s*Math.cos(e.x)/o)}return e.x=e.x+this.long0,e},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]},br=1.340264,xr=-.081106,wr=893e-6,Er=.003796,Tr=Math.sqrt(3)/2,Ir={init:function(){this.es=0,this.long0=void 0!==this.long0?this.long0:0,this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0},forward:function(e){var t=Z(e.x-this.long0,this.over),r=e.y,n=Math.asin(Tr*Math.sin(r)),i=n*n,o=i*i*i;return e.x=t*Math.cos(n)/(Tr*(br+3*xr*i+o*(7*wr+9*Er*i))),e.y=n*(br+xr*i+o*(wr+Er*i)),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a;var t,r,n,i,o=e.y;for(i=0;i<12&&(o-=n=(o*(br+xr*(t=o*o)+(r=t*t*t)*(wr+Er*t))-e.y)/(br+3*xr*t+r*(7*wr+9*Er*t)),!(Math.abs(n)<1e-9));++i);return r=(t=o*o)*t*t,e.x=Tr*e.x*(br+3*xr*t+r*(7*wr+9*Er*t))/Math.cos(o),e.y=Math.asin(Math.sin(o)/Tr),e.x=Z(e.x+this.long0,this.over),e},names:["eqearth","Equal Earth","Equal_Earth"]},Mr=1e-10;function kr(e){var t,r,n,i=Z(e.x-(this.long0||0),this.over),o=e.y;return t=this.am1+this.m1-st(o,r=Math.sin(o),n=Math.cos(o),this.en),r=n*i/(t*Math.sqrt(1-this.es*r*r)),e.x=t*Math.sin(r),e.y=this.am1-t*Math.cos(r),e.x=this.a*e.x+(this.x0||0),e.y=this.a*e.y+(this.y0||0),e}function Pr(e){var t,r,n,i;if(e.x=(e.x-(this.x0||0))/this.a,e.y=(e.y-(this.y0||0))/this.a,r=ft(e.x,e.y=this.am1-e.y),i=ut(this.am1+this.m1-r,this.es,this.en),(t=Math.abs(i))<s)t=Math.sin(i),n=r*Math.atan2(e.x,e.y)*Math.sqrt(1-this.es*t*t)/Math.cos(i);else{if(!(Math.abs(t-s)<=Mr))throw new Error;n=0}return e.x=Z(n+(this.long0||0),this.over),e.y=Ct(i),e}function Lr(e){var t,r,n=Z(e.x-(this.long0||0),this.over),i=e.y;return r=this.cphi1+this.phi1-i,Math.abs(r)>Mr?(e.x=r*Math.sin(t=n*Math.cos(i)/r),e.y=this.cphi1-r*Math.cos(t)):e.x=e.y=0,e.x=this.a*e.x+(this.x0||0),e.y=this.a*e.y+(this.y0||0),e}function Or(e){var t,r;e.x=(e.x-(this.x0||0))/this.a,e.y=(e.y-(this.y0||0))/this.a;var n=ft(e.x,e.y=this.cphi1-e.y);if(r=this.cphi1+this.phi1-n,Math.abs(r)>s)throw new Error;return t=Math.abs(Math.abs(r)-s)<=Mr?0:n*Math.atan2(e.x,e.y)/Math.cos(r),e.x=Z(t+(this.long0||0),this.over),e.y=Ct(r),e}var Cr={init:function(){var e;if(this.phi1=this.lat1,Math.abs(this.phi1)<Mr)throw new Error;this.es?(this.en=at(this.es),this.m1=st(this.phi1,this.am1=Math.sin(this.phi1),e=Math.cos(this.phi1),this.en),this.am1=e/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=Pr,this.forward=kr):(Math.abs(this.phi1)+Mr>=s?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=Or,this.forward=Lr)},names:["bonne","Bonne (Werner lat_1=90)"]};const Nr={OBLIQUE:{forward:function(e,t){let{x:r,y:n}=t;r+=e.long0;const i=Math.cos(r),o=Math.sin(n),a=Math.cos(n);t.x=Z(Math.atan2(a*Math.sin(r),e.sphip*a*i+e.cphip*o)+e.lamp),t.y=Math.asin(e.sphip*o-e.cphip*a*i);const s=e.obliqueProjection.forward(t);return e.isIdentity&&(s.x*=d,s.y*=d),s},inverse:function(e,t){e.isIdentity&&(t.x*=h,t.y*=h);const r=e.obliqueProjection.inverse(t);let{x:n,y:i}=r;if(n<Number.MAX_VALUE){n-=e.lamp;const r=Math.cos(n),o=Math.sin(i),a=Math.cos(i);t.x=Math.atan2(a*Math.sin(n),e.sphip*a*r-e.cphip*o),t.y=Math.asin(e.sphip*o+e.cphip*a*r)}return t.x=Z(t.x+e.long0),t}},TRANSVERSE:{forward:function(e,t){let{x:r,y:n}=t;r+=e.long0;const i=Math.cos(n),o=Math.cos(r);t.x=Z(Math.atan2(i*Math.sin(r),Math.sin(n))+e.lamp),t.y=Math.asin(-1*i*o);const a=e.obliqueProjection.forward(t);return e.isIdentity&&(a.x*=d,a.y*=d),a},inverse:function(e,t){e.isIdentity&&(t.x*=h,t.y*=h);const r=e.obliqueProjection.inverse(t);let{x:n,y:i}=r;if(n<Number.MAX_VALUE){const r=Math.cos(i);n-=e.lamp,t.x=Math.atan2(r*Math.sin(n),-1*Math.sin(i)),t.y=Math.asin(r*Math.cos(n))}return t.x=Z(t.x+e.long0),t}}},Rr={ROTATE:{o_alpha:"oAlpha",o_lon_c:"oLongC",o_lat_c:"oLatC"},NEW_POLE:{o_lat_p:"oLatP",o_lon_p:"oLongP"},NEW_EQUATOR:{o_lon_1:"oLong1",o_lat_1:"oLat1",o_lon_2:"oLong2",o_lat_2:"oLat2"}};var Gr={init:function(){if(this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.title=this.title||"General Oblique Transformation",this.isIdentity=te.includes(this.o_proj),!this.o_proj)throw new Error("Missing parameter: o_proj");if("ob_tran"===this.o_proj)throw new Error("Invalid value for o_proj: "+this.o_proj);const e=this.projStr.replace("+proj=ob_tran","").replace("+o_proj=","+proj=").trim(),t=Ee(e);if(!t)throw new Error("Invalid parameter: o_proj. Unknown projection "+this.o_proj);let r;t.long0=0,this.obliqueProjection=t;const n=Object.keys(Rr),i=e=>{if(void 0===this[e])return;const t=parseFloat(this[e])*h;if(isNaN(t))throw new Error("Invalid value for "+e+": "+this[e]);return t};for(let e=0;e<n.length;e++){const t=n[e],o=Rr[t],a=Object.entries(o);if(a.some(([e])=>void 0!==this[e])){r=o;for(let e=0;e<a.length;e++){const[t,r]=a[e],n=i(t);if(void 0===n)throw new Error("Missing parameter: "+t+".");this[r]=n}break}}if(!r)throw new Error("No valid parameters provided for ob_tran projection.");const{lamp:o,phip:a}=function(e,t){let r,n;if(t===Rr.ROTATE){let t=e.oLongC,i=e.oLatC,o=e.oAlpha;if(Math.abs(Math.abs(i)-s)<=f)throw new Error("Invalid value for o_lat_c: "+e.o_lat_c+" should be < 90°");n=t+Math.atan2(-1*Math.cos(o),-1*Math.sin(o)*Math.sin(i)),r=Math.asin(Math.cos(i)*Math.sin(o))}else if(t===Rr.NEW_POLE)n=e.oLongP,r=e.oLatP;else{let t=e.oLong1,i=e.oLat1,o=e.oLong2,a=e.oLat2,u=Math.abs(i);if(Math.abs(i)>s-f)throw new Error("Invalid value for o_lat_1: "+e.o_lat_1+" should be < 90°");if(Math.abs(a)>s-f)throw new Error("Invalid value for o_lat_2: "+e.o_lat_2+" should be < 90°");if(Math.abs(i-a)<f)throw new Error("Invalid value for o_lat_1 and o_lat_2: o_lat_1 should be different from o_lat_2");if(u<f)throw new Error("Invalid value for o_lat_1: o_lat_1 should be different from zero");n=Math.atan2(Math.cos(i)*Math.sin(a)*Math.cos(t)-Math.sin(i)*Math.cos(a)*Math.cos(o),Math.sin(i)*Math.cos(a)*Math.sin(o)-Math.cos(i)*Math.sin(a)*Math.sin(t)),r=Math.atan(-1*Math.cos(n-t)/Math.tan(i))}return{lamp:n,phip:r}}(this,r);this.lamp=o,Math.abs(a)>f?(this.cphip=Math.cos(a),this.sphip=Math.sin(a),this.projectionType=Nr.OBLIQUE):this.projectionType=Nr.TRANSVERSE},forward:function(e){return this.projectionType.forward(this,e)},inverse:function(e){return this.projectionType.inverse(this,e)},names:["General Oblique Transformation","General_Oblique_Transformation","ob_tran"]};const Ar=Object.assign(function(e,t,r){var n,i,o,a=!1;return void 0===t?(i=Fe(e),n=Ve,a=!0):(void 0!==t.x||Array.isArray(t))&&(r=t,i=Fe(e),n=Ve,a=!0),n||(n=Fe(e)),i||(i=Fe(t)),r?De(n,i,r):(o={forward:function(e,t){return De(n,i,e,t)},inverse:function(e,t){return De(i,n,e,t)}},a&&(o.oProj=i),o)},{defaultDatum:"WGS84",Proj:Ee,WGS84:new Ee("WGS84"),Point:it,toPoint:Ne,defs:z,nadgrid:function(e,t,r){return t instanceof ArrayBuffer?function(e,t,r){var n=!0;void 0!==r&&!1===r.includeErrorFields&&(n=!1);var i=new DataView(t),o=function(e){var t=e.getInt32(8,!1);return 11!==t&&(11!==(t=e.getInt32(8,!0))&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}(i),a=function(e,t){return{nFields:e.getInt32(8,t),nSubgridFields:e.getInt32(24,t),nSubgrids:e.getInt32(40,t),shiftType:_e(e,56,64).trim(),fromSemiMajorAxis:e.getFloat64(120,t),fromSemiMinorAxis:e.getFloat64(136,t),toSemiMajorAxis:e.getFloat64(152,t),toSemiMinorAxis:e.getFloat64(168,t)}}(i,o),s=function(e,t,r,n){for(var i=176,o=[],a=0;a<t.nSubgrids;a++){var s=be(e,i,r),u=xe(e,i,s,r,n),l=Math.round(1+(s.upperLongitude-s.lowerLongitude)/s.longitudeInterval),c=Math.round(1+(s.upperLatitude-s.lowerLatitude)/s.latitudeInterval);o.push({ll:[ve(s.lowerLongitude),ve(s.lowerLatitude)],del:[ve(s.longitudeInterval),ve(s.latitudeInterval)],lim:[l,c],count:s.gridNodeCount,cvs:Se(u)});var f=16;!1===n&&(f=8),i+=176+s.gridNodeCount*f}return o}(i,a,o,n),u={header:a,subgrids:s};return ye[e]=u,u}(e,t,r):{ready:async function(e,t){for(var r=[],n=await t.getImageCount(),i=n-1;i>=0;i--){var o=await t.getImage(i),a=await o.readRasters(),s=[o.getWidth(),o.getHeight()],u=o.getBoundingBox().map(me),l=[o.fileDirectory.ModelPixelScale[0],o.fileDirectory.ModelPixelScale[1]].map(me),c=u[0]+(s[0]-1)*l[0],f=u[3]-(s[1]-1)*l[1],h=a[0],d=a[1],p=[];for(let e=s[1]-1;e>=0;e--)for(let t=s[0]-1;t>=0;t--){var y=e*s[0]+t;p.push([-ve(d[y]),ve(h[y])])}r.push({del:l,lim:s,ll:[-c,f],cvs:p})}var g={header:{nSubgrids:n},subgrids:r};return ye[e]=g,g}(e,t)}},transform:Ae,mgrs:Ye,version:"__VERSION__"});!function(e){e.Proj.projections.add(lt),e.Proj.projections.add(pt),e.Proj.projections.add(yt),e.Proj.projections.add(vt),e.Proj.projections.add(St),e.Proj.projections.add(bt),e.Proj.projections.add(wt),e.Proj.projections.add(Et),e.Proj.projections.add(Tt),e.Proj.projections.add(Rt),e.Proj.projections.add(At),e.Proj.projections.add(Dt),e.Proj.projections.add(Ft),e.Proj.projections.add(jt),e.Proj.projections.add(Bt),e.Proj.projections.add(qt),e.Proj.projections.add(Ut),e.Proj.projections.add(Jt),e.Proj.projections.add(zt),e.Proj.projections.add(Wt),e.Proj.projections.add(Ht),e.Proj.projections.add(Yt),e.Proj.projections.add(Xt),e.Proj.projections.add(Kt),e.Proj.projections.add(ar),e.Proj.projections.add(hr),e.Proj.projections.add(dr),e.Proj.projections.add(_r),e.Proj.projections.add(Sr),e.Proj.projections.add(Ir),e.Proj.projections.add(Cr),e.Proj.projections.add(Gr)}(Ar),t.default=Ar},function(e,t,r){r(270),e.exports=r(18).Object.keys},function(e,t,r){var n=r(63),i=r(74);r(125)("keys",function(){return function(e){return i(n(e))}})},function(e,t,r){var n=r(53),i=r(104),o=r(272);e.exports=function(e){return function(t,r,a){var s,u=n(t),l=i(u.length),c=o(a,l);if(e&&r!=r){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===r)return e||c||0;return!e&&-1}}},function(e,t,r){var n=r(121),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=n(e))<0?i(e+t,0):o(e,t)}},function(e,t){},function(e,t,r){e.exports=function(e){return function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,r=t.init;(t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],i=0;i<t;i++)n[i>>>2]|=e[i]<<24-i%4*8;r.call(this,n,t)}else r.apply(this,arguments)}).prototype=t}}(),e.lib.WordArray}(r(14))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib.WordArray,n=t.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i+=2){var o=t[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return r.create(n,2*t)}},n.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o+=2){var a=i(t[o>>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o<t;o++)n[o>>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return r.create(n,2*t)}}}(),e.enc.Utf16}(r(14))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib.WordArray;t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,n=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],a=0;a<n;a+=3)for(var s=(r[a>>>2]>>>24-a%4*8&255)<<16|(r[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|r[a+2>>>2]>>>24-(a+2)%4*8&255,u=0;u<4&&a+.75*u<n;u++)o.push(i.charAt(s>>>6*(3-u)&63));var l=i.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,i=t?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<i.length;a++)o[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var u=e.indexOf(s);-1!==u&&(n=u)}return function(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return r.create(i,o)}(e,n,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url}(r(14))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib.WordArray,n=t.algo,i=n.SHA256,o=n.SHA224=i.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=i._createHelper(o),t.HmacSHA224=i._createHmacHelper(o)}(),e.SHA224}(r(14),r(129))},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.x64,n=r.Word,i=r.WordArray,o=t.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new i.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=a._createHelper(s),t.HmacSHA384=a._createHmacHelper(s)}(),e.SHA384}(r(14),r(106),r(172))},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.x64.Word,s=r.algo,u=[],l=[],c=[];!function(){for(var e=1,t=0,r=0;r<24;r++){u[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,f=0,h=0;h<7;h++){if(1&i){var d=(1<<h)-1;d<32?f^=1<<d:s^=1<<d-32}128&i?i=i<<1^113:i<<=1}c[o]=a.create(s,f)}}();var f=[];!function(){for(var e=0;e<25;e++)f[e]=a.create()}();var h=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var r=this._state,n=this.blockSize/2,i=0;i<n;i++){var o=e[t+2*i],a=e[t+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(k=r[i]).high^=a,k.low^=o}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var d=0,p=0,y=0;y<5;y++)d^=(k=r[h+5*y]).high,p^=k.low;var g=f[h];g.high=d,g.low=p}for(h=0;h<5;h++){var m=f[(h+4)%5],v=f[(h+1)%5],_=v.high,S=v.low;for(d=m.high^(_<<1|S>>>31),p=m.low^(S<<1|_>>>31),y=0;y<5;y++)(k=r[h+5*y]).high^=d,k.low^=p}for(var b=1;b<25;b++){var x=(k=r[b]).high,w=k.low,E=u[b];E<32?(d=x<<E|w>>>32-E,p=w<<E|x>>>32-E):(d=w<<E-32|x>>>64-E,p=x<<E-32|w>>>64-E);var T=f[l[b]];T.high=d,T.low=p}var I=f[0],M=r[0];for(I.high=M.high,I.low=M.low,h=0;h<5;h++)for(y=0;y<5;y++){var k=r[b=h+5*y],P=f[b],L=f[(h+1)%5+5*y],O=f[(h+2)%5+5*y];k.high=P.high^~L.high&O.high,k.low=P.low^~L.low&O.low}k=r[0];var C=c[s];k.high^=C.high,k.low^=C.low}},_doFinalize:function(){var e=this._data,r=e.words,n=(this._nDataBytes,8*e.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(t.ceil((n+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,u=s/8,l=[],c=0;c<u;c++){var f=a[c],h=f.high,d=f.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),l.push(d),l.push(h)}return new i.init(l,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});r.SHA3=o._createHelper(h),r.HmacSHA3=o._createHmacHelper(h)}(Math),e.SHA3}(r(14),r(106))},function(e,t,r){e.exports=function(e){
97
97
  /** @preserve
98
98
  (c) 2012 by Cédric Mesnil. All rights reserved.
99
99