augustine-jkmap 1.1.2 → 1.1.4

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.
@@ -1,2 +1,2 @@
1
- (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define("augustine-jkmap.umd.min",[],t):"object"===typeof exports?exports["augustine-jkmap.umd.min"]=t():e["augustine-jkmap.umd.min"]=t()})(Object("undefined"!==typeof self?self:this),()=>(()=>{var e={3(e,t){(function(e,r){r(t)})(0,function(e){"use strict";var t="undefined"!==typeof window,r={Promise:t?window["Promise"]:void 0},i="4.25",n="next";function o(e){if(e.toLowerCase()===n)return n;var t=e&&e.match(/^(\d)\.(\d+)/);return t&&{major:parseInt(t[1],10),minor:parseInt(t[2],10)}}function s(e){return void 0===e&&(e=i),"https://js.arcgis.com/".concat(e,"/")}function a(e){void 0===e&&(e=i);var t=s(e),r=o(e);if(r!==n&&3===r.major){var a=r.minor<=10?"js/":"";return"".concat(t).concat(a,"esri/css/esri.css")}return"".concat(t,"esri/themes/light/main.css")}function l(e){var t=document.createElement("link");return t.rel="stylesheet",t.href=e,t}function c(e,t){if(t){var r=document.querySelector(t);r.parentNode.insertBefore(e,r)}else document.head.appendChild(e)}function h(e){return document.querySelector('link[href*="'.concat(e,'"]'))}function u(e){return!e||o(e)?a(e):e}function d(e,t){var r=u(e),i=h(r);return i||(i=l(r),c(i,t)),i}var p={};function f(e){var t=document.createElement("script");return t.type="text/javascript",t.src=e,t.setAttribute("data-esri-loader","loading"),t}function m(e,t,r){var i;r&&(i=y(e,r));var n=function(){t(e),e.removeEventListener("load",n,!1),i&&e.removeEventListener("error",i,!1)};e.addEventListener("load",n,!1)}function y(e,t){var r=function(i){t(i.error||new Error("There was an error attempting to load ".concat(e.src))),e.removeEventListener("error",r,!1)};return e.addEventListener("error",r,!1),r}function g(e){void 0===e&&(e={}),p=e}function w(){return document.querySelector("script[data-esri-loader]")}function b(){var e=window["require"];return e&&e.on}function v(e){void 0===e&&(e={});var t={};[p,e].forEach(function(e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])});var i=t.version,n=t.url||s(i);return new r.Promise(function(e,r){var o=w();if(o){var s=o.getAttribute("src");s!==n?r(new Error("The ArcGIS API for JavaScript is already loaded (".concat(s,")."))):b()?e(o):m(o,e,r)}else if(b())r(new Error("The ArcGIS API for JavaScript is already loaded."));else{var a=t.css;if(a){var l=!0===a;d(l?i:a,t.insertCssBefore)}o=f(n),m(o,function(){o.setAttribute("data-esri-loader","loaded"),e(o)},r),document.body.appendChild(o)}})}function A(e){return new r.Promise(function(t,r){var i=window["require"].on("error",r);window["require"](e,function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];i.remove(),t(e)})})}function M(e,t){if(void 0===t&&(t={}),b())return A(e);var r=w(),i=r&&r.getAttribute("src");return!t.url&&i&&(t.url=i),v(t).then(function(){return A(e)})}e.utils=r,e.loadModules=M,e.getScript=w,e.isLoaded=b,e.loadScript=v,e.setDefaultOptions=g,e.loadCss=d,Object.defineProperty(e,"__esModule",{value:!0})})},337(e,t,r){(function(t,i){if("object"===typeof e.exports)e.exports=i(r(375));else if("object"===typeof navigator){if(!t.Terraformer)throw new Error("Terraformer.WKT requires the core Terraformer library. http://github.com/esri/terraformer");t.Terraformer.WKT=i(t.Terraformer)}})(this,function(e){var t={},r=function(){var e={trace:function(){},yy:{},symbols_:{error:2,expressions:3,point:4,EOF:5,linestring:6,polygon:7,multipoint:8,multilinestring:9,multipolygon:10,coordinate:11,DOUBLE_TOK:12,ptarray:13,COMMA:14,ring_list:15,ring:16,"(":17,")":18,POINT:19,Z:20,ZM:21,M:22,EMPTY:23,point_untagged:24,polygon_list:25,polygon_untagged:26,point_list:27,LINESTRING:28,POLYGON:29,MULTIPOINT:30,MULTILINESTRING:31,MULTIPOLYGON:32,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",12:"DOUBLE_TOK",14:"COMMA",17:"(",18:")",19:"POINT",20:"Z",21:"ZM",22:"M",23:"EMPTY",28:"LINESTRING",29:"POLYGON",30:"MULTIPOINT",31:"MULTILINESTRING",32:"MULTIPOLYGON"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[3,2],[3,2],[11,2],[11,3],[11,4],[13,3],[13,1],[15,3],[15,1],[16,3],[4,4],[4,5],[4,5],[4,5],[4,2],[24,1],[24,3],[25,3],[25,1],[26,3],[27,3],[27,1],[6,4],[6,5],[6,5],[6,5],[6,2],[7,4],[7,5],[7,5],[7,5],[7,2],[8,4],[8,5],[8,5],[8,5],[8,2],[9,4],[9,5],[9,5],[9,5],[9,2],[10,4],[10,5],[10,5],[10,5],[10,2]],performAction:function(e,t,r,i,l,c,h){var u=c.length-1;switch(l){case 1:return c[u-1];case 2:return c[u-1];case 3:return c[u-1];case 4:return c[u-1];case 5:return c[u-1];case 6:return c[u-1];case 7:this.$=new n([Number(c[u-1]),Number(c[u])]);break;case 8:this.$=new n([Number(c[u-2]),Number(c[u-1]),Number(c[u])]);break;case 9:this.$=new n([Number(c[u-3]),Number(c[u-2]),Number(c[u-1]),Number(c[u])]);break;case 10:this.$=c[u-2].addPoint(c[u]);break;case 11:this.$=c[u];break;case 12:this.$=c[u-2].addRing(c[u]);break;case 13:this.$=new s(c[u]);break;case 14:this.$=new o(c[u-1]);break;case 15:this.$={type:"Point",coordinates:c[u-1].data[0]};break;case 16:this.$={type:"Point",coordinates:c[u-1].data[0],properties:{z:!0}};break;case 17:this.$={type:"Point",coordinates:c[u-1].data[0],properties:{z:!0,m:!0}};break;case 18:this.$={type:"Point",coordinates:c[u-1].data[0],properties:{m:!0}};break;case 19:this.$={type:"Point",coordinates:[]};break;case 20:this.$=c[u];break;case 21:this.$=c[u-1];break;case 22:this.$=c[u-2].addPolygon(c[u]);break;case 23:this.$=new a(c[u]);break;case 24:this.$=c[u-1];break;case 25:this.$=c[u-2].addPoint(c[u]);break;case 26:this.$=c[u];break;case 27:this.$={type:"LineString",coordinates:c[u-1].data};break;case 28:this.$={type:"LineString",coordinates:c[u-1].data,properties:{z:!0}};break;case 29:this.$={type:"LineString",coordinates:c[u-1].data,properties:{m:!0}};break;case 30:this.$={type:"LineString",coordinates:c[u-1].data,properties:{z:!0,m:!0}};break;case 31:this.$={type:"LineString",coordinates:[]};break;case 32:this.$={type:"Polygon",coordinates:c[u-1].toJSON()};break;case 33:this.$={type:"Polygon",coordinates:c[u-1].toJSON(),properties:{z:!0}};break;case 34:this.$={type:"Polygon",coordinates:c[u-1].toJSON(),properties:{m:!0}};break;case 35:this.$={type:"Polygon",coordinates:c[u-1].toJSON(),properties:{z:!0,m:!0}};break;case 36:this.$={type:"Polygon",coordinates:[]};break;case 37:this.$={type:"MultiPoint",coordinates:c[u-1].data};break;case 38:this.$={type:"MultiPoint",coordinates:c[u-1].data,properties:{z:!0}};break;case 39:this.$={type:"MultiPoint",coordinates:c[u-1].data,properties:{m:!0}};break;case 40:this.$={type:"MultiPoint",coordinates:c[u-1].data,properties:{z:!0,m:!0}};break;case 41:this.$={type:"MultiPoint",coordinates:[]};break;case 42:this.$={type:"MultiLineString",coordinates:c[u-1].toJSON()};break;case 43:this.$={type:"MultiLineString",coordinates:c[u-1].toJSON(),properties:{z:!0}};break;case 44:this.$={type:"MultiLineString",coordinates:c[u-1].toJSON(),properties:{m:!0}};break;case 45:this.$={type:"MultiLineString",coordinates:c[u-1].toJSON(),properties:{z:!0,m:!0}};break;case 46:this.$={type:"MultiLineString",coordinates:[]};break;case 47:this.$={type:"MultiPolygon",coordinates:c[u-1].toJSON()};break;case 48:this.$={type:"MultiPolygon",coordinates:c[u-1].toJSON(),properties:{z:!0}};break;case 49:this.$={type:"MultiPolygon",coordinates:c[u-1].toJSON(),properties:{m:!0}};break;case 50:this.$={type:"MultiPolygon",coordinates:c[u-1].toJSON(),properties:{z:!0,m:!0}};break;case 51:this.$={type:"MultiPolygon",coordinates:[]};break}},table:[{3:1,4:2,6:3,7:4,8:5,9:6,10:7,19:[1,8],28:[1,9],29:[1,10],30:[1,11],31:[1,12],32:[1,13]},{1:[3]},{5:[1,14]},{5:[1,15]},{5:[1,16]},{5:[1,17]},{5:[1,18]},{5:[1,19]},{17:[1,20],20:[1,21],21:[1,22],22:[1,23],23:[1,24]},{17:[1,25],20:[1,26],21:[1,28],22:[1,27],23:[1,29]},{17:[1,30],20:[1,31],21:[1,33],22:[1,32],23:[1,34]},{17:[1,35],20:[1,36],21:[1,38],22:[1,37],23:[1,39]},{17:[1,40],20:[1,41],21:[1,43],22:[1,42],23:[1,44]},{17:[1,45],20:[1,46],21:[1,48],22:[1,47],23:[1,49]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{11:51,12:[1,52],13:50},{17:[1,53]},{17:[1,54]},{17:[1,55]},{5:[2,19]},{11:58,12:[1,52],17:[1,59],24:57,27:56},{17:[1,60]},{17:[1,61]},{17:[1,62]},{5:[2,31]},{15:63,16:64,17:[1,65]},{17:[1,66]},{17:[1,67]},{17:[1,68]},{5:[2,36]},{11:58,12:[1,52],17:[1,59],24:57,27:69},{17:[1,70]},{17:[1,71]},{17:[1,72]},{5:[2,41]},{15:73,16:64,17:[1,65]},{17:[1,74]},{17:[1,75]},{17:[1,76]},{5:[2,46]},{17:[1,79],25:77,26:78},{17:[1,80]},{17:[1,81]},{17:[1,82]},{5:[2,51]},{14:[1,84],18:[1,83]},{14:[2,11],18:[2,11]},{12:[1,85]},{11:51,12:[1,52],13:86},{11:51,12:[1,52],13:87},{11:51,12:[1,52],13:88},{14:[1,90],18:[1,89]},{14:[2,26],18:[2,26]},{14:[2,20],18:[2,20]},{11:91,12:[1,52]},{11:58,12:[1,52],17:[1,59],24:57,27:92},{11:58,12:[1,52],17:[1,59],24:57,27:93},{11:58,12:[1,52],17:[1,59],24:57,27:94},{14:[1,96],18:[1,95]},{14:[2,13],18:[2,13]},{11:51,12:[1,52],13:97},{15:98,16:64,17:[1,65]},{15:99,16:64,17:[1,65]},{15:100,16:64,17:[1,65]},{14:[1,90],18:[1,101]},{11:58,12:[1,52],17:[1,59],24:57,27:102},{11:58,12:[1,52],17:[1,59],24:57,27:103},{11:58,12:[1,52],17:[1,59],24:57,27:104},{14:[1,96],18:[1,105]},{15:106,16:64,17:[1,65]},{15:107,16:64,17:[1,65]},{15:108,16:64,17:[1,65]},{14:[1,110],18:[1,109]},{14:[2,23],18:[2,23]},{15:111,16:64,17:[1,65]},{17:[1,79],25:112,26:78},{17:[1,79],25:113,26:78},{17:[1,79],25:114,26:78},{5:[2,15]},{11:115,12:[1,52]},{12:[1,116],14:[2,7],18:[2,7]},{14:[1,84],18:[1,117]},{14:[1,84],18:[1,118]},{14:[1,84],18:[1,119]},{5:[2,27]},{11:58,12:[1,52],17:[1,59],24:120},{18:[1,121]},{14:[1,90],18:[1,122]},{14:[1,90],18:[1,123]},{14:[1,90],18:[1,124]},{5:[2,32]},{16:125,17:[1,65]},{14:[1,84],18:[1,126]},{14:[1,96],18:[1,127]},{14:[1,96],18:[1,128]},{14:[1,96],18:[1,129]},{5:[2,37]},{14:[1,90],18:[1,130]},{14:[1,90],18:[1,131]},{14:[1,90],18:[1,132]},{5:[2,42]},{14:[1,96],18:[1,133]},{14:[1,96],18:[1,134]},{14:[1,96],18:[1,135]},{5:[2,47]},{17:[1,79],26:136},{14:[1,96],18:[1,137]},{14:[1,110],18:[1,138]},{14:[1,110],18:[1,139]},{14:[1,110],18:[1,140]},{14:[2,10],18:[2,10]},{12:[1,141],14:[2,8],18:[2,8]},{5:[2,16]},{5:[2,17]},{5:[2,18]},{14:[2,25],18:[2,25]},{14:[2,21],18:[2,21]},{5:[2,28]},{5:[2,29]},{5:[2,30]},{14:[2,12],18:[2,12]},{14:[2,14],18:[2,14]},{5:[2,33]},{5:[2,34]},{5:[2,35]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,43]},{5:[2,44]},{5:[2,45]},{14:[2,22],18:[2,22]},{14:[2,24],18:[2,24]},{5:[2,48]},{5:[2,49]},{5:[2,50]},{14:[2,9],18:[2,9]}],defaultActions:{14:[2,1],15:[2,2],16:[2,3],17:[2,4],18:[2,5],19:[2,6],24:[2,19],29:[2,31],34:[2,36],39:[2,41],44:[2,46],49:[2,51],83:[2,15],89:[2,27],95:[2,32],101:[2,37],105:[2,42],109:[2,47],117:[2,16],118:[2,17],119:[2,18],122:[2,28],123:[2,29],124:[2,30],127:[2,33],128:[2,34],129:[2,35],130:[2,38],131:[2,39],132:[2,40],133:[2,43],134:[2,44],135:[2,45],138:[2,48],139:[2,49],140:[2,50]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=this,r=[0],i=[null],n=[],o=this.table,s="",a=0,l=0,c=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,"undefined"==typeof this.lexer.yylloc&&(this.lexer.yylloc={});var h=this.lexer.yylloc;n.push(h);var u=this.lexer.options&&this.lexer.options.ranges;function d(){var e;return e=t.lexer.lex()||1,"number"!==typeof e&&(e=t.symbols_[e]||e),e}"function"===typeof this.yy.parseError&&(this.parseError=this.yy.parseError);var p,f,m,y,g,w,b,v,A,M={};while(1){if(m=r[r.length-1],this.defaultActions[m]?y=this.defaultActions[m]:(null!==p&&"undefined"!=typeof p||(p=d()),y=o[m]&&o[m][p]),"undefined"===typeof y||!y.length||!y[0]){var E="";if(!c){for(w in A=[],o[m])this.terminals_[w]&&w>2&&A.push("'"+this.terminals_[w]+"'");E=this.lexer.showPosition?"Parse error on line "+(a+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(a+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(E,{text:this.lexer.match,token:this.terminals_[p]||p,line:this.lexer.yylineno,loc:h,expected:A})}}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+p);switch(y[0]){case 1:r.push(p),i.push(this.lexer.yytext),n.push(this.lexer.yylloc),r.push(y[1]),p=null,f?(p=f,f=null):(l=this.lexer.yyleng,s=this.lexer.yytext,a=this.lexer.yylineno,h=this.lexer.yylloc,c>0&&c--);break;case 2:if(b=this.productions_[y[1]][1],M.$=i[i.length-b],M._$={first_line:n[n.length-(b||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(b||1)].first_column,last_column:n[n.length-1].last_column},u&&(M._$.range=[n[n.length-(b||1)].range[0],n[n.length-1].range[1]]),g=this.performAction.call(M,s,l,a,this.yy,y[1],i,n),"undefined"!==typeof g)return g;b&&(r=r.slice(0,-1*b*2),i=i.slice(0,-1*b),n=n.slice(0,-1*b)),r.push(this.productions_[y[1]][0]),i.push(M.$),n.push(M._$),v=o[r[r.length-2]][r[r.length-1]],r.push(v);break;case 3:return!0}}return!0}},t=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===i.length?this.yylloc.first_column:0)+i[i.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,r,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),s=0;s<o.length;s++)if(r=this._input.match(this.rules[o[s]]),r&&(!t||r[0].length>t[0].length)&&(t=r,i=s,!this.options.flex))break;return t?(n=t[0].match(/(?:\r\n?|\n).*/g),n&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,o[i],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return"undefined"!==typeof e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,t,r,i){switch(r){case 0:break;case 1:return 17;case 2:return 18;case 3:return 12;case 4:return 19;case 5:return 28;case 6:return 29;case 7:return 30;case 8:return 31;case 9:return 32;case 10:return 14;case 11:return 23;case 12:return 22;case 13:return 20;case 14:return 21;case 15:return 5;case 16:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:\()/,/^(?:\))/,/^(?:-?[0-9]+(\.[0-9]+)?([eE][\-\+]?[0-9]+)?)/,/^(?:POINT\b)/,/^(?:LINESTRING\b)/,/^(?:POLYGON\b)/,/^(?:MULTIPOINT\b)/,/^(?:MULTILINESTRING\b)/,/^(?:MULTIPOLYGON\b)/,/^(?:,)/,/^(?:EMPTY\b)/,/^(?:M\b)/,/^(?:Z\b)/,/^(?:ZM\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],inclusive:!0}}};return e}();function r(){this.yy={}}return e.lexer=t,r.prototype=e,e.Parser=r,new r}();function n(e){this.data=[e],this.type="PointArray"}function o(e){this.data=e,this.type="Ring"}function s(e){this.data=[e],this.type="RingList"}function a(e){this.data=[e],this.type="PolygonList"}function l(t){var i;try{i=r.parse(t)}catch(n){throw Error("Unable to parse: "+n)}return e.Primitive(i)}function c(e){for(var t=[],r="",i=0;i<e.length;i++)t.push(e[i].join(" "));return r+="("+t.join(", ")+")",r}function h(e){var t="POINT ";return void 0===e.coordinates||0===e.coordinates.length?(t+="EMPTY",t):(3===e.coordinates.length?e.properties&&!0===e.properties.m?t+="M ":t+="Z ":4===e.coordinates.length&&(t+="ZM "),t+="("+e.coordinates.join(" ")+")",t)}function u(e){var t="LINESTRING ";return void 0===e.coordinates||0===e.coordinates.length||0===e.coordinates[0].length?(t+="EMPTY",t):(3===e.coordinates[0].length?e.properties&&!0===e.properties.m?t+="M ":t+="Z ":4===e.coordinates[0].length&&(t+="ZM "),t+=c(e.coordinates),t)}function d(e){var t="POLYGON ";if(void 0===e.coordinates||0===e.coordinates.length||0===e.coordinates[0].length)return t+="EMPTY",t;3===e.coordinates[0][0].length?e.properties&&!0===e.properties.m?t+="M ":t+="Z ":4===e.coordinates[0][0].length&&(t+="ZM "),t+="(";for(var r=[],i=0;i<e.coordinates.length;i++)r.push(c(e.coordinates[i]));return t+=r.join(", "),t+=")",t}function p(e){var t="MULTIPOINT ";return void 0===e.coordinates||0===e.coordinates.length||0===e.coordinates[0].length?(t+="EMPTY",t):(3===e.coordinates[0].length?e.properties&&!0===e.properties.m?t+="M ":t+="Z ":4===e.coordinates[0].length&&(t+="ZM "),t+=c(e.coordinates),t)}function f(e){var t="MULTILINESTRING ";if(void 0===e.coordinates||0===e.coordinates.length||0===e.coordinates[0].length)return t+="EMPTY",t;3===e.coordinates[0][0].length?e.properties&&!0===e.properties.m?t+="M ":t+="Z ":4===e.coordinates[0][0].length&&(t+="ZM "),t+="(";for(var r=[],i=0;i<e.coordinates.length;i++)r.push(c(e.coordinates[i]));return t+=r.join(", "),t+=")",t}function m(e){var t="MULTIPOLYGON ";if(void 0===e.coordinates||0===e.coordinates.length||0===e.coordinates[0].length||0===e.coordinates[0][0].length)return t+="EMPTY",t;3===e.coordinates[0][0][0].length?e.properties&&!0===e.properties.m?t+="M ":t+="Z ":4===e.coordinates[0][0][0].length&&(t+="ZM "),t+="(";for(var r=[],i=0;i<e.coordinates.length;i++){for(var n="(",o=[],s=0;s<e.coordinates[i].length;s++)o.push(c(e.coordinates[i][s]));n+=o.join(", "),n+=")",r.push(n)}return t+=r.join(", "),t+=")",t}function y(e){switch(e.type){case"Point":return h(e);case"LineString":return u(e);case"Polygon":return d(e);case"MultiPoint":return p(e);case"MultiLineString":return f(e);case"MultiPolygon":return m(e);case"GeometryCollection":var t="GEOMETRYCOLLECTION",r=[];for(i=0;i<e.geometries.length;i++)r.push(y(e.geometries[i]));return t+"("+r.join(", ")+")";default:throw Error("Unknown Type: "+e.type)}}return n.prototype.addPoint=function(e){return"PointArray"===e.type?this.data=this.data.concat(e.data):this.data.push(e),this},n.prototype.toJSON=function(){return this.data},o.prototype.toJSON=function(){for(var e=[],t=0;t<this.data.data.length;t++)e.push(this.data.data[t]);return e},s.prototype.addRing=function(e){return this.data.push(e),this},s.prototype.toJSON=function(){for(var e=[],t=0;t<this.data.length;t++)e.push(this.data[t].toJSON());return e.length,e},a.prototype.addPolygon=function(e){return this.data.push(e),this},a.prototype.toJSON=function(){for(var e=[],t=0;t<this.data.length;t++)e=e.concat([this.data[t].toJSON()]);return e},t.parser=r,t.Parser=r.Parser,t.parse=l,t.convert=y,t})},375(e,t){(function(t,r){"object"===typeof e.exports&&(e.exports=r()),"object"===typeof window&&(t.Terraformer=r())})(this,function(){"use strict";var e={},t=6378137,r=57.29577951308232,i=.017453292519943,n={type:"link",properties:{href:"http://spatialreference.org/ref/sr-org/6928/ogcwkt/",type:"ogcwkt"}},o={type:"link",properties:{href:"http://spatialreference.org/ref/epsg/4326/ogcwkt/",type:"ogcwkt"}};function s(e){return"[object Array]"===Object.prototype.toString.call(e)}function a(){var e=Array.prototype.slice.apply(arguments);void 0!==typeof console&&console.warn&&console.warn.apply(console,e)}function l(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function c(e){if(e.type)switch(e.type){case"Point":return[e.coordinates[0],e.coordinates[1],e.coordinates[0],e.coordinates[1]];case"MultiPoint":return d(e.coordinates);case"LineString":return d(e.coordinates);case"MultiLineString":return h(e.coordinates);case"Polygon":return h(e.coordinates);case"MultiPolygon":return u(e.coordinates);case"Feature":return e.geometry?c(e.geometry):null;case"FeatureCollection":return p(e);case"GeometryCollection":return f(e);default:throw new Error("Unknown type: "+e.type)}return null}function h(e){for(var t=null,r=null,i=null,n=null,o=0;o<e.length;o++)for(var s=e[o],a=0;a<s.length;a++){var l=s[a],c=l[0],h=l[1];(null===t||c<t)&&(t=c),(null===r||c>r)&&(r=c),(null===i||h<i)&&(i=h),(null===n||h>n)&&(n=h)}return[t,i,r,n]}function u(e){for(var t=null,r=null,i=null,n=null,o=0;o<e.length;o++)for(var s=e[o],a=0;a<s.length;a++)for(var l=s[a],c=0;c<l.length;c++){var h=l[c],u=h[0],d=h[1];(null===t||u<t)&&(t=u),(null===r||u>r)&&(r=u),(null===i||d<i)&&(i=d),(null===n||d>n)&&(n=d)}return[t,i,r,n]}function d(e){for(var t=null,r=null,i=null,n=null,o=0;o<e.length;o++){var s=e[o],a=s[0],l=s[1];(null===t||a<t)&&(t=a),(null===r||a>r)&&(r=a),(null===i||l<i)&&(i=l),(null===n||l>n)&&(n=l)}return[t,i,r,n]}function p(e){for(var t,r=[],i=e.features.length-1;i>=0;i--)t=c(e.features[i].geometry),r.push([t[0],t[1]]),r.push([t[2],t[3]]);return d(r)}function f(e){for(var t,r=[],i=e.geometries.length-1;i>=0;i--)t=c(e.geometries[i]),r.push([t[0],t[1]]),r.push([t[2],t[3]]);return d(r)}function m(e){var t=c(e);return{x:t[0],y:t[1],w:Math.abs(t[0]-t[2]),h:Math.abs(t[1]-t[3])}}function y(e){return e*r}function g(e){return e*i}function w(e,t){for(var r=0;r<e.length;r++)"number"===typeof e[r][0]&&(e[r]=t(e[r])),"object"===typeof e[r]&&(e[r]=w(e[r],t));return e}function b(e){var r=e[0],i=e[1];return[y(r/t)-360*Math.floor((y(r/t)+180)/360),y(Math.PI/2-2*Math.atan(Math.exp(-1*i/t)))]}function v(e){var r=e[0],i=Math.max(Math.min(e[1],89.99999),-89.99999);return[g(r)*t,t/2*Math.log((1+Math.sin(g(i)))/(1-Math.sin(g(i))))]}function A(e,t,r){if("Point"===e.type)e.coordinates=t(e.coordinates);else if("Feature"===e.type)e.geometry=A(e.geometry,t,!0);else if("FeatureCollection"===e.type)for(var i=0;i<e.features.length;i++)e.features[i]=A(e.features[i],t,!0);else if("GeometryCollection"===e.type)for(var o=0;o<e.geometries.length;o++)e.geometries[o]=A(e.geometries[o],t,!0);else e.coordinates=w(e.coordinates,t);return r||t===v&&(e.crs=n),t===b&&delete e.crs,e}function M(e){return A(e,v)}function E(e){return A(e,b)}function S(e,t){return e<t?-1:e>t?1:0}function T(e,t){return e[0]>t[0]?-1:e[0]<t[0]?1:e[1]>t[1]?-1:e[1]<t[1]?1:0}function x(e,t,r){return S((t[0]-e[0])*(r[1]-e[1])-(r[0]-e[0])*(t[1]-e[1]),0)}function k(e,t){var r=t[0]-e[0],i=t[1]-e[1];return r*r+i*i}function I(e,t){var r=t;for(var i in e){var n=x(t,r,e[i]);(-1===n||0===n&&k(t,e[i])>k(t,r))&&(r=e[i])}return r}function P(e){if(0===e.length)return[];if(1===e.length)return e;for(var t=[e.sort(T)[0]],r=0;r<t.length;r++){var i=I(e,t[r]);i!==t[0]&&t.push(i)}return t}function N(e){for(var t,r=0;r<e.length-3;r++){var i=e[r],n=e[r+1],o=e[r+2],s=[n[0]-i[0],n[1]-i[1]],a=o[0]*s[1]-o[1]*s[0]+s[0]*i[1]-s[1]*i[0];if(0===r)t=a<0;else if(t&&a>0||!t&&a<0)return!1}return!0}function L(e,t){for(var r=!1,i=-1,n=e.length,o=n-1;++i<n;o=i)(e[i][1]<=t[1]&&t[1]<e[o][1]||e[o][1]<=t[1]&&t[1]<e[i][1])&&t[0]<(e[o][0]-e[i][0])*(t[1]-e[i][1])/(e[o][1]-e[i][1])+e[i][0]&&(r=!r);return r}function R(e,t){if(e&&e.length){if(1===e.length)return L(e[0],t);if(L(e[0],t)){for(var r=1;r<e.length;r++)if(L(e[r],t))return!1;return!0}return!1}return!1}function O(e,t,r,i){var n=(i[0]-r[0])*(e[1]-r[1])-(i[1]-r[1])*(e[0]-r[0]),o=(t[0]-e[0])*(e[1]-r[1])-(t[1]-e[1])*(e[0]-r[0]),s=(i[1]-r[1])*(t[0]-e[0])-(i[0]-r[0])*(t[1]-e[1]);if(0!==s){var a=n/s,l=o/s;if(0<=a&&a<=1&&0<=l&&l<=1)return!0}return!1}function C(e){return!isNaN(parseFloat(e))&&isFinite(e)}function G(e,t){if(C(e[0][0])){if(C(t[0][0])){for(var r=0;r<e.length-1;r++)for(var i=0;i<t.length-1;i++)if(O(e[r],e[r+1],t[i],t[i+1]))return!0}else for(var n=0;n<t.length;n++)if(G(e,t[n]))return!0}else for(var o=0;o<e.length;o++)if(G(e[o],t))return!0;return!1}function j(e){for(var t=[],r=0;r<e.length;r++){var i=e[r].slice();!1===Z(i[0],i[i.length-1])&&i.push(i[0]),t.push(i)}return t}function Z(e,t){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function D(e,t){if(e.length!==t.length)return!1;for(var r=e.slice().sort(T),i=t.slice().sort(T),n=0;n<r.length;n++){if(r[n].length!==i[n].length)return!1;for(var o=0;o<r.length;o++)if(r[n][o]!==i[n][o])return!1}return!0}var z=["length"];function U(e){if(e)switch(e.type){case"Point":return new W(e);case"MultiPoint":return new F(e);case"LineString":return new V(e);case"MultiLineString":return new J(e);case"Polygon":return new B(e);case"MultiPolygon":return new Y(e);case"Feature":return new Q(e);case"FeatureCollection":return new H(e);case"GeometryCollection":return new X(e);default:throw new Error("Unknown type: "+e.type)}}function W(e){var t=Array.prototype.slice.call(arguments);if(e&&"Point"===e.type&&e.coordinates)l(this,e);else if(e&&s(e))this.coordinates=e;else{if(!(t.length>=2))throw"Terraformer: invalid input for Terraformer.Point";this.coordinates=t}this.type="Point"}function F(e){if(e&&"MultiPoint"===e.type&&e.coordinates)l(this,e);else{if(!s(e))throw"Terraformer: invalid input for Terraformer.MultiPoint";this.coordinates=e}this.type="MultiPoint"}function V(e){if(e&&"LineString"===e.type&&e.coordinates)l(this,e);else{if(!s(e))throw"Terraformer: invalid input for Terraformer.LineString";this.coordinates=e}this.type="LineString"}function J(e){if(e&&"MultiLineString"===e.type&&e.coordinates)l(this,e);else{if(!s(e))throw"Terraformer: invalid input for Terraformer.MultiLineString";this.coordinates=e}this.type="MultiLineString"}function B(e){if(e&&"Polygon"===e.type&&e.coordinates)l(this,e);else{if(!s(e))throw"Terraformer: invalid input for Terraformer.Polygon";this.coordinates=e}this.type="Polygon"}function Y(e){if(e&&"MultiPolygon"===e.type&&e.coordinates)l(this,e);else{if(!s(e))throw"Terraformer: invalid input for Terraformer.MultiPolygon";this.coordinates=e}this.type="MultiPolygon"}function Q(e){if(e&&"Feature"===e.type)l(this,e);else{if(!(e&&e.type&&e.coordinates))throw"Terraformer: invalid input for Terraformer.Feature";this.geometry=e}this.type="Feature"}function H(e){if(e&&"FeatureCollection"===e.type&&e.features)l(this,e);else{if(!s(e))throw"Terraformer: invalid input for Terraformer.FeatureCollection";this.features=e}this.type="FeatureCollection"}function X(e){if(e&&"GeometryCollection"===e.type&&e.geometries)l(this,e);else if(s(e))this.geometries=e;else{if(!e.coordinates||!e.type)throw"Terraformer: invalid input for Terraformer.GeometryCollection";this.type="GeometryCollection",this.geometries=[e]}this.type="GeometryCollection"}function K(e,t,r){for(var i=v(e),n=r||64,o={type:"Polygon",coordinates:[[]]},s=1;s<=n;s++){var a=s*(360/n)*Math.PI/180;o.coordinates[0].push([i[0]+t*Math.cos(a),i[1]+t*Math.sin(a)])}return o.coordinates=j(o.coordinates),E(o)}function q(e,t,r){var i=r||64,n=t||250;if(!e||e.length<2||!n||!i)throw new Error("Terraformer: missing parameter for Terraformer.Circle");l(this,new Q({type:"Feature",geometry:K(e,n,i),properties:{radius:n,center:e,steps:i}}))}return U.prototype.toMercator=function(){return M(this)},U.prototype.toGeographic=function(){return E(this)},U.prototype.envelope=function(){return m(this)},U.prototype.bbox=function(){return c(this)},U.prototype.convexHull=function(){var e,t,r=[];if("Point"===this.type)return null;if("LineString"===this.type||"MultiPoint"===this.type){if(!(this.coordinates&&this.coordinates.length>=3))return null;r=this.coordinates}else if("Polygon"===this.type||"MultiLineString"===this.type){if(!(this.coordinates&&this.coordinates.length>0))return null;for(e=0;e<this.coordinates.length;e++)r=r.concat(this.coordinates[e]);if(r.length<3)return null}else if("MultiPolygon"===this.type){if(!(this.coordinates&&this.coordinates.length>0))return null;for(e=0;e<this.coordinates.length;e++)for(t=0;t<this.coordinates[e].length;t++)r=r.concat(this.coordinates[e][t]);if(r.length<3)return null}else if("Feature"===this.type){var i=new U(this.geometry);return i.convexHull()}return new B({type:"Polygon",coordinates:j([P(r)])})},U.prototype.toJSON=function(){var e={};for(var t in this)this.hasOwnProperty(t)&&-1===z.indexOf(t)&&(e[t]=this[t]);return e.bbox=c(this),e},U.prototype.contains=function(e){return new U(e).within(this)},U.prototype.within=function(e){var t,r,i,n;if("Feature"===e.type&&(e=e.geometry),"Point"===e.type&&"Point"===this.type)return Z(this.coordinates,e.coordinates);if("MultiLineString"===e.type&&"Point"===this.type)for(r=0;r<e.coordinates.length;r++){var o={type:"LineString",coordinates:e.coordinates[r]};if(this.within(o))return!0}if(("LineString"===e.type||"MultiPoint"===e.type)&&"Point"===this.type)for(r=0;r<e.coordinates.length;r++){if(this.coordinates.length!==e.coordinates[r].length)return!1;if(Z(this.coordinates,e.coordinates[r]))return!0}if("Polygon"===e.type){if("Polygon"===this.type){if(e.coordinates.length===this.coordinates.length)for(r=0;r<this.coordinates.length;r++)if(D(this.coordinates[r],e.coordinates[r]))return!0;return!(!this.coordinates.length||!R(e.coordinates,this.coordinates[0][0]))&&!G(j(this.coordinates),j(e.coordinates))}if("Point"===this.type)return R(e.coordinates,this.coordinates);if("LineString"===this.type||"MultiPoint"===this.type){if(!this.coordinates||0===this.coordinates.length)return!1;for(r=0;r<this.coordinates.length;r++)if(!1===R(e.coordinates,this.coordinates[r]))return!1;return!0}if("MultiLineString"===this.type){for(r=0;r<this.coordinates.length;r++){var s=new V(this.coordinates[r]);if(!1===s.within(e))return n++,!1}return!0}if("MultiPolygon"===this.type){for(r=0;r<this.coordinates.length;r++){var a=new U({type:"Polygon",coordinates:this.coordinates[r]});if(!1===a.within(e))return!1}return!0}}if("MultiPolygon"===e.type){if("Point"===this.type){if(e.coordinates.length)for(r=0;r<e.coordinates.length;r++)if(t=e.coordinates[r],R(t,this.coordinates)&&!1===G([this.coordinates],e.coordinates))return!0;return!1}if("Polygon"===this.type){for(r=0;r<this.coordinates.length;r++)if(e.coordinates[r].length===this.coordinates.length)for(i=0;i<this.coordinates.length;i++)if(D(this.coordinates[i],e.coordinates[r][i]))return!0;if(!1===G(this.coordinates,e.coordinates)&&e.coordinates.length){for(r=0;r<e.coordinates.length;r++)t=e.coordinates[r],n=!1!==R(t,this.coordinates[0][0]);return n}}else if("LineString"===this.type||"MultiPoint"===this.type)for(r=0;r<e.coordinates.length;r++){var l={type:"Polygon",coordinates:e.coordinates[r]};return!!this.within(l)}else{if("MultiLineString"===this.type){for(r=0;r<this.coordinates.length;r++){var c=new V(this.coordinates[r]);if(!1===c.within(e))return!1}return!0}if("MultiPolygon"===this.type){for(r=0;r<e.coordinates.length;r++){var h={type:"Polygon",coordinates:e.coordinates[r]};if(!1===this.within(h))return!1}return!0}}}return!1},U.prototype.intersects=function(e){"Feature"===e.type&&(e=e.geometry);var t=new U(e);if(this.within(e)||t.within(this))return!0;if("Point"!==this.type&&"MultiPoint"!==this.type&&"Point"!==e.type&&"MultiPoint"!==e.type)return G(this.coordinates,e.coordinates);if("Feature"===this.type){var r=new U(this.geometry);return r.intersects(e)}return a("Type "+this.type+" to "+e.type+" intersection is not supported by intersects"),!1},W.prototype=new U,W.prototype.constructor=W,F.prototype=new U,F.prototype.constructor=F,F.prototype.forEach=function(e){for(var t=0;t<this.coordinates.length;t++)e.apply(this,[this.coordinates[t],t,this.coordinates]);return this},F.prototype.addPoint=function(e){return this.coordinates.push(e),this},F.prototype.insertPoint=function(e,t){return this.coordinates.splice(t,0,e),this},F.prototype.removePoint=function(e){return"number"===typeof e?this.coordinates.splice(e,1):this.coordinates.splice(this.coordinates.indexOf(e),1),this},F.prototype.get=function(e){return new W(this.coordinates[e])},V.prototype=new U,V.prototype.constructor=V,V.prototype.addVertex=function(e){return this.coordinates.push(e),this},V.prototype.insertVertex=function(e,t){return this.coordinates.splice(t,0,e),this},V.prototype.removeVertex=function(e){return this.coordinates.splice(e,1),this},J.prototype=new U,J.prototype.constructor=J,J.prototype.forEach=function(e){for(var t=0;t<this.coordinates.length;t++)e.apply(this,[this.coordinates[t],t,this.coordinates])},J.prototype.get=function(e){return new V(this.coordinates[e])},B.prototype=new U,B.prototype.constructor=B,B.prototype.addVertex=function(e){return this.insertVertex(e,this.coordinates[0].length-1),this},B.prototype.insertVertex=function(e,t){return this.coordinates[0].splice(t,0,e),this},B.prototype.removeVertex=function(e){return this.coordinates[0].splice(e,1),this},B.prototype.close=function(){this.coordinates=j(this.coordinates)},B.prototype.hasHoles=function(){return this.coordinates.length>1},B.prototype.holes=function(){var e=[];if(this.hasHoles())for(var t=1;t<this.coordinates.length;t++)e.push(new B([this.coordinates[t]]));return e},Y.prototype=new U,Y.prototype.constructor=Y,Y.prototype.forEach=function(e){for(var t=0;t<this.coordinates.length;t++)e.apply(this,[this.coordinates[t],t,this.coordinates])},Y.prototype.get=function(e){return new B(this.coordinates[e])},Y.prototype.close=function(){var e=[];return this.forEach(function(t){e.push(j(t))}),this.coordinates=e,this},Q.prototype=new U,Q.prototype.constructor=Q,H.prototype=new U,H.prototype.constructor=H,H.prototype.forEach=function(e){for(var t=0;t<this.features.length;t++)e.apply(this,[this.features[t],t,this.features])},H.prototype.get=function(e){var t;return this.forEach(function(r){r.id===e&&(t=r)}),new Q(t)},X.prototype=new U,X.prototype.constructor=X,X.prototype.forEach=function(e){for(var t=0;t<this.geometries.length;t++)e.apply(this,[this.geometries[t],t,this.geometries])},X.prototype.get=function(e){return new U(this.geometries[e])},q.prototype=new U,q.prototype.constructor=q,q.prototype.recalculate=function(){return this.geometry=K(this.properties.center,this.properties.radius,this.properties.steps),this},q.prototype.center=function(e){return e&&(this.properties.center=e,this.recalculate()),this.properties.center},q.prototype.radius=function(e){return e&&(this.properties.radius=e,this.recalculate()),this.properties.radius},q.prototype.steps=function(e){return e&&(this.properties.steps=e,this.recalculate()),this.properties.steps},q.prototype.toJSON=function(){var e=U.prototype.toJSON.call(this);return e},e.Primitive=U,e.Point=W,e.MultiPoint=F,e.LineString=V,e.MultiLineString=J,e.Polygon=B,e.MultiPolygon=Y,e.Feature=Q,e.FeatureCollection=H,e.GeometryCollection=X,e.Circle=q,e.toMercator=M,e.toGeographic=E,e.Tools={},e.Tools.positionToMercator=v,e.Tools.positionToGeographic=b,e.Tools.applyConverter=A,e.Tools.toMercator=M,e.Tools.toGeographic=E,e.Tools.createCircle=K,e.Tools.calculateBounds=c,e.Tools.calculateEnvelope=m,e.Tools.coordinatesContainPoint=L,e.Tools.polygonContainsPoint=R,e.Tools.arraysIntersectArrays=G,e.Tools.coordinatesContainPoint=L,e.Tools.coordinatesEqual=D,e.Tools.convexHull=P,e.Tools.isConvex=N,e.MercatorCRS=n,e.GeographicCRS=o,e})},979(e,t,r){(function(t,i){if("object"===typeof e.exports&&(e.exports=i(r(375))),"object"===typeof t.navigator){if(!t.Terraformer)throw new Error("Terraformer.ArcGIS requires the core Terraformer library. https://github.com/esri/Terraformer");t.Terraformer.ArcGIS=i(t.Terraformer)}})(this,function(e){var t={};function r(e){var t,r,i,n,o=0,s=0,a=[];i=e.match(/((\+|\-)[^\+\-]+)/g),n=parseInt(i[0],32);for(var l=1;l<i.length;l+=2)t=parseInt(i[l],32)+o,o=t,r=parseInt(i[l+1],32)+s,s=r,a.push([t/n,r/n]);return a}function i(e){return n(e[0],e[e.length-1])||e.push(e[0]),e}function n(e,t){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function o(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function s(e){var t,r=0,i=0,n=e.length,o=e[i];for(i;i<n-1;i++)t=e[i+1],r+=(t[0]-o[0])*(t[1]+o[1]),o=t;return r>=0}function a(e){var t=[],r=e.slice(0),n=i(r.shift().slice(0));if(n.length>=4){s(n)||n.reverse(),t.push(n);for(var o=0;o<r.length;o++){var a=i(r[o].slice(0));a.length>=4&&(s(a)&&a.reverse(),t.push(a))}}return t}function l(e){for(var t=[],r=0;r<e.length;r++)for(var i=a(e[r]),n=i.length-1;n>=0;n--){var o=i[n].slice(0);t.push(o)}return t}function c(t,r){var i=e.Tools.arraysIntersectArrays(t,r),n=e.Tools.coordinatesContainPoint(t,r[0]);return!(i||!n)}function h(t){for(var r,n,o,a=[],l=[],h=0;h<t.length;h++){var u=i(t[h].slice(0));if(!(u.length<4))if(s(u)){var d=[u.slice().reverse()];a.push(d)}else l.push(u.slice().reverse())}var p=[];while(l.length){o=l.pop();var f=!1;for(r=a.length-1;r>=0;r--)if(n=a[r][0],c(n,o)){a[r].push(o),f=!0;break}f||p.push(o)}while(p.length){o=p.pop();var m=!1;for(r=a.length-1;r>=0;r--)if(n=a[r][0],e.Tools.arraysIntersectArrays(n,o)){a[r].push(o),m=!0;break}m||a.push([o.reverse()])}return 1===a.length?{type:"Polygon",coordinates:a[0]}:{type:"MultiPolygon",coordinates:a}}function u(t,i){var n={};return i=i||{},i.idAttribute=i.idAttribute||void 0,!t.spatialReference||3857!==t.spatialReference.wkid&&102100!==t.spatialReference.wkid||(n.crs=e.MercatorCRS),"number"===typeof t.x&&"number"===typeof t.y&&(n.type="Point",n.coordinates=[t.x,t.y],(t.z||t.m)&&n.coordinates.push(t.z),t.m&&n.coordinates.push(t.m)),t.points&&(n.type="MultiPoint",n.coordinates=t.points.slice(0)),t.paths&&(1===t.paths.length?(n.type="LineString",n.coordinates=t.paths[0].slice(0)):(n.type="MultiLineString",n.coordinates=t.paths.slice(0))),t.rings&&(n=h(t.rings.slice(0))),"number"===typeof t.xmin&&"number"===typeof t.ymin&&"number"===typeof t.xmax&&"number"===typeof t.ymax&&(n.type="Polygon",n.coordinates=[[[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax]]]),(t.compressedGeometry||t.geometry||t.attributes)&&(n.type="Feature",t.compressedGeometry&&(t.geometry={paths:[r(t.compressedGeometry)]}),n.geometry=t.geometry?u(t.geometry):null,n.properties=t.attributes?o(t.attributes):null,t.attributes&&(n.id=t.attributes[i.idAttribute]||t.attributes.OBJECTID||t.attributes.FID)),new e.Primitive(n)}function d(e,t){var r;t=t||{};var i=t.idAttribute||"OBJECTID";r=t.sr?{wkid:t.sr}:e&&e.crs&&"urn:ogc:def:crs:OGC:1.3:CRS84"!=e.crs.properties.name?null:{wkid:4326};var n,s={};switch(e.type){case"Point":s.x=e.coordinates[0],s.y=e.coordinates[1],e.coordinates[2]&&(s.z=e.coordinates[2]),e.coordinates[3]&&(s.m=e.coordinates[3]),s.spatialReference=r;break;case"MultiPoint":s.points=e.coordinates.slice(0),s.spatialReference=r;break;case"LineString":s.paths=[e.coordinates.slice(0)],s.spatialReference=r;break;case"MultiLineString":s.paths=e.coordinates.slice(0),s.spatialReference=r;break;case"Polygon":s.rings=a(e.coordinates.slice(0)),s.spatialReference=r;break;case"MultiPolygon":s.rings=l(e.coordinates.slice(0)),s.spatialReference=r;break;case"Feature":e.geometry&&(s.geometry=d(e.geometry,t)),s.attributes=e.properties?o(e.properties):{},e.id&&(s.attributes[i]=e.id);break;case"FeatureCollection":for(s=[],n=0;n<e.features.length;n++)s.push(d(e.features[n],t));break;case"GeometryCollection":for(s=[],n=0;n<e.geometries.length;n++)s.push(d(e.geometries[n],t));break}return s}function p(t){return new e.LineString(r(t))}return t.parse=u,t.convert=d,t.toGeoJSON=u,t.fromGeoJSON=d,t.parseCompressedGeometry=p,t})}},t={};function r(i){var n=t[i];if(void 0!==n)return n.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,r),o.exports}(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}})(),(()=>{r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{r.p=""})();var n={};return(()=>{"use strict";r.d(n,{default:()=>To});var e={};if(r.r(e),r.d(e,{hasBrowserEnv:()=>Zr,hasStandardBrowserEnv:()=>zr,hasStandardBrowserWebWorkerEnv:()=>Ur,navigator:()=>Dr,origin:()=>Wr}),"undefined"!==typeof window){var t=window.document.currentScript,i=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var o=function(){var e=this,t=e._self._c;return t("loading-box",{attrs:{loading:e.isLoading}},[t("div",{staticClass:"arcgisMap-box"},[t("div",{staticClass:"arcgisMapBox",attrs:{id:e.mapId}}),e.pathCoordinates.length>0&&e.noAbleMoving?t("div",{staticClass:"controls",class:"controls_"+e.postion},[t("div",{staticClass:"controls-item",class:{"controls-active":e.currentPathIndex>0},on:{click:e.changeMove}},[e._v(" "+e._s(0==e.currentPathIndex?"开始":e.isPaused?"继续":"暂停")+" ")]),t("div",{staticClass:"controls-item",on:{click:e.changeSpeed}},[t("p",[e._v(e._s(e.speedNum)+" "),t("svgIcon",{attrs:{name:"close",width:"14",color:"#000"}})],1),t("p",[e._v("加速")])]),t("div",{staticClass:"controls-item",on:{click:e.stopAnimation}},[e._v("重置")]),"top"==e.postion||"bottom"==e.postion?t("div",{staticClass:"controls-item",on:{click:function(t){return e.drawMeasurement("distance")}}},[e._v(" 测距 ")]):e._e(),"top"==e.postion||"bottom"==e.postion?t("div",{staticClass:"controls-item",on:{click:function(t){return e.drawMeasurement("area")}}},[e._v("测面积")]):e._e(),"top"==e.postion||"bottom"==e.postion?t("div",{staticClass:"controls-item",on:{click:e.clearMeasurement}},[e._v("清除")]):e._e()]):e._e(),t("CustomTooltip",{ref:"tooltip",scopedSlots:e._u([{key:"default",fn:function({data:r}){return[t("div",[e._v(" 经纬度: "),t("b",[e._v(e._s(r.longitude)+"-"+e._s(r.latitude))])]),t("div",[e._v(" 时间: "),t("b",[e._v(e._s(r.time))])])]}}])})],1)])},s=[],a=r(3);const l={initJs:"https://web.joinken.cn:82/arcgis/4.30/init.js",initCss:"https://web.joinken.cn:82/arcgis/4.30/esri/themes/light/main.css",config:null,layersType:"tdtYxt",baseMapUrl:"https://sp.joinken.cn/arcgis2d/rest/services/base/china_04/MapServer",center:[113.15333645218509,22.708905783449126],extent:null,zoom:1,minZoom:1,maxZoom:17,modules:["esri/config","esri/Map","esri/request","esri/views/MapView","esri/geometry/Point","esri/geometry/Polyline","esri/geometry/SpatialReference","esri/geometry/Extent","esri/layers/GraphicsLayer","esri/geometry/geometryEngine","esri/geometry/support/webMercatorUtils","esri/layers/WebTileLayer","esri/layers/TileLayer","esri/symbols/PictureMarkerSymbol","esri/symbols/SimpleLineSymbol","esri/layers/support/TileInfo","esri/Graphic","esri/widgets/ScaleBar","esri/geometry/projection","esri/widgets/Measurement"]},c=l;function h(e=18,t="2d"){const r=[],i=!1;if(i){const i=156543.03390625,n=591657527.591555;for(let o=0;o<=e;o++){const e="2d"==t?o:o+1;r.push({level:o,levelValue:e,resolution:i/Math.pow(2,o),scale:n/Math.pow(2,o)})}}else{const i=.703125,n=295497593.05875003;for(let o=1;o<=e;o++){const e="2d"==t?o-1:o;r.push({level:o-1,levelValue:e,resolution:i/Math.pow(2,o-1),scale:n/Math.pow(2,o-1)})}}return r}function u(e){if(!e)return"";let{url:t,subDomains:r,title:i,id:n,tileInfo:o,wkid:s,fullExtent:a,loadInfo:l=!1,visible:c=!0,opacity:u=1,minScale:d=1,maxScale:p=22,popupTemplate:f,copyright:m="jk"}=e;if(!t)return"";const y=c||!1;let g={visible:y,opacity:u,spatialReference:{wkid:4490}};return r&&(g.subDomains=r),i&&(g.title=i),n&&(g.id=n),o&&(g.tileInfo=o),l&&(o?g.tileInfo=o:window.jkEsri&&window.jkEsri.TileInfo&&(g.tileInfo=new window.jkEsri.TileInfo({dpi:"90.71428571427429",rows:256,cols:256,compressionQuality:0,origin:{x:-180,y:90},spatialReference:{wkid:4490},lods:h(28,"3d")}))),s&&(g.spatialReference.wkid=s),a&&(g.fullExtent=a),f&&(g.popupTemplate=f),new window.jkEsri.WebTileLayer(t,g)}function d(e,t=!1){if(null==e)return!0;if("string"===typeof e){const t=e.trim();return""===t||"null"===t||"undefined"===t||"NaN"===t}return!(!t||0!==e&&!1!==e)}function p(e){if(!e)return null;if("string"===typeof e){const t=e.split(",").map(e=>parseFloat(e.trim()));if(2===t.length&&!isNaN(t[0])&&!isNaN(t[1]))return{x:t[0],y:t[1]}}if(Array.isArray(e)&&e.length>=2){const t=parseFloat(e[0]),r=parseFloat(e[1]);if(!isNaN(t)&&!isNaN(r))return{x:t,y:r}}if("object"===typeof e){let t,r;if("x"in e&&"y"in e?(t=parseFloat(e.x),r=parseFloat(e.y)):"longitude"in e&&"latitude"in e?(t=parseFloat(e.longitude),r=parseFloat(e.latitude)):"lng"in e&&"lat"in e&&(t=parseFloat(e.lng),r=parseFloat(e.lat)),!isNaN(t)&&!isNaN(r))return{x:t,y:r,spatialReference:e.spatialReference}}return null}function f(e){if(e&&"function"===typeof e.toJSON)try{const t=e.toJSON();if("number"===typeof t.x&&"number"===typeof t.y)return e}catch(t){throw new Error(`esri.Point toJSON 失败: ${t}`)}return null}function m(e,t=!0){let r,i,n=null;try{if(!window||!window.jkEsri||!window.jkEsri.Point)throw console.warn("[createText] ArcGIS API 未加载,跳过创建"),new Error("[createText] ArcGIS API 未加载,跳过创建");if(d(e))throw new Error("转换异常,无经纬度点位数据");if(n=f(e),n)return n;{const t=p(e);if(d(t)||d(t.x)||d(t.y))throw new Error("转换异常,无经纬度点位数据");r=t.x,i=t.y}if(isNaN(r)||isNaN(i))throw new Error("转换异常,无经纬度点位数据");if(t){if(r<-180||r>180)throw new Error("转换异常,x < -180 || x > 180");if(i<-90||i>90)throw new Error("转换异常,y < -90 || y > 90")}let o=e.wkid?e.wkid:Number(r)>1e3?102100:4326;return new window.jkEsri.Point(Number(r),Number(i),new window.jkEsri.SpatialReference({wkid:o}))}catch(o){throw console.warn("error",o),new Error(`转换异常:${o}`)}}var y=r(979),g=r.n(y),w=r(337),b=r.n(w);function v(e){try{if(!e||!e.geometry)throw new Error(`${JSON.stringify(e)}-arcGISTranformGeoJson对象包含geometry:{点:{x,y},线:{paths:[]},面:{rings:[]}}`);return g().parse(e.geometry)}catch(t){throw new Error(`arcGISTranformGeoJson: ${t}`)}}function A(e){const t=`geoJsonTranformArcgis数据格式=>{geometry:{type:Point|MultiPoint|LineString|Polygon|MultiPolygon,coordinates:[]}}<=>错误对象${JSON.stringify(e)}`;try{if(!e||!e.geometry||!e.geometry.coordinates||0===e.geometry.coordinates.length)return console.error(t),null;let r=e.geometry,i=r;if(!r.type)return console.error(t),null;"Point"==r.type&&(i={type:"Feature",geometry:r,properties:{}});const n=g().convert(i);if(n&&"{}"!=JSON.stringify(n))return n.geometry?n.geometry:n;throw new Error(t)}catch(r){throw new Error(r)}}function M(e){return e&&"string"===typeof e&&""!==e.trim()&&"null"!=e&&"undefined"!=e}function E(e){if(null===e||!e||"boolean"===typeof e)return!1;if("number"===typeof e)return isFinite(e);if("string"===typeof e){const t=e.trim();return""!==t&&(isFinite(t)&&!isNaN(Number(t)))}return!1}function S(e){return"object"===typeof e&&null!==e&&(!(!E(e.x)||!E(e.y))||(!(!E(e.longitude)||!E(e.latitude))||(!!Array.isArray(e.points)||(!!Array.isArray(e.paths)||!!Array.isArray(e.rings)))))}function T(e){try{if(!e&&!e.type)throw new Error(`[geoJsonTranformWkt] 期望字符串,但收到: ${e}`);return b().convert(e)}catch(t){throw new Error(`geojson解析失败: ${t.message}`)}}function x(e){try{if(!e)throw new Error(`[wktTranformGeoJson] 期望字符串,但收到: ${e}`);return b().parse(e)}catch(t){throw new Error(`wkt解析失败: ${t.message}`)}}function k(e){try{if(!M(e))throw new Error("[wktTranformArcgis] 期望字符串,但收到: "+typeof e);const t=b().parse(e.trim()),r=g().convert(t);return r}catch(t){throw new Error(`WKT 解析失败: ${t.message}`)}}function I(e){try{if(!S(e))throw new Error(`[arcgisTranformWkt] 期望字符串,但收到: ${e}`);const t=g().parse(e),r=b().convert(t);return r}catch(t){throw new Error(`[arcgisTranformWkt] ArcGIS 解析失败:${t.message}输入:${e}`)}}var P=null,N=null;function L(e){!P&&e.view&&(P=e.view),!N&&e.map&&(N=e.map)}function R(e,t,r){return new Promise(i=>{N=new window.jkEsri.Map({layers:[t]});const{minZoom:n=6,maxZoom:o=17}=r,s={container:e,map:N,ui:{logo:!1,components:["zoom"]}};Object.assign(s,r||{}),s.constraints={minZoom:n,maxZoom:o},P=new window.jkEsri.MapView(s),P.when(function(){r.extent&&Q(r.extent),i({map:N,view:P})})})}function O(e,t){return new Promise(r=>{const i=t&&t.layersType?t.layersType:"tdtYxt";var n=u({id:i,title:"天地图-影像",url:"http://{subDomain}.tianditu.gov.cn/img_c/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=img&STYLE=default&FORMAT=tiles&TILEMATRIXSET=c&TILEMATRIX={level}&TILEROW={row}&TILECOL={col}&tk=4267820f43926eaf808d61dc07269beb",subDomains:["t0","t1","t2","t3","t4","t5","t6","t7"],loadInfo:!0}),o=u({id:"tiandituDtBz",title:"天地图-影像注记",url:"http://{subDomain}.tianditu.gov.cn/cia_c/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=cia&STYLE=default&FORMAT=tiles&TILEMATRIXSET=c&TILEMATRIX={level}&TILEROW={row}&TILECOL={col}&tk=4267820f43926eaf808d61dc07269beb",subDomains:["t0","t1","t2","t3","t4","t5","t6","t7"],loadInfo:!0});"tdtDxt"==i?n=u({id:i,title:"天地图-地形图",url:"http://{subDomain}.tianditu.gov.cn/ter_c/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=ter&STYLE=default&FORMAT=tiles&TILEMATRIXSET=c&TILEMATRIX={level}&TILEROW={row}&TILECOL={col}&tk=4267820f43926eaf808d61dc07269beb",subDomains:["t0","t1","t2","t3","t4","t5","t6","t7"],loadInfo:!0}):"tdtSlt"==i&&(n=u({id:"tdtSlt",title:"天地图-矢量图",url:"https://{subDomain}.tianditu.gov.cn/vec_c/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=vec&STYLE=default&FORMAT=tiles&TILEMATRIXSET=c&TILEMATRIX={level}&TILEROW={row}&TILECOL={col}&tk=4267820f43926eaf808d61dc07269beb",subDomains:["t0","t1","t2","t3","t4","t5","t6","t7"],loadInfo:!0})),N=new window.jkEsri.Map,N.layers.add(n,0),N.layers.add(o,1);const{minZoom:s=6,maxZoom:a=17}=t,l={map:N,container:e};if(t&&t.mapType&&"3d"==t.mapType)P=new window.jkEsri.SceneView(l);else{l.constraints={minZoom:s,maxZoom:a};const e={...l,...t};P=new window.jkEsri.MapView(e)}P.when(function(){l.extent&&Q(l.extent),r({map:N,view:P})})})}function C(e={},t){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,t)}function G(e,t="text"){let r="getSimpleText创建失败,";try{if(!e||!e[t])return console.error(`${r},参数为`,e),j(e);let i=[255,0,0,1],n=12,o="normal",s="normal",a=[255,255,255],l=1,c=e[t],h=0,u=0,d=0,p="",f="";return e.color&&(i=e.color),e.size&&(n=e.size),e.weight&&(o=e.weight),e.style&&(s=e.style),e.haloColor&&(a=e.haloColor),e.haloSize&&(l=e.haloSize),e.rotation&&(h=e.rotation),e.xoffset&&(u=e.xoffset),e.yoffset&&(d=e.yoffset),e.horizontalAlignment&&(p=e.horizontalAlignment),e.verticalAlignment&&(f=e.verticalAlignment),{type:"text",color:i,font:{size:n,weight:o,style:s},haloColor:a,haloSize:l,text:c,rotation:h,xoffset:u,yoffset:d,horizontalAlignment:p||"center",verticalAlignment:f||"middle"}}catch(i){return console.error(`${r}`,i),null}}function j(e){let t="getSimpleMarker创建失败,";try{let t=[255,0,0,1],r=14,i={color:[255,255,255],width:2},n="circle";return e&&(e.color&&(t=e.color),e.size&&(r=e.size),e.style&&(n=e.style),e.outline&&(i=e.outline)),{type:"simple-marker",color:t,size:r,outline:i,style:n}}catch(r){return console.error(`${t}`,r),null}}function Z(e){let t="getPictureMarker创建失败,";try{if(!e)throw new Error(`${t},参数为`,e);if(!e.url)return console.error(`${t},没有图片地址`,e),j();let r="",i=0,n=0,o=0,s=0,a=0;return e.url&&(r=e.url),e.width&&(i=e.width),e.height&&(n=e.height),e.xoffset&&(o=e.xoffset),e.yoffset&&(s=e.yoffset),e.angle&&(a=e.angle),{type:"picture-marker",url:r,width:i,height:n,xoffset:o,yoffset:s,angle:a}}catch(r){return console.error(`${t}`,r),null}}function D(e){let t="getSimpleLine创建失败,";try{let t=e&&e.type?e.type:"simple-line",r="#fff",i=1,n="solid";return e&&(e.color&&(r=e.color),e.width&&(i=e.width),e.style&&(n=e.style)),"picture-line"==t&&e.url?{type:"picture-line",url:e.url,width:e.width||8,pattern:e.pattern||"repeat",offset:e.offset||0,angle:e.angle||0}:{type:"simple-line",color:r,width:i,style:n}}catch(r){return console.error(`${t}`,r),null}}function z(e){let t="getSimpleFill,";try{let t=e&&e.type?e.type:"simple-fill",r=[255,255,255,1],i={color:[255,255,255],width:1,style:"solid"},n="solid";return e&&(e.color&&(r=e.color),e.outline&&(i=e.outline),e.style&&(n=e.style)),"picture-fill"==t&&e.url?{type:"picture-fill",url:e.url,outline:e.outline||{color:[255,255,255],width:1},pattern:e.pattern||"repeat",scale:e.scale||.5,rotation:e.angle||0}:{type:"simple-fill",color:r,outline:i,style:n}}catch(r){return console.error(`${t}`,r),null}}function U(e){let t="createGrahic,";try{if(!window||!window.jkEsri||!window.jkEsri.Graphic)throw new Error(`${t}ArcGIS API 未加载,跳过创建`);if(!e||!e.geometry||!e.symbol)throw new Error(`${t}数据格式不正确`,e);let r={visible:!0,elevationInfo:{mode:"on-the-ground"}};e.id&&(r.id=e.id),e.properties&&(r.attributes=e.properties);for(const t in e)C(e,t)&&(r[t]=e[t]);let i=new window.jkEsri.Graphic(r);return i}catch(r){return console.error(`${t}`,r),null}}function W(e={}){let t="createGraphicsLayer创建失败,";try{if(!window||!window.jkEsri||!window.jkEsri.GraphicsLayer)throw new Error(`${t}ArcGIS API 未加载,跳过创建`);let r={visible:!0,elevationInfo:{mode:"on-the-ground"}};e.id&&(r.id=e.id);for(const t in e)C(e,t)&&(r[t]=e[t]);const i=new window.jkEsri.GraphicsLayer(r);return i}catch(r){return console.error(`${t}`,r),null}}function F(e){let t="drawPoint创建失败,";try{if(!e||!window.jkEsri||!window.jkEsri.GraphicsLayer)throw new Error(`${t}ArcGIS API 未加载,跳过创建`);if(!e.symbol)throw new Error(`${t}无样式${e}`);let r="",i="",n=!C(e,"visible")||e.visible,o=e;if(C(e,"attributes")&&(o=e.attributes),C(e,"properties")&&(o=e.properties),e.geometry){const t=e.geometry;t.x&&t.y||t.longitude&&t.latitude?(r=t.x||t.longitude,i=t.y||t.latitude):t.type&&t.coordinates&&"Point"==t.type&&2==t.coordinates.length&&(r=t.coordinates[0],i=t.coordinates[1])}else r=e.longitude||e.lng||e.jd||e.x||"",i=e.latitude||e.lat||e.wd||e.y||"";if(console.log("drawPoint",r,i,e),!r&&!i)throw new Error(`${t}无经纬度${e}`);return U({geometry:{type:"point",longitude:r,latitude:i},symbol:e.symbol,attributes:o,visible:n})}catch(r){return console.error(`${t}`,r),null}}function V(e){let t="drawPolyline创建失败,";try{if(!e||!window.jkEsri||!window.jkEsri.GraphicsLayer)throw new Error(`${t}ArcGIS API 未加载,跳过创建`);if(!e.symbol)throw new Error(`${t}无样式${e}`);let r=[],i=!C(e,"visible")||e.visible,n=e;if(C(e,"attributes")&&(n=e.attributes),C(e,"properties")&&(n=e.properties),e.geometry){const t=e.geometry;t.paths?r=t.paths:t.type&&t.coordinates&&("LineString"!=t.type&&"MultiLineString"!=t.type||(r=t.coordinates))}else r=e.paths||e.rings||[];if(0==r.length)throw new Error(`${t}无范围${e}`);return U({geometry:{type:"polyline",paths:r},symbol:e.symbol,attributes:n,visible:i})}catch(r){return console.error(`${t}`,r),null}}function J(e){let t="drawPolygon创建失败,";try{if(!e||!window.jkEsri||!window.jkEsri.GraphicsLayer)throw new Error(`${t}ArcGIS API 未加载,跳过创建`);if(!e.symbol)throw new Error(`${t}无样式${e}`);let r=[],i=!C(e,"visible")||e.visible,n=e;if(C(e,"attributes")&&(n=e.attributes),C(e,"properties")&&(n=e.properties),e.geometry){const t=e.geometry;t.rings?r=t.rings:t.type&&t.coordinates&&("Polygon"!=t.type&&"MultiPolygon"!=t.type||(r=t.coordinates))}else r=e.rings||e.ring||e.paths||[];if(0==r.length)throw new Error(`${t}无范围${e}`);return U({geometry:{type:"polygon",rings:r},symbol:e.symbol,attributes:n,visible:i})}catch(r){return console.error(`${t}`,r),null}}function B(e,t){let r=`drawPolygonArr创建失败,${e}`;try{if(!window||!window.jkEsri||!window.jkEsri.GraphicsLayer)throw new Error(`${r}ArcGIS API 未加载,跳过创建`);if(!e||!e.features||0==e.features.length||!t)throw new Error(`${r}`);let i=[];e.features.map(e=>{const t=U(e);t&&i.push(t)}),t.addMany(i),H(t)}catch(i){return console.error(`${r}`,i),null}}function Y(e,t=17){P.goTo({target:m(e),tilt:60,heading:30,zoom:t},{duration:1e3})}function Q(e){if(e.xmin&&e.ymin&&e.xmax&&e.ymax){let t=e.xmin>1e3?102100:4326;P.goTo(new window.jkEsri.Extent(e.xmin,e.ymin,e.xmax,e.ymax,new window.jkEsri.SpatialReference({wkid:t})),{duration:1e3})}}function H(e,t={zoom:16}){if(e&&P){if(e.x&&e.y||e.longitude&&e.latitude||e.jd&&e.wd||2==e.length&&e[0]&&e[1]||e.lng&&e.lat||e.geometry&&e.geometry.type&&e.geometry.type.indexOf("oint")>-1)return void Y(e.geometry||e,t.zoom);if(e.xmin&&e.ymin&&e.xmax&&e.ymax)return void Q(e)}let r=P;if(!window.jkEsri)return Promise.reject(new Error("[mapJump] ArcGIS API 未加载 (window.jkEsri missing)"));if(!r||"function"!==typeof r.goTo)return Promise.reject(new Error("[mapJump] 无效的 view 对象(缺少 goTo 方法)"));const i="esri.views.SceneView"===r.declaredClass,n="esri.views.MapView"===r.declaredClass;if(!i&&!n)return Promise.reject(new Error(`[mapJump] 不支持的 view 类型: ${r.declaredClass}`));const o=Object.assign({padding:20,animate:!1,zoom:Math.max(1,Math.min(20,t.zoom||18)),scale:Math.max(100,Math.min(1e5,t.scale||5e3)),fallbackExtent:null,retryTimes:1},t);let s=!1;function a(){return new Promise(e=>{r.ready?e():r.when(()=>e())})}function l(e){if(!e||!e.spatialReference)return e;if(e.spatialReference.wkid===r.spatialReference.wkid)return e;try{return window.jkEsri.geometry.project(e,r.spatialReference)}catch(t){return console.warn("[projectGeometry] 空间参考转换失败,使用原几何:",t),e}}function c(e){if(!e)return!1;const t=e.type||(e.x&&e.y?"point":"");return"point"===t||"multipoint"===t}function h(e){if(!e)return null;if(e.toJSON&&"function"===typeof e.toJSON)return e;let t=e.type;if(t||void 0===e.x||void 0===e.y||(t="point"),!t)return null;const i=e.spatialReference||r.spatialReference;try{if("point"===t){const t=Number(e.x),r=Number(e.y);return isNaN(t)||isNaN(r)?(console.error("[toEsriGeometry] 点坐标非法:",e),null):{x:t,y:r,z:e.z?Number(e.z):void 0,spatialReference:i}}return"multipoint"===t?{points:e.points.map(e=>e.map(Number))||[],spatialReference:i}:"polyline"===t||"multipolyline"===t?{paths:e.paths.map(e=>e.map(e=>e.map(Number)))||[],spatialReference:i}:"polygon"===t||"multipolygon"===t?{rings:e.rings.map(e=>e.map(e=>e.map(Number)))||[],spatialReference:i}:"extent"===t?new window.jkEsri.Extent({xmin:Number(e.xmin),ymin:Number(e.ymin),xmax:Number(e.xmax),ymax:Number(e.ymax),spatialReference:i}):null}catch(n){return console.warn(`[toEsriGeometry] 转换${t}失败:`,n),null}}function u(e){if(!e)return null;const t=h(e);return t?t.extent?t.extent:"point"===t.type?new window.jkEsri.Extent({xmin:t.x,ymin:t.y,xmax:t.x,ymax:t.y,spatialReference:t.spatialReference}):(console.warn("[getGeometryExtent] 无法获取几何范围:",e),null):null}function d(e){if(!e||0===e.length)return null;const t=[];for(const i of e){if(!i||!i.geometry){console.warn("[computeExtentFromGraphics] 跳过无几何的图形:",i);continue}const e=u(i.geometry);e?t.push(e):console.warn("[computeExtentFromGraphics] 图形几何无有效范围:",i.geometry)}if(0===t.length)return console.error("[computeExtentFromGraphics] 所有图形均无有效范围!"),null;if(1===t.length)return t[0];let r=t[0];for(let i=1;i<t.length;i++)r=r.union(t[i]);return r}function p(e){if(!e)return null;if(void 0!==e.x&&void 0!==e.y){const t=Number(e.x),r=Number(e.y);return isNaN(t)||isNaN(r)?null:{x:t,y:r}}if(Array.isArray(e)&&e.length>=2){const t=Number(e[0]),r=Number(e[1]);return isNaN(t)||isNaN(r)?null:{x:t,y:r}}if("string"===typeof e&&e.includes(",")){const[t,r]=e.split(",").map(Number);return isNaN(t)||isNaN(r)?null:{x:t,y:r}}return null}async function f(e,t,c){if(s)throw new Error("[mapJump] 前一次跳转未完成,中断本次操作");try{s=!0,await a();const u=l(e);if(!u)throw new Error("[mapJump] 空间参考转换后几何无效");const d={animate:o.animate,duration:o.animate?500:0};n?t?d.zoom=Math.max(1,Math.min(20,o.zoom)):d.padding=o.padding:i&&t&&(d.scale=Math.max(100,o.scale),d.target={position:u,scale:d.scale});try{await r.goTo(u,d)}catch(h){if(h.message.includes("interrupted")&&c>0)return console.warn(`[mapJump] 跳转中断,剩余重试次数: ${c}`,h),await new Promise(e=>setTimeout(e,50)),f(e,t,c-1);throw h}}finally{s=!1}}function m(e){if(e.fullExtent)return e.fullExtent;if(e.extent)return e.extent;if(e.tileInfo.fullExtent)return e.tileInfo.fullExtent;if(e.initialExtent)return e.initialExtent;if(e.url)try{const t=new URL(e.url),i=t.searchParams.get("BBOX")||t.searchParams.get("bbox");if(i){const[t,n,o,s]=i.split(",").map(Number);if(!isNaN(t)&&!isNaN(n)&&!isNaN(o)&&!isNaN(s))return new window.jkEsri.Extent({xmin:t,ymin:n,xmax:o,ymax:s,spatialReference:e.spatialReference||r.spatialReference})}}catch(t){console.warn("[getWMXLayerExtent] 解析URL BBOX失败:",t)}return o.fallbackExtent}return new Promise(async(t,i)=>{let n=null,s=!1;try{if(await a(),e&&"object"===typeof e&&e.declaredClass&&e.declaredClass.endsWith("Layer")){const r=e;if("esri.layers.GraphicsLayer"===r.declaredClass){const e=r.graphics.toArray();if(0===e.length)return void i(new Error("[mapJump] GraphicsLayer 无有效图形"));if(1===e.length&&c(e[0].geometry))return await f(e[0].geometry,!0,o.retryTimes),void t();const n=d(e);if(n)await f(n,!1,o.retryTimes),t();else{const r=e.find(e=>e.geometry&&u(e.geometry));r?(await f(r.geometry,c(r.geometry),o.retryTimes),t()):o.fallbackExtent?(await f(o.fallbackExtent,!1,o.retryTimes),t()):i(new Error("[mapJump] 无法从GraphicsLayer计算有效范围,且无兜底范围"))}return}if("esri.layers.WMSLayer"===r.declaredClass||"esri.layers.WMTSLayer"===r.declaredClass){r.loaded||await r.load();const e=m(r);return void(e?(await f(e,!1,o.retryTimes),t()):i(new Error(`WM${r.declaredClass.includes("WMS")?"S":"TS"}图层无有效范围`)))}if("function"===typeof r.queryExtent){r.loaded||await r.load();const e=await r.queryExtent();return void(e.extent?(await f(e.extent,!1,o.retryTimes),t()):i(new Error("服务图层查询范围为空")))}return r.fullExtent?(await f(r.fullExtent,!1,o.retryTimes),void t()):void i(new Error(`[mapJump] 不支持的图层类型: ${r.declaredClass}`))}if(Array.isArray(e)&&e.length>0){const r=e.every(e=>e.geometry);if(r){if(1===e.length&&c(e[0].geometry))return n=h(e[0].geometry),n?(await f(n,!0,o.retryTimes),void t()):void i(new Error("单个图形几何无效"));const r=d(e);if(r)await f(r,!1,o.retryTimes),t();else{const r=e.find(e=>e.geometry&&h(e.geometry));r?(n=h(r.geometry),await f(n,c(r.geometry),o.retryTimes),t()):o.fallbackExtent?(await f(o.fallbackExtent,!1,o.retryTimes),t()):i(new Error("[mapJump] 无法从图形数组计算有效范围,且无兜底范围"))}return}}if(e&&e.geometry)n=h(e.geometry),s=c(e.geometry);else if(e&&(e.type||e.x&&e.y))n=h(e),s=c(e);else{const t=p(e);t&&(n=new window.jkEsri.Point({x:t.x,y:t.y,spatialReference:r.spatialReference}),s=!0)}if(!n)return void i(new Error('[mapJump] 无法解析跳转目标,支持类型:\n 1. 基础坐标:{x,y} / [x,y] / "lng,lat"\n 2. 几何对象:Point/MultiPoint/Polyline/MultiPolyline/Polygon/MultiPolygon/Extent(API实例/纯JSON)\n 3. 图形对象:Graphic / 纯JSON Graphic / Graphic[] / 纯JSON Graphic[]\n 4. 图层对象:Layer(FeatureLayer/WMSLayer/WMTSLayer等)'));await f(n,s,o.retryTimes),t()}catch(l){i(new Error(`[mapJump] 执行失败: ${l.message}`))}})}function X(e){const t={wkid:4326},r=window.jkEsri.projection.project(e,t);return window.jkEsri.geometryEngine.geodesicArea(r,"square-meters")}async function K(e=[],t,r=null,i){const{layerId:n="createMaskLayer",outerExtent:o=null}=t||{};if(!Array.isArray(e)||0===e.length)return console.warn("createMaskLayer: 范围是空的"),null;if("undefined"===typeof window.jkEsri)return console.error("ArcGIS API for JavaScript is not loaded"),null;const{Polygon:s,SpatialReference:a,GraphicsLayer:l,Graphic:c,geometryEngine:h}=window.jkEsri;let u=null,d=null,p=!1;if(r&&"object"===typeof r)if("2d"===r.type||"3d"===r.type){if(u=r,p="3d"===r.type,d=u.spatialReference,!d)return console.error("View spatialReference is not ready"),null}else"esri.layers.GraphicsLayer"===r.declaredClass||console.warn("Unknown context type, assuming WKID 4326"),d=new a({wkid:4326});else d=new a({wkid:4326});const f=d,m=f.wkid;function y(e,t){return e?Array.isArray(e)?e:e.rings?e.rings:e.geometry?.rings?e.geometry.rings:(console.warn(`Item ${t} has no valid rings`),null):null}function g(e){let t=0;for(let r=0;r<e.length;r++){const[i,n]=e[r],[o,s]=e[(r+1)%e.length];t+=(o-i)*(s+n)}return t>0}function w(e){if(e.length<3)return null;const t=e[0],r=e[e.length-1];return t[0]!==r[0]||t[1]!==r[1]?[...e,[t[0],t[1]]]:e}function b(e,t,r){const i=new s({rings:[e],spatialReference:r});if(0===t.length)return i;let n=null;for(const a of t){const e=new s({rings:[a],spatialReference:r});if(n)try{n=h.union(n,e)}catch(o){console.warn("Union hole failed, skipping:",o)}else n=e}if(!n)return i;try{const e=h.difference(i,n);return e||i}catch(o){return console.error("Geometry difference failed:",o),i}}try{let t;if(o&&o.spatialReference?.wkid===m)t=[[o.xmin,o.ymin],[o.xmax,o.ymin],[o.xmax,o.ymax],[o.xmin,o.ymax],[o.xmin,o.ymin]];else if(4326===m)t=[[-180,-90],[180,-90],[180,90],[-180,90],[-180,-90]];else if(3857===m){const e=20037508.342789244;t=[[-e,-e],[e,-e],[e,e],[-e,e],[-e,-e]]}else t=[[105.0019,19.9696],[121.0131,19.9696],[121.0131,26.933],[105.0019,26.933],[105.0019,19.9696]];const r=[];for(let i=0;i<e.length;i++){const t=e[i],n=y(t,i);!n||!Array.isArray(n[0])||n[0].length<3||n.forEach((e,t)=>{e=w(e),e&&(p||g(e)||(e=e.slice().reverse()),r.push(e))})}let a;a=p?await b(t,r,f):0===r.length?new s({rings:[t],spatialReference:f}):new s({rings:[t,...r],spatialReference:f});const h={type:"simple-fill",color:[0,0,0,.8],outline:null},d=new c({geometry:a,symbol:h});let v=i;return v?v.removeAll():(v=new l({id:n}),u&&u.map.add(v)),v.add(d),{layer:v,graphics:[d]}}catch(v){return console.error("createMaskLayer failed:",v),null}}function q(e,t){function r(e){if(Array.isArray(e))return e;if("Feature"===e.type)return e.geometry.coordinates;if("Point"===e.type)return e.coordinates;throw new Error("Invalid input: expected [lon, lat], Point geometry, or Feature<Point>")}const i=r(e),n=r(t),[o,s]=i,[a,l]=n,c=s*Math.PI/180,h=l*Math.PI/180,u=(a-o)*Math.PI/180,d=Math.sin(u)*Math.cos(h),p=Math.cos(c)*Math.sin(h)-Math.sin(c)*Math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AxGbzOOVJmJUqpH/XL81wnSZJQliVIi/e9tc89V6/T9Fy6L8VEp79Hf7qPWQMhDHv9iAfuu8g1UxLHdRFCAPTCMCwHzWngEVk5NT+oaWiMOQ68pSwLdGnYPlaiMJQXElyni7NtCd+2KIzBrOaYVDA07qCUwrINOi1y27bbWZZd/qO3J598cmCQe++991+klAfL0jRLrcVnHnLZ9Qc+E8MRNTWPLAx5rlA46HpOL67whf8a4exZiRKyFI7TMsZ8bnp6ujdoUDHo10F33HHHoD4BasaY306S5FeiKJpKdWztnrB4690J109phuoRhakRxwFzFwq+9k3J0RcddKET13ZmPc/7x0aj8Qgw/9RTTw0UcOARsW17MyA94O8ty/q6bdt/FHaVWtooDn72YTnh2FALhihNKaJYGp1bqRFm2bKEp5T7yWq1enZ4ePirbOKQZ1Mgr0NreZ4/rZRaGBrxTVHIW4qs2FFAnJfq/qLUX/ZcUXNcsizL/rtWq/n33nvvU0D5zDPPbDrYFf0W5fs6a1lVLIvzvawnarWaAR7q9XphtVZTKysrJQOeSv04/R8EIWGFm3s/qgAAAABJRU5ErkJggg==";var $=function(){var e=this,t=e._self._c;return"point"==e.name?t("svg",{staticClass:"icon",attrs:{t:"1742351514971",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3951",width:e.width,height:e.width}},[t("path",{attrs:{d:"M506.885115 1.022977c-193.342657 1.534466-348.835165 159.584416-347.812188 352.927073 0.511489 91.556444 37.338661 179.532468 101.786214 244.491508L506.885115 845.490509l246.025974-247.560439c136.055944-137.078921 135.544456-359.064935-1.534466-495.120879C686.417582 38.361638 598.441558 2.045954 506.885115 1.022977zM506.885115 506.373626c-85.418581 0-154.981019-69.562438-154.469531-155.492507 0-85.418581 69.050949-154.981019 154.469531-155.492508 85.418581 0 154.981019 69.562438 154.46953 155.492508 0.511489 85.418581-69.050949 154.981019-154.46953 155.492507z m-154.469531 452.667333c0 35.804196 69.050949 64.959041 154.469531 64.959041s154.46953-29.154845 154.46953-64.959041c0-35.804196-69.050949-64.959041-154.46953-64.959041s-154.46953 29.154845-154.469531 64.959041z","p-id":"3952",fill:e.color}})]):"line"==e.name?t("svg",{staticClass:"icon",attrs:{t:"1742353681074",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4947",width:e.width,height:e.width}},[t("path",{attrs:{d:"M419.2 102.4c51.2 0 92.8 41.6 92.8 96 0 25.6-9.6 51.2-28.8 70.4l166.4 416c19.2-12.8 44.8-16 67.2-9.6l172.8-272c-19.2-32-12.8-76.8 19.2-99.2 32-22.4 73.6-12.8 96 22.4 19.2 32 12.8 76.8-19.2 99.2-9.6 6.4-25.6 12.8-38.4 12.8l-176 275.2c28.8 41.6 19.2 102.4-19.2 131.2-41.6 32-99.2 22.4-128-22.4-16-22.4-19.2-48-16-73.6L422.4 291.2h-3.2c-12.8 0-22.4-3.2-32-6.4l-208 243.2c25.6 44.8 6.4 102.4-38.4 128s-99.2 6.4-124.8-38.4-6.4-102.4 38.4-128c22.4-12.8 51.2-16 76.8-6.4l208-243.2c-25.6-44.8-6.4-102.4 38.4-128 12.8-6.4 28.8-9.6 41.6-9.6z","p-id":"4948",fill:e.color}})]):"polygon"==e.name?t("svg",{staticClass:"icon",attrs:{t:"1742353743548",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5913",width:e.width,height:e.width}},[t("path",{attrs:{d:"M928.381303 0.002274a91.333624 91.333624 0 0 1 91.939988 91.939988 91.333624 91.333624 0 0 1-91.939988 91.939988 92.849535 92.849535 0 0 1-84.891003-56.581369H212.265055c-8.83018 21.222751-26.528439 40.664306-49.494487 49.532384v634.787636c21.222751 8.868078 40.664306 26.528439 49.494487 49.532384h97.245676c19.479453 0 35.396517 15.917063 35.396516 35.358619 0 19.441556-15.917063 35.358619-35.396516 35.358619H212.265055c-12.392571 33.615321-45.969994 56.58137-84.891004 56.581369a91.333624 91.333624 0 0 1-91.939988-91.939988c0-38.883111 23.003946-70.717237 56.58137-84.891003V176.833265C58.400111 164.440695 35.396165 130.863271 35.396165 91.942262A91.333624 91.333624 0 0 1 127.374051 0.002274c37.139814 0 70.755135 22.966048 84.891004 56.581369h631.263143C855.88287 22.968322 889.498192 0.002274 928.381303 0.002274zM443.858323 760.345219l127.336505 127.336505-146.778061 40.664306c-12.354673 3.524493-24.747243-8.83018-21.222751-21.22275l40.664307-146.778061z m344.831803-339.488217l123.774114 123.774114-305.910794 298.823911-120.249622-127.336505 302.386302-295.26152z m97.245676-97.283574c17.698258-15.917063 44.226697-17.66036 60.143759-1.743297l65.41155 65.411549c15.917063 15.917063 15.917063 42.445502-1.781195 60.14376l-61.887057 61.887058-123.774115-123.774115z","p-id":"5914",fill:e.color}})]):"perv"==e.name?t("svg",{staticClass:"icon",attrs:{t:"1742353858894",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7700",width:e.width,height:e.width}},[t("path",{attrs:{d:"M365.44 112.32v133.76h237.888a340.928 340.928 0 0 1 340.928 335.36v5.632a340.928 340.928 0 0 1-335.296 340.864l-5.632 0.064h-324.48a16 16 0 0 1-16-16v-64a16 16 0 0 1 16-16h324.48a244.928 244.928 0 0 0 5.12-489.856H130.432a16 16 0 0 1-11.136-27.52l218.88-213.76a16 16 0 0 1 27.2 11.456z",fill:e.color,"p-id":"7701"}})]):"next"==e.name?t("svg",{staticClass:"icon",attrs:{t:"1742353895510",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2267",width:e.width,height:e.width}},[t("path",{attrs:{d:"M670.08 112.32v133.76H432.192a340.928 340.928 0 0 0-340.928 335.36v5.632a340.928 340.928 0 0 0 335.296 340.864l5.632 0.064h324.48a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16h-324.48a244.928 244.928 0 0 1-5.12-489.856h477.952a16 16 0 0 0 11.2-27.52l-219.008-213.76a16 16 0 0 0-27.136 11.456z",fill:e.color,"p-id":"2268"}})]):"close"==e.name?t("svg",{staticClass:"icon",attrs:{t:"1763603732402",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2437",width:e.width,height:e.width}},[t("path",{attrs:{d:"M566.97558594 521.09667969L856.8828125 231.18945312c14.63378906-14.63378906 14.63378906-38.75976563 0-53.39355468l-1.58203125-1.58203125c-14.63378906-14.63378906-38.75976563-14.63378906-53.39355469 0L512 466.51660156 222.09277344 176.21386719c-14.63378906-14.63378906-38.75976563-14.63378906-53.39355469 0l-1.58203125 1.58203125c-15.02929688 14.63378906-15.02929688 38.75976563 0 53.39355469l289.90722656 289.90722656L167.1171875 811.00390625c-14.63378906 14.63378906-14.63378906 38.75976563 0 53.39355469l1.58203125 1.58203125c14.63378906 14.63378906 38.75976563 14.63378906 53.39355469 0L512 576.07226563 801.90722656 865.97949219c14.63378906 14.63378906 38.75976563 14.63378906 53.39355469 0l1.58203125-1.58203125c14.63378906-14.63378906 14.63378906-38.75976563 0-53.39355469L566.97558594 521.09667969z",fill:e.color,"p-id":"2438"}})]):"del"==e.name?t("svg",{staticClass:"icon",attrs:{t:"1763604252947",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3453",width:e.width,height:e.width}},[t("path",{attrs:{d:"M928.16 144H736V64a32 32 0 0 0-32-32H320a32 32 0 0 0-32 32v80H95.84a32 32 0 0 0 0 64H129.6l77.92 698.656A96 96 0 0 0 302.912 992h418.144a96.032 96.032 0 0 0 95.424-85.344L894.4 208h33.728a32 32 0 0 0 0.032-64zM352 96h320v48H352V96z m400.896 803.552a32 32 0 0 1-31.808 28.448H302.912a32 32 0 0 1-31.808-28.448L193.984 208h636.032l-77.12 691.552z","p-id":"3454",fill:e.color}}),t("path",{attrs:{d:"M608 820.928a32 32 0 0 0 32-32V319.104a32 32 0 0 0-64 0v469.824a32 32 0 0 0 32 32zM432 820.928a32 32 0 0 0 32-32V319.104a32 32 0 0 0-64 0v469.824a32 32 0 0 0 32 32z","p-id":"3455",fill:e.color}})]):"full"==e.name?t("svg",{staticClass:"icon",attrs:{t:"1763604352213",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4438",width:e.width,height:e.width}},[t("path",{attrs:{d:"M128 266.666667v490.666666a53.393333 53.393333 0 0 0 53.333333 53.333334h661.333334a53.393333 53.393333 0 0 0 53.333333-53.333334V266.666667a53.393333 53.393333 0 0 0-53.333333-53.333334H181.333333a53.393333 53.393333 0 0 0-53.333333 53.333334z m725.333333 0v490.666666a10.666667 10.666667 0 0 1-10.666666 10.666667H181.333333a10.666667 10.666667 0 0 1-10.666666-10.666667V266.666667a10.666667 10.666667 0 0 1 10.666666-10.666667h661.333334a10.666667 10.666667 0 0 1 10.666666 10.666667z m-597.333333 608a21.333333 21.333333 0 0 1-21.333333 21.333333H96a53.393333 53.393333 0 0 1-53.333333-53.333333v-138.666667a21.333333 21.333333 0 0 1 42.666666 0v138.666667a10.666667 10.666667 0 0 0 10.666667 10.666666h138.666667a21.333333 21.333333 0 0 1 21.333333 21.333334zM42.666667 320V181.333333a53.393333 53.393333 0 0 1 53.333333-53.333333h138.666667a21.333333 21.333333 0 0 1 0 42.666667H96a10.666667 10.666667 0 0 0-10.666667 10.666666v138.666667a21.333333 21.333333 0 0 1-42.666666 0z m938.666666-138.666667v138.666667a21.333333 21.333333 0 0 1-42.666666 0V181.333333a10.666667 10.666667 0 0 0-10.666667-10.666666h-138.666667a21.333333 21.333333 0 0 1 0-42.666667h138.666667a53.393333 53.393333 0 0 1 53.333333 53.333333z m0 522.666667v138.666667a53.393333 53.393333 0 0 1-53.333333 53.333333h-138.666667a21.333333 21.333333 0 0 1 0-42.666667h138.666667a10.666667 10.666667 0 0 0 10.666667-10.666666v-138.666667a21.333333 21.333333 0 0 1 42.666666 0z",fill:e.color,"p-id":"4439"}})]):"loading"==e.name?t("svg",{staticClass:"icon",attrs:{t:"1766044858654",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2820",width:e.width,height:e.width}},[t("path",{attrs:{d:"M512 64a31.146667 31.146667 0 0 1 23.04 8.96c5.973333 6.016 8.96 13.696 8.96 23.04v192a31.146667 31.146667 0 0 1-8.96 23.04 31.146667 31.146667 0 0 1-23.04 8.96 31.146667 31.146667 0 0 1-23.04-8.96 31.146667 31.146667 0 0 1-8.96-23.04v-192a31.146667 31.146667 0 0 1 8.96-23.04 31.146667 31.146667 0 0 1 23.04-8.96z m0 640a31.146667 31.146667 0 0 1 23.04 8.96c5.973333 6.016 8.96 13.696 8.96 23.04v192a31.146667 31.146667 0 0 1-8.96 23.04 31.146667 31.146667 0 0 1-23.04 8.96 31.146667 31.146667 0 0 1-23.04-8.96 31.146667 31.146667 0 0 1-8.96-23.04v-192a31.146667 31.146667 0 0 1 8.96-23.04 31.146667 31.146667 0 0 1 23.04-8.96zM960 512a31.146667 31.146667 0 0 1-8.96 23.04 31.146667 31.146667 0 0 1-23.04 8.96h-192a31.146667 31.146667 0 0 1-23.04-8.96 31.146667 31.146667 0 0 1-8.96-23.04 31.146667 31.146667 0 0 1 8.96-23.04 31.146667 31.146667 0 0 1 23.04-8.96h192a31.146667 31.146667 0 0 1 23.04 8.96c5.973333 6.016 8.96 13.696 8.96 23.04z m-640 0a31.146667 31.146667 0 0 1-8.96 23.04 31.146667 31.146667 0 0 1-23.04 8.96h-192a31.146667 31.146667 0 0 1-23.04-8.96 31.146667 31.146667 0 0 1-8.96-23.04 31.146667 31.146667 0 0 1 8.96-23.04 31.146667 31.146667 0 0 1 23.04-8.96h192a31.146667 31.146667 0 0 1 23.04 8.96c5.973333 6.016 8.96 13.696 8.96 23.04zM194.986667 194.986667a33.450667 33.450667 0 0 1 23.04-8.96c8.661333 0 16 2.986667 22.016 8.96l135.978666 136.021333a32.853333 32.853333 0 0 1 9.002667 22.485333 30.293333 30.293333 0 0 1-9.514667 22.016 30.037333 30.037333 0 0 1-22.016 9.514667 32.938667 32.938667 0 0 1-22.485333-8.96L194.986667 240a29.952 29.952 0 0 1-8.96-22.016c0-8.704 2.986667-16.384 8.96-23.04z m452.992 452.992a31.104 31.104 0 0 1 22.528-9.984c8.32 0 15.786667 3.328 22.485333 10.026666l136.021333 135.978667c5.973333 5.973333 8.96 13.354667 8.96 22.016a30.72 30.72 0 0 1-9.514666 22.485333 30.933333 30.933333 0 0 1-22.485334 9.514667 29.866667 29.866667 0 0 1-22.016-8.96l-135.978666-136.021333a31.146667 31.146667 0 0 1-10.026667-22.485334c0-8.32 3.328-15.829333 10.026667-22.528zM829.013333 194.986667c5.973333 6.698667 8.96 14.378667 8.96 23.04s-2.986667 16-8.96 22.016l-136.021333 135.978666a32.853333 32.853333 0 0 1-22.485333 9.002667 30.293333 30.293333 0 0 1-22.016-9.514667 30.037333 30.037333 0 0 1-9.514667-22.016c0-8.32 2.986667-15.829333 8.96-22.485333l136.021333-136.021333c5.973333-5.973333 13.354667-8.96 22.016-8.96 8.704 0 16.341333 2.986667 23.04 8.96zM376.021333 648.021333a31.104 31.104 0 0 1 9.984 22.528c0 8.32-3.328 15.786667-10.026666 22.485334L240.042667 829.013333a29.952 29.952 0 0 1-22.016 8.96 30.72 30.72 0 0 1-22.485334-9.514666 30.890667 30.890667 0 0 1-9.514666-22.485334 29.866667 29.866667 0 0 1 8.96-22.016l136.021333-135.978666a31.104 31.104 0 0 1 22.485333-10.026667c8.32 0 15.829333 3.328 22.528 10.026667z",fill:e.color,"p-id":"2821"}})]):"delAll"==e.name?t("svg",{staticClass:"icon",attrs:{t:"1766557610864",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3357",width:e.width,height:e.width}},[t("path",{attrs:{d:"M672.853333 192c69.973333 0 128 58.026667 128 128v512c0 69.973333-58.026667 128-128 128h-448.853333c-69.973333 0-128-58.026667-128-128v-512c0-69.973333 58.026667-128 128-128h448.853333z m0 64.853333h-448.853333c-17.066667 0-32.426667 6.826667-44.373333 18.773334-13.653333 11.946667-18.773333 27.306667-18.773334 44.373333v512c0 17.066667 6.826667 32.426667 18.773334 44.373333 11.946667 11.946667 29.013333 18.773333 44.373333 18.773334h448.853333c17.066667 0 32.426667-6.826667 44.373334-18.773334 11.946667-11.946667 18.773333-29.013333 18.773333-44.373333v-512c0-17.066667-6.826667-32.426667-18.773333-44.373333-11.946667-11.946667-27.306667-18.773333-44.373334-18.773334z m128-192.853333c69.973333 0 128 58.026667 128 128v576.853333h-64.853333v-576.853333c0-35.84-29.013333-64.853333-64.853333-64.853333h-447.146667v-63.146667h448.853333z m-247.466666 361.813333c11.946667-11.946667 32.426667-11.946667 46.08 0 11.946667 11.946667 11.946667 32.426667 0 46.08l-105.813334 104.106667 105.813334 105.813333c11.946667 11.946667 11.946667 32.426667 0 46.08-11.946667 11.946667-32.426667 11.946667-46.08 0l-105.813334-105.813333-105.813333 105.813333c-11.946667 11.946667-32.426667 11.946667-46.08 0-11.946667-11.946667-11.946667-32.426667 0-46.08l107.52-105.813333-105.813333-105.813333c-11.946667-11.946667-11.946667-32.426667 0-46.08 11.946667-11.946667 32.426667-11.946667 46.08 0l105.813333 105.813333 104.106667-104.106667z","p-id":"3358",fill:e.color}})]):e._e()},ee=[];const te={props:{name:{type:String,default:"point"},width:{type:String,default:"20"},color:{type:String,default:"#6a6a6a"}}},re=te;function ie(e,t,r,i,n,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=r,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):n&&(l=a?function(){n.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(c.functional){c._injectStyles=l;var h=c.render;c.render=function(e,t){return l.call(t),h(e,t)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,l):[l]}return{exports:e,options:c}}var ne=ie(re,$,ee,!1,null,null,null);const oe=ne.exports,se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF7GlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDI1LTA3LTAyVDExOjEzOjE2KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAy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SRpO4Wvwk80GaXl1D4cuomWbxf3AwcL+/sw0KKQX6/1zOXExTbe6f0nEsn2Q99k3eIN3PuJ+5nnm0+DlCjURIsGTegIodEZOoOUEqUpEBwBDsKUiSaEOKWUunHcGsfQDTwOLyk7SSwVQcriFjEVClN3MKeiFhQRhVoExOH/7Tq/TKnPK1Sry3R+1NBMbJnF1EzqKoNliKfIKBUFVhbIYfpEiwjEKkMze66K8UpcJj9oOouNpWbyAPkOG/oQ5CMTMWemOkoJAPSS77JWGX8xJPA5pmQ+mwBAB7DxKgQeAE6Uc84kAPAa8MoM/qPAH2cimE0AYCuQKmHPAN+eLfhqBAaBvSXsLUD3bMFG1IqUdeZUDo/podLwvCmV3F6wTxzA3oxnYtjKRpshT/H8W/tLKwsDAbzUe4Cusc5A0N1wTkPzAtjKTsczscZP+Zf13R5YjSZ0bFVyJiMGOgbLaePQHFxK9fNC117eCb3VXuPwLQWIZaL/XVPf3Li1cQcOzTExJlXpREPpaQfiSUiVo85dv3rrku+tG0pfvu7C2DmEECz2Nn5k08Jv/SErs2+H06EXhRCj5ThmKrJHE/pLUSt8VCAemeuqq7akhZWzqHH43brQvzZuj/1GCHGW/Eb70AKrgY1KKQzNxOeYQ9QKE7ZCBN0NOHUnSkmABuCZciTTzntFOA4cU6hVyWyCtQ3rsWUWIQTN12wgYScKk8sif7YtCXHy5MkZNADYJJVc59LdN1WZVQFAH82OjqVzyU5N6MeB3wHnywX/D+/GdEtw++AIAAAAAElFTkSuQmCC";var he=function(){var e=this,t=e._self._c;return t("div",{staticClass:"loading-wrapper"},[t("div",{staticClass:"loading-main-box"},[e.loading?t("div",{staticClass:"loading-box"},[e._v("地图加载中...")]):e._e(),e._t("default")],2)])},ue=[];const de={name:"loadingIndex",props:{loading:{type:Boolean,default:!0}}},pe=de;var fe=ie(pe,he,ue,!1,null,null,null);const me=fe.exports;var ye=function(){var e=this,t=e._self._c;return t("Teleport",{attrs:{to:"body"}},[e.visible?t("div",{ref:"tooltipRef",staticClass:"arcgis-custom-tooltip",style:e.tooltipStyle},[e._t("default",null,{data:e.showData})],2):e._e()])},ge=[];const we={name:"CustomTooltip",computed:{tooltipStyle(){let e=this.$refs.tooltipRef;if(!e)return{left:this.x+"px",top:this.y+"px"};const t=e.getBoundingClientRect(),r=t.width,i=t.height,n=this.x-r/2+"px",o=this.y-i-10+"px";return{left:n,top:o,position:"absolute"}}},data(){return{visible:!1,x:0,y:0,showData:null}},methods:{show(e,t){this.x=e.x,this.y=e.y,this.showData=t,this.visible=!0,this.$nextTick(()=>{})},hide(){this.visible=!1}}},be=we;var ve=ie(be,ye,ge,!1,null,null,null);const Ae=ve.exports;var Me,Ee,Se,Te,xe,ke,Ie,Pe,Ne=[],Le=0,Re=null,Oe=null;function Ce(e,t){let r;return(...i)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,i),t)}}const Ge={name:"gjMap",components:{CustomTooltip:Ae,svgIcon:oe,loadingBox:me},props:{mapParams:{type:Object,default:c},load:{type:Function,default:null},center:{type:Array,default:()=>[113.33799948954312,23.14565684412003]},iconData:{type:Object,default:()=>({url:_,cardRightPng:se,width:32,height:32})},postion:{type:String,default:"bottom"},gjData:{type:Array,default:()=>[]}},computed:{},data(){return{mapId:"map"+Math.round(1e4*Math.random()),isLoading:!0,gjParams:null,apiToken:null,currentPathIndex:0,pathCoordinates:[],pointCoordinates:[],isPaused:!1,speedNum:1,speed:500,noAbleMoving:!0,imgPathData:null}},activated(){let e=this.$route;this.gjParams=e.query,this.noAbleMoving=!e.query||!e.query.cannotMove,this.isLoading=!0,e.query.token&&(this.apiToken=e.query.token)},mounted(){this.isLoading=!0,this.init(this.mapParams)},methods:{returnLineSymbol(e){return new window.jkEsri.SimpleLineSymbol({color:e.color,width:e.width})},returnMarkerSymbol(e){return new window.jkEsri.PictureMarkerSymbol({url:e.url,width:e.width,height:e.height})},returnPolyLine(e=[]){return new window.jkEsri.Polyline({paths:e})},changeSpeed(){switch(this.speedNum<3?this.speedNum++:this.speedNum=1,this.speedNum){case 1:this.speed=1e3;break;case 2:this.speed=550;break;case 3:this.speed=300;break;default:break}},pauseAnimation(){this.isPaused=!0,cancelAnimationFrame(Re),Re=null},stopAnimation(){this.currentPathIndex=0,Ie&&Ie.geometry&&(Ie.geometry=null),Pe&&Pe.geometry&&(Pe.geometry=null),this.pauseAnimation()},resumeAnimation(){this.isPaused&&!Re&&(this.isPaused=!1,Le=performance.now(),this.animate())},startAnimation(){null===Re&&(this.currentPathIndex=0,Le=performance.now(),this.isPaused=!1,this.animate(Le))},changeMove(){0==this.currentPathIndex?this.startAnimation():this.isPaused?this.resumeAnimation():this.pauseAnimation()},animate(e){if(this.isPaused)return;const t=e-Le;if(t>=this.speed&&this.currentPathIndex<this.pathCoordinates.length){const e=this.pathCoordinates[this.currentPathIndex];this.updatePosition(e);const t=this.pathCoordinates.slice(0,this.currentPathIndex+1);this.updateTrail(t),Le=performance.now(),this.currentPathIndex++}Re=this.currentPathIndex<this.pathCoordinates.length?requestAnimationFrame(e=>this.animate(e)):null},updatePosition(e){if(this.isPaused)return;let t=this.getBearingForPath(e);t<-90&&(t=-180+t),Ie.symbol.angle=this.getBearingForPath(e)<0&&this.getBearingForPath(e)>-90?t:Math.abs(t),Ie.symbol.url=this.getBearingForPath(e)>=0?this.imgPathData.url:this.imgPathData.cardRightPng,Ie.geometry=new window.jkEsri.Point({x:e[0],y:e[1]})},updateTrail(e,t=!1){if(Pe&&Pe.geometry){if(t)return void(Pe.geometry=this.returnPolyLine());if(e.length<2)return;Pe.geometry=this.returnPolyLine([e.map(([e,t])=>[e,t])])}},getBearingForPath(e){if(this.currentPathIndex<=1)return 0;const t=this.pathCoordinates[this.currentPathIndex-2],r=this.pathCoordinates[this.currentPathIndex-1],i={type:"Feature",geometry:{type:"Point",coordinates:t}},n={type:"Feature",geometry:{type:"Point",coordinates:r}};return q(i,n)},returnGraphic(e,t){return new window.jkEsri.Graphic({geometry:m(e),symbol:t})},initGraphics(){if(this.isLoading=!1,Me&&Ee&&(Te&&(Te.removeAll(),Me.remove(Te),Te=null),xe&&(xe.removeAll(),Me.remove(xe),xe=null),Oe&&(Oe.removeAll(),Me.remove(Oe),Oe=null),Ie&&(Ie.geometry=null,Ie=null),Pe&&(Pe.geometry=null,Pe=null),Ee&&Ee.graphics.removeAll()),this.pathCoordinates.length>0){Te=new window.jkEsri.GraphicsLayer({id:"startLayer"}),Te.add(this.returnGraphic(this.pathCoordinates[0],this.returnMarkerSymbol({url:ce,width:24,height:30}))),xe=new window.jkEsri.GraphicsLayer({id:"endLayer"}),xe.add(this.returnGraphic(this.pathCoordinates[this.pathCoordinates.length-1],this.returnMarkerSymbol({url:ae,width:24,height:30}))),Ie=new window.jkEsri.Graphic({geometry:null,symbol:this.returnMarkerSymbol(this.imgPathData)}),Pe=new window.jkEsri.Graphic({geometry:this.returnPolyLine(),symbol:this.returnLineSymbol({color:"#a3d1be",width:2})}),Oe=new window.jkEsri.GraphicsLayer({id:"polylineInit"});let e=new window.jkEsri.Graphic({geometry:this.returnPolyLine(this.pathCoordinates),symbol:this.returnLineSymbol({color:"#176415",width:2})});Oe.add(e),Me.add(Oe),Me.add(ke,18),Ee.graphics.add(Pe,11),Ee.graphics.add(Ie,10),Me.add(Te,19),Me.add(xe,19),H(e.geometry.extent)}else Te=new window.jkEsri.Graphic({geometry:m(this.center),symbol:this.returnMarkerSymbol({url:le,width:32,height:32})}),Ee.graphics.add(Te,8),H(this.center)},loadMapData(){if(this.imgPathData=this.iconData,this.iconData.cardRightPng||(this.imgPathData.cardRightPng=this.iconData.url),this.pathCoordinates=[],this.pointCoordinates=[],Me&&Ee)if(this.stopAnimation(),ke&&Me&&(ke.removeAll(),ke=null,Me.remove(ke)),this.gjData&&this.gjData.length>1){let e=JSON.parse(JSON.stringify(this.gjData)),t=[];ke=new window.jkEsri.GraphicsLayer({id:"pointLayer"}),e.map(e=>{if(e.longitude=e[window._$config.jd||"jd"]||e.longitude||"",e.latitude=e[window._$config.wd||"wd"]||e.latitude||"",e.longitude&&e.latitude){e.point=m([e.longitude,e.latitude]),t.push([e.longitude,e.latitude]),e.longitude=Number(e.longitude)?Number(e.longitude).toFixed(2):e.longitude,e.latitude=Number(e.latitude)?Number(e.latitude).toFixed(2):e.latitude;const r=new window.jkEsri.Graphic({geometry:e.point,attributes:e,symbol:{type:"simple-marker",size:"8px",color:"#98fe33"}});ke.add(r),this.pointCoordinates.push(e)}}),this.pathCoordinates=t,this.initGraphics()}else this.initGraphics()},TDTinstance(e,t){for(const r in t){const i=e.modules[r].split("/").pop();"geometryEngine"===i&&(Ne.geometryEngine=t[r]),"webMercatorUtils"===i&&(Ne.webMercatorToGeographic=t[r].webMercatorToGeographic,Ne.geographicToWebMercator=t[r].geographicToWebMercator),Ne[i]=t[r]}window.jkEsri=Ne},init(e){(0,a.loadCss)(e.initCss),(0,a.loadModules)(e.modules||[],{url:e.initJs}).then(this.TDTinstance.bind(this,this.mapParams)).then(this.initMap.bind(this))},hideDefaulte(){Ee.container.style.cursor="default",this.$refs.tooltip.hide()},async debouncedHover(e){const t=await Ee.hitTest(e);if(t&&t.results&&t.screenPoint)if(t.results.length>0){let e=null;t.results.some(t=>{t.graphic&&t.graphic.layer&&t.graphic.layer.id&&"pointLayer"==t.graphic.layer.id&&(e=t.graphic)}),e?(Ee.container.style.cursor="pointer",this.$refs.tooltip.show({x:t.screenPoint.x,y:t.screenPoint.y},e.attributes)):this.hideDefaulte()}else this.hideDefaulte();else this.hideDefaulte()},initMap(){O(this.mapId,{mapType:this.mapParams.mapType,layersType:this.mapParams.layersType,center:this.center,zoom:7}).then(e=>{Me=e.map,Ee=e.view,this.isLoading=!1,Se=new window.jkEsri.Measurement({view:Ee}),Ee.on("pointer-move",Ce(this.debouncedHover,300)),this.loadMapData()})},drawMeasurement(e){Se&&(Se.clear(),Se.activeTool=null,setTimeout(()=>{Se.activeTool=e},500))},clearMeasurement(){Se&&Se.clear()},onRefreshMapGj(){this.destroy(),setTimeout(()=>{this.loadMapData()},500)},destroy(){this.clearMeasurement(),this.stopAnimation()}}},je=Ge;var Ze=ie(je,o,s,!1,null,null,null);const De=Ze.exports;var ze=function(){var e=this,t=e._self._c;return t("loading-box",{attrs:{loading:e.isLoading}},[t("div",{staticClass:"arcgisMap-box"},[t("div",{staticClass:"map-canvans",attrs:{id:e.mapId}}),!e.isLoading&&e.isSearch?t("searchMap",{ref:"searchRef",on:{selectPoint:e.refreshPoint,clearSearchMap:e.clearSearchMap}}):e._e()],1)])},Ue=[];const We={initJs:"https://web.joinken.cn:82/arcgis/4.30/init.js",initCss:"https://web.joinken.cn:82/arcgis/4.30/esri/themes/light/main.css",config:null,layersType:"tdtYxt",baseMapUrl:"https://sp.joinken.cn/arcgis2d/rest/services/base/china_04/MapServer",center:[113.33799948954312,23.14565684412003],extent:null,zoom:7,minZoom:1,maxZoom:17,modules:["esri/config","esri/Map","esri/request","esri/views/MapView","esri/layers/BaseTileLayer","esri/views/SceneView","esri/Color","esri/geometry/Point","esri/geometry/Circle","esri/geometry/Polygon","esri/geometry/Polyline","esri/geometry/SpatialReference","esri/geometry/Extent","esri/layers/GraphicsLayer","esri/geometry/geometryEngine","esri/geometry/support/webMercatorUtils","esri/layers/BaseDynamicLayer","esri/layers/MapImageLayer","esri/layers/WebTileLayer","esri/layers/TileLayer","esri/layers/WMSLayer","esri/layers/WMTSLayer","esri/symbols/PictureMarkerSymbol","esri/symbols/TextSymbol","esri/symbols/SimpleLineSymbol","esri/layers/support/TileInfo","esri/widgets/Sketch/SketchViewModel","esri/Graphic","esri/Camera","esri/widgets/ScaleBar","esri/widgets/Swipe","esri/geometry/projection","esri/widgets/Measurement"]},Fe=We;var Ve=function(){var e=this,t=e._self._c;return t("div",{staticClass:"arcgis-search-wrapper"},[t("div",{staticClass:"arcigs-search-box"},[t("CustomSearchInput",{on:{"checked-point":e.changeCheckedPoint,search:e.searchMap,clear:e.clearSearch},model:{value:e.keyWord,callback:function(t){e.keyWord=t},expression:"keyWord"}}),e.keyWord&&e.isSearch&&!e.checkedPoint?t("div",{staticClass:"search-item-box"},[t("div",{staticClass:"arcgis-line"}),t("div",{staticClass:"search-item-wrapper"},[e.mapNameList.length>0?[e._l(e.mapNameList,function(r,i){return t("div",{key:i,staticClass:"search-item",on:{click:function(t){return t.stopPropagation(),e.goDetail(r)}}},[t("div",{staticClass:"search-name"},[e._v(e._s(r.name))]),t("div",{staticClass:"search-address"},[e._v(e._s(r.address))])])}),e.loadPage?t("div",{staticClass:"loaded-box"},[e._v(" "+e._s(e.finished?"数据加载中...":"数据已到底!!!")+" ")]):e._e()]:t("div",{staticClass:"search-no-data"},[e._v(" "+e._s(e.loadSearch?"数据加载中...":"暂无数据")+" ")])],2)]):e._e()],1),t("CustomModal",{ref:"message",attrs:{"z-index":2e3,animation:"fade",width:"400px"}},[t("p",[e._v("这是淡入弹框")])])],1)},Je=[],Be=function(){var e=this,t=e._self._c;return t("transition",{attrs:{name:"message-fade"}},[e.localVisible?t("div",{staticClass:"custom-message",class:`custom-message--${e.type}`,on:{click:e.handleClick}},[(e.showIcon,e._e()),t("span",{staticClass:"custom-message__content"},[e._v(e._s(e.message))]),e.closable?t("button",{staticClass:"custom-message__close",attrs:{type:"button","aria-label":"关闭提示"},on:{click:function(t){return t.stopPropagation(),e.close.apply(null,arguments)}}},[e._v(" × ")]):e._e()]):e._e()])},Ye=[];const Qe={name:"CustomMessage",props:{closable:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1}},data(){return{timer:null,message:"",showIcon:!1,localVisible:!1,duration:3e3,type:"info"}},computed:{iconMap(){return{success:"✓",error:"✗",warning:"⚠",info:"ℹ"}}},mounted(){this.localVisible&&this.startTimer()},beforeUnmount(){this.clearTimer()},methods:{startTimer(){this.clearTimer(),this.duration>0&&!this.closable&&(this.timer=setTimeout(()=>{this.close()},this.duration))},clearTimer(){this.timer&&(clearTimeout(this.timer),this.timer=null)},close(){this.localVisible=!1},handleClick(){this.closeOnClick&&!this.closable&&this.close()},show(e={}){const{message:t,type:r="info",duration:i=3e3,closable:n,closeOnClick:o}=e;void 0!==t&&(this.message=t),this.type=r,void 0!==i&&(this.duration=i),void 0!==n&&(this.$props.closable=n),void 0!==o&&(this.$props.closeOnClick=o),this.localVisible=!0,this.startTimer()}}},He=Qe;var Xe=ie(He,Be,Ye,!1,null,null,null);const Ke=Xe.exports;var qe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"search-input-wrapper"},[t("div",{staticClass:"input-container"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"}],ref:"input",staticClass:"custom-input",attrs:{type:"text",placeholder:e.computedPlaceholder},domProps:{value:e.localValue},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch.apply(null,arguments)},input:[function(t){t.target.composing||(e.localValue=t.target.value)},e.onInput],focus:function(t){e.isFocused=!0},blur:function(t){e.isFocused=!1}}}),!e.localValue||!e.isFocused&&e.isMobile?e._e():t("button",{staticClass:"clear-btn",attrs:{type:"button","aria-label":"清除内容"},on:{click:function(t){return t.stopPropagation(),e.handleClear.apply(null,arguments)}}},[e._v(" × ")]),t("button",{staticClass:"search-btn",attrs:{type:"button","aria-label":"搜索"},on:{click:function(t){return t.stopPropagation(),e.handleSearch.apply(null,arguments)}}},[t("svg",{attrs:{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"}},[t("circle",{attrs:{cx:"11",cy:"11",r:"8"}}),t("path",{attrs:{d:"m21 21-4.35-4.35"}})])])]),t("label",{staticClass:"custom-checkbox"},[t("input",{staticClass:"checkbox-input",attrs:{type:"checkbox"},domProps:{checked:e.localCheckedPoint},on:{change:e.toggleCheckedPoint}}),t("span",{staticClass:"checkbox-box"},[t("svg",{staticClass:"check-icon",attrs:{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M1 4L3.5 6.5L9 1",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}})])]),t("span",{staticClass:"checkbox-label",style:{color:e.localCheckedPoint?"#409eff":"#fff"}},[e._v("坐标反查")])])])},_e=[];const $e={name:"SearchInputWithCheckbox",props:{value:{type:String,default:""}},data(){return{localValue:this.value,localCheckedPoint:!1,isFocused:!1}},computed:{computedPlaceholder(){return this.localCheckedPoint?"输入经纬度(115.83,23.43)":"输入地址"},isMobile(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}},watch:{value(e){this.localValue=e}},methods:{handleSearch(){this.$emit("search",this.localValue)},handleClear(){this.localValue="",this.$emit("clear",this.localValue),this.$refs.input.focus()},toggleCheckedPoint(e){const t=e.target.checked;this.localCheckedPoint=t,this.$emit("checkedPoint",t)},onInput(){}}},et=$e;var tt=ie(et,qe,_e,!1,null,null,null);const rt=tt.exports;function it(e,t){return function(){return e.apply(t,arguments)}}const{toString:nt}=Object.prototype,{getPrototypeOf:ot}=Object,{iterator:st,toStringTag:at}=Symbol,lt=(e=>t=>{const r=nt.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ct=e=>(e=e.toLowerCase(),t=>lt(t)===e),ht=e=>t=>typeof t===e,{isArray:ut}=Array,dt=ht("undefined");function pt(e){return null!==e&&!dt(e)&&null!==e.constructor&&!dt(e.constructor)&&gt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ft=ct("ArrayBuffer");function mt(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ft(e.buffer),t}const yt=ht("string"),gt=ht("function"),wt=ht("number"),bt=e=>null!==e&&"object"===typeof e,vt=e=>!0===e||!1===e,At=e=>{if("object"!==lt(e))return!1;const t=ot(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(at in e)&&!(st in e)},Mt=e=>{if(!bt(e)||pt(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},Et=ct("Date"),St=ct("File"),Tt=ct("Blob"),xt=ct("FileList"),kt=e=>bt(e)&&gt(e.pipe),It=e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||gt(e.append)&&("formdata"===(t=lt(e))||"object"===t&&gt(e.toString)&&"[object FormData]"===e.toString()))},Pt=ct("URLSearchParams"),[Nt,Lt,Rt,Ot]=["ReadableStream","Request","Response","Headers"].map(ct),Ct=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gt(e,t,{allOwnKeys:r=!1}={}){if(null===e||"undefined"===typeof e)return;let i,n;if("object"!==typeof e&&(e=[e]),ut(e))for(i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else{if(pt(e))return;const n=r?Object.getOwnPropertyNames(e):Object.keys(e),o=n.length;let s;for(i=0;i<o;i++)s=n[i],t.call(null,e[s],s,e)}}function jt(e,t){if(pt(e))return null;t=t.toLowerCase();const r=Object.keys(e);let i,n=r.length;while(n-- >0)if(i=r[n],t===i.toLowerCase())return i;return null}const Zt=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:r.g)(),Dt=e=>!dt(e)&&e!==Zt;function zt(){const{caseless:e,skipUndefined:t}=Dt(this)&&this||{},r={},i=(i,n)=>{const o=e&&jt(r,n)||n;At(r[o])&&At(i)?r[o]=zt(r[o],i):At(i)?r[o]=zt({},i):ut(i)?r[o]=i.slice():t&&dt(i)||(r[o]=i)};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Gt(arguments[n],i);return r}const Ut=(e,t,r,{allOwnKeys:i}={})=>(Gt(t,(t,i)=>{r&&gt(t)?e[i]=it(t,r):e[i]=t},{allOwnKeys:i}),e),Wt=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),Ft=(e,t,r,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Vt=(e,t,r,i)=>{let n,o,s;const a={};if(t=t||{},null==e)return t;do{n=Object.getOwnPropertyNames(e),o=n.length;while(o-- >0)s=n[o],i&&!i(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==r&&ot(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Jt=(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const i=e.indexOf(t,r);return-1!==i&&i===r},Bt=e=>{if(!e)return null;if(ut(e))return e;let t=e.length;if(!wt(t))return null;const r=new Array(t);while(t-- >0)r[t]=e[t];return r},Yt=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&ot(Uint8Array)),Qt=(e,t)=>{const r=e&&e[st],i=r.call(e);let n;while((n=i.next())&&!n.done){const r=n.value;t.call(e,r[0],r[1])}},Ht=(e,t)=>{let r;const i=[];while(null!==(r=e.exec(t)))i.push(r);return i},Xt=ct("HTMLFormElement"),Kt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),qt=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),_t=ct("RegExp"),$t=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),i={};Gt(r,(r,n)=>{let o;!1!==(o=t(r,n,e))&&(i[n]=o||r)}),Object.defineProperties(e,i)},er=e=>{$t(e,(t,r)=>{if(gt(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const i=e[r];gt(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},tr=(e,t)=>{const r={},i=e=>{e.forEach(e=>{r[e]=!0})};return ut(e)?i(e):i(String(e).split(t)),r},rr=()=>{},ir=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t;function nr(e){return!!(e&&gt(e.append)&&"FormData"===e[at]&&e[st])}const or=e=>{const t=new Array(10),r=(e,i)=>{if(bt(e)){if(t.indexOf(e)>=0)return;if(pt(e))return e;if(!("toJSON"in e)){t[i]=e;const n=ut(e)?[]:{};return Gt(e,(e,t)=>{const o=r(e,i+1);!dt(o)&&(n[t]=o)}),t[i]=void 0,n}}return e};return r(e,0)},sr=ct("AsyncFunction"),ar=e=>e&&(bt(e)||gt(e))&&gt(e.then)&&gt(e.catch),lr=((e,t)=>e?setImmediate:t?((e,t)=>(Zt.addEventListener("message",({source:r,data:i})=>{r===Zt&&i===e&&t.length&&t.shift()()},!1),r=>{t.push(r),Zt.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"===typeof setImmediate,gt(Zt.postMessage)),cr="undefined"!==typeof queueMicrotask?queueMicrotask.bind(Zt):"undefined"!==typeof process&&process.nextTick||lr,hr=e=>null!=e&&gt(e[st]),ur={isArray:ut,isArrayBuffer:ft,isBuffer:pt,isFormData:It,isArrayBufferView:mt,isString:yt,isNumber:wt,isBoolean:vt,isObject:bt,isPlainObject:At,isEmptyObject:Mt,isReadableStream:Nt,isRequest:Lt,isResponse:Rt,isHeaders:Ot,isUndefined:dt,isDate:Et,isFile:St,isBlob:Tt,isRegExp:_t,isFunction:gt,isStream:kt,isURLSearchParams:Pt,isTypedArray:Yt,isFileList:xt,forEach:Gt,merge:zt,extend:Ut,trim:Ct,stripBOM:Wt,inherits:Ft,toFlatObject:Vt,kindOf:lt,kindOfTest:ct,endsWith:Jt,toArray:Bt,forEachEntry:Qt,matchAll:Ht,isHTMLForm:Xt,hasOwnProperty:qt,hasOwnProp:qt,reduceDescriptors:$t,freezeMethods:er,toObjectSet:tr,toCamelCase:Kt,noop:rr,toFiniteNumber:ir,findKey:jt,global:Zt,isContextDefined:Dt,isSpecCompliantForm:nr,toJSONObject:or,isAsyncFn:sr,isThenable:ar,setImmediate:lr,asap:cr,isIterable:hr};function dr(e,t,r,i,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),i&&(this.request=i),n&&(this.response=n,this.status=n.status?n.status:null)}ur.inherits(dr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ur.toJSONObject(this.config),code:this.code,status:this.status}}});const pr=dr.prototype,fr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{fr[e]={value:e}}),Object.defineProperties(dr,fr),Object.defineProperty(pr,"isAxiosError",{value:!0}),dr.from=(e,t,r,i,n,o)=>{const s=Object.create(pr);ur.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const a=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return dr.call(s,a,l,r,i,n),e&&null==s.cause&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",o&&Object.assign(s,o),s};const mr=dr,yr=null;function gr(e){return ur.isPlainObject(e)||ur.isArray(e)}function wr(e){return ur.endsWith(e,"[]")?e.slice(0,-2):e}function br(e,t,r){return e?e.concat(t).map(function(e,t){return e=wr(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}function vr(e){return ur.isArray(e)&&!e.some(gr)}const Ar=ur.toFlatObject(ur,{},null,function(e){return/^is[A-Z]/.test(e)});function Mr(e,t,r){if(!ur.isObject(e))throw new TypeError("target must be an object");t=t||new(yr||FormData),r=ur.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ur.isUndefined(t[e])});const i=r.metaTokens,n=r.visitor||h,o=r.dots,s=r.indexes,a=r.Blob||"undefined"!==typeof Blob&&Blob,l=a&&ur.isSpecCompliantForm(t);if(!ur.isFunction(n))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ur.isDate(e))return e.toISOString();if(ur.isBoolean(e))return e.toString();if(!l&&ur.isBlob(e))throw new mr("Blob is not supported. Use a Buffer instead.");return ur.isArrayBuffer(e)||ur.isTypedArray(e)?l&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function h(e,r,n){let a=e;if(e&&!n&&"object"===typeof e)if(ur.endsWith(r,"{}"))r=i?r:r.slice(0,-2),e=JSON.stringify(e);else if(ur.isArray(e)&&vr(e)||(ur.isFileList(e)||ur.endsWith(r,"[]"))&&(a=ur.toArray(e)))return r=wr(r),a.forEach(function(e,i){!ur.isUndefined(e)&&null!==e&&t.append(!0===s?br([r],i,o):null===s?r:r+"[]",c(e))}),!1;return!!gr(e)||(t.append(br(n,r,o),c(e)),!1)}const u=[],d=Object.assign(Ar,{defaultVisitor:h,convertValue:c,isVisitable:gr});function p(e,r){if(!ur.isUndefined(e)){if(-1!==u.indexOf(e))throw Error("Circular reference detected in "+r.join("."));u.push(e),ur.forEach(e,function(e,i){const o=!(ur.isUndefined(e)||null===e)&&n.call(t,e,ur.isString(i)?i.trim():i,r,d);!0===o&&p(e,r?r.concat(i):[i])}),u.pop()}}if(!ur.isObject(e))throw new TypeError("data must be an object");return p(e),t}const Er=Mr;function Sr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Tr(e,t){this._pairs=[],e&&Er(e,this,t)}const xr=Tr.prototype;xr.append=function(e,t){this._pairs.push([e,t])},xr.toString=function(e){const t=e?function(t){return e.call(this,t,Sr)}:Sr;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const kr=Tr;function Ir(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Pr(e,t,r){if(!t)return e;const i=r&&r.encode||Ir;ur.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let o;if(o=n?n(t,r):ur.isURLSearchParams(t)?t.toString():new kr(t,r).toString(i),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}class Nr{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ur.forEach(this.handlers,function(t){null!==t&&e(t)})}}const Lr=Nr,Rr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Or="undefined"!==typeof URLSearchParams?URLSearchParams:kr,Cr="undefined"!==typeof FormData?FormData:null,Gr="undefined"!==typeof Blob?Blob:null,jr={isBrowser:!0,classes:{URLSearchParams:Or,FormData:Cr,Blob:Gr},protocols:["http","https","file","blob","url","data"]},Zr="undefined"!==typeof window&&"undefined"!==typeof document,Dr="object"===typeof navigator&&navigator||void 0,zr=Zr&&(!Dr||["ReactNative","NativeScript","NS"].indexOf(Dr.product)<0),Ur=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),Wr=Zr&&window.location.href||"http://localhost",Fr={...e,...jr};function Vr(e,t){return Er(e,new Fr.classes.URLSearchParams,{visitor:function(e,t,r,i){return Fr.isNode&&ur.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Jr(e){return ur.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}function Br(e){const t={},r=Object.keys(e);let i;const n=r.length;let o;for(i=0;i<n;i++)o=r[i],t[o]=e[o];return t}function Yr(e){function t(e,r,i,n){let o=e[n++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=n>=e.length;if(o=!o&&ur.isArray(i)?i.length:o,a)return ur.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s;i[o]&&ur.isObject(i[o])||(i[o]=[]);const l=t(e,r,i[o],n);return l&&ur.isArray(i[o])&&(i[o]=Br(i[o])),!s}if(ur.isFormData(e)&&ur.isFunction(e.entries)){const r={};return ur.forEachEntry(e,(e,i)=>{t(Jr(e),i,r,0)}),r}return null}const Qr=Yr;function Hr(e,t,r){if(ur.isString(e))try{return(t||JSON.parse)(e),ur.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(r||JSON.stringify)(e)}const Xr={transitional:Rr,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",i=r.indexOf("application/json")>-1,n=ur.isObject(e);n&&ur.isHTMLForm(e)&&(e=new FormData(e));const o=ur.isFormData(e);if(o)return i?JSON.stringify(Qr(e)):e;if(ur.isArrayBuffer(e)||ur.isBuffer(e)||ur.isStream(e)||ur.isFile(e)||ur.isBlob(e)||ur.isReadableStream(e))return e;if(ur.isArrayBufferView(e))return e.buffer;if(ur.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Vr(e,this.formSerializer).toString();if((s=ur.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Er(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return n||i?(t.setContentType("application/json",!1),Hr(e)):e}],transformResponse:[function(e){const t=this.transitional||Xr.transitional,r=t&&t.forcedJSONParsing,i="json"===this.responseType;if(ur.isResponse(e)||ur.isReadableStream(e))return e;if(e&&ur.isString(e)&&(r&&!this.responseType||i)){const r=t&&t.silentJSONParsing,o=!r&&i;try{return JSON.parse(e,this.parseReviver)}catch(n){if(o){if("SyntaxError"===n.name)throw mr.from(n,mr.ERR_BAD_RESPONSE,this,null,this.response);throw n}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fr.classes.FormData,Blob:Fr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ur.forEach(["delete","get","head","post","put","patch"],e=>{Xr.headers[e]={}});const Kr=Xr,qr=ur.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_r=e=>{const t={};let r,i,n;return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),i=e.substring(n+1).trim(),!r||t[r]&&qr[r]||("set-cookie"===r?t[r]?t[r].push(i):t[r]=[i]:t[r]=t[r]?t[r]+", "+i:i)}),t},$r=Symbol("internals");function ei(e){return e&&String(e).trim().toLowerCase()}function ti(e){return!1===e||null==e?e:ur.isArray(e)?e.map(ti):String(e)}function ri(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;while(i=r.exec(e))t[i[1]]=i[2];return t}const ii=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ni(e,t,r,i,n){return ur.isFunction(i)?i.call(this,t,r):(n&&(t=r),ur.isString(t)?ur.isString(i)?-1!==t.indexOf(i):ur.isRegExp(i)?i.test(t):void 0:void 0)}function oi(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function si(e,t){const r=ur.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+r,{value:function(e,r,n){return this[i].call(this,t,e,r,n)},configurable:!0})})}class ai{constructor(e){e&&this.set(e)}set(e,t,r){const i=this;function n(e,t,r){const n=ei(t);if(!n)throw new Error("header name must be a non-empty string");const o=ur.findKey(i,n);(!o||void 0===i[o]||!0===r||void 0===r&&!1!==i[o])&&(i[o||t]=ti(e))}const o=(e,t)=>ur.forEach(e,(e,r)=>n(e,r,t));if(ur.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(ur.isString(e)&&(e=e.trim())&&!ii(e))o(_r(e),t);else if(ur.isObject(e)&&ur.isIterable(e)){let r,i,n={};for(const t of e){if(!ur.isArray(t))throw TypeError("Object iterator must return a key-value pair");n[i=t[0]]=(r=n[i])?ur.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}o(n,t)}else null!=e&&n(t,e,r);return this}get(e,t){if(e=ei(e),e){const r=ur.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return ri(e);if(ur.isFunction(t))return t.call(this,e,r);if(ur.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ei(e),e){const r=ur.findKey(this,e);return!(!r||void 0===this[r]||t&&!ni(this,this[r],r,t))}return!1}delete(e,t){const r=this;let i=!1;function n(e){if(e=ei(e),e){const n=ur.findKey(r,e);!n||t&&!ni(r,r[n],n,t)||(delete r[n],i=!0)}}return ur.isArray(e)?e.forEach(n):n(e),i}clear(e){const t=Object.keys(this);let r=t.length,i=!1;while(r--){const n=t[r];e&&!ni(this,this[n],n,e,!0)||(delete this[n],i=!0)}return i}normalize(e){const t=this,r={};return ur.forEach(this,(i,n)=>{const o=ur.findKey(r,n);if(o)return t[o]=ti(i),void delete t[n];const s=e?oi(n):String(n).trim();s!==n&&delete t[n],t[s]=ti(i),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ur.forEach(this,(r,i)=>{null!=r&&!1!==r&&(t[i]=e&&ur.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=this[$r]=this[$r]={accessors:{}},r=t.accessors,i=this.prototype;function n(e){const t=ei(e);r[t]||(si(i,e),r[t]=!0)}return ur.isArray(e)?e.forEach(n):n(e),this}}ai.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ur.reduceDescriptors(ai.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),ur.freezeMethods(ai);const li=ai;function ci(e,t){const r=this||Kr,i=t||r,n=li.from(i.headers);let o=i.data;return ur.forEach(e,function(e){o=e.call(r,o,n.normalize(),t?t.status:void 0)}),n.normalize(),o}function hi(e){return!(!e||!e.__CANCEL__)}function ui(e,t,r){mr.call(this,null==e?"canceled":e,mr.ERR_CANCELED,t,r),this.name="CanceledError"}ur.inherits(ui,mr,{__CANCEL__:!0});const di=ui;function pi(e,t,r){const i=r.config.validateStatus;r.status&&i&&!i(r.status)?t(new mr("Request failed with status code "+r.status,[mr.ERR_BAD_REQUEST,mr.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}function fi(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function mi(e,t){e=e||10;const r=new Array(e),i=new Array(e);let n,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=i[s];n||(n=l),r[o]=a,i[o]=l;let h=s,u=0;while(h!==o)u+=r[h++],h%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-n<t)return;const d=c&&l-c;return d?Math.round(1e3*u/d):void 0}}const yi=mi;function gi(e,t){let r,i,n=0,o=1e3/t;const s=(t,o=Date.now())=>{n=o,r=null,i&&(clearTimeout(i),i=null),e(...t)},a=(...e)=>{const t=Date.now(),a=t-n;a>=o?s(e,t):(r=e,i||(i=setTimeout(()=>{i=null,s(r)},o-a)))},l=()=>r&&s(r);return[a,l]}const wi=gi,bi=(e,t,r=3)=>{let i=0;const n=yi(50,250);return wi(r=>{const o=r.loaded,s=r.lengthComputable?r.total:void 0,a=o-i,l=n(a),c=o<=s;i=o;const h={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&c?(s-o)/l:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0};e(h)},r)},vi=(e,t)=>{const r=null!=e;return[i=>t[0]({lengthComputable:r,total:e,loaded:i}),t[1]]},Ai=e=>(...t)=>ur.asap(()=>e(...t)),Mi=Fr.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Fr.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Fr.origin),Fr.navigator&&/(msie|trident)/i.test(Fr.navigator.userAgent)):()=>!0,Ei=Fr.hasStandardBrowserEnv?{write(e,t,r,i,n,o,s){if("undefined"===typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];ur.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),ur.isString(i)&&a.push(`path=${i}`),ur.isString(n)&&a.push(`domain=${n}`),!0===o&&a.push("secure"),ur.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"===typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Si(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ti(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function xi(e,t,r){let i=!Si(t);return e&&(i||0==r)?Ti(e,t):t}const ki=e=>e instanceof li?{...e}:e;function Ii(e,t){t=t||{};const r={};function i(e,t,r,i){return ur.isPlainObject(e)&&ur.isPlainObject(t)?ur.merge.call({caseless:i},e,t):ur.isPlainObject(t)?ur.merge({},t):ur.isArray(t)?t.slice():t}function n(e,t,r,n){return ur.isUndefined(t)?ur.isUndefined(e)?void 0:i(void 0,e,r,n):i(e,t,r,n)}function o(e,t){if(!ur.isUndefined(t))return i(void 0,t)}function s(e,t){return ur.isUndefined(t)?ur.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function a(r,n,o){return o in t?i(r,n):o in e?i(void 0,r):void 0}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,r)=>n(ki(e),ki(t),r,!0)};return ur.forEach(Object.keys({...e,...t}),function(i){const o=l[i]||n,s=o(e[i],t[i],i);ur.isUndefined(s)&&o!==a||(r[i]=s)}),r}const Pi=e=>{const t=Ii({},e);let{data:r,withXSRFToken:i,xsrfHeaderName:n,xsrfCookieName:o,headers:s,auth:a}=t;if(t.headers=s=li.from(s),t.url=Pr(xi(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),ur.isFormData(r))if(Fr.hasStandardBrowserEnv||Fr.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(ur.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&s.set(e,r)})}if(Fr.hasStandardBrowserEnv&&(i&&ur.isFunction(i)&&(i=i(t)),i||!1!==i&&Mi(t.url))){const e=n&&o&&Ei.read(o);e&&s.set(n,e)}return t},Ni="undefined"!==typeof XMLHttpRequest,Li=Ni&&function(e){return new Promise(function(t,r){const i=Pi(e);let n=i.data;const o=li.from(i.headers).normalize();let s,a,l,c,h,{responseType:u,onUploadProgress:d,onDownloadProgress:p}=i;function f(){c&&c(),h&&h(),i.cancelToken&&i.cancelToken.unsubscribe(s),i.signal&&i.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function y(){if(!m)return;const i=li.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),n=u&&"text"!==u&&"json"!==u?m.response:m.responseText,o={data:n,status:m.status,statusText:m.statusText,headers:i,config:e,request:m};pi(function(e){t(e),f()},function(e){r(e),f()},o),m=null}m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(r(new mr("Request aborted",mr.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const i=t&&t.message?t.message:"Network Error",n=new mr(i,mr.ERR_NETWORK,e,m);n.event=t||null,r(n),m=null},m.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const n=i.transitional||Rr;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),r(new mr(t,n.clarifyTimeoutError?mr.ETIMEDOUT:mr.ECONNABORTED,e,m)),m=null},void 0===n&&o.setContentType(null),"setRequestHeader"in m&&ur.forEach(o.toJSON(),function(e,t){m.setRequestHeader(t,e)}),ur.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),u&&"json"!==u&&(m.responseType=i.responseType),p&&([l,h]=bi(p,!0),m.addEventListener("progress",l)),d&&m.upload&&([a,c]=bi(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",c)),(i.cancelToken||i.signal)&&(s=t=>{m&&(r(!t||t.type?new di(null,e,m):t),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(s),i.signal&&(i.signal.aborted?s():i.signal.addEventListener("abort",s)));const g=fi(i.url);g&&-1===Fr.protocols.indexOf(g)?r(new mr("Unsupported protocol "+g+":",mr.ERR_BAD_REQUEST,e)):m.send(n||null)})},Ri=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,i=new AbortController;const n=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;i.abort(t instanceof mr?t:new di(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,n(new mr(`timeout ${t} of ms exceeded`,mr.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)}),e=null)};e.forEach(e=>e.addEventListener("abort",n));const{signal:a}=i;return a.unsubscribe=()=>ur.asap(s),a}},Oi=Ri,Ci=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let i,n=0;while(n<r)i=n+t,yield e.slice(n,i),n=i},Gi=async function*(e,t){for await(const r of ji(e))yield*Ci(r,t)},ji=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},Zi=(e,t,r,i)=>{const n=Gi(e,t);let o,s=0,a=e=>{o||(o=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await n.next();if(t)return a(),void e.close();let o=i.byteLength;if(r){let e=s+=o;r(e)}e.enqueue(new Uint8Array(i))}catch(t){throw a(t),t}},cancel(e){return a(e),n.return()}},{highWaterMark:2})},Di=65536,{isFunction:zi}=ur,Ui=(({Request:e,Response:t})=>({Request:e,Response:t}))(ur.global),{ReadableStream:Wi,TextEncoder:Fi}=ur.global,Vi=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},Ji=e=>{e=ur.merge.call({skipUndefined:!0},Ui,e);const{fetch:t,Request:r,Response:i}=e,n=t?zi(t):"function"===typeof fetch,o=zi(r),s=zi(i);if(!n)return!1;const a=n&&zi(Wi),l=n&&("function"===typeof Fi?(e=>t=>e.encode(t))(new Fi):async e=>new Uint8Array(await new r(e).arrayBuffer())),c=o&&a&&Vi(()=>{let e=!1;const t=new r(Fr.origin,{body:new Wi,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),h=s&&a&&Vi(()=>ur.isReadableStream(new i("").body)),u={stream:h&&(e=>e.body)};n&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!u[e]&&(u[e]=(t,r)=>{let i=t&&t[e];if(i)return i.call(t);throw new mr(`Response type '${e}' is not supported`,mr.ERR_NOT_SUPPORT,r)})})})();const d=async e=>{if(null==e)return 0;if(ur.isBlob(e))return e.size;if(ur.isSpecCompliantForm(e)){const t=new r(Fr.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ur.isArrayBufferView(e)||ur.isArrayBuffer(e)?e.byteLength:(ur.isURLSearchParams(e)&&(e+=""),ur.isString(e)?(await l(e)).byteLength:void 0)},p=async(e,t)=>{const r=ur.toFiniteNumber(e.getContentLength());return null==r?d(t):r};return async e=>{let{url:n,method:s,data:a,signal:l,cancelToken:d,timeout:f,onDownloadProgress:m,onUploadProgress:y,responseType:g,headers:w,withCredentials:b="same-origin",fetchOptions:v}=Pi(e),A=t||fetch;g=g?(g+"").toLowerCase():"text";let M=Oi([l,d&&d.toAbortSignal()],f),E=null;const S=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let T;try{if(y&&c&&"get"!==s&&"head"!==s&&0!==(T=await p(w,a))){let e,t=new r(n,{method:"POST",body:a,duplex:"half"});if(ur.isFormData(a)&&(e=t.headers.get("content-type"))&&w.setContentType(e),t.body){const[e,r]=vi(T,bi(Ai(y)));a=Zi(t.body,Di,e,r)}}ur.isString(b)||(b=b?"include":"omit");const t=o&&"credentials"in r.prototype,l={...v,signal:M,method:s.toUpperCase(),headers:w.normalize().toJSON(),body:a,duplex:"half",credentials:t?b:void 0};E=o&&new r(n,l);let d=await(o?A(E,v):A(n,l));const f=h&&("stream"===g||"response"===g);if(h&&(m||f&&S)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=d[t]});const t=ur.toFiniteNumber(d.headers.get("content-length")),[r,n]=m&&vi(t,bi(Ai(m),!0))||[];d=new i(Zi(d.body,Di,r,()=>{n&&n(),S&&S()}),e)}g=g||"text";let x=await u[ur.findKey(u,g)||"text"](d,e);return!f&&S&&S(),await new Promise((t,r)=>{pi(t,r,{data:x,headers:li.from(d.headers),status:d.status,statusText:d.statusText,config:e,request:E})})}catch(x){if(S&&S(),x&&"TypeError"===x.name&&/Load failed|fetch/i.test(x.message))throw Object.assign(new mr("Network Error",mr.ERR_NETWORK,e,E),{cause:x.cause||x});throw mr.from(x,x&&x.code,e,E)}}},Bi=new Map,Yi=e=>{let t=e&&e.env||{};const{fetch:r,Request:i,Response:n}=t,o=[i,n,r];let s,a,l=o.length,c=l,h=Bi;while(c--)s=o[c],a=h.get(s),void 0===a&&h.set(s,a=c?new Map:Ji(t)),h=a;return a},Qi=(Yi(),{http:yr,xhr:Li,fetch:{get:Yi}});ur.forEach(Qi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const Hi=e=>`- ${e}`,Xi=e=>ur.isFunction(e)||null===e||!1===e;function Ki(e,t){e=ur.isArray(e)?e:[e];const{length:r}=e;let i,n;const o={};for(let s=0;s<r;s++){let r;if(i=e[s],n=i,!Xi(i)&&(n=Qi[(r=String(i)).toLowerCase()],void 0===n))throw new mr(`Unknown adapter '${r}'`);if(n&&(ur.isFunction(n)||(n=n.get(t))))break;o[r||"#"+s]=n}if(!n){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map(Hi).join("\n"):" "+Hi(e[0]):"as no adapter specified";throw new mr("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return n}const qi={getAdapter:Ki,adapters:Qi};function _i(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new di(null,e)}function $i(e){_i(e),e.headers=li.from(e.headers),e.data=ci.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=qi.getAdapter(e.adapter||Kr.adapter,e);return t(e).then(function(t){return _i(e),t.data=ci.call(e,e.transformResponse,t),t.headers=li.from(t.headers),t},function(t){return hi(t)||(_i(e),t&&t.response&&(t.response.data=ci.call(e,e.transformResponse,t.response),t.response.headers=li.from(t.response.headers))),Promise.reject(t)})}const en="1.13.2",tn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tn[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const rn={};function nn(e,t,r){if("object"!==typeof e)throw new mr("options must be an object",mr.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let n=i.length;while(n-- >0){const o=i[n],s=t[o];if(s){const t=e[o],r=void 0===t||s(t,o,e);if(!0!==r)throw new mr("option "+o+" must be "+r,mr.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new mr("Unknown option "+o,mr.ERR_BAD_OPTION)}}tn.transitional=function(e,t,r){function i(e,t){return"[Axios v"+en+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,o)=>{if(!1===e)throw new mr(i(n," has been removed"+(t?" in "+t:"")),mr.ERR_DEPRECATED);return t&&!rn[n]&&(rn[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,o)}},tn.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const on={assertOptions:nn,validators:tn},sn=on.validators;class an{constructor(e){this.defaults=e||{},this.interceptors={request:new Lr,response:new Lr}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{r.stack?t&&!String(r.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+t):r.stack=t}catch(i){}}throw r}}_request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=Ii(this.defaults,t);const{transitional:r,paramsSerializer:i,headers:n}=t;void 0!==r&&on.assertOptions(r,{silentJSONParsing:sn.transitional(sn.boolean),forcedJSONParsing:sn.transitional(sn.boolean),clarifyTimeoutError:sn.transitional(sn.boolean)},!1),null!=i&&(ur.isFunction(i)?t.paramsSerializer={serialize:i}:on.assertOptions(i,{encode:sn.function,serialize:sn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),on.assertOptions(t,{baseUrl:sn.spelling("baseURL"),withXsrfToken:sn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=n&&ur.merge(n.common,n[t.method]);n&&ur.forEach(["delete","get","head","post","put","patch","common"],e=>{delete n[e]}),t.headers=li.concat(o,n);const s=[];let a=!0;this.interceptors.request.forEach(function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let h,u=0;if(!a){const e=[$i.bind(this),void 0];e.unshift(...s),e.push(...l),h=e.length,c=Promise.resolve(t);while(u<h)c=c.then(e[u++],e[u++]);return c}h=s.length;let d=t;while(u<h){const e=s[u++],t=s[u++];try{d=e(d)}catch(p){t.call(this,p);break}}try{c=$i.call(this,d)}catch(p){return Promise.reject(p)}u=0,h=l.length;while(u<h)c=c.then(l[u++],l[u++]);return c}getUri(e){e=Ii(this.defaults,e);const t=xi(e.baseURL,e.url,e.allowAbsoluteUrls);return Pr(t,e.params,e.paramsSerializer)}}ur.forEach(["delete","get","head","options"],function(e){an.prototype[e]=function(t,r){return this.request(Ii(r||{},{method:e,url:t,data:(r||{}).data}))}}),ur.forEach(["post","put","patch"],function(e){function t(t){return function(r,i,n){return this.request(Ii(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}an.prototype[e]=t(),an.prototype[e+"Form"]=t(!0)});const ln=an;class cn{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;while(t-- >0)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const i=new Promise(e=>{r.subscribe(e),t=e}).then(e);return i.cancel=function(){r.unsubscribe(t)},i},e(function(e,i,n){r.reason||(r.reason=new di(e,i,n),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new cn(function(t){e=t});return{token:t,cancel:e}}}const hn=cn;function un(e){return function(t){return e.apply(null,t)}}function dn(e){return ur.isObject(e)&&!0===e.isAxiosError}const pn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(pn).forEach(([e,t])=>{pn[t]=e});const fn=pn;function mn(e){const t=new ln(e),r=it(ln.prototype.request,t);return ur.extend(r,ln.prototype,t,{allOwnKeys:!0}),ur.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return mn(Ii(e,t))},r}const yn=mn(Kr);yn.Axios=ln,yn.CanceledError=di,yn.CancelToken=hn,yn.isCancel=hi,yn.VERSION=en,yn.toFormData=Er,yn.AxiosError=mr,yn.Cancel=yn.CanceledError,yn.all=function(e){return Promise.all(e)},yn.spread=un,yn.isAxiosError=dn,yn.mergeConfig=Ii,yn.AxiosHeaders=li,yn.formToJSON=e=>Qr(ur.isHTMLForm(e)?new FormData(e):e),yn.getAdapter=qi.getAdapter,yn.HttpStatusCode=fn,yn.default=yn;const gn=yn,wn="f04ece8bf0ff9c1117526a29a96bb2e1";function bn(e){return new Promise((t,r)=>{if(!e||!e.keyWord)return void r();let{keyWord:i,level:n=12,mapBound:o="108.38512072748536,20.999700722178734,118.92018884189694,26.042267179024694",currentPage:s=0,pageSize:a=20}=e;gn.get("http://api.tianditu.gov.cn/v2/search",{params:{postStr:JSON.stringify({keyWord:i,level:n,mapBound:o,queryType:2,start:s,count:a}),type:"query",tk:wn},timeout:1e4}).then(e=>{console.log("reject",e),e&&e.status&&200==e.status&&e.data&&e.data.pois?t({list:e.data.pois||[],total:e.data.count||0}):r(e.data)}).catch(e=>{r(e)})})}function vn(e){return new Promise((t,r)=>{if(!e)return void r();let i={lon:e.longitude,lat:e.latitude};const n=JSON.stringify(i);gn.get("https://api.tianditu.gov.cn/geocoder",{params:{postStr:n,type:"geocode",tk:wn},timeout:1e4}).then(e=>{e&&e.status&&200==e.status&&e.data&&e.data.msg&&e.data.result?t(e.data.result):r(e.data)}).catch(e=>{r(e)})})}function An(e){return new Promise((t,r)=>{e?gn.get("https://api.tianditu.gov.cn/geocoder",{params:{ds:JSON.stringify({keyWord:e}),tk:wn},timeout:1e4}).then(e=>{e&&e.status&&200==e.status&&e.data&&e.data.msg&&e.data.location?t(e.data.location):r(e.data)}).catch(e=>{r(e)}):r()})}const Mn={name:"SearchMap",components:{CustomSearchInput:rt,CustomModal:Ke},data(){return{keyWord:"",isSearch:!1,loadSearch:!1,currentPage:1,finished:!1,loadPage:!1,pageSize:20,total:0,mapNameList:[],checkedPoint:!1}},methods:{onShowDialog(e){this.$refs.message.show({message:e,type:"warning",duration:3e3})},clearSearch(){this.keyWord="",this.mapNameList=[],this.clearMap()},changeCheckedPoint(e){this.checkedPoint=e},initMap(e){e.map,this.isSearch=!1,this.checkedPoint=!1,this.clearSearch()},goDetail(e){if(e.lonlat){let t="string"==typeof e.lonlat?e.lonlat.split(","):[];t&&t.length>1?this.$emit("selectPoint",{...e,longitude:t[0],latitude:t[1]}):this.onShowDialog("坐标格式不正确!!!")}},loadMapList(){this.mapNameList.length>0&&this.total>this.currentPage*this.pageSize&&(this.currentPage++,this.postMapList()),this.total>0&&this.total<=this.currentPage*this.pageSize&&(this.finished=!0)},postMapList(){this.loadSearch=!0,bn({keyWord:this.keyWord,currentPage:this.currentPage,pageSize:this.pageSize}).then(e=>{this.loadSearch=!1,this.total=0,e&&e.list&&e.list.length>0&&(this.mapNameList=this.mapNameList.concat(e.list)),e.total&&Number(e.total)&&(this.total=Number(e.total),this.loadPage=!0)}).catch(e=>{console.log("定位失败",e),this.loadSearch=!1})},searchMap(e){if(e){if(this.keyWord=e,this.mapNameList)if(this.mapNameList=[],this.isSearch=!0,this.total=0,this.finished=!1,this.loadPage=!1,this.currentPage=1,this.checkedPoint){let e=this.keyWord,t="string"==typeof e?e.split(","):[];t.length>1?this.$emit("selectPoint",{longitude:t[0],latitude:t[1]}):this.onShowDialog("坐标格式不正确!!!")}else this.postMapList()}else this.onShowDialog("请输入搜索内容!!!")},clearMap(){this.$emit("clearSearchMap")}}},En=Mn;var Sn=ie(En,Ve,Je,!1,null,null,null);const Tn=Sn.exports,xn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJ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TmEL+FiWKWCqSFGmyRFmoSZQGs5iU2LBCsSCxsMBCSUzKv1KzIY0F2VDYKGZBRjGNkUxv/Clj/lyL33sab+579973HnPqdd+959zz/d7zO+f8zi8XRZGJlEkTio6GATlowPB/xM0hIkRgPtpxDqv+MfAirMdNHIVcPtKCqwWDH7iNg/hSR+ApWIs9WIcFQgQm5/KRmcjHvHQPp/GoStBimPdiGdoK940FfQ825PKhCDqwJcbJTyFcbbLlyEIsRys2YVqJfkiIRnuRQCMGE5xewTF8qGAzC0txSMinxTE2I7iDnfhaLMNfOJBAoBXvcQpzY/TbcBz30VwGnPD1N4R8U4xAUdJ2pT6cxHk0YTN2Y45Q0pXkEvYLyzuOwBK8TUkCvqEbK1Lad2Fr4YrxnbAbLzMQmJ4BPMJDIfv/SGkECI2pNwOJtNKPNXgz9mHcXvAR1+sM/h0nSsHLEYAddQSP8Bx345SVdsPtdSKQw2UxX098DoyVAcyoAXwE17CrnEHSPLC6BnB4h4tCFKoi8BoPaiDQiRcqNLikJSB0tqEqwLuwUeW9I9VINoxbGcH7hVbdk2SYdibMWhFPC79EyTKUNqe0G8RZoewSFzhNDoyVT5hXQT+KC9iX1mHWsXxlgv6VsNeXLbtaCfTicQV9B55JP1dkXoKilL4V4YkwnIxmcVTtyehwyX0fzsQQS5RqI0Co9dmF/51oweesTmo5GzYJpdaHI9WAU1sECNPTVNnmyL8JTPTx/Df1OpARdwAAzQAAAABJRU5ErkJggg==";var kn,In=null,Pn=null,Nn=!1,Ln=null,Rn=null;let On={url:xn,width:20,height:18};const Cn={components:{loadingBox:me,searchMap:Tn,svgIcon:oe},props:{mapParams:{type:Object,default:Fe},defaultCenter:{type:Array,default:()=>[]},isSearch:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},computed:{isShowPoint(){return!this.disabled&&this.isSearch},mapCenter(){}},data(){return{mapId:"map"+Math.round(1e4*Math.random()),isLoading:!0,center:[],address:"",pointCenter:[113.536308532987,23.3450945634734],pointData:{longitude:"",latitude:"",address:""}}},methods:{getMap(){return In},getView(){return Pn},setupMapEvents(e){this._clickHandler=e.on("click",this.debounce(this.handleMapClick,300)),this._hoverHandler=e.on("pointer-move",this.debounce(this.handleMapHover,80))},handleMapClick(e){if(Nn)return;kn&&kn.abort(),kn=new AbortController,Nn=!0;const t={mapPoint:e.mapPoint,type:"click"},r=Pn.hitTest(e);r.then(r=>{if(!kn.signal.aborted){if(t.event=r,this.isShowPoint&&Rn){let t=e.mapPoint;t&&(this.pointData.longitude=t.x,this.pointData.latitude=t.y,Ln.graphics._items[0].geometry.longitude=t.x,Ln.graphics._items[0].geometry.latitude=t.y,this.pointData.address="",Rn.update(Ln.graphics._items[0]))}this.$emit("mapEventClick",t)}}).catch(e=>{"AbortError"!==e.name&&console.warn("hitTest error",e)}).finally(()=>{setTimeout(()=>{Nn=!1,kn=null},300)})},async handleMapHover(e){const t=await Pn.hitTest(e);t&&t.results&&t.screenPoint?(Pn.container.style.cursor="pointer",this.$emit("mapEventMouse",t)):Pn.container.style.cursor="default"},debounce(e,t){let r;return(...i)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,i),t)}},cleanupMapEvents(){this._clickHandler?.remove(),this._hoverHandler?.remove()},loadEdMap(e){In=e.map,Pn=e.view,L(e),Ln=new window.jkEsri.GraphicsLayer({id:"pointLayer"}),In.add(Ln,10),this.isShowPoint?this.setSearchVm():this.moveCenterPoint(),this.setupMapEvents(e.view),this.center&&2==this.center.length&&H({longitude:this.center[0],latitude:this.center[1]}),this.$emit("loadEdMap",e)},moveCenterPoint(){this.center&&2==this.center.length&&this.center[0]&&this.center[1]?this.refreshPoint({longitude:this.center[0],latitude:this.center[1]}):this.address?An(this.address).then(e=>{e&&e.lon&&e.lat&&this.refreshPoint({longitude:e.lon||"",latitude:e.lat})}).catch(e=>{console.log("err",e)}):this.defaultCenter&&2==this.defaultCenter.length&&this.defaultCenter[0]&&this.defaultCenter[1]?this.refreshPoint({longitude:this.defaultCenter[0],latitude:this.defaultCenter[1]}):this.refreshPoint({longitude:this.pointCenter[0],latitude:this.pointCenter[1]})},setSearchVm(){if(this.disabled)this.moveCenterPoint();else{let e={type:"picture-marker",...On,img:On.url};Rn=new window.jkEsri.SketchViewModel({view:Pn,layer:Ln,pointSymbol:e,polylineSymbol:{type:"simple-line",color:"#8A2BE2",width:"4",style:"dash",spatialReference:{wkid:4326}},polygonSymbol:{type:"simple-fill",color:"rgba(0, 45, 99,0.4)",style:"solid",outline:{color:"white",width:2},spatialReference:{wkid:4326}},spatialReference:{wkid:4326}}),this.moveCenterPoint(),Rn.on("update",e=>{if(e&&e.graphics&&e.graphics.length>0&&e.graphics[0].geometry){let t=e.graphics[0].geometry;e.graphics[0].symbol=Z({...On}),this.isSearch&&(this.pointData.longitude=t.longitude,this.pointData.latitude=t.latitude,this.pointData.address=""),e.graphic=e.graphics[0]}})}},clearSearchMap(){console.log("")},clearSketch(){Ln&&Ln.removeAll(),this.$refs.searchRef&&this.$refs.searchRef.clearSearch&&this.$refs.searchRef.clearSearch()},refreshPoint(e){Ln&&Ln.removeAll(),this.pointData={...e,symbol:Z(On)},Ln.add(F(this.pointData)),this.isShowPoint&&setTimeout(()=>{Rn.update(Ln.graphics._items[0])},200),H(e)},initPoint(e){this.center=[],this.address="",this.pointData.address="",e&&(e.address&&(this.address=data.address),e.center&&2==e.center.length&&e.center[0]&&e.center[1]&&(this.center=data.center),In&&Pn&&setTimeout(()=>{this.moveCenterPoint()},200))},async returnPoint(){let e=this.pointData;if(e&&e.longitude&&e.latitude){if(!e.address){let t=await vn({longitude:this.pointData.longitude,latitude:this.pointData.latitude});if(t&&t.addressComponent){let r="";r=t.addressComponent.address?t.addressComponent.address:"",e={...this.pointData,...t.addressComponent,address:r}}}return e}return e}},beforeUnmount(){this.clearSketch(),this._clickHandler?.remove(),this._hoverHandler?.remove()}};function Gn(e,t={}){const{executeOriginalFirst:r=!0,debounce:i,throttle:n}=t;let o=[],s=!0,a=0,l=null;const c=(e,t,r)=>{try{return e.apply(t,r)}catch(i){return console.error("EventManager listener error:",i),null}},h=(t,i)=>{s||(o.sort((e,t)=>e.index-t.index),s=!0),r&&e&&c(e,t,i);const n=[...o];for(let e=0;e<n.length;e++){const r=n[e];if(!o.includes(r))continue;const s=c(r,t,i);"remove"===s&&u(r)}!r&&e&&c(e,t,i)},u=e=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};let d=function(...e){const t=Date.now();if(!(n&&t-a<n)){if(i)return l&&clearTimeout(l),void(l=setTimeout(()=>{a=Date.now(),h(this,e)},i));a=t,h(this,e)}};return d.addListener=function(e,t=0){if("function"!==typeof e)throw new Error("Listener must be a function");return e.index=t,e.remove=()=>u(e),o.push(e),s=!1,e},d.clear=function(){o=[],s=!0,l&&(clearTimeout(l),l=null)},d.getListeners=function(){return[...o]},d.destroy=function(){this.clear(),l&&(clearTimeout(l),l=null)},d}let jn={};class Zn{constructor(e,t={}){this.id=e;let r={...Fe,...t};return this.param=r,this.__config=r.config||{},this.layersType=r.layersType,this.mapParams={...r},this.onloadMap=Gn(),this.createMap(e,r),this}createMap(e,t){this.init(t)}init(e){if(window.jkEsri)this.initMap();else{e.initCss&&(0,a.loadCss)(e.initCss);const t=e.modules||["esri/Map","esri/views/MapView","esri/layers/WebTileLayer","esri/geometry/Extent","esri/geometry/SpatialReference","esri/geometry/support/webMercatorUtils","esri/geometry/geometryEngine"];this.mapParams.modules=t,(0,a.loadModules)(t,{url:e.initJs}).then(this.TDTinstance.bind(this,this.mapParams)).then(this.initMap.bind(this)).catch(e=>{throw console.error("地图模块加载失败:",e),e})}}TDTinstance(e,t){jn={};for(const r in t){if(!t.hasOwnProperty(r))continue;const i=e.modules[r].split("/").pop();"webMercatorUtils"===i&&(jn.webMercatorToGeographic=t[r].webMercatorToGeographic,jn.geographicToWebMercator=t[r].geographicToWebMercator),"geometryEngine"===i&&(jn.geometryEngine=t[r]),jn[i]=t[r]}window.jkEsri=jn,this.esri=jn}initMap(){let e=null;if("dynamic"!=this.layersType&&"TileLayer"!=this.layersType||!this.param.baseMapUrl)O(this.id,this.param).then(e=>{this.onloadMap(e)});else{var t="dynamic"==this.layersType?window.jkEsri.MapImageLayer:window.jkEsri.TileLayer;e=new t({url:this.param.baseMapUrl,title:this.layersType,opacity:1,visible:!0}),R(this.id,e,this.param).then(e=>{this.onloadMap(e)})}}destroy(){this.onloadMap?.destroy?.(),this.view&&(this.view.container=null,this.view=null),this.map=null,this.esri=null}}const Dn=Zn,zn={name:"JKMapEdit",mixins:[Cn],mounted(){this.isLoading=!0,this.map=new Dn(this.mapId,this.mapParams),this.map.onloadMap.addListener(e=>{this.isLoading=!1,this.loadEdMap(e),(this.isShowPoint||this.isSearch||this.isLocation)&&setTimeout(()=>{this.$nextTick(()=>{this.$refs.searchRef.initMap(e)})},200)})}},Un=zn;var Wn=ie(Un,ze,Ue,!1,null,null,null);const Fn=Wn.exports;var Vn,Jn=function(){var e=this,t=e._self._c;return t("loading-box",{attrs:{loading:e.isLoading}},[t("div",{staticClass:"arcgisMap-box"},[t("div",{staticClass:"map-canvans",attrs:{id:e.mapId}}),e.isShowBtnBox?t("div",{staticClass:"edit-btn-box"},[e.drawIngArea?t("div",{staticClass:"edit-area"},[e._v(" "+e._s(e.drawIngArea)+"(平方米) ")]):e._e(),e.module.indexOf("screen")>-1?t("div",{staticClass:"edit-btn",attrs:{title:"全屏"},on:{click:e.changeFull}},[t("svgIcon",{attrs:{name:"full",width:"24",color:"#000"}})],1):e._e(),e.isUseSketch?[e.type&&e.type.indexOf("point")>-1?t("div",{staticClass:"edit-btn",attrs:{title:"点"},on:{click:function(t){return e.drawLayerType("point")}}},[t("svgIcon")],1):e._e(),e.type&&e.type.indexOf("polyline")>-1?t("div",{staticClass:"edit-btn",attrs:{title:"线"},on:{click:function(t){return e.drawLayerType("polyline")}}},[t("svgIcon",{attrs:{name:"line"}})],1):e._e(),e.type&&e.type.indexOf("polygon")>-1?t("div",{staticClass:"edit-btn",attrs:{title:"面"},on:{click:function(t){return e.drawLayerType("polygon")}}},[t("svgIcon",{attrs:{name:"polygon"}})],1):e._e(),t("div",{staticClass:"edit-btn",class:{"btn-disable":!e.isDel},attrs:{title:"删除单个"},on:{click:e.delDraw}},[t("svgIcon",{attrs:{name:"del",width:"22",color:e.isDel?"#6a6a6a":"#dadada"}})],1),t("div",{staticClass:"edit-btn",class:{"btn-disable":!e.isDelAll},attrs:{title:"全部删除"},on:{click:function(t){return e.delDraw("all")}}},[t("svgIcon",{attrs:{name:"delAll",width:"23",color:e.isDelAll?"#6a6a6a":"#dadada"}})],1),t("div",{staticClass:"edit-btn",class:{"btn-disable":!e.isActive},attrs:{title:"上一步"},on:{click:e.undo}},[t("svgIcon",{attrs:{name:"perv",width:"22",color:e.isActive?"#6a6a6a":"#dadada"}})],1),t("div",{staticClass:"edit-btn",class:{"btn-disable":!e.isPer},attrs:{title:"下一步"},on:{click:e.redo}},[t("svgIcon",{attrs:{name:"next",width:"22",color:e.isPer?"#6a6a6a":"#dadada"}})],1)]:e._e()],2):e._e(),!e.isLoading&&e.isSearch?t("searchMap",{ref:"searchRef",on:{selectPoint:e.refreshPoint,clearSearchMap:e.clearSearchMap}}):e._e()],1)])},Bn=[];class Yn{constructor(e={}){if(Vn=null,!e)throw new Error("options is required");let t=null,r=null,i=null,n=20;if(t=e.layer,r=e.view,i=e.map,n=e.maxGraphics,!t)throw new Error("layer is required");if(!r)throw new Error("view is required");this.graphicsLayer=t||new window.jkEsri.GraphicsLayer({title:"Sketch Graphics"}),t||r.map.add(this.graphicsLayer),this.sketchVM=new window.jkEsri.SketchViewModel({view:r,layer:this.graphicsLayer,pointSymbol:{type:"simple-marker",color:"red",size:14,outline:{color:[255,255,255],width:2,style:"solid"},style:"solid"},polylineSymbol:{type:"simple-line",color:"#fff",width:"4",style:"dash"},polygonSymbol:{type:"simple-fill",color:"rgba(0, 45, 99,0.01)",style:"solid",outline:{color:"white",width:2}},defaultUpdateOptions:{tool:"reshape",toggleToolOnClick:!1,enableScaling:!0,enableRotation:!1,enableZIndex:!1},creationMode:"single"}),this.map=i,Vn=this.sketchVM,this.maxGraphics=n,this.drawIngArea=0,this.isActive=!1,this.isNextList=[],this.currentAction=null,this.events={create:[],update:[],delete:[],change:[]},window.addEventListener("keydown",this.keyHandler),this._bindEvents()}keyHandler(e){if(("Delete"===e.key||"Backspace"===e.key)&&!e.ctrlKey){const t=Vn.updateGraphics.toArray();t&&t.length&&(e.preventDefault(),Vn.delete(t))}}getArea(e){const t={wkid:4326},r=window.jkEsri.projection.project(e,t);return window.jkEsri.geometryEngine.geodesicArea(r,"square-meters")}stopDraw(){this.getGraphics().length>=this.maxGraphics&&this.cancel()}startDraw(e){if(this.getGraphics().length>=this.maxGraphics)this.cancel();else{if(!["point","polyline","polygon"].includes(e))throw new Error('type must be "point", "polyline" or "polygon"');this.isNextList=[],this.cancel(),this.isActive=!0,this.currentAction="draw",this.sketchVM.create(e)}}startEdit(e){this.cancel(),this.isNextList=[],this.isActive=!0,this.currentAction="edit",this.sketchVM.update([e])}complete(){this.isActive&&(this.sketchVM.complete(),this.isNextList=[],this.isActive=!1,this.currentAction=null,this.drawIngArea=0)}cancel(){this.isActive&&(this.sketchVM.cancel(),this.isActive=!1,this.currentAction=null,this.drawIngArea=0)}undo(){this.sketchVM.undo(),this.isNextList.push("1"),this.onChange()}redo(){0!==this.isNextList.length&&(this.sketchVM.redo(),this.isNextList.pop(),this.onChange())}clear(){this.graphicsLayer&&(this.graphicsLayer.removeAll(),this.onChange(!0),this.drawIngArea=0)}clearSelected(){const e=Vn.updateGraphics.toArray();e&&e.length>0&&(Vn.delete(e),this.onChange(!0),this.drawIngArea=0)}getGraphics(){return this.graphicsLayer&&this.graphicsLayer.graphics&&this.graphicsLayer.graphics.toArray?this.graphicsLayer.graphics.toArray():[]}on(e,t){this.events[e]?this.events[e].push(t):console.warn(`Unknown event: ${e}`)}off(e,t){if(this.events[e]){const r=this.events[e].indexOf(t);r>-1&&this.events[e].splice(r,1)}}_bindEvents(){this.sketchVM.on("create",e=>{if(this.stopDraw(),e.graphic&&e.graphic.geometry&&e.graphic.geometry.type&&"polygon"==e.graphic.geometry.type&&e.graphic.geometry.rings&&e.graphic.geometry.rings.length>0&&e.graphic.geometry.rings[0].length>=3&&(this.drawIngArea=this.getArea(e.graphic.geometry)),"complete"===e.state){const t=e.graphic;this.isActive=!1,this._emit("create",t),this.stopDraw(),this.drawIngArea=0,this.isNextList=[]}this.onChange()}),this.sketchVM.on("update",e=>{console.log("update",e);const t=this.sketchVM.updateGraphics.toArray();t&&t.length>0&&(this.drawIngArea=this.getArea(t[0].geometry)),"complete"===e.state&&(this.isActive=!1,this.isNextList=[],this.drawIngArea=0,this._emit("update",e.graphics[0])),this.onChange()}),this.sketchVM.on("delete",e=>{const t=e.graphics[0];this._emit("delete",t),this.onChange()})}_emit(e,t){this.events[e].forEach(e=>e(t))}onChange(e=!1){this._emit("change",{graphics:e?[]:this.getGraphics(),isActive:!e&&this.isActive,isNextList:this.isNextList,isDel:this.sketchVM&&this.sketchVM.updateGraphics&&this.sketchVM.updateGraphics.toArray()?this.sketchVM.updateGraphics.toArray().length>0:0,drawIngArea:this.drawIngArea})}destroy(){if(this.sketchVM)try{this.sketchVM.cancel()}catch(e){console.warn("SketchVM cancel failed on destroy",e)}this.graphicsLayer&&this.map&&this.map.remove&&(this.graphicsLayer.removeAll(),this.map.remove(this.graphicsLayer),this.graphicsLayer=null),window.removeEventListener("keydown",this.keyHandler),Vn=null,this.sketchVM=null,this.isActive=!1,this.drawIngArea=0,this.isNextList=[],this.onChange(),setTimeout(()=>{this.events={}},200)}}const Qn=Yn;let Hn=null,Xn=null,Kn=null,qn=null,_n=null,$n=null,eo=null,to=!1,ro=[],io={url:xn,width:20,height:18};const no={components:{loadingBox:me,svgIcon:oe,searchMap:Tn},props:{mapParams:{type:Object,default:()=>({})},module:{type:Array,default:()=>["search","edit","screen"]},maxGraphics:{type:Number,default:3},center:{type:Array,default:()=>[113.33799948954312,23.14565684412003]},type:{type:Array,default:()=>["point","polyline","polygon"]}},computed:{isShowBtnBox(){return this.module&&this.module.length>0&&(this.module.indexOf("edit")>-1||this.module.indexOf("screen")>-1)},isUseSketch(){return this.module&&this.module.length>0&&this.module.indexOf("edit")>-1},isSearch(){return this.module&&this.module.length>0&&this.module.indexOf("search")>-1}},data(){return{mapId:"map"+Math.round(1e4*Math.random()),isLoading:!0,isActive:!1,isPer:!1,drawIngArea:0,isDel:!1,isDelAll:!1}},methods:{formatThousands(e){if(!e||isNaN(Number(e)))return"";let t=Number(Number(e)/1e6).toFixed(2);const[r,i]=t.split("."),n=r.startsWith("-");let o=n?r.slice(1):r;const s=o.replace(/\B(?=(\d{3})+(?!\d))/g,","),a=`${n?"-":""}${s}.${i}`;return a},setupMapEvents(e){this._clickHandler=e.on("click",this.debounce(this.handleMapClick,300)),this._hoverHandler=e.on("pointer-move",this.debounce(this.handleMapHover,80))},async handleMapClick(e){if(to)return;eo&&eo.abort(),eo=new AbortController,to=!0;const t={mapPoint:e.mapPoint,type:"click"};try{const r=await Xn.hitTest(e);if(eo.signal.aborted)return;this.$emit("mapEventClick",{...t,...r})}catch(r){"AbortError"!==r.name&&console.warn("hitTest error",r)}finally{setTimeout(()=>{to=!1,eo=null},300)}},async handleMapHover(e){const t=await Xn.hitTest(e);t.results=t.results.filter(e=>e.layer&&e.layer.id&&-1==e.layer.id.indexOf("map-mask")),t&&t.results&&t.results.length>0&&t.screenPoint?this.$emit("mapEventMouse",t):Xn.container.style.cursor="default"},debounce(e,t){let r;return(...i)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,i),t)}},cleanupMapEvents(){this._clickHandler?.remove(),this._hoverHandler?.remove()},loadEdMap(e){Hn=e.map,Xn=e.view,this.isSearch&&(_n=new window.jkEsri.GraphicsLayer({id:"pointLayer"}),Hn.add(_n,10)),this.isUseSketch&&($n=new window.jkEsri.GraphicsLayer({id:"unselectableLayer"}),Hn.add($n,3),qn=new window.jkEsri.GraphicsLayer({id:"sketchLayer"}),Hn.add(qn,4),Kn=new Qn({layer:qn,view:Xn,map:Hn,maxGraphics:this.maxGraphics}),Kn.on("create",e=>{console.log("创建图形:",e)}),Kn.on("update",e=>{console.log("编辑完成:",e)}),Kn.on("delete",e=>{console.log("删除图形")}),Kn.on("change",e=>{this.isActive=e.isActive,this.isDel=e.isDel,this.isPer=e.isNextList.length>0&&this.isActive,this.drawIngArea=e.drawIngArea?this.formatThousands(Number(e.drawIngArea).toFixed(2)):0,ro=e.graphics,this.isDelAll=ro.length>0,setTimeout(()=>{this.retuanGraphics()},500)})),this.setupMapEvents(e.view),this.$emit("loadEdMap",e)},refreshPoint(e){_n&&_n.removeAll(),this.pointData={...e,symbol:Z(io)},_n.add(F(this.pointData)),H(_n)},clearSearchMap(){_n&&_n.removeAll()},drawLayerType(e){Kn&&Kn.startDraw(e)},undo(){Kn&&this.isActive&&Kn.undo()},redo(){Kn&&this.isPer&&Kn.redo()},delDraw(e=""){Kn&&("all"==e?this.isDelAll&&Kn.clear():this.isDel&&Kn.clearSelected())},judgeLayerType(e){if(e)return e.includes("oint")?"point":e.includes("olygon")?"polygon":e.includes("ine")?"polyline":void 0},retuanGraphics(){let e=0,t={drawEnd:!this.isActive,area:"",mArea:"",hectareArea:"",latitude:"",longitude:"",ringsList:[]};if(ro&&ro.length>0)for(const r of ro){const i=this.judgeLayerType(r.geometry.type);let n=v(r);if("point"===i)t.longitude=r.geometry.longitude,t.latitude=r.geometry.latitude,t.ringsList.push({type:"Point",geometry:n});else if("polyline"===i)t.ringsList.push({type:"Polyline",geometry:n,latitude:"",longitude:"",area:0});else if("polygon"===i){const i=X(r.geometry);let o=0;i&&Number(i)&&(o=Math.abs(Number(i).toFixed(2))),e+=o,t.longitude=r.geometry.centroid.longitude,t.latitude=r.geometry.centroid.latitude,t.ringsList.push({type:"polygon",geometry:n,longitude:r.geometry.centroid.longitude,latitude:r.geometry.centroid.latitude,area:o})}}return e>0&&(t.area=e,t.mArea=.0015*Number(e),t.hectareArea=1e-4*Number(e)),console.log("formatMapData00",t,ro),t},goToCenter(){H(this.center,{zoom:8})},batchDraw(e){if(qn&&qn.removeAll(),e.length>0){let t=[];e.map(e=>{let r=null;e.type&&"point"==this.judgeLayerType(e.type)?(r=F(e),console.log("sketchArr0",e,e.type&&this.judgeLayerType(e.type))):e.type&&"polyline"==this.judgeLayerType(e.type)?r=V(e):e.type&&"polygon"==this.judgeLayerType(e.type)&&(r=J(e)),r&&t.push(r)}),t.length>0?(qn.addMany(t),H(qn)):this.goToCenter()}else this.goToCenter()},batchNnselectDraw(e,t="text"){if($n&&$n.removeAll(),e.length>0){let r=[];e.map(e=>{let i=null;if(e.type&&"point"==this.judgeLayerType(e.type))i=F(e),console.log("sketchArr0",e,e.type&&this.judgeLayerType(e.type));else if(e.type&&"polyline"==this.judgeLayerType(e.type))i=V(e);else if(e.type&&"polygon"==this.judgeLayerType(e.type)&&(i=J(e),e[t]&&i&&i.geometry&&i.geometry.centroid)){const n=F({geometry:i.geometry.centroid,symbol:G(e,t)});n&&r.push(n)}i&&r.push(i)}),r.length>0?($n.addMany(r),H($n)):this.goToCenter()}else this.goToCenter()},changeFull(){this.$emit("changeFull")},destroy(){this.cleanupMapEvents(),Kn&&Kn.destroy&&Kn.destroy(),this.goToCenter(),this.$refs.searchRef&&this.$refs.searchRef.clearSearch&&this.$refs.searchRef.clearSearch()}},beforeUnmount(){this.cleanupMapEvents(),this.destroy()}},oo={name:"augustineMap",mixins:[no],mounted(){this.isLoading=!0,this.map=new Dn(this.mapId,this.mapParams),this.map.onloadMap.addListener(e=>{this.isLoading=!1,this.loadEdMap(e)})}},so=oo;var ao=ie(so,Jn,Bn,!1,null,null,null);const lo=ao.exports;var co,ho=function(){var e=this,t=e._self._c;return t("loading-box",{attrs:{loading:e.isLoading}},[t("div",{staticClass:"arcgisMap-box"},[t("div",{staticClass:"map-canvans",attrs:{id:e.mapId}})])])},uo=[],po=null,fo=null,mo=!1,yo=null;const go={components:{loadingBox:me},props:{mapParams:{type:Object,default:Fe},defaultCenter:{type:Array,default:()=>[]}},computed:{},data(){return{mapId:"map"+Math.round(1e4*Math.random()),isLoading:!0,center:[],pointCenter:[113.33799948954312,23.14565684412003],pointsList:[]}},methods:{getMap(){return po},getView(){return fo},setupMapEvents(e){this._clickHandler=e.on("click",this.debounce(this.handleMapClick,300)),this._hoverHandler=e.on("pointer-move",this.debounce(this.handleMapHover,80))},changeGraphic(e){yo&&yo.graphics&&yo.graphics._items&&yo.graphics._items.map(t=>{let r=t.attributes.url,i=t.attributes.width,n=t.attributes.height;return e&&t&&t.attributes&&t.attributes.name==e.name&&(r=e.activeUrl?e.activeUrl:e.url,i=e.width+5,n=e.height*i/e.width),t.symbol=Z({url:r,width:i,height:n}),t})},handleMapClick(e){if(mo)return;co&&co.abort(),co=new AbortController,mo=!0;const t={mapPoint:e.mapPoint,type:"click"},r=fo.hitTest(e);r.then(e=>{if(!co.signal.aborted){if(t.event=e,e&&e.results&&e.results.length>0){const t=e.results.filter(e=>e.layer&&e.layer.id&&e.layer.id.indexOf("pointLayer")>-1);if(t&&t.length>0){const e=t[0].graphic,r=e.attributes;this.$emit("eventClick",r),this.changeGraphic(r)}}else this.changeGraphic(null);this.$emit("mapEventClick",t)}}).catch(e=>{"AbortError"!==e.name&&console.warn("hitTest error",e)}).finally(()=>{setTimeout(()=>{mo=!1,co=null},300)})},async handleMapHover(e){const t=await fo.hitTest(e);t&&t.results&&t.screenPoint?(fo.container.style.cursor="pointer",this.$emit("mapEventMouse",t)):fo.container.style.cursor="default"},debounce(e,t){let r;return(...i)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,i),t)}},cleanupMapEvents(){this._clickHandler?.remove(),this._hoverHandler?.remove()},loadEdMap(e){po=e.map,fo=e.view,setTimeout(()=>{yo=new window.jkEsri.GraphicsLayer({id:"pointLayer"}),po.add(yo,10),this.drawPoints(),this.setupMapEvents(e.view),this.$emit("loadEdMap",e)},500)},moveCenterPoint(){this.pointsList&&this.pointsList.length>0?H(yo):this.defaultCenter&&2==this.defaultCenter.length&&this.defaultCenter[0]&&this.defaultCenter[1]?H(this.defaultCenter):H(this.pointCenter)},drawPoints(){if(this.pointsList&&this.pointsList.length>0){const e=this.pointsList.map(e=>F({...e,symbol:Z(e)})).filter(e=>null!==e);yo.addMany(e),H(yo)}else this.moveCenterPoint()},initPoint(e=[]){this.pointsList=e||[],po&&fo&&(yo&&yo.removeAll(),this.drawPoints())}},beforeUnmount(){this._clickHandler?.remove(),this._hoverHandler?.remove()}},wo={name:"JKMapList",mixins:[go],mounted(){this.isLoading=!0,this.map=new Dn(this.mapId,this.mapParams),this.map.onloadMap.addListener(e=>{this.isLoading=!1,this.loadEdMap(e)})}},bo=wo;var vo=ie(bo,ho,uo,!1,null,null,null);const Ao=vo.exports,Mo=[De,lo,Fn,Ao],Eo=e=>{Eo.installed||(Eo.installed=!0,Mo.forEach(t=>{e.component(t.name,t)}))},So={install:Eo,augustineGjMap:De,augustineMap:lo,locationMap:Fn,mapList:Ao,arcGISTranformGeoJson:v,geoJsonTranformArcgis:A,geoJsonTranformWkt:T,wktTranformGeoJson:x,wktTranformArcgis:k,arcgisTranformWkt:I,initMapPack:L,createBase:R,createMapView:O,toArcGISPoint:m,getSimpleText:G,getSimpleMarker:j,getPictureMarker:Z,getSimpleLine:D,getSimpleFill:z,createGrahic:U,createMaskLayer:K,createGraphicsLayer:W,mapJumpTo:H,drawPoint:F,drawPolyline:V,drawPolygon:J,drawPolygonArr:B,getArea:X};"undefined"!==typeof window&&window.Vue&&Eo(window.Vue);const To=So})(),n=n["default"],n})());
1
+ (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define("augustine-jkmap.umd.min",[],t):"object"===typeof exports?exports["augustine-jkmap.umd.min"]=t():e["augustine-jkmap.umd.min"]=t()})(Object("undefined"!==typeof self?self:this),()=>(()=>{var e={3(e,t){(function(e,r){r(t)})(0,function(e){"use strict";var t="undefined"!==typeof window,r={Promise:t?window["Promise"]:void 0},i="4.25",n="next";function o(e){if(e.toLowerCase()===n)return n;var t=e&&e.match(/^(\d)\.(\d+)/);return t&&{major:parseInt(t[1],10),minor:parseInt(t[2],10)}}function s(e){return void 0===e&&(e=i),"https://js.arcgis.com/".concat(e,"/")}function a(e){void 0===e&&(e=i);var t=s(e),r=o(e);if(r!==n&&3===r.major){var a=r.minor<=10?"js/":"";return"".concat(t).concat(a,"esri/css/esri.css")}return"".concat(t,"esri/themes/light/main.css")}function l(e){var t=document.createElement("link");return t.rel="stylesheet",t.href=e,t}function c(e,t){if(t){var r=document.querySelector(t);r.parentNode.insertBefore(e,r)}else document.head.appendChild(e)}function h(e){return document.querySelector('link[href*="'.concat(e,'"]'))}function u(e){return!e||o(e)?a(e):e}function d(e,t){var r=u(e),i=h(r);return i||(i=l(r),c(i,t)),i}var p={};function f(e){var t=document.createElement("script");return t.type="text/javascript",t.src=e,t.setAttribute("data-esri-loader","loading"),t}function m(e,t,r){var i;r&&(i=y(e,r));var n=function(){t(e),e.removeEventListener("load",n,!1),i&&e.removeEventListener("error",i,!1)};e.addEventListener("load",n,!1)}function y(e,t){var r=function(i){t(i.error||new Error("There was an error attempting to load ".concat(e.src))),e.removeEventListener("error",r,!1)};return e.addEventListener("error",r,!1),r}function g(e){void 0===e&&(e={}),p=e}function w(){return document.querySelector("script[data-esri-loader]")}function b(){var e=window["require"];return e&&e.on}function v(e){void 0===e&&(e={});var t={};[p,e].forEach(function(e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])});var i=t.version,n=t.url||s(i);return new r.Promise(function(e,r){var o=w();if(o){var s=o.getAttribute("src");s!==n?r(new Error("The ArcGIS API for JavaScript is already loaded (".concat(s,")."))):b()?e(o):m(o,e,r)}else if(b())r(new Error("The ArcGIS API for JavaScript is already loaded."));else{var a=t.css;if(a){var l=!0===a;d(l?i:a,t.insertCssBefore)}o=f(n),m(o,function(){o.setAttribute("data-esri-loader","loaded"),e(o)},r),document.body.appendChild(o)}})}function A(e){return new r.Promise(function(t,r){var i=window["require"].on("error",r);window["require"](e,function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];i.remove(),t(e)})})}function M(e,t){if(void 0===t&&(t={}),b())return A(e);var r=w(),i=r&&r.getAttribute("src");return!t.url&&i&&(t.url=i),v(t).then(function(){return A(e)})}e.utils=r,e.loadModules=M,e.getScript=w,e.isLoaded=b,e.loadScript=v,e.setDefaultOptions=g,e.loadCss=d,Object.defineProperty(e,"__esModule",{value:!0})})},337(e,t,r){(function(t,i){if("object"===typeof e.exports)e.exports=i(r(375));else if("object"===typeof navigator){if(!t.Terraformer)throw new Error("Terraformer.WKT requires the core Terraformer library. http://github.com/esri/terraformer");t.Terraformer.WKT=i(t.Terraformer)}})(this,function(e){var t={},r=function(){var e={trace:function(){},yy:{},symbols_:{error:2,expressions:3,point:4,EOF:5,linestring:6,polygon:7,multipoint:8,multilinestring:9,multipolygon:10,coordinate:11,DOUBLE_TOK:12,ptarray:13,COMMA:14,ring_list:15,ring:16,"(":17,")":18,POINT:19,Z:20,ZM:21,M:22,EMPTY:23,point_untagged:24,polygon_list:25,polygon_untagged:26,point_list:27,LINESTRING:28,POLYGON:29,MULTIPOINT:30,MULTILINESTRING:31,MULTIPOLYGON:32,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",12:"DOUBLE_TOK",14:"COMMA",17:"(",18:")",19:"POINT",20:"Z",21:"ZM",22:"M",23:"EMPTY",28:"LINESTRING",29:"POLYGON",30:"MULTIPOINT",31:"MULTILINESTRING",32:"MULTIPOLYGON"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[3,2],[3,2],[11,2],[11,3],[11,4],[13,3],[13,1],[15,3],[15,1],[16,3],[4,4],[4,5],[4,5],[4,5],[4,2],[24,1],[24,3],[25,3],[25,1],[26,3],[27,3],[27,1],[6,4],[6,5],[6,5],[6,5],[6,2],[7,4],[7,5],[7,5],[7,5],[7,2],[8,4],[8,5],[8,5],[8,5],[8,2],[9,4],[9,5],[9,5],[9,5],[9,2],[10,4],[10,5],[10,5],[10,5],[10,2]],performAction:function(e,t,r,i,l,c,h){var u=c.length-1;switch(l){case 1:return c[u-1];case 2:return c[u-1];case 3:return c[u-1];case 4:return c[u-1];case 5:return c[u-1];case 6:return c[u-1];case 7:this.$=new n([Number(c[u-1]),Number(c[u])]);break;case 8:this.$=new n([Number(c[u-2]),Number(c[u-1]),Number(c[u])]);break;case 9:this.$=new n([Number(c[u-3]),Number(c[u-2]),Number(c[u-1]),Number(c[u])]);break;case 10:this.$=c[u-2].addPoint(c[u]);break;case 11:this.$=c[u];break;case 12:this.$=c[u-2].addRing(c[u]);break;case 13:this.$=new s(c[u]);break;case 14:this.$=new o(c[u-1]);break;case 15:this.$={type:"Point",coordinates:c[u-1].data[0]};break;case 16:this.$={type:"Point",coordinates:c[u-1].data[0],properties:{z:!0}};break;case 17:this.$={type:"Point",coordinates:c[u-1].data[0],properties:{z:!0,m:!0}};break;case 18:this.$={type:"Point",coordinates:c[u-1].data[0],properties:{m:!0}};break;case 19:this.$={type:"Point",coordinates:[]};break;case 20:this.$=c[u];break;case 21:this.$=c[u-1];break;case 22:this.$=c[u-2].addPolygon(c[u]);break;case 23:this.$=new a(c[u]);break;case 24:this.$=c[u-1];break;case 25:this.$=c[u-2].addPoint(c[u]);break;case 26:this.$=c[u];break;case 27:this.$={type:"LineString",coordinates:c[u-1].data};break;case 28:this.$={type:"LineString",coordinates:c[u-1].data,properties:{z:!0}};break;case 29:this.$={type:"LineString",coordinates:c[u-1].data,properties:{m:!0}};break;case 30:this.$={type:"LineString",coordinates:c[u-1].data,properties:{z:!0,m:!0}};break;case 31:this.$={type:"LineString",coordinates:[]};break;case 32:this.$={type:"Polygon",coordinates:c[u-1].toJSON()};break;case 33:this.$={type:"Polygon",coordinates:c[u-1].toJSON(),properties:{z:!0}};break;case 34:this.$={type:"Polygon",coordinates:c[u-1].toJSON(),properties:{m:!0}};break;case 35:this.$={type:"Polygon",coordinates:c[u-1].toJSON(),properties:{z:!0,m:!0}};break;case 36:this.$={type:"Polygon",coordinates:[]};break;case 37:this.$={type:"MultiPoint",coordinates:c[u-1].data};break;case 38:this.$={type:"MultiPoint",coordinates:c[u-1].data,properties:{z:!0}};break;case 39:this.$={type:"MultiPoint",coordinates:c[u-1].data,properties:{m:!0}};break;case 40:this.$={type:"MultiPoint",coordinates:c[u-1].data,properties:{z:!0,m:!0}};break;case 41:this.$={type:"MultiPoint",coordinates:[]};break;case 42:this.$={type:"MultiLineString",coordinates:c[u-1].toJSON()};break;case 43:this.$={type:"MultiLineString",coordinates:c[u-1].toJSON(),properties:{z:!0}};break;case 44:this.$={type:"MultiLineString",coordinates:c[u-1].toJSON(),properties:{m:!0}};break;case 45:this.$={type:"MultiLineString",coordinates:c[u-1].toJSON(),properties:{z:!0,m:!0}};break;case 46:this.$={type:"MultiLineString",coordinates:[]};break;case 47:this.$={type:"MultiPolygon",coordinates:c[u-1].toJSON()};break;case 48:this.$={type:"MultiPolygon",coordinates:c[u-1].toJSON(),properties:{z:!0}};break;case 49:this.$={type:"MultiPolygon",coordinates:c[u-1].toJSON(),properties:{m:!0}};break;case 50:this.$={type:"MultiPolygon",coordinates:c[u-1].toJSON(),properties:{z:!0,m:!0}};break;case 51:this.$={type:"MultiPolygon",coordinates:[]};break}},table:[{3:1,4:2,6:3,7:4,8:5,9:6,10:7,19:[1,8],28:[1,9],29:[1,10],30:[1,11],31:[1,12],32:[1,13]},{1:[3]},{5:[1,14]},{5:[1,15]},{5:[1,16]},{5:[1,17]},{5:[1,18]},{5:[1,19]},{17:[1,20],20:[1,21],21:[1,22],22:[1,23],23:[1,24]},{17:[1,25],20:[1,26],21:[1,28],22:[1,27],23:[1,29]},{17:[1,30],20:[1,31],21:[1,33],22:[1,32],23:[1,34]},{17:[1,35],20:[1,36],21:[1,38],22:[1,37],23:[1,39]},{17:[1,40],20:[1,41],21:[1,43],22:[1,42],23:[1,44]},{17:[1,45],20:[1,46],21:[1,48],22:[1,47],23:[1,49]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{11:51,12:[1,52],13:50},{17:[1,53]},{17:[1,54]},{17:[1,55]},{5:[2,19]},{11:58,12:[1,52],17:[1,59],24:57,27:56},{17:[1,60]},{17:[1,61]},{17:[1,62]},{5:[2,31]},{15:63,16:64,17:[1,65]},{17:[1,66]},{17:[1,67]},{17:[1,68]},{5:[2,36]},{11:58,12:[1,52],17:[1,59],24:57,27:69},{17:[1,70]},{17:[1,71]},{17:[1,72]},{5:[2,41]},{15:73,16:64,17:[1,65]},{17:[1,74]},{17:[1,75]},{17:[1,76]},{5:[2,46]},{17:[1,79],25:77,26:78},{17:[1,80]},{17:[1,81]},{17:[1,82]},{5:[2,51]},{14:[1,84],18:[1,83]},{14:[2,11],18:[2,11]},{12:[1,85]},{11:51,12:[1,52],13:86},{11:51,12:[1,52],13:87},{11:51,12:[1,52],13:88},{14:[1,90],18:[1,89]},{14:[2,26],18:[2,26]},{14:[2,20],18:[2,20]},{11:91,12:[1,52]},{11:58,12:[1,52],17:[1,59],24:57,27:92},{11:58,12:[1,52],17:[1,59],24:57,27:93},{11:58,12:[1,52],17:[1,59],24:57,27:94},{14:[1,96],18:[1,95]},{14:[2,13],18:[2,13]},{11:51,12:[1,52],13:97},{15:98,16:64,17:[1,65]},{15:99,16:64,17:[1,65]},{15:100,16:64,17:[1,65]},{14:[1,90],18:[1,101]},{11:58,12:[1,52],17:[1,59],24:57,27:102},{11:58,12:[1,52],17:[1,59],24:57,27:103},{11:58,12:[1,52],17:[1,59],24:57,27:104},{14:[1,96],18:[1,105]},{15:106,16:64,17:[1,65]},{15:107,16:64,17:[1,65]},{15:108,16:64,17:[1,65]},{14:[1,110],18:[1,109]},{14:[2,23],18:[2,23]},{15:111,16:64,17:[1,65]},{17:[1,79],25:112,26:78},{17:[1,79],25:113,26:78},{17:[1,79],25:114,26:78},{5:[2,15]},{11:115,12:[1,52]},{12:[1,116],14:[2,7],18:[2,7]},{14:[1,84],18:[1,117]},{14:[1,84],18:[1,118]},{14:[1,84],18:[1,119]},{5:[2,27]},{11:58,12:[1,52],17:[1,59],24:120},{18:[1,121]},{14:[1,90],18:[1,122]},{14:[1,90],18:[1,123]},{14:[1,90],18:[1,124]},{5:[2,32]},{16:125,17:[1,65]},{14:[1,84],18:[1,126]},{14:[1,96],18:[1,127]},{14:[1,96],18:[1,128]},{14:[1,96],18:[1,129]},{5:[2,37]},{14:[1,90],18:[1,130]},{14:[1,90],18:[1,131]},{14:[1,90],18:[1,132]},{5:[2,42]},{14:[1,96],18:[1,133]},{14:[1,96],18:[1,134]},{14:[1,96],18:[1,135]},{5:[2,47]},{17:[1,79],26:136},{14:[1,96],18:[1,137]},{14:[1,110],18:[1,138]},{14:[1,110],18:[1,139]},{14:[1,110],18:[1,140]},{14:[2,10],18:[2,10]},{12:[1,141],14:[2,8],18:[2,8]},{5:[2,16]},{5:[2,17]},{5:[2,18]},{14:[2,25],18:[2,25]},{14:[2,21],18:[2,21]},{5:[2,28]},{5:[2,29]},{5:[2,30]},{14:[2,12],18:[2,12]},{14:[2,14],18:[2,14]},{5:[2,33]},{5:[2,34]},{5:[2,35]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,43]},{5:[2,44]},{5:[2,45]},{14:[2,22],18:[2,22]},{14:[2,24],18:[2,24]},{5:[2,48]},{5:[2,49]},{5:[2,50]},{14:[2,9],18:[2,9]}],defaultActions:{14:[2,1],15:[2,2],16:[2,3],17:[2,4],18:[2,5],19:[2,6],24:[2,19],29:[2,31],34:[2,36],39:[2,41],44:[2,46],49:[2,51],83:[2,15],89:[2,27],95:[2,32],101:[2,37],105:[2,42],109:[2,47],117:[2,16],118:[2,17],119:[2,18],122:[2,28],123:[2,29],124:[2,30],127:[2,33],128:[2,34],129:[2,35],130:[2,38],131:[2,39],132:[2,40],133:[2,43],134:[2,44],135:[2,45],138:[2,48],139:[2,49],140:[2,50]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=this,r=[0],i=[null],n=[],o=this.table,s="",a=0,l=0,c=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,"undefined"==typeof this.lexer.yylloc&&(this.lexer.yylloc={});var h=this.lexer.yylloc;n.push(h);var u=this.lexer.options&&this.lexer.options.ranges;function d(){var e;return e=t.lexer.lex()||1,"number"!==typeof e&&(e=t.symbols_[e]||e),e}"function"===typeof this.yy.parseError&&(this.parseError=this.yy.parseError);var p,f,m,y,g,w,b,v,A,M={};while(1){if(m=r[r.length-1],this.defaultActions[m]?y=this.defaultActions[m]:(null!==p&&"undefined"!=typeof p||(p=d()),y=o[m]&&o[m][p]),"undefined"===typeof y||!y.length||!y[0]){var E="";if(!c){for(w in A=[],o[m])this.terminals_[w]&&w>2&&A.push("'"+this.terminals_[w]+"'");E=this.lexer.showPosition?"Parse error on line "+(a+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(a+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(E,{text:this.lexer.match,token:this.terminals_[p]||p,line:this.lexer.yylineno,loc:h,expected:A})}}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+p);switch(y[0]){case 1:r.push(p),i.push(this.lexer.yytext),n.push(this.lexer.yylloc),r.push(y[1]),p=null,f?(p=f,f=null):(l=this.lexer.yyleng,s=this.lexer.yytext,a=this.lexer.yylineno,h=this.lexer.yylloc,c>0&&c--);break;case 2:if(b=this.productions_[y[1]][1],M.$=i[i.length-b],M._$={first_line:n[n.length-(b||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(b||1)].first_column,last_column:n[n.length-1].last_column},u&&(M._$.range=[n[n.length-(b||1)].range[0],n[n.length-1].range[1]]),g=this.performAction.call(M,s,l,a,this.yy,y[1],i,n),"undefined"!==typeof g)return g;b&&(r=r.slice(0,-1*b*2),i=i.slice(0,-1*b),n=n.slice(0,-1*b)),r.push(this.productions_[y[1]][0]),i.push(M.$),n.push(M._$),v=o[r[r.length-2]][r[r.length-1]],r.push(v);break;case 3:return!0}}return!0}},t=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===i.length?this.yylloc.first_column:0)+i[i.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,r,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),s=0;s<o.length;s++)if(r=this._input.match(this.rules[o[s]]),r&&(!t||r[0].length>t[0].length)&&(t=r,i=s,!this.options.flex))break;return t?(n=t[0].match(/(?:\r\n?|\n).*/g),n&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,o[i],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return"undefined"!==typeof e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,t,r,i){switch(r){case 0:break;case 1:return 17;case 2:return 18;case 3:return 12;case 4:return 19;case 5:return 28;case 6:return 29;case 7:return 30;case 8:return 31;case 9:return 32;case 10:return 14;case 11:return 23;case 12:return 22;case 13:return 20;case 14:return 21;case 15:return 5;case 16:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:\()/,/^(?:\))/,/^(?:-?[0-9]+(\.[0-9]+)?([eE][\-\+]?[0-9]+)?)/,/^(?:POINT\b)/,/^(?:LINESTRING\b)/,/^(?:POLYGON\b)/,/^(?:MULTIPOINT\b)/,/^(?:MULTILINESTRING\b)/,/^(?:MULTIPOLYGON\b)/,/^(?:,)/,/^(?:EMPTY\b)/,/^(?:M\b)/,/^(?:Z\b)/,/^(?:ZM\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],inclusive:!0}}};return e}();function r(){this.yy={}}return e.lexer=t,r.prototype=e,e.Parser=r,new r}();function n(e){this.data=[e],this.type="PointArray"}function o(e){this.data=e,this.type="Ring"}function s(e){this.data=[e],this.type="RingList"}function a(e){this.data=[e],this.type="PolygonList"}function l(t){var i;try{i=r.parse(t)}catch(n){throw Error("Unable to parse: "+n)}return e.Primitive(i)}function c(e){for(var t=[],r="",i=0;i<e.length;i++)t.push(e[i].join(" "));return r+="("+t.join(", ")+")",r}function h(e){var t="POINT ";return void 0===e.coordinates||0===e.coordinates.length?(t+="EMPTY",t):(3===e.coordinates.length?e.properties&&!0===e.properties.m?t+="M ":t+="Z ":4===e.coordinates.length&&(t+="ZM "),t+="("+e.coordinates.join(" ")+")",t)}function u(e){var t="LINESTRING ";return void 0===e.coordinates||0===e.coordinates.length||0===e.coordinates[0].length?(t+="EMPTY",t):(3===e.coordinates[0].length?e.properties&&!0===e.properties.m?t+="M ":t+="Z ":4===e.coordinates[0].length&&(t+="ZM "),t+=c(e.coordinates),t)}function d(e){var t="POLYGON ";if(void 0===e.coordinates||0===e.coordinates.length||0===e.coordinates[0].length)return t+="EMPTY",t;3===e.coordinates[0][0].length?e.properties&&!0===e.properties.m?t+="M ":t+="Z ":4===e.coordinates[0][0].length&&(t+="ZM "),t+="(";for(var r=[],i=0;i<e.coordinates.length;i++)r.push(c(e.coordinates[i]));return t+=r.join(", "),t+=")",t}function p(e){var t="MULTIPOINT ";return void 0===e.coordinates||0===e.coordinates.length||0===e.coordinates[0].length?(t+="EMPTY",t):(3===e.coordinates[0].length?e.properties&&!0===e.properties.m?t+="M ":t+="Z ":4===e.coordinates[0].length&&(t+="ZM "),t+=c(e.coordinates),t)}function f(e){var t="MULTILINESTRING ";if(void 0===e.coordinates||0===e.coordinates.length||0===e.coordinates[0].length)return t+="EMPTY",t;3===e.coordinates[0][0].length?e.properties&&!0===e.properties.m?t+="M ":t+="Z ":4===e.coordinates[0][0].length&&(t+="ZM "),t+="(";for(var r=[],i=0;i<e.coordinates.length;i++)r.push(c(e.coordinates[i]));return t+=r.join(", "),t+=")",t}function m(e){var t="MULTIPOLYGON ";if(void 0===e.coordinates||0===e.coordinates.length||0===e.coordinates[0].length||0===e.coordinates[0][0].length)return t+="EMPTY",t;3===e.coordinates[0][0][0].length?e.properties&&!0===e.properties.m?t+="M ":t+="Z ":4===e.coordinates[0][0][0].length&&(t+="ZM "),t+="(";for(var r=[],i=0;i<e.coordinates.length;i++){for(var n="(",o=[],s=0;s<e.coordinates[i].length;s++)o.push(c(e.coordinates[i][s]));n+=o.join(", "),n+=")",r.push(n)}return t+=r.join(", "),t+=")",t}function y(e){switch(e.type){case"Point":return h(e);case"LineString":return u(e);case"Polygon":return d(e);case"MultiPoint":return p(e);case"MultiLineString":return f(e);case"MultiPolygon":return m(e);case"GeometryCollection":var t="GEOMETRYCOLLECTION",r=[];for(i=0;i<e.geometries.length;i++)r.push(y(e.geometries[i]));return t+"("+r.join(", ")+")";default:throw Error("Unknown Type: "+e.type)}}return n.prototype.addPoint=function(e){return"PointArray"===e.type?this.data=this.data.concat(e.data):this.data.push(e),this},n.prototype.toJSON=function(){return this.data},o.prototype.toJSON=function(){for(var e=[],t=0;t<this.data.data.length;t++)e.push(this.data.data[t]);return e},s.prototype.addRing=function(e){return this.data.push(e),this},s.prototype.toJSON=function(){for(var e=[],t=0;t<this.data.length;t++)e.push(this.data[t].toJSON());return e.length,e},a.prototype.addPolygon=function(e){return this.data.push(e),this},a.prototype.toJSON=function(){for(var e=[],t=0;t<this.data.length;t++)e=e.concat([this.data[t].toJSON()]);return e},t.parser=r,t.Parser=r.Parser,t.parse=l,t.convert=y,t})},375(e,t){(function(t,r){"object"===typeof e.exports&&(e.exports=r()),"object"===typeof window&&(t.Terraformer=r())})(this,function(){"use strict";var e={},t=6378137,r=57.29577951308232,i=.017453292519943,n={type:"link",properties:{href:"http://spatialreference.org/ref/sr-org/6928/ogcwkt/",type:"ogcwkt"}},o={type:"link",properties:{href:"http://spatialreference.org/ref/epsg/4326/ogcwkt/",type:"ogcwkt"}};function s(e){return"[object Array]"===Object.prototype.toString.call(e)}function a(){var e=Array.prototype.slice.apply(arguments);void 0!==typeof console&&console.warn&&console.warn.apply(console,e)}function l(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function c(e){if(e.type)switch(e.type){case"Point":return[e.coordinates[0],e.coordinates[1],e.coordinates[0],e.coordinates[1]];case"MultiPoint":return d(e.coordinates);case"LineString":return d(e.coordinates);case"MultiLineString":return h(e.coordinates);case"Polygon":return h(e.coordinates);case"MultiPolygon":return u(e.coordinates);case"Feature":return e.geometry?c(e.geometry):null;case"FeatureCollection":return p(e);case"GeometryCollection":return f(e);default:throw new Error("Unknown type: "+e.type)}return null}function h(e){for(var t=null,r=null,i=null,n=null,o=0;o<e.length;o++)for(var s=e[o],a=0;a<s.length;a++){var l=s[a],c=l[0],h=l[1];(null===t||c<t)&&(t=c),(null===r||c>r)&&(r=c),(null===i||h<i)&&(i=h),(null===n||h>n)&&(n=h)}return[t,i,r,n]}function u(e){for(var t=null,r=null,i=null,n=null,o=0;o<e.length;o++)for(var s=e[o],a=0;a<s.length;a++)for(var l=s[a],c=0;c<l.length;c++){var h=l[c],u=h[0],d=h[1];(null===t||u<t)&&(t=u),(null===r||u>r)&&(r=u),(null===i||d<i)&&(i=d),(null===n||d>n)&&(n=d)}return[t,i,r,n]}function d(e){for(var t=null,r=null,i=null,n=null,o=0;o<e.length;o++){var s=e[o],a=s[0],l=s[1];(null===t||a<t)&&(t=a),(null===r||a>r)&&(r=a),(null===i||l<i)&&(i=l),(null===n||l>n)&&(n=l)}return[t,i,r,n]}function p(e){for(var t,r=[],i=e.features.length-1;i>=0;i--)t=c(e.features[i].geometry),r.push([t[0],t[1]]),r.push([t[2],t[3]]);return d(r)}function f(e){for(var t,r=[],i=e.geometries.length-1;i>=0;i--)t=c(e.geometries[i]),r.push([t[0],t[1]]),r.push([t[2],t[3]]);return d(r)}function m(e){var t=c(e);return{x:t[0],y:t[1],w:Math.abs(t[0]-t[2]),h:Math.abs(t[1]-t[3])}}function y(e){return e*r}function g(e){return e*i}function w(e,t){for(var r=0;r<e.length;r++)"number"===typeof e[r][0]&&(e[r]=t(e[r])),"object"===typeof e[r]&&(e[r]=w(e[r],t));return e}function b(e){var r=e[0],i=e[1];return[y(r/t)-360*Math.floor((y(r/t)+180)/360),y(Math.PI/2-2*Math.atan(Math.exp(-1*i/t)))]}function v(e){var r=e[0],i=Math.max(Math.min(e[1],89.99999),-89.99999);return[g(r)*t,t/2*Math.log((1+Math.sin(g(i)))/(1-Math.sin(g(i))))]}function A(e,t,r){if("Point"===e.type)e.coordinates=t(e.coordinates);else if("Feature"===e.type)e.geometry=A(e.geometry,t,!0);else if("FeatureCollection"===e.type)for(var i=0;i<e.features.length;i++)e.features[i]=A(e.features[i],t,!0);else if("GeometryCollection"===e.type)for(var o=0;o<e.geometries.length;o++)e.geometries[o]=A(e.geometries[o],t,!0);else e.coordinates=w(e.coordinates,t);return r||t===v&&(e.crs=n),t===b&&delete e.crs,e}function M(e){return A(e,v)}function E(e){return A(e,b)}function S(e,t){return e<t?-1:e>t?1:0}function T(e,t){return e[0]>t[0]?-1:e[0]<t[0]?1:e[1]>t[1]?-1:e[1]<t[1]?1:0}function x(e,t,r){return S((t[0]-e[0])*(r[1]-e[1])-(r[0]-e[0])*(t[1]-e[1]),0)}function k(e,t){var r=t[0]-e[0],i=t[1]-e[1];return r*r+i*i}function I(e,t){var r=t;for(var i in e){var n=x(t,r,e[i]);(-1===n||0===n&&k(t,e[i])>k(t,r))&&(r=e[i])}return r}function P(e){if(0===e.length)return[];if(1===e.length)return e;for(var t=[e.sort(T)[0]],r=0;r<t.length;r++){var i=I(e,t[r]);i!==t[0]&&t.push(i)}return t}function N(e){for(var t,r=0;r<e.length-3;r++){var i=e[r],n=e[r+1],o=e[r+2],s=[n[0]-i[0],n[1]-i[1]],a=o[0]*s[1]-o[1]*s[0]+s[0]*i[1]-s[1]*i[0];if(0===r)t=a<0;else if(t&&a>0||!t&&a<0)return!1}return!0}function L(e,t){for(var r=!1,i=-1,n=e.length,o=n-1;++i<n;o=i)(e[i][1]<=t[1]&&t[1]<e[o][1]||e[o][1]<=t[1]&&t[1]<e[i][1])&&t[0]<(e[o][0]-e[i][0])*(t[1]-e[i][1])/(e[o][1]-e[i][1])+e[i][0]&&(r=!r);return r}function R(e,t){if(e&&e.length){if(1===e.length)return L(e[0],t);if(L(e[0],t)){for(var r=1;r<e.length;r++)if(L(e[r],t))return!1;return!0}return!1}return!1}function O(e,t,r,i){var n=(i[0]-r[0])*(e[1]-r[1])-(i[1]-r[1])*(e[0]-r[0]),o=(t[0]-e[0])*(e[1]-r[1])-(t[1]-e[1])*(e[0]-r[0]),s=(i[1]-r[1])*(t[0]-e[0])-(i[0]-r[0])*(t[1]-e[1]);if(0!==s){var a=n/s,l=o/s;if(0<=a&&a<=1&&0<=l&&l<=1)return!0}return!1}function C(e){return!isNaN(parseFloat(e))&&isFinite(e)}function G(e,t){if(C(e[0][0])){if(C(t[0][0])){for(var r=0;r<e.length-1;r++)for(var i=0;i<t.length-1;i++)if(O(e[r],e[r+1],t[i],t[i+1]))return!0}else for(var n=0;n<t.length;n++)if(G(e,t[n]))return!0}else for(var o=0;o<e.length;o++)if(G(e[o],t))return!0;return!1}function j(e){for(var t=[],r=0;r<e.length;r++){var i=e[r].slice();!1===Z(i[0],i[i.length-1])&&i.push(i[0]),t.push(i)}return t}function Z(e,t){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function D(e,t){if(e.length!==t.length)return!1;for(var r=e.slice().sort(T),i=t.slice().sort(T),n=0;n<r.length;n++){if(r[n].length!==i[n].length)return!1;for(var o=0;o<r.length;o++)if(r[n][o]!==i[n][o])return!1}return!0}var z=["length"];function U(e){if(e)switch(e.type){case"Point":return new W(e);case"MultiPoint":return new F(e);case"LineString":return new V(e);case"MultiLineString":return new J(e);case"Polygon":return new B(e);case"MultiPolygon":return new Y(e);case"Feature":return new Q(e);case"FeatureCollection":return new H(e);case"GeometryCollection":return new X(e);default:throw new Error("Unknown type: "+e.type)}}function W(e){var t=Array.prototype.slice.call(arguments);if(e&&"Point"===e.type&&e.coordinates)l(this,e);else if(e&&s(e))this.coordinates=e;else{if(!(t.length>=2))throw"Terraformer: invalid input for Terraformer.Point";this.coordinates=t}this.type="Point"}function F(e){if(e&&"MultiPoint"===e.type&&e.coordinates)l(this,e);else{if(!s(e))throw"Terraformer: invalid input for Terraformer.MultiPoint";this.coordinates=e}this.type="MultiPoint"}function V(e){if(e&&"LineString"===e.type&&e.coordinates)l(this,e);else{if(!s(e))throw"Terraformer: invalid input for Terraformer.LineString";this.coordinates=e}this.type="LineString"}function J(e){if(e&&"MultiLineString"===e.type&&e.coordinates)l(this,e);else{if(!s(e))throw"Terraformer: invalid input for Terraformer.MultiLineString";this.coordinates=e}this.type="MultiLineString"}function B(e){if(e&&"Polygon"===e.type&&e.coordinates)l(this,e);else{if(!s(e))throw"Terraformer: invalid input for Terraformer.Polygon";this.coordinates=e}this.type="Polygon"}function Y(e){if(e&&"MultiPolygon"===e.type&&e.coordinates)l(this,e);else{if(!s(e))throw"Terraformer: invalid input for Terraformer.MultiPolygon";this.coordinates=e}this.type="MultiPolygon"}function Q(e){if(e&&"Feature"===e.type)l(this,e);else{if(!(e&&e.type&&e.coordinates))throw"Terraformer: invalid input for Terraformer.Feature";this.geometry=e}this.type="Feature"}function H(e){if(e&&"FeatureCollection"===e.type&&e.features)l(this,e);else{if(!s(e))throw"Terraformer: invalid input for Terraformer.FeatureCollection";this.features=e}this.type="FeatureCollection"}function X(e){if(e&&"GeometryCollection"===e.type&&e.geometries)l(this,e);else if(s(e))this.geometries=e;else{if(!e.coordinates||!e.type)throw"Terraformer: invalid input for Terraformer.GeometryCollection";this.type="GeometryCollection",this.geometries=[e]}this.type="GeometryCollection"}function K(e,t,r){for(var i=v(e),n=r||64,o={type:"Polygon",coordinates:[[]]},s=1;s<=n;s++){var a=s*(360/n)*Math.PI/180;o.coordinates[0].push([i[0]+t*Math.cos(a),i[1]+t*Math.sin(a)])}return o.coordinates=j(o.coordinates),E(o)}function q(e,t,r){var i=r||64,n=t||250;if(!e||e.length<2||!n||!i)throw new Error("Terraformer: missing parameter for Terraformer.Circle");l(this,new Q({type:"Feature",geometry:K(e,n,i),properties:{radius:n,center:e,steps:i}}))}return U.prototype.toMercator=function(){return M(this)},U.prototype.toGeographic=function(){return E(this)},U.prototype.envelope=function(){return m(this)},U.prototype.bbox=function(){return c(this)},U.prototype.convexHull=function(){var e,t,r=[];if("Point"===this.type)return null;if("LineString"===this.type||"MultiPoint"===this.type){if(!(this.coordinates&&this.coordinates.length>=3))return null;r=this.coordinates}else if("Polygon"===this.type||"MultiLineString"===this.type){if(!(this.coordinates&&this.coordinates.length>0))return null;for(e=0;e<this.coordinates.length;e++)r=r.concat(this.coordinates[e]);if(r.length<3)return null}else if("MultiPolygon"===this.type){if(!(this.coordinates&&this.coordinates.length>0))return null;for(e=0;e<this.coordinates.length;e++)for(t=0;t<this.coordinates[e].length;t++)r=r.concat(this.coordinates[e][t]);if(r.length<3)return null}else if("Feature"===this.type){var i=new U(this.geometry);return i.convexHull()}return new B({type:"Polygon",coordinates:j([P(r)])})},U.prototype.toJSON=function(){var e={};for(var t in this)this.hasOwnProperty(t)&&-1===z.indexOf(t)&&(e[t]=this[t]);return e.bbox=c(this),e},U.prototype.contains=function(e){return new U(e).within(this)},U.prototype.within=function(e){var t,r,i,n;if("Feature"===e.type&&(e=e.geometry),"Point"===e.type&&"Point"===this.type)return Z(this.coordinates,e.coordinates);if("MultiLineString"===e.type&&"Point"===this.type)for(r=0;r<e.coordinates.length;r++){var o={type:"LineString",coordinates:e.coordinates[r]};if(this.within(o))return!0}if(("LineString"===e.type||"MultiPoint"===e.type)&&"Point"===this.type)for(r=0;r<e.coordinates.length;r++){if(this.coordinates.length!==e.coordinates[r].length)return!1;if(Z(this.coordinates,e.coordinates[r]))return!0}if("Polygon"===e.type){if("Polygon"===this.type){if(e.coordinates.length===this.coordinates.length)for(r=0;r<this.coordinates.length;r++)if(D(this.coordinates[r],e.coordinates[r]))return!0;return!(!this.coordinates.length||!R(e.coordinates,this.coordinates[0][0]))&&!G(j(this.coordinates),j(e.coordinates))}if("Point"===this.type)return R(e.coordinates,this.coordinates);if("LineString"===this.type||"MultiPoint"===this.type){if(!this.coordinates||0===this.coordinates.length)return!1;for(r=0;r<this.coordinates.length;r++)if(!1===R(e.coordinates,this.coordinates[r]))return!1;return!0}if("MultiLineString"===this.type){for(r=0;r<this.coordinates.length;r++){var s=new V(this.coordinates[r]);if(!1===s.within(e))return n++,!1}return!0}if("MultiPolygon"===this.type){for(r=0;r<this.coordinates.length;r++){var a=new U({type:"Polygon",coordinates:this.coordinates[r]});if(!1===a.within(e))return!1}return!0}}if("MultiPolygon"===e.type){if("Point"===this.type){if(e.coordinates.length)for(r=0;r<e.coordinates.length;r++)if(t=e.coordinates[r],R(t,this.coordinates)&&!1===G([this.coordinates],e.coordinates))return!0;return!1}if("Polygon"===this.type){for(r=0;r<this.coordinates.length;r++)if(e.coordinates[r].length===this.coordinates.length)for(i=0;i<this.coordinates.length;i++)if(D(this.coordinates[i],e.coordinates[r][i]))return!0;if(!1===G(this.coordinates,e.coordinates)&&e.coordinates.length){for(r=0;r<e.coordinates.length;r++)t=e.coordinates[r],n=!1!==R(t,this.coordinates[0][0]);return n}}else if("LineString"===this.type||"MultiPoint"===this.type)for(r=0;r<e.coordinates.length;r++){var l={type:"Polygon",coordinates:e.coordinates[r]};return!!this.within(l)}else{if("MultiLineString"===this.type){for(r=0;r<this.coordinates.length;r++){var c=new V(this.coordinates[r]);if(!1===c.within(e))return!1}return!0}if("MultiPolygon"===this.type){for(r=0;r<e.coordinates.length;r++){var h={type:"Polygon",coordinates:e.coordinates[r]};if(!1===this.within(h))return!1}return!0}}}return!1},U.prototype.intersects=function(e){"Feature"===e.type&&(e=e.geometry);var t=new U(e);if(this.within(e)||t.within(this))return!0;if("Point"!==this.type&&"MultiPoint"!==this.type&&"Point"!==e.type&&"MultiPoint"!==e.type)return G(this.coordinates,e.coordinates);if("Feature"===this.type){var r=new U(this.geometry);return r.intersects(e)}return a("Type "+this.type+" to "+e.type+" intersection is not supported by intersects"),!1},W.prototype=new U,W.prototype.constructor=W,F.prototype=new U,F.prototype.constructor=F,F.prototype.forEach=function(e){for(var t=0;t<this.coordinates.length;t++)e.apply(this,[this.coordinates[t],t,this.coordinates]);return this},F.prototype.addPoint=function(e){return this.coordinates.push(e),this},F.prototype.insertPoint=function(e,t){return this.coordinates.splice(t,0,e),this},F.prototype.removePoint=function(e){return"number"===typeof e?this.coordinates.splice(e,1):this.coordinates.splice(this.coordinates.indexOf(e),1),this},F.prototype.get=function(e){return new W(this.coordinates[e])},V.prototype=new U,V.prototype.constructor=V,V.prototype.addVertex=function(e){return this.coordinates.push(e),this},V.prototype.insertVertex=function(e,t){return this.coordinates.splice(t,0,e),this},V.prototype.removeVertex=function(e){return this.coordinates.splice(e,1),this},J.prototype=new U,J.prototype.constructor=J,J.prototype.forEach=function(e){for(var t=0;t<this.coordinates.length;t++)e.apply(this,[this.coordinates[t],t,this.coordinates])},J.prototype.get=function(e){return new V(this.coordinates[e])},B.prototype=new U,B.prototype.constructor=B,B.prototype.addVertex=function(e){return this.insertVertex(e,this.coordinates[0].length-1),this},B.prototype.insertVertex=function(e,t){return this.coordinates[0].splice(t,0,e),this},B.prototype.removeVertex=function(e){return this.coordinates[0].splice(e,1),this},B.prototype.close=function(){this.coordinates=j(this.coordinates)},B.prototype.hasHoles=function(){return this.coordinates.length>1},B.prototype.holes=function(){var e=[];if(this.hasHoles())for(var t=1;t<this.coordinates.length;t++)e.push(new B([this.coordinates[t]]));return e},Y.prototype=new U,Y.prototype.constructor=Y,Y.prototype.forEach=function(e){for(var t=0;t<this.coordinates.length;t++)e.apply(this,[this.coordinates[t],t,this.coordinates])},Y.prototype.get=function(e){return new B(this.coordinates[e])},Y.prototype.close=function(){var e=[];return this.forEach(function(t){e.push(j(t))}),this.coordinates=e,this},Q.prototype=new U,Q.prototype.constructor=Q,H.prototype=new U,H.prototype.constructor=H,H.prototype.forEach=function(e){for(var t=0;t<this.features.length;t++)e.apply(this,[this.features[t],t,this.features])},H.prototype.get=function(e){var t;return this.forEach(function(r){r.id===e&&(t=r)}),new Q(t)},X.prototype=new U,X.prototype.constructor=X,X.prototype.forEach=function(e){for(var t=0;t<this.geometries.length;t++)e.apply(this,[this.geometries[t],t,this.geometries])},X.prototype.get=function(e){return new U(this.geometries[e])},q.prototype=new U,q.prototype.constructor=q,q.prototype.recalculate=function(){return this.geometry=K(this.properties.center,this.properties.radius,this.properties.steps),this},q.prototype.center=function(e){return e&&(this.properties.center=e,this.recalculate()),this.properties.center},q.prototype.radius=function(e){return e&&(this.properties.radius=e,this.recalculate()),this.properties.radius},q.prototype.steps=function(e){return e&&(this.properties.steps=e,this.recalculate()),this.properties.steps},q.prototype.toJSON=function(){var e=U.prototype.toJSON.call(this);return e},e.Primitive=U,e.Point=W,e.MultiPoint=F,e.LineString=V,e.MultiLineString=J,e.Polygon=B,e.MultiPolygon=Y,e.Feature=Q,e.FeatureCollection=H,e.GeometryCollection=X,e.Circle=q,e.toMercator=M,e.toGeographic=E,e.Tools={},e.Tools.positionToMercator=v,e.Tools.positionToGeographic=b,e.Tools.applyConverter=A,e.Tools.toMercator=M,e.Tools.toGeographic=E,e.Tools.createCircle=K,e.Tools.calculateBounds=c,e.Tools.calculateEnvelope=m,e.Tools.coordinatesContainPoint=L,e.Tools.polygonContainsPoint=R,e.Tools.arraysIntersectArrays=G,e.Tools.coordinatesContainPoint=L,e.Tools.coordinatesEqual=D,e.Tools.convexHull=P,e.Tools.isConvex=N,e.MercatorCRS=n,e.GeographicCRS=o,e})},979(e,t,r){(function(t,i){if("object"===typeof e.exports&&(e.exports=i(r(375))),"object"===typeof t.navigator){if(!t.Terraformer)throw new Error("Terraformer.ArcGIS requires the core Terraformer library. https://github.com/esri/Terraformer");t.Terraformer.ArcGIS=i(t.Terraformer)}})(this,function(e){var t={};function r(e){var t,r,i,n,o=0,s=0,a=[];i=e.match(/((\+|\-)[^\+\-]+)/g),n=parseInt(i[0],32);for(var l=1;l<i.length;l+=2)t=parseInt(i[l],32)+o,o=t,r=parseInt(i[l+1],32)+s,s=r,a.push([t/n,r/n]);return a}function i(e){return n(e[0],e[e.length-1])||e.push(e[0]),e}function n(e,t){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function o(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function s(e){var t,r=0,i=0,n=e.length,o=e[i];for(i;i<n-1;i++)t=e[i+1],r+=(t[0]-o[0])*(t[1]+o[1]),o=t;return r>=0}function a(e){var t=[],r=e.slice(0),n=i(r.shift().slice(0));if(n.length>=4){s(n)||n.reverse(),t.push(n);for(var o=0;o<r.length;o++){var a=i(r[o].slice(0));a.length>=4&&(s(a)&&a.reverse(),t.push(a))}}return t}function l(e){for(var t=[],r=0;r<e.length;r++)for(var i=a(e[r]),n=i.length-1;n>=0;n--){var o=i[n].slice(0);t.push(o)}return t}function c(t,r){var i=e.Tools.arraysIntersectArrays(t,r),n=e.Tools.coordinatesContainPoint(t,r[0]);return!(i||!n)}function h(t){for(var r,n,o,a=[],l=[],h=0;h<t.length;h++){var u=i(t[h].slice(0));if(!(u.length<4))if(s(u)){var d=[u.slice().reverse()];a.push(d)}else l.push(u.slice().reverse())}var p=[];while(l.length){o=l.pop();var f=!1;for(r=a.length-1;r>=0;r--)if(n=a[r][0],c(n,o)){a[r].push(o),f=!0;break}f||p.push(o)}while(p.length){o=p.pop();var m=!1;for(r=a.length-1;r>=0;r--)if(n=a[r][0],e.Tools.arraysIntersectArrays(n,o)){a[r].push(o),m=!0;break}m||a.push([o.reverse()])}return 1===a.length?{type:"Polygon",coordinates:a[0]}:{type:"MultiPolygon",coordinates:a}}function u(t,i){var n={};return i=i||{},i.idAttribute=i.idAttribute||void 0,!t.spatialReference||3857!==t.spatialReference.wkid&&102100!==t.spatialReference.wkid||(n.crs=e.MercatorCRS),"number"===typeof t.x&&"number"===typeof t.y&&(n.type="Point",n.coordinates=[t.x,t.y],(t.z||t.m)&&n.coordinates.push(t.z),t.m&&n.coordinates.push(t.m)),t.points&&(n.type="MultiPoint",n.coordinates=t.points.slice(0)),t.paths&&(1===t.paths.length?(n.type="LineString",n.coordinates=t.paths[0].slice(0)):(n.type="MultiLineString",n.coordinates=t.paths.slice(0))),t.rings&&(n=h(t.rings.slice(0))),"number"===typeof t.xmin&&"number"===typeof t.ymin&&"number"===typeof t.xmax&&"number"===typeof t.ymax&&(n.type="Polygon",n.coordinates=[[[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax]]]),(t.compressedGeometry||t.geometry||t.attributes)&&(n.type="Feature",t.compressedGeometry&&(t.geometry={paths:[r(t.compressedGeometry)]}),n.geometry=t.geometry?u(t.geometry):null,n.properties=t.attributes?o(t.attributes):null,t.attributes&&(n.id=t.attributes[i.idAttribute]||t.attributes.OBJECTID||t.attributes.FID)),new e.Primitive(n)}function d(e,t){var r;t=t||{};var i=t.idAttribute||"OBJECTID";r=t.sr?{wkid:t.sr}:e&&e.crs&&"urn:ogc:def:crs:OGC:1.3:CRS84"!=e.crs.properties.name?null:{wkid:4326};var n,s={};switch(e.type){case"Point":s.x=e.coordinates[0],s.y=e.coordinates[1],e.coordinates[2]&&(s.z=e.coordinates[2]),e.coordinates[3]&&(s.m=e.coordinates[3]),s.spatialReference=r;break;case"MultiPoint":s.points=e.coordinates.slice(0),s.spatialReference=r;break;case"LineString":s.paths=[e.coordinates.slice(0)],s.spatialReference=r;break;case"MultiLineString":s.paths=e.coordinates.slice(0),s.spatialReference=r;break;case"Polygon":s.rings=a(e.coordinates.slice(0)),s.spatialReference=r;break;case"MultiPolygon":s.rings=l(e.coordinates.slice(0)),s.spatialReference=r;break;case"Feature":e.geometry&&(s.geometry=d(e.geometry,t)),s.attributes=e.properties?o(e.properties):{},e.id&&(s.attributes[i]=e.id);break;case"FeatureCollection":for(s=[],n=0;n<e.features.length;n++)s.push(d(e.features[n],t));break;case"GeometryCollection":for(s=[],n=0;n<e.geometries.length;n++)s.push(d(e.geometries[n],t));break}return s}function p(t){return new e.LineString(r(t))}return t.parse=u,t.convert=d,t.toGeoJSON=u,t.fromGeoJSON=d,t.parseCompressedGeometry=p,t})}},t={};function r(i){var n=t[i];if(void 0!==n)return n.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,r),o.exports}(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}})(),(()=>{r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{r.p=""})();var n={};return(()=>{"use strict";r.d(n,{default:()=>ko});var e={};if(r.r(e),r.d(e,{hasBrowserEnv:()=>Dr,hasStandardBrowserEnv:()=>Ur,hasStandardBrowserWebWorkerEnv:()=>Wr,navigator:()=>zr,origin:()=>Fr}),"undefined"!==typeof window){var t=window.document.currentScript,i=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var o=function(){var e=this,t=e._self._c;return t("loading-box",{attrs:{loading:e.isLoading}},[t("div",{staticClass:"arcgisMap-box"},[t("div",{staticClass:"arcgisMapBox",attrs:{id:e.mapId}}),e.pathCoordinates.length>0&&e.noAbleMoving?t("div",{staticClass:"controls",class:"controls_"+e.postion},[t("div",{staticClass:"controls-item",class:{"controls-active":e.currentPathIndex>0},on:{click:e.changeMove}},[e._v(" "+e._s(0==e.currentPathIndex?"开始":e.isPaused?"继续":"暂停")+" ")]),t("div",{staticClass:"controls-item",on:{click:e.changeSpeed}},[t("p",[e._v(e._s(e.speedNum)+" "),t("svgIcon",{attrs:{name:"close",width:"14",color:"#000"}})],1),t("p",[e._v("加速")])]),t("div",{staticClass:"controls-item",on:{click:e.stopAnimation}},[e._v("重置")]),"top"==e.postion||"bottom"==e.postion?t("div",{staticClass:"controls-item",on:{click:function(t){return e.drawMeasurement("distance")}}},[e._v(" 测距 ")]):e._e(),"top"==e.postion||"bottom"==e.postion?t("div",{staticClass:"controls-item",on:{click:function(t){return e.drawMeasurement("area")}}},[e._v("测面积")]):e._e(),"top"==e.postion||"bottom"==e.postion?t("div",{staticClass:"controls-item",on:{click:e.clearMeasurement}},[e._v("清除")]):e._e()]):e._e(),t("CustomTooltip",{ref:"tooltip",scopedSlots:e._u([{key:"default",fn:function({data:r}){return[t("div",[e._v(" 经纬度: "),t("b",[e._v(e._s(r.longitude)+"-"+e._s(r.latitude))])]),t("div",[e._v(" 时间: "),t("b",[e._v(e._s(r.time))])])]}}])})],1)])},s=[],a=r(3);const l={initJs:"https://web.joinken.cn:82/arcgis/4.30/init.js",initCss:"https://web.joinken.cn:82/arcgis/4.30/esri/themes/light/main.css",config:null,layersType:"tdtYxt",baseMapUrl:"https://sp.joinken.cn/arcgis2d/rest/services/base/china_04/MapServer",center:[113.15333645218509,22.708905783449126],extent:null,zoom:1,minZoom:1,maxZoom:17,modules:["esri/config","esri/Map","esri/request","esri/views/MapView","esri/geometry/Point","esri/geometry/Polyline","esri/geometry/SpatialReference","esri/geometry/Extent","esri/layers/GraphicsLayer","esri/geometry/geometryEngine","esri/geometry/support/webMercatorUtils","esri/layers/WebTileLayer","esri/layers/TileLayer","esri/symbols/PictureMarkerSymbol","esri/symbols/SimpleLineSymbol","esri/layers/support/TileInfo","esri/Graphic","esri/widgets/ScaleBar","esri/geometry/projection","esri/widgets/Measurement"]},c=l;function h(e=18,t="2d"){const r=[],i=!1;if(i){const i=156543.03390625,n=591657527.591555;for(let o=0;o<=e;o++){const e="2d"==t?o:o+1;r.push({level:o,levelValue:e,resolution:i/Math.pow(2,o),scale:n/Math.pow(2,o)})}}else{const i=.703125,n=295497593.05875003;for(let o=1;o<=e;o++){const e="2d"==t?o-1:o;r.push({level:o-1,levelValue:e,resolution:i/Math.pow(2,o-1),scale:n/Math.pow(2,o-1)})}}return r}function u(e){if(!e)return"";let{url:t,subDomains:r,title:i,id:n,tileInfo:o,wkid:s,fullExtent:a,loadInfo:l=!1,visible:c=!0,opacity:u=1,minScale:d=1,maxScale:p=22,popupTemplate:f,copyright:m="jk"}=e;if(!t)return"";const y=c||!1;let g={visible:y,opacity:u,spatialReference:{wkid:4490}};return r&&(g.subDomains=r),i&&(g.title=i),n&&(g.id=n),o&&(g.tileInfo=o),l&&(o?g.tileInfo=o:window.jkEsri&&window.jkEsri.TileInfo&&(g.tileInfo=new window.jkEsri.TileInfo({dpi:"90.71428571427429",rows:256,cols:256,compressionQuality:0,origin:{x:-180,y:90},spatialReference:{wkid:4490},lods:h(28,"3d")}))),s&&(g.spatialReference.wkid=s),a&&(g.fullExtent=a),f&&(g.popupTemplate=f),new window.jkEsri.WebTileLayer(t,g)}function d(e,t=!1){if(null==e)return!0;if("string"===typeof e){const t=e.trim();return""===t||"null"===t||"undefined"===t||"NaN"===t}return!(!t||0!==e&&!1!==e)}function p(e){if(!e)return null;if("string"===typeof e){const t=e.split(",").map(e=>parseFloat(e.trim()));if(2===t.length&&!isNaN(t[0])&&!isNaN(t[1]))return{x:t[0],y:t[1]}}if(Array.isArray(e)&&e.length>=2){const t=parseFloat(e[0]),r=parseFloat(e[1]);if(!isNaN(t)&&!isNaN(r))return{x:t,y:r}}if("object"===typeof e){let t,r;if("x"in e&&"y"in e?(t=parseFloat(e.x),r=parseFloat(e.y)):"longitude"in e&&"latitude"in e?(t=parseFloat(e.longitude),r=parseFloat(e.latitude)):"lng"in e&&"lat"in e&&(t=parseFloat(e.lng),r=parseFloat(e.lat)),!isNaN(t)&&!isNaN(r))return{x:t,y:r,spatialReference:e.spatialReference}}return null}function f(e){if(e&&"function"===typeof e.toJSON)try{const t=e.toJSON();if("number"===typeof t.x&&"number"===typeof t.y)return e}catch(t){throw new Error(`esri.Point toJSON 失败: ${t}`)}return null}function m(e,t=!0){let r,i,n=null;try{if(!window||!window.jkEsri||!window.jkEsri.Point)throw console.warn("[createText] ArcGIS API 未加载,跳过创建"),new Error("[createText] ArcGIS API 未加载,跳过创建");if(d(e))throw new Error("转换异常,无经纬度点位数据");if(n=f(e),n)return n;{const t=p(e);if(d(t)||d(t.x)||d(t.y))throw new Error("转换异常,无经纬度点位数据");r=t.x,i=t.y}if(isNaN(r)||isNaN(i))throw new Error("转换异常,无经纬度点位数据");if(t){if(r<-180||r>180)throw new Error("转换异常,x < -180 || x > 180");if(i<-90||i>90)throw new Error("转换异常,y < -90 || y > 90")}let o=e.wkid?e.wkid:Number(r)>1e3?102100:4326;return new window.jkEsri.Point(Number(r),Number(i),new window.jkEsri.SpatialReference({wkid:o}))}catch(o){throw console.warn("error",o),new Error(`转换异常:${o}`)}}var y=r(979),g=r.n(y),w=r(337),b=r.n(w);function v(e){try{if(!e||!e.geometry)throw new Error(`${JSON.stringify(e)}-arcGISTranformGeoJson对象包含geometry:{点:{x,y},线:{paths:[]},面:{rings:[]}}`);return g().parse(e.geometry)}catch(t){throw new Error(`arcGISTranformGeoJson: ${t}`)}}function A(e){const t=`geoJsonTranformArcgis数据格式=>{geometry:{type:Point|MultiPoint|LineString|Polygon|MultiPolygon,coordinates:[]}}<=>错误对象${JSON.stringify(e)}`;try{if(!e||!e.geometry||!e.geometry.coordinates||0===e.geometry.coordinates.length)return console.error(t),null;let r=e.geometry,i=r;if(!r.type)return console.error(t),null;"Point"==r.type&&(i={type:"Feature",geometry:r,properties:{}});const n=g().convert(i);if(n&&"{}"!=JSON.stringify(n))return n.geometry?n.geometry:n;throw new Error(t)}catch(r){throw new Error(r)}}function M(e){return e&&"string"===typeof e&&""!==e.trim()&&"null"!=e&&"undefined"!=e}function E(e){if(null===e||!e||"boolean"===typeof e)return!1;if("number"===typeof e)return isFinite(e);if("string"===typeof e){const t=e.trim();return""!==t&&(isFinite(t)&&!isNaN(Number(t)))}return!1}function S(e){return"object"===typeof e&&null!==e&&(!(!E(e.x)||!E(e.y))||(!(!E(e.longitude)||!E(e.latitude))||(!!Array.isArray(e.points)||(!!Array.isArray(e.paths)||!!Array.isArray(e.rings)))))}function T(e){try{if(!e&&!e.type)throw new Error(`[geoJsonTranformWkt] 期望字符串,但收到: ${e}`);return b().convert(e)}catch(t){throw new Error(`geojson解析失败: ${t.message}`)}}function x(e){try{if(!e)throw new Error(`[wktTranformGeoJson] 期望字符串,但收到: ${e}`);return b().parse(e)}catch(t){throw new Error(`wkt解析失败: ${t.message}`)}}function k(e){try{if(!M(e))throw new Error("[wktTranformArcgis] 期望字符串,但收到: "+typeof e);const t=b().parse(e.trim()),r=g().convert(t);return r}catch(t){throw new Error(`WKT 解析失败: ${t.message}`)}}function I(e){try{if(!S(e))throw new Error(`[arcgisTranformWkt] 期望字符串,但收到: ${e}`);const t=g().parse(e),r=b().convert(t);return r}catch(t){throw new Error(`[arcgisTranformWkt] ArcGIS 解析失败:${t.message}输入:${e}`)}}var P=null,N=null;function L(e){!P&&e.view&&(P=e.view),!N&&e.map&&(N=e.map)}function R(e,t,r){return new Promise(i=>{N=new window.jkEsri.Map({layers:[t]});const{minZoom:n=6,maxZoom:o=17}=r,s={container:e,map:N,ui:{logo:!1,components:["zoom"]}};Object.assign(s,r||{}),s.constraints={minZoom:n,maxZoom:o},P=new window.jkEsri.MapView(s),P.when(function(){r.extent&&Q(r.extent),i({map:N,view:P})})})}function O(e,t){return new Promise(r=>{const i=t&&t.layersType?t.layersType:"tdtYxt";var n=u({id:i,title:"天地图-影像",url:"http://{subDomain}.tianditu.gov.cn/img_c/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=img&STYLE=default&FORMAT=tiles&TILEMATRIXSET=c&TILEMATRIX={level}&TILEROW={row}&TILECOL={col}&tk=4267820f43926eaf808d61dc07269beb",subDomains:["t0","t1","t2","t3","t4","t5","t6","t7"],loadInfo:!0}),o=u({id:"tiandituDtBz",title:"天地图-影像注记",url:"http://{subDomain}.tianditu.gov.cn/cia_c/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=cia&STYLE=default&FORMAT=tiles&TILEMATRIXSET=c&TILEMATRIX={level}&TILEROW={row}&TILECOL={col}&tk=4267820f43926eaf808d61dc07269beb",subDomains:["t0","t1","t2","t3","t4","t5","t6","t7"],loadInfo:!0});"tdtDxt"==i?n=u({id:i,title:"天地图-地形图",url:"http://{subDomain}.tianditu.gov.cn/ter_c/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=ter&STYLE=default&FORMAT=tiles&TILEMATRIXSET=c&TILEMATRIX={level}&TILEROW={row}&TILECOL={col}&tk=4267820f43926eaf808d61dc07269beb",subDomains:["t0","t1","t2","t3","t4","t5","t6","t7"],loadInfo:!0}):"tdtSlt"==i&&(n=u({id:"tdtSlt",title:"天地图-矢量图",url:"https://{subDomain}.tianditu.gov.cn/vec_c/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=vec&STYLE=default&FORMAT=tiles&TILEMATRIXSET=c&TILEMATRIX={level}&TILEROW={row}&TILECOL={col}&tk=4267820f43926eaf808d61dc07269beb",subDomains:["t0","t1","t2","t3","t4","t5","t6","t7"],loadInfo:!0})),N=new window.jkEsri.Map,N.layers.add(n,0),N.layers.add(o,1);const{minZoom:s=6,maxZoom:a=17}=t,l={map:N,container:e};if(t&&t.mapType&&"3d"==t.mapType)P=new window.jkEsri.SceneView(l);else{l.constraints={minZoom:s,maxZoom:a};const e={...l,...t};P=new window.jkEsri.MapView(e)}P.when(function(){l.extent&&Q(l.extent),r({map:N,view:P})})})}function C(e={},t){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,t)}function G(e,t="text"){let r="getSimpleText创建失败,";try{if(!e||!e[t])return console.error(`${r},参数为`,e),j(e);let i=[255,0,0,1],n=12,o="normal",s="normal",a=[255,255,255],l=1,c=e[t],h=0,u=0,d=0,p="",f="";return e.color&&(i=e.color),e.size&&(n=e.size),e.weight&&(o=e.weight),e.style&&(s=e.style),e.haloColor&&(a=e.haloColor),e.haloSize&&(l=e.haloSize),e.rotation&&(h=e.rotation),e.xoffset&&(u=e.xoffset),e.yoffset&&(d=e.yoffset),e.horizontalAlignment&&(p=e.horizontalAlignment),e.verticalAlignment&&(f=e.verticalAlignment),{type:"text",color:i,font:{size:n,weight:o,style:s},haloColor:a,haloSize:l,text:c,rotation:h,xoffset:u,yoffset:d,horizontalAlignment:p||"center",verticalAlignment:f||"middle"}}catch(i){return console.error(`${r}`,i),null}}function j(e){let t="getSimpleMarker创建失败,";try{let t=[255,0,0,1],r=14,i={color:[255,255,255],width:2},n="circle";return e&&(e.color&&(t=e.color),e.size&&(r=e.size),e.style&&(n=e.style),e.outline&&(i=e.outline)),{type:"simple-marker",color:t,size:r,outline:i,style:n}}catch(r){return console.error(`${t}`,r),null}}function Z(e){let t="getPictureMarker创建失败,";try{if(!e)throw new Error(`${t},参数为`,e);if(!e.url)return console.error(`${t},没有图片地址`,e),j();let r="",i=0,n=0,o=0,s=0,a=0;return e.url&&(r=e.url),e.width&&(i=e.width),e.height&&(n=e.height),e.xoffset&&(o=e.xoffset),e.yoffset&&(s=e.yoffset),e.angle&&(a=e.angle),{type:"picture-marker",url:r,width:i,height:n,xoffset:o,yoffset:s,angle:a}}catch(r){return console.error(`${t}`,r),null}}function D(e){let t="getSimpleLine创建失败,";try{let t=e&&e.type?e.type:"simple-line",r="#fff",i=1,n="solid";return e&&(e.color&&(r=e.color),e.width&&(i=e.width),e.style&&(n=e.style)),"picture-line"==t&&e.url?{type:"picture-line",url:e.url,width:e.width||8,pattern:e.pattern||"repeat",offset:e.offset||0,angle:e.angle||0}:{type:"simple-line",color:r,width:i,style:n}}catch(r){return console.error(`${t}`,r),null}}function z(e){let t="getSimpleFill,";try{let t=e&&e.type?e.type:"simple-fill",r=[255,255,255,1],i={color:[255,255,255],width:1,style:"solid"},n="solid";return e&&(e.color&&(r=e.color),e.outline&&(i=e.outline),e.style&&(n=e.style)),"picture-fill"==t&&e.url?{type:"picture-fill",url:e.url,outline:e.outline||{color:[255,255,255],width:1},pattern:e.pattern||"repeat",scale:e.scale||.5,rotation:e.angle||0}:{type:"simple-fill",color:r,outline:i,style:n}}catch(r){return console.error(`${t}`,r),null}}function U(e){let t="createGrahic,";try{if(!window||!window.jkEsri||!window.jkEsri.Graphic)throw new Error(`${t}ArcGIS API 未加载,跳过创建`);if(!e||!e.geometry||!e.symbol)throw new Error(`${t}数据格式不正确`,e);let r={visible:!0,elevationInfo:{mode:"on-the-ground"}};e.id&&(r.id=e.id),e.properties&&(r.attributes=e.properties);for(const t in e)C(e,t)&&(r[t]=e[t]);let i=new window.jkEsri.Graphic(r);return i}catch(r){return console.error(`${t}`,r),null}}function W(e={}){let t="createGraphicsLayer创建失败,";try{if(!window||!window.jkEsri||!window.jkEsri.GraphicsLayer)throw new Error(`${t}ArcGIS API 未加载,跳过创建`);let r={visible:!0,elevationInfo:{mode:"on-the-ground"}};e.id&&(r.id=e.id);for(const t in e)C(e,t)&&(r[t]=e[t]);const i=new window.jkEsri.GraphicsLayer(r);return i}catch(r){return console.error(`${t}`,r),null}}function F(e){let t="drawPoint创建失败,";try{if(!e||!window.jkEsri||!window.jkEsri.GraphicsLayer)throw new Error(`${t}ArcGIS API 未加载,跳过创建`);if(!e.symbol)throw new Error(`${t}无样式${e}`);let r="",i="",n=!C(e,"visible")||e.visible,o=e;if(C(e,"attributes")&&(o=e.attributes),C(e,"properties")&&(o=e.properties),e.geometry){const t=e.geometry;t.x&&t.y||t.longitude&&t.latitude?(r=t.x||t.longitude,i=t.y||t.latitude):t.type&&t.coordinates&&"Point"==t.type&&2==t.coordinates.length&&(r=t.coordinates[0],i=t.coordinates[1])}else r=e.longitude||e.lng||e.jd||e.x||"",i=e.latitude||e.lat||e.wd||e.y||"";if(console.log("drawPoint",r,i,e),!r&&!i)throw new Error(`${t}无经纬度${e}`);return U({geometry:{type:"point",longitude:r,latitude:i},symbol:e.symbol,attributes:o,visible:n})}catch(r){return console.error(`${t}`,r),null}}function V(e){let t="drawPolyline创建失败,";try{if(!e||!window.jkEsri||!window.jkEsri.GraphicsLayer)throw new Error(`${t}ArcGIS API 未加载,跳过创建`);if(!e.symbol)throw new Error(`${t}无样式${e}`);let r=[],i=!C(e,"visible")||e.visible,n=e;if(C(e,"attributes")&&(n=e.attributes),C(e,"properties")&&(n=e.properties),e.geometry){const t=e.geometry;t.paths?r=t.paths:t.type&&t.coordinates&&("LineString"!=t.type&&"MultiLineString"!=t.type||(r=t.coordinates))}else r=e.paths||e.rings||[];if(0==r.length)throw new Error(`${t}无范围${e}`);return U({geometry:{type:"polyline",paths:r},symbol:e.symbol,attributes:n,visible:i})}catch(r){return console.error(`${t}`,r),null}}function J(e){let t="drawPolygon创建失败,";try{if(!e||!window.jkEsri||!window.jkEsri.GraphicsLayer)throw new Error(`${t}ArcGIS API 未加载,跳过创建`);if(!e.symbol)throw new Error(`${t}无样式${e}`);let r=[],i=!C(e,"visible")||e.visible,n=e;if(C(e,"attributes")&&(n=e.attributes),C(e,"properties")&&(n=e.properties),e.geometry){const t=e.geometry;t.rings?r=t.rings:t.type&&t.coordinates&&("Polygon"!=t.type&&"MultiPolygon"!=t.type||(r=t.coordinates))}else r=e.rings||e.ring||e.paths||[];if(0==r.length)throw new Error(`${t}无范围${e}`);return U({geometry:{type:"polygon",rings:r},symbol:e.symbol,attributes:n,visible:i})}catch(r){return console.error(`${t}`,r),null}}function B(e,t){let r=`drawPolygonArr创建失败,${e}`;try{if(!window||!window.jkEsri||!window.jkEsri.GraphicsLayer)throw new Error(`${r}ArcGIS API 未加载,跳过创建`);if(!e||!e.features||0==e.features.length||!t)throw new Error(`${r}`);let i=[];e.features.map(e=>{const t=U(e);t&&i.push(t)}),t.addMany(i),H(t)}catch(i){return console.error(`${r}`,i),null}}function Y(e,t=17){P.goTo({target:m(e),tilt:60,heading:30,zoom:t},{duration:1e3})}function Q(e){if(e.xmin&&e.ymin&&e.xmax&&e.ymax){let t=e.xmin>1e3?102100:4326;P.goTo(new window.jkEsri.Extent(e.xmin,e.ymin,e.xmax,e.ymax,new window.jkEsri.SpatialReference({wkid:t})),{duration:1e3})}}function H(e,t={zoom:16}){if(e&&P){if(e.x&&e.y||e.longitude&&e.latitude||e.jd&&e.wd||2==e.length&&e[0]&&e[1]||e.lng&&e.lat||e.geometry&&e.geometry.type&&e.geometry.type.indexOf("oint")>-1)return void Y(e.geometry||e,t.zoom);if(e.xmin&&e.ymin&&e.xmax&&e.ymax)return void Q(e)}let r=P;if(!window.jkEsri)return Promise.reject(new Error("[mapJump] ArcGIS API 未加载 (window.jkEsri missing)"));if(!r||"function"!==typeof r.goTo)return Promise.reject(new Error("[mapJump] 无效的 view 对象(缺少 goTo 方法)"));const i="esri.views.SceneView"===r.declaredClass,n="esri.views.MapView"===r.declaredClass;if(!i&&!n)return Promise.reject(new Error(`[mapJump] 不支持的 view 类型: ${r.declaredClass}`));const o=Object.assign({padding:20,animate:!1,zoom:Math.max(1,Math.min(20,t.zoom||18)),scale:Math.max(100,Math.min(1e5,t.scale||5e3)),fallbackExtent:null,retryTimes:1},t);let s=!1;function a(){return new Promise(e=>{r.ready?e():r.when(()=>e())})}function l(e){if(!e||!e.spatialReference)return e;if(e.spatialReference.wkid===r.spatialReference.wkid)return e;try{return window.jkEsri.geometry.project(e,r.spatialReference)}catch(t){return console.warn("[projectGeometry] 空间参考转换失败,使用原几何:",t),e}}function c(e){if(!e)return!1;const t=e.type||(e.x&&e.y?"point":"");return"point"===t||"multipoint"===t}function h(e){if(!e)return null;if(e.toJSON&&"function"===typeof e.toJSON)return e;let t=e.type;if(t||void 0===e.x||void 0===e.y||(t="point"),!t)return null;const i=e.spatialReference||r.spatialReference;try{if("point"===t){const t=Number(e.x),r=Number(e.y);return isNaN(t)||isNaN(r)?(console.error("[toEsriGeometry] 点坐标非法:",e),null):{x:t,y:r,z:e.z?Number(e.z):void 0,spatialReference:i}}return"multipoint"===t?{points:e.points.map(e=>e.map(Number))||[],spatialReference:i}:"polyline"===t||"multipolyline"===t?{paths:e.paths.map(e=>e.map(e=>e.map(Number)))||[],spatialReference:i}:"polygon"===t||"multipolygon"===t?{rings:e.rings.map(e=>e.map(e=>e.map(Number)))||[],spatialReference:i}:"extent"===t?new window.jkEsri.Extent({xmin:Number(e.xmin),ymin:Number(e.ymin),xmax:Number(e.xmax),ymax:Number(e.ymax),spatialReference:i}):null}catch(n){return console.warn(`[toEsriGeometry] 转换${t}失败:`,n),null}}function u(e){if(!e)return null;const t=h(e);return t?t.extent?t.extent:"point"===t.type?new window.jkEsri.Extent({xmin:t.x,ymin:t.y,xmax:t.x,ymax:t.y,spatialReference:t.spatialReference}):(console.warn("[getGeometryExtent] 无法获取几何范围:",e),null):null}function d(e){if(!e||0===e.length)return null;const t=[];for(const i of e){if(!i||!i.geometry){console.warn("[computeExtentFromGraphics] 跳过无几何的图形:",i);continue}const e=u(i.geometry);e?t.push(e):console.warn("[computeExtentFromGraphics] 图形几何无有效范围:",i.geometry)}if(0===t.length)return console.error("[computeExtentFromGraphics] 所有图形均无有效范围!"),null;if(1===t.length)return t[0];let r=t[0];for(let i=1;i<t.length;i++)r=r.union(t[i]);return r}function p(e){if(!e)return null;if(void 0!==e.x&&void 0!==e.y){const t=Number(e.x),r=Number(e.y);return isNaN(t)||isNaN(r)?null:{x:t,y:r}}if(Array.isArray(e)&&e.length>=2){const t=Number(e[0]),r=Number(e[1]);return isNaN(t)||isNaN(r)?null:{x:t,y:r}}if("string"===typeof e&&e.includes(",")){const[t,r]=e.split(",").map(Number);return isNaN(t)||isNaN(r)?null:{x:t,y:r}}return null}async function f(e,t,c){if(s)throw new Error("[mapJump] 前一次跳转未完成,中断本次操作");try{s=!0,await a();const u=l(e);if(!u)throw new Error("[mapJump] 空间参考转换后几何无效");const d={animate:o.animate,duration:o.animate?500:0};n?t?d.zoom=Math.max(1,Math.min(20,o.zoom)):d.padding=o.padding:i&&t&&(d.scale=Math.max(100,o.scale),d.target={position:u,scale:d.scale});try{await r.goTo(u,d)}catch(h){if(h.message.includes("interrupted")&&c>0)return console.warn(`[mapJump] 跳转中断,剩余重试次数: ${c}`,h),await new Promise(e=>setTimeout(e,50)),f(e,t,c-1);throw h}}finally{s=!1}}function m(e){if(e.fullExtent)return e.fullExtent;if(e.extent)return e.extent;if(e.tileInfo.fullExtent)return e.tileInfo.fullExtent;if(e.initialExtent)return e.initialExtent;if(e.url)try{const t=new URL(e.url),i=t.searchParams.get("BBOX")||t.searchParams.get("bbox");if(i){const[t,n,o,s]=i.split(",").map(Number);if(!isNaN(t)&&!isNaN(n)&&!isNaN(o)&&!isNaN(s))return new window.jkEsri.Extent({xmin:t,ymin:n,xmax:o,ymax:s,spatialReference:e.spatialReference||r.spatialReference})}}catch(t){console.warn("[getWMXLayerExtent] 解析URL BBOX失败:",t)}return o.fallbackExtent}return new Promise(async(t,i)=>{let n=null,s=!1;try{if(await a(),e&&"object"===typeof e&&e.declaredClass&&e.declaredClass.endsWith("Layer")){const r=e;if("esri.layers.GraphicsLayer"===r.declaredClass){const e=r.graphics.toArray();if(0===e.length)return void i(new Error("[mapJump] GraphicsLayer 无有效图形"));if(1===e.length&&c(e[0].geometry))return await f(e[0].geometry,!0,o.retryTimes),void t();const n=d(e);if(n)await f(n,!1,o.retryTimes),t();else{const r=e.find(e=>e.geometry&&u(e.geometry));r?(await f(r.geometry,c(r.geometry),o.retryTimes),t()):o.fallbackExtent?(await f(o.fallbackExtent,!1,o.retryTimes),t()):i(new Error("[mapJump] 无法从GraphicsLayer计算有效范围,且无兜底范围"))}return}if("esri.layers.WMSLayer"===r.declaredClass||"esri.layers.WMTSLayer"===r.declaredClass){r.loaded||await r.load();const e=m(r);return void(e?(await f(e,!1,o.retryTimes),t()):i(new Error(`WM${r.declaredClass.includes("WMS")?"S":"TS"}图层无有效范围`)))}if("function"===typeof r.queryExtent){r.loaded||await r.load();const e=await r.queryExtent();return void(e.extent?(await f(e.extent,!1,o.retryTimes),t()):i(new Error("服务图层查询范围为空")))}return r.fullExtent?(await f(r.fullExtent,!1,o.retryTimes),void t()):void i(new Error(`[mapJump] 不支持的图层类型: ${r.declaredClass}`))}if(Array.isArray(e)&&e.length>0){const r=e.every(e=>e.geometry);if(r){if(1===e.length&&c(e[0].geometry))return n=h(e[0].geometry),n?(await f(n,!0,o.retryTimes),void t()):void i(new Error("单个图形几何无效"));const r=d(e);if(r)await f(r,!1,o.retryTimes),t();else{const r=e.find(e=>e.geometry&&h(e.geometry));r?(n=h(r.geometry),await f(n,c(r.geometry),o.retryTimes),t()):o.fallbackExtent?(await f(o.fallbackExtent,!1,o.retryTimes),t()):i(new Error("[mapJump] 无法从图形数组计算有效范围,且无兜底范围"))}return}}if(e&&e.geometry)n=h(e.geometry),s=c(e.geometry);else if(e&&(e.type||e.x&&e.y))n=h(e),s=c(e);else{const t=p(e);t&&(n=new window.jkEsri.Point({x:t.x,y:t.y,spatialReference:r.spatialReference}),s=!0)}if(!n)return void i(new Error('[mapJump] 无法解析跳转目标,支持类型:\n 1. 基础坐标:{x,y} / [x,y] / "lng,lat"\n 2. 几何对象:Point/MultiPoint/Polyline/MultiPolyline/Polygon/MultiPolygon/Extent(API实例/纯JSON)\n 3. 图形对象:Graphic / 纯JSON Graphic / Graphic[] / 纯JSON Graphic[]\n 4. 图层对象:Layer(FeatureLayer/WMSLayer/WMTSLayer等)'));await f(n,s,o.retryTimes),t()}catch(l){i(new Error(`[mapJump] 执行失败: ${l.message}`))}})}function X(e){const t={wkid:4326},r=window.jkEsri.projection.project(e,t);return window.jkEsri.geometryEngine.geodesicArea(r,"square-meters")}async function K(e=[],t,r=null,i){const{layerId:n="createMaskLayer",outerExtent:o=null}=t||{};if(!Array.isArray(e)||0===e.length)return console.warn("createMaskLayer: 范围是空的"),null;if("undefined"===typeof window.jkEsri)return console.error("ArcGIS API for JavaScript is not loaded"),null;const{Polygon:s,SpatialReference:a,GraphicsLayer:l,Graphic:c,geometryEngine:h}=window.jkEsri;let u=null,d=null,p=!1;if(r&&"object"===typeof r)if("2d"===r.type||"3d"===r.type){if(u=r,p="3d"===r.type,d=u.spatialReference,!d)return console.error("View spatialReference is not ready"),null}else"esri.layers.GraphicsLayer"===r.declaredClass||console.warn("Unknown context type, assuming WKID 4326"),d=new a({wkid:4326});else d=new a({wkid:4326});const f=d,m=f.wkid;function y(e,t){return e?Array.isArray(e)?e:e.rings?e.rings:e.geometry?.rings?e.geometry.rings:(console.warn(`Item ${t} has no valid rings`),null):null}function g(e){let t=0;for(let r=0;r<e.length;r++){const[i,n]=e[r],[o,s]=e[(r+1)%e.length];t+=(o-i)*(s+n)}return t>0}function w(e){if(e.length<3)return null;const t=e[0],r=e[e.length-1];return t[0]!==r[0]||t[1]!==r[1]?[...e,[t[0],t[1]]]:e}function b(e,t,r){const i=new s({rings:[e],spatialReference:r});if(0===t.length)return i;let n=null;for(const a of t){const e=new s({rings:[a],spatialReference:r});if(n)try{n=h.union(n,e)}catch(o){console.warn("Union hole failed, skipping:",o)}else n=e}if(!n)return i;try{const e=h.difference(i,n);return e||i}catch(o){return console.error("Geometry difference failed:",o),i}}try{let t;if(o&&o.spatialReference?.wkid===m)t=[[o.xmin,o.ymin],[o.xmax,o.ymin],[o.xmax,o.ymax],[o.xmin,o.ymax],[o.xmin,o.ymin]];else if(4326===m)t=[[-180,-90],[180,-90],[180,90],[-180,90],[-180,-90]];else if(3857===m){const e=20037508.342789244;t=[[-e,-e],[e,-e],[e,e],[-e,e],[-e,-e]]}else t=[[105.0019,19.9696],[121.0131,19.9696],[121.0131,26.933],[105.0019,26.933],[105.0019,19.9696]];const r=[];for(let i=0;i<e.length;i++){const t=e[i],n=y(t,i);!n||!Array.isArray(n[0])||n[0].length<3||n.forEach((e,t)=>{e=w(e),e&&(p||g(e)||(e=e.slice().reverse()),r.push(e))})}let a;a=p?await b(t,r,f):0===r.length?new s({rings:[t],spatialReference:f}):new s({rings:[t,...r],spatialReference:f});const h={type:"simple-fill",color:[0,0,0,.8],outline:null},d=new c({geometry:a,symbol:h});let v=i;return v?v.removeAll():(v=new l({id:n}),u&&u.map.add(v)),v.add(d),{layer:v,graphics:[d]}}catch(v){return console.error("createMaskLayer failed:",v),null}}function q(e,t=300){let r=null;return function(...i){r&&clearTimeout(r),r=setTimeout(()=>{e.apply(this,i),r=null},t)}}function _(e,t){function r(e){if(Array.isArray(e))return e;if("Feature"===e.type)return e.geometry.coordinates;if("Point"===e.type)return e.coordinates;throw new Error("Invalid input: expected [lon, lat], Point geometry, or Feature<Point>")}const i=r(e),n=r(t),[o,s]=i,[a,l]=n,c=s*Math.PI/180,h=l*Math.PI/180,u=(a-o)*Math.PI/180,d=Math.sin(u)*Math.cos(h),p=Math.cos(c)*Math.sin(h)-Math.sin(c)*Math.cos(h)*Math.cos(u);let f=Math.atan2(d,p),m=180*f/Math.PI;return(m+360)%360}const $="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bX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hakRxwFzFwq+9k3J0RcddKET13ZmPc/7x0aj8Qgw/9RTTw0UcOARsW17MyA94O8ty/q6bdt/FHaVWtooDn72YTnh2FALhihNKaJYGp1bqRFm2bKEp5T7yWq1enZ4ePirbOKQZ1Mgr0NreZ4/rZRaGBrxTVHIW4qs2FFAnJfq/qLUX/ZcUXNcsizL/rtWq/n33nvvU0D5zDPPbDrYFf0W5fs6a1lVLIvzvawnarWaAR7q9XphtVZTKysrJQOeSv04/R8EIWGFm3s/qgAAAABJRU5ErkJggg==";var ee=function(){var e=this,t=e._self._c;return"point"==e.name?t("svg",{staticClass:"icon",attrs:{t:"1742351514971",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3951",width:e.width,height:e.width}},[t("path",{attrs:{d:"M506.885115 1.022977c-193.342657 1.534466-348.835165 159.584416-347.812188 352.927073 0.511489 91.556444 37.338661 179.532468 101.786214 244.491508L506.885115 845.490509l246.025974-247.560439c136.055944-137.078921 135.544456-359.064935-1.534466-495.120879C686.417582 38.361638 598.441558 2.045954 506.885115 1.022977zM506.885115 506.373626c-85.418581 0-154.981019-69.562438-154.469531-155.492507 0-85.418581 69.050949-154.981019 154.469531-155.492508 85.418581 0 154.981019 69.562438 154.46953 155.492508 0.511489 85.418581-69.050949 154.981019-154.46953 155.492507z m-154.469531 452.667333c0 35.804196 69.050949 64.959041 154.469531 64.959041s154.46953-29.154845 154.46953-64.959041c0-35.804196-69.050949-64.959041-154.46953-64.959041s-154.46953 29.154845-154.469531 64.959041z","p-id":"3952",fill:e.color}})]):"line"==e.name?t("svg",{staticClass:"icon",attrs:{t:"1742353681074",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4947",width:e.width,height:e.width}},[t("path",{attrs:{d:"M419.2 102.4c51.2 0 92.8 41.6 92.8 96 0 25.6-9.6 51.2-28.8 70.4l166.4 416c19.2-12.8 44.8-16 67.2-9.6l172.8-272c-19.2-32-12.8-76.8 19.2-99.2 32-22.4 73.6-12.8 96 22.4 19.2 32 12.8 76.8-19.2 99.2-9.6 6.4-25.6 12.8-38.4 12.8l-176 275.2c28.8 41.6 19.2 102.4-19.2 131.2-41.6 32-99.2 22.4-128-22.4-16-22.4-19.2-48-16-73.6L422.4 291.2h-3.2c-12.8 0-22.4-3.2-32-6.4l-208 243.2c25.6 44.8 6.4 102.4-38.4 128s-99.2 6.4-124.8-38.4-6.4-102.4 38.4-128c22.4-12.8 51.2-16 76.8-6.4l208-243.2c-25.6-44.8-6.4-102.4 38.4-128 12.8-6.4 28.8-9.6 41.6-9.6z","p-id":"4948",fill:e.color}})]):"polygon"==e.name?t("svg",{staticClass:"icon",attrs:{t:"1742353743548",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5913",width:e.width,height:e.width}},[t("path",{attrs:{d:"M928.381303 0.002274a91.333624 91.333624 0 0 1 91.939988 91.939988 91.333624 91.333624 0 0 1-91.939988 91.939988 92.849535 92.849535 0 0 1-84.891003-56.581369H212.265055c-8.83018 21.222751-26.528439 40.664306-49.494487 49.532384v634.787636c21.222751 8.868078 40.664306 26.528439 49.494487 49.532384h97.245676c19.479453 0 35.396517 15.917063 35.396516 35.358619 0 19.441556-15.917063 35.358619-35.396516 35.358619H212.265055c-12.392571 33.615321-45.969994 56.58137-84.891004 56.581369a91.333624 91.333624 0 0 1-91.939988-91.939988c0-38.883111 23.003946-70.717237 56.58137-84.891003V176.833265C58.400111 164.440695 35.396165 130.863271 35.396165 91.942262A91.333624 91.333624 0 0 1 127.374051 0.002274c37.139814 0 70.755135 22.966048 84.891004 56.581369h631.263143C855.88287 22.968322 889.498192 0.002274 928.381303 0.002274zM443.858323 760.345219l127.336505 127.336505-146.778061 40.664306c-12.354673 3.524493-24.747243-8.83018-21.222751-21.22275l40.664307-146.778061z m344.831803-339.488217l123.774114 123.774114-305.910794 298.823911-120.249622-127.336505 302.386302-295.26152z m97.245676-97.283574c17.698258-15.917063 44.226697-17.66036 60.143759-1.743297l65.41155 65.411549c15.917063 15.917063 15.917063 42.445502-1.781195 60.14376l-61.887057 61.887058-123.774115-123.774115z","p-id":"5914",fill:e.color}})]):"perv"==e.name?t("svg",{staticClass:"icon",attrs:{t:"1742353858894",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7700",width:e.width,height:e.width}},[t("path",{attrs:{d:"M365.44 112.32v133.76h237.888a340.928 340.928 0 0 1 340.928 335.36v5.632a340.928 340.928 0 0 1-335.296 340.864l-5.632 0.064h-324.48a16 16 0 0 1-16-16v-64a16 16 0 0 1 16-16h324.48a244.928 244.928 0 0 0 5.12-489.856H130.432a16 16 0 0 1-11.136-27.52l218.88-213.76a16 16 0 0 1 27.2 11.456z",fill:e.color,"p-id":"7701"}})]):"next"==e.name?t("svg",{staticClass:"icon",attrs:{t:"1742353895510",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2267",width:e.width,height:e.width}},[t("path",{attrs:{d:"M670.08 112.32v133.76H432.192a340.928 340.928 0 0 0-340.928 335.36v5.632a340.928 340.928 0 0 0 335.296 340.864l5.632 0.064h324.48a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16h-324.48a244.928 244.928 0 0 1-5.12-489.856h477.952a16 16 0 0 0 11.2-27.52l-219.008-213.76a16 16 0 0 0-27.136 11.456z",fill:e.color,"p-id":"2268"}})]):"close"==e.name?t("svg",{staticClass:"icon",attrs:{t:"1763603732402",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2437",width:e.width,height:e.width}},[t("path",{attrs:{d:"M566.97558594 521.09667969L856.8828125 231.18945312c14.63378906-14.63378906 14.63378906-38.75976563 0-53.39355468l-1.58203125-1.58203125c-14.63378906-14.63378906-38.75976563-14.63378906-53.39355469 0L512 466.51660156 222.09277344 176.21386719c-14.63378906-14.63378906-38.75976563-14.63378906-53.39355469 0l-1.58203125 1.58203125c-15.02929688 14.63378906-15.02929688 38.75976563 0 53.39355469l289.90722656 289.90722656L167.1171875 811.00390625c-14.63378906 14.63378906-14.63378906 38.75976563 0 53.39355469l1.58203125 1.58203125c14.63378906 14.63378906 38.75976563 14.63378906 53.39355469 0L512 576.07226563 801.90722656 865.97949219c14.63378906 14.63378906 38.75976563 14.63378906 53.39355469 0l1.58203125-1.58203125c14.63378906-14.63378906 14.63378906-38.75976563 0-53.39355469L566.97558594 521.09667969z",fill:e.color,"p-id":"2438"}})]):"del"==e.name?t("svg",{staticClass:"icon",attrs:{t:"1763604252947",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3453",width:e.width,height:e.width}},[t("path",{attrs:{d:"M928.16 144H736V64a32 32 0 0 0-32-32H320a32 32 0 0 0-32 32v80H95.84a32 32 0 0 0 0 64H129.6l77.92 698.656A96 96 0 0 0 302.912 992h418.144a96.032 96.032 0 0 0 95.424-85.344L894.4 208h33.728a32 32 0 0 0 0.032-64zM352 96h320v48H352V96z m400.896 803.552a32 32 0 0 1-31.808 28.448H302.912a32 32 0 0 1-31.808-28.448L193.984 208h636.032l-77.12 691.552z","p-id":"3454",fill:e.color}}),t("path",{attrs:{d:"M608 820.928a32 32 0 0 0 32-32V319.104a32 32 0 0 0-64 0v469.824a32 32 0 0 0 32 32zM432 820.928a32 32 0 0 0 32-32V319.104a32 32 0 0 0-64 0v469.824a32 32 0 0 0 32 32z","p-id":"3455",fill:e.color}})]):"full"==e.name?t("svg",{staticClass:"icon",attrs:{t:"1763604352213",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4438",width:e.width,height:e.width}},[t("path",{attrs:{d:"M128 266.666667v490.666666a53.393333 53.393333 0 0 0 53.333333 53.333334h661.333334a53.393333 53.393333 0 0 0 53.333333-53.333334V266.666667a53.393333 53.393333 0 0 0-53.333333-53.333334H181.333333a53.393333 53.393333 0 0 0-53.333333 53.333334z m725.333333 0v490.666666a10.666667 10.666667 0 0 1-10.666666 10.666667H181.333333a10.666667 10.666667 0 0 1-10.666666-10.666667V266.666667a10.666667 10.666667 0 0 1 10.666666-10.666667h661.333334a10.666667 10.666667 0 0 1 10.666666 10.666667z m-597.333333 608a21.333333 21.333333 0 0 1-21.333333 21.333333H96a53.393333 53.393333 0 0 1-53.333333-53.333333v-138.666667a21.333333 21.333333 0 0 1 42.666666 0v138.666667a10.666667 10.666667 0 0 0 10.666667 10.666666h138.666667a21.333333 21.333333 0 0 1 21.333333 21.333334zM42.666667 320V181.333333a53.393333 53.393333 0 0 1 53.333333-53.333333h138.666667a21.333333 21.333333 0 0 1 0 42.666667H96a10.666667 10.666667 0 0 0-10.666667 10.666666v138.666667a21.333333 21.333333 0 0 1-42.666666 0z m938.666666-138.666667v138.666667a21.333333 21.333333 0 0 1-42.666666 0V181.333333a10.666667 10.666667 0 0 0-10.666667-10.666666h-138.666667a21.333333 21.333333 0 0 1 0-42.666667h138.666667a53.393333 53.393333 0 0 1 53.333333 53.333333z m0 522.666667v138.666667a53.393333 53.393333 0 0 1-53.333333 53.333333h-138.666667a21.333333 21.333333 0 0 1 0-42.666667h138.666667a10.666667 10.666667 0 0 0 10.666667-10.666666v-138.666667a21.333333 21.333333 0 0 1 42.666666 0z",fill:e.color,"p-id":"4439"}})]):"loading"==e.name?t("svg",{staticClass:"icon",attrs:{t:"1766044858654",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2820",width:e.width,height:e.width}},[t("path",{attrs:{d:"M512 64a31.146667 31.146667 0 0 1 23.04 8.96c5.973333 6.016 8.96 13.696 8.96 23.04v192a31.146667 31.146667 0 0 1-8.96 23.04 31.146667 31.146667 0 0 1-23.04 8.96 31.146667 31.146667 0 0 1-23.04-8.96 31.146667 31.146667 0 0 1-8.96-23.04v-192a31.146667 31.146667 0 0 1 8.96-23.04 31.146667 31.146667 0 0 1 23.04-8.96z m0 640a31.146667 31.146667 0 0 1 23.04 8.96c5.973333 6.016 8.96 13.696 8.96 23.04v192a31.146667 31.146667 0 0 1-8.96 23.04 31.146667 31.146667 0 0 1-23.04 8.96 31.146667 31.146667 0 0 1-23.04-8.96 31.146667 31.146667 0 0 1-8.96-23.04v-192a31.146667 31.146667 0 0 1 8.96-23.04 31.146667 31.146667 0 0 1 23.04-8.96zM960 512a31.146667 31.146667 0 0 1-8.96 23.04 31.146667 31.146667 0 0 1-23.04 8.96h-192a31.146667 31.146667 0 0 1-23.04-8.96 31.146667 31.146667 0 0 1-8.96-23.04 31.146667 31.146667 0 0 1 8.96-23.04 31.146667 31.146667 0 0 1 23.04-8.96h192a31.146667 31.146667 0 0 1 23.04 8.96c5.973333 6.016 8.96 13.696 8.96 23.04z m-640 0a31.146667 31.146667 0 0 1-8.96 23.04 31.146667 31.146667 0 0 1-23.04 8.96h-192a31.146667 31.146667 0 0 1-23.04-8.96 31.146667 31.146667 0 0 1-8.96-23.04 31.146667 31.146667 0 0 1 8.96-23.04 31.146667 31.146667 0 0 1 23.04-8.96h192a31.146667 31.146667 0 0 1 23.04 8.96c5.973333 6.016 8.96 13.696 8.96 23.04zM194.986667 194.986667a33.450667 33.450667 0 0 1 23.04-8.96c8.661333 0 16 2.986667 22.016 8.96l135.978666 136.021333a32.853333 32.853333 0 0 1 9.002667 22.485333 30.293333 30.293333 0 0 1-9.514667 22.016 30.037333 30.037333 0 0 1-22.016 9.514667 32.938667 32.938667 0 0 1-22.485333-8.96L194.986667 240a29.952 29.952 0 0 1-8.96-22.016c0-8.704 2.986667-16.384 8.96-23.04z m452.992 452.992a31.104 31.104 0 0 1 22.528-9.984c8.32 0 15.786667 3.328 22.485333 10.026666l136.021333 135.978667c5.973333 5.973333 8.96 13.354667 8.96 22.016a30.72 30.72 0 0 1-9.514666 22.485333 30.933333 30.933333 0 0 1-22.485334 9.514667 29.866667 29.866667 0 0 1-22.016-8.96l-135.978666-136.021333a31.146667 31.146667 0 0 1-10.026667-22.485334c0-8.32 3.328-15.829333 10.026667-22.528zM829.013333 194.986667c5.973333 6.698667 8.96 14.378667 8.96 23.04s-2.986667 16-8.96 22.016l-136.021333 135.978666a32.853333 32.853333 0 0 1-22.485333 9.002667 30.293333 30.293333 0 0 1-22.016-9.514667 30.037333 30.037333 0 0 1-9.514667-22.016c0-8.32 2.986667-15.829333 8.96-22.485333l136.021333-136.021333c5.973333-5.973333 13.354667-8.96 22.016-8.96 8.704 0 16.341333 2.986667 23.04 8.96zM376.021333 648.021333a31.104 31.104 0 0 1 9.984 22.528c0 8.32-3.328 15.786667-10.026666 22.485334L240.042667 829.013333a29.952 29.952 0 0 1-22.016 8.96 30.72 30.72 0 0 1-22.485334-9.514666 30.890667 30.890667 0 0 1-9.514666-22.485334 29.866667 29.866667 0 0 1 8.96-22.016l136.021333-135.978666a31.104 31.104 0 0 1 22.485333-10.026667c8.32 0 15.829333 3.328 22.528 10.026667z",fill:e.color,"p-id":"2821"}})]):"delAll"==e.name?t("svg",{staticClass:"icon",attrs:{t:"1766557610864",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3357",width:e.width,height:e.width}},[t("path",{attrs:{d:"M672.853333 192c69.973333 0 128 58.026667 128 128v512c0 69.973333-58.026667 128-128 128h-448.853333c-69.973333 0-128-58.026667-128-128v-512c0-69.973333 58.026667-128 128-128h448.853333z m0 64.853333h-448.853333c-17.066667 0-32.426667 6.826667-44.373333 18.773334-13.653333 11.946667-18.773333 27.306667-18.773334 44.373333v512c0 17.066667 6.826667 32.426667 18.773334 44.373333 11.946667 11.946667 29.013333 18.773333 44.373333 18.773334h448.853333c17.066667 0 32.426667-6.826667 44.373334-18.773334 11.946667-11.946667 18.773333-29.013333 18.773333-44.373333v-512c0-17.066667-6.826667-32.426667-18.773333-44.373333-11.946667-11.946667-27.306667-18.773333-44.373334-18.773334z m128-192.853333c69.973333 0 128 58.026667 128 128v576.853333h-64.853333v-576.853333c0-35.84-29.013333-64.853333-64.853333-64.853333h-447.146667v-63.146667h448.853333z m-247.466666 361.813333c11.946667-11.946667 32.426667-11.946667 46.08 0 11.946667 11.946667 11.946667 32.426667 0 46.08l-105.813334 104.106667 105.813334 105.813333c11.946667 11.946667 11.946667 32.426667 0 46.08-11.946667 11.946667-32.426667 11.946667-46.08 0l-105.813334-105.813333-105.813333 105.813333c-11.946667 11.946667-32.426667 11.946667-46.08 0-11.946667-11.946667-11.946667-32.426667 0-46.08l107.52-105.813333-105.813333-105.813333c-11.946667-11.946667-11.946667-32.426667 0-46.08 11.946667-11.946667 32.426667-11.946667 46.08 0l105.813333 105.813333 104.106667-104.106667z","p-id":"3358",fill:e.color}})]):e._e()},te=[];const re={props:{name:{type:String,default:"point"},width:{type:String,default:"20"},color:{type:String,default:"#6a6a6a"}}},ie=re;function ne(e,t,r,i,n,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=r,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):n&&(l=a?function(){n.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(c.functional){c._injectStyles=l;var h=c.render;c.render=function(e,t){return l.call(t),h(e,t)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,l):[l]}return{exports:e,options:c}}var oe=ne(ie,ee,te,!1,null,null,null);const se=oe.exports,ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF7GlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6Tl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Uc84kAPAa8MoM/qPAH2cimE0AYCuQKmHPAN+eLfhqBAaBvSXsLUD3bMFG1IqUdeZUDo/podLwvCmV3F6wTxzA3oxnYtjKRpshT/H8W/tLKwsDAbzUe4Cusc5A0N1wTkPzAtjKTsczscZP+Zf13R5YjSZ0bFVyJiMGOgbLaePQHFxK9fNC117eCb3VXuPwLQWIZaL/XVPf3Li1cQcOzTExJlXpREPpaQfiSUiVo85dv3rrku+tG0pfvu7C2DmEECz2Nn5k08Jv/SErs2+H06EXhRCj5ThmKrJHE/pLUSt8VCAemeuqq7akhZWzqHH43brQvzZuj/1GCHGW/Eb70AKrgY1KKQzNxOeYQ9QKE7ZCBN0NOHUnSkmABuCZciTTzntFOA4cU6hVyWyCtQ3rsWUWIQTN12wgYScKk8sif7YtCXHy5MkZNADYJJVc59LdN1WZVQFAH82OjqVzyU5N6MeB3wHnywX/D+/GdEtw++AIAAAAAElFTkSuQmCC";var ue=function(){var e=this,t=e._self._c;return t("div",{staticClass:"loading-wrapper"},[t("div",{staticClass:"loading-main-box"},[e.loading?t("div",{staticClass:"loading-box"},[e._v("地图加载中...")]):e._e(),e._t("default")],2)])},de=[];const pe={name:"loadingIndex",props:{loading:{type:Boolean,default:!0}}},fe=pe;var me=ne(fe,ue,de,!1,null,null,null);const ye=me.exports;var ge=function(){var e=this,t=e._self._c;return t("Teleport",{attrs:{to:"body"}},[e.visible?t("div",{ref:"tooltipRef",staticClass:"arcgis-custom-tooltip",style:e.tooltipStyle},[e._t("default",null,{data:e.showData})],2):e._e()])},we=[];const be={name:"CustomTooltip",computed:{tooltipStyle(){let e=this.$refs.tooltipRef;if(!e)return{left:this.x+"px",top:this.y+"px"};const t=e.getBoundingClientRect(),r=t.width,i=t.height,n=this.x-r/2+"px",o=this.y-i-10+"px";return{left:n,top:o,position:"absolute"}}},data(){return{visible:!1,x:0,y:0,showData:null}},methods:{show(e,t){this.x=e.x,this.y=e.y,this.showData=t,this.visible=!0,this.$nextTick(()=>{})},hide(){this.visible=!1}}},ve=be;var Ae=ne(ve,ge,we,!1,null,null,null);const Me=Ae.exports;var Ee,Se,Te,xe,ke,Ie,Pe,Ne,Le=[],Re=0,Oe=null,Ce=null;function Ge(e,t){let r;return(...i)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,i),t)}}const je={name:"gjMap",components:{CustomTooltip:Me,svgIcon:se,loadingBox:ye},props:{mapParams:{type:Object,default:c},noAbleMoving:{type:Boolean,default:!0},center:{type:Array,default:()=>[113.33799948954312,23.14565684412003]},iconData:{type:Object,default:()=>({url:$,cardRightPng:ae,width:32,height:32})},postion:{type:String,default:"bottom"},gjData:{type:Array,default:()=>[]}},computed:{},data(){return{mapId:"map"+Math.round(1e4*Math.random()),isLoading:!0,currentPathIndex:0,pathCoordinates:[],pointCoordinates:[],isPaused:!1,speedNum:1,speed:500,imgPathData:null}},mounted(){this.isLoading=!0,this.init(this.mapParams)},methods:{returnLineSymbol(e){return new window.jkEsri.SimpleLineSymbol({color:e.color,width:e.width})},returnMarkerSymbol(e){return new window.jkEsri.PictureMarkerSymbol({url:e.url,width:e.width,height:e.height})},returnPolyLine(e=[]){return new window.jkEsri.Polyline({paths:e})},changeSpeed(){switch(this.speedNum<3?this.speedNum++:this.speedNum=1,this.speedNum){case 1:this.speed=1e3;break;case 2:this.speed=550;break;case 3:this.speed=300;break;default:break}},pauseAnimation(){this.isPaused=!0,cancelAnimationFrame(Oe),Oe=null},stopAnimation(){this.currentPathIndex=0,Pe&&Pe.geometry&&(Pe.geometry=null),Ne&&Ne.geometry&&(Ne.geometry=null),this.pauseAnimation()},resumeAnimation(){this.isPaused&&!Oe&&(this.isPaused=!1,Re=performance.now(),this.animate())},startAnimation(){null===Oe&&(this.currentPathIndex=0,Re=performance.now(),this.isPaused=!1,this.animate(Re))},changeMove(){0==this.currentPathIndex?this.startAnimation():this.isPaused?this.resumeAnimation():this.pauseAnimation()},animate(e){if(this.isPaused)return;const t=e-Re;if(t>=this.speed&&this.currentPathIndex<this.pathCoordinates.length){const e=this.pathCoordinates[this.currentPathIndex];this.updatePosition(e);const t=this.pathCoordinates.slice(0,this.currentPathIndex+1);this.updateTrail(t),Re=performance.now(),this.currentPathIndex++}Oe=this.currentPathIndex<this.pathCoordinates.length?requestAnimationFrame(e=>this.animate(e)):null},updatePosition(e){if(this.isPaused)return;let t=this.getBearingForPath(e);t<-90&&(t=-180+t),Pe.symbol.angle=this.getBearingForPath(e)<0&&this.getBearingForPath(e)>-90?t:Math.abs(t),Pe.symbol.url=this.getBearingForPath(e)>=0?this.imgPathData.url:this.imgPathData.cardRightPng,Pe.geometry=new window.jkEsri.Point({x:e[0],y:e[1]})},updateTrail(e,t=!1){if(Ne&&Ne.geometry){if(t)return void(Ne.geometry=this.returnPolyLine());if(e.length<2)return;Ne.geometry=this.returnPolyLine([e.map(([e,t])=>[e,t])])}},getBearingForPath(e){if(this.currentPathIndex<=1)return 0;const t=this.pathCoordinates[this.currentPathIndex-2],r=this.pathCoordinates[this.currentPathIndex-1],i={type:"Feature",geometry:{type:"Point",coordinates:t}},n={type:"Feature",geometry:{type:"Point",coordinates:r}};return _(i,n)},returnGraphic(e,t){return new window.jkEsri.Graphic({geometry:m(e),symbol:t})},initGraphics(){if(this.isLoading=!1,Ee&&Se&&(xe&&(xe.removeAll(),Ee.remove(xe),xe=null),ke&&(ke.removeAll(),Ee.remove(ke),ke=null),Ce&&(Ce.removeAll(),Ee.remove(Ce),Ce=null),Pe&&(Pe.geometry=null,Pe=null),Ne&&(Ne.geometry=null,Ne=null),Se&&Se.graphics.removeAll()),this.pathCoordinates.length>0){xe=new window.jkEsri.GraphicsLayer({id:"startLayer"}),xe.add(this.returnGraphic(this.pathCoordinates[0],this.returnMarkerSymbol({url:he,width:24,height:30}))),ke=new window.jkEsri.GraphicsLayer({id:"endLayer"}),ke.add(this.returnGraphic(this.pathCoordinates[this.pathCoordinates.length-1],this.returnMarkerSymbol({url:le,width:24,height:30}))),Pe=new window.jkEsri.Graphic({geometry:null,symbol:this.returnMarkerSymbol(this.imgPathData)}),Ne=new window.jkEsri.Graphic({geometry:this.returnPolyLine(),symbol:this.returnLineSymbol({color:"#a3d1be",width:2})}),Ce=new window.jkEsri.GraphicsLayer({id:"polylineInit"});let e=new window.jkEsri.Graphic({geometry:this.returnPolyLine(this.pathCoordinates),symbol:this.returnLineSymbol({color:"#176415",width:2})});Ce.add(e),Ee.add(Ce),Ee.add(Ie,18),Se.graphics.add(Ne,11),Se.graphics.add(Pe,10),Ee.add(xe,19),Ee.add(ke,19),H(e.geometry.extent)}else xe=new window.jkEsri.Graphic({geometry:m(this.center),symbol:this.returnMarkerSymbol({url:ce,width:32,height:32})}),Se.graphics.add(xe,8),H(this.center)},loadMapData(){if(this.imgPathData=this.iconData,this.iconData.cardRightPng||(this.imgPathData.cardRightPng=this.iconData.url),this.pathCoordinates=[],this.pointCoordinates=[],Ee&&Se)if(this.stopAnimation(),Ie&&Ee&&(Ie.removeAll(),Ie=null,Ee.remove(Ie)),this.gjData&&this.gjData.length>1){let e=JSON.parse(JSON.stringify(this.gjData)),t=[];Ie=new window.jkEsri.GraphicsLayer({id:"pointLayer"}),e.map(e=>{if(e.longitude=e[window._$config.jd||"jd"]||e.longitude||"",e.latitude=e[window._$config.wd||"wd"]||e.latitude||"",e.longitude&&e.latitude){e.point=m([e.longitude,e.latitude]),t.push([e.longitude,e.latitude]),e.longitude=Number(e.longitude)?Number(e.longitude).toFixed(2):e.longitude,e.latitude=Number(e.latitude)?Number(e.latitude).toFixed(2):e.latitude;const r=new window.jkEsri.Graphic({geometry:e.point,attributes:e,symbol:{type:"simple-marker",size:"8px",color:"#98fe33"}});Ie.add(r),this.pointCoordinates.push(e)}}),this.pathCoordinates=t,this.initGraphics()}else this.initGraphics()},TDTinstance(e,t){for(const r in t){const i=e.modules[r].split("/").pop();"geometryEngine"===i&&(Le.geometryEngine=t[r]),"webMercatorUtils"===i&&(Le.webMercatorToGeographic=t[r].webMercatorToGeographic,Le.geographicToWebMercator=t[r].geographicToWebMercator),Le[i]=t[r]}window.jkEsri=Le},init(e){(0,a.loadCss)(e.initCss),(0,a.loadModules)(e.modules||[],{url:e.initJs}).then(this.TDTinstance.bind(this,this.mapParams)).then(this.initMap.bind(this))},hideDefaulte(){Se.container.style.cursor="default",this.$refs.tooltip.hide()},async debouncedHover(e){const t=await Se.hitTest(e);if(t&&t.results&&t.screenPoint)if(t.results.length>0){let e=null;t.results.some(t=>{t.graphic&&t.graphic.layer&&t.graphic.layer.id&&"pointLayer"==t.graphic.layer.id&&(e=t.graphic)}),e?(Se.container.style.cursor="pointer",this.$refs.tooltip.show({x:t.screenPoint.x,y:t.screenPoint.y},e.attributes)):this.hideDefaulte()}else this.hideDefaulte();else this.hideDefaulte()},initMap(){O(this.mapId,{mapType:this.mapParams.mapType,layersType:this.mapParams.layersType,center:this.center,zoom:7}).then(e=>{Ee=e.map,Se=e.view,this.isLoading=!1,Te=new window.jkEsri.Measurement({view:Se}),Se.on("pointer-move",Ge(this.debouncedHover,300)),this.loadMapData()})},drawMeasurement(e){Te&&(Te.clear(),Te.activeTool=null,setTimeout(()=>{Te.activeTool=e},500))},clearMeasurement(){Te&&Te.clear()},onRefreshMapGj(){this.destroy(),setTimeout(()=>{this.loadMapData()},500)},destroy(){this.clearMeasurement(),this.stopAnimation()}}},Ze=je;var De=ne(Ze,o,s,!1,null,null,null);const ze=De.exports;var Ue=function(){var e=this,t=e._self._c;return t("loading-box",{attrs:{loading:e.isLoading}},[t("div",{staticClass:"arcgisMap-box"},[t("div",{staticClass:"map-canvans",attrs:{id:e.mapId}}),!e.isLoading&&e.isSearch?t("searchMap",{ref:"searchRef",on:{selectPoint:e.refreshPoint,clearSearchMap:e.clearSearchMap}}):e._e()],1)])},We=[];const Fe={initJs:"https://web.joinken.cn:82/arcgis/4.30/init.js",initCss:"https://web.joinken.cn:82/arcgis/4.30/esri/themes/light/main.css",config:null,layersType:"tdtYxt",baseMapUrl:"https://sp.joinken.cn/arcgis2d/rest/services/base/china_04/MapServer",center:[113.33799948954312,23.14565684412003],extent:null,zoom:7,minZoom:1,maxZoom:17,modules:["esri/config","esri/Map","esri/request","esri/views/MapView","esri/layers/BaseTileLayer","esri/views/SceneView","esri/Color","esri/geometry/Point","esri/geometry/Circle","esri/geometry/Polygon","esri/geometry/Polyline","esri/geometry/SpatialReference","esri/geometry/Extent","esri/layers/GraphicsLayer","esri/geometry/geometryEngine","esri/geometry/support/webMercatorUtils","esri/layers/BaseDynamicLayer","esri/layers/MapImageLayer","esri/layers/WebTileLayer","esri/layers/TileLayer","esri/layers/WMSLayer","esri/layers/WMTSLayer","esri/symbols/PictureMarkerSymbol","esri/symbols/TextSymbol","esri/symbols/SimpleLineSymbol","esri/layers/support/TileInfo","esri/widgets/Sketch/SketchViewModel","esri/Graphic","esri/Camera","esri/widgets/ScaleBar","esri/widgets/Swipe","esri/geometry/projection","esri/widgets/Measurement"]},Ve=Fe;var Je=function(){var e=this,t=e._self._c;return t("div",{staticClass:"arcgis-search-wrapper"},[t("div",{staticClass:"arcigs-search-box"},[t("CustomSearchInput",{on:{"checked-point":e.changeCheckedPoint,search:e.searchMap,clear:e.clearSearch},model:{value:e.keyWord,callback:function(t){e.keyWord=t},expression:"keyWord"}}),e.keyWord&&e.isSearch&&!e.checkedPoint?t("div",{staticClass:"search-item-box"},[t("div",{staticClass:"arcgis-line"}),t("div",{staticClass:"search-item-wrapper"},[e.mapNameList.length>0?[e._l(e.mapNameList,function(r,i){return t("div",{key:i,staticClass:"search-item",on:{click:function(t){return t.stopPropagation(),e.goDetail(r)}}},[t("div",{staticClass:"search-name"},[e._v(e._s(r.name))]),t("div",{staticClass:"search-address"},[e._v(e._s(r.address))])])}),e.loadPage?t("div",{staticClass:"loaded-box"},[e._v(" "+e._s(e.finished?"数据加载中...":"数据已到底!!!")+" ")]):e._e()]:t("div",{staticClass:"search-no-data"},[e._v(" "+e._s(e.loadSearch?"数据加载中...":"暂无数据")+" ")])],2)]):e._e()],1),t("CustomModal",{ref:"message",attrs:{"z-index":2e3,animation:"fade",width:"400px"}},[t("p",[e._v("这是淡入弹框")])])],1)},Be=[],Ye=function(){var e=this,t=e._self._c;return t("transition",{attrs:{name:"message-fade"}},[e.localVisible?t("div",{staticClass:"custom-message",class:`custom-message--${e.type}`,on:{click:e.handleClick}},[(e.showIcon,e._e()),t("span",{staticClass:"custom-message__content"},[e._v(e._s(e.message))]),e.closable?t("button",{staticClass:"custom-message__close",attrs:{type:"button","aria-label":"关闭提示"},on:{click:function(t){return t.stopPropagation(),e.close.apply(null,arguments)}}},[e._v(" × ")]):e._e()]):e._e()])},Qe=[];const He={name:"CustomMessage",props:{closable:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1}},data(){return{timer:null,message:"",showIcon:!1,localVisible:!1,duration:3e3,type:"info"}},computed:{iconMap(){return{success:"✓",error:"✗",warning:"⚠",info:"ℹ"}}},mounted(){this.localVisible&&this.startTimer()},beforeUnmount(){this.clearTimer()},methods:{startTimer(){this.clearTimer(),this.duration>0&&!this.closable&&(this.timer=setTimeout(()=>{this.close()},this.duration))},clearTimer(){this.timer&&(clearTimeout(this.timer),this.timer=null)},close(){this.localVisible=!1},handleClick(){this.closeOnClick&&!this.closable&&this.close()},show(e={}){const{message:t,type:r="info",duration:i=3e3,closable:n,closeOnClick:o}=e;void 0!==t&&(this.message=t),this.type=r,void 0!==i&&(this.duration=i),void 0!==n&&(this.$props.closable=n),void 0!==o&&(this.$props.closeOnClick=o),this.localVisible=!0,this.startTimer()}}},Xe=He;var Ke=ne(Xe,Ye,Qe,!1,null,null,null);const qe=Ke.exports;var _e=function(){var e=this,t=e._self._c;return t("div",{staticClass:"search-input-wrapper"},[t("div",{staticClass:"input-container"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"}],ref:"input",staticClass:"custom-input",attrs:{type:"text",placeholder:e.computedPlaceholder},domProps:{value:e.localValue},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch.apply(null,arguments)},input:[function(t){t.target.composing||(e.localValue=t.target.value)},e.onInput],focus:function(t){e.isFocused=!0},blur:function(t){e.isFocused=!1}}}),!e.localValue||!e.isFocused&&e.isMobile?e._e():t("button",{staticClass:"clear-btn",attrs:{type:"button","aria-label":"清除内容"},on:{click:function(t){return t.stopPropagation(),e.handleClear.apply(null,arguments)}}},[e._v(" × ")]),t("button",{staticClass:"search-btn",attrs:{type:"button","aria-label":"搜索"},on:{click:function(t){return t.stopPropagation(),e.handleSearch.apply(null,arguments)}}},[t("svg",{attrs:{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"}},[t("circle",{attrs:{cx:"11",cy:"11",r:"8"}}),t("path",{attrs:{d:"m21 21-4.35-4.35"}})])])]),t("label",{staticClass:"custom-checkbox"},[t("input",{staticClass:"checkbox-input",attrs:{type:"checkbox"},domProps:{checked:e.localCheckedPoint},on:{change:e.toggleCheckedPoint}}),t("span",{staticClass:"checkbox-box"},[t("svg",{staticClass:"check-icon",attrs:{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M1 4L3.5 6.5L9 1",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}})])]),t("span",{staticClass:"checkbox-label",style:{color:e.localCheckedPoint?"#409eff":"#fff"}},[e._v("坐标反查")])])])},$e=[];const et={name:"SearchInputWithCheckbox",props:{value:{type:String,default:""}},data(){return{localValue:this.value,localCheckedPoint:!1,isFocused:!1}},computed:{computedPlaceholder(){return this.localCheckedPoint?"输入经纬度(115.83,23.43)":"输入地址"},isMobile(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}},watch:{value(e){this.localValue=e}},methods:{handleSearch(){this.$emit("search",this.localValue)},handleClear(){this.localValue="",this.$emit("clear",this.localValue),this.$refs.input.focus()},toggleCheckedPoint(e){const t=e.target.checked;this.localCheckedPoint=t,this.$emit("checkedPoint",t)},onInput(){}}},tt=et;var rt=ne(tt,_e,$e,!1,null,null,null);const it=rt.exports;function nt(e,t){return function(){return e.apply(t,arguments)}}const{toString:ot}=Object.prototype,{getPrototypeOf:st}=Object,{iterator:at,toStringTag:lt}=Symbol,ct=(e=>t=>{const r=ot.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ht=e=>(e=e.toLowerCase(),t=>ct(t)===e),ut=e=>t=>typeof t===e,{isArray:dt}=Array,pt=ut("undefined");function ft(e){return null!==e&&!pt(e)&&null!==e.constructor&&!pt(e.constructor)&&wt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const mt=ht("ArrayBuffer");function yt(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&mt(e.buffer),t}const gt=ut("string"),wt=ut("function"),bt=ut("number"),vt=e=>null!==e&&"object"===typeof e,At=e=>!0===e||!1===e,Mt=e=>{if("object"!==ct(e))return!1;const t=st(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(lt in e)&&!(at in e)},Et=e=>{if(!vt(e)||ft(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},St=ht("Date"),Tt=ht("File"),xt=ht("Blob"),kt=ht("FileList"),It=e=>vt(e)&&wt(e.pipe),Pt=e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||wt(e.append)&&("formdata"===(t=ct(e))||"object"===t&&wt(e.toString)&&"[object FormData]"===e.toString()))},Nt=ht("URLSearchParams"),[Lt,Rt,Ot,Ct]=["ReadableStream","Request","Response","Headers"].map(ht),Gt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jt(e,t,{allOwnKeys:r=!1}={}){if(null===e||"undefined"===typeof e)return;let i,n;if("object"!==typeof e&&(e=[e]),dt(e))for(i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else{if(ft(e))return;const n=r?Object.getOwnPropertyNames(e):Object.keys(e),o=n.length;let s;for(i=0;i<o;i++)s=n[i],t.call(null,e[s],s,e)}}function Zt(e,t){if(ft(e))return null;t=t.toLowerCase();const r=Object.keys(e);let i,n=r.length;while(n-- >0)if(i=r[n],t===i.toLowerCase())return i;return null}const Dt=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:r.g)(),zt=e=>!pt(e)&&e!==Dt;function Ut(){const{caseless:e,skipUndefined:t}=zt(this)&&this||{},r={},i=(i,n)=>{const o=e&&Zt(r,n)||n;Mt(r[o])&&Mt(i)?r[o]=Ut(r[o],i):Mt(i)?r[o]=Ut({},i):dt(i)?r[o]=i.slice():t&&pt(i)||(r[o]=i)};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&jt(arguments[n],i);return r}const Wt=(e,t,r,{allOwnKeys:i}={})=>(jt(t,(t,i)=>{r&&wt(t)?e[i]=nt(t,r):e[i]=t},{allOwnKeys:i}),e),Ft=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),Vt=(e,t,r,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Jt=(e,t,r,i)=>{let n,o,s;const a={};if(t=t||{},null==e)return t;do{n=Object.getOwnPropertyNames(e),o=n.length;while(o-- >0)s=n[o],i&&!i(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==r&&st(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Bt=(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const i=e.indexOf(t,r);return-1!==i&&i===r},Yt=e=>{if(!e)return null;if(dt(e))return e;let t=e.length;if(!bt(t))return null;const r=new Array(t);while(t-- >0)r[t]=e[t];return r},Qt=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&st(Uint8Array)),Ht=(e,t)=>{const r=e&&e[at],i=r.call(e);let n;while((n=i.next())&&!n.done){const r=n.value;t.call(e,r[0],r[1])}},Xt=(e,t)=>{let r;const i=[];while(null!==(r=e.exec(t)))i.push(r);return i},Kt=ht("HTMLFormElement"),qt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),_t=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),$t=ht("RegExp"),er=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),i={};jt(r,(r,n)=>{let o;!1!==(o=t(r,n,e))&&(i[n]=o||r)}),Object.defineProperties(e,i)},tr=e=>{er(e,(t,r)=>{if(wt(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const i=e[r];wt(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},rr=(e,t)=>{const r={},i=e=>{e.forEach(e=>{r[e]=!0})};return dt(e)?i(e):i(String(e).split(t)),r},ir=()=>{},nr=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t;function or(e){return!!(e&&wt(e.append)&&"FormData"===e[lt]&&e[at])}const sr=e=>{const t=new Array(10),r=(e,i)=>{if(vt(e)){if(t.indexOf(e)>=0)return;if(ft(e))return e;if(!("toJSON"in e)){t[i]=e;const n=dt(e)?[]:{};return jt(e,(e,t)=>{const o=r(e,i+1);!pt(o)&&(n[t]=o)}),t[i]=void 0,n}}return e};return r(e,0)},ar=ht("AsyncFunction"),lr=e=>e&&(vt(e)||wt(e))&&wt(e.then)&&wt(e.catch),cr=((e,t)=>e?setImmediate:t?((e,t)=>(Dt.addEventListener("message",({source:r,data:i})=>{r===Dt&&i===e&&t.length&&t.shift()()},!1),r=>{t.push(r),Dt.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"===typeof setImmediate,wt(Dt.postMessage)),hr="undefined"!==typeof queueMicrotask?queueMicrotask.bind(Dt):"undefined"!==typeof process&&process.nextTick||cr,ur=e=>null!=e&&wt(e[at]),dr={isArray:dt,isArrayBuffer:mt,isBuffer:ft,isFormData:Pt,isArrayBufferView:yt,isString:gt,isNumber:bt,isBoolean:At,isObject:vt,isPlainObject:Mt,isEmptyObject:Et,isReadableStream:Lt,isRequest:Rt,isResponse:Ot,isHeaders:Ct,isUndefined:pt,isDate:St,isFile:Tt,isBlob:xt,isRegExp:$t,isFunction:wt,isStream:It,isURLSearchParams:Nt,isTypedArray:Qt,isFileList:kt,forEach:jt,merge:Ut,extend:Wt,trim:Gt,stripBOM:Ft,inherits:Vt,toFlatObject:Jt,kindOf:ct,kindOfTest:ht,endsWith:Bt,toArray:Yt,forEachEntry:Ht,matchAll:Xt,isHTMLForm:Kt,hasOwnProperty:_t,hasOwnProp:_t,reduceDescriptors:er,freezeMethods:tr,toObjectSet:rr,toCamelCase:qt,noop:ir,toFiniteNumber:nr,findKey:Zt,global:Dt,isContextDefined:zt,isSpecCompliantForm:or,toJSONObject:sr,isAsyncFn:ar,isThenable:lr,setImmediate:cr,asap:hr,isIterable:ur};function pr(e,t,r,i,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),i&&(this.request=i),n&&(this.response=n,this.status=n.status?n.status:null)}dr.inherits(pr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:dr.toJSONObject(this.config),code:this.code,status:this.status}}});const fr=pr.prototype,mr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{mr[e]={value:e}}),Object.defineProperties(pr,mr),Object.defineProperty(fr,"isAxiosError",{value:!0}),pr.from=(e,t,r,i,n,o)=>{const s=Object.create(fr);dr.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const a=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return pr.call(s,a,l,r,i,n),e&&null==s.cause&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",o&&Object.assign(s,o),s};const yr=pr,gr=null;function wr(e){return dr.isPlainObject(e)||dr.isArray(e)}function br(e){return dr.endsWith(e,"[]")?e.slice(0,-2):e}function vr(e,t,r){return e?e.concat(t).map(function(e,t){return e=br(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}function Ar(e){return dr.isArray(e)&&!e.some(wr)}const Mr=dr.toFlatObject(dr,{},null,function(e){return/^is[A-Z]/.test(e)});function Er(e,t,r){if(!dr.isObject(e))throw new TypeError("target must be an object");t=t||new(gr||FormData),r=dr.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!dr.isUndefined(t[e])});const i=r.metaTokens,n=r.visitor||h,o=r.dots,s=r.indexes,a=r.Blob||"undefined"!==typeof Blob&&Blob,l=a&&dr.isSpecCompliantForm(t);if(!dr.isFunction(n))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(dr.isDate(e))return e.toISOString();if(dr.isBoolean(e))return e.toString();if(!l&&dr.isBlob(e))throw new yr("Blob is not supported. Use a Buffer instead.");return dr.isArrayBuffer(e)||dr.isTypedArray(e)?l&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function h(e,r,n){let a=e;if(e&&!n&&"object"===typeof e)if(dr.endsWith(r,"{}"))r=i?r:r.slice(0,-2),e=JSON.stringify(e);else if(dr.isArray(e)&&Ar(e)||(dr.isFileList(e)||dr.endsWith(r,"[]"))&&(a=dr.toArray(e)))return r=br(r),a.forEach(function(e,i){!dr.isUndefined(e)&&null!==e&&t.append(!0===s?vr([r],i,o):null===s?r:r+"[]",c(e))}),!1;return!!wr(e)||(t.append(vr(n,r,o),c(e)),!1)}const u=[],d=Object.assign(Mr,{defaultVisitor:h,convertValue:c,isVisitable:wr});function p(e,r){if(!dr.isUndefined(e)){if(-1!==u.indexOf(e))throw Error("Circular reference detected in "+r.join("."));u.push(e),dr.forEach(e,function(e,i){const o=!(dr.isUndefined(e)||null===e)&&n.call(t,e,dr.isString(i)?i.trim():i,r,d);!0===o&&p(e,r?r.concat(i):[i])}),u.pop()}}if(!dr.isObject(e))throw new TypeError("data must be an object");return p(e),t}const Sr=Er;function Tr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function xr(e,t){this._pairs=[],e&&Sr(e,this,t)}const kr=xr.prototype;kr.append=function(e,t){this._pairs.push([e,t])},kr.toString=function(e){const t=e?function(t){return e.call(this,t,Tr)}:Tr;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Ir=xr;function Pr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Nr(e,t,r){if(!t)return e;const i=r&&r.encode||Pr;dr.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let o;if(o=n?n(t,r):dr.isURLSearchParams(t)?t.toString():new Ir(t,r).toString(i),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}class Lr{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){dr.forEach(this.handlers,function(t){null!==t&&e(t)})}}const Rr=Lr,Or={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cr="undefined"!==typeof URLSearchParams?URLSearchParams:Ir,Gr="undefined"!==typeof FormData?FormData:null,jr="undefined"!==typeof Blob?Blob:null,Zr={isBrowser:!0,classes:{URLSearchParams:Cr,FormData:Gr,Blob:jr},protocols:["http","https","file","blob","url","data"]},Dr="undefined"!==typeof window&&"undefined"!==typeof document,zr="object"===typeof navigator&&navigator||void 0,Ur=Dr&&(!zr||["ReactNative","NativeScript","NS"].indexOf(zr.product)<0),Wr=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),Fr=Dr&&window.location.href||"http://localhost",Vr={...e,...Zr};function Jr(e,t){return Sr(e,new Vr.classes.URLSearchParams,{visitor:function(e,t,r,i){return Vr.isNode&&dr.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Br(e){return dr.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}function Yr(e){const t={},r=Object.keys(e);let i;const n=r.length;let o;for(i=0;i<n;i++)o=r[i],t[o]=e[o];return t}function Qr(e){function t(e,r,i,n){let o=e[n++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=n>=e.length;if(o=!o&&dr.isArray(i)?i.length:o,a)return dr.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s;i[o]&&dr.isObject(i[o])||(i[o]=[]);const l=t(e,r,i[o],n);return l&&dr.isArray(i[o])&&(i[o]=Yr(i[o])),!s}if(dr.isFormData(e)&&dr.isFunction(e.entries)){const r={};return dr.forEachEntry(e,(e,i)=>{t(Br(e),i,r,0)}),r}return null}const Hr=Qr;function Xr(e,t,r){if(dr.isString(e))try{return(t||JSON.parse)(e),dr.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(r||JSON.stringify)(e)}const Kr={transitional:Or,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",i=r.indexOf("application/json")>-1,n=dr.isObject(e);n&&dr.isHTMLForm(e)&&(e=new FormData(e));const o=dr.isFormData(e);if(o)return i?JSON.stringify(Hr(e)):e;if(dr.isArrayBuffer(e)||dr.isBuffer(e)||dr.isStream(e)||dr.isFile(e)||dr.isBlob(e)||dr.isReadableStream(e))return e;if(dr.isArrayBufferView(e))return e.buffer;if(dr.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Jr(e,this.formSerializer).toString();if((s=dr.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Sr(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return n||i?(t.setContentType("application/json",!1),Xr(e)):e}],transformResponse:[function(e){const t=this.transitional||Kr.transitional,r=t&&t.forcedJSONParsing,i="json"===this.responseType;if(dr.isResponse(e)||dr.isReadableStream(e))return e;if(e&&dr.isString(e)&&(r&&!this.responseType||i)){const r=t&&t.silentJSONParsing,o=!r&&i;try{return JSON.parse(e,this.parseReviver)}catch(n){if(o){if("SyntaxError"===n.name)throw yr.from(n,yr.ERR_BAD_RESPONSE,this,null,this.response);throw n}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Vr.classes.FormData,Blob:Vr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};dr.forEach(["delete","get","head","post","put","patch"],e=>{Kr.headers[e]={}});const qr=Kr,_r=dr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$r=e=>{const t={};let r,i,n;return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),i=e.substring(n+1).trim(),!r||t[r]&&_r[r]||("set-cookie"===r?t[r]?t[r].push(i):t[r]=[i]:t[r]=t[r]?t[r]+", "+i:i)}),t},ei=Symbol("internals");function ti(e){return e&&String(e).trim().toLowerCase()}function ri(e){return!1===e||null==e?e:dr.isArray(e)?e.map(ri):String(e)}function ii(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;while(i=r.exec(e))t[i[1]]=i[2];return t}const ni=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function oi(e,t,r,i,n){return dr.isFunction(i)?i.call(this,t,r):(n&&(t=r),dr.isString(t)?dr.isString(i)?-1!==t.indexOf(i):dr.isRegExp(i)?i.test(t):void 0:void 0)}function si(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function ai(e,t){const r=dr.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+r,{value:function(e,r,n){return this[i].call(this,t,e,r,n)},configurable:!0})})}class li{constructor(e){e&&this.set(e)}set(e,t,r){const i=this;function n(e,t,r){const n=ti(t);if(!n)throw new Error("header name must be a non-empty string");const o=dr.findKey(i,n);(!o||void 0===i[o]||!0===r||void 0===r&&!1!==i[o])&&(i[o||t]=ri(e))}const o=(e,t)=>dr.forEach(e,(e,r)=>n(e,r,t));if(dr.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(dr.isString(e)&&(e=e.trim())&&!ni(e))o($r(e),t);else if(dr.isObject(e)&&dr.isIterable(e)){let r,i,n={};for(const t of e){if(!dr.isArray(t))throw TypeError("Object iterator must return a key-value pair");n[i=t[0]]=(r=n[i])?dr.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}o(n,t)}else null!=e&&n(t,e,r);return this}get(e,t){if(e=ti(e),e){const r=dr.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return ii(e);if(dr.isFunction(t))return t.call(this,e,r);if(dr.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ti(e),e){const r=dr.findKey(this,e);return!(!r||void 0===this[r]||t&&!oi(this,this[r],r,t))}return!1}delete(e,t){const r=this;let i=!1;function n(e){if(e=ti(e),e){const n=dr.findKey(r,e);!n||t&&!oi(r,r[n],n,t)||(delete r[n],i=!0)}}return dr.isArray(e)?e.forEach(n):n(e),i}clear(e){const t=Object.keys(this);let r=t.length,i=!1;while(r--){const n=t[r];e&&!oi(this,this[n],n,e,!0)||(delete this[n],i=!0)}return i}normalize(e){const t=this,r={};return dr.forEach(this,(i,n)=>{const o=dr.findKey(r,n);if(o)return t[o]=ri(i),void delete t[n];const s=e?si(n):String(n).trim();s!==n&&delete t[n],t[s]=ri(i),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return dr.forEach(this,(r,i)=>{null!=r&&!1!==r&&(t[i]=e&&dr.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=this[ei]=this[ei]={accessors:{}},r=t.accessors,i=this.prototype;function n(e){const t=ti(e);r[t]||(ai(i,e),r[t]=!0)}return dr.isArray(e)?e.forEach(n):n(e),this}}li.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),dr.reduceDescriptors(li.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),dr.freezeMethods(li);const ci=li;function hi(e,t){const r=this||qr,i=t||r,n=ci.from(i.headers);let o=i.data;return dr.forEach(e,function(e){o=e.call(r,o,n.normalize(),t?t.status:void 0)}),n.normalize(),o}function ui(e){return!(!e||!e.__CANCEL__)}function di(e,t,r){yr.call(this,null==e?"canceled":e,yr.ERR_CANCELED,t,r),this.name="CanceledError"}dr.inherits(di,yr,{__CANCEL__:!0});const pi=di;function fi(e,t,r){const i=r.config.validateStatus;r.status&&i&&!i(r.status)?t(new yr("Request failed with status code "+r.status,[yr.ERR_BAD_REQUEST,yr.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}function mi(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function yi(e,t){e=e||10;const r=new Array(e),i=new Array(e);let n,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=i[s];n||(n=l),r[o]=a,i[o]=l;let h=s,u=0;while(h!==o)u+=r[h++],h%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-n<t)return;const d=c&&l-c;return d?Math.round(1e3*u/d):void 0}}const gi=yi;function wi(e,t){let r,i,n=0,o=1e3/t;const s=(t,o=Date.now())=>{n=o,r=null,i&&(clearTimeout(i),i=null),e(...t)},a=(...e)=>{const t=Date.now(),a=t-n;a>=o?s(e,t):(r=e,i||(i=setTimeout(()=>{i=null,s(r)},o-a)))},l=()=>r&&s(r);return[a,l]}const bi=wi,vi=(e,t,r=3)=>{let i=0;const n=gi(50,250);return bi(r=>{const o=r.loaded,s=r.lengthComputable?r.total:void 0,a=o-i,l=n(a),c=o<=s;i=o;const h={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&c?(s-o)/l:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0};e(h)},r)},Ai=(e,t)=>{const r=null!=e;return[i=>t[0]({lengthComputable:r,total:e,loaded:i}),t[1]]},Mi=e=>(...t)=>dr.asap(()=>e(...t)),Ei=Vr.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Vr.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Vr.origin),Vr.navigator&&/(msie|trident)/i.test(Vr.navigator.userAgent)):()=>!0,Si=Vr.hasStandardBrowserEnv?{write(e,t,r,i,n,o,s){if("undefined"===typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];dr.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),dr.isString(i)&&a.push(`path=${i}`),dr.isString(n)&&a.push(`domain=${n}`),!0===o&&a.push("secure"),dr.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"===typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Ti(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xi(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ki(e,t,r){let i=!Ti(t);return e&&(i||0==r)?xi(e,t):t}const Ii=e=>e instanceof ci?{...e}:e;function Pi(e,t){t=t||{};const r={};function i(e,t,r,i){return dr.isPlainObject(e)&&dr.isPlainObject(t)?dr.merge.call({caseless:i},e,t):dr.isPlainObject(t)?dr.merge({},t):dr.isArray(t)?t.slice():t}function n(e,t,r,n){return dr.isUndefined(t)?dr.isUndefined(e)?void 0:i(void 0,e,r,n):i(e,t,r,n)}function o(e,t){if(!dr.isUndefined(t))return i(void 0,t)}function s(e,t){return dr.isUndefined(t)?dr.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function a(r,n,o){return o in t?i(r,n):o in e?i(void 0,r):void 0}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,r)=>n(Ii(e),Ii(t),r,!0)};return dr.forEach(Object.keys({...e,...t}),function(i){const o=l[i]||n,s=o(e[i],t[i],i);dr.isUndefined(s)&&o!==a||(r[i]=s)}),r}const Ni=e=>{const t=Pi({},e);let{data:r,withXSRFToken:i,xsrfHeaderName:n,xsrfCookieName:o,headers:s,auth:a}=t;if(t.headers=s=ci.from(s),t.url=Nr(ki(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),dr.isFormData(r))if(Vr.hasStandardBrowserEnv||Vr.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(dr.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&s.set(e,r)})}if(Vr.hasStandardBrowserEnv&&(i&&dr.isFunction(i)&&(i=i(t)),i||!1!==i&&Ei(t.url))){const e=n&&o&&Si.read(o);e&&s.set(n,e)}return t},Li="undefined"!==typeof XMLHttpRequest,Ri=Li&&function(e){return new Promise(function(t,r){const i=Ni(e);let n=i.data;const o=ci.from(i.headers).normalize();let s,a,l,c,h,{responseType:u,onUploadProgress:d,onDownloadProgress:p}=i;function f(){c&&c(),h&&h(),i.cancelToken&&i.cancelToken.unsubscribe(s),i.signal&&i.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function y(){if(!m)return;const i=ci.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),n=u&&"text"!==u&&"json"!==u?m.response:m.responseText,o={data:n,status:m.status,statusText:m.statusText,headers:i,config:e,request:m};fi(function(e){t(e),f()},function(e){r(e),f()},o),m=null}m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(r(new yr("Request aborted",yr.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const i=t&&t.message?t.message:"Network Error",n=new yr(i,yr.ERR_NETWORK,e,m);n.event=t||null,r(n),m=null},m.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const n=i.transitional||Or;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),r(new yr(t,n.clarifyTimeoutError?yr.ETIMEDOUT:yr.ECONNABORTED,e,m)),m=null},void 0===n&&o.setContentType(null),"setRequestHeader"in m&&dr.forEach(o.toJSON(),function(e,t){m.setRequestHeader(t,e)}),dr.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),u&&"json"!==u&&(m.responseType=i.responseType),p&&([l,h]=vi(p,!0),m.addEventListener("progress",l)),d&&m.upload&&([a,c]=vi(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",c)),(i.cancelToken||i.signal)&&(s=t=>{m&&(r(!t||t.type?new pi(null,e,m):t),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(s),i.signal&&(i.signal.aborted?s():i.signal.addEventListener("abort",s)));const g=mi(i.url);g&&-1===Vr.protocols.indexOf(g)?r(new yr("Unsupported protocol "+g+":",yr.ERR_BAD_REQUEST,e)):m.send(n||null)})},Oi=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,i=new AbortController;const n=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;i.abort(t instanceof yr?t:new pi(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,n(new yr(`timeout ${t} of ms exceeded`,yr.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)}),e=null)};e.forEach(e=>e.addEventListener("abort",n));const{signal:a}=i;return a.unsubscribe=()=>dr.asap(s),a}},Ci=Oi,Gi=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let i,n=0;while(n<r)i=n+t,yield e.slice(n,i),n=i},ji=async function*(e,t){for await(const r of Zi(e))yield*Gi(r,t)},Zi=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},Di=(e,t,r,i)=>{const n=ji(e,t);let o,s=0,a=e=>{o||(o=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await n.next();if(t)return a(),void e.close();let o=i.byteLength;if(r){let e=s+=o;r(e)}e.enqueue(new Uint8Array(i))}catch(t){throw a(t),t}},cancel(e){return a(e),n.return()}},{highWaterMark:2})},zi=65536,{isFunction:Ui}=dr,Wi=(({Request:e,Response:t})=>({Request:e,Response:t}))(dr.global),{ReadableStream:Fi,TextEncoder:Vi}=dr.global,Ji=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},Bi=e=>{e=dr.merge.call({skipUndefined:!0},Wi,e);const{fetch:t,Request:r,Response:i}=e,n=t?Ui(t):"function"===typeof fetch,o=Ui(r),s=Ui(i);if(!n)return!1;const a=n&&Ui(Fi),l=n&&("function"===typeof Vi?(e=>t=>e.encode(t))(new Vi):async e=>new Uint8Array(await new r(e).arrayBuffer())),c=o&&a&&Ji(()=>{let e=!1;const t=new r(Vr.origin,{body:new Fi,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),h=s&&a&&Ji(()=>dr.isReadableStream(new i("").body)),u={stream:h&&(e=>e.body)};n&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!u[e]&&(u[e]=(t,r)=>{let i=t&&t[e];if(i)return i.call(t);throw new yr(`Response type '${e}' is not supported`,yr.ERR_NOT_SUPPORT,r)})})})();const d=async e=>{if(null==e)return 0;if(dr.isBlob(e))return e.size;if(dr.isSpecCompliantForm(e)){const t=new r(Vr.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return dr.isArrayBufferView(e)||dr.isArrayBuffer(e)?e.byteLength:(dr.isURLSearchParams(e)&&(e+=""),dr.isString(e)?(await l(e)).byteLength:void 0)},p=async(e,t)=>{const r=dr.toFiniteNumber(e.getContentLength());return null==r?d(t):r};return async e=>{let{url:n,method:s,data:a,signal:l,cancelToken:d,timeout:f,onDownloadProgress:m,onUploadProgress:y,responseType:g,headers:w,withCredentials:b="same-origin",fetchOptions:v}=Ni(e),A=t||fetch;g=g?(g+"").toLowerCase():"text";let M=Ci([l,d&&d.toAbortSignal()],f),E=null;const S=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let T;try{if(y&&c&&"get"!==s&&"head"!==s&&0!==(T=await p(w,a))){let e,t=new r(n,{method:"POST",body:a,duplex:"half"});if(dr.isFormData(a)&&(e=t.headers.get("content-type"))&&w.setContentType(e),t.body){const[e,r]=Ai(T,vi(Mi(y)));a=Di(t.body,zi,e,r)}}dr.isString(b)||(b=b?"include":"omit");const t=o&&"credentials"in r.prototype,l={...v,signal:M,method:s.toUpperCase(),headers:w.normalize().toJSON(),body:a,duplex:"half",credentials:t?b:void 0};E=o&&new r(n,l);let d=await(o?A(E,v):A(n,l));const f=h&&("stream"===g||"response"===g);if(h&&(m||f&&S)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=d[t]});const t=dr.toFiniteNumber(d.headers.get("content-length")),[r,n]=m&&Ai(t,vi(Mi(m),!0))||[];d=new i(Di(d.body,zi,r,()=>{n&&n(),S&&S()}),e)}g=g||"text";let x=await u[dr.findKey(u,g)||"text"](d,e);return!f&&S&&S(),await new Promise((t,r)=>{fi(t,r,{data:x,headers:ci.from(d.headers),status:d.status,statusText:d.statusText,config:e,request:E})})}catch(x){if(S&&S(),x&&"TypeError"===x.name&&/Load failed|fetch/i.test(x.message))throw Object.assign(new yr("Network Error",yr.ERR_NETWORK,e,E),{cause:x.cause||x});throw yr.from(x,x&&x.code,e,E)}}},Yi=new Map,Qi=e=>{let t=e&&e.env||{};const{fetch:r,Request:i,Response:n}=t,o=[i,n,r];let s,a,l=o.length,c=l,h=Yi;while(c--)s=o[c],a=h.get(s),void 0===a&&h.set(s,a=c?new Map:Bi(t)),h=a;return a},Hi=(Qi(),{http:gr,xhr:Ri,fetch:{get:Qi}});dr.forEach(Hi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const Xi=e=>`- ${e}`,Ki=e=>dr.isFunction(e)||null===e||!1===e;function qi(e,t){e=dr.isArray(e)?e:[e];const{length:r}=e;let i,n;const o={};for(let s=0;s<r;s++){let r;if(i=e[s],n=i,!Ki(i)&&(n=Hi[(r=String(i)).toLowerCase()],void 0===n))throw new yr(`Unknown adapter '${r}'`);if(n&&(dr.isFunction(n)||(n=n.get(t))))break;o[r||"#"+s]=n}if(!n){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map(Xi).join("\n"):" "+Xi(e[0]):"as no adapter specified";throw new yr("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return n}const _i={getAdapter:qi,adapters:Hi};function $i(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pi(null,e)}function en(e){$i(e),e.headers=ci.from(e.headers),e.data=hi.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=_i.getAdapter(e.adapter||qr.adapter,e);return t(e).then(function(t){return $i(e),t.data=hi.call(e,e.transformResponse,t),t.headers=ci.from(t.headers),t},function(t){return ui(t)||($i(e),t&&t.response&&(t.response.data=hi.call(e,e.transformResponse,t.response),t.response.headers=ci.from(t.response.headers))),Promise.reject(t)})}const tn="1.13.2",rn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{rn[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const nn={};function on(e,t,r){if("object"!==typeof e)throw new yr("options must be an object",yr.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let n=i.length;while(n-- >0){const o=i[n],s=t[o];if(s){const t=e[o],r=void 0===t||s(t,o,e);if(!0!==r)throw new yr("option "+o+" must be "+r,yr.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new yr("Unknown option "+o,yr.ERR_BAD_OPTION)}}rn.transitional=function(e,t,r){function i(e,t){return"[Axios v"+tn+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,o)=>{if(!1===e)throw new yr(i(n," has been removed"+(t?" in "+t:"")),yr.ERR_DEPRECATED);return t&&!nn[n]&&(nn[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,o)}},rn.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const sn={assertOptions:on,validators:rn},an=sn.validators;class ln{constructor(e){this.defaults=e||{},this.interceptors={request:new Rr,response:new Rr}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{r.stack?t&&!String(r.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+t):r.stack=t}catch(i){}}throw r}}_request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=Pi(this.defaults,t);const{transitional:r,paramsSerializer:i,headers:n}=t;void 0!==r&&sn.assertOptions(r,{silentJSONParsing:an.transitional(an.boolean),forcedJSONParsing:an.transitional(an.boolean),clarifyTimeoutError:an.transitional(an.boolean)},!1),null!=i&&(dr.isFunction(i)?t.paramsSerializer={serialize:i}:sn.assertOptions(i,{encode:an.function,serialize:an.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),sn.assertOptions(t,{baseUrl:an.spelling("baseURL"),withXsrfToken:an.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=n&&dr.merge(n.common,n[t.method]);n&&dr.forEach(["delete","get","head","post","put","patch","common"],e=>{delete n[e]}),t.headers=ci.concat(o,n);const s=[];let a=!0;this.interceptors.request.forEach(function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let h,u=0;if(!a){const e=[en.bind(this),void 0];e.unshift(...s),e.push(...l),h=e.length,c=Promise.resolve(t);while(u<h)c=c.then(e[u++],e[u++]);return c}h=s.length;let d=t;while(u<h){const e=s[u++],t=s[u++];try{d=e(d)}catch(p){t.call(this,p);break}}try{c=en.call(this,d)}catch(p){return Promise.reject(p)}u=0,h=l.length;while(u<h)c=c.then(l[u++],l[u++]);return c}getUri(e){e=Pi(this.defaults,e);const t=ki(e.baseURL,e.url,e.allowAbsoluteUrls);return Nr(t,e.params,e.paramsSerializer)}}dr.forEach(["delete","get","head","options"],function(e){ln.prototype[e]=function(t,r){return this.request(Pi(r||{},{method:e,url:t,data:(r||{}).data}))}}),dr.forEach(["post","put","patch"],function(e){function t(t){return function(r,i,n){return this.request(Pi(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}ln.prototype[e]=t(),ln.prototype[e+"Form"]=t(!0)});const cn=ln;class hn{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;while(t-- >0)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const i=new Promise(e=>{r.subscribe(e),t=e}).then(e);return i.cancel=function(){r.unsubscribe(t)},i},e(function(e,i,n){r.reason||(r.reason=new pi(e,i,n),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new hn(function(t){e=t});return{token:t,cancel:e}}}const un=hn;function dn(e){return function(t){return e.apply(null,t)}}function pn(e){return dr.isObject(e)&&!0===e.isAxiosError}const fn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(fn).forEach(([e,t])=>{fn[t]=e});const mn=fn;function yn(e){const t=new cn(e),r=nt(cn.prototype.request,t);return dr.extend(r,cn.prototype,t,{allOwnKeys:!0}),dr.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return yn(Pi(e,t))},r}const gn=yn(qr);gn.Axios=cn,gn.CanceledError=pi,gn.CancelToken=un,gn.isCancel=ui,gn.VERSION=tn,gn.toFormData=Sr,gn.AxiosError=yr,gn.Cancel=gn.CanceledError,gn.all=function(e){return Promise.all(e)},gn.spread=dn,gn.isAxiosError=pn,gn.mergeConfig=Pi,gn.AxiosHeaders=ci,gn.formToJSON=e=>Hr(dr.isHTMLForm(e)?new FormData(e):e),gn.getAdapter=_i.getAdapter,gn.HttpStatusCode=mn,gn.default=gn;const wn=gn,bn="f04ece8bf0ff9c1117526a29a96bb2e1";function vn(e){return new Promise((t,r)=>{if(!e||!e.keyWord)return void r();let{keyWord:i,level:n=12,mapBound:o="108.38512072748536,20.999700722178734,118.92018884189694,26.042267179024694",currentPage:s=0,pageSize:a=20}=e;wn.get("http://api.tianditu.gov.cn/v2/search",{params:{postStr:JSON.stringify({keyWord:i,level:n,mapBound:o,queryType:2,start:s,count:a}),type:"query",tk:bn},timeout:1e4}).then(e=>{console.log("reject",e),e&&e.status&&200==e.status&&e.data&&e.data.pois?t({list:e.data.pois||[],total:e.data.count||0}):r(e.data)}).catch(e=>{r(e)})})}function An(e){return new Promise((t,r)=>{if(!e)return void r();let i={lon:e.longitude,lat:e.latitude};const n=JSON.stringify(i);wn.get("https://api.tianditu.gov.cn/geocoder",{params:{postStr:n,type:"geocode",tk:bn},timeout:1e4}).then(e=>{e&&e.status&&200==e.status&&e.data&&e.data.msg&&e.data.result?t(e.data.result):r(e.data)}).catch(e=>{r(e)})})}function Mn(e){return new Promise((t,r)=>{e?wn.get("https://api.tianditu.gov.cn/geocoder",{params:{ds:JSON.stringify({keyWord:e}),tk:bn},timeout:1e4}).then(e=>{e&&e.status&&200==e.status&&e.data&&e.data.msg&&e.data.location?t(e.data.location):r(e.data)}).catch(e=>{r(e)}):r()})}const En={name:"SearchMap",components:{CustomSearchInput:it,CustomModal:qe},data(){return{keyWord:"",isSearch:!1,loadSearch:!1,currentPage:1,finished:!1,loadPage:!1,pageSize:20,total:0,mapNameList:[],checkedPoint:!1}},methods:{onShowDialog(e){this.$refs.message.show({message:e,type:"warning",duration:3e3})},clearSearch(){this.keyWord="",this.mapNameList=[],this.clearMap()},changeCheckedPoint(e){this.checkedPoint=e},initMap(){this.isSearch=!1,this.checkedPoint=!1,this.clearSearch()},goDetail(e){if(e.lonlat){let t="string"==typeof e.lonlat?e.lonlat.split(","):[];t&&t.length>1?this.$emit("selectPoint",{...e,longitude:t[0],latitude:t[1]}):this.onShowDialog("坐标格式不正确!!!")}},loadMapList(){this.mapNameList.length>0&&this.total>this.currentPage*this.pageSize&&(this.currentPage++,this.postMapList()),this.total>0&&this.total<=this.currentPage*this.pageSize&&(this.finished=!0)},postMapList(){this.loadSearch=!0,vn({keyWord:this.keyWord,currentPage:this.currentPage,pageSize:this.pageSize}).then(e=>{this.loadSearch=!1,this.total=0,e&&e.list&&e.list.length>0&&(this.mapNameList=this.mapNameList.concat(e.list)),e.total&&Number(e.total)&&(this.total=Number(e.total),this.loadPage=!0)}).catch(e=>{console.log("定位失败",e),this.loadSearch=!1})},searchMap(e){if(e){if(this.keyWord=e,this.mapNameList)if(this.mapNameList=[],this.isSearch=!0,this.total=0,this.finished=!1,this.loadPage=!1,this.currentPage=1,this.checkedPoint){let e=this.keyWord,t="string"==typeof e?e.split(","):[];t.length>1?this.$emit("selectPoint",{longitude:t[0],latitude:t[1]}):this.onShowDialog("坐标格式不正确!!!")}else this.postMapList()}else this.onShowDialog("请输入搜索内容!!!")},clearMap(){this.$emit("clearSearchMap")}}},Sn=En;var Tn=ne(Sn,Je,Be,!1,null,null,null);const xn=Tn.exports,kn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ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ad2Fr4YrxnbAbLzMQmJ4BPMJDIfv/SGkECI2pNwOJtNKPNXgz9mHcXvAR1+sM/h0nSsHLEYAddQSP8Bx345SVdsPtdSKQw2UxX098DoyVAcyoAXwE17CrnEHSPLC6BnB4h4tCFKoi8BoPaiDQiRcqNLikJSB0tqEqwLuwUeW9I9VINoxbGcH7hVbdk2SYdibMWhFPC79EyTKUNqe0G8RZoewSFzhNDoyVT5hXQT+KC9iX1mHWsXxlgv6VsNeXLbtaCfTicQV9B55JP1dkXoKilL4V4YkwnIxmcVTtyehwyX0fzsQQS5RqI0Co9dmF/51oweesTmo5GzYJpdaHI9WAU1sECNPTVNnmyL8JTPTx/Df1OpARdwAAzQAAAABJRU5ErkJggg==";var In,Pn=null,Nn=null,Ln=!1,Rn=null,On=null;let Cn={url:kn,width:20,height:18};const Gn={components:{loadingBox:ye,searchMap:xn,svgIcon:se},props:{mapParams:{type:Object,default:Ve},defaultCenter:{type:Array,default:()=>[]},isSearch:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},computed:{isShowPoint(){return!this.disabled&&this.isSearch},mapCenter(){}},data(){return{mapId:"map"+Math.round(1e4*Math.random()),isLoading:!0,center:[],address:"",pointCenter:[113.536308532987,23.3450945634734],pointData:{longitude:"",latitude:"",address:""}}},methods:{getMap(){return Pn},getView(){return Nn},setupMapEvents(e){this._clickHandler=e.on("click",q(this.handleMapClick,300)),this._hoverHandler=e.on("pointer-move",q(this.handleMapHover,80))},handleMapClick(e){if(Ln)return;In&&In.abort(),In=new AbortController,Ln=!0;const t={mapPoint:e.mapPoint,type:"click"},r=Nn.hitTest(e);r.then(r=>{if(!In.signal.aborted){if(t.event=r,this.isShowPoint&&On){let t=e.mapPoint;t&&(this.pointData.longitude=t.x,this.pointData.latitude=t.y,Rn.graphics._items[0].geometry.longitude=t.x,Rn.graphics._items[0].geometry.latitude=t.y,this.pointData.address="",On.update(Rn.graphics._items[0]))}this.$emit("mapEventClick",t)}}).catch(e=>{"AbortError"!==e.name&&console.warn("hitTest error",e)}).finally(()=>{setTimeout(()=>{Ln=!1,In=null},300)})},async handleMapHover(e){const t=await Nn.hitTest(e);t&&t.results&&t.screenPoint?(Nn.container.style.cursor="pointer",this.$emit("mapEventMouse",t)):Nn.container.style.cursor="default"},cleanupMapEvents(){this._clickHandler?.remove(),this._hoverHandler?.remove()},loadEdMap(e){Pn=e.map,Nn=e.view,L(e),Rn=new window.jkEsri.GraphicsLayer({id:"pointLayer"}),Pn.add(Rn,10),this.isShowPoint?this.setSearchVm():this.moveCenterPoint(),this.setupMapEvents(e.view),this.center&&2==this.center.length&&H({longitude:this.center[0],latitude:this.center[1]}),this.$emit("loadEdMap",e)},moveCenterPoint(){this.center&&2==this.center.length&&this.center[0]&&this.center[1]?this.refreshPoint({longitude:this.center[0],latitude:this.center[1]}):this.address?Mn(this.address).then(e=>{e&&e.lon&&e.lat&&this.refreshPoint({longitude:e.lon||"",latitude:e.lat})}).catch(e=>{console.log("err",e)}):this.defaultCenter&&2==this.defaultCenter.length&&this.defaultCenter[0]&&this.defaultCenter[1]?this.refreshPoint({longitude:this.defaultCenter[0],latitude:this.defaultCenter[1]}):this.refreshPoint({longitude:this.pointCenter[0],latitude:this.pointCenter[1]})},setSearchVm(){if(this.disabled)this.moveCenterPoint();else{let e={type:"picture-marker",...Cn,img:Cn.url};On=new window.jkEsri.SketchViewModel({view:Nn,layer:Rn,pointSymbol:e,polylineSymbol:{type:"simple-line",color:"#8A2BE2",width:"4",style:"dash",spatialReference:{wkid:4326}},polygonSymbol:{type:"simple-fill",color:"rgba(0, 45, 99,0.4)",style:"solid",outline:{color:"white",width:2},spatialReference:{wkid:4326}},spatialReference:{wkid:4326}}),this.moveCenterPoint(),On.on("update",e=>{if(e&&e.graphics&&e.graphics.length>0&&e.graphics[0].geometry){let t=e.graphics[0].geometry;e.graphics[0].symbol=Z({...Cn}),this.isSearch&&(this.pointData.longitude=t.longitude,this.pointData.latitude=t.latitude,this.pointData.address=""),e.graphic=e.graphics[0]}})}},clearSearchMap(){},clearSketch(){Rn&&Rn.removeAll(),this.$refs.searchRef&&this.$refs.searchRef.clearSearch&&this.$refs.searchRef.clearSearch()},refreshPoint(e){Rn&&Rn.removeAll(),this.pointData={...e,symbol:Z(Cn)},Rn.add(F(this.pointData)),this.isShowPoint&&setTimeout(()=>{On.update(Rn.graphics._items[0])},200),H(e)},initPoint(e){this.center=[],this.address="",this.pointData.address="",e&&(e.address&&(this.address=e.address),e.center&&2==e.center.length&&e.center[0]&&e.center[1]&&(this.center=e.center),Pn&&Nn&&setTimeout(()=>{this.moveCenterPoint()},200))},async returnPoint(){let e=this.pointData;if(e&&e.longitude&&e.latitude){if(!e.address){let t=await An({longitude:this.pointData.longitude,latitude:this.pointData.latitude});if(t&&t.addressComponent){let r="";r=t.addressComponent.address?t.addressComponent.address:"",e={...this.pointData,...t.addressComponent,address:r}}}return e}return e},destroy(){this.moveCenterPoint(),setTimeout(()=>{this.clearSketch(),this._clickHandler?.remove(),this._hoverHandler?.remove()},200)}},beforeUnmount(){this.destroy()}};function jn(e,t={}){const{executeOriginalFirst:r=!0,debounce:i,throttle:n}=t;let o=[],s=!0,a=0,l=null;const c=(e,t,r)=>{try{return e.apply(t,r)}catch(i){return console.error("EventManager listener error:",i),null}},h=(t,i)=>{s||(o.sort((e,t)=>e.index-t.index),s=!0),r&&e&&c(e,t,i);const n=[...o];for(let e=0;e<n.length;e++){const r=n[e];if(!o.includes(r))continue;const s=c(r,t,i);"remove"===s&&u(r)}!r&&e&&c(e,t,i)},u=e=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};let d=function(...e){const t=Date.now();if(!(n&&t-a<n)){if(i)return l&&clearTimeout(l),void(l=setTimeout(()=>{a=Date.now(),h(this,e)},i));a=t,h(this,e)}};return d.addListener=function(e,t=0){if("function"!==typeof e)throw new Error("Listener must be a function");return e.index=t,e.remove=()=>u(e),o.push(e),s=!1,e},d.clear=function(){o=[],s=!0,l&&(clearTimeout(l),l=null)},d.getListeners=function(){return[...o]},d.destroy=function(){this.clear(),l&&(clearTimeout(l),l=null)},d}let Zn={};class Dn{constructor(e,t={}){this.id=e;let r={...Ve,...t};return this.param=r,this.__config=r.config||{},this.layersType=r.layersType,this.mapParams={...r},this.onloadMap=jn(),this.createMap(e,r),this}createMap(e,t){this.init(t)}init(e){if(window.jkEsri)this.initMap();else{e.initCss&&(0,a.loadCss)(e.initCss);const t=e.modules||["esri/Map","esri/views/MapView","esri/layers/WebTileLayer","esri/geometry/Extent","esri/geometry/SpatialReference","esri/geometry/support/webMercatorUtils","esri/geometry/geometryEngine"];this.mapParams.modules=t,(0,a.loadModules)(t,{url:e.initJs}).then(this.TDTinstance.bind(this,this.mapParams)).then(this.initMap.bind(this)).catch(e=>{throw console.error("地图模块加载失败:",e),e})}}TDTinstance(e,t){Zn={};for(const r in t){if(!t.hasOwnProperty(r))continue;const i=e.modules[r].split("/").pop();"webMercatorUtils"===i&&(Zn.webMercatorToGeographic=t[r].webMercatorToGeographic,Zn.geographicToWebMercator=t[r].geographicToWebMercator),"geometryEngine"===i&&(Zn.geometryEngine=t[r]),Zn[i]=t[r]}window.jkEsri=Zn,this.esri=Zn}initMap(){let e=null;if("dynamic"!=this.layersType&&"TileLayer"!=this.layersType||!this.param.baseMapUrl)O(this.id,this.param).then(e=>{this.onloadMap(e)});else{var t="dynamic"==this.layersType?window.jkEsri.MapImageLayer:window.jkEsri.TileLayer;e=new t({url:this.param.baseMapUrl,title:this.layersType,opacity:1,visible:!0}),R(this.id,e,this.param).then(e=>{this.onloadMap(e)})}}destroy(){this.onloadMap?.destroy?.(),this.view&&(this.view.container=null,this.view=null),this.map=null,this.esri=null}}const zn=Dn,Un={name:"JKMapEdit",mixins:[Gn],mounted(){this.isLoading=!0,this.map=new zn(this.mapId,this.mapParams),this.map.onloadMap.addListener(e=>{this.isLoading=!1,this.loadEdMap(e),(this.isShowPoint||this.isSearch||this.isLocation)&&setTimeout(()=>{this.$nextTick(()=>{this.$refs.searchRef.initMap(e)})},200)})}},Wn=Un;var Fn=ne(Wn,Ue,We,!1,null,null,null);const Vn=Fn.exports;var Jn,Bn=function(){var e=this,t=e._self._c;return t("loading-box",{attrs:{loading:e.isLoading}},[t("div",{staticClass:"arcgisMap-box"},[t("div",{staticClass:"map-canvans",attrs:{id:e.mapId}}),e.isShowBtnBox?t("div",{staticClass:"edit-btn-box"},[e.drawIngArea?t("div",{staticClass:"edit-area"},[e._v(" "+e._s(e.drawIngArea)+"(平方米) ")]):e._e(),e.module.indexOf("screen")>-1?t("div",{staticClass:"edit-btn",attrs:{title:"全屏"},on:{click:e.changeFull}},[t("svgIcon",{attrs:{name:"full",width:"24",color:"#000"}})],1):e._e(),e.isUseSketch?[e.type&&e.type.indexOf("point")>-1?t("div",{staticClass:"edit-btn",attrs:{title:"点"},on:{click:function(t){return e.drawLayerType("point")}}},[t("svgIcon")],1):e._e(),e.type&&e.type.indexOf("polyline")>-1?t("div",{staticClass:"edit-btn",attrs:{title:"线"},on:{click:function(t){return e.drawLayerType("polyline")}}},[t("svgIcon",{attrs:{name:"line"}})],1):e._e(),e.type&&e.type.indexOf("polygon")>-1?t("div",{staticClass:"edit-btn",attrs:{title:"面"},on:{click:function(t){return e.drawLayerType("polygon")}}},[t("svgIcon",{attrs:{name:"polygon"}})],1):e._e(),t("div",{staticClass:"edit-btn",class:{"btn-disable":!e.isDel},attrs:{title:"删除单个"},on:{click:e.delDraw}},[t("svgIcon",{attrs:{name:"del",width:"22",color:e.isDel?"#6a6a6a":"#dadada"}})],1),t("div",{staticClass:"edit-btn",class:{"btn-disable":!e.isDelAll},attrs:{title:"全部删除"},on:{click:function(t){return e.delDraw("all")}}},[t("svgIcon",{attrs:{name:"delAll",width:"23",color:e.isDelAll?"#6a6a6a":"#dadada"}})],1),t("div",{staticClass:"edit-btn",class:{"btn-disable":!e.isActive},attrs:{title:"上一步"},on:{click:e.undo}},[t("svgIcon",{attrs:{name:"perv",width:"22",color:e.isActive?"#6a6a6a":"#dadada"}})],1),t("div",{staticClass:"edit-btn",class:{"btn-disable":!e.isPer},attrs:{title:"下一步"},on:{click:e.redo}},[t("svgIcon",{attrs:{name:"next",width:"22",color:e.isPer?"#6a6a6a":"#dadada"}})],1)]:e._e()],2):e._e(),!e.isLoading&&e.isSearch?t("searchMap",{ref:"searchRef",on:{selectPoint:e.refreshPoint,clearSearchMap:e.clearSearchMap}}):e._e()],1)])},Yn=[];class Qn{constructor(e={}){if(Jn=null,!e)throw new Error("options is required");let t=null,r=null,i=null,n=20;if(t=e.layer,r=e.view,i=e.map,n=e.maxGraphics,!t)throw new Error("layer is required");if(!r)throw new Error("view is required");this.graphicsLayer=t||new window.jkEsri.GraphicsLayer({title:"Sketch Graphics"}),t||r.map.add(this.graphicsLayer),this.sketchVM=new window.jkEsri.SketchViewModel({view:r,layer:this.graphicsLayer,pointSymbol:{type:"simple-marker",color:"red",size:14,outline:{color:[255,255,255],width:2,style:"solid"},style:"solid"},polylineSymbol:{type:"simple-line",color:"#fff",width:"4",style:"dash"},polygonSymbol:{type:"simple-fill",color:"rgba(0, 45, 99,0.01)",style:"solid",outline:{color:"white",width:2}},defaultUpdateOptions:{tool:"reshape",toggleToolOnClick:!1,enableScaling:!0,enableRotation:!1,enableZIndex:!1},creationMode:"single"}),this.map=i,Jn=this.sketchVM,this.maxGraphics=n,this.drawIngArea=0,this.isActive=!1,this.isNextList=[],this.currentAction=null,this.events={create:[],update:[],delete:[],change:[]},window.addEventListener("keydown",this.keyHandler),this._bindEvents()}keyHandler(e){if(("Delete"===e.key||"Backspace"===e.key)&&!e.ctrlKey){const t=Jn.updateGraphics.toArray();t&&t.length&&(e.preventDefault(),Jn.delete(t))}}getArea(e){const t={wkid:4326},r=window.jkEsri.projection.project(e,t);return window.jkEsri.geometryEngine.geodesicArea(r,"square-meters")}stopDraw(){this.getGraphics().length>=this.maxGraphics&&this.cancel()}startDraw(e){if(this.getGraphics().length>=this.maxGraphics)this.cancel();else{if(!["point","polyline","polygon"].includes(e))throw new Error('type must be "point", "polyline" or "polygon"');this.isNextList=[],this.cancel(),this.isActive=!0,this.currentAction="draw",this.sketchVM.create(e)}}startEdit(e){this.cancel(),this.isNextList=[],this.isActive=!0,this.currentAction="edit",this.sketchVM.update([e])}complete(){this.isActive&&(this.sketchVM.complete(),this.isNextList=[],this.isActive=!1,this.currentAction=null,this.drawIngArea=0)}cancel(){this.isActive&&(this.sketchVM.cancel(),this.isActive=!1,this.currentAction=null,this.drawIngArea=0)}undo(){this.sketchVM.undo(),this.isNextList.push("1"),this.onChange()}redo(){0!==this.isNextList.length&&(this.sketchVM.redo(),this.isNextList.pop(),this.onChange())}clear(){this.graphicsLayer&&(this.graphicsLayer.removeAll(),this.onChange(!0),this.drawIngArea=0)}clearSelected(){const e=Jn.updateGraphics.toArray();e&&e.length>0&&(Jn.delete(e),this.onChange(!0),this.drawIngArea=0)}getGraphics(){return this.graphicsLayer&&this.graphicsLayer.graphics&&this.graphicsLayer.graphics.toArray?this.graphicsLayer.graphics.toArray():[]}on(e,t){this.events[e]?this.events[e].push(t):console.warn(`Unknown event: ${e}`)}off(e,t){if(this.events[e]){const r=this.events[e].indexOf(t);r>-1&&this.events[e].splice(r,1)}}_bindEvents(){this.sketchVM.on("create",e=>{if(this.stopDraw(),e.graphic&&e.graphic.geometry&&e.graphic.geometry.type&&"polygon"==e.graphic.geometry.type&&e.graphic.geometry.rings&&e.graphic.geometry.rings.length>0&&e.graphic.geometry.rings[0].length>=3&&(this.drawIngArea=this.getArea(e.graphic.geometry)),this.isActive=!0,"complete"===e.state){const t=e.graphic;this.isActive=!1,this._emit("create",t),this.stopDraw(),this.drawIngArea=0,this.isNextList=[]}this.onChange()}),this.sketchVM.on("update",e=>{console.log("update",e);const t=this.sketchVM.updateGraphics.toArray();t&&t.length>0&&(this.drawIngArea=this.getArea(t[0].geometry)),this.isActive=!0,"complete"===e.state&&(this.isActive=!1,this.isNextList=[],this.drawIngArea=0,this._emit("update",e.graphics[0])),this.onChange()}),this.sketchVM.on("delete",e=>{const t=e.graphics[0];this._emit("delete",t),this.onChange()})}_emit(e,t){this.events[e].forEach(e=>e(t))}onChange(e=!1){this._emit("change",{graphics:e?[]:this.getGraphics(),isActive:!e&&this.isActive,isNextList:this.isNextList,isDel:this.sketchVM&&this.sketchVM.updateGraphics&&this.sketchVM.updateGraphics.toArray()?this.sketchVM.updateGraphics.toArray().length>0:0,drawIngArea:this.drawIngArea})}destroy(){if(this.sketchVM)try{this.sketchVM.cancel()}catch(e){console.warn("SketchVM cancel failed on destroy",e)}this.graphicsLayer&&this.map&&this.map.remove&&(this.graphicsLayer.removeAll(),this.map.remove(this.graphicsLayer),this.graphicsLayer=null),window.removeEventListener("keydown",this.keyHandler),Jn=null,this.sketchVM=null,this.isActive=!1,this.drawIngArea=0,this.isNextList=[],this.onChange(),setTimeout(()=>{this.events={}},200)}}const Hn=Qn;let Xn=null,Kn=null,qn=null,_n=null,$n=null,eo=null,to=null,ro=!1,io=[],no={url:kn,width:20,height:18};const oo={components:{loadingBox:ye,svgIcon:se,searchMap:xn},props:{mapParams:{type:Object,default:()=>({})},module:{type:Array,default:()=>[]},maxGraphics:{type:Number,default:3},center:{type:Array,default:()=>[113.33799948954312,23.14565684412003]},type:{type:Array,default:()=>["point","polyline","polygon"]}},computed:{isShowBtnBox(){return this.module&&this.module.length>0&&(this.module.indexOf("edit")>-1||this.module.indexOf("screen")>-1)},isUseSketch(){return this.module&&this.module.length>0&&this.module.indexOf("edit")>-1},isSearch(){return this.module&&this.module.length>0&&this.module.indexOf("search")>-1}},data(){return{mapId:"map"+Math.round(1e4*Math.random()),isLoading:!0,isActive:!1,isPer:!1,drawIngArea:0,isDel:!1,isDelAll:!1,debouncedRetuanGraphics:null}},created(){this.debouncedRetuanGraphics=q(()=>{this.retuanGraphics()},500)},methods:{formatThousands(e){if(!e||isNaN(Number(e)))return"";let t=Number(Number(e)/1e6).toFixed(2);const[r,i]=t.split("."),n=r.startsWith("-");let o=n?r.slice(1):r;const s=o.replace(/\B(?=(\d{3})+(?!\d))/g,","),a=`${n?"-":""}${s}.${i}`;return a},setupMapEvents(e){this._clickHandler=e.on("click",q(this.handleMapClick,300)),this._hoverHandler=e.on("pointer-move",q(this.handleMapHover,80))},async handleMapClick(e){if(ro)return;to&&to.abort(),to=new AbortController,ro=!0;const t={mapPoint:e.mapPoint,type:"click"};try{const r=await Kn.hitTest(e);if(to.signal.aborted)return;this.$emit("mapEventClick",{...t,...r})}catch(r){"AbortError"!==r.name&&console.warn("hitTest error",r)}finally{setTimeout(()=>{ro=!1,to=null},300)}},async handleMapHover(e){const t=await Kn.hitTest(e);t.results=t.results.filter(e=>e.layer&&e.layer.id&&-1==e.layer.id.indexOf("map-mask")),t&&t.results&&t.results.length>0&&t.screenPoint?this.$emit("mapEventMouse",t):Kn.container.style.cursor="default"},cleanupMapEvents(){this._clickHandler?.remove(),this._hoverHandler?.remove()},loadEdMap(e){Xn=e.map,Kn=e.view,this.isSearch&&($n=new window.jkEsri.GraphicsLayer({id:"pointLayer"}),Xn.add($n,10)),this.isUseSketch&&(eo=new window.jkEsri.GraphicsLayer({id:"unselectableLayer"}),Xn.add(eo,3),_n=new window.jkEsri.GraphicsLayer({id:"sketchLayer"}),Xn.add(_n,4),qn=new Hn({layer:_n,view:Kn,map:Xn,maxGraphics:this.maxGraphics}),qn.on("create",e=>{console.log("创建图形:",e)}),qn.on("update",e=>{console.log("编辑完成:",e)}),qn.on("delete",e=>{console.log("删除图形")}),qn.on("change",e=>{this.isActive=e.isActive,this.isDel=e.isDel,this.isPer=e.isNextList.length>0&&this.isActive,this.drawIngArea=e.drawIngArea?this.formatThousands(Number(e.drawIngArea).toFixed(2)):0,io=e.graphics,this.isDelAll=io.length>0,this.debouncedRetuanGraphics()})),this.setupMapEvents(e.view),this.$emit("loadEdMap",e)},refreshPoint(e){$n&&$n.removeAll(),this.pointData={...e,symbol:Z(no)},$n.add(F(this.pointData)),H($n)},clearSearchMap(){$n&&$n.removeAll()},drawLayerType(e){qn&&qn.startDraw(e)},undo(){qn&&this.isActive&&qn.undo()},redo(){qn&&this.isPer&&qn.redo()},delDraw(e=""){qn&&("all"==e?this.isDelAll&&qn.clear():this.isDel&&qn.clearSelected())},judgeLayerType(e){if(e)return e.includes("oint")?"point":e.includes("olygon")?"polygon":e.includes("ine")?"polyline":void 0},retuanGraphics(){let e=0,t={drawEnd:!this.isActive,area:"",mArea:"",hectareArea:"",latitude:"",longitude:"",ringsList:[]};if(io&&io.length>0)for(const r of io){const i=this.judgeLayerType(r.geometry.type);let n=v(r);if("point"===i)t.longitude=r.geometry.longitude,t.latitude=r.geometry.latitude,t.ringsList.push({type:"Point",geometry:n});else if("polyline"===i)t.ringsList.push({type:"Polyline",geometry:n,latitude:"",longitude:"",area:0});else if("polygon"===i){const i=X(r.geometry);let o=0;i&&Number(i)&&(o=Math.abs(Number(i).toFixed(2))),e+=o,t.longitude=r.geometry.centroid.longitude,t.latitude=r.geometry.centroid.latitude,t.ringsList.push({type:"polygon",geometry:n,longitude:r.geometry.centroid.longitude,latitude:r.geometry.centroid.latitude,area:o})}}return e>0&&(t.area=e,t.mArea=.0015*Number(e),t.hectareArea=1e-4*Number(e)),t},goToCenter(){H(this.center,{zoom:8})},batchDraw(e){if(e.length>0&&_n){_n&&_n.removeAll();let t=[];e.map(e=>{let r=null;e.type&&"point"==this.judgeLayerType(e.type)?(r=F(e),console.log("sketchArr0",e,e.type&&this.judgeLayerType(e.type))):e.type&&"polyline"==this.judgeLayerType(e.type)?r=V(e):e.type&&"polygon"==this.judgeLayerType(e.type)&&(r=J(e)),r&&t.push(r)}),t.length>0?(_n.addMany(t),H(_n)):this.goToCenter()}else this.goToCenter()},batchNnselectDraw(e,t="text"){if(e.length>0&&eo){eo&&eo.removeAll();let r=[];e.map(e=>{let i=null;if(e.type&&"point"==this.judgeLayerType(e.type))i=F(e),console.log("sketchArr0",e,e.type&&this.judgeLayerType(e.type));else if(e.type&&"polyline"==this.judgeLayerType(e.type))i=V(e);else if(e.type&&"polygon"==this.judgeLayerType(e.type)&&(i=J(e),e[t]&&i&&i.geometry&&i.geometry.centroid)){const n=F({geometry:i.geometry.centroid,symbol:G(e,t)});n&&r.push(n)}i&&r.push(i)}),r.length>0?(eo.addMany(r),H(eo)):this.goToCenter()}else this.goToCenter()},changeFull(){this.$emit("changeFull")},destroy(){this.cleanupMapEvents(),qn&&qn.destroy&&qn.destroy(),eo&&eo.removeAll(),this.goToCenter(),this.$refs.searchRef&&this.$refs.searchRef.clearSearch&&this.$refs.searchRef.clearSearch(),this.debouncedRetuanGraphics&&clearTimeout(this.debouncedRetuanGraphics.timer)}},beforeUnmount(){this.cleanupMapEvents(),this.destroy()}},so={name:"augustineMap",mixins:[oo],mounted(){this.isLoading=!0,this.map=new zn(this.mapId,this.mapParams),this.map.onloadMap.addListener(e=>{this.isLoading=!1,this.loadEdMap(e)})}},ao=so;var lo=ne(ao,Bn,Yn,!1,null,null,null);const co=lo.exports;var ho,uo=function(){var e=this,t=e._self._c;return t("loading-box",{attrs:{loading:e.isLoading}},[t("div",{staticClass:"arcgisMap-box"},[t("div",{staticClass:"map-canvans",attrs:{id:e.mapId}})])])},po=[],fo=null,mo=null,yo=!1,go=null,wo=null;const bo={components:{loadingBox:ye},props:{mapParams:{type:Object,default:Ve},defaultCenter:{type:Array,default:()=>[]},mapKey:{type:String,default:"name"}},computed:{},data(){return{mapId:"map"+Math.round(1e4*Math.random()),isLoading:!0,center:[],pointCenter:[113.33799948954312,23.14565684412003],pointsList:[]}},methods:{getMap(){return fo},getView(){return mo},setupMapEvents(e){this._clickHandler=e.on("click",q(this.handleMapClick,300)),this._hoverHandler=e.on("pointer-move",q(this.handleMapHover,80))},changeGraphic(e){go&&go.graphics&&go.graphics._items&&go.graphics._items.map(t=>{let r=t.attributes.url,i=t.attributes.width,n=t.attributes.height;return e&&t&&t.attributes&&t.attributes[this.mapKey]==e[this.mapKey]&&(r=e.activeUrl?e.activeUrl:e.url,i=e.width+10,n=e.height*i/e.width,H(e)),t.symbol=Z({url:r,width:i,height:n}),t})},handleMapClick(e){if(yo)return;ho&&ho.abort(),ho=new AbortController,yo=!0;const t={mapPoint:e.mapPoint,type:"click"},r=mo.hitTest(e);r.then(e=>{if(!ho.signal.aborted){if(t.event=e,e&&e.results&&e.results.length>0){const t=e.results.filter(e=>e.layer&&e.layer.id&&e.layer.id.indexOf("pointLayer")>-1);if(t&&t.length>0){const e=t[0].graphic,r=e.attributes;this.$emit("eventClick",r),this.changeGraphic(r)}}else this.changeGraphic(null);this.$emit("mapEventClick",t)}}).catch(e=>{"AbortError"!==e.name&&console.warn("hitTest error",e)}).finally(()=>{setTimeout(()=>{yo=!1,ho=null},300)})},async handleMapHover(e){const t=await mo.hitTest(e);t&&t.results&&t.screenPoint?(mo.container.style.cursor="pointer",this.$emit("mapEventMouse",t)):mo.container.style.cursor="default"},cleanupMapEvents(){this._clickHandler?.remove(),this._hoverHandler?.remove()},loadEdMap(e){fo=e.map,mo=e.view,setTimeout(()=>{go=new window.jkEsri.GraphicsLayer({id:"pointLayer"}),fo.add(go,10),wo=new window.jkEsri.GraphicsLayer({id:"textLayer"}),fo.add(wo,10),this.drawPoints(),this.setupMapEvents(e.view),this.$emit("loadEdMap",e)},500)},moveCenterPoint(){this.pointsList&&this.pointsList.length>0?H(go):this.defaultCenter&&2==this.defaultCenter.length&&this.defaultCenter[0]&&this.defaultCenter[1]?H(this.defaultCenter):H(this.pointCenter)},drawPoints(){if(this.pointsList&&this.pointsList.length>0){let e=[],t=[];this.pointsList.map(r=>{const i=F({...r,symbol:Z(r)}),n=F({...r,symbol:G({...r,yoffset:r.yoffset?r.yoffset:-(r.height/2+15)},this.mapKey)});i&&e.push(i),n&&t.push(n)}),go.addMany(e),wo.addMany(t),H(go)}else this.moveCenterPoint()},initPoint(e=[]){this.pointsList=e||[],fo&&mo&&(go&&go.removeAll(),wo&&wo.removeAll(),this.drawPoints())}},beforeUnmount(){this._clickHandler?.remove(),this._hoverHandler?.remove()}},vo={name:"JKMapList",mixins:[bo],mounted(){this.isLoading=!0,this.map=new zn(this.mapId,this.mapParams),this.map.onloadMap.addListener(e=>{this.isLoading=!1,this.loadEdMap(e)})}},Ao=vo;var Mo=ne(Ao,uo,po,!1,null,null,null);const Eo=Mo.exports,So=[ze,co,Vn,Eo],To=e=>{To.installed||(To.installed=!0,So.forEach(t=>{e.component(t.name,t)}))},xo={install:To,augustineGjMap:ze,augustineMap:co,locationMap:Vn,mapList:Eo,arcGISTranformGeoJson:v,geoJsonTranformArcgis:A,geoJsonTranformWkt:T,wktTranformGeoJson:x,wktTranformArcgis:k,arcgisTranformWkt:I,initMapPack:L,createBase:R,createMapView:O,toArcGISPoint:m,getSimpleText:G,getSimpleMarker:j,getPictureMarker:Z,getSimpleLine:D,getSimpleFill:z,createGrahic:U,createMaskLayer:K,createGraphicsLayer:W,mapJumpTo:H,drawPoint:F,drawPolyline:V,drawPolygon:J,drawPolygonArr:B,getArea:X};"undefined"!==typeof window&&window.Vue&&To(window.Vue);const ko=xo})(),n=n["default"],n})());
2
2
  //# sourceMappingURL=augustine-jkmap.umd.min.js.map