| 9 | */!function(t){var e={};function o(l){if(e[l])return e[l].exports;var i=e[l]={i:l,l:!1,exports:{}};return t[l].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=t,o.c=e,o.d=function(t,e,l){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:l})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var l=Object.create(null);if(o.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(l,i,function(e){return t[e]}.bind(null,i));return l},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=60)}([function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicAlgoSymbolFactory=void 0,o(52);e.BasicAlgoSymbolFactory=SuperMap.Plot.BasicAlgoSymbolFactory=SuperMap.Plot.BasicAlgoSymbolFactory||{};SuperMap.Plot.BasicAlgoSymbolFactory.getAlgoSymbol=function(t,e,o){if(0===t)switch(e){case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:return new SuperMap.Plot.GeoTooltipBox(o);case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:return new SuperMap.Plot.GeoTooltipBoxM(o);case SuperMap.Plot.SymbolType.PATHTEXT:return new SuperMap.Plot.PathText(o);case SuperMap.Plot.SymbolType.ARROWLINE:return new SuperMap.Plot.ArrowLine(o);case SuperMap.Plot.SymbolType.CURVEEIGHT:return new SuperMap.Plot.CurveEight(o);case SuperMap.Plot.SymbolType.RUNWAY:return new SuperMap.Plot.Runway(o);case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE:return new SuperMap.Plot.ConcentricCircle(o);case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE:return new SuperMap.Plot.CombinationalCircle(o);case SuperMap.Plot.SymbolType.FREECURVE:return new SuperMap.Plot.FreeCurve(o);case SuperMap.Plot.SymbolType.REGULARPOLYGON:return new SuperMap.Plot.RegularPolygon(o);case SuperMap.Plot.SymbolType.BRACESYMBOL:return new SuperMap.Plot.Brace(o);case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL:return new SuperMap.Plot.Trapezoid(o);case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX:return new SuperMap.Plot.SymbolTextBox(o);case SuperMap.Plot.SymbolType.NODECHAIN:return new SuperMap.Plot.NodeChain(o);case SuperMap.Plot.SymbolType.LINERELATION:return new SuperMap.Plot.LineRelation(o);case SuperMap.Plot.SymbolType.LINEMARKING:return new SuperMap.Plot.LineMarking(o);case SuperMap.Plot.SymbolType.POLYGONREGION:return new SuperMap.Plot.PolygonRegion(o);case SuperMap.Plot.SymbolType.WIRE:return new SuperMap.Plot.Wire(o);case SuperMap.Plot.SymbolType.LinearArrow:return new SuperMap.Plot.LinearArrow(o);default:return new SuperMap.Plot.AlgoSymbol(o)}else if(22===t)switch(e){case 1001:return new SuperMap.Plot.AlgoSymbol1001(o);case 1002:return new SuperMap.Plot.AlgoSymbol1002(o);case 1003:return new SuperMap.Plot.AlgoSymbol1003(o);case 1004:return new SuperMap.Plot.AlgoSymbol1004(o);case 1005:return new SuperMap.Plot.AlgoSymbol1005(o);case 1006:return new SuperMap.Plot.AlgoSymbol1006(o);case 1007:return new SuperMap.Plot.AlgoSymbol1007(o);case 1008:return new SuperMap.Plot.AlgoSymbol1008(o);case 1009:return new SuperMap.Plot.AlgoSymbol1009(o);case 1010:return new SuperMap.Plot.AlgoSymbol1010(o);case 1011:return new SuperMap.Plot.AlgoSymbol1011(o);case 1012:return new SuperMap.Plot.AlgoSymbol1012(o);case 1013:return new SuperMap.Plot.AlgoSymbol1013(o);case 1014:return new SuperMap.Plot.AlgoSymbol1014(o);case 1015:return new SuperMap.Plot.AlgoSymbol1015(o);case 1016:return new SuperMap.Plot.AlgoSymbol1016(o);case 1017:return new SuperMap.Plot.AlgoSymbol1017(o);case 1018:return new SuperMap.Plot.AlgoSymbol1018(o);case 1019:return new SuperMap.Plot.AlgoSymbol1019(o);case 1020:return new SuperMap.Plot.AlgoSymbol1020(o);case 1021:return new SuperMap.Plot.AlgoSymbol1021(o);case 1022:return new SuperMap.Plot.AlgoSymbol1022(o);default:return null}else{if(421!==t)return null;switch(e){case 311:return new SuperMap.Plot.AlgoSymbol1004(o);case 315:return new SuperMap.Plot.AlgoSymbol315(o);case 317:return new SuperMap.Plot.AlgoSymbol1006(o);case 318:return new SuperMap.Plot.AlgoSymbol1002(o);case 319:return new SuperMap.Plot.AlgoSymbol15200(o);default:return null}}},SuperMap.Plot.BasicAlgoSymbolFactory.getSymbolWayType=function(t,e){if(0===t)switch(e){case SuperMap.Plot.SymbolType.POLYLINESYMBOL:case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:return SuperMap.Plot.AddPoint_WayType.POLYLINE;case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:return SuperMap.Plot.AddPoint_WayType.CURVE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}else if(22===t)switch(e){case 1005:case 1008:case 1012:case 1014:return SuperMap.Plot.AddPoint_WayType.CURVE;case 1007:case 1009:case 1013:case 1015:case 1017:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}},SuperMap.Plot.BasicAlgoSymbolFactory.isAccessServer=function(t,e){if(0===t||22===t)return!1;if(421!==t)return!0;switch(e){case 311:case 317:case 318:case 315:case 319:return!1;default:return!0}},SuperMap.Plot.BasicAlgoSymbolFactory.getDefaultSubSymbols=function(){return[]},SuperMap.Plot.BasicAlgoSymbolFactory.getMinEditPts=function(t,e){if(0===t)switch(e){case SuperMap.Plot.SymbolType.TEXTSYMBOL:case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE:return 1;case SuperMap.Plot.SymbolType.CIRCLESYMBOL:case SuperMap.Plot.SymbolType.RECTANGLESYMBOL:case SuperMap.Plot.SymbolType.POLYLINESYMBOL:case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:case SuperMap.Plot.SymbolType.KIDNEY:case SuperMap.Plot.SymbolType.ARROWLINE:case SuperMap.Plot.SymbolType.BRACESYMBOL:case SuperMap.Plot.SymbolType.CURVEEIGHT:case SuperMap.Plot.SymbolType.FREECURVE:case SuperMap.Plot.SymbolType.LINEMARKING:case SuperMap.Plot.SymbolType.LINERELATION:case SuperMap.Plot.SymbolType.NODECHAIN:case SuperMap.Plot.SymbolType.PATHTEXT:case SuperMap.Plot.SymbolType.REGULARPOLYGON:case SuperMap.Plot.SymbolType.RUNWAY:case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX:case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE:case SuperMap.Plot.SymbolType.WIRE:case SuperMap.Plot.SymbolType.LinearArrow:return 2;case SuperMap.Plot.SymbolType.ARCSYMBOL:case SuperMap.Plot.SymbolType.CHORDSYMBOL:case SuperMap.Plot.SymbolType.PIESYMBOL:case SuperMap.Plot.SymbolType.ELLIPSESYMBOL:case SuperMap.Plot.SymbolType.PARALLELOGRAM:case SuperMap.Plot.SymbolType.PARALLELLINE:case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:case SuperMap.Plot.SymbolType.POLYGONREGION:case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL:case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:return 3}else if(22===t)switch(e){case 1001:case 1003:case 1005:case 1007:case 1008:case 1009:case 1011:case 1012:case 1013:case 1014:case 1015:case 1016:case 1017:case 1019:case 1020:case 1022:return 2;case 1002:case 1004:case 1006:case 1010:case 1018:case 1021:return 3}else if(421===t)switch(e){case 319:return 2;case 311:case 315:case 317:case 318:return 3}},SuperMap.Plot.BasicAlgoSymbolFactory.getMaxEditPts=function(t,e){if(0===t)switch(e){case SuperMap.Plot.SymbolType.TEXTSYMBOL:return 1;case SuperMap.Plot.SymbolType.CIRCLESYMBOL:case SuperMap.Plot.SymbolType.RECTANGLESYMBOL:case SuperMap.Plot.SymbolType.BRACESYMBOL:case SuperMap.Plot.SymbolType.LINEMARKING:case SuperMap.Plot.SymbolType.LINERELATION:case SuperMap.Plot.SymbolType.RUNWAY:case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX:case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:case SuperMap.Plot.SymbolType.LinearArrow:return 2;case SuperMap.Plot.SymbolType.ARCSYMBOL:case SuperMap.Plot.SymbolType.CHORDSYMBOL:case SuperMap.Plot.SymbolType.PIESYMBOL:case SuperMap.Plot.SymbolType.ELLIPSESYMBOL:case SuperMap.Plot.SymbolType.PARALLELOGRAM:case SuperMap.Plot.SymbolType.KIDNEY:case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE:case SuperMap.Plot.SymbolType.CURVEEIGHT:case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL:return 3;case SuperMap.Plot.SymbolType.POLYLINESYMBOL:case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:case SuperMap.Plot.SymbolType.PARALLELLINE:case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:case SuperMap.Plot.SymbolType.ARROWLINE:case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE:case SuperMap.Plot.SymbolType.FREECURVE:case SuperMap.Plot.SymbolType.NODECHAIN:case SuperMap.Plot.SymbolType.PATHTEXT:case SuperMap.Plot.SymbolType.POLYGONREGION:case SuperMap.Plot.SymbolType.REGULARPOLYGON:case SuperMap.Plot.SymbolType.WIRE:return 9999}else if(22===t)switch(e){case 1003:case 1019:case 1020:case 1022:return 2;case 1006:case 1021:return 4;case 1001:case 1002:case 1004:case 1005:case 1007:case 1008:case 1009:case 1010:case 1011:case 1012:case 1013:case 1014:case 1015:case 1016:case 1017:case 1018:return 99999}else if(421===t)switch(e){case 317:return 4;case 311:case 315:case 318:case 319:return 99999}},SuperMap.Plot.BasicAlgoSymbolFactory.getDefaultStyle=function(){return{}},SuperMap.Plot.BasicAlgoSymbolFactory.zoomInCalSymbol=function(){if(22!==libID)return!1;switch(code){case 1012:case 1013:case 1014:case 1015:return!0;default:return!1}},SuperMap.Plot.BasicAlgoSymbolFactory.zoomCalSymbol=function(){return!1},SuperMap.Plot.BasicAlgoSymbolFactory.getSymbolName=function(t,e){var o="";if(0===t)switch(e){case SuperMap.Plot.SymbolType.TEXTSYMBOL:o="文本";break;case SuperMap.Plot.SymbolType.CIRCLESYMBOL:o="圆";break;case SuperMap.Plot.SymbolType.RECTANGLESYMBOL:o="矩形";break;case SuperMap.Plot.SymbolType.ARCSYMBOL:o="弧线";break;case SuperMap.Plot.SymbolType.CHORDSYMBOL:o="弓形";break;case SuperMap.Plot.SymbolType.PIESYMBOL:o="扇形";break;case SuperMap.Plot.SymbolType.ELLIPSESYMBOL:o="椭圆";break;case SuperMap.Plot.SymbolType.PARALLELOGRAM:o="平行四边形";break;case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:o="多边形";break;case SuperMap.Plot.SymbolType.POLYLINESYMBOL:o="折线";break;case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:o="贝赛尔曲线";break;case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:o="闭合贝塞尔曲线";break;case SuperMap.Plot.SymbolType.PARALLELLINE:o="平行线";break;case SuperMap.Plot.SymbolType.KIDNEY:o="集结地";break;case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:o="注记指示框";break;case SuperMap.Plot.SymbolType.ARROWLINE:o="箭头线";break;case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE:o="组合圆";break;case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE:o="同心圆";break;case SuperMap.Plot.SymbolType.CURVEEIGHT:o="八字形";break;case SuperMap.Plot.SymbolType.FREECURVE:o="自由线";break;case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:o="多角标注框";break;case SuperMap.Plot.SymbolType.LINEMARKING:o="线型标注";break;case SuperMap.Plot.SymbolType.LINERELATION:o="对象间连线";break;case SuperMap.Plot.SymbolType.NODECHAIN:o="节点链";break;case SuperMap.Plot.SymbolType.PATHTEXT:o="沿线注记";break;case SuperMap.Plot.SymbolType.POLYGONREGION:o="多边形区域管理";break;case SuperMap.Plot.SymbolType.RUNWAY:o="跑道线";break;case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX:o="标注框";break;case SuperMap.Plot.SymbolType.REGULARPOLYGON:o="正多边形";break;case SuperMap.Plot.SymbolType.BRACESYMBOL:o="大括号";break;case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL:o="梯形";break;case SuperMap.Plot.SymbolType.WIRE:o="铁丝网";break;case SuperMap.Plot.SymbolType.LinearArrow:o="直线箭头"}return o}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.MD5=SuperMap.MD5=SuperMap.MD5||{};var l=e.md5=function(t){function e(t,e){return t<<e|t>>>32-e}function o(t,e){var o,l,i,n,r;return i=2147483648&t,n=2147483648&e,r=(1073741823&t)+(1073741823&e),(o=1073741824&t)&(l=1073741824&e)?2147483648^r^i^n:o|l?1073741824&r?3221225472^r^i^n:1073741824^r^i^n:r^i^n}function l(t,l,i,n,r,a,s){return o(e(t=o(t,o(o(function(t,e,o){return t&e|~t&o}(l,i,n),r),s)),a),l)}function i(t,l,i,n,r,a,s){return o(e(t=o(t,o(o(function(t,e,o){return t&o|e&~o}(l,i,n),r),s)),a),l)}function n(t,l,i,n,r,a,s){return o(e(t=o(t,o(o(function(t,e,o){return t^e^o}(l,i,n),r),s)),a),l)}function r(t,l,i,n,r,a,s){return o(e(t=o(t,o(o(function(t,e,o){return e^(t|~o)}(l,i,n),r),s)),a),l)}function a(t){var e,o="",l="";for(e=0;e<=3;e++)o+=(l="0"+(t>>>8*e&255).toString(16)).substr(l.length-2,2);return o}var s,p,u,P,c,y,h,S,f,g=Array();for(g=function(t){for(var e,o=t.length,l=o+8,i=16*((l-l%64)/64+1),n=Array(i-1),r=0,a=0;a<o;)r=a%4*8,n[e=(a-a%4)/4]=n[e]|t.charCodeAt(a)<<r,a++;return r=a%4*8,n[e=(a-a%4)/4]=n[e]|128<<r,n[i-2]=o<<3,n[i-1]=o>>>29,n}(t=function(t){t=t.replace("/\r\n/g","\n");for(var e="",o=0;o<t.length;o++){var l=t.charCodeAt(o);l<128?e+=String.fromCharCode(l):l>127&&l<2048?(e+=String.fromCharCode(l>>6|192),e+=String.fromCharCode(63&l|128)):(e+=String.fromCharCode(l>>12|224),e+=String.fromCharCode(l>>6&63|128),e+=String.fromCharCode(63&l|128))}return e}(t)),y=1732584193,h=4023233417,S=2562383102,f=271733878,s=0;s<g.length;s+=16)p=y,u=h,P=S,c=f,h=r(h=r(h=r(h=r(h=n(h=n(h=n(h=n(h=i(h=i(h=i(h=i(h=l(h=l(h=l(h=l(h,S=l(S,f=l(f,y=l(y,h,S,f,g[s+0],7,3614090360),h,S,g[s+1],12,3905402710),y,h,g[s+2],17,606105819),f,y,g[s+3],22,3250441966),S=l(S,f=l(f,y=l(y,h,S,f,g[s+4],7,4118548399),h,S,g[s+5],12,1200080426),y,h,g[s+6],17,2821735955),f,y,g[s+7],22,4249261313),S=l(S,f=l(f,y=l(y,h,S,f,g[s+8],7,1770035416),h,S,g[s+9],12,2336552879),y,h,g[s+10],17,4294925233),f,y,g[s+11],22,2304563134),S=l(S,f=l(f,y=l(y,h,S,f,g[s+12],7,1804603682),h,S,g[s+13],12,4254626195),y,h,g[s+14],17,2792965006),f,y,g[s+15],22,1236535329),S=i(S,f=i(f,y=i(y,h,S,f,g[s+1],5,4129170786),h,S,g[s+6],9,3225465664),y,h,g[s+11],14,643717713),f,y,g[s+0],20,3921069994),S=i(S,f=i(f,y=i(y,h,S,f,g[s+5],5,3593408605),h,S,g[s+10],9,38016083),y,h,g[s+15],14,3634488961),f,y,g[s+4],20,3889429448),S=i(S,f=i(f,y=i(y,h,S,f,g[s+9],5,568446438),h,S,g[s+14],9,3275163606),y,h,g[s+3],14,4107603335),f,y,g[s+8],20,1163531501),S=i(S,f=i(f,y=i(y,h,S,f,g[s+13],5,2850285829),h,S,g[s+2],9,4243563512),y,h,g[s+7],14,1735328473),f,y,g[s+12],20,2368359562),S=n(S,f=n(f,y=n(y,h,S,f,g[s+5],4,4294588738),h,S,g[s+8],11,2272392833),y,h,g[s+11],16,1839030562),f,y,g[s+14],23,4259657740),S=n(S,f=n(f,y=n(y,h,S,f,g[s+1],4,2763975236),h,S,g[s+4],11,1272893353),y,h,g[s+7],16,4139469664),f,y,g[s+10],23,3200236656),S=n(S,f=n(f,y=n(y,h,S,f,g[s+13],4,681279174),h,S,g[s+0],11,3936430074),y,h,g[s+3],16,3572445317),f,y,g[s+6],23,76029189),S=n(S,f=n(f,y=n(y,h,S,f,g[s+9],4,3654602809),h,S,g[s+12],11,3873151461),y,h,g[s+15],16,530742520),f,y,g[s+2],23,3299628645),S=r(S,f=r(f,y=r(y,h,S,f,g[s+0],6,4096336452),h,S,g[s+7],10,1126891415),y,h,g[s+14],15,2878612391),f,y,g[s+5],21,4237533241),S=r(S,f=r(f,y=r(y,h,S,f,g[s+12],6,1700485571),h,S,g[s+3],10,2399980690),y,h,g[s+10],15,4293915773),f,y,g[s+1],21,2240044497),S=r(S,f=r(f,y=r(y,h,S,f,g[s+8],6,1873313359),h,S,g[s+15],10,4264355552),y,h,g[s+6],15,2734768916),f,y,g[s+13],21,1309151649),S=r(S,f=r(f,y=r(y,h,S,f,g[s+4],6,4149444226),h,S,g[s+11],10,3174756917),y,h,g[s+2],15,718787259),f,y,g[s+9],21,3951481745),y=o(y,p),h=o(h,u),S=o(S,P),f=o(f,c);return(a(y)+a(h)+a(S)+a(f)).toLowerCase()};SuperMap.MD5.md5=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.md5=void 0;var l=o(1);e.md5=l.md5},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbolFactory=void 0,o(0);e.AlgoSymbolFactory=SuperMap.Plot.AlgoSymbolFactory=SuperMap.Plot.AlgoSymbolFactory||{};SuperMap.Plot.AlgoSymbolFactory.getAlgoSymbol=function(t){var e=t.libID,o=t.code;return 0!==e&&22!==e&&421!==e||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===e&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getAlgoSymbol(e,o,t):123===e&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getAlgoSymbol(e,o,t):999===e&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getAlgoSymbol(e,o,t):null:SuperMap.Plot.BasicAlgoSymbolFactory.getAlgoSymbol(e,o,t)},SuperMap.Plot.AlgoSymbolFactory.getSymbolWayType=function(t,e){if(0===t)switch(e){case SuperMap.Plot.SymbolType.POLYLINESYMBOL:case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:return SuperMap.Plot.AddPoint_WayType.POLYLINE;case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:return SuperMap.Plot.AddPoint_WayType.CURVE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}if(22===t)switch(e){case 1005:case 1008:case 1012:case 1014:return SuperMap.Plot.AddPoint_WayType.CURVE;case 1007:case 1009:case 1013:case 1015:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}if(100===t)switch(e){case 15200:case 15201:case 16203:case 17703:case 17704:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21600:case 21900:case 22e3:case 22103:case 23800:case 24700:case 25201:case 25400:case 25601:case 25801:case 25901:case 26500:case 26501:case 26502:case 26503:case 26600:case 28900:case 29e3:case 29003:case 29903:case 3e4:case 30001:case 30002:case 30100:case 30102:case 30200:case 30201:case 30800:case 31803:case 33400:case 34900:case 34901:case 34902:case 35e3:case 36400:case 44200:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 3010301:case 3010302:case 3010303:case 3010304:case 16500:case 17400:case 17401:case 17500:case 17501:case 23400:case 23500:case 23600:case 23700:case 27300:case 28200:case 28300:case 28400:case 37600:case 37601:case 37700:case 39e3:case 40100:case 40101:case 42400:case 2350001:case 3032e3:case 4010800:case 4010801:case 4011100:case 4011101:case 4022100:case 4022101:case 4022102:case 39101:case 44300:case 22200:case 27701:return SuperMap.Plot.AddPoint_WayType.CURVE;case 12500:case 12502:case 16100:case 20300:case 25501:case 25502:case 25503:case 32900:case 34700:case 35200:case 36401:case 41200:case 41201:case 41202:case 42700:case 44400:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}if(123===t)switch(e){case 21003:case 21207:case 2120701:case 2121503:case 21218:case 30008:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 30009:case 5021803:case 5022001:case 5022002:case 40301:case 4030101:case 4030102:case 4030103:case 4030104:case 40303:case 4030301:case 4030302:case 4030303:case 50101:case 5010101:case 50102:case 5010201:case 5010202:case 5010203:case 5010204:case 50103:case 5010301:case 5010302:case 5010303:case 5010304:case 50107:case 5010701:case 50210:case 50220:case 50221:case 50225:case 5030102:case 50303:case 5030301:case 50309:case 50320:case 5032001:case 5032002:case 5032003:case 50321:case 5032101:case 5032102:case 50322:case 5032201:case 50330:case 5033001:case 5034203:case 5035201:case 5035204:case 60205:case 90105:return SuperMap.Plot.AddPoint_WayType.CURVE;case 20915:case 2091502:case 2092101:case 2120702:case 21216:case 2121601:case 2121602:case 21605:case 30010:case 30011:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 30012:case 30020:case 3002001:case 3002002:case 3002005:case 30025:case 3002501:case 30026:case 40104:case 40302:case 4030201:case 4030202:case 4030203:case 4030204:case 50227:case 5035205:case 60301:case 6030101:case 6030102:case 6030103:case 6030104:case 6030105:case 6030106:case 6030107:case 70202:case 7020201:case 7020202:case 90107:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}},SuperMap.Plot.AlgoSymbolFactory.isAccessServer=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.isAccessServer(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.isAccessServer(t,e):999!==t||void 0===SuperMap.Plot.YJAlgoSymbolFactory||SuperMap.Plot.YJAlgoSymbolFactory.isAccessServer(t,e):SuperMap.Plot.BasicAlgoSymbolFactory.isAccessServer(t,e)},SuperMap.Plot.AlgoSymbolFactory.getDefaultSubSymbols=function(t,e){return 100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getDefaultSubSymbols(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getDefaultSubSymbols(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getDefaultSubSymbols(t,e):[]},SuperMap.Plot.AlgoSymbolFactory.getMinEditPts=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getMinEditPts(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getMinEditPts(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getMinEditPts(t,e):0:SuperMap.Plot.BasicAlgoSymbolFactory.getMinEditPts(t,e)},SuperMap.Plot.AlgoSymbolFactory.getMaxEditPts=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getMaxEditPts(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getMaxEditPts(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getMaxEditPts(t,e):0:SuperMap.Plot.BasicAlgoSymbolFactory.getMaxEditPts(t,e)},SuperMap.Plot.AlgoSymbolFactory.getDefaultStyle=function(t,e){return 100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getDefaultStyle(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getDefaultStyle(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getDefaultStyle(t,e):{}},SuperMap.Plot.AlgoSymbolFactory.getSymbolName=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?"":SuperMap.Plot.BasicAlgoSymbolFactory.getSymbolName(t,e)},SuperMap.Plot.AlgoSymbolFactory.canPolylineConnect=function(t,e){if(100!==t)return!1;switch(e){case 16500:case 17400:case 17401:case 17500:case 17501:case 23400:case 23500:case 23600:case 23700:case 27300:case 28200:case 28300:case 28400:case 37600:case 37601:case 37700:case 39e3:case 40100:case 40101:case 42200:case 42400:case 2350001:case 3032e3:case 4010800:case 4010801:case 4011100:case 4011101:case 4022100:case 4022101:case 4022102:return!0;default:return!1}},SuperMap.Plot.AlgoSymbolFactory.zoomInCalSymbol=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.zoomInCalSymbol(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.zoomInCalSymbol(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.zoomInCalSymbol(t,e):0:SuperMap.Plot.BasicAlgoSymbolFactory.zoomInCalSymbol(t,e)},SuperMap.Plot.AlgoSymbolFactory.zoomCalSymbol=function(t,e){if((0===t||22===t||421===t)&&void 0!==SuperMap.Plot.BasicAlgoSymbolFactory)return SuperMap.Plot.BasicAlgoSymbolFactory.zoomCalSymbol(t,e);if(100===t)switch(e){case 28e3:case 28100:case 28200:case 28201:case 32300:return!0;default:return!1}else{if(123!==t||void 0===SuperMap.Plot.WJAlgoSymbolFactory)return!1;switch(e){case 50312:case 50313:case 50314:case 50348:return!0;default:return!1}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol15200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.05),o.scaleValues.push(0),o.scaleValues.push(.185)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);for(var o=0,l=0,i=e.length-1;l<i;l++)o+=SuperMap.Plot.PlottingUtil.distance(e[l],e[l+1]);for(var n=0,r=0,a=t.length-1;r<a;r++)n+=SuperMap.Plot.PlottingUtil.distance(t[r],t[r+1]);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());for(var s=this.scaleValues[0]*n,p=this.scaleValues[1],u=this.scaleValues[2]*n,P=.3*u,c=u;c<o;c+=u){var y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(c,e);if(-1===y.index)return void this.finish();var h=c+P,S=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(h,e);if(-1===S.index)return void this.finish();var f=[],g=[];f.push(y.pts);var M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[y.index],y.pts);0===p?f.push(new SuperMap.Geometry.Point(M.pntLeft.x,M.pntLeft.y)):f.push(new SuperMap.Geometry.Point(M.pntRight.x,M.pntRight.y)),g.push(S.pts);var d=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[S.index],S.pts);if(0===p?g.push(new SuperMap.Geometry.Point(d.pntLeft.x,d.pntLeft.y)):g.push(new SuperMap.Geometry.Point(d.pntRight.x,d.pntRight.y)),u===c){this.scalePoints=[];var m=new SuperMap.Geometry.Point(f[1].x,f[1].y);m.isScalePoint=!0,m.tag=0,this.scalePoints.push(m),(m=new SuperMap.Geometry.Point(f[0].x,f[0].y)).isScalePoint=!0,m.tag=1,this.scalePoints.push(m)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;for(var l=0,i=0,n=o.length-1;i<n;i++)l+=SuperMap.Plot.PlottingUtil.distance(o[i],o[i+1]);var r=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o),a=new SuperMap.Geometry.Point(e.x,e.y);if(0===t){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(r,l*this.scaleValues[2]);if(-1===s.index)return;var p=SuperMap.Plot.PlottingUtil.distance(s.pt,a)/l,u=SuperMap.Plot.PlottingUtil.pointIsRightToLine(r[0],r[1],e);this.scaleValues[1]=u?1:0,this.scaleValues[0]=p}else if(1===t){for(var P=0,c=-1,y=[],h=0,S=r.length-1;h<S;h++){var f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,r[h],r[h+1]);if(f.isOnline){var g=SuperMap.Plot.PlottingUtil.distance(f.projectPoint,this.controlPoints[1]);0==P?(P=g,c=h,y=e):g<P&&(P=g,c=h,y=e)}}if(-1==c)return;for(var M=0,d=0,m=c-1;d<m;d++)M+=SuperMap.Plot.PlottingUtil.distance(r[d],r[d+1]);var v=(M+=SuperMap.Plot.PlottingUtil.distance(y,r[c]))/l;v>.7&&(v=.7),this.scaleValues[2]=v}}}}]),e}();SuperMap.Plot.AlgoSymbol15200=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol315=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0!==o.scaleValues.length&&(o.scaleValues=[],o.scaleValues.push(.2),o.scaleValues.push(.2),o.scaleValues.push(.4),o.scaleValues.push(.4),o.scaleValues.push(.1),o.scaleValues.push(.2),o.scaleValues.push(.1),o.scaleValues.push(.2),o.scaleValues.push(1),o.scaleValues.push(1)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol315",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){for(var e=0,o=0;o<t.length-1;o++)e+=SuperMap.Plot.PlottingUtil.distance(t[o],t[o+1]);SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments),this.scaleValues.length<9&&(this.scaleValues=[],this.scaleValues.push(.2),this.scaleValues.push(.2),this.scaleValues.push(.4),this.scaleValues.push(.4),this.scaleValues.push(.1),this.scaleValues.push(.2),this.scaleValues.push(.1),this.scaleValues.push(.2),this.scaleValues.push(1),this.scaleValues.push(1));var l,i=e*this.scaleValues[4],n=e*this.scaleValues[5],r=SuperMap.Plot.PlottingUtil.distance(t[1],t[0]),a=SuperMap.Plot.PlottingUtil.linePnt(t[1],t[0],r+n);l=(this.scaleValues[8],SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[1],a));var s,p=e*this.scaleValues[6],u=e*this.scaleValues[7],P=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],r+u);s=(this.scaleValues[9],SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p,t[0],P));var c=[];c.push(new SuperMap.Geometry.Point(l.pntLeft.x,l.pntLeft.y)),c.push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),c.push(new SuperMap.Geometry.Point(t[1].x,t[1].y)),c.push(new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y));var y=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(c);y=SuperMap.Plot.PlottingUtil.clearSamePts(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.addScalePoint(l.pntLeft,3),this.addScalePoint(s.pntRight,4)}}},{key:"modifyPoint",value:function(t,o){if(!0===o.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.projectPoint(o,l[0],l[1]);if(t<=2&&(SuperMap.Plot.AlgoSymbol1004.prototype.modifyPoint.apply(this,arguments),function t(e,o,l){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,o,l)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(l):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"modifyPoint",this).call(this,t,o)),3===t){var r=SuperMap.Plot.PlottingUtil.distance(o,n)/i,a=SuperMap.Plot.PlottingUtil.distance(n,l[0])/i;this.scaleValues[4]=r,this.scaleValues[5]=a,SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0],l[1],o)?this.scaleValues[8]=1:this.scaleValues[8]=0}if(4===t){var s=SuperMap.Plot.PlottingUtil.distance(o,n)/i,p=SuperMap.Plot.PlottingUtil.distance(n,l[1])/i;this.scaleValues[6]=s,this.scaleValues[7]=p,SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0],l[1],o)?this.scaleValues[9]=1:this.scaleValues[9]=0}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol315=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1022=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.05),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1022",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=e*this.scaleValues[0],l=SuperMap.Plot.PlottingUtil.paraLine(t,o,!0),i=SuperMap.Plot.PlottingUtil.paraLine(t,o,!1),n=SuperMap.Plot.PlottingUtil.findPointInLine(l[0],l[1],.6*e),r=SuperMap.Plot.PlottingUtil.findPointInLine(l[0],l[1],.5*e),a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.1*e,l[0],r).pntLeft;this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[a,n,l[1]],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0});var s=SuperMap.Plot.PlottingUtil.findPointInLine(i[0],i[1],.4*e),p=SuperMap.Plot.PlottingUtil.findPointInLine(i[0],i[1],.5*e),u=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.1*e,i[0],p).pntRight;this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[u,s,i[0]],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[i[1],i[0]]),this.addScalePoint(l[0],0),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var l=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){var i=SuperMap.Plot.PlottingUtil.distance(o[0],e)/l;this.scaleValues[0]=i}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1022=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1021=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.25),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1021",o.QIANJI_RATE1=9,o.QIANJI_RATE2=20,o.QIANJI_RATE4=5,o.QIANJI_RATE3=1/3,o.QIANJI_TAIL_RATE1=8,o.QIANJI_TAIL_RATE2=3,o.QIANJI_TAIL_RATE3=.6,o.SV1_Default=.25,o.SV1_MinValue=0,o.SV1_MaxValue=.5,o.DEFAULT_ARROW_TAIL_POS=.4,o.SCALE_VALUE_COUNT=1,o.MIN_LEN_LeftToRightCenter=1e-7,o.SCALE_AT=1/3,o.SCALE_ATAJ=1/7,o.SCALE_ATAE=1/3,o.SCALE_AW=2/3,o.SCALE_ATAJctrlDefSide=.8,o.SCALE_ATAJctrlSameSide=2/3,o.SCALE_MM_LEFT=.25,o.SCALE_MM_RIGHT=.75,o.BEZIER_K1=1/3,o.QIANJI_OPERATE_RATE1=1,o.m_dMaxDis=0,o.m_bIsAnimation=!1,o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.components=[],this.m_scalePoints=[],t.length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<3)){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),o=this.arrowMeshs(e);o.LeftArowHead.unshift(o.LeftArowLeftBody[0][o.LeftArowLeftBody[0].length-1]),o.RightArowHead.unshift(o.RightArowLeftBody[o.RightArowLeftBody.length-1]),o.LeftArowLeftBody[0].push(o.LeftArowHead[0]),o.RightArowLeftBody.push(o.RightArowHead[0]),o.shapePts.push(o.shapePts[0]);var l=SuperMap.Plot.PlottingUtil.polylineDistance(o.LeftArowLeftBody[0]),i=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*l,o.LeftArowLeftBody[0]),n=[],r=[];if(i.bfind)for(var a=0;a<=i.index;a++)n.push(o.LeftArowLeftBody[0][a]);var s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,o.LeftArowLeftBody[0]);if(s.bfind)for(var p=s.index;p<o.LeftArowLeftBody[0].length-1;p++)r.push(o.LeftArowLeftBody[0][p]);var u=SuperMap.Plot.PlottingUtil.polylineDistance(o.RightArowLeftBody),P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*u,o.RightArowLeftBody),c=[],y=[];if(P.bfind)for(var h=0;h<=P.index;h++)c.push(o.RightArowLeftBody[h]);var S=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*u,o.RightArowLeftBody);if(S.bfind)for(var f=S.index;f<o.RightArowLeftBody.length-1;f++)y.push(o.RightArowLeftBody[f]);var g=SuperMap.Plot.PlottingUtil.polylineDistance(o.RightArowRightBody),M=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*g,o.RightArowRightBody),d=[],m=[];if(M.bfind)for(var v=0;v<=M.index;v++)d.push(o.RightArowRightBody[v]);var b=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*g,o.RightArowRightBody);if(b.bfind)for(var A=b.index;A<o.RightArowRightBody.length-1;A++)m.push(o.RightArowRightBody[A]);o.shapePts.length>0&&(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o.shapePts,{strokeWidth:0,weight:0,lineWidthLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o.LeftArowHead,{lineTypeLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o.LeftArowRightBody),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o.RightArowHead,{lineTypeLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m)),this.scalePoints=[];for(var L=0;L<this.m_scalePoints.length;L++)this.m_scalePoints[L].isScalePoint=!0,this.m_scalePoints[L].tag=L,this.scalePoints.push(this.m_scalePoints[L]);this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var l,i=SuperMap.Plot.PlottingUtil.operateControlPoints(o),n=new SuperMap.Geometry.Point((i[0].x+i[1].x)/2,(i[0].y+i[1].y)/2),r=new SuperMap.Geometry.Point((i[2].x+i[3].x)/2,(i[2].y+i[3].y)/2),a=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,n,r);if(a.isOnline){var s=SuperMap.Plot.PlottingUtil.distance(a.projectPoint,n),p=SuperMap.Plot.PlottingUtil.distance(n,r);(l=SuperMap.Plot.PlottingUtil.equalFuzzy(s,0)?this.SV1_MinValue:s/p)>this.SV1_MaxValue&&(l=this.SV1_MaxValue)}else l=SuperMap.Plot.PlottingUtil.distance(a.projectPoint,n)<SuperMap.Plot.PlottingUtil.distance(a.projectPoint,r)?this.SV1_MinValue:this.SV1_MaxValue;this.scaleValues=[],this.scaleValues.push(l)}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=new SuperMap.Plot.Path2D,o=[];o=this.m_bIsAnimation&&4===t.length?SuperMap.Plot.PlottingUtil.clonePoints(t):SuperMap.Plot.PlottingUtil.operateControlPoints(t);var l=this.scaleValues[0],i=SuperMap.Plot.PlottingUtil.distance(o[0],o[3]),n=SuperMap.Plot.PlottingUtil.distance(o[1],o[2]),r=o[1].clone(),a=.5*(o[0].x+o[3].x),s=.5*(o[0].y+o[3].y),p=new SuperMap.Geometry.Point(a,s),u=.5*(o[1].x+o[2].x),P=.5*(o[1].y+o[2].y),c=new SuperMap.Geometry.Point(u,P),y=SuperMap.Plot.PlottingUtil.distance(p,c);y<this.MIN_LEN_LeftToRightCenter&&(y=this.MIN_LEN_LeftToRightCenter),p.x=a+i*(a-u)/(y*this.QIANJI_RATE1),p.y=s+i*(s-P)/(y*this.QIANJI_RATE1),c.x=u+n*(u-a)/(y*this.QIANJI_RATE1),c.y=P+n*(P-s)/(y*this.QIANJI_RATE1);var h=new SuperMap.Geometry.Point(0,0),S=new SuperMap.Geometry.Point(0,0);h.x=a+i*(a-u)/(y*this.QIANJI_RATE2),h.y=s+i*(s-P)/(y*this.QIANJI_RATE2),S.x=u+n*(u-a)/(y*this.QIANJI_RATE2),S.y=P+n*(P-s)/(y*this.QIANJI_RATE2);var f=new SuperMap.Geometry.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),g=new SuperMap.Geometry.Point((o[2].x+o[3].x)/2,(o[2].y+o[3].y)/2),M=o[3].x-(o[3].x-p.x)*this.SCALE_AT,d=o[3].y-(o[3].y-p.y)*this.SCALE_AT,m=o[2].x-(o[2].x-c.x)*this.SCALE_AT,v=o[2].y-(o[2].y-c.y)*this.SCALE_AT,b=new SuperMap.Geometry.Point(0,0),A=new SuperMap.Geometry.Point(0,0),L=new SuperMap.Geometry.Point(0,0),T=new SuperMap.Geometry.Point(0,0);A.x=M-(d-o[3].y)*this.SCALE_ATAJ,A.y=d+(M-o[3].x)*this.SCALE_ATAJ,b.x=M+(d-o[3].y)*this.SCALE_ATAJ,b.y=d-(M-o[3].x)*this.SCALE_ATAJ,T.x=m-(v-o[2].y)*this.SCALE_ATAJ,T.y=v+(m-o[2].x)*this.SCALE_ATAJ,L.x=m+(v-o[2].y)*this.SCALE_ATAJ,L.y=v-(m-o[2].x)*this.SCALE_ATAJ;var x=new SuperMap.Geometry.Point(0,0),O=new SuperMap.Geometry.Point(0,0),w=new SuperMap.Geometry.Point(0,0),U=new SuperMap.Geometry.Point(0,0);x.x=3*b.x-2*M-(o[3].x-M)*this.SCALE_ATAE,x.y=3*b.y-2*d-(o[3].y-d)*this.SCALE_ATAE,O.x=3*A.x-2*M-(o[3].x-M)*this.SCALE_ATAE,O.y=3*A.y-2*d-(o[3].y-d)*this.SCALE_ATAE,w.x=3*L.x-2*m-(o[2].x-m)*this.SCALE_ATAE,w.y=3*L.y-2*v-(o[2].y-v)*this.SCALE_ATAE,U.x=3*T.x-2*m-(o[2].x-m)*this.SCALE_ATAE,U.y=3*T.y-2*v-(o[2].y-v)*this.SCALE_ATAE,p.x=a+i*(a-u)/(y*this.QIANJI_RATE4),p.y=s+i*(s-P)/(y*this.QIANJI_RATE4),c.x=u+n*(u-a)/(y*this.QIANJI_RATE4),c.y=P+n*(P-s)/(y*this.QIANJI_RATE4);var R=new SuperMap.Geometry.Point(0,0);R.x=o[0].x+(p.x-o[0].x)*this.SCALE_AW,R.y=o[0].y+(p.y-o[0].y)*this.SCALE_AW;var _=new SuperMap.Geometry.Point(0,0);_.x=o[1].x+(c.x-o[1].x)*this.SCALE_AW,_.y=o[1].y+(c.y-o[1].y)*this.SCALE_AW;var E=new SuperMap.Geometry.Point(0,0);E.x=b.x+(p.x-b.x)*this.SCALE_ATAJctrlSameSide,E.y=b.y+(p.y-b.y)*this.SCALE_ATAJctrlSameSide;var C=new SuperMap.Geometry.Point(0,0);C.x=T.x+(c.x-T.x)*this.SCALE_ATAJctrlSameSide,C.y=T.y+(c.y-T.y)*this.SCALE_ATAJctrlSameSide;var I=new SuperMap.Geometry.Point(0,0);I.x=A.x+(h.x-A.x)*this.SCALE_ATAJctrlDefSide,I.y=A.y+(h.y-A.y)*this.SCALE_ATAJctrlDefSide;var B=new SuperMap.Geometry.Point(0,0);B.x=L.x+(S.x-L.x)*this.SCALE_ATAJctrlDefSide,B.y=L.y+(S.y-L.y)*this.SCALE_ATAJctrlDefSide;var D=new SuperMap.Geometry.Point(0,0);D.x=f.x+(g.x-f.x)*l,D.y=f.y+(g.y-f.y)*l,this.m_scalePoints.push(new SuperMap.Geometry.Point(D.x,D.y));var G=new SuperMap.Geometry.Point(0,0),V=new SuperMap.Geometry.Point(0,0);G.x=o[0].x+(o[3].x-o[0].x)*l,G.y=o[0].y+(o[3].y-o[0].y)*l,V.x=o[1].x+(o[2].x-o[1].x)*l,V.y=o[1].y+(o[2].y-o[1].y)*l,G.x=G.x+(D.x-G.x)*this.QIANJI_RATE3,G.y=G.y+(D.y-G.y)*this.QIANJI_RATE3,V.x=V.x+(D.x-V.x)*this.QIANJI_RATE3,V.y=V.y+(D.y-V.y)*this.QIANJI_RATE3;var N=[];N.push(o[0].clone()),N.push(R.clone()),N.push(E.clone()),N.push(b.clone()),e.MoveTo(N[0]),e.CurveTo(N[1],N[2],N[3]);var k,Y=[],z=[],j=[],F=[],W=[],H=[],q=[];for(e.ToSubPathPolygons(q),Y.push(q[0]),k=q[0].length,e.LineTo(x),e.LineTo(o[3]),e.LineTo(O),(N=[]).push(A),N.push(I),N.push(G),N.push(D),e.LineTo(N[0]),q=[],e.ToSubPathPolygons(q);k<q[0].length;k++)z.push(q[0][k]);for(k=q[0].length,e.CurveTo(N[1],N[2],N[3]),q=[],e.ToSubPathPolygons(q);k<q[0].length;k++)j.push(q[0][k]);for(k=q[0].length,(N=[]).push(V),N.push(B),N.push(L),e.CurveTo(N[0],N[1],N[2]),q=[],e.ToSubPathPolygons(q);k<q[0].length;k++)F.push(q[0][k]);for(k=q[0].length,e.LineTo(w),e.LineTo(o[2]),e.LineTo(U),(N=[]).push(T),N.push(C),N.push(_),N.push(r),e.LineTo(N[0]),q=[],e.ToSubPathPolygons(q);k<q[0].length;k++)W.push(q[0][k]);for(k=q[0].length,e.CurveTo(N[1],N[2],N[3]),q=[],e.ToSubPathPolygons(q);k<q[0].length;k++)H.push(q[0][k]);return q=[],e.ToSubPathPolygons(q),{shapePts:q[0],LeftArowLeftBody:Y,LeftArowHead:z,LeftArowRightBody:j,ArowMidBody:[],RightArowLeftBody:F,RightArowHead:W,RightArowRightBody:H}}}]),e}();SuperMap.Plot.AlgoSymbol1021=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1020=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.5),o.scaleValues.push(.222222),o.scaleValues.push(.5),o.scaleValues.push(.5),o.scaleValues.push(.5)),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1020",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.222222),this.scaleValues.push(.5),this.scaleValues.push(.5),this.scaleValues.push(.5));var e=t[0].clone(),o=t[1].clone(),l=SuperMap.Plot.PlottingUtil.distance(e,o),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-l*i),r=new SuperMap.Geometry.Point(0,l*i),a=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(l*(1-s),-l*a),u=new SuperMap.Geometry.Point(l*(1-s),l*a),P=this.scaleValues[2],c=this.scaleValues[4],y=new SuperMap.Geometry.Point(l*(1-c),-l*P),h=new SuperMap.Geometry.Point(l*(1-c),l*P),S=new SuperMap.Geometry.Point(l,0),f=SuperMap.Plot.PlottingUtil.radian(e,o),g=SuperMap.Plot.PlottingUtil.distance(n,p),M=SuperMap.Plot.PlottingUtil.findPointInLine(n,p,.3*g),d=SuperMap.Plot.PlottingUtil.findPointInLine(n,p,.4*g),m=SuperMap.Plot.PlottingUtil.distance(u,r),v=SuperMap.Plot.PlottingUtil.findPointInLine(u,r,.6*m),b=SuperMap.Plot.PlottingUtil.findPointInLine(u,r,.7*m),A=[];A.push(n),A.push(M),A.push(d),A.push(p),A.push(y),A.push(S),A.push(h),A.push(u),A.push(v),A.push(b),A.push(r);for(var L=[],T=0;T<A.length;T++){var x=SuperMap.Plot.PlottingUtil.coordinateTrans(e,A[T],f*SuperMap.Plot.PlottingUtil.RTOD);L.push(x)}for(var O=[],w=L.length-1;w>=0;--w)O.push(L[w]);var U=SuperMap.Plot.PlottingUtil.clonePoints(O);U.push(U[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,U,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O[0],O[1]]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O[2],O[3]]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O[3],O[4],O[5],O[6],O[7]],{lineTypeLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O[7],O[8]]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O[9],O[10]]),this.scalePoints=[];var R=L[0].clone();R.isScalePoint=!0,R.tag=0,this.scalePoints.push(R);var _=L[3].clone();_.isScalePoint=!0,_.tag=1,this.scalePoints.push(_);var E=L[4].clone();E.isScalePoint=!0,E.tag=2,this.scalePoints.push(E),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var l=SuperMap.Plot.PlottingUtil.distance(o[0],o[1]),i=o[0].clone(),n=o[1].clone(),r=e.clone();if(0==t){var a=SuperMap.Plot.PlottingUtil.distance(r,i)/l;this.scaleValues[0]=a}else if(1==t){var s=SuperMap.Plot.PlottingUtil.projectPoint(r,i,n),p=SuperMap.Plot.PlottingUtil.distance(s,r)/l;this.scaleValues[1]=p;var u=SuperMap.Plot.PlottingUtil.distance(s,n)/l;this.scaleValues[3]=u}else if(2==t){var P=SuperMap.Plot.PlottingUtil.projectPoint(r,i,n),c=SuperMap.Plot.PlottingUtil.distance(P,r)/l;this.scaleValues[2]=c;var y=SuperMap.Plot.PlottingUtil.distance(P,n)/l;this.scaleValues[4]=y}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1020=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1019=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.5),o.scaleValues.push(.222222),o.scaleValues.push(.5),o.scaleValues.push(.5),o.scaleValues.push(.5)),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1019",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.222222),this.scaleValues.push(.5),this.scaleValues.push(.5),this.scaleValues.push(.5));var e=t[0].clone(),o=t[1].clone(),l=SuperMap.Plot.PlottingUtil.distance(e,o),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-l*i),r=new SuperMap.Geometry.Point(0,l*i),a=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(l*(1-s),-l*a),u=new SuperMap.Geometry.Point(l*(1-s),l*a),P=this.scaleValues[2],c=this.scaleValues[4],y=new SuperMap.Geometry.Point(l*(1-c),-l*P),h=new SuperMap.Geometry.Point(l*(1-c),l*P),S=new SuperMap.Geometry.Point(l,0),f=SuperMap.Plot.PlottingUtil.radian(e,o),g=[];g.push(n),g.push(p),g.push(y),g.push(S),g.push(h),g.push(u),g.push(r),g.push(n);for(var M=[],d=0;d<g.length;d++){var m=SuperMap.Plot.PlottingUtil.coordinateTrans(e,g[d],f*SuperMap.Plot.PlottingUtil.RTOD);M.push(m)}for(var v=[],b=M.length-1;b>=0;--b)v.push(M[b]);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,v,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[v[2],v[1],v[7],v[6]],{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[v[6],v[5],v[4],v[3],v[2]],{lineTypeLimit:!0,surroundLineFlag:!1}),this.scalePoints=[];var A=M[0].clone();A.isScalePoint=!0,A.tag=0,this.scalePoints.push(A);var L=M[1].clone();L.isScalePoint=!0,L.tag=1,this.scalePoints.push(L);var T=M[2].clone();T.isScalePoint=!0,T.tag=2,this.scalePoints.push(T),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var l=SuperMap.Plot.PlottingUtil.distance(o[0],o[1]),i=o[0].clone(),n=o[1].clone(),r=e.clone();if(0==t){var a=SuperMap.Plot.PlottingUtil.distance(r,i)/l;this.scaleValues[0]=a}else if(1==t){var s=SuperMap.Plot.PlottingUtil.projectPoint(r,i,n),p=SuperMap.Plot.PlottingUtil.distance(s,r)/l;this.scaleValues[1]=p;var u=SuperMap.Plot.PlottingUtil.distance(s,n)/l;this.scaleValues[3]=u}else if(2==t){var P=SuperMap.Plot.PlottingUtil.projectPoint(r,i,n),c=SuperMap.Plot.PlottingUtil.distance(P,r)/l;this.scaleValues[2]=c;var y=SuperMap.Plot.PlottingUtil.distance(P,n)/l;this.scaleValues[4]=y}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1019=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1018=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.MAX_ARRAY_SIZE=128,o.sv1_DefaultAtLenDivAbLen=0,o.sv2_DefaultAjWidthDivAtLen=.148,o.sv3_DefaultAeWidthDivAtLen=.4,o.sv4_DefaultAeLenDivAtLen=.312,o.sv_AtScaleParameter=1.5,o.sv_AtLenDivAtWidth=1.35,o.sv_AtWidthDivAwWidth=.5,o.sv_defaultAwLenDivAbLen=.15,0===o.scaleValues.length&&(o.scaleValues.push(o.sv1_DefaultAtLenDivAbLen),o.scaleValues.push(o.sv2_DefaultAjWidthDivAtLen),o.scaleValues.push(o.sv3_DefaultAeWidthDivAtLen),o.scaleValues.push(o.sv4_DefaultAeLenDivAtLen)),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1018",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init(),this.applyUse()}},{key:"applyUse",value:function(){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<3)){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),o=this.arrowMeshs(e),l=SuperMap.Plot.PlottingUtil.clonePoints(o.shapePts);(l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).push(l[0]);var i=SuperMap.Plot.PlottingUtil.clearSamePts(o.leftBodyPts),n=SuperMap.Plot.PlottingUtil.clearSamePts(o.rightBodyPts),r=SuperMap.Plot.PlottingUtil.clearSamePts(o.arrowHeadPts);if(0!=o.shapePts.length){var a=SuperMap.Plot.PlottingUtil.polylineDistance(i),s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*a,i),p=[],u=[],P=[];if(s.bfind)for(var c=0;c<=s.index;c++)p.push(i[c]);var y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.45*a,i),h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.8*a,i);if(y.bfind&&h.bfind)for(var S=y.index;S<=h.index;S++)u.push(i[S]);var f=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.85*a,i);if(f.bfind)for(var g=f.index;g<i.length;g++)P.push(i[g]);var M=SuperMap.Plot.PlottingUtil.polylineDistance(n),d=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.15*M,n),m=[],v=[],b=[];if(d.bfind)for(var A=0;A<=d.index;A++)m.push(n[A]);var L=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.2*M,n),T=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.55*M,n);if(L.bfind&&T.bfind)for(var x=L.index;x<=T.index;x++)v.push(n[x]);var O=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.6*M,n);if(O.bfind)for(var w=O.index;w<n.length;w++)b.push(n[w]);var U=SuperMap.Plot.PlottingUtil.clonePoints(r);U.splice(0,0,i[i.length-1]),U.push(n[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U,{surroundLineFlag:!1,lineTypeLimit:!0});var R=this.updateScalePoints(e);if(this.scalePoints=[],3!=R.length)R=[];else for(var _=0;_<R.length;_++)R[_].isScalePoint=!0,R[_].tag=_,this.scalePoints.push(R[_]);this.finish()}else this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.scaleValues.length<4&&(this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen),this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen),this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen),this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen));var l=o.length;if(l<=2)return;var i,n,r,a,s=this.operateCtrlPts(o);l=s.length,l--;var p=this.calcScaleValueCount(o.length);if(this.scaleValues.length<p){var u=this.calcDefaultScaleValues(l);i=u[0],n=u[1],r=u[2],a=u[3]}else i=this.scaleValues[0],n=this.scaleValues[1],r=this.scaleValues[2],a=this.scaleValues[3];for(var P=SuperMap.Plot.PlottingUtil.polylineDistance(o),c=[],y=0;y<this.scalePoints.length;y++)c.push(this.scalePoints[y].clone());if(0==c.length)return;c[t]=e.clone();var h,S,f=l-1;h=l<=3?new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2):s[f-1].clone();var g,M,d,m,v,b,A=new SuperMap.Geometry.Point(0,0),L=new SuperMap.Geometry.Point(0,0),T=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,h,s[f],s[f+1],L,T),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,s[l],s[l-1],T,A),S=A.clone();var x=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],S,c[2]);g=x.dLen1,x.dLen2,0==g&&(g=.1),M=g,i=(g/=a+1)/P,1==t?(m=(x=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],S,c[1])).dLen1,r=(v=x.dLen2)/g,a=(m-g)/g):0==t?(g=(x=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],S,c[0])).dLen1,n=(d=x.dLen2)/g,(b=SuperMap.Plot.PlottingUtil.distance(s[l],s[l-1]))<2*g&&(g=.5*b),m=(x=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],S,c[1])).dLen1,r=(v=x.dLen2)/g,(a=(M-g)/g)<.1&&(r=v/(g=M/(1+(a=.1))),n=d/g),i=g/P):2==t&&(i=g/P),d=g*n,(b=SuperMap.Plot.PlottingUtil.distance(s[l],s[l-1]))<2*g&&(d=(g=.5*b)*n,i=g/P),this.scaleValues[0]=i,this.scaleValues[1]=n,this.scaleValues[2]=r,this.scaleValues[3]=a}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],o=[],l=[],i=[],n=SuperMap.Plot.PlottingUtil.clonePoints(t),r=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(n,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),a=r.arrowTouLen,s=r.leftBodyPts,p=r.rightBodyPts;if(!SuperMap.Plot.PlottingUtil.equalFuzzy(a,0)){var u=[];u.push(s[s.length-1]),u.push(p[p.length-1]);var P=[];P.push(this.scaleValues[2]),P.push(this.scaleValues[3]),P.push(0),P.push(0);for(var c=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(n,u,P,a,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),y=0;y<s.length;y++)e.push(s[y]),o.push(s[y]);for(var h=0;h<c.length;h++)e.push(c[h]),i.push(c[h]);for(var S=p.length-1;S>=0;S--)e.push(p[S]),l.push(p[S])}return{shapePts:e,leftBodyPts:o,rightBodyPts:l,arrowHeadPts:i}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!SuperMap.Plot.PlottingUtil.equalFuzzy(l,0)){var i=this.operateCtrlPts(t);e=i.length,e--;for(var n=[],r=0;r<this.scaleValues.length;r++)n.push(this.scaleValues[r]);var a=this.genArrowBodyPts(l,i,n),s=a.ArrowBodyCenterPts,p=this.genAtPts(e,s,n,a.ArrowTouLen),u=this.calc3rdScalePt(e,s,n,a.ArrowTouLen);return o.push(new SuperMap.Geometry.Point(a.LeftBodyPtsTemp[e].x,a.LeftBodyPtsTemp[e].y)),o.push(new SuperMap.Geometry.Point(p[2].x,p[2].y)),o.push(new SuperMap.Geometry.Point(u.x,u.y)),o}}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3===e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,l=((e[0].y+e[1].y)/2+e[2].y)/2,i=new SuperMap.Geometry.Point(o,l),n=e[2];e[2]=i,e.push(n)}return e}},{key:"genArrowBodyPts",value:function(t,e,o){var l,i,n,r=[],a=[],s=[],p=[],u=[],P=[],c=e.length;if(c--,o.length<this.calcScaleValueCount(c)){var y=this.calcDefaultScaleValues(c);i=y[0],n=y[1]}else i=o[0],n=o[1];var h=SuperMap.Plot.PlottingUtil.clonePoints(e),S=(h[0].x+h[1].x)/2,f=(h[0].y+h[1].y)/2,g=Math.abs(S-h[2].x),M=Math.abs(f-h[2].y),d=0;if(g>0&&M>0){var m=1/(S-h[2].x),v=-1/(f-h[2].y),b=1*h[2].y/(f-h[2].y)-1*h[2].x/(S-h[2].x);d=Math.abs(m*h[0].x+v*h[0].y+b)/Math.sqrt(m*m+v*v)}else M<=1e-4?d=Math.abs(f-h[1].y):g<=1e-4&&(d=Math.abs(S-h[1].x));var A=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d,h[2],new SuperMap.Geometry.Point(S,f)),L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[1],h[2],h[0]);L?(r[1]=h[1],a[1]=h[0]):(r[1]=h[0],a[1]=h[1]),h[1]=new SuperMap.Geometry.Point((h[0].x+h[1].x)/2,(h[0].y+h[1].y)/2);var T=Math.sqrt((A.pntLeft.x-A.pntRight.x)*(A.pntLeft.x-A.pntRight.x)+(A.pntLeft.y-A.pntRight.y)*(A.pntLeft.y-A.pntRight.y))*this.sv_AtWidthDivAwWidth,x=(l=T*this.sv_AtLenDivAtWidth)*n;SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)||(x=(l=t*i)*n);var O,w,U=SuperMap.Plot.PlottingUtil.distance(h[c],h[c-1]),R=2*l;U<R&&(x=(l=U/2)*n),h.push(h[c].clone()),O=0,w=0;var _=0,E=[];for(_=2;_<=c;_++)O+=SuperMap.Plot.PlottingUtil.distance(h[_],h[_-1]);for(O-=l,_=2;_<=c-1;_++)w+=SuperMap.Plot.PlottingUtil.distance(h[_],h[_-1]),E[_]=x+(T-x)*Math.pow((O-w)/O,this.sv_AtScaleParameter);E[c]=x;var C,I,B=new SuperMap.Geometry.Point(0,0),D=new SuperMap.Geometry.Point(0,0),G=new SuperMap.Geometry.Point(0,0);for(_=2;_<=c-1;_++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,h[_-1],h[_],h[_+1],D,G),_==c-1&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,h[c],h[c-1],G,B),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(E[_],D,h[_]),(L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(G,D,C.pntRight))?(r[_]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y),a[_]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y)):(r[_]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),a[_]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y));for(Math.sqrt(1*(h[c].x-B.x)*(h[c].x-B.x)+1*(h[c].y-B.y)*(h[c].y-B.y))>0&&(h[c]=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(l,h[c],B)),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(x,h[c+1],h[c]),(L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[c],h[c+1],C.pntLeft))?(a[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),r[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y)):(a[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y),r[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y)),_=2;_<c;_++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,r[_-1],r[_],r[_+1],D,G),s[_]=new SuperMap.Geometry.Point(D.x,D.y),p[_]=new SuperMap.Geometry.Point(G.x,G.y),SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,a[_-1],a[_],a[_+1],D,G),u[_]=new SuperMap.Geometry.Point(D.x,D.y),P[_]=new SuperMap.Geometry.Point(G.x,G.y),2==_&&(SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,r[1],r[2],s[2],B),p[_]=new SuperMap.Geometry.Point(B.x,B.y),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,a[1],a[2],u[2],B),P[_]=new SuperMap.Geometry.Point(B.x,B.y)),_==c-1&&(R=(U=SuperMap.Plot.PlottingUtil.distance(r[c],r[c-1]))/3,(I=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(R,h[c],h[c+1])).x+=r[c].x-h[c].x,I.y+=r[c].y-h[c].y,R=(U=T-x)*Math.pow(R/O,this.sv_AtScaleParameter),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(R,r[c],I),s[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),R=(U=SuperMap.Plot.PlottingUtil.distance(a[c],a[c-1]))/3,(I=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(R,h[c],h[c+1])).x+=a[c].x-h[c].x,I.y+=a[c].y-h[c].y,R=(U=T-x)*Math.pow(R/O,this.sv_AtScaleParameter),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(R,a[c],I),u[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y));return{ArrowBodyCenterPts:SuperMap.Plot.PlottingUtil.clonePoints(h),LeftBodyPtsTemp:r,RightBodyPtsTemp:a,LeftBodyPtsLeftCtrlPts:s,LeftBodyPtsRightCtrlPts:p,RightBodyPtsLeftCtrlPts:u,RightBodyPtsRightCtrlPts:P,ArrowTouLen:l}}},{key:"calcScaleValueCount",value:function(){return 4}},{key:"calcDefaultScaleValues",value:function(){var t=[];return t.push(this.sv1_DefaultAtLenDivAbLen),t.push(this.sv2_DefaultAjWidthDivAtLen),t.push(this.sv3_DefaultAeWidthDivAtLen),t.push(this.sv4_DefaultAeLenDivAtLen),t}},{key:"genAtPts",value:function(t,e,o,l){var i=o[2],n=[],r=l*o[3],a=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(r,e[t],e[t+1]);r=l*i;var s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,e[t+1],a);return n.push(new SuperMap.Geometry.Point(s.pntLeft.x,s.pntLeft.y)),n.push(e[t+1]),n.push(new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y)),n}},{key:"calc3rdScalePt",value:function(t,e,o,l){var i=l*o[3];return SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(i,e[t],e[t+1])}}]),e}();SuperMap.Plot.AlgoSymbol1018=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1017=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.1),o.scaleValues.push(.2),o.scaleValues.push(0),o.scaleValues.push(.3),o.scaleValues.push(.3)),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1017",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=this.minEditPts){this.scalePoints=[];var e=SuperMap.Plot.PlottingUtil.clonePoints(t);this.isEdit||(this.scaleValues[0]=1.5*this.getSubSymbolScaleValue());var o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(e,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL),l=o.arrowTouLen,i=o.leftBodyPts,n=o.rightBodyPts,r=[];r.push(i[i.length-1]),r.push(n[n.length-1]);var a=[];a.push(this.scaleValues[3]),a.push(this.scaleValues[4]),a.push(this.scaleValues[0]),a.push(this.scaleValues[1]);var s=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(e,r,a,l,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),p=[];p=(p=p.concat(i)).concat(s);for(var u=n.length-1;u>=0;u--)p.push(n[u]);p.push(p[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,p,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1});for(var P=SuperMap.Plot.PlottingUtil.clonePoints(i),c=[],y=n.length-1;y>=0;y--)c.push(n[y]);c=c.concat(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var h=SuperMap.Plot.PlottingUtil.clonePoints(s);h.push(n[n.length-1]),h.splice(0,0,i[i.length-1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0});var S=new SuperMap.Geometry.Point((r[0].x+r[1].x)/2,(r[0].y+r[1].y)/2),f=new SuperMap.Geometry.Point(S.x,S.y);f.isScalePoint=!0,f.tag=0,this.scalePoints.push(f);var g=new SuperMap.Geometry.Point(i[i.length-1].x,i[i.length-1].y);g.isScalePoint=!0,g.tag=1,this.scalePoints.push(g);var M=new SuperMap.Geometry.Point(s[0].x,s[0].y);M.isScalePoint=!0,M.tag=2,this.scalePoints.push(M),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=new SuperMap.Geometry.Point(this.scalePoints[0].x,this.scalePoints[0].y),l=new SuperMap.Geometry.Point(this.scalePoints[1].x,this.scalePoints[1].y),i=new SuperMap.Geometry.Point(this.scalePoints[2].x,this.scalePoints[2].y),n=this.scaleValues[0],r=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);r=SuperMap.Plot.PlottingUtil.clearSamePts(r);var a=SuperMap.Plot.PlottingUtil.polylineDistance(r),s=a*n;if(0==t){var p=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,r[r.length-2],r[r.length-1]),u=p.projectPoint;if(p.isOnline){var P=SuperMap.Plot.PlottingUtil.distance(u,r[r.length-1]);this.scaleValues[0]=P/a}}else if(1==t){var c=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,l,i).projectPoint,y=SuperMap.Plot.PlottingUtil.distance(c,o);this.scaleValues[1]=y/s}else if(2==t){var h=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,r[1],i).projectPoint,S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(h,o,r[1]),f=S.projectPoint,g=SuperMap.Plot.PlottingUtil.distance(f,o);!1===S.isOnline&&(this.scaleValues[4]=g/s)}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1017=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1016=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.1),o.arrowHeadType=t.arrowHeadType?t.arrowHeadType:0,o.arrowBodyType=t.arrowBodyType?t.arrowBodyType:0,o.arrowTailType=t.arrowTailType?t.arrowTailType:0,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1016",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fillStyle:0,lineTypeLimit:!0};this.scaleValues[0]=this.getSubSymbolScaleValue();var o,l=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],i=2*Math.sqrt(l*l/3)/1.4,n=Math.sqrt(l*l/3),r=!1;this.arrowBodyType===SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL?o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,l,this.arrowBodyType,r):this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE||this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID?(r=!0,o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,l,this.arrowBodyType,r)):this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE?o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,l,this.arrowBodyType,r):this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW?(r=!0,o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,i,this.arrowBodyType,r)):this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL?(r=!0,o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,n,this.arrowBodyType,r)):o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,0,this.arrowBodyType,r);var a=[];this.arrowBodyType===SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL?(a.push(t[t.length-1]),a.push(t[t.length-2])):r?(a.push(t[t.length-1]),a.push(o[o.length-1])):(a.push(o[o.length-1]),a.push(o[o.length-2]));var s,p=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(a,l,this.arrowHeadType);if(o.length>1)if(this.arrowBodyType!==SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);else for(var u=0,P=o.length-1;u<P;u+=2){var c=SuperMap.Plot.PlottingUtil.distance(o[u+1],o[u]),y=180*SuperMap.Plot.PlottingUtil.radian(o[u+1],o[u])/Math.PI,h=SuperMap.Plot.PlottingUtil.circlePoint(o[u+1],.3*c,.3*c,y+30),S=SuperMap.Plot.PlottingUtil.circlePoint(o[u+1],.3*c,.3*c,y+330),f=SuperMap.Plot.PlottingUtil.circlePoint(o[u],.3*c,.3*c,y+30),g=SuperMap.Plot.PlottingUtil.circlePoint(o[u],.3*c,.3*c,y+330),M=[];M.push(h,o[u+1],S,g,o[u],f),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,e)}s=this.arrowBodyType===SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER?SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine([o[0],o[1]],l,this.arrowTailType):SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine([t[0],t[1]],l,this.arrowTailType);var d=SuperMap.Plot.SymbolType.POLYLINESYMBOL;this.arrowHeadType!==SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL&&this.arrowHeadType!==SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID&&this.arrowHeadType!==SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE&&this.arrowHeadType!==SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW||(d=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL),p.length>1&&this.addCell(d,p,e),s.length>1&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s)}}}]),e}();SuperMap.Plot.AlgoSymbol1016=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=e.AlgoSymbol1015=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.subSymbolDefaultPixelSize=15,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1015",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1009),e}();SuperMap.Plot.AlgoSymbol1015=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=e.AlgoSymbol1014=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.subSymbolDefaultPixelSize=15,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1014",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1008),e}();SuperMap.Plot.AlgoSymbol1014=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=e.AlgoSymbol1013=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.subSymbolDefaultPixelSize=15,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1013",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1007),e}();SuperMap.Plot.AlgoSymbol1013=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=e.AlgoSymbol1012=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.subSymbolDefaultPixelSize=15,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1012",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1005),e}();SuperMap.Plot.AlgoSymbol1012=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1011=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.sv1_DefaultAtLenDivAbLen=0,o.sv2_DefaultAjWidthDivAtLen=.148,o.sv3_DefaultAeWidthDivAtLen=.4,o.sv4_DefaultAeLenDivAtLen=.312,o.sv_arrowTailWidth=.05,5!==o.scaleValues.length&&(o.scaleValues=[],o.scaleValues.push(o.sv1_DefaultAtLenDivAbLen),o.scaleValues.push(o.sv2_DefaultAjWidthDivAtLen),o.scaleValues.push(o.sv3_DefaultAeWidthDivAtLen),o.scaleValues.push(o.sv4_DefaultAeLenDivAtLen),o.scaleValues.push(o.sv_arrowTailWidth)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1011",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<2)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(0!==e){var o=e*this.scaleValues[4],l=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]);void 0!==t[0].z&&(l.pntLeft.z=t[0].z,l.pntRight.z=t[0].z),this.controlPoints=[],this.controlPoints.push(l.pntLeft),this.controlPoints.push(l.pntRight);for(var i=1;i<t.length;i++)this.controlPoints.push(t[i].clone());for(var n=[],r=0;r<this.scaleValues.length;r++)n.push(this.scaleValues[r]);this.scaleValues=[];for(var a=0;a<n.length-1;a++)this.scaleValues.push(n[a]);SuperMap.Plot.AlgoSymbol1004.prototype.calculateParts.apply(this,arguments);var s=l.pntRight.clone();s.isScalePoint=!0,s.tag=3,this.addScalePoint(s),this.controlPoints=SuperMap.Plot.PlottingUtil.clonePoints(t),this.scaleValues=[];for(var p=0;p<n.length;p++)this.scaleValues.push(n[p])}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(o.length<2)return;this.scaleValues.length<5&&(this.scaleValues=[],this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen),this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen),this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen),this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen),this.scaleValues.push(this.sv_arrowTailWidth));var l,i=o[0].clone(),n=SuperMap.Plot.PlottingUtil.polylineDistance(o),r=n*this.scaleValues[4],a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,o[1],o[0]);(o=[]).push(a.pntLeft),o.push(a.pntRight);for(var s=1;s<this.controlPoints.length;s++)o.push(this.controlPoints[s].clone());var p,u,P,c,y,h=o.length,S=this.operateCtrlPts(o);h=S.length,h--;var f=this.calcScaleValueCount(o.length);if(f++,this.scaleValues.length<f){var g=this.calcDefaultScaleValues(h);p=g[0],u=g[1],P=g[2],c=g[3],y=this.sv_arrowTailWidth}else p=this.scaleValues[0],u=this.scaleValues[1],P=this.scaleValues[2],c=this.scaleValues[3],y=this.scaleValues[4];l=SuperMap.Plot.PlottingUtil.polylineDistance(o);for(var M=[],d=0;d<this.scalePoints.length;d++)M.push(this.scalePoints[d].clone());if(0===M.length)return;M[t]=e.clone();var m,v,b=h-1;m=h<=3?new SuperMap.Geometry.Point((S[0].x+S[1].x)/2,(S[0].y+S[1].y)/2):S[b-1].clone();var A,L,T,x,O,w,U=new SuperMap.Geometry.Point(0,0),R=new SuperMap.Geometry.Point(0,0),_=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,m,S[b],S[b+1],R,_),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,S[h],S[h-1],_,U),v=U.clone();var E=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(S[h],v,M[2]);if(A=E.dLen1,E.dLen2,0===A&&(A=.1),L=A,p=(A/=c+1)/l,1===t)x=(E=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(S[h],v,M[1])).dLen1,P=(O=E.dLen2)/A,c=(x-A)/A;else if(0===t)A=(E=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(S[h],v,M[0])).dLen1,u=(T=E.dLen2)/A,(w=SuperMap.Plot.PlottingUtil.distance(S[h],S[h-1]))<2*A&&(A=.5*w),x=(E=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(S[h],v,M[1])).dLen1,P=(O=E.dLen2)/A,(c=(L-A)/A)<.1&&(P=O/(A=L/(1+(c=.1))),u=T/A),p=A/l;else if(2===t)p=A/l;else{y=SuperMap.Plot.PlottingUtil.distance(e,i)/n}T=A*u,(w=SuperMap.Plot.PlottingUtil.distance(S[h],S[h-1]))<2*A&&(T=(A=.5*w)*u,p=A/l),this.scaleValues[0]=p,this.scaleValues[1]=u,this.scaleValues[2]=P,this.scaleValues[3]=c,this.scaleValues[4]=y}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],o=[],l=[],i=[],n=SuperMap.Plot.PlottingUtil.clonePoints(t),r=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(n,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),a=r.arrowTouLen,s=r.leftBodyPts,p=r.rightBodyPts;if(!SuperMap.Plot.PlottingUtil.equalFuzzy(a,0)){var u=[];u.push(s[s.length-1]),u.push(p[p.length-1]);var P=[];P.push(this.scaleValues[2]),P.push(this.scaleValues[3]),P.push(0),P.push(0);for(var c=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(n,u,P,a,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),y=0;y<s.length;y++)e.push(s[y]),o.push(s[y]);for(var h=0;h<c.length;h++)e.push(c[h]),i.push(c[h]);for(var S=p.length-1;S>=0;S--)e.push(p[S]),l.push(p[S])}return{shapePts:e,leftBodyPts:o,rightBodyPts:l,arrowHeadPts:i}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!SuperMap.Plot.PlottingUtil.equalFuzzy(l,0)){var i=this.operateCtrlPts(t);e=i.length,e--;for(var n=[],r=0;r<this.scaleValues.length;r++)n.push(this.scaleValues[r]);var a=this.genArrowBodyPts(l,i,n),s=a.ArrowBodyCenterPts,p=this.genAtPts(e,s,n,a.ArrowTouLen),u=this.calc3rdScalePt(e,s,n,a.ArrowTouLen);return o.push(new SuperMap.Geometry.Point(a.LeftBodyPtsTemp[e].x,a.LeftBodyPtsTemp[e].y)),o.push(new SuperMap.Geometry.Point(p[2].x,p[2].y)),o.push(new SuperMap.Geometry.Point(u.x,u.y)),o}}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3===e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,l=((e[0].y+e[1].y)/2+e[2].y)/2,i=new SuperMap.Geometry.Point(o,l),n=e[2];e[2]=i,e.push(n)}return e}},{key:"genArrowBodyPts",value:function(t,e,o){var l,i,n,r=[],a=[],s=[],p=[],u=[],P=[],c=e.length;if(c--,o.length<this.calcScaleValueCount(c)){var y=this.calcDefaultScaleValues(c);i=y[0],n=y[1]}else i=o[0],n=o[1];var h=SuperMap.Plot.PlottingUtil.clonePoints(e),S=(h[0].x+h[1].x)/2,f=(h[0].y+h[1].y)/2,g=Math.abs(S-h[2].x),M=Math.abs(f-h[2].y),d=0;if(g>0&&M>0){var m=1/(S-h[2].x),v=-1/(f-h[2].y),b=1*h[2].y/(f-h[2].y)-1*h[2].x/(S-h[2].x);d=Math.abs(m*h[0].x+v*h[0].y+b)/Math.sqrt(m*m+v*v)}else M<=1e-4?d=Math.abs(f-h[1].y):g<=1e-4&&(d=Math.abs(S-h[1].x));var A=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d,h[2],new SuperMap.Geometry.Point(S,f)),L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[1],h[2],h[0]);L?(r[1]=h[1],a[1]=h[0]):(r[1]=h[0],a[1]=h[1]),h[1]=new SuperMap.Geometry.Point((h[0].x+h[1].x)/2,(h[0].y+h[1].y)/2);var T=Math.sqrt((A.pntLeft.x-A.pntRight.x)*(A.pntLeft.x-A.pntRight.x)+(A.pntLeft.y-A.pntRight.y)*(A.pntLeft.y-A.pntRight.y))*this.sv_AtWidthDivAwWidth,x=(l=T*this.sv_AtLenDivAtWidth)*n;SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)||(x=(l=t*i)*n);var O,w,U=SuperMap.Plot.PlottingUtil.distance(h[c],h[c-1]),R=2*l;U<R&&(x=(l=U/2)*n),h.push(h[c].clone()),O=0,w=0;var _=0,E=[];for(_=2;_<=c;_++)O+=SuperMap.Plot.PlottingUtil.distance(h[_],h[_-1]);for(O-=l,_=2;_<=c-1;_++)w+=SuperMap.Plot.PlottingUtil.distance(h[_],h[_-1]),E[_]=x+(T-x)*Math.pow((O-w)/O,this.sv_AtScaleParameter);E[c]=x;var C,I,B=new SuperMap.Geometry.Point(0,0),D=new SuperMap.Geometry.Point(0,0),G=new SuperMap.Geometry.Point(0,0);for(_=2;_<=c-1;_++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,h[_-1],h[_],h[_+1],D,G),_===c-1&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,h[c],h[c-1],G,B),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(E[_],D,h[_]),(L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(G,D,C.pntRight))?(r[_]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y),a[_]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y)):(r[_]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),a[_]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y));for(Math.sqrt(1*(h[c].x-B.x)*(h[c].x-B.x)+1*(h[c].y-B.y)*(h[c].y-B.y))>0&&(h[c]=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(l,h[c],B)),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(x,h[c+1],h[c]),(L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[c],h[c+1],C.pntLeft))?(a[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),r[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y)):(a[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y),r[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y)),_=2;_<c;_++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,r[_-1],r[_],r[_+1],D,G),s[_]=new SuperMap.Geometry.Point(D.x,D.y),p[_]=new SuperMap.Geometry.Point(G.x,G.y),SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,a[_-1],a[_],a[_+1],D,G),u[_]=new SuperMap.Geometry.Point(D.x,D.y),P[_]=new SuperMap.Geometry.Point(G.x,G.y),2===_&&(SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,r[1],r[2],s[2],B),p[_]=new SuperMap.Geometry.Point(B.x,B.y),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,a[1],a[2],u[2],B),P[_]=new SuperMap.Geometry.Point(B.x,B.y)),_===c-1&&(R=(U=SuperMap.Plot.PlottingUtil.distance(r[c],r[c-1]))/3,(I=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(R,h[c],h[c+1])).x+=r[c].x-h[c].x,I.y+=r[c].y-h[c].y,R=(U=T-x)*Math.pow(R/O,this.sv_AtScaleParameter),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(R,r[c],I),s[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),R=(U=SuperMap.Plot.PlottingUtil.distance(a[c],a[c-1]))/3,(I=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(R,h[c],h[c+1])).x+=a[c].x-h[c].x,I.y+=a[c].y-h[c].y,R=(U=T-x)*Math.pow(R/O,this.sv_AtScaleParameter),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(R,a[c],I),u[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y));return{ArrowBodyCenterPts:SuperMap.Plot.PlottingUtil.clonePoints(h),LeftBodyPtsTemp:r,RightBodyPtsTemp:a,LeftBodyPtsLeftCtrlPts:s,LeftBodyPtsRightCtrlPts:p,RightBodyPtsLeftCtrlPts:u,RightBodyPtsRightCtrlPts:P,ArrowTouLen:l}}},{key:"calcScaleValueCount",value:function(){return 4}},{key:"calcDefaultScaleValues",value:function(){var t=[];return t.push(this.sv1_DefaultAtLenDivAbLen),t.push(this.sv2_DefaultAjWidthDivAtLen),t.push(this.sv3_DefaultAeWidthDivAtLen),t.push(this.sv4_DefaultAeLenDivAtLen),t}},{key:"genAtPts",value:function(t,e,o,l){var i=o[2],n=[],r=l*o[3],a=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(r,e[t],e[t+1]);r=l*i;var s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,e[t+1],a);return n.push(new SuperMap.Geometry.Point(s.pntLeft.x,s.pntLeft.y)),n.push(e[t+1]),n.push(new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y)),n}},{key:"calc3rdScalePt",value:function(t,e,o,l){var i=l*o[3];return SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(i,e[t],e[t+1])}}]),e}();SuperMap.Plot.AlgoSymbol1011=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1010=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(0),o.scaleValues.push(.148),o.scaleValues.push(.4),o.scaleValues.push(.312),o.scaleValues.push(.2)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1010",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=this.arrowMeshs(t);if(SuperMap.Plot.PlottingUtil.clearSamePts(e.shapePts),0!==e.shapePts.length){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.shapePts,{surroundLineFlag:!1}),this.scalePoints=[];for(var o=0;o<e.m_scalePoints.length;o++)this.addScalePoint(e.m_scalePoints[o])}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);this.scaleValues.length<4&&(this.scaleValues.push(0),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2));var l,i,n,r,a=o.length;if(a<=2)return;this.scaleValues.length<4?(l=0,i=.148,n=.4,r=.312):(l=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],r=this.scaleValues[3]);var s=SuperMap.Plot.PlottingUtil.polylineDistance(o),p=this.operateCtrlPts(o);a=p.length,a--;for(var u=[],P=0;P<this.scalePoints.length;P++)u.push(this.scalePoints[P].clone());if(0===u.length)return;if(u[t]=e.clone(),3===t){var c=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(o,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),y=new SuperMap.Geometry.Point(.5*(c.leftBodyPts[0].x+c.rightBodyPts[0].x),.5*(c.leftBodyPts[0].y+c.rightBodyPts[0].y)),h=SuperMap.Plot.PlottingUtil.distance(c.leftBodyPts[0],c.rightBodyPts[0]);this.scaleValues[4]=SuperMap.Plot.PlottingUtil.distance(y,e)/h}else{var S,f,g=a-1;S=a<=3?new SuperMap.Geometry.Point((p[0].x+p[1].x)/2,(p[0].y+p[1].y)/2):p[g-1].clone();var M,d,m,v,b,A,L=new SuperMap.Geometry.Point(0,0),T=new SuperMap.Geometry.Point(0,0),x=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,S,p[g],p[g+1],T,x),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,p[a],p[a-1],x,L),f=L.clone();var O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(p[a],f,u[2]);M=O.dLen1,O.dLen2,0===M&&(M=.1),d=M,l=(M/=r+1)/s,1===t?(v=(O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(p[a],f,u[1])).dLen1,n=(b=O.dLen2)/M,r=(v-M)/M):0===t?(M=(O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(p[a],f,u[0])).dLen1,i=(m=O.dLen2)/M,(A=SuperMap.Plot.PlottingUtil.distance(p[a],p[a-1]))<2*M&&(M=.5*A),v=(O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(p[a],f,u[1])).dLen1,n=(b=O.dLen2)/M,(r=(d-M)/M)<.1&&(n=b/(M=d/(1+(r=.1))),i=m/M),l=M/s):2===t&&(l=M/s),m=M*i,(A=SuperMap.Plot.PlottingUtil.distance(p[a],p[a-1]))<2*M&&(m=(M=.5*A)*i,l=M/s),this.scaleValues[0]=l,this.scaleValues[1]=i,this.scaleValues[2]=n,this.scaleValues[3]=r}}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],o=[],l=[],i=[],n=[],r=[],a=SuperMap.Plot.PlottingUtil.clonePoints(t),s=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(a,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),p=s.arrowTouLen,u=s.leftBodyPts,P=s.rightBodyPts;if(a=s.OpectrlPoints,!SuperMap.Plot.PlottingUtil.equalFuzzy(p,0)){var c=[];c.push(u[u.length-1]),c.push(P[P.length-1]);var y=[];y.push(this.scaleValues[2]),y.push(this.scaleValues[3]),y.push(0),y.push(0);var h=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(a,c,y,p,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),S=[];S.push(u[0]),S.push(P[0]);for(var f,g=SuperMap.Plot.ArrowToolkit.generateArrowTailShapePts(t,S,this.scaleValues[4],SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL_POLYBODY),M=0;M<u.length;M++)e.push(u[M]),o.push(u[M]);for(var d=0;d<h.length;d++)e.push(h[d]),i.push(h[d]);for(var m=P.length-1;m>=0;m--)e.push(P[m]),l.push(P[m]);for(var v=1;v<g.length;v++)e.push(g[v]),n.push(g[v]);var b=a.length;b-=2;var A=p*this.scaleValues[3];f=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(A,a[b],a[b+1]);var L=new SuperMap.Geometry.Point(o[o.length-1].x,o[o.length-1].y);L.isScalePoint=!0,L.tag=0,r.push(L),(L=new SuperMap.Geometry.Point(i[0].x,i[0].y)).isScalePoint=!0,L.tag=1,r.push(L),(L=new SuperMap.Geometry.Point(f.x,f.y)).isScalePoint=!0,L.tag=2,r.push(L),(L=new SuperMap.Geometry.Point(g[1].x,g[1].y)).isScalePoint=!0,L.tag=3,r.push(L)}return{shapePts:e,leftBodyPts:o,rightBodyPts:l,arrowHeadPts:i,arrowTailPts:n,m_scalePoints:r}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3===e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,l=((e[0].y+e[1].y)/2+e[2].y)/2,i=new SuperMap.Geometry.Point(o,l),n=e[2];e[2]=i,e.push(n)}return e}}]),e}();SuperMap.Plot.AlgoSymbol1010=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1009=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.1),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1009",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=!1;void 0!==t[0].z&&(e=!0),this.scaleValues[0]=this.getSubSymbolScaleValue();var o=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],l=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,0,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE,!1),i=[];i.push(l[l.length-1]),i.push(l[l.length-2]);var n=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(i,o,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE),r=[];r.push(l[0]),r.push(l[1]);var a=SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine(r,o,SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL);if(e){for(var s=t.length,p=[],u=[],P=[],c=0;c<s;++c)p.push({x:t[c].x,y:t[c].y,z:t[c].z});var y,h={x:t[s-1].x,y:t[s-1].y,z:t[s-1].z},S={x:t[s-2].x,y:t[s-2].y,z:t[s-2].z};y=this.ComputeZValue(l[s-1],h,S),p.push({x:l[s-1].x,y:l[s-1].y,z:y});for(var f=0;f<n.length;++f)y=this.ComputeZValue(n[f],h,S),u.push({x:n[f].x,y:n[f].y,z:y});for(var g={x:t[1].x,y:t[1].y,z:t[1].z},M={x:t[0].x,y:t[0].y,z:t[0].z},d=0;d<a.length;++d)y=this.ComputeZValue(a[d],g,M),P.push({x:a[d].x,y:a[d].y,z:y});this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u),0!==P.length&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P)}else{this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),0!==a.length&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a)}}}}]),e}();SuperMap.Plot.AlgoSymbol1009=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1008=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.1),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1008",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues[0]=this.getSubSymbolScaleValue();var e=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],o=Math.sqrt(e*e/3),l=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,o,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER,!0),i=[];i.push(t[t.length-1]),i.push(l[l.length-1]);var n=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(i,e,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL);l.push(t[t.length-1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l);n.length>0&&this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n,{surroundLineFlag:!1,fillLimit:!0,fill:!0})}}}]),e}();SuperMap.Plot.AlgoSymbol1008=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1007=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.1),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1007",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=!1;void 0!==t[0].z&&(e=!0),this.scaleValues[0]=this.getSubSymbolScaleValue();var o=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],l=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,o,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE,!0),i=[];i.push(t[t.length-1]),i.push(l[l.length-1]);var n=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(i,o,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID);if(e){for(var r=t.length,a=[],s=[],p=0;p<r;++p)a.push({x:l[p].x,y:l[p].y,z:t[p].z});var u={x:t[r-1].x,y:t[r-1].y,z:t[r-1].z},P={x:t[r-2].x,y:t[r-2].y,z:t[r-2].z},c=this.ComputeZValue(l[r-1],u,P);a[r-1].z=c;for(var y=0;y<n.length;++y){var h=this.ComputeZValue(n[y],u,P);s.push({x:n[y].x,y:n[y].y,z:h})}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a);s.length>0&&this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}else{this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l);n.length>0&&this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}}}}]),e}();SuperMap.Plot.AlgoSymbol1007=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1006=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.QIANJI_RATE1=9,o.QIANJI_RATE2=20,o.QIANJI_RATE4=5,o.QIANJI_RATE3=1/3,o.QIANJI_TAIL_RATE1=8,o.QIANJI_TAIL_RATE2=3,o.QIANJI_TAIL_RATE3=.6,o.SV1_Default=.25,o.SV1_MinValue=0,o.SV1_MaxValue=.5,o.DEFAULT_ARROW_TAIL_POS=.4,o.SCALE_VALUE_COUNT=1,o.MIN_LEN_LeftToRightCenter=1e-7,o.SCALE_AT=1/3,o.SCALE_ATAJ=1/7,o.SCALE_ATAE=1/3,o.SCALE_AW=2/3,o.SCALE_ATAJctrlDefSide=.8,o.SCALE_ATAJctrlSameSide=2/3,o.SCALE_MM_LEFT=.25,o.SCALE_MM_RIGHT=.75,o.BEZIER_K1=1/3,o.QIANJI_OPERATE_RATE1=1,0===o.scaleValues.length&&o.scaleValues.push(o.SV1_Default),o.m_dMaxDis=0,o.m_bIsAnimation=!1,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1006",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init(),this.m_scalePoints=[];var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),o=e.length,l=!1;void 0!==e[0].z&&(l=!0);var i=this.arrowMeshs(t);if(l){for(var n=[],r=0;r<o;r++)n.push(e[r]);var a=i.LeftArowLeftBody,s=i.LeftArowHead,p=i.LeftArowRightBody,u=i.RightArowLeftBody,P=i.RightArowHead,c=i.RightArowRightBody;if(0==a.length)return!1;var y=[],h=[],S=[];if(3==n.length)a[0].x==n[0].x&&a[0].y==n[0].y?(h.push(n[0]),h.push(n[2]),S.push(n[1]),S.push(n[2])):(h.push(n[1]),h.push(n[2]),S.push(n[0]),S.push(n[2]));else{if(4!=n.length)return!1;a[0].x==n[0].x&&a[0].y==n[0].y?(h.push(n[0]),S.push(n[1])):(h.push(n[1]),S.push(n[0])),s[1].x==n[2].x&&s[1].y==n[2].y?(h.push(n[2]),S.push(n[3])):(h.push(n[3]),S.push(n[2]))}var f=new SuperMap.Geometry.Point;f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(a[a.length-1],{x:h[0].x,y:h[0].y},{x:h[1].x,y:h[1].y}).projectPoint;var g=this.ComputeZValue(f,h[1],h[0]),M=[];this.ComputeHeight(a,M,h[0].z,g),y=y.concat(M);for(var d=0;d<s.length;d++){f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(s[d],{x:h[0].x,y:h[0].y},{x:h[1].x,y:h[1].y}).projectPoint;var m=this.ComputeZValue(f,h[1],h[0]);y.push({x:s[d].x,y:s[d].y,z:m})}f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(p[0],{x:h[0].x,y:h[0].y},{x:h[1].x,y:h[1].y}).projectPoint,this.ComputeZValue(f,h[1],h[0]),f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(p[p.length-1],{x:h[0].x,y:h[0].y},{x:h[1].x,y:h[1].y}).projectPoint;var v=this.ComputeZValue(f,h[1],h[0]);f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(u[0],{x:S[0].x,y:S[0].y},{x:S[1].x,y:S[1].y}).projectPoint;var b=(this.ComputeZValue(f,S[1],S[0])+v)/2,A=[];this.ComputeHeight(p,A,g,b),y=y.concat(A),f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(u[u.length-1],{x:S[0].x,y:S[0].y},{x:S[1].x,y:S[1].y}).projectPoint;var L=this.ComputeZValue(f,S[1],S[0]),T=[];this.ComputeHeight(u,T,b,L),y=y.concat(T);for(var x=0;x<P.length;x++){f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(P[x],{x:S[0].x,y:S[0].y},{x:S[1].x,y:S[1].y}).projectPoint;var O=this.ComputeZValue(f,S[1],S[0]);y.push({x:P[x].x,y:P[x].y,z:O})}f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(c[0],{x:S[0].x,y:S[0].y},{x:S[1].x,y:S[1].y}).projectPoint;var w=this.ComputeZValue(f,S[1],S[0]),U=[];this.ComputeHeight(c,U,w,S[0].z),(y=y.concat(U)).length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y,{surroundLineFlag:!1}),this.m_scalePoints.length>0&&(this.m_scalePoints[0]={x:this.m_scalePoints[0].x,y:this.m_scalePoints[0].y,z:b});for(var R=0;R<this.m_scalePoints.length;R++)this.m_scalePoints[R].isScalePoint=!0,this.m_scalePoints[R].tag=R,this.addScalePoint(this.m_scalePoints[R]);return!0}var _=i.shapePts;_.length>0&&(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,_,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_,{surroundLineFlag:!1})),this.scalePoints=[];for(var E=0;E<this.m_scalePoints.length;E++)this.m_scalePoints[E].isScalePoint=!0,this.m_scalePoints[E].tag=E,this.addScalePoint(this.m_scalePoints[E])}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o,l=SuperMap.Plot.PlottingUtil.operateControlPoints(this.controlPoints),i=new SuperMap.Geometry.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),n=new SuperMap.Geometry.Point((l[2].x+l[3].x)/2,(l[2].y+l[3].y)/2),r=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,i,n);if(r.isOnline){var a=SuperMap.Plot.PlottingUtil.distance(r.projectPoint,i),s=SuperMap.Plot.PlottingUtil.distance(i,n);(o=SuperMap.Plot.PlottingUtil.equalFuzzy(a,0)?this.SV1_MinValue:a/s)>this.SV1_MaxValue&&(o=this.SV1_MaxValue)}else o=SuperMap.Plot.PlottingUtil.distance(r.projectPoint,i)<SuperMap.Plot.PlottingUtil.distance(r.projectPoint,n)?this.SV1_MinValue:this.SV1_MaxValue;this.scaleValues=[],this.scaleValues.push(o)}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=new SuperMap.Plot.Path2D,o=[];this.m_bIsAnimation&&4==t.length?o=SuperMap.Plot.PlottingUtil.clonePoints(t):(o=SuperMap.Plot.PlottingUtil.operateControlPoints(t),void 0!==t[0].z&&(o[o.length-1].z=o[o.length-2].z));var l=this.scaleValues[0],i=SuperMap.Plot.PlottingUtil.distance(o[0],o[3]),n=SuperMap.Plot.PlottingUtil.distance(o[1],o[2]),r=o[1].clone(),a=.5*(o[0].x+o[3].x),s=.5*(o[0].y+o[3].y),p=new SuperMap.Geometry.Point(a,s),u=.5*(o[1].x+o[2].x),P=.5*(o[1].y+o[2].y),c=new SuperMap.Geometry.Point(u,P),y=SuperMap.Plot.PlottingUtil.distance(p,c);y<this.MIN_LEN_LeftToRightCenter&&(y=this.MIN_LEN_LeftToRightCenter),p.x=a+i*(a-u)/(y*this.QIANJI_RATE1),p.y=s+i*(s-P)/(y*this.QIANJI_RATE1),c.x=u+n*(u-a)/(y*this.QIANJI_RATE1),c.y=P+n*(P-s)/(y*this.QIANJI_RATE1);var h=new SuperMap.Geometry.Point(0,0),S=new SuperMap.Geometry.Point(0,0);h.x=a+i*(a-u)/(y*this.QIANJI_RATE2),h.y=s+i*(s-P)/(y*this.QIANJI_RATE2),S.x=u+n*(u-a)/(y*this.QIANJI_RATE2),S.y=P+n*(P-s)/(y*this.QIANJI_RATE2);var f=new SuperMap.Geometry.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),g=new SuperMap.Geometry.Point((o[2].x+o[3].x)/2,(o[2].y+o[3].y)/2),M=o[3].x-(o[3].x-p.x)*this.SCALE_AT,d=o[3].y-(o[3].y-p.y)*this.SCALE_AT,m=o[2].x-(o[2].x-c.x)*this.SCALE_AT,v=o[2].y-(o[2].y-c.y)*this.SCALE_AT,b=new SuperMap.Geometry.Point(0,0),A=new SuperMap.Geometry.Point(0,0),L=new SuperMap.Geometry.Point(0,0),T=new SuperMap.Geometry.Point(0,0);A.x=M-(d-o[3].y)*this.SCALE_ATAJ,A.y=d+(M-o[3].x)*this.SCALE_ATAJ,b.x=M+(d-o[3].y)*this.SCALE_ATAJ,b.y=d-(M-o[3].x)*this.SCALE_ATAJ,T.x=m-(v-o[2].y)*this.SCALE_ATAJ,T.y=v+(m-o[2].x)*this.SCALE_ATAJ,L.x=m+(v-o[2].y)*this.SCALE_ATAJ,L.y=v-(m-o[2].x)*this.SCALE_ATAJ;var x=new SuperMap.Geometry.Point(0,0),O=new SuperMap.Geometry.Point(0,0),w=new SuperMap.Geometry.Point(0,0),U=new SuperMap.Geometry.Point(0,0);x.x=3*b.x-2*M-(o[3].x-M)*this.SCALE_ATAE,x.y=3*b.y-2*d-(o[3].y-d)*this.SCALE_ATAE,O.x=3*A.x-2*M-(o[3].x-M)*this.SCALE_ATAE,O.y=3*A.y-2*d-(o[3].y-d)*this.SCALE_ATAE,w.x=3*L.x-2*m-(o[2].x-m)*this.SCALE_ATAE,w.y=3*L.y-2*v-(o[2].y-v)*this.SCALE_ATAE,U.x=3*T.x-2*m-(o[2].x-m)*this.SCALE_ATAE,U.y=3*T.y-2*v-(o[2].y-v)*this.SCALE_ATAE,p.x=a+i*(a-u)/(y*this.QIANJI_RATE4),p.y=s+i*(s-P)/(y*this.QIANJI_RATE4),c.x=u+n*(u-a)/(y*this.QIANJI_RATE4),c.y=P+n*(P-s)/(y*this.QIANJI_RATE4);var R=new SuperMap.Geometry.Point(0,0);R.x=o[0].x+(p.x-o[0].x)*this.SCALE_AW,R.y=o[0].y+(p.y-o[0].y)*this.SCALE_AW;var _=new SuperMap.Geometry.Point(0,0);_.x=o[1].x+(c.x-o[1].x)*this.SCALE_AW,_.y=o[1].y+(c.y-o[1].y)*this.SCALE_AW;var E=new SuperMap.Geometry.Point(0,0);E.x=b.x+(p.x-b.x)*this.SCALE_ATAJctrlSameSide,E.y=b.y+(p.y-b.y)*this.SCALE_ATAJctrlSameSide;var C=new SuperMap.Geometry.Point(0,0);C.x=T.x+(c.x-T.x)*this.SCALE_ATAJctrlSameSide,C.y=T.y+(c.y-T.y)*this.SCALE_ATAJctrlSameSide;var I=new SuperMap.Geometry.Point(0,0);I.x=A.x+(h.x-A.x)*this.SCALE_ATAJctrlDefSide,I.y=A.y+(h.y-A.y)*this.SCALE_ATAJctrlDefSide;var B=new SuperMap.Geometry.Point(0,0);B.x=L.x+(S.x-L.x)*this.SCALE_ATAJctrlDefSide,B.y=L.y+(S.y-L.y)*this.SCALE_ATAJctrlDefSide;var D=new SuperMap.Geometry.Point(0,0);D.x=f.x+(g.x-f.x)*l,D.y=f.y+(g.y-f.y)*l,this.m_scalePoints.push(new SuperMap.Geometry.Point(D.x,D.y));var G=new SuperMap.Geometry.Point(0,0),V=new SuperMap.Geometry.Point(0,0);G.x=o[0].x+(o[3].x-o[0].x)*l,G.y=o[0].y+(o[3].y-o[0].y)*l,V.x=o[1].x+(o[2].x-o[1].x)*l,V.y=o[1].y+(o[2].y-o[1].y)*l,G.x=G.x+(D.x-G.x)*this.QIANJI_RATE3,G.y=G.y+(D.y-G.y)*this.QIANJI_RATE3,V.x=V.x+(D.x-V.x)*this.QIANJI_RATE3,V.y=V.y+(D.y-V.y)*this.QIANJI_RATE3;var N=[];N.push(o[0].clone()),N.push(R.clone()),N.push(E.clone()),N.push(b.clone()),e.MoveTo(N[0]),e.CurveTo(N[1],N[2],N[3]);var k,Y,z=[],j=[],F=[],W=[],H=[],q=[];for(e.ToSubPathPolygons(q),k=q[0],Y=q[0].length,e.LineTo(x),e.LineTo(o[3]),e.LineTo(O),(N=[]).push(A),N.push(I),N.push(G),N.push(D),e.LineTo(N[0]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)z.push(q[0][Y]);for(Y=q[0].length,e.CurveTo(N[1],N[2],N[3]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)j.push(q[0][Y]);for(Y=q[0].length,(N=[]).push(V),N.push(B),N.push(L),e.CurveTo(N[0],N[1],N[2]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)F.push(q[0][Y]);for(Y=q[0].length,e.LineTo(w),e.LineTo(o[2]),e.LineTo(U),(N=[]).push(T),N.push(C),N.push(_),N.push(r),e.LineTo(N[0]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)W.push(q[0][Y]);for(Y=q[0].length,e.CurveTo(N[1],N[2],N[3]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)H.push(q[0][Y]);return q=[],e.ToSubPathPolygons(q),{shapePts:q[0],LeftArowLeftBody:k,LeftArowHead:z,LeftArowRightBody:j,RightArowLeftBody:F,RightArowHead:W,RightArowRightBody:H}}}]),e}();SuperMap.Plot.AlgoSymbol1006=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1005=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.1),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1005",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues[0]=this.getSubSymbolScaleValue();var e=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,e,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER,!1),l=[];l.push(o[o.length-1]),l.push(o[o.length-2]);var i=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(l,e,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),i.length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i)}}}]),e}();SuperMap.Plot.AlgoSymbol1005=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1004=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.MAX_ARRAY_SIZE=128,o.sv1_DefaultAtLenDivAbLen=0,o.sv2_DefaultAjWidthDivAtLen=.148,o.sv3_DefaultAeWidthDivAtLen=.4,o.sv4_DefaultAeLenDivAtLen=.312,o.sv_AtScaleParameter=1.5,o.sv_AtLenDivAtWidth=1.35,o.sv_AtWidthDivAwWidth=.5,o.sv_defaultAwLenDivAbLen=.15,0===o.scaleValues.length&&(o.scaleValues.push(o.sv1_DefaultAtLenDivAbLen),o.scaleValues.push(o.sv2_DefaultAjWidthDivAtLen),o.scaleValues.push(o.sv3_DefaultAeWidthDivAtLen),o.scaleValues.push(o.sv4_DefaultAeLenDivAtLen)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1004",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init(),this.applyUse()}},{key:"applyUse",value:function(){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=this.arrowMeshs(t);SuperMap.Plot.PlottingUtil.clearSamePts(e.shapePts);var o=SuperMap.Plot.PlottingUtil.clonePoints(t),l=o.length,i=!1;if(void 0!==o[0].z&&(i=!0),i){for(var n=e.leftBodyPts,r=e.rightBodyPts,a=e.arrowHeadPts,s=e.shapePts,p=[],u=0;u<s.length;u++)p.push({x:s[u].x,y:s[u].y,z:0});if(0==s.length)return!1;var P=this.updateScalePoints(t);if(this.scalePoints=[],3!=P.length)P=[];else for(var c=0;c<P.length;c++)P[c].isScalePoint=!0,P[c].tag=c,this.addScalePoint(P[c]);var y=[],h={x:(o[0].x+o[1].x)/2,y:(o[0].y+o[1].y)/2},S={x:(n[n.length-1].x+r[0].x)/2,y:(n[n.length-1].y+r[0].y)/2},f=this.ComputeZValue(S,o[l-1],o[l-2]),g=0,M=0;n[0].x==o[0].x&&n[0].y==o[0].y?(g=o[0].z,M=o[1].z):(g=o[1].z,M=o[0].z),y.push({x:h.x,y:h.y,z:g});for(var d=2;d<l-1;d++)y.push(o[d]);y.push({x:S.x,y:S.y,z:f});var m=[];this.ComputeBeizerZValueByDis(y,n,m),(y=[]).push({x:S.x,y:S.y,z:f});for(var v=l-2;v>=2;v--)y.push(o[v]);y.push({x:h.x,y:h.y,z:M});var b=[];this.ComputeBeizerZValueByDis(y,r,b);for(var A=[],L=0;L<a.length;L++){var T=this.ComputeZValue(a[L],o[l-1],o[l-2]);A.push({x:a[L].x,y:a[L].y,z:T})}if(m.length>0&&b.length>0&&A.length>0){p=(p=(p=(p=[]).concat(m)).concat(A)).concat(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{surroundLineFlag:!1});for(var x=[],O=0;O<P.length;O++){var w=this.ComputeZValue(P[O],o[l-1],o[l-2]),U=new SuperMap.Geometry.Point(P[O].x,P[O].y);U.z=w,x.push(U)}3!=P.length?this.scalePoints=[]:this.scalePoints=this.scalePoints.concat(x)}}else{if(0==e.shapePts.length)return;if(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.shapePts,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e.shapePts,{surroundLineFlag:!1}),P=this.updateScalePoints(t),this.scalePoints=[],3!=P.length)P=[];else for(var R=0;R<P.length;R++)P[R].isScalePoint=!0,P[R].tag=R,this.addScalePoint(P[R])}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.scaleValues.length<4&&(this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen),this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen),this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen),this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen));var l=o.length;if(l<=2)return;var i,n,r,a,s=this.operateCtrlPts(o);l=s.length,l--;var p=this.calcScaleValueCount(o.length);if(this.scaleValues.length<p){var u=this.calcDefaultScaleValues(l);i=u[0],n=u[1],r=u[2],a=u[3]}else i=this.scaleValues[0],n=this.scaleValues[1],r=this.scaleValues[2],a=this.scaleValues[3];for(var P=SuperMap.Plot.PlottingUtil.polylineDistance(o),c=[],y=0;y<this.scalePoints.length;y++)c.push(this.scalePoints[y].clone());if(0==c.length)return;c[t]=e.clone();var h,S,f=l-1;h=l<=3?new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2):s[f-1].clone();var g,M,d,m,v,b,A=new SuperMap.Geometry.Point(0,0),L=new SuperMap.Geometry.Point(0,0),T=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,h,s[f],s[f+1],L,T),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,s[l],s[l-1],T,A),S=A.clone();var x=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],S,c[2]);g=x.dLen1,x.dLen2,0==g&&(g=.1),M=g,i=(g/=a+1)/P,1==t?(m=(x=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],S,c[1])).dLen1,r=(v=x.dLen2)/g,a=(m-g)/g):0==t?(g=(x=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],S,c[0])).dLen1,n=(d=x.dLen2)/g,(b=SuperMap.Plot.PlottingUtil.distance(s[l],s[l-1]))<2*g&&(g=.5*b),m=(x=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],S,c[1])).dLen1,r=(v=x.dLen2)/g,(a=(M-g)/g)<.1&&(r=v/(g=M/(1+(a=.1))),n=d/g),i=g/P):2==t&&(i=g/P),d=g*n,(b=SuperMap.Plot.PlottingUtil.distance(s[l],s[l-1]))<2*g&&(d=(g=.5*b)*n,i=g/P),this.scaleValues[0]=i,this.scaleValues[1]=n,this.scaleValues[2]=r,this.scaleValues[3]=a}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],o=[],l=[],i=[],n=SuperMap.Plot.PlottingUtil.clonePoints(t),r=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(n,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),a=r.arrowTouLen,s=r.leftBodyPts,p=r.rightBodyPts;if(!SuperMap.Plot.PlottingUtil.equalFuzzy(a,0)){var u=[];u.push(s[s.length-1]),u.push(p[p.length-1]);var P=[];P.push(this.scaleValues[2]),P.push(this.scaleValues[3]),P.push(0),P.push(0);for(var c=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(n,u,P,a,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),y=0;y<s.length;y++)e.push(s[y]),o.push(s[y]);for(var h=0;h<c.length;h++)e.push(c[h]),i.push(c[h]);for(var S=p.length-1;S>=0;S--)e.push(p[S]),l.push(p[S])}return{shapePts:e,leftBodyPts:o,rightBodyPts:l,arrowHeadPts:i}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!SuperMap.Plot.PlottingUtil.equalFuzzy(l,0)){var i=this.operateCtrlPts(t);e=i.length,e--;for(var n=[],r=0;r<this.scaleValues.length;r++)n.push(this.scaleValues[r]);var a=this.genArrowBodyPts(l,i,n),s=a.ArrowBodyCenterPts,p=this.genAtPts(e,s,n,a.ArrowTouLen),u=this.calc3rdScalePt(e,s,n,a.ArrowTouLen);return o.push(new SuperMap.Geometry.Point(a.LeftBodyPtsTemp[e].x,a.LeftBodyPtsTemp[e].y)),o.push(new SuperMap.Geometry.Point(p[2].x,p[2].y)),o.push(new SuperMap.Geometry.Point(u.x,u.y)),o}}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3===e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,l=((e[0].y+e[1].y)/2+e[2].y)/2,i=new SuperMap.Geometry.Point(o,l),n=e[2];e[2]=i,e.push(n)}return e}},{key:"genArrowBodyPts",value:function(t,e,o){var l,i,n,r=[],a=[],s=[],p=[],u=[],P=[],c=e.length;if(c--,o.length<this.calcScaleValueCount(c)){var y=this.calcDefaultScaleValues(c);i=y[0],n=y[1]}else i=o[0],n=o[1];var h=SuperMap.Plot.PlottingUtil.clonePoints(e),S=(h[0].x+h[1].x)/2,f=(h[0].y+h[1].y)/2,g=Math.abs(S-h[2].x),M=Math.abs(f-h[2].y),d=0;if(g>0&&M>0){var m=1/(S-h[2].x),v=-1/(f-h[2].y),b=1*h[2].y/(f-h[2].y)-1*h[2].x/(S-h[2].x);d=Math.abs(m*h[0].x+v*h[0].y+b)/Math.sqrt(m*m+v*v)}else M<=1e-4?d=Math.abs(f-h[1].y):g<=1e-4&&(d=Math.abs(S-h[1].x));var A=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d,h[2],new SuperMap.Geometry.Point(S,f)),L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[1],h[2],h[0]);L?(r[1]=h[1],a[1]=h[0]):(r[1]=h[0],a[1]=h[1]),h[1]=new SuperMap.Geometry.Point((h[0].x+h[1].x)/2,(h[0].y+h[1].y)/2);var T=Math.sqrt((A.pntLeft.x-A.pntRight.x)*(A.pntLeft.x-A.pntRight.x)+(A.pntLeft.y-A.pntRight.y)*(A.pntLeft.y-A.pntRight.y))*this.sv_AtWidthDivAwWidth,x=(l=T*this.sv_AtLenDivAtWidth)*n;SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)||(x=(l=t*i)*n);var O,w,U=SuperMap.Plot.PlottingUtil.distance(h[c],h[c-1]),R=2*l;U<R&&(x=(l=U/2)*n),h.push(h[c].clone()),O=0,w=0;var _=0,E=[];for(_=2;_<=c;_++)O+=SuperMap.Plot.PlottingUtil.distance(h[_],h[_-1]);for(O-=l,_=2;_<=c-1;_++)w+=SuperMap.Plot.PlottingUtil.distance(h[_],h[_-1]),E[_]=x+(T-x)*Math.pow((O-w)/O,this.sv_AtScaleParameter);E[c]=x;var C,I,B=new SuperMap.Geometry.Point(0,0),D=new SuperMap.Geometry.Point(0,0),G=new SuperMap.Geometry.Point(0,0);for(_=2;_<=c-1;_++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,h[_-1],h[_],h[_+1],D,G),_==c-1&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,h[c],h[c-1],G,B),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(E[_],D,h[_]),(L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(G,D,C.pntRight))?(r[_]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y),a[_]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y)):(r[_]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),a[_]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y));for(Math.sqrt(1*(h[c].x-B.x)*(h[c].x-B.x)+1*(h[c].y-B.y)*(h[c].y-B.y))>0&&(h[c]=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(l,h[c],B)),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(x,h[c+1],h[c]),(L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[c],h[c+1],C.pntLeft))?(a[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),r[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y)):(a[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y),r[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y)),_=2;_<c;_++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,r[_-1],r[_],r[_+1],D,G),s[_]=new SuperMap.Geometry.Point(D.x,D.y),p[_]=new SuperMap.Geometry.Point(G.x,G.y),SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,a[_-1],a[_],a[_+1],D,G),u[_]=new SuperMap.Geometry.Point(D.x,D.y),P[_]=new SuperMap.Geometry.Point(G.x,G.y),2==_&&(SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,r[1],r[2],s[2],B),p[_]=new SuperMap.Geometry.Point(B.x,B.y),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,a[1],a[2],u[2],B),P[_]=new SuperMap.Geometry.Point(B.x,B.y)),_==c-1&&(R=(U=SuperMap.Plot.PlottingUtil.distance(r[c],r[c-1]))/3,(I=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(R,h[c],h[c+1])).x+=r[c].x-h[c].x,I.y+=r[c].y-h[c].y,R=(U=T-x)*Math.pow(R/O,this.sv_AtScaleParameter),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(R,r[c],I),s[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),R=(U=SuperMap.Plot.PlottingUtil.distance(a[c],a[c-1]))/3,(I=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(R,h[c],h[c+1])).x+=a[c].x-h[c].x,I.y+=a[c].y-h[c].y,R=(U=T-x)*Math.pow(R/O,this.sv_AtScaleParameter),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(R,a[c],I),u[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y));return{ArrowBodyCenterPts:SuperMap.Plot.PlottingUtil.clonePoints(h),LeftBodyPtsTemp:r,RightBodyPtsTemp:a,LeftBodyPtsLeftCtrlPts:s,LeftBodyPtsRightCtrlPts:p,RightBodyPtsLeftCtrlPts:u,RightBodyPtsRightCtrlPts:P,ArrowTouLen:l}}},{key:"calcScaleValueCount",value:function(){return 4}},{key:"calcDefaultScaleValues",value:function(){var t=[];return t.push(this.sv1_DefaultAtLenDivAbLen),t.push(this.sv2_DefaultAjWidthDivAtLen),t.push(this.sv3_DefaultAeWidthDivAtLen),t.push(this.sv4_DefaultAeLenDivAtLen),t}},{key:"genAtPts",value:function(t,e,o,l){var i=o[2],n=[],r=l*o[3],a=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(r,e[t],e[t+1]);r=l*i;var s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,e[t+1],a);return n.push(new SuperMap.Geometry.Point(s.pntLeft.x,s.pntLeft.y)),n.push(e[t+1]),n.push(new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y)),n}},{key:"calc3rdScalePt",value:function(t,e,o,l){var i=l*o[3];return SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(i,e[t],e[t+1])}}]),e}();SuperMap.Plot.AlgoSymbol1004=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1003=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.3),o.scaleValues.push(.28),o.scaleValues.push(.433333),o.scaleValues.push(.53),o.scaleValues.push(0)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1003",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),e=(t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length;if(e>=this.minEditPts){if(SuperMap.Plot.PlottingUtil.equalFuzzy(this.controlPoints[0].x,this.controlPoints[1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(this.controlPoints[0].y,this.controlPoints[1].y))return;var o=SuperMap.Plot.PlottingUtil.clonePoints(t),l=!1;void 0!==o[0].z&&(l=!0);var i=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(t,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_TRAPEZOID),n=i.arrowTouLen,r=i.leftBodyPts,a=i.rightBodyPts,s=[];s.push(r[r.length-1]),s.push(a[a.length-1]);var p=[];p.push(this.scaleValues[3]),p.push(this.scaleValues[4]),p.push(0),p.push(0);var u=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(t,s,p,n,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),P=[];P=(P=P.concat(r)).concat(u);for(var c=a.length-1;c>=0;c--)P.push(a[c]);if(P.push(r[0]),l){for(var y=[],h={x:o[1].x,y:o[1].y,z:o[1].z},S={x:o[0].x,y:o[0].y,z:o[0].z},f=0;f<P.length;f++){var g=this.ComputeZValue(P[f],h,S);y.push({x:P[f].x,y:P[f].y,z:g})}var M=new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),d=new SuperMap.Geometry.Point(M.x,M.y);d.isScalePoint=!0,d.tag=0,this.addScalePoint(d);var m=new SuperMap.Geometry.Point(r[r.length-1].x,r[r.length-1].y);m.isScalePoint=!0,m.tag=1,this.addScalePoint(m);var v=new SuperMap.Geometry.Point(u[0].x,u[0].y);v.isScalePoint=!0,v.tag=2,this.addScalePoint(v);for(var b={x:o[e-1].x,y:o[e-1].y,z:o[e-1].z},A={x:o[e-2].x,y:o[e-2].y,z:o[e-2].z},L=[],T=0;T<this.scalePoints.length;T++){var x={x:this.scalePoints[T].x,y:this.scalePoints[T].y},O=this.ComputeZValue(x,b,A);L.push({x:x.x,y:x.y,z:O})}this.scalePoints=L,this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,y)}else{var w=new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),U=new SuperMap.Geometry.Point(w.x,w.y);U.isScalePoint=!0,U.tag=0,this.addScalePoint(U);var R=new SuperMap.Geometry.Point(r[r.length-1].x,r[r.length-1].y);R.isScalePoint=!0,R.tag=1,this.addScalePoint(R);var _=new SuperMap.Geometry.Point(u[0].x,u[0].y);_.isScalePoint=!0,_.tag=2,this.addScalePoint(_),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,P)}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=new SuperMap.Geometry.Point(this.scalePoints[0].x,this.scalePoints[0].y),l=new SuperMap.Geometry.Point(this.scalePoints[1].x,this.scalePoints[1].y),i=new SuperMap.Geometry.Point(this.scalePoints[2].x,this.scalePoints[2].y),n=this.scaleValues[0],r=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints),a=r*n;if(0==t){var s=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[0],this.controlPoints[1]),p=s.projectPoint;if(s.isOnline){var u=SuperMap.Plot.PlottingUtil.distance(p,this.controlPoints[1]);this.scaleValues[0]=u/r}}else if(1==t){var P=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,l,i).projectPoint,c=SuperMap.Plot.PlottingUtil.distance(P,o),y=a*this.scaleValues[1];this.scaleValues[1]=c/a,this.scaleValues[2]=(a*this.scaleValues[2]+c-y)/a}else if(2==t){var h=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[1],i).projectPoint,S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(h,o,this.controlPoints[1]),f=S.projectPoint,g=SuperMap.Plot.PlottingUtil.distance(f,o);!0===S.inOnline?this.scaleValues[4]=-g/a:this.scaleValues[4]=g/a}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1003=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1002=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.MIN_GEOPT_COUNT=2,o.MAX_GEOPT_COUNT=1024,o.SV1_defaultATLenDivABLen=0,o.SV2_defaultAYPosScale=.65,o.SV_AJCtrl=.6,o.SV_ArrowWoCtrl=.6,o.SV2_DefaultAJWidDiviedByATLen=.148,o.SV3_DefaultAEWidDividedByATLen=.4,o.SV4_DefaultAELenDividedByATLen=.3,o.SV_ATScaleParameter=1.25,o.SV_ATLenDividedByATWid=1.35,o.SV_ATWidDividedByArrowWeiWid=.5,o.AB_VERTEX_COUNT=4,o.MIN_PTCOUNT_PERARROW=3,o.ATL_DIV_AWW=.7,o.ATL_DIV_ABL=.12,o.ATL_DIV_ABL_1=.18,o.DEFAULT_ARROW_TAIL_POS=.12,o.DUOJIANTOU_TAIL_RATE_1=8,o.DUOJIANTOU_TAIL_RATE_2=3,o.DUOJIANTOU_TAIL_RATE_3=.6,o.AB_CTRLPT_RATE1=0,o.AB_CTRLPT_RATE2=3,o.AB_CTRLPT_RATE3=.5,o.MIN_SCALEVALUE=.1,o.MAX_SCALEVALUE=1,o.m_scalePoints=null,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1002",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init(),this.m_scalePoints=[];var t=SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=this.operateCtrlPts(t),o=e.length,l=Math.floor(o/this.MIN_PTCOUNT_PERARROW),i=this.scaleValues.length;if(i<2*l-1){0==i&&(this.scaleValues.push(this.SV1_defaultATLenDivABLen),i++);for(var n=2*l-1-i,r=0;r<n;r+=2)this.scaleValues.splice(i/2+1,0,this.SV1_defaultATLenDivABLen),this.scaleValues.splice(this.scaleValues.length,0,this.SV2_defaultAYPosScale)}else if(i>2*l-1){for(var a=0;a<l;a++)this.scaleValues.push(this.SV1_defaultATLenDivABLen);for(var s=0;s<l-1;s++)this.scaleValues.push(this.SV2_defaultAYPosScale)}var p=this.arrowMeshs(e);SuperMap.Plot.PlottingUtil.clearSamePts(p.shapePts);var u=!1;if(void 0!==t[0].z&&(u=!0),u){var P=this.operateCtrlPts3D(t),c=p.arrLeftPts2D,y=p.arrRightPts2D,h=p.arrHeadPts2D;if(l!=c.length&&l!=y.length&&l!=h.length)return!1;for(var S=[],f=0;f<l;f++){for(var g=[],M=3*f;M<3*(f+1)&&M<P.length;M++)g.push(P[M]);S.push(g)}for(var d=[],m=[],v=[],b=0;b<l;b++)if(!(2>S[b].length)){for(var A=c[b][c[b].length-1],L=y[b][0],T=new SuperMap.Geometry.Point(.5*(A.x+L.x),.5*(A.y+L.y)),x=S[b][S[b].length-1],O=S[b][S[b].length-2],w=this.ComputeZValue(T,x,O),U={x:T.x,y:T.y,z:w},R=[],_=[],E=0;E<S[b].length-1;E++)if(0==b)_.push(S[b][E]);else{var C={x:S[b][E].x,y:S[b][E].y,z:.5*(S[b][E].z+S[b-1][E].z)};_.push(C)}_.push(U),this.ComputeBeizerZValueByDis(_,c[b],R),d.push(R),R=[];var I=[];I.push(U);for(var B=S[b].length-2;B>=0;B--)if(b==l-1)I.push(S[b][B]);else{var D={x:S[b][B].x,y:S[b][B].y,z:.5*(S[b][B].z+S[b+1][B].z)};I.push(D)}this.ComputeBeizerZValueByDis(I,y[b],R),m.push(R),R=[];for(var G=h[b],V=0;V<G.length;V++){var N=this.ComputeZValue(G[V],x,O);R.push({x:G[V].x,y:G[V].y,z:N})}v.push(R)}for(var k=[],Y=0;Y<l;Y++)k=(k=(k=k.concat(d[Y])).concat(v[Y])).concat(m[Y]);return SuperMap.Plot.PlottingUtil.clearSamePts(k),p.shapePts.length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,k,{surroundLineFlag:!1}),this.scalePoints=this.scalePoints.concat(this.m_scalePoints),!0}p.shapePts.length>0&&(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,p.shapePts,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p.shapePts,{surroundLineFlag:!1})),this.scalePoints=[];for(var z=0;z<this.m_scalePoints.length;z++)this.m_scalePoints[z].isScalePoint=!0,this.m_scalePoints[z].tag=z,this.addScalePoint(this.m_scalePoints[z])}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=this.operateCtrlPts(this.controlPoints),l=o.length,i=Math.floor(l/this.MIN_PTCOUNT_PERARROW),n=0;if(t<i){var r=[],a=t*this.MIN_PTCOUNT_PERARROW;r[0]=o[a],r[1]=o[a+1],r[2]=o[a+2];var s=SuperMap.Plot.PlottingUtil.polylineDistance(r),p=new SuperMap.Geometry.Point(0,0),u=new SuperMap.Geometry.Point(0,0),P=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,r[0],r[1],r[2],p,u),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,r[2],r[1],u,P),n=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(r[2],P,e).dLen1/(this.SV4_DefaultAELenDividedByATLen+1)/s}else{var c=[],y=[],h=(t-i)*this.MIN_PTCOUNT_PERARROW;c[0]=o[h],c[1]=o[h+1],c[2]=o[h+2];var S=(t-i+1)*this.MIN_PTCOUNT_PERARROW;y[0]=o[S],y[1]=o[S+1],y[2]=o[S+2];var f=new SuperMap.Geometry.Point(0,0),g=new SuperMap.Geometry.Point(0,0),M=new SuperMap.Geometry.Point(0,0);f.x=.5*(c[2].x+y[2].x),g.x=.5*(c[1].x+y[1].x),M.x=.5*(c[0].x+y[0].x),f.y=.5*(c[2].y+y[2].y),g.y=.5*(c[1].y+y[1].y),M.y=.5*(c[0].y+y[0].y);var d=SuperMap.Plot.PlottingUtil.distance(f,g),m=SuperMap.Plot.PlottingUtil.distance(M,g),v=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(f,g,e),b=v.dLen1;n=b<d?b/(d+m):((b=(v=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(g,M,e)).dLen1)+d)/(d+m)}n>this.MAX_SCALEVALUE?n=this.MAX_SCALEVALUE:n<this.MIN_SCALEVALUE&&(n=this.MIN_SCALEVALUE),this.scaleValues[t]=n}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],o=[],l=[],i=new SuperMap.Plot.Path2D,n=t.length,r=Math.floor(n/this.MIN_PTCOUNT_PERARROW),a=this.generateAWWidth(r,t),s=[],p=[],u=0,P=0,c=0,y=[];for(P=0,c=0;P<r;P++,c+=this.MIN_PTCOUNT_PERARROW){y[0]=t[c],y[1]=t[c+1],y[2]=t[c+2],u=this.scaleValues[P];var h=this.generateArrowBodyPts(y,a[P],u);u=h.dATLenDivABLen,s[P]=h.arrowBodyPts,p.push(u)}var S=[],f=0,g=0,M=0,d=[],m=[];for(P=0;P<r-1;P++,g+=this.MIN_PTCOUNT_PERARROW){M=g+this.MIN_PTCOUNT_PERARROW,d[0]=t[g],d[1]=t[g+1],d[2]=t[g+2],m[0]=t[M],m[1]=t[M+1],m[2]=t[M+2],f=this.scaleValues[r+P];var v=this.generateAYPts(d,s[P],m,s[P+1],f);S.push(v.arrowLeftYaoPts),S.push(v.arrowRightYaoPts)}var b=[],A=s[0],L=[],T=0,x=[];i.MoveTo(A[0]),i.CurveTo(A[1],A[2],A[3]),i.CurveTo(A[4],A[5],A[6]),i.ToSubPathPolygons(L),e.push(L[0]),T=L[0].length;for(var O=7;O<10;O++)i.LineTo(A[O]);for(L=[],i.ToSubPathPolygons(L);T<L[0].length;T++)x.push(L[0][T]);for(l.push(x),b.push(A[0]),b.push(t[0]),P=1,c=this.MIN_PTCOUNT_PERARROW;P<r;P++,c+=this.MIN_PTCOUNT_PERARROW){var w=s[P],U=P+P-2,R=S[U];for(i.LineTo(R[0]),i.CurveTo(R[1],R[2],R[3]),L=[],x=[],i.ToSubPathPolygons(L);T<L[0].length;T++)x.push(L[0][T]);o.push(x);var _=S[U+1];for(i.CurveTo(_[1],_[2],_[3]),L=[],x=[],i.ToSubPathPolygons(L);T<L[0].length;T++)x.push(L[0][T]);e.push(x);for(var E=7;E<10;E++)i.LineTo(w[E]);for(L=[],x=[],i.ToSubPathPolygons(L);T<L[0].length;T++)x.push(L[0][T]);l.push(x),b.push(t[c].clone())}var C=s[r-1];for(i.LineTo(C[10]),i.CurveTo(C[11],C[12],C[13]),i.CurveTo(C[14],C[15],C[16]),L=[],x=[],i.ToSubPathPolygons(L);T<L[0].length;T++)x.push(L[0][T]);o.push(x),b.push(C[16]);var I=[];return i.ToSubPathPolygons(I),{shapePts:I[0],arrLeftPts2D:e,arrRightPts2D:o,arrHeadPts2D:l}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),o=e.length,l=Math.floor(o/this.MIN_PTCOUNT_PERARROW),i=o%this.MIN_PTCOUNT_PERARROW,n=new SuperMap.Geometry.Point;if(2==i&&(n.x=.5*(e[o-2].x+e[o-1].x),n.y=.5*(e[o-2].y+e[o-1].y),n.x==e[o-1].x&&n.y==e[o-1].y||(e.push(e[o-1].clone()),e[o-1]=n,o++,l++)),o>3)for(var r=l-1,a=0,s=r;a<r;s--,a++)for(var p=s*this.MIN_PTCOUNT_PERARROW,u=0;u<p;u+=this.MIN_PTCOUNT_PERARROW){if(!SuperMap.Plot.PlottingUtil.isRight(e[u+3],e[u+1],e[u+2])){var P=e[u];e[u]=e[u+3],e[u+3]=P,P=e[u+1],e[u+1]=e[u+4],e[u+4]=P,P=e[u+2],e[u+2]=e[u+5],e[u+5]=P}}return e}},{key:"operateCtrlPts3D",value:function(t){var e=t,o=e.length,l=Math.floor(o/this.MIN_PTCOUNT_PERARROW),i={x:0,y:0,z:0};if(2==o%3&&(i.x=.5*(e[o-2].x+e[o-1].x),i.y=.5*(e[o-2].y+e[o-1].y),i.z=.5*(e[o-2].z+e[o-1].z),i.x==e[o-1].x&&i.y==e[o-1].y&&i.z==e[o-1].z||(e.push(e[o-1]),e[o-1]=i,o++,l++)),o>3)for(var n=l-1,r=0,a=n;r<n;a--,r++)for(var s=3*a,p=0;p<s;p+=3){if(!SuperMap.Plot.PlottingUtil.isRight(e[p+3],e[p+1],e[p+2])){var u=e[p];e[p]=e[p+3],e[p+3]=u,u=e[p+1],e[p+1]=e[p+4],e[p+4]=u,u=e[p+2],e[p+2]=e[p+5],e[p+5]=u}}return e}},{key:"generateAWWidth",value:function(t,e){var o=[];if(t>0)if(1==t)o.push(0);else{var l=SuperMap.Plot.PlottingUtil.distance(e[0],e[this.MIN_PTCOUNT_PERARROW]);o.push(l);for(var i=1,n=this.MIN_PTCOUNT_PERARROW;i<t-1;i++,n+=this.MIN_PTCOUNT_PERARROW){l=.5*(SuperMap.Plot.PlottingUtil.distance(e[n-this.MIN_PTCOUNT_PERARROW],e[n])+SuperMap.Plot.PlottingUtil.distance(e[n],e[n+this.MIN_PTCOUNT_PERARROW])),o.push(l)}l=SuperMap.Plot.PlottingUtil.distance(e[n-this.MIN_PTCOUNT_PERARROW],e[n]),o.push(l)}return o}},{key:"generateArrowBodyPts",value:function(t,e,o){var l=[],i=[],n=[],r=[],a=[],s=[],p=[],u=t.length-1;if(u<2)return{dATLenDivABLen:o=0,arrowBodyPts:l};var P=o,c=this.SV2_DefaultAJWidDiviedByATLen,y=this.SV3_DefaultAEWidDividedByATLen,h=this.SV4_DefaultAELenDividedByATLen,S=SuperMap.Plot.PlottingUtil.clonePoints(t),f=SuperMap.Plot.PlottingUtil.polylineDistance(S),g=0==e?f*this.ATL_DIV_ABL_1:(f+e)*this.ATL_DIV_ABL,M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(g,S[1],S[0]);i[1]=M.pntLeft.clone(),n[1]=M.pntRight.clone();var d=0;d=SuperMap.Plot.PlottingUtil.equalFuzzy(P,0,1e-14)?g*this.ATL_DIV_AWW:f*P;var m=SuperMap.Plot.PlottingUtil.distance(S[1],S[2]);d+d>m&&(d=.5*m);var v=d*c;S.push(S[u].clone());var b,A=0;b=f-d;var L=[],T=0;for(T=2;T<=u;T++)A+=SuperMap.Plot.PlottingUtil.distance(S[T-1],S[T-2]),SuperMap.Plot.PlottingUtil.equalFuzzy(b,0,1e-14)?L[T]=0:SuperMap.Plot.PlottingUtil.equalFuzzy(b-A,0,1e-14)?L[T]=v:L[T]=v+(g-v)*Math.pow((b-A)/b,this.SV_ATScaleParameter);L[u+1]=v;var x=new SuperMap.Geometry.Point(0,0),O=new SuperMap.Geometry.Point(0,0),w=new SuperMap.Geometry.Point(0,0);for(T=2;T<=u;T++){SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,S[T-2],S[T-1],S[T],O,w),u==T&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,S[u],S[u-1],w,x);var U=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L[T],O,S[T-1]);n[T]=U.pntLeft,i[T]=U.pntRight}var R,_,E=x.clone();if(SuperMap.Plot.PlottingUtil.distance(S[u],E)>0){var C=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(d,S[u],x);S[u]=C.clone()}for(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(v,S[u+1],S[u]),i[u+1]=M.pntLeft,n[u+1]=M.pntRight,T=2;T<=u;T++)SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,i[T-1],i[T],i[T+1],O,w),r[T]=O.clone(),a[T]=w.clone(),SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,n[T-1],n[T],n[T+1],O,w),s[T]=O.clone(),p[T]=w.clone();SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,i[1],i[2],r[2],x),a[1]=x.clone(),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,n[1],n[2],s[2],x),p[1]=x.clone();_=SuperMap.Plot.PlottingUtil.distance(i[u+1],i[u])*(1/3),(R=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(_,S[u],S[u+1])).x+=i[u+1].x-S[u].x,R.y+=i[u+1].y-S[u].y,_=(g-v)*Math.pow(_/b,this.SV_ATScaleParameter+.3),M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(_,i[u+1],R),r[u+1]=M.pntLeft.clone(),_=SuperMap.Plot.PlottingUtil.distance(n[u+1],n[u])*(1/3),(R=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(_,S[u],S[u+1])).x+=n[u+1].x-S[u].x,R.y+=n[u+1].y-S[u].y,_=(g-v)*Math.pow(_/b,this.SV_ATScaleParameter+.3),M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(_,n[u+1],R),s[u+1]=M.pntRight.clone();var I=[],B=d*h,D=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(B,S[u],S[u+1]);this.m_scalePoints.push(D.clone()),B=d*y,M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(B,S[u+1],D),I.push(M.pntRight),I.push(S[u+1]),I.push(M.pntLeft);var G=[];for(G.push(i[u+1]),T=u;T>=1;T--)G.push(r[T+1]),G.push(a[T]),G.push(i[T]);var V=[];for(T=1;T<=u;T++)V.push(n[T]),V.push(p[T]),V.push(s[T+1]);V.push(n[u+1]),l.push.apply(l,V),l.push.apply(l,I),l.push.apply(l,G),o=d/f;var N=[];for(T=G.length-1;T>=0;T--)N.push(G[T]);return{dATLenDivABLen:o,arrowBodyPts:l}}},{key:"generateAYPts",value:function(t,e,o,l,i){var n=new SuperMap.Geometry.Point(.5*(t[2].x+o[2].x),.5*(t[2].y+o[2].y)),r=new SuperMap.Geometry.Point(.5*(t[1].x+o[1].x),.5*(t[1].y+o[1].y)),a=new SuperMap.Geometry.Point(.5*(t[0].x+o[0].x),.5*(t[0].y+o[0].y)),s=SuperMap.Plot.PlottingUtil.distance(n,r),p=SuperMap.Plot.PlottingUtil.distance(a,r),u=i*(s+p),P=new SuperMap.Geometry.Point(0,0),c=new SuperMap.Geometry.Point(0,0),y=new SuperMap.Geometry.Point(0,0);if(u>s){u=s+p-u,P=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(u,a,r);var h=SuperMap.Plot.PlottingUtil.distance(t[1],t[0]),S=SuperMap.Plot.PlottingUtil.distance(o[1],o[0]);h=h*u/p,c=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(h,t[0],t[1]),S=S*u/p,y=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(S,o[0],o[1])}else{P=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(u,n,r);var f=SuperMap.Plot.PlottingUtil.distance(t[1],t[2]),g=SuperMap.Plot.PlottingUtil.distance(o[1],o[2]);f=f*u/s,c=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(f,t[2],t[1]),g=g*u/s,y=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(g,o[2],o[1])}this.m_scalePoints.push(P.clone());var M=this.SV_ArrowWoCtrl*SuperMap.Plot.PlottingUtil.distance(P,c),d=this.SV_ArrowWoCtrl*SuperMap.Plot.PlottingUtil.distance(P,y),m=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(M,P,c),v=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(d,P,y),b=e[11].clone(),A=e[10].clone(),L=l[5].clone(),T=l[6].clone(),x=SuperMap.Plot.PlottingUtil.intersectLines(A,b,P,c),O=SuperMap.Plot.PlottingUtil.distance(x.intersectPoint,A),w=SuperMap.Plot.PlottingUtil.distance(A,P);O=O>w?this.SV_AJCtrl*w:this.SV_AJCtrl*O;var U=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(O,A,b);b=U.clone(),e[11]=U.clone(),x=SuperMap.Plot.PlottingUtil.intersectLines(T,L,P,y),O=(O=SuperMap.Plot.PlottingUtil.distance(x.intersectPoint,T))>(w=SuperMap.Plot.PlottingUtil.distance(T,P))?this.SV_AJCtrl*w:this.SV_AJCtrl*O,L=(U=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(O,T,L)).clone(),l[5]=U.clone();var R=[];R.push(A),R.push(b),R.push(m),R.push(P);var _=[];return _.push(P),_.push(v),_.push(L),_.push(T),{arrowLeftYaoPts:R,arrowRightYaoPts:_}}}]),e}();SuperMap.Plot.AlgoSymbol1002=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1001=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.1),o.scaleValues.push(.2),o.scaleValues.push(0),o.scaleValues.push(.3),o.scaleValues.push(.08)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1001",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),e=(t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length;if(e>=this.minEditPts){this.scalePoints=[];var o=SuperMap.Plot.PlottingUtil.clonePoints(t),l=!1;void 0!==o[0].z&&(l=!0);var i=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(t,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL),n=i.arrowTouLen,r=i.leftBodyPts,a=i.rightBodyPts,s=[];s.push(r[r.length-1]),s.push(a[a.length-1]);var p=[];p.push(this.scaleValues[3]),p.push(this.scaleValues[4]),p.push(this.scaleValues[0]),p.push(this.scaleValues[1]);var u=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(t,s,p,n,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),P=[];if(l){for(var c=[],y=[],h=[],S=0;S<e-1;S++)y.push({x:r[S].x,y:r[S].y,z:o[S].z}),h.push({x:a[S].x,y:a[S].y,z:o[S].z});var f={x:o[e-2].x,y:o[e-2].y,z:o[e-2].z},g={x:o[e-1].x,y:o[e-1].y,z:o[e-1].z},M=this.ComputeZValue(r[e-1],g,f);y.push({x:r[e-1].x,y:r[e-1].y,z:M});var d=this.ComputeZValue(a[e-1],g,f);h.push({x:a[e-1].x,y:a[e-1].y,z:d});for(var m=0;m<u.length;m++){var v=this.ComputeZValue(u[m],g,f);c.push({x:u[m].x,y:u[m].y,z:v})}P=(P=P.concat(y)).concat(c);for(var b=h.length-1;b>=0;b--)P.push(h[b]);var A=new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),L=new SuperMap.Geometry.Point(A.x,A.y);L.isScalePoint=!0,L.tag=0,this.addScalePoint(L);var T=new SuperMap.Geometry.Point(r[r.length-1].x,r[r.length-1].y);T.isScalePoint=!0,T.tag=1,this.addScalePoint(T);var x=new SuperMap.Geometry.Point(u[0].x,u[0].y);x.isScalePoint=!0,x.tag=2,this.addScalePoint(x);for(var O=0;O<this.scalePoints.length;O++){var w=new SuperMap.Geometry.Point(this.scalePoints[O].x,this.scalePoints[O].y);this.scalePoints[O].z=this.ComputeZValue(w,g,f)}}else{P=(P=P.concat(r)).concat(u);for(var U=a.length-1;U>=0;U--)P.push(a[U]);var R=new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),_=new SuperMap.Geometry.Point(R.x,R.y);_.isScalePoint=!0,_.tag=0,this.addScalePoint(_);var E=new SuperMap.Geometry.Point(r[r.length-1].x,r[r.length-1].y);E.isScalePoint=!0,E.tag=1,this.addScalePoint(E);var C=new SuperMap.Geometry.Point(u[0].x,u[0].y);C.isScalePoint=!0,C.tag=2,this.addScalePoint(C)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,P,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=new SuperMap.Geometry.Point(this.scalePoints[0].x,this.scalePoints[0].y),l=new SuperMap.Geometry.Point(this.scalePoints[1].x,this.scalePoints[1].y),i=new SuperMap.Geometry.Point(this.scalePoints[2].x,this.scalePoints[2].y),n=this.scaleValues[0],r=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints),a=r*n;if(0==t){var s=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[this.controlPoints.length-2],this.controlPoints[this.controlPoints.length-1]),p=s.projectPoint;if(s.isOnline){var u=SuperMap.Plot.PlottingUtil.distance(p,this.controlPoints[this.controlPoints.length-1]);this.scaleValues[0]=u/r}}else if(1==t){var P=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,l,i).projectPoint,c=SuperMap.Plot.PlottingUtil.distance(P,o);this.scaleValues[1]=c/a}else if(2==t){var y=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[1],i).projectPoint,h=SuperMap.Plot.PlottingUtil.pointProjectToSegment(y,o,this.controlPoints[1]),S=h.projectPoint,f=SuperMap.Plot.PlottingUtil.distance(S,o);!0===h.inOnline?this.scaleValues[4]=-f/a:this.scaleValues[4]=f/a}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1001=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.LinearArrow=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(15),o.scaleValues.push(7.5),o.scaleValues.push(0),o.scaleValues.push(15),o.scaleValues.push(7.5),o.scaleValues.push(0)),o.CLASS_NAME="SuperMap.Plot.LinearArrow",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){if(this.init(),!(null==this.controlPoints||this.controlPoints.length<this.minEditPts)){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scalePoints=[],this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[0],0)&&!SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[1],0)){var e=this.scaleValues[0]*(this.style.weight||this.style.strokeWidth),o=this.scaleValues[1]*(this.style.weight||this.style.strokeWidth),l=this.getLonLatDistanceFromPixel(e),i=this.getLonLatDistanceFromPixel(o),n=SuperMap.Plot.PlottingUtil.findPointInLine(t[0],t[1],l),r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[1],n),a=[];if(a.push(r.pntLeft),a.push(t[0]),a.push(r.pntRight),this.addScalePoint(r.pntLeft,0),SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[2],0))this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,a,{fillLimit:!0,fill:!0}),this.addScalePoint(n,1);else if(SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[2],1))this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a),this.addScalePoint(t[0],1);else{var s=l*this.scaleValues[2],p=SuperMap.Plot.PlottingUtil.findPointInLine(n,t[0],s);a.push(p),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,a,{fillLimit:!0,fill:!0}),this.addScalePoint(p,1)}}if(!SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[3],0)&&!SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[4],0)){var u=this.scaleValues[3]*(this.style.weight||this.style.strokeWidth),P=this.scaleValues[4]*(this.style.weight||this.style.strokeWidth),c=this.getLonLatDistanceFromPixel(u),y=this.getLonLatDistanceFromPixel(P),h=SuperMap.Plot.PlottingUtil.findPointInLine(t[1],t[0],c),S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(y,t[0],h),f=[];if(f.push(S.pntLeft),f.push(t[1]),f.push(S.pntRight),this.addScalePoint(S.pntLeft,2),SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[5],0))this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,f,{fillLimit:!0,fill:!0}),this.addScalePoint(h,3);else if(SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[5],1))this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addScalePoint(t[1],3);else{var g=c*this.scaleValues[5],M=SuperMap.Plot.PlottingUtil.findPointInLine(h,t[1],g);f.push(M),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,f,{fillLimit:!0,fill:!0}),this.addScalePoint(M,3)}}this.finish()}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){var l=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,o[0],o[1]);if(l.isOnline){var i=this.scaleValues[0]*(this.style.weight||this.style.strokeWidth),n=this.getLonLatDistanceFromPixel(i),r=n*this.scaleValues[2],a=SuperMap.Plot.PlottingUtil.findPointInLine(o[0],o[1],n),s=SuperMap.Plot.PlottingUtil.findPointInLine(a,o[0],r);n=SuperMap.Plot.PlottingUtil.distance(o[0],l.projectPoint),i=this.getPixelDistanceFromLonLat(n),this.scaleValues[0]=i/(this.style.weight||this.style.strokeWidth);var p=SuperMap.Plot.PlottingUtil.distance(e,l.projectPoint),u=this.getPixelDistanceFromLonLat(p);this.scaleValues[1]=u/(this.style.weight||this.style.strokeWidth),r=SuperMap.Plot.PlottingUtil.distance(s,l.projectPoint),this.scaleValues[2]=r/n}}else if(1===t){var P=this.scaleValues[0]*(this.style.weight||this.style.strokeWidth),c=this.getLonLatDistanceFromPixel(P),y=SuperMap.Plot.PlottingUtil.findPointInLine(o[0],o[1],c),h=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,y,o[0]);if(h.isOnline){var S=SuperMap.Plot.PlottingUtil.distance(y,h.projectPoint);this.scaleValues[2]=S/c,this.scaleValues[2]<0?this.scaleValues[2]=0:this.scaleValues[2]>1&&(this.scaleValues[2]=1)}}else if(2===t){var f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,o[0],o[1]);if(f.isOnline){var g=this.scaleValues[3]*(this.style.weight||this.style.strokeWidth),M=this.getLonLatDistanceFromPixel(g),d=M*this.scaleValues[5],m=SuperMap.Plot.PlottingUtil.findPointInLine(o[1],o[0],M),v=SuperMap.Plot.PlottingUtil.findPointInLine(m,o[1],d);M=SuperMap.Plot.PlottingUtil.distance(o[1],f.projectPoint),g=this.getPixelDistanceFromLonLat(M),this.scaleValues[3]=g/(this.style.weight||this.style.strokeWidth);var b=SuperMap.Plot.PlottingUtil.distance(e,f.projectPoint),A=this.getPixelDistanceFromLonLat(b);this.scaleValues[4]=A/(this.style.weight||this.style.strokeWidth),d=SuperMap.Plot.PlottingUtil.distance(v,f.projectPoint),this.scaleValues[5]=d/M}}else if(3===t){var L=this.scaleValues[3]*(this.style.weight||this.style.strokeWidth),T=this.getLonLatDistanceFromPixel(L),x=SuperMap.Plot.PlottingUtil.findPointInLine(o[1],o[0],T),O=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,x,o[1]);if(O.isOnline){var w=SuperMap.Plot.PlottingUtil.distance(x,O.projectPoint);this.scaleValues[5]=w/T,this.scaleValues[5]<0?this.scaleValues[5]=0:this.scaleValues[5]>1&&(this.scaleValues[5]=1)}}}this.calculateParts()}}]),e}();SuperMap.Plot.LinearArrow=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.Wire=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.05),o.CLASS_NAME="SuperMap.Plot.Wire",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[0]=2*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var o=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);for(var l=o*this.scaleValues[0],i=o*this.scaleValues[0]/2,n=SuperMap.Plot.PlottingUtil.clonePoints(e),r=parseInt((o-i)/l),a=0;a<=r&&!(i+l*a>o);a++){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(n,i+l*a);if(-1!==s.index){var p=new SuperMap.Geometry.Point(s.pt.x,s.pt.y),u=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(l/2,e[s.index],p);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u.pntLeft,u.pntRight])}}this.finish()}}}]),e}();SuperMap.Plot.Wire=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}(),i=function t(e,o,l){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,o,l)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(l):void 0};var n=e.PolygonRegion=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return void 0===o.scaleValues[0]&&(o.scaleValues[0]=0),void 0===o.scaleValues[1]&&(o.scaleValues[1]=0),o.CLASS_NAME="SuperMap.Plot.PolygonRegion",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"destroy",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(null!=(t=SuperMap.Plot.PlottingUtil.clearSamePts(t))&&t.length>=this.minEditPts){if(this.addCell(32,t,{surroundLineFlag:!1}),this.textContent&&null!=this.textContent&&this.textContent.length>0){var e=[];this.scaleValues[1]>t.length&&(this.scaleValues[1]=0);var o={labelRotation:0,surroundLineFlag:!1,labelAlign:"lt"};if(0===this.scaleValues[1])e=[SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t)];else{var l=null,i=null;this.scaleValues[1]===t.length?(l=t[t.length-1],i=t[0]):(l=t[this.scaleValues[1]-1],i=t[this.scaleValues[1]]),o.labelRotation=-SuperMap.Plot.PlottingUtil.radian(l,i)/Math.PI*180;var n=this.scaleValues[0]*SuperMap.Plot.PlottingUtil.distance(l,i);e=[SuperMap.Plot.PlottingUtil.findPoint(l,i,n,0)]}this.addCell(34,e,o,this.textContent);var r=new SuperMap.Geometry.Point(e[0].x,e[0].y);r.isScalePoint=!0,r.tag=0,this.scalePoints=[],this.addScalePoint(r)}}else this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine()}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){for(var o=0,l=SuperMap.Plot.PlottingUtil.distance(e,this.controlPoints[0]),i=1;i<this.controlPoints.length;i++){var n=SuperMap.Plot.PlottingUtil.distance(e,this.controlPoints[i]);n<l&&(l=n,o=i)}var r=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);(r=SuperMap.Plot.PlottingUtil.clearSamePts(r)).push(r[0].clone());var a=SuperMap.Plot.PlottingUtil.computePointToLineMinDis(e,r);if(-1===a.minDis)this.scaleValues[1]=o+1,this.offsetX=0,this.offsetY=0;else{var s=SuperMap.Plot.PlottingUtil.projectPoint(e,r[a.index],r[a.index+1]),p=SuperMap.Plot.PlottingUtil.distance(e,s),u=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(this.controlPoints),P=SuperMap.Plot.PlottingUtil.distance(e,u);if(P<p&&P<l)this.scaleValues[1]=0,this.scaleValues[0]=0;else if(l<p&&l<P)this.scaleValues[1]=o+1,this.scaleValues[0]=0;else if(p<l&&p<P){this.scaleValues[1]=a.index+1;var c=null,y=null;this.scaleValues[1]===this.controlPoints.length?(c=this.controlPoints[this.controlPoints.length-1],y=this.controlPoints[0]):(c=this.controlPoints[this.scaleValues[1]-1],y=this.controlPoints[this.scaleValues[1]]);var h=SuperMap.Plot.PlottingUtil.distance(s,c),S=SuperMap.Plot.PlottingUtil.distance(c,y);this.scaleValues[0]=h/S}}}this.calculateParts()}},{key:"parseSymbolData",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"parseSymbolData",this).call(this),this.symbolData&&(this.scaleValues[1]=this.symbolData.annotationPosition)}},{key:"setSymbolData",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setSymbolData",this).call(this),this.symbolData&&(this.symbolData.annotationPosition=this.scaleValues[1])}}]),e}();SuperMap.Plot.PolygonRegion=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.LineRelation=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.subSectionCount=t.subSectionCount?t.subSectionCount:10,o.CLASS_NAME="SuperMap.Plot.LineRelation",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"destroy",value:function(){this.subSectionCount=null,function t(e,o,l){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,o,l)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(l):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();for(var t=0;t<this.controlPoints.length;t++)this.controlPoints[t].tag=t;var e=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);null!==e&&e.length>=this.minEditPts&&this.computeLine(e)}},{key:"computeLine",value:function(t){this.components=[];var e=t[0],o=t[t.length-1];this.subSectionCount<=1&&(this.subSectionCount=10);var l=SuperMap.Plot.PlottingUtil.distance(e,o)/(2*this.subSectionCount-1);if(this.lineRelationType===SuperMap.Plot.LineRelationType.SOLID)this.addCell(24,t,{surroundLineFlag:!1});else if(this.lineRelationType===SuperMap.Plot.LineRelationType.DASH)for(var i=0;i<this.subSectionCount;i++){var n=SuperMap.Plot.PlottingUtil.findPoint(e,o,2*i*l,0),r=SuperMap.Plot.PlottingUtil.findPoint(e,o,(2*i+1)*l,0);this.addCell(24,[n,r],{surroundLineFlag:!1})}else if(this.lineRelationType===SuperMap.Plot.LineRelationType.ARROW)for(var a=0;a<this.subSectionCount;a++){var s=SuperMap.Plot.PlottingUtil.findPoint(e,o,2*a*l,0),p=SuperMap.Plot.PlottingUtil.findPoint(e,o,(2*a+1)*l,0),u=SuperMap.Plot.PlottingUtil.findPoint(p,s,l,60),P=SuperMap.Plot.PlottingUtil.findPoint(p,s,l,-60);this.addCell(24,[u,p,P],{surroundLineFlag:!1})}}}]),e}();SuperMap.Plot.LineRelation=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.LineMarking=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.islocationCircle=!!t.islocationCircle&&t.islocationCircle,o.textBoxType=t.textBoxType?t.textBoxType:SuperMap.Plot.TextBoxType.RECTBOX,0===o.scaleValues.length&&(o.scaleValues.push(.126),o.scaleValues.push(0),o.scaleValues.push(0),o.scaleValues.push(4)),o.CLASS_NAME="SuperMap.Plot.LineMarking",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"destroy",value:function(){this.islocationCircle=null,this.textBoxType=null,function t(e,o,l){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,o,l)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(l):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init(),this.controlPoints=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),this.controlPoints=SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints);var t=this.scaleValues[0];if(!(t<0||t>1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,o,l,i;this.scalePoints=[];var n=[];this.controlPoints[0].x<this.controlPoints[1].x?(e=this.controlPoints[0].x,l=this.controlPoints[1].x):(e=this.controlPoints[1].x,l=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(i=this.controlPoints[0].y,o=this.controlPoints[1].y):(i=this.controlPoints[1].y,o=this.controlPoints[0].y),n.push(new SuperMap.Geometry.Point(e,i)),n.push(new SuperMap.Geometry.Point(e,o)),n.push(new SuperMap.Geometry.Point(l,o)),n.push(new SuperMap.Geometry.Point(l,i)),!1===this.isEdit&&(this.scaleValues[1]=e+.1*(l-e),this.scaleValues[2]=i+-.3*(o-i));var r=this.getAction(this.scaleValues[1],this.scaleValues[2],e,o,l,i),a=new SuperMap.Geometry.Point(this.scaleValues[1],this.scaleValues[2]);if(this.textBoxType===SuperMap.Plot.TextBoxType.RECTBOX||this.textBoxType===SuperMap.Plot.TextBoxType.LINEBOX){var s=[];switch(r){case 0:this.addScalePoint(a);break;case 1:this.addScalePoint(a),s.push(new SuperMap.Geometry.Point(e,o-(o-i)*t)),s.push(a);break;case 2:this.addScalePoint(a),s.push(new SuperMap.Geometry.Point(l-(l-e)*t,o)),s.push(a);break;case 3:this.addScalePoint(a),s.push(new SuperMap.Geometry.Point(l,o-(o-i)*t)),s.push(a);break;case 4:this.addScalePoint(a),s.push(new SuperMap.Geometry.Point(l-(l-e)*t,i)),s.push(a)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s)}if(0!==n.length&&this.textBoxType===SuperMap.Plot.TextBoxType.RECTBOX)this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n);else if(0!==n.length&&this.textBoxType===SuperMap.Plot.TextBoxType.LINEBOX){var p=[];switch(r){case 0:break;case 1:p=(p=p.concat(n[0])).concat(n[1]);break;case 2:p=(p=p.concat(n[1])).concat(n[2]);break;case 3:p=(p=p.concat(n[2])).concat(n[3]);break;case 4:p=(p=p.concat(n[3])).concat(n[0])}0!==p.length?this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p):this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,this.controlPoints)}this.islocationCircle&&this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[a,new SuperMap.Geometry.Point(a.x-.05,a.y-.05)]),this.annotationContent(e,o,l,i)}else this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,this.controlPoints);this.finish()}}},{key:"modifyPoint",value:function(t,e){!0===e.isScalePoint&&(this.scaleValues[1]=e.x,this.scaleValues[2]=e.y),this.calculateParts()}},{key:"getAction",value:function(t,e,o,l,i,n){var r=(l-n)/(i-o);return t<o?e>l?Math.abs((e-l)/(t-o))>r?2:1:e<n&&Math.abs((e-n)/(t-o))>r?4:1:t>i?e>l?Math.abs((e-l)/(t-i))>r?2:3:e<n&&Math.abs((e-n)/(t-i))>r?4:3:e>l?2:e<n?4:0}}]),e}();SuperMap.Plot.LineMarking=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.PathText=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.relLineText=t.relLineText?t.relLineText:0,o.showPathLine=!t.showPathLine||t.showPathLine,o.showPathLineArrow=!!t.showPathLineArrow&&t.showPathLineArrow,o.isCurve=!!t.isCurve&&t.isCurve,o.isAvoid=!!t.isAvoid&&t.isAvoid,o.textToLineDistance=t.textToLineDistance?t.textToLineDistance:0,o.CLASS_NAME="SuperMap.Plot.PathText",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){if(this.init(),null!==this.controlPoints&&0!==this.controlPoints.length&&!(this.controlPoints.length<this.minEditPts)){SuperMap.Util.isArray(this.textContent)||(this.textContent=[this.textContent]);var t=[];if(t=this.isCurve?SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(this.controlPoints):SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),this.relLineText===SuperMap.Plot.RelLineText.ONBOTHLINE){this.relLineText=SuperMap.Plot.RelLineText.ONRIGHTLINE;var e=this.getTextPathPts(t,!1);this.computeText(e,this.textContent[0],t),this.relLineText=SuperMap.Plot.RelLineText.ONLEFTLINE;var o=this.showPathLine;this.showPathLine=!1;var l=this.getTextPathPts(t,!0);this.textContent.length>1?this.computeText(l,this.textContent[1],t):this.computeText(l,this.textContent[0],t),this.relLineText=SuperMap.Plot.RelLineText.ONBOTHLINE,this.showPathLine=o}else{var i=[];i=this.relLineText===SuperMap.Plot.RelLineText.ONRIGHTLINE?this.getTextPathPts(t,!1):this.relLineText===SuperMap.Plot.RelLineText.ONLEFTLINE?this.getTextPathPts(t,!0):t,this.computeText(i,this.textContent[0],t)}this.finish()}}},{key:"getTextPathPts",value:function(t,e){t=SuperMap.Plot.PlottingUtil.clearSamePts(t);var o=this.getLonLatDistanceFromPixel(this.textToLineDistance);if(0>=o)return SuperMap.Plot.PlottingUtil.clonePoints(t);var l=SuperMap.Plot.PlottingUtil.paraLine(t,o,e);return SuperMap.Plot.PlottingUtil.clearSamePts(l)}},{key:"computeText",value:function(t,e,o){if(!(t.length<2)){for(var l=e.length,i=t,n=i.length,r=0,a=0;a<i.length-1;a++)r+=SuperMap.Plot.PlottingUtil.distance(i[a],i[a+1]);var s={index:-1,pt:i[0]},p=0,u=0,P=0,c=180/Math.PI,y=this.getTextBounds(this.style,e),h="lm";h=this.relLineText===SuperMap.Plot.RelLineText.ONLINE?"lm":this.relLineText===SuperMap.Plot.RelLineText.ONLEFTLINE?"lb":"lt",(p=(r-y.getWidth())/2)<=0&&(p=0);for(var S=[],f=0;f<l;f++){var g=this.getTextBounds(this.style,e.charAt(f));S.push(new SuperMap.Bounds(0,-y.getHeight(),g.getWidth(),0))}for(var M,d=!1,m=!1,v=0,b=0,A=[];u<=p&&P<n-1;)P++,u+=SuperMap.Plot.PlottingUtil.distance(i[P-1],i[P]);var L=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,p),T=SuperMap.Plot.PlottingUtil.radian(i[P-1],i[P])*c;T>180&&(T-=360),T<-180&&(T+=360),T>90&&T<=180?(v=-180,d=!0,m=!0):T>-180&&T<-90&&(v=180,d=!0,m=!0),!0,0!=v?this.relLineText===SuperMap.Plot.RelLineText.ONLINE||(h=this.relLineText===SuperMap.Plot.RelLineText.ONLEFTLINE?"lt":"lb"):this.relLineText===SuperMap.Plot.RelLineText.ONLINE||(h=this.relLineText===SuperMap.Plot.RelLineText.ONLEFTLINE?"lb":"lt");for(var x=0;x<l&&!(p>r);x++){var O=x;for(m&&(O=l-x-1),b=(M=S[O]).getWidth(),d&&(p+=b);u<=p&&P<n-1;)P++,u+=SuperMap.Plot.PlottingUtil.distance(i[P-1],i[P]);var w=(T=SuperMap.Plot.PlottingUtil.radian(i[P-1],i[P])*c)+v;if((s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,p)).index<0)break;M.add(s.pt.x,s.pt.y);var U=e.charAt(O),R={};R.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,R.textContent=U,R.positionPoints=[s.pt],R.style={surroundLineFlag:!1,labelAlign:h,labelRotation:-w},A.push(R),d||(p+=b)}var _=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,p);if(this.showPathLine){if(this.relLineText===SuperMap.Plot.RelLineText.ONLINE&&this.isAvoid){if(L.index>=0){for(var E=[],C=0;C<=L.index;C++)E.push(o[C]);E.push(L.pt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,E)}if(_.index>=0){var I=[];I.push(_.pt);for(var B=_.index+1;B<o.length;B++)I.push(o[B]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,I)}}else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);this.showPathLineArrow&&this.addArrow(o)}for(var D=0;D<A.length;D++)this.components.push(A[D])}}},{key:"addArrow",value:function(t){if(t.length<2)return t;var e=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints)*(this.isEdit,null==this.getSubSymbolScaleValue()?.05:.5*this.getSubSymbolScaleValue()),o=t[t.length-1];if(t.length>2){for(var l=-1,i=t.length-2;i>=0;i--)if(e<SuperMap.Plot.PlottingUtil.distance(o,t[i])){l=i;break}t.splice(l+1,t.length-l),t.push(o)}var n=t[t.length-2],r=t[t.length-1],a=e;if(void 0===n)return t;if(!(SuperMap.Plot.PlottingUtil.distance(n,r)<e)){var s=SuperMap.Plot.PlottingUtil.radian(n,r)*SuperMap.Plot.PlottingUtil.RTOD,p=SuperMap.Plot.PlottingUtil.circlePoint(r,a,a,s+157.5),u=SuperMap.Plot.PlottingUtil.circlePoint(r,a,a,s+202.5);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[p,t[t.length-1],u],{surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0,fill:!0})}}}]),e}();SuperMap.Plot.PathText=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.CurveEight=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.CLASS_NAME="SuperMap.Plot.CurveEight",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"destroy",value:function(){(function t(e,o,l){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,o,l)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(l):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){if(this.init(),this.controlPoints&&null!==this.controlPoints&&!(this.minEditPts>this.controlPoints.length))if(2===this.controlPoints.length){var t=this.controlPoints[0].clone(),e=this.controlPoints[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(t,e)/2,l=180*SuperMap.Plot.PlottingUtil.radian(t,e)/Math.PI,i=new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2),n=SuperMap.Plot.PlottingUtil.circlePoint(i,o,o,l+90),r=SuperMap.Plot.PlottingUtil.circlePoint(i,3*o,3*o,l+90);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[n,new SuperMap.Geometry.Point(n.x+o,n.y)]),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[r,new SuperMap.Geometry.Point(r.x+o,r.y)])}else{var a=this.controlPoints[0].clone(),s=this.controlPoints[1].clone(),p=this.controlPoints[2].clone(),u=0;u=SuperMap.Plot.PlottingUtil.isRight(p,a,s)?180*SuperMap.Plot.PlottingUtil.radian(s,a)/Math.PI+90:180*SuperMap.Plot.PlottingUtil.radian(a,s)/Math.PI+90;var P=SuperMap.Plot.PlottingUtil.distance(a,s)/2,c=new SuperMap.Geometry.Point((a.x+s.x)/2,(a.y+s.y)/2),y=SuperMap.Plot.PlottingUtil.circlePoint(c,P,P,u),h=SuperMap.Plot.PlottingUtil.plumbLineLen(p,a,s);if(h<=4*P){var S=SuperMap.Plot.PlottingUtil.circlePoint(c,3*P,3*P,u);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[y,new SuperMap.Geometry.Point(y.x+P,y.y)]),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[S,new SuperMap.Geometry.Point(S.x+P,S.y)])}else{for(var f=SuperMap.Plot.PlottingUtil.circlePoint(c,h-P,h-P,u),g=180*Math.acos(P/(h-2*P))/Math.PI,M=u-g,d=u-180+g,m=u-180-g+360,v=[],b=u+g-360;b<=M;b+=4){var A=SuperMap.Plot.PlottingUtil.circlePoint(y,P,P,b);v.push(A)}var L=SuperMap.Plot.PlottingUtil.circlePoint(y,P,P,M);v.push(L);for(var T=[],x=d;x<m;x+=4){var O=SuperMap.Plot.PlottingUtil.circlePoint(f,P,P,x);T.push(O)}var w=SuperMap.Plot.PlottingUtil.circlePoint(f,P,P,m);T.push(w);var U=[];U=U.concat(v);for(var R=T.length-1;R>=0;R--)U.push(T[R]);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,U)}}}}]),e}();SuperMap.Plot.CurveEight=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.Runway=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.2),o.CLASS_NAME="SuperMap.Plot.Runway",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"destroy",value:function(){(function t(e,o,l){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,o,l)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(l):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){if(this.init(),this.controlPoints.length>=this.minEditPts){for(var t=this.controlPoints[0],e=this.controlPoints[1],o=SuperMap.Plot.PlottingUtil.distance(t,e),l=this.scaleValues[0]*o,i=SuperMap.Plot.PlottingUtil.parallel(this.controlPoints,l/2),n=SuperMap.Plot.PlottingUtil.parallel(this.controlPoints,-l/2),r=180*SuperMap.Plot.PlottingUtil.radian(t,e)/Math.PI,a=[],s=r+90;s<=r+270;s+=10){var p=SuperMap.Plot.PlottingUtil.circlePoint(t,l/2,l/2,s);a.push(p)}for(var u=[],P=r-90;P<=r+90;P+=10){var c=SuperMap.Plot.PlottingUtil.circlePoint(e,l/2,l/2,P);u.push(c)}var y=[];(y=(y=(y=(y=y.concat(a)).concat(n)).concat(u)).concat(i)).push(y[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,y);var h=new SuperMap.Geometry.Point(a[0].x,a[0].y);this.addScalePoint(h)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint&&0==t){var o=SuperMap.Plot.PlottingUtil.distance(e,this.controlPoints[0]),l=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]);this.scaleValues[0]=2*o/l}this.calculateParts()}}]),e}();SuperMap.Plot.Runway=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.NodeChain=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(0),o.scaleValues[1]=.1),o.CLASS_NAME="SuperMap.Plot.NodeChain",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"destroy",value:function(){(function t(e,o,l){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,o,l)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(l):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){if(this.init(),this.controlPoints&&null!==this.controlPoints){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t),this.isEdit||(this.scaleValues[1]=.25*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=e*this.scaleValues[0],l=e*this.scaleValues[1];if(0<this.subSymbols.length&&null!==this.subSymbols[0]&&void 0!==this.subSymbols[0])if(this.subSymbols[0].code>0)for(var i=0;i<t.length;i++){var n=new SuperMap.Geometry.Point(t[i].x,t[i].y+o);this.computeSubSymbol(this.subSymbols[0],n,2*l,0)}else this.addCircles(t,o,l);else this.addCircles(t,o,l);var r=new SuperMap.Geometry.Point(t[0].x,t[0].y+o);this.addScalePoint(r);var a=SuperMap.Plot.PlottingUtil.circlePoint(r,l,l,90);this.addScalePoint(a)}}}},{key:"addCircles",value:function(t,e,o){for(var l={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},i=0;i<t.length;i++){var n=new SuperMap.Geometry.Point(t[i].x,t[i].y+e),r=this.getCirclePts(n,o);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,r,l)}}},{key:"getCirclePts",value:function(t,e){for(var o=[],l=0;l<=360;l+=12){var i=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,l);o.push(i)}return o}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;var l=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t)this.scaleValues[0]=(e.y-o[0].y)/l;else if(1===t){var i=SuperMap.Plot.PlottingUtil.distance(e,o[0]);this.scaleValues[1]=i/l}}this.calculateParts()}}]),e}();SuperMap.Plot.NodeChain=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.FreeCurve=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.CLASS_NAME="SuperMap.Plot.FreeCurve",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){if(this.init(),!(null==this.controlPoints||this.controlPoints.length<this.minEditPts)){this.scalePoints=[];var t=[];if(this.controlPoints.length<3)t.push(this.controlPoints[0]),t.push(this.controlPoints[1]);else{if(!this.isEdit){var e=this.getLonLatFromPixel(0,0),o=this.getLonLatFromPixel(100,100),l=Math.abs(e.lon-o.lon),i=this.reSample(this.controlPoints,l/50);i.length<3&&(i=this.controlPoints),this.controlPoints=[],this.controlPoints=this.controlPoints.concat(i)}var n=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,this.controlPoints,this.scaleValues);n.scalePoints=SuperMap.Plot.PlottingUtil.clearSamePts(n.scalePoints),n.scaleValues=SuperMap.Plot.PlottingUtil.clearSamePts(n.scaleValues),this.scaleValues=n.scaleValues;for(var r=0,a=n.scalePoints.length;r<a;r++){var s=n.scalePoints[r];s.isScalePoint=!0,s.tag=r,this.addScalePoint(s)}t=SuperMap.Plot.PlottingUtil.clonePoints(n.beizerPoints)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(2>o.length)return;var l=SuperMap.Plot.PlottingUtil.polylineDistance(o),i=-1;i=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var n=(e.x-o[i].x)/l,r=(e.y-o[i].y)/l;this.scaleValues[2*t]=n,this.scaleValues[2*t+1]=r}this.calculateParts()}},{key:"reSample",value:function(t,e){var o=[];if(null==t||e<0)return o;var l=t.length;if(l>2){var i=new SuperMap.Geometry.Point(0,0),n=0,r=0,a=0,s=2*Math.PI;i=t[0],o.push(i);for(var p=!1,u=!1,P=!1,c=1;c<l;c++)if(r=Math.sqrt((t[c].y-i.y)*(t[c].y-i.y)+(t[c].x-i.x)*(t[c].x-i.x)),SuperMap.Plot.PlottingUtil.equalFuzzy(0,r))p&&(i=t[c-1],c--,o.push(i),a=0,s=2*Math.PI,p=!1,u=!1,P=!1);else{var y=(t[c].x-i.x)/r,h=(t[c].y-i.y)/r;if(n=h>0||SuperMap.Plot.PlottingUtil.equalFuzzy(0,h)?Math.acos(y):2*Math.PI-Math.acos(y),s>2*Math.PI&&n+2*Math.PI<s?(n+=2*Math.PI,a<0&&(a+=2*Math.PI)):a<0&&n-2*Math.PI>a&&(n-=2*Math.PI,s>2*Math.PI&&(s-=2*Math.PI)),n>a&&n<s||SuperMap.Plot.PlottingUtil.equalFuzzy(0,n-a)||SuperMap.Plot.PlottingUtil.equalFuzzy(0,n-s)){var S=Math.atan(e/r);u?a<n-S&&(a=n-S):(u=!0,a=n-S),P?s>n+S&&(s=n+S):(P=!0,s=n+S),p=!0}else i=t[c-1],c--,o.push(i),a=0,s=2*Math.PI,p=!1,u=!1,P=!1}return o.push(t[l-1]),o}return o}},{key:"reSampleByAngle",value:function(t,e){var o=[],l=t.length;if(null==t||l<=0||e<=0)return o;for(var i=t,n=l,r=!1;SuperMap.Plot.PlottingUtil.equalFuzzy(i[0].x,i[n-1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(i[0].y,i[n-1].y);){if((n-=1)<=0)return o;r=!0}var a,s,p=[];for(a=0;a<n;a++)p.push(0);for(p[0]=1,p[n-1]=1,s=0,a=1;a<n-1;a++)if(SuperMap.Plot.PlottingUtil.distance(i[s],i[a])>1e-10&&SuperMap.Plot.PlottingUtil.distance(i[s],i[a+1])>1e-10){var u=180*SuperMap.Plot.PlottingUtil.InnerAngle(i[a],i[s],i[a+1])/Math.PI;u>e&&u<180-e&&(p[a]=1,s++)}var P=0;for(a=0;a<n;a++)1==p[a]&&P++;if(P>0){for(r&&P++,o=[],s=0,a=0;a<n;a++)1==p[a]&&(o[s++]=i[a]);return r&&(o[s]=o[0]),o}return o}}]),e}();SuperMap.Plot.FreeCurve=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.CombinationalCircle=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.angleRange=[],o.defaultRadius=t.defaultRadius?t.defaultRadius:60,o.CLASS_NAME="SuperMap.Plot.CombinationalCircle",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){if(this.init(),this.controlPoints=SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints),!(null==this.controlPoints||this.controlPoints.length<1)){var t=this.getCircleLonLat(this.controlPoints[0],this.defaultRadius);this.angleRange=[];for(var e=0;e<this.controlPoints.length;e++)null==this.scaleValues[e]&&(this.scaleValues[e]=t),this.angleRange.push([{Start:0,End:360}]);for(var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),l=0;l<o.length;l++)if(0!==this.angleRange[l].length&&(0!==this.angleRange[l][0].Start||0!==this.angleRange[l][0].End))for(var i=l+1;i<o.length;i++)if(0!==this.angleRange[i].length&&(0!==this.angleRange[i][0].Start||0!==this.angleRange[i][0].End)){var n=SuperMap.Plot.PlottingUtil.distance(o[l],o[i]);if(n<this.scaleValues[l]+this.scaleValues[i])if(n>Math.abs(this.scaleValues[l]-this.scaleValues[i]))for(var r=0;r<2;r++){var a,s,p;0==r?(p=l,a=SuperMap.Plot.PlottingUtil.radian(o[l],o[i])*SuperMap.Plot.PlottingUtil.RTOD,s=Math.acos((n*n+this.scaleValues[l]*this.scaleValues[l]-this.scaleValues[i]*this.scaleValues[i])/(2*n*this.scaleValues[l]))*SuperMap.Plot.PlottingUtil.RTOD):(p=i,a=SuperMap.Plot.PlottingUtil.radian(o[i],o[l])*SuperMap.Plot.PlottingUtil.RTOD,s=Math.acos((n*n+this.scaleValues[i]*this.scaleValues[i]-this.scaleValues[l]*this.scaleValues[l])/(2*n*this.scaleValues[i]))*SuperMap.Plot.PlottingUtil.RTOD);var u=a-s,P=a+s,c=u<0&&P>0||u>360||P>360;u=this.adjustAngle(u),P=this.adjustAngle(P);for(var y=this.angleRange[p].length-1;y>=0;y--)if(c){if(P>this.angleRange[p][y].End||SuperMap.Plot.PlottingUtil.equalFuzzy(P,this.angleRange[p][y].End)){this.angleRange[p].splice(y,1);continue}if(P>this.angleRange[p][y].Start&&(this.angleRange[p][y].Start=P),u<this.angleRange[p][y].Start||SuperMap.Plot.PlottingUtil.equalFuzzy(u,this.angleRange[p][y].Start)){this.angleRange[p].splice(y,1);continue}u<this.angleRange[p][y].End&&(this.angleRange[p][y].End=u)}else if(u<this.angleRange[p][y].Start&&P>this.angleRange[p][y].End)this.angleRange[p].splice(y,1);else if(u>this.angleRange[p][y].Start&&P<this.angleRange[p][y].End)this.angleRange[p].push({Start:this.angleRange[p][y].Start,End:u}),this.angleRange[p].push({Start:P,End:this.angleRange[p][y].End}),this.angleRange[p].splice(y,1);else{if(u>this.angleRange[p][y].End)continue;if(u>this.angleRange[p][y].Start&&(this.angleRange[p][y].End=u),P<this.angleRange[p][y].Start)continue;P<this.angleRange[p][y].End&&(this.angleRange[p][y].Start=P)}}else{if(this.scaleValues[l]<this.scaleValues[i]){this.angleRange[l][0].Start=0,this.angleRange[l][0].End=0;break}this.angleRange[i][0].Start=0,this.angleRange[i][0].End=0}}for(var h=[],S=0;S<o.length;S++)if(0!==this.angleRange[S].length&&(0!==this.angleRange[S][0].Start||0!==this.angleRange[S][0].End))for(var f=this.angleRange[S].length-1;f>=0;f--){for(var g=this.adjustAngle(this.angleRange[S][f].Start),M=this.adjustAngle(this.angleRange[S][f].End);M<g;)M+=360;if(M-g==360)this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[o[S],new SuperMap.Geometry.Point(o[S].x,o[S].y+this.scaleValues[S])]);else{for(var d=[],m=(M-g)/72,v=g;v<M+m/2;v+=m){var b=o[S].x+this.scaleValues[S]*Math.cos(v*SuperMap.Plot.PlottingUtil.DTOR),A=o[S].y+this.scaleValues[S]*Math.sin(v*SuperMap.Plot.PlottingUtil.DTOR);d.push(new SuperMap.Geometry.Point(b,A))}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d),h.push(d)}}for(var L=[];0!==h.length;){var T=h[0];h.splice(0,1),void 0!==(T=this.generatePolygon(h,T))&&L.push(T)}for(var x=[],O=0;O<L.length;O++)x.push(L[O]);for(var w=x.length-1;w>=0;w--)for(var U=0;U<x[w].length;U++){for(var R in x)if(parseInt(R)!==w){var _=x[R];if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(_,x[w][U])){var E=w,C=parseInt(R);x[C].push(x[C][0]),x[E].push(x[E][0]),x[C]=x[C].concat(x[E]),x.splice(E,1);break}}if(!isNaN(E)&&!isNaN(C))break}for(var I=0;I<x.length;I++){var B={type:SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,positionPoints:x[I],style:{surroundLineFlag:!1,lineWidthLimit:!0,weight:0,strokeWidth:0}};this.components.splice(0,0,B)}for(var D=0;D<o.length;D++){var G=new SuperMap.Geometry.Point(o[D].x+this.scaleValues[D],o[D].y);G.isScalePoint=!0,G.tag=D,this.addScalePoint(G)}}}},{key:"generatePolygon",value:function(t,e){if(0===t.length||SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].x,e[e.length-1].x,1e-7)&&SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].y,e[e.length-1].y,1e-7))return e;for(var o,l=e[e.length-1],i=0;i<t.length;i++)if(SuperMap.Plot.PlottingUtil.equalFuzzy(t[i][0].x,l.x,1e-7)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[i][0].y,l.y,1e-7)){if(e=e.concat(t[i]),t.splice(i,1),void 0!==(o=this.generatePolygon(t,e))&&0!==o.length)return o}else if(SuperMap.Plot.PlottingUtil.equalFuzzy(t[i][t[i].length-1].x,l.x,1e-7)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[i][t[i].length-1].y,l.y,1e-7)){for(var n=t[i].length-1;n>=0;n--)e.push(t[i][n]);if(t.splice(i,1),void 0!==(o=this.generatePolygon(t,e))&&0!==o.length)return o}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>=this.controlPoints.length)return;var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),l=SuperMap.Plot.PlottingUtil.distance(o[t],e);this.scaleValues[t]=l}this.calculateParts()}},{key:"adjustAngle",value:function(t){for(;t>360;)t-=360;for(;t<0;)t+=360;return t}},{key:"getCircleLonLat",value:function(t,e){return null===this.map?2*this.getDefaultSubSymbolSize():this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map?((o=this.map.latLngToLayerPoint(L.latLng(t.y,t.x))).x+=e,this.map.layerPointToLatLng(L.point(o.x,o.y)).lng-t.x):this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map?((o=this.map.getPixelFromLonLat(new SuperMap.LonLat(t.x,t.y))).x+=e,this.map.getLonLatFromPixel(new SuperMap.Pixel(o.x,o.y)).lon-t.x):void 0;var o}}]),e}();SuperMap.Plot.CombinationalCircle=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.ConcentricCircle=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return void 0===o.scaleValues[0]&&(o.scaleValues[0]=0),void 0===o.scaleValues[1]&&(o.scaleValues[1]=360),o.CLASS_NAME="SuperMap.Plot.ConcentricCircle",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!(null==(t=SuperMap.Plot.PlottingUtil.clearSamePts(t))||t.length<2)){for(2==t.length&&t.push(t[1].clone());this.scaleValues[0]>360;)this.scaleValues[0]-=360;for(;this.scaleValues[0]<0;)this.scaleValues[0]+=360;for(;this.scaleValues[1]>360;)this.scaleValues[1]-=360;for(;this.scaleValues[1]<0;)this.scaleValues[1]+=360;for(;this.scaleValues[1]<=this.scaleValues[0];)this.scaleValues[1]+=360;for(var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),o=SuperMap.Plot.PlottingUtil.distance(t[0],t[2]),l=[],i=[],n=Math.PI/180,r=(this.scaleValues[1]-this.scaleValues[0])/72,a=this.scaleValues[0];a<this.scaleValues[1]+r/2;a+=r){var s=t[0].x+e*Math.cos(a*n),p=t[0].y+e*Math.sin(a*n),u=t[0].x+o*Math.cos(a*n),P=t[0].y+o*Math.sin(a*n);l.push(new SuperMap.Geometry.Point(s,p)),i.push(new SuperMap.Geometry.Point(u,P))}for(var c=[],y=0;y<l.length;y++)c.push(l[y]);for(var h=i.length-1;h>=0;h--)c.push(i[h]);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,c,{surroundLineFlag:!1,lineWidthLimit:!0,weight:0,strokeWidth:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i);var S=t[0].x+e/2*Math.cos(this.scaleValues[0]*n),f=t[0].y+e/2*Math.sin(this.scaleValues[0]*n),g=t[0].x+o/2*Math.cos(this.scaleValues[1]*n),M=t[0].y+o/2*Math.sin(this.scaleValues[1]*n),d=new SuperMap.Geometry.Point(S,f);d.isScalePoint=!0,d.tag=0,this.addScalePoint(d);var m=new SuperMap.Geometry.Point(g,M);m.isScalePoint=!0,m.tag=1,this.addScalePoint(m)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){for(var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),l=180*SuperMap.Plot.PlottingUtil.radian(o[0],e)/Math.PI;l>360;)l-=360;for(;l<0;)l+=360;0==t?this.scaleValues[0]=l:1==t&&(this.scaleValues[1]=l)}this.calculateParts()}}]),e}();SuperMap.Plot.ConcentricCircle=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.SymbolTextBox=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.roundBox=!!t.roundBox&&t.roundBox,o.textBoxType=t.textBoxType?t.textBoxType:SuperMap.Plot.TextBoxType.WITHTIPBOX,0===o.scaleValues.length&&(o.scaleValues.push(.126),o.scaleValues.push(0),o.scaleValues.push(0)),o.CLASS_NAME="SuperMap.Plot.SymbolTextBox",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"destroy",value:function(){this.roundBox=null,this.textBoxType=null,function t(e,o,l){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,o,l)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(l):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=this.scaleValues[0];if(!(t<0||t>1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,o,l,i;this.scalePoints=[];var n=[];this.controlPoints[0].x<this.controlPoints[1].x?(e=this.controlPoints[0].x,l=this.controlPoints[1].x):(e=this.controlPoints[1].x,l=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(i=this.controlPoints[0].y,o=this.controlPoints[1].y):(i=this.controlPoints[1].y,o=this.controlPoints[0].y);var r=1,a=2,s=3,p=4;if(this.roundBox){var u=Math.max(e,l),P=Math.min(e,l),c=Math.max(o,i),y=Math.min(o,i),h=.1*Math.min(Math.abs(e-l),Math.abs(o-i)),S=new SuperMap.Geometry.Point(P+h,y+h),f=new SuperMap.Geometry.Point(P+h,c-h),g=new SuperMap.Geometry.Point(u-h,c-h),M=new SuperMap.Geometry.Point(u-h,y+h),d=this.calculateArc(S,h,3*Math.PI/2,Math.PI,-1,180),m=this.calculateArc(f,h,Math.PI,Math.PI/2,-1,180),v=this.calculateArc(g,h,Math.PI/2,0,-1,180),b=this.calculateArc(M,h,2*Math.PI,3*Math.PI/2,-1,180);r=d.length,a=d.length+m.length,s=d.length+m.length+v.length,p=d.length+m.length+v.length+b.length,n=d.concat(m,v,b)}else n.push(new SuperMap.Geometry.Point(e,i)),n.push(new SuperMap.Geometry.Point(e,o)),n.push(new SuperMap.Geometry.Point(l,o)),n.push(new SuperMap.Geometry.Point(l,i));this.isEdit||(this.scaleValues[1]=e+.1*(l-e),this.scaleValues[2]=i+-.3*(o-i));var A=new SuperMap.Geometry.Point(this.scaleValues[1],this.scaleValues[2]),L=this.getAction(this.scaleValues[1],this.scaleValues[2],e,o,l,i);if(this.textBoxType===SuperMap.Plot.TextBoxType.WITHTIPBOX)switch(this.addScalePoint(A,0),L){case 0:break;case 1:this.addScalePoint(new SuperMap.Geometry.Point(e,o-(o-i)*t)),n.splice(r,0,new SuperMap.Geometry.Point(e,o-(o-i)*t)),n.splice(r,0,A),n.splice(r,0,new SuperMap.Geometry.Point(e,i+(o-i)*t));break;case 2:this.addScalePoint(new SuperMap.Geometry.Point(l-(l-e)*t,o)),n.splice(a,0,new SuperMap.Geometry.Point(l-(l-e)*t,o)),n.splice(a,0,A),n.splice(a,0,new SuperMap.Geometry.Point(e+(l-e)*t,o));break;case 3:this.addScalePoint(new SuperMap.Geometry.Point(l,o-(o-i)*t)),n.splice(s,0,new SuperMap.Geometry.Point(l,i+(o-i)*t)),n.splice(s,0,A),n.splice(s,0,new SuperMap.Geometry.Point(l,o-(o-i)*t));break;case 4:this.addScalePoint(new SuperMap.Geometry.Point(l-(l-e)*t,i)),n.splice(p,0,new SuperMap.Geometry.Point(e+(l-e)*t,i)),n.splice(p,0,A),n.splice(p,0,new SuperMap.Geometry.Point(l-(l-e)*t,i))}if(0!==n.length)if(this.textBoxType===SuperMap.Plot.TextBoxType.NONEBOX){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n,{surroundLineFlag:!1,weight:0,lineWidthLimit:!0})}else this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n)}else this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,this.controlPoints);this.annotationContent(e,o,l,i),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint)if(0===t)this.scaleValues[1]=e.x,this.scaleValues[2]=e.y;else if(1===t){var o,l,i,n,r,a,s=this.scalePoints[0];this.controlPoints[0].x<this.controlPoints[1].x?(o=this.controlPoints[0].x,i=this.controlPoints[1].x):(o=this.controlPoints[1].x,i=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(n=this.controlPoints[0].y,l=this.controlPoints[1].y):(n=this.controlPoints[1].y,l=this.controlPoints[0].y),r=this.scaleValues[1],a=this.scaleValues[2];var p=(l-n)/(i-o),u=.25;switch(r<o?a>l?Math.abs((a-l)/(r-o))>p?2:1:a<n&&Math.abs((a-n)/(r-o))>p?4:1:r>i?a>l?Math.abs((a-l)/(r-i))>p?2:3:a<n&&Math.abs((a-n)/(r-i))>p?4:3:a>l?2:a<n?4:0){case 1:case 3:var P=s.y+(e.y-s.y);P>l&&(P=l),P<(l+n)/2&&(P=(l+n)/2),u=1-2*(l-P)/(l-n);break;case 2:case 4:var c=s.x+(e.x-s.x);c>i&&(c=i),c<(o+i)/2&&(c=(o+i)/2),u=1-2*(i-c)/(i-o)}u<0&&(u=0),u>1&&(u=1),this.scaleValues[0]=u}this.calculateParts()}},{key:"calculateArc",value:function(t,e,o,l,i,n){(!i||1!=i&&-1!=i)&&(i=-1),n||(n=360);for(var r=Math.PI/n/2,a=r*i,s=Math.abs(l-o),p=[],u=o,P=0;P<s;P+=r){var c=new SuperMap.Geometry.Point(Math.cos(u)*e+t.x,Math.sin(u)*e+t.y);p.push(c),u=(u=(u+=a)<0?u+2*Math.PI:u)>2*Math.PI?u-2*Math.PI:u}return p}},{key:"getAction",value:function(t,e,o,l,i,n){var r=(l-n)/(i-o);return t<o?e>l?Math.abs((e-l)/(t-o))>r?2:1:e<n&&Math.abs((e-n)/(t-o))>r?4:1:t>i?e>l?Math.abs((e-l)/(t-i))>r?2:3:e<n&&Math.abs((e-n)/(t-i))>r?4:3:e>l?2:e<n?4:0}}]),e}();SuperMap.Plot.SymbolTextBox=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.GeoTooltipBoxM=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(0),o.scaleValues.push(0),o.scaleValues.push(0),o.scaleValues.push(0)),o.CLASS_NAME="SuperMap.Plot.GeoTooltipBoxM",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"destroy",value:function(){(function t(e,o,l){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,o,l)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(l):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destory",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=this.minEditPts){var e,o,l,i;t[0].x<t[1].x?(e=t[0].x,l=t[1].x):(e=t[1].x,l=t[0].x),t[0].y<t[1].y?(i=t[0].y,o=t[1].y):(i=t[1].y,o=t[0].y),this.scalePoints=[];var n=[];n.push(new SuperMap.Geometry.Point(e,i)),n.push(new SuperMap.Geometry.Point(e,o)),n.push(new SuperMap.Geometry.Point(l,o)),n.push(new SuperMap.Geometry.Point(l,i)),this.isEdit||(this.scaleValues[0]=e,this.scaleValues[1]=i-.3*(o-i),this.scaleValues[2]=e+.5*(l-e),this.scaleValues[3]=i-.3*(o-i));for(var r=[],a=[],s=0;s<this.scaleValues.length/2;s++)r.push(this.getAction(this.scaleValues[2*s],this.scaleValues[2*s+1],e,o,l,i)),a.push(new SuperMap.Geometry.Point(this.scaleValues[2*s],this.scaleValues[2*s+1]));for(var p,u,P,c,y=a.length,h=[],S=[],f=[],g=[],M=[],d=0;d<r.length;d++)0===r[d]&&h.push(a[d]),1===r[d]&&S.push(a[d]),2===r[d]&&f.push(a[d]),3===r[d]&&g.push(a[d]),4===r[d]&&M.push(a[d]);var m=r.slice();m.sort();var v=new SuperMap.Geometry.Point(0,0);if(m[0]===m[m.length-1]&&0!==m[0]){var b=[];switch(m[0]){case 0:break;case 1:p=1/(2*S.length+1);for(var A=new SuperMap.Geometry.Point,L=0;L<2*S.length;L++)A=new SuperMap.Geometry.Point(e,i+(o-i)*p*(L+1)),b.unshift(A);break;case 2:u=1/(2*f.length+1);for(var T=new SuperMap.Geometry.Point,x=0;x<2*f.length;x++)T=new SuperMap.Geometry.Point(e+(l-e)*u*(x+1),o),b.unshift(T);break;case 3:P=1/(2*g.length+1);for(var O=new SuperMap.Geometry.Point,w=0;w<2*g.length;w++)O=new SuperMap.Geometry.Point(l,i+(o-i)*P*(w+1)),b.push(O);break;case 4:c=1/(2*M.length+1);for(var U=new SuperMap.Geometry.Point,R=0;R<2*M.length;R++)U=new SuperMap.Geometry.Point(e+(l-e)*c*(R+1),i),b.push(U)}for(var _=0;_<y;_++)for(var E=0;E<y;E++){var C=SuperMap.Plot.PlottingUtil.intersectLineSegs(b[2*_+1],a[_],b[2*E],a[E],v);if(C&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.x,b[2*_+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.y,b[2*_+1].y)&&(C=!1),C){var I=a[E].clone();a[E]=a[_],a[_]=I}}for(var B=0;B<y;B++)n.splice(m[0],0,b[2*B]),n.splice(m[0],0,a[B]),n.splice(m[0],0,b[2*B+1])}else{for(var D,G,V=[],N=[],k=[],Y=[],z=0;z<r.length;z++)switch(r[z]){case 0:break;case 1:p=1/(2*S.length+1);for(var j=0;j<2*S.length;j++){var F=new SuperMap.Geometry.Point(e,i+(o-i)*p*(j+1));V.unshift(F)}for(var W=0;W<S.length;W++)for(var H=1;H<S.length;H++)(D=SuperMap.Plot.PlottingUtil.intersectLineSegs(V[2*W+1],S[W],V[2*H],S[H],v))&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.x,V[2*W+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.y,V[2*W+1].y)&&(D=!1),D&&(G=S[H].clone(),S[H]=S[W],S[W]=G);break;case 2:u=1/(2*f.length+1);for(var q=0;q<2*f.length;q++){var J=new SuperMap.Geometry.Point(e+(l-e)*u*(q+1),o);N.unshift(J)}for(var X=0;X<f.length;X++)for(var Z=1;Z<f.length;Z++)(D=SuperMap.Plot.PlottingUtil.intersectLineSegs(N[2*X+1],f[X],N[2*Z],f[Z],v))&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.x,N[2*X+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.y,N[2*X+1].y)&&(D=!1),D&&(G=f[Z].clone(),f[Z]=f[X],f[X]=G);break;case 3:P=1/(2*g.length+1);for(var Q=0;Q<2*g.length;Q++){var K=new SuperMap.Geometry.Point(l,i+(o-i)*P*(Q+1));k.push(K)}for(var $=0;$<g.length;$++)for(var tt=1;tt<g.length;tt++)(D=SuperMap.Plot.PlottingUtil.intersectLineSegs(k[2*$+1],g[$],k[2*tt],g[tt],v))&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.x,k[2*$+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.y,k[2*$+1].y)&&(D=!1),D&&(G=g[tt].clone(),g[tt]=g[$],g[$]=G);break;case 4:c=1/(2*M.length+1);for(var et=0;et<2*M.length;et++){var ot=new SuperMap.Geometry.Point(e+(l-e)*c*(et+1),i);Y.push(ot)}for(var lt=0;lt<M.length;lt++)for(var it=1;it<M.length;it++)(D=SuperMap.Plot.PlottingUtil.intersectLineSegs(Y[2*lt+1],M[lt],Y[2*it],M[it],v))&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.x,Y[2*lt+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.y,Y[2*lt+1].y)&&(D=!1),D&&(G=M[it].clone(),M[it]=M[lt],M[lt]=G)}for(var nt=0;nt<M.length;nt++)n.splice(4,0,Y[2*nt]),n.splice(4,0,M[nt]),n.splice(4,0,Y[2*nt+1]);for(var rt=0;rt<g.length;rt++)n.splice(3,0,k[2*rt]),n.splice(3,0,g[rt]),n.splice(3,0,k[2*rt+1]);for(var at=0;at<f.length;at++)n.splice(2,0,N[2*at]),n.splice(2,0,f[at]),n.splice(2,0,N[2*at+1]);for(var st=0;st<S.length;st++)n.splice(1,0,V[2*st]),n.splice(1,0,S[st]),n.splice(1,0,V[2*st+1])}for(var pt=0;pt<a.length;pt++)this.addScalePoint(a[pt],pt)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n),this.annotationContent(e,o,l,i),this.finish()}},{key:"modifyPoint",value:function(t,e){!0===e.isScalePoint&&(null==t&&void 0===t||(this.scaleValues[2*t]=e.x,this.scaleValues[2*t+1]=e.y)),this.calculateParts()}},{key:"getAction",value:function(t,e,o,l,i,n){var r=(l-n)/(i-o);return t<o?e>l?Math.abs((e-l)/(t-o))>r?2:1:e<n&&Math.abs((e-n)/(t-o))>r?4:1:t>i?e>l?Math.abs((e-l)/(t-i))>r?2:3:e<n&&Math.abs((e-n)/(t-i))>r?4:3:e>l?2:e<n?4:0}}]),e}();SuperMap.Plot.GeoTooltipBoxM=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.GeoTooltipBox=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.126),o.CLASS_NAME="SuperMap.Plot.GeoTooltipBox",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"destroy",value:function(){(function t(e,o,l){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,o,l)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(l):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=this.scaleValues[0];if(!(t<0||t>1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,o,l,i,n,r;this.controlPoints[2]&&(this.controlPoints[2].isFixedPos=!0),this.controlPoints[0].x<this.controlPoints[1].x?(e=this.controlPoints[0].x,l=this.controlPoints[1].x):(e=this.controlPoints[1].x,l=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(i=this.controlPoints[0].y,o=this.controlPoints[1].y):(i=this.controlPoints[1].y,o=this.controlPoints[0].y),n=this.controlPoints[2].x,r=this.controlPoints[2].y;var a=0,s=(o-i)/(l-e);a=n<e?r>o?Math.abs((r-o)/(n-e))>s?2:1:r<i&&Math.abs((r-i)/(n-e))>s?4:1:n>l?r>o?Math.abs((r-o)/(n-l))>s?2:3:r<i&&Math.abs((r-i)/(n-l))>s?4:3:r>o?2:r<i?4:0,this.scalePoints=[];var p=[];switch(p.push(new SuperMap.Geometry.Point(e,i)),p.push(new SuperMap.Geometry.Point(e,o)),p.push(new SuperMap.Geometry.Point(l,o)),p.push(new SuperMap.Geometry.Point(l,i)),a){case 0:break;case 1:this.addScalePoint(new SuperMap.Geometry.Point(e,o-(o-i)*t)),p.splice(a,0,new SuperMap.Geometry.Point(e,o-(o-i)*t)),p.splice(a,0,this.controlPoints[2].clone()),p.splice(a,0,new SuperMap.Geometry.Point(e,i+(o-i)*t));break;case 2:this.addScalePoint(new SuperMap.Geometry.Point(l-(l-e)*t,o)),p.splice(a,0,new SuperMap.Geometry.Point(l-(l-e)*t,o)),p.splice(a,0,this.controlPoints[2].clone()),p.splice(a,0,new SuperMap.Geometry.Point(e+(l-e)*t,o));break;case 3:this.addScalePoint(new SuperMap.Geometry.Point(l,o-(o-i)*t)),p.splice(a,0,new SuperMap.Geometry.Point(l,i+(o-i)*t)),p.splice(a,0,this.controlPoints[2].clone()),p.splice(a,0,new SuperMap.Geometry.Point(l,o-(o-i)*t));break;case 4:this.addScalePoint(new SuperMap.Geometry.Point(l-(l-e)*t,i)),p.splice(a,0,new SuperMap.Geometry.Point(e+(l-e)*t,i)),p.splice(a,0,this.controlPoints[2].clone()),p.splice(a,0,new SuperMap.Geometry.Point(l-(l-e)*t,i))}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,p),this.annotationContent(e,o,l,i)}this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint&&0==t){var o,l,i,n,r,a,s=this.scalePoints[0];this.controlPoints[0].x<this.controlPoints[1].x?(o=this.controlPoints[0].x,i=this.controlPoints[1].x):(o=this.controlPoints[1].x,i=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(n=this.controlPoints[0].y,l=this.controlPoints[1].y):(n=this.controlPoints[1].y,l=this.controlPoints[0].y),r=this.controlPoints[2].x,a=this.controlPoints[2].y;var p=(l-n)/(i-o),u=.25;switch(r<o?a>l?Math.abs((a-l)/(r-o))>p?2:1:a<n&&Math.abs((a-n)/(r-o))>p?4:1:r>i?a>l?Math.abs((a-l)/(r-i))>p?2:3:a<n&&Math.abs((a-n)/(r-i))>p?4:3:a>l?2:a<n?4:0){case 1:case 3:var P=s.y+(e.y-s.y);P>l&&(P=l),P<(l+n)/2&&(P=(l+n)/2),u=1-2*(l-P)/(l-n);break;case 2:case 4:var c=s.x+(e.x-s.x);c>i&&(c=i),c<(o+i)/2&&(c=(o+i)/2),u=1-2*(i-c)/(i-o)}u<0&&(u=0),u>1&&(u=1),this.scaleValues[0]=u}this.calculateParts()}}]),e}();SuperMap.Plot.GeoTooltipBox=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.Trapezoid=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.CLASS_NAME="SuperMap.Plot.Trapezoid",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=[],o=t[0],l=t[1],i=t[2],n=new SuperMap.Geometry.Point(0,0);this.GetPointsByTrapezoid(1,i,l,o,n),e.push(o),e.push(l),e.push(i),e.push(n);var r=SuperMap.Plot.PlottingUtil.intersectLines(o,l,i,n),a=r.intersectPoint;r.isIntersectLines&&(a.x>o.x&&a.x<l.x||a.y>o.y&&a.y<l.y||a.x<o.x&&a.x>l.x||a.y<o.y&&a.y>l.y)&&(e[0]=n,e[3]=o),4==e.length&&this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e)}}},{key:"GetPointsByTrapezoid",value:function(t,e,o,l,i){var n=e.x,r=e.y,a=o.x,s=o.y,p=l.x,u=l.y,P=0,c=0,y=0,h=0;if(SuperMap.Plot.PlottingUtil.equalFuzzy(Math.abs(r-s),0))P=n+a-p,c=u;else if(SuperMap.Plot.PlottingUtil.equalFuzzy(Math.abs(n-a),0))P=p,c=r+s-u;else{var S=1*(r-s)/(n-a),f=u-S*p;c=S*(P=((s+r)/2+(n+a)/(2*S)-f)/(S+1/S))+f,P=2*P-p,c=2*c-u}var g=Math.sqrt(1*(n-a)*(n-a)+1*(r-s)*(r-s)),M=Math.sqrt(1*(n-P)*(n-P)+1*(r-c)*(r-c));g>0?(y=n+(a-n)*M/g,h=r+(s-r)*M/g):(y=n,h=r);var d=y+(P-y)*t,m=h+(c-h)*t;i.x=d,i.y=m}}]),e}();SuperMap.Plot.Trapezoid=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.Brace=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.1),o.scaleValues.push(.1)),o.CLASS_NAME="SuperMap.Plot.Brace",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],o=t[1],l=SuperMap.Plot.PlottingUtil.distance(e,o);this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(.1));for(var i=this.scaleValues[0],n=this.scaleValues[1],r=new SuperMap.Geometry.Point(l*i,l*i),a=new SuperMap.Geometry.Point(l*(.5-n/2),0),s=new SuperMap.Geometry.Point(.5*l,-l*n),p=new SuperMap.Geometry.Point(l*(.5+n/2),0),u=new SuperMap.Geometry.Point(l*(1-i),l*i),P=[],c=180*Math.PI/180,y=270*Math.PI/180,h=3*Math.PI/180,S=c;S<=y;S+=h){var f=new SuperMap.Geometry.Point(r.x+l*i,r.y);f=SuperMap.Plot.PlottingUtil.rotateAngle(r,S,f),P.push(f)}P.push(a),P.push(s),P.push(p),c=270*Math.PI/180,y=360*Math.PI/180;for(var g=c;g<=y;g+=h){var M=new SuperMap.Geometry.Point(u.x+l*i,u.y);M=SuperMap.Plot.PlottingUtil.rotateAngle(u,g,M),P.push(M)}for(var d=SuperMap.Plot.PlottingUtil.radian(e,o),m=[],v=0;v<P.length;v++){var b=new SuperMap.Geometry.Point(P[v].x+e.x,P[v].y+e.y);b=SuperMap.Plot.PlottingUtil.rotateAngle(e,d,b),m.push(b)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m),this.scalePoints=[];var A=new SuperMap.Geometry.Point(l*i,0),L=new SuperMap.Geometry.Point(A.x+e.x,A.y+e.y);(L=SuperMap.Plot.PlottingUtil.rotateAngle(e,d,L)).isScalePoint=!0,L.tag=0,this.addScalePoint(L);var T=new SuperMap.Geometry.Point(s.x+e.x,s.y+e.y);SuperMap.Plot.PlottingUtil.rotateAngle(e,d,T),T.isScalePoint=!0,T.tag=1,this.addScalePoint(T)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),l=SuperMap.Plot.PlottingUtil.distance(o[0],o[1]);if(0==t){var i=SuperMap.Plot.PlottingUtil.distance(o[0],e)/l;i>0&&i<.4&&(this.scaleValues[0]=i)}else if(1==t){var n=new SuperMap.Geometry.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),r=SuperMap.Plot.PlottingUtil.distance(e,n)/l;0<r&&.2>r&&(this.scaleValues[1]=r)}}this.calculateParts()}}]),e}();SuperMap.Plot.Brace=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.RegularPolygon=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(1),o.CLASS_NAME="SuperMap.Plot.RegularPolygon",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){if(this.init(),!(this.controlPoints.length<this.minEditPts)){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),e=this.controlPoints.length+1,o=2*Math.PI/e;if(!this.isEdit){var l=this.controlPoints[this.controlPoints.length-1],i=new SuperMap.Geometry.Point(this.controlPoints[this.controlPoints.length-1].x,this.controlPoints[this.controlPoints.length-1].y);SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],o,i),this.scaleValues[0]=SuperMap.Plot.PlottingUtil.distance(t[0],this.calculateMidPt(l,i))/SuperMap.Plot.PlottingUtil.distance(t[0],t[t.length-1])}var n=[],r=this.controlPoints[this.controlPoints.length-1].clone();n.push(r.clone()),r=SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],o/2,r);var a=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(this.scaleValues[0],this.controlPoints[0],r);n.push(a);for(var s=1;s<e;s++)r=SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],o/2,r),n.push(r.clone()),r=SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],o/2,r),a=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(this.scaleValues[0],this.controlPoints[0],r),n.push(a);var p=n[1];this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n,{surroundLineFlag:!1,fill:!1}),this.addScalePoint(p),this.finish()}}},{key:"calculateMidPt",value:function(t,e){return new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2)}},{key:"modifyPoint",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[this.controlPoints.length-1]),l=this.scalePoints[0],i=SuperMap.Plot.PlottingUtil.projectPoint(e,this.controlPoints[0],l),n=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],i);this.scaleValues[0]=n/o}this.calculateParts()}}]),e}();SuperMap.Plot.RegularPolygon=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.ArrowLine=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.arrowAngle=t.arrowAngle?t.arrowAngle:45,0===o.scaleValues.length&&(o.scaleValues.push(.3),o.scaleValues.push(0),o.scaleValues.push(0)),o.CLASS_NAME="SuperMap.Plot.ArrowLine",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){if(this.init(),!(null==this.controlPoints||this.controlPoints.length<this.minEditPts)){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);t=SuperMap.Plot.PlottingUtil.clearSamePts(t);var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var o=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue(o));var l,i=this.scaleValues[0]*o,n=this.arrowAngle*Math.PI/180/2,r=(l=e.length>2?SuperMap.Plot.PlottingUtil.radian(e[e.length-1],e[e.length-2]):SuperMap.Plot.PlottingUtil.radian(e[1],e[0]))-n,a=e[e.length-1].x+i*Math.cos(r),s=e[e.length-1].y+i*Math.sin(r),p=new SuperMap.Geometry.Point(a,s),u=l+n,P=e[e.length-1].x+i*Math.cos(u),c=e[e.length-1].y+i*Math.sin(u),y=new SuperMap.Geometry.Point(P,c),h=[];h.push(p),h.push(e[e.length-1].clone()),h.push(y);var S={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0},f=SuperMap.Plot.PlottingUtil.radian(e[0],e[1]);r=f-n,a=e[0].x+i*Math.cos(r),s=e[0].y+i*Math.sin(r),p=new SuperMap.Geometry.Point(a,s),u=f+n,P=e[0].x+i*Math.cos(u),c=e[0].y+i*Math.sin(u),y=new SuperMap.Geometry.Point(P,c);var g=[];g.push(p),g.push(e[0].clone()),g.push(y);var M=this.scaleValues[1]===SuperMap.Plot.ArrowLineType.DOUBLELINE?SuperMap.Plot.SymbolType.POLYLINESYMBOL:SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,d=this.scaleValues[2]===SuperMap.Plot.ArrowLineType.DOUBLELINE?SuperMap.Plot.SymbolType.POLYLINESYMBOL:SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL;this.scaleValues[1]===SuperMap.Plot.ArrowLineType.DOUBLELINE?this.addCell(M,g,S):this.scaleValues[1]===SuperMap.Plot.ArrowLineType.TRIANGLESOLID&&this.addCell(M,g,S),this.scaleValues[2]===SuperMap.Plot.ArrowLineType.DOUBLELINE?this.addCell(d,h,S):this.scaleValues[2]===SuperMap.Plot.ArrowLineType.TRIANGLESOLID&&this.addCell(d,h,S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e),this.finish()}}}]),e}();SuperMap.Plot.ArrowLine=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.style=null,this.libID=e.libID?e.libID:0,this.code=e.code?e.code:0,this.maxEditPts=e.maxEditPts?e.maxEditPts:SuperMap.Plot.AlgoSymbolFactory.getMaxEditPts(e.libID,e.code),this.minEditPts=e.minEditPts?e.minEditPts:SuperMap.Plot.AlgoSymbolFactory.getMinEditPts(e.libID,e.code),this.isEdit=!!e.isEdit&&e.isEdit,this.controlPoints=e.controlPoints?e.controlPoints:[],this.scalePoints=e.scalePoints?e.scalePoints:[],this.scaleValues=e.scaleValues?e.scaleValues:[],this.subSymbols=e.subSymbols?e.subSymbols:SuperMap.Plot.AlgoSymbolFactory.getDefaultSubSymbols(e.libID,e.code),this.polylineConnectLocationPoint=!!e.polylineConnectLocationPoint&&e.polylineConnectLocationPoint,this.style=e.style?e.style:SuperMap.Plot.PlottingUtil.copyAttributes(this.style,SuperMap.Plot.AlgoSymbolFactory.getDefaultStyle(e.libID,e.code)),this.textContent=e.textContent?e.textContent:"",this.map=e.map?e.map:null,this.scene=e.scene?e.scene:null,this.subSymbolDefaultPixelSize=e.subSymbolDefaultPixelSize?e.subSymbolDefaultPixelSize:30,this.components=[],this.symbolType=0===this.libID?this.code:2}return l(t,[{key:"addScalePoint",value:function(t,e){if(null!=t){void 0!==e&&null!==e||(e=this.scalePoints.length);var o=new SuperMap.Geometry.Point(t.x,t.y);o.isScalePoint=!0,o.tag=e,this.scalePoints.push(o)}}},{key:"setOptions",value:function(t){if(t)for(var e in this)t[e]&&(this[e]=t[e])}},{key:"getAlgorithmResult",value:function(t){t.components=this.components,t.scalePoints=this.scalePoints,t.scaleValues=this.scaleValues}}]),l(t,[{key:"destroy",value:function(){this.minEditPts=null,this.maxEditPts=null,this.controlPoints.length=0,this.controlPoints=null,this.scalePoints.length=0,this.scalePoints=null,this.scaleValues.length=0,this.scaleValues=null,this.subSymbols.length=0,this.subSymbols=null,this.subSymbolSize=0,this.components=[],this.style=null}},{key:"init",value:function(){if(this.components=[],this.scalePoints=[],this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),this.maxEditPts<this.controlPoints.length&&this.symbolType!==SuperMap.Plot.SymbolType.ELLIPSESYMBOL){var t=this.controlPoints.shift(),e=this.controlPoints.pop();this.controlPoints=[],this.controlPoints.push(t,e)}}},{key:"finish",value:function(){}},{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clonePoints(t),this.controlPoints.length>=this.minEditPts){var e={textContent:this.textContent,type:this.symbolType,surroundLineFlag:!1,positionPoints:t,style:{}};if(e.type===SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL&&e.positionPoints.push(e.positionPoints[0]),this.symbolType===SuperMap.Plot.SymbolType.PARALLELLINE){if(this.controlPoints&&this.controlPoints.length>=3){var o=!1;void 0!==this.controlPoints[0].z&&(o=!0);var l=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]);SuperMap.Plot.PlottingUtil.isRight(this.controlPoints[0],this.controlPoints[1],this.controlPoints[2])&&(l=-l);for(var i=[],n=1;n<this.controlPoints.length;n++)i.push(this.controlPoints[n].clone());var r=SuperMap.Plot.PlottingUtil.parallel(i,l);if(this.controlPoints[0].x=r[0].x,this.controlPoints[0].y=r[0].y,o)for(var a=0;a<i.length;a++)r[a].z=i[a].z;this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r)}}else this.components.push(e)}}},{key:"modifyPoint",value:function(t,e){if(0===this.libID&&31===this.code){if(0===t)return this.controlPoints[0].x=(this.controlPoints[1].x+this.controlPoints[3].x)/2,void(this.controlPoints[0].y=(this.controlPoints[1].y+this.controlPoints[3].y)/2);var o=-1;0===(o=(t+2)%4)&&(o=4);var l=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[t]),i=SuperMap.Plot.PlottingUtil.findPointInLine(this.controlPoints[0],this.controlPoints[o],l),n=new SuperMap.Geometry.Point(2*this.controlPoints[0].x-i.x,2*this.controlPoints[0].y-i.y),r=this.getPixelFromLonLat(i.x,i.y),a=this.getPixelFromLonLat(n.x,n.y),s=!1;(SuperMap.Plot.PlottingUtil.equalFuzzy(r.x-a.x,0)||SuperMap.Plot.PlottingUtil.equalFuzzy(r.y-a.y,0))&&(s=!0),s?(this.controlPoints[o].x=n.x,this.controlPoints[o].y=n.y,this.controlPoints[t].x=i.x,this.controlPoints[t].y=i.y):(this.controlPoints[o].x=i.x,this.controlPoints[o].y=i.y,this.controlPoints[t].x=n.x,this.controlPoints[t].y=n.y)}else this.computeScaleValues(t,e),this.calculateParts()}},{key:"computeScaleValues",value:function(){}},{key:"getLonLatDistanceFromPixel",value:function(t){if(null===this.map)return 0;var e,o;if(this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map){var l=this.map.layerPointToLatLng(L.point(0,0)),i=this.map.layerPointToLatLng(L.point(t,0));e=new SuperMap.Geometry.Point(l.lng,l.lat),o=new SuperMap.Geometry.Point(i.lng,i.lat)}else if(this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map){l=this.map.getLonLatFromPixel(new SuperMap.Pixel(0,0)),i=this.map.getLonLatFromPixel(new SuperMap.Pixel(t,0));e=new SuperMap.Geometry.Point(l.lon,l.lat),o=new SuperMap.Geometry.Point(i.lon,i.lat)}return SuperMap.Plot.PlottingUtil.distance(e,o)}},{key:"getPixelDistanceFromLonLat",value:function(t){if(null===this.map)return 0;var e,o;if(this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map){var l=this.map.latLngToLayerPoint(L.latLng(0,0)),i=this.map.latLngToLayerPoint(L.latLng(t,0));e=new SuperMap.Geometry.Point(l.x,l.y),o=new SuperMap.Geometry.Point(i.x,i.y)}else if(this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map){l=this.map.getPixelFromLonLat(new SuperMap.LonLat(0,0)),i=this.map.getPixelFromLonLat(new SuperMap.LonLat(t,0));e=new SuperMap.Geometry.Point(l.x,l.y),o=new SuperMap.Geometry.Point(i.x,i.y)}return SuperMap.Plot.PlottingUtil.distance(e,o)}},{key:"getPixelFromLonLat",value:function(t,e){if(this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map){var o=this.map.latLngToLayerPoint(L.latLng(e,t));return{x:o.x,y:o.y}}if(this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map){var l=this.map.getPixelFromLonLat(new SuperMap.LonLat(t,e));return{x:l.x,y:l.y}}}},{key:"getLonLatFromPixel",value:function(t,e){if(this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map){var o=this.map.layerPointToLatLng(L.point(t,e));return{lon:o.lng,lat:o.lat}}if(this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map){var l=this.map.getLonLatFromPixel(new SuperMap.Pixel(t,e));return{lon:l.lon,lat:l.lat}}}},{key:"pixelBoundsToLonLat",value:function(t){var e=this.getLonLatFromPixel(t.left,t.top),o=this.getLonLatFromPixel(t.right,t.bottom);return new SuperMap.Bounds(e.lon,o.lat,o.lon,e.lat)}},{key:"annotationContent",value:function(t,e,o,l){var i=this.textContent;if(0!==i.length){var n=i.split("\n");i="";for(var r=0,a=0;a<n.length;a++){r++;var s=n[a],p=SuperMap.Plot.PlottingUtil.getTextWidth(this.style,s),u=this.getPixelFromLonLat(t,e),P=this.getPixelFromLonLat(o,l),c=parseFloat(Math.abs(P.x-u.x)),y=parseFloat(Math.abs(u.y-P.y)),h=0;if(this.style.weight?h=parseFloat(this.style.fontSize)+2*this.style.weight+.2*parseFloat(this.style.fontSize)+r:this.style.strokeWidth&&(h=parseFloat(this.style.fontSize)+2*this.style.strokeWidth+.2*parseFloat(this.style.fontSize)+r),h>y)break;if(p>=c){var S=s.split("");s="";for(var f="",g=S.length,M=0;M<g;M++){if(f+=S[M],SuperMap.Plot.PlottingUtil.getTextWidth(this.style,f)>=c){var d=S[M];if(S[M]="\n",r++,this.style.weight?h=parseFloat(this.style.fontSize)*r+r+2*this.style.weight+.2*parseFloat(this.style.fontSize):this.style.strokeWidth&&(h=parseFloat(this.style.fontSize)*r+r+2*this.style.strokeWidth+.2*parseFloat(this.style.fontSize)),!(h<y)){0===i.length?i=s:(i+="\n",i+=s);break}S[M]+=d,f=d}s+=S[M],M===g-1&&(0===i.length?i=s:(i+="\n",i+=s))}}else 0===i.length?i=s:(i+="\n",i+=s)}if(0!==i.length){var m=this.style.labelAlign,v=0,b=0;"l"===m[0]?v=t:"r"===m[0]?v=o:"c"===m[0]&&(v=(t+o)/2),"t"===m[1]?b=e:"b"===m[1]?b=l:"m"===m[1]&&(b=(e+l)/2);var A=new SuperMap.Geometry.Point(v,b),L={};L.positionPoints=[A],L.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,L.textContent=i,L.style={surroundLineFlag:!1,labelAlign:m},this.components.push(L)}}}},{key:"addCell",value:function(t,e,o,l){if(t&&e){var i={};i.type=t,i.textContent=l,i.positionPoints=e,i.style=null==o?{surroundLineFlag:!1}:o,this.components.push(i)}}},{key:"addText",value:function(t,e,o,l,i){if(t&&e){var n={};n.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,n.textContent=t,n.positionPoints=[e];var r=o/t.length/2;n.style={},n.style.surroundLineFlag=!1,n.style.labelRotation=-l,n.style.fontSize=r,n.style.fontColor=void 0===i?"#000000":i,n.style.fontSizeLimit=!0,n.style.sizeFixed=!1,n.style.labelAlign="cm",n.style.label=t,this.components.push(n)}}},{key:"getLinePts",value:function(t,e,o){var l=new Object;if(e>.5)return l.startIndex=0,l.startPt=t[0],l.endIndex=t.length-1,l.endPt=t[t.length-1],l;null==o&&(o=.5);var i=SuperMap.Plot.PlottingUtil.polylineDistance(t),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i*(o-e),t),r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i*(o+e),t);return l.startIndex=n.index,l.startPt=n.pts,l.endIndex=r.index,l.endPt=r.pts,l}},{key:"computeDashLine",value:function(t,e,o){var l=[],i=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(i<=0)return[];for(var n,r=o[0],a=1,s=0,p=!0,u=!0;s<i;){var P,c=[];c.push(r),s+=t;var y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,o);if(P=y.index,n=y.pts,!(p=y.bfind))break;if(a<P)for(var h=a;h<P;h++)c.push(o[h]);c.push(n),l.push(c),s+=e;var S=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,o);if(P=S.index,r=S.pts,a=P+1,!(u=S.bfind))break}if(!p){var f=[];f.push(r);for(var g=a;g<o.length;g++)f.push(o[g]);2===f.length&&SuperMap.Plot.PlottingUtil.equalFuzzy(SuperMap.Plot.PlottingUtil.distance(f[0],f[1]),0)||l.push(f)}if(!u){var M=o[o.length-1],d=SuperMap.Plot.PlottingUtil.distance(n,M);if(d*=.01,!SuperMap.Plot.PlottingUtil.equalFuzzy(d,0)){var m=SuperMap.Plot.PlottingUtil.linePnt(M,n,d),v=[];v.push(m),v.push(M),l.push(v)}}return l}},{key:"addArrow",value:function(t,e){if(t.length<2)return t;var o,l=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);void 0===e&&(e=(this.isEdit,.5*this.getSubSymbolScaleValue()));var i=t.slice();o=l*e;var n,r=t[t.length-1],a=o*Math.cos(.125*Math.PI);if(t.length>2){for(var s=-1,p=t.length-2;p>=0;p--)if(o<SuperMap.Plot.PlottingUtil.distance(r,t[p])){s=p;break}t.splice(s+1,t.length-s),t.push(r)}if(t.length>1){SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>a&&(n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,[t[t.length-1],t[t.length-2]])).bfind&&(t.splice(t.length-1,1),t.push(n.pts)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var u=t[t.length-1],P=r,c=o;if(void 0===u)return t;var y=SuperMap.Plot.PlottingUtil.radian(u,P)*SuperMap.Plot.PlottingUtil.RTOD,h=SuperMap.Plot.PlottingUtil.circlePoint(P,c,c,y+157.5),S=SuperMap.Plot.PlottingUtil.circlePoint(P,c,c,y+202.5),f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[h,r,S],f)}else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i)}},{key:"addDovetailArrow",value:function(t,e){if(t.length<2)return t;var o,l=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);void 0===e&&(e=(this.isEdit,.5*this.getSubSymbolScaleValue())),o=l*e;var i=t[t.length-1];if(t.length>2){for(var n=-1,r=t.length-2;r>=0;r--)if(o<SuperMap.Plot.PlottingUtil.distance(i,t[r])){n=r;break}t.splice(n+1,t.length-n),t.push(i)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var a=t[t.length-2],s=t[t.length-1],p=o;if(void 0===a)return t;if(!(SuperMap.Plot.PlottingUtil.distance(a,s)<o)){var u=SuperMap.Plot.PlottingUtil.radian(a,s)*SuperMap.Plot.PlottingUtil.RTOD,P=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u+157.5),c=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u+202.5),y=SuperMap.Plot.PlottingUtil.circlePoint(s,.5*p,.5*p,u+180),h=[];h.push(P),h.push(t[t.length-1]),h.push(c),h.push(y);var S={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,S)}}},{key:"getDefaultSubSymbolSize",value:function(){var t=0;if(this.map){var e=this.getLonLatFromPixel(0,0),o=this.getLonLatFromPixel(this.subSymbolDefaultPixelSize,0),l=new SuperMap.Geometry.Point(e.lon,e.lat),i=new SuperMap.Geometry.Point(o.lon,o.lat);t=SuperMap.Plot.PlottingUtil.distance(l,i)}if(0===t){if(0!==this.subSymbolSize)return this.subSymbolSize;for(var n=0,r=0;r<this.controlPoints.length-1;r++)n+=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[r],this.controlPoints[r+1]);t=.3*n}return t}},{key:"getTextBounds",value:function(t,e){" "===e&&(e="_");var o=document.createElement("span");document.body.appendChild(o),o.style.width="auto",o.style.height="auto",t.fontSize&&(o.style.fontSize=new String(t.fontSize)+"px"),t.fontFamily&&(o.style.fontFamily=t.fontFamily),t.fontWeight&&(o.style.fontWeight=t.fontWeight),o.style.position="absolute",o.style.visibility="hidden",o.innerHTML=e;var l=new SuperMap.Bounds(o.clientLeft,o.clientTop+o.clientHeight-6,o.clientLeft+o.clientWidth,o.clientTop+4),i=this.pixelBoundsToLonLat(l);return document.body.removeChild(o),i}},{key:"calAssistantLine",value:function(){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);this.symbolType===SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL&&(t.splice(1,0,new SuperMap.Geometry.Point(this.controlPoints[1].x,this.controlPoints[0].y)),t.push(new SuperMap.Geometry.Point(this.controlPoints[0].x,this.controlPoints[1].y)),t.push(new SuperMap.Geometry.Point(this.controlPoints[0].x,this.controlPoints[0].y)));var e={type:24,surroundLineFlag:!1,positionPoints:t,style:{color:"#0000ff",opacity:1,weight:1,dashArray:"5, 5",strokeColor:"#0000ff",strokeOpacity:1,strokeWidth:1,strokeDashstyle:"dash",lineColorLimit:!0,lineTypeLimit:!0,lineWidthLimit:!0,surroundLineFlag:!1}};this.components.push(e)}},{key:"getSubSymbolScaleValue",value:function(t,e){var o=0;o=t&&!SuperMap.Plot.PlottingUtil.equalFuzzy(t,0)?t:SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);var l=this.getDefaultSubSymbolSize()/o;return void 0===e&&(e=.3),(l>e||l<=0)&&(l=e),l}},{key:"computeSubSymbol",value:function(t,e,o,l,i,n){if(null==t.symbolData||null==t.symbolData.innerCells)return null;void 0===i&&(i=0),void 0===n&&(n=0);for(var r=SuperMap.Plot.AnalysisSymbol.analysisSymbolCells(t.symbolData,!0),a=0,s=0,p=0,u=0,P=0;P<r.length;P++)for(var c=SuperMap.Plot.Primitives.getSpatialData(r[P].type,r[P].positionPoints,r[P].textContent,0,r[P].isCalculate),y=0,h=c.length;y<h;y++)a<c[y].x&&(a=c[y].x),s<c[y].y&&(s=c[y].y),p>c[y].x&&(p=c[y].x),u>c[y].y&&(u=c[y].y);var S=new SuperMap.Geometry.Point(a,s),f=new SuperMap.Geometry.Point(p,u),g=(S.y-f.y)/o,M=(S.x-f.x)/o,d=M>g?M:g,m=new SuperMap.Geometry.Point(.5*(S.x+f.x),.5*(S.y+f.y));m.x+=i*(S.x-f.x),m.y+=n*(S.y-f.y);for(var v=0,b=r.length;v<b;v++){for(var A=0,L=r[v].positionPoints.length;A<L;A++)r[v].positionPoints[A].x-=m.x,r[v].positionPoints[A].y-=m.y,r[v].positionPoints[A].x/=d,r[v].positionPoints[A].y/=d,SuperMap.Plot.PlottingUtil.rotateAngle(new SuperMap.Geometry.Point(0,0),l*Math.PI/180,r[v].positionPoints[A]),r[v].positionPoints[A].x+=e.x,r[v].positionPoints[A].y+=e.y;r[v].type===SuperMap.Plot.SymbolType.TEXTSYMBOL&&(r[v].style.fontSize/=10*d,r[v].style.labelRotation=-l,r[v].style.sizeFixed=!1),r[v].isCalculate=!1,r[v].style.surroundLineType=0,r[v].style.surroundLineLimit=!0,this.components.push(r[v])}return r}},{key:"ComputeZValue",value:function(t,e,o){var l=SuperMap.Plot.PlottingUtil.pointProjectToSegment(t,e,o),i=new SuperMap.Geometry.Point(l.projectPoint.x,l.projectPoint.y),n=SuperMap.Plot.PlottingUtil.distance(e,o),r=SuperMap.Plot.PlottingUtil.distance(e,t),a=SuperMap.Plot.PlottingUtil.distance(o,t);if(!l.isOnline){if(r>=n)return o.z;if(a>=n)return e.z}return i.x!=e.x&&e.x!=o.x?e.z+(i.x-e.x)/(e.x-o.x)*(e.z-o.z):i.y!=e.y&&e.y!=o.y?e.z+(i.y-e.y)/(e.y-o.y)*(e.z-o.z):0==(r=SuperMap.Plot.PlottingUtil.distance(e,i))?e.z:e.z-(e.z-o.z)*(r/n)}},{key:"ComputeBeizerZValueByDis",value:function(t,e,o){if(t.length<2)return!1;for(var l=[],i=0;i<t.length;i++)l.push({x:t[i].x,y:t[i].y});var n=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0==n)return!1;var r=SuperMap.Plot.PlottingUtil.polylineDistance(e),a=[];a.push(l[0]);for(var s=-1,p=0,u=e[0],P=1;P<l.length;P++){a.push(l[P]);var c=SuperMap.Plot.PlottingUtil.polylineDistance(a)/n,y=r*c,h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(y,e),S=h.index,f=h.pts;if(h.bfind){for(var g=t[P-1].z,M=t[P].z,d=r*(c-p),m=0,v=++s;v<=S;v++){var b=g+(M-g)*((m+=v==s?SuperMap.Plot.PlottingUtil.distance(u,e[v]):SuperMap.Plot.PlottingUtil.distance(e[v-1],e[v]))/d);o.push({x:e[v].x,y:e[v].y,z:b})}s=S}p=c,u=f}for(var A=s+1;A<e.length;A++)o.push({x:e[A].x,y:e[A].y,z:t[t.length-1].z});return!0}},{key:"ComputeHeight",value:function(t,e,o,l){if(o!=l){if(0!=t.length)if(1==t.length)e.push({x:t[0].x,y:t[0].y,z:o});else if(2==t.length)e.push({x:t[0].x,y:t[0].y,z:o}),e.push({x:t[1].x,y:t[1].y,z:l});else{var i=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(0!=i){var n=[];n.push(t[0]),e.push({x:t[0].x,y:t[0].y,z:o});for(var r=1;r<t.length-1;r++){n.push(t[r]);var a=o+(l-o)*SuperMap.Plot.PlottingUtil.polylineDistance(n)/i;e.push({x:t[r].x,y:t[r].y,z:a})}e.push({x:t[t.length-1].x,y:t[t.length-1].y,z:l})}else for(var s=0;s<t.length;s++)e.push({x:t[s].x,y:t[s].y,z:o})}}else for(var p=0;p<t.length;p++)e.push({x:t[p].x,y:t[p].y,z:o})}}]),t}();SuperMap.Plot.AlgoSymbol=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.ArrowToolkit=SuperMap.Plot.ArrowToolkit=SuperMap.Plot.ArrowToolkit||{};SuperMap.Plot.ArrowToolkit.ConstValue={MAX_ARRAY_SIZE:128,sv_AtScaleParameter:1.5,sv_AtLenDivAtWidth:1.35,sv_AtWidthDivAwWidth:.5,DUOJIANTOU_TAIL_RATE_1:8,DUOJIANTOU_TAIL_RATE_2:3,DUOJIANTOU_TAIL_RATE_3:.6},SuperMap.Plot.ArrowToolkit.ArrowTailType={ARROWTAIL_NONE:0,ARROWTAIL_LINE:1,ARROWTAIL_CURVE:2,ARROWTAIL_COATTAIL:3,ARROWTAIL_COATTAIL_POLYBODY:4},SuperMap.Plot.ArrowToolkit.ArrowHeadType={ARROWHEAD_POLYLINE:0,ARROWHEAD_TRIANGLE:1,ARROWHEAD_COATTAIL:2,ARROWHEAD_TRIANGLE_SOLID:3,ARROWHEAD_COATTAIL_HOLLOW:6,ARROWHEAD_WITH_EAR:4,ARROWHEAD_WITHOUT_EAR:5},SuperMap.Plot.ArrowToolkit.ArrowBodyType={ARROWBODY_POLYLINE:0,ARROWBODY_POLYBEZIER:1,ARROWBODY_COATTAIL:5,ARROWBODY_PARALLEL:2,ARROWBODY_TRAPEZOID:3,ARROWBODY_MULTIPOLYBEZIER:4},SuperMap.Plot.ArrowToolkit.parallel=function(t,e){var o={leftParallelPts:[],rightParallelPts:[]};return 1===t.length||2===t.length&&t[0].x===t[1].x&&t[0].y===t[1].y?o:(o.leftParallelPts=SuperMap.Plot.PlottingUtil.parallel(t,e),o.rightParallelPts=SuperMap.Plot.PlottingUtil.parallel(t,-e),o)},SuperMap.Plot.ArrowToolkit.trapezoid=function(t,e,o){var l={leftParallelPts:[],rightParallelPts:[]};if(1===t.length||2===t.length&&t[0].x===t[1].x&&t[0].y===t[1].y)return l;for(var i=0;i<t.length-1;i++){t[i].x===t[i+1].x&&t[i].y===t[i+1].y&&(l.leftParallelPts.push(l.leftParallelPts[l.leftParallelPts.length-1]),l.rightParallelPts.push(l.rightParallelPts[l.rightParallelPts.length-1]));var n=t[i+1];n=SuperMap.Plot.PlottingUtil.rotate(t[i],0,1,n),l.leftParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[i],n,e)),n=t[i],n=SuperMap.Plot.PlottingUtil.rotate(t[i+1],0,-1,n),l.leftParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[i+1],n,o)),n=t[i+1],n=SuperMap.Plot.PlottingUtil.rotate(t[i],0,-1,n),l.rightParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[i],n,e)),n=t[i],n=SuperMap.Plot.PlottingUtil.rotate(t[i+1],0,1,n),l.rightParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[i+1],n,o))}return l},SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts=function(t,e,o){var l={};switch(o){case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL:case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_TRAPEZOID:var i=e[0],n=e[1],r=e[2],a=SuperMap.Plot.PlottingUtil.equalFuzzy(r,0);if(!a&&t.length>2){var s=t.length;t.splice(2,s-2)}var p=SuperMap.Plot.PlottingUtil.polylineDistance(t);l.arrowTouLen=p*i;for(var u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,p-l.arrowTouLen).pt,P=[],c=l.arrowTouLen*r,y=l.arrowTouLen*n,h=t.length-1,S=0;S<h;S++)P.push(t[S]);P.push(u);var f={leftParallelPts:[],rightParallelPts:[]};f=!0===a?SuperMap.Plot.ArrowToolkit.parallel(P,y):SuperMap.Plot.ArrowToolkit.trapezoid(P,c,y);var g=t[t.length-1];t[t.length-1]=u,t.push(g);l.leftBodyPts=f.leftParallelPts,l.rightBodyPts=f.rightParallelPts,l.OpectrlPoints=null;break;case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER:var M=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(0==M)return;var d=SuperMap.Plot.ArrowToolkit.OperateCtrlPts(t),m=d.length;m--;var v=SuperMap.Plot.ArrowToolkit.generateMultiBezier(d,m,e,M);t=[];for(var b=0;b<d.length;b++)t.push(d[b]);l.arrowTouLen=v.arrowTouLen,l.leftBodyPts=v.leftBodyPts,l.rightBodyPts=v.rightBodyPts,l.OpectrlPoints=d}return l},SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts=function(t,e,o,l,i){var n=[];switch(i){case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR:case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR:var r=o[0],a=o[1],s=0,p=0;3==o.length&&(s=o[2]),4==o.length&&(s=o[2],p=o[3]);var u=0;if(!SuperMap.Plot.PlottingUtil.equalFuzzy(s,0)&&!SuperMap.Plot.PlottingUtil.equalFuzzy(p,0)){var P=SuperMap.Plot.PlottingUtil.clonePoints(t);P.splice(P.length-1,1),u=SuperMap.Plot.PlottingUtil.polylineDistance(P)*s*p}var c=new SuperMap.Geometry.Point((e[0].x+e[1].x)/2,(e[0].y+e[1].y)/2);if(SuperMap.Plot.PlottingUtil.equalFuzzy(a,0)){var y=l*r,h=t[t.length-1];return h=SuperMap.Plot.PlottingUtil.rotate(c,0,1,h),n.push(SuperMap.Plot.PlottingUtil.findPointInLine(c,h,y)),n.push(t[t.length-1]),h=t[t.length-1],h=SuperMap.Plot.PlottingUtil.rotate(c,0,-1,h),n.push(SuperMap.Plot.PlottingUtil.findPointInLine(c,h,y)),n}var S=l*a,f=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(S,c,t[t.length-1]);S=l*r,S+=u;var g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(S,t[t.length-1],f),M=g.pntLeft,d=g.pntRight,m=t[t.length-1];return n.push(d),n.push(m),n.push(M),n}},SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine=function(t,e,o,l){var i=[];if(2>t.length)return i;var n,r=SuperMap.Plot.PlottingUtil.polylineDistance(t),a=SuperMap.Plot.PlottingUtil.equalFuzzy(e,0);switch(o){case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE:i=i.concat(t),l&&!a&&SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>e&&(n=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,r-e),i.splice(i.length-1,1),i.push(n.pt));break;case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER:if(2==t.length)i=i.concat(t),l&&!a&&SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>e&&(n=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,r-e),i.splice(i.length-1,1),i.push(n.pt));else{var s=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);if(a)i=i.concat(s);else{var p=s[s.length-1];if(!a&&(e<SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2])||SuperMap.Plot.PlottingUtil.equalFuzzy(SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2]),e,1e-7))){for(var u=s.length-1;u>1;u--){if(!(e>SuperMap.Plot.PlottingUtil.distance(p,s[u]))){var P=SuperMap.Plot.PlottingUtil.findPoint(p,s[u],e,0);s.push(P),i=s;break}s.splice(u,1)}l||i.push(p)}else i=i.concat(s)}}break;case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL:var c=e;if(c>r)return i;for(var y,h,S=Math.ceil(r/(1.4*c)),f=0,g=[],M=0;M<S;M++)y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(c*f,t),h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(c*(f+1),t),y.bfind&&h.bfind&&(g.push(y.pts),g.push(h.pts)),f=1.4*(M+1);i=g}return i},SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine=function(t,e,o){var l=[];if(2>t.length)return l;switch(o){case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE:var i=t[0],n=t[1],r=SuperMap.Plot.PlottingUtil.distance(i,n);if(SuperMap.Plot.PlottingUtil.equalFuzzy(r,e,1e-7)||r>e){var a=SuperMap.Plot.PlottingUtil.findPoint(i,n,e,0),s=e*Math.tan(.125*Math.PI),p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,t[0],a);l.push(p.pntLeft),l.push(t[0]),l.push(p.pntRight)}break;case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE:break;case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID:var u=t[0],P=t[1],c=SuperMap.Plot.PlottingUtil.distance(u,P);if(SuperMap.Plot.PlottingUtil.equalFuzzy(c,e,1e-7)||c>e){var y=e*Math.tan(.125*Math.PI),h=SuperMap.Plot.PlottingUtil.findPoint(u,P,e,0),S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(y,t[0],h);l.push(S.pntLeft),l.push(u),l.push(S.pntRight),l.push(S.pntLeft)}break;case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL:var f=t[0],g=2*Math.sqrt(e*e/3),M=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(SuperMap.Plot.PlottingUtil.equalFuzzy(g/2,M,1e-7)||M>g/2){var d=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],g,20),m=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],g,-20),v=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],g/2,0);l.push(f),l.push(d),l.push(v),l.push(m),l.push(f)}break;case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW:var b=[],A=t[0],L=2*Math.sqrt(e*e/3),T=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(SuperMap.Plot.PlottingUtil.equalFuzzy(L/1.4,T,1e-7)||T>L/1.4){var x=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],L,20),O=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],L,-20),w=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],L/1.4,0);b.push(A),b.push(x),b.push(w),b.push(O),b.push(A);var U=new SuperMap.Geometry.Point((b[0].x+b[1].x)/2,(b[0].y+b[1].y)/2),R=new SuperMap.Geometry.Point((b[3].x+b[4].x)/2,(b[3].y+b[4].y)/2),_=new SuperMap.Geometry.Point((U.x+R.x)/2,(U.y+R.y)/2),E=.75*SuperMap.Plot.PlottingUtil.distance(U,R)/2,C=SuperMap.Plot.PlottingUtil.findPointInLine(_,U,E),I=SuperMap.Plot.PlottingUtil.findPointInLine(_,R,E);l.push(b[0]),l.push(C),l.push(b[1]),l.push(b[2]),l.push(b[3]),l.push(I),l.push(b[4])}}return l},SuperMap.Plot.ArrowToolkit.generateArrowTailShapePts=function(t,e,o,l){for(var i=e.length,n=[],r=0,a=0;a<t.length-1;a++)r+=SuperMap.Plot.PlottingUtil.distance(t[a],t[a+1]);var s=r*o;switch(l){case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_NONE:break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_LINE:var p=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],s,90),u=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],s,-90);n.push(p),n.push(u);break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_CURVE:var P=new SuperMap.Geometry.Point(.5*(e[0].x+e[i-1].x),.5*(e[0].y+e[i-1].y)),c=SuperMap.Plot.PlottingUtil.distance(e[0],e[i-1]),y=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(c*o,P,t[t.length-1]),h=new SuperMap.Geometry.Point(0,0),S=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_1,SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_2,e[0],y,e[i-1],h,S);var f=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrapezoidPoints(SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_3,e[0],y,h,f);var g=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrapezoidPoints(SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_3,e[i-1],y,S,g);break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL:var M=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],s,157.5),d=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],s,-157.5);n.push(M),n.push(t[0]),n.push(d);break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL_POLYBODY:var m=new SuperMap.Geometry.Point(.5*(e[0].x+e[i-1].x),.5*(e[0].y+e[i-1].y)),v=SuperMap.Plot.PlottingUtil.distance(e[0],e[i-1]),b=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(v*o,e[0],m);n.push(e[i-1]),n.push(b.pntLeft),n.push(e[0])}return n},SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine=function(t,e,o){var l=[];switch(o){case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_NONE:break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_LINE:var i=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,90),n=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,-90);l.push(i),l.push(n);break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL:var r=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,157.5),a=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,-157.5);l.push(r),l.push(t[0]),l.push(a)}return l},SuperMap.Plot.ArrowToolkit.OperateCtrlPts=function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3==e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,l=((e[0].y+e[1].y)/2+e[2].y)/2,i=new SuperMap.Geometry.Point(o,l),n=e[2].clone();e[2]=i,e.push(n)}return e},SuperMap.Plot.ArrowToolkit.generateMultiBezier=function(t,e,o,l){var i=0,n=[],r=[],a=[],s=[],p=[],u=[],P=o[0],c=o[1],y=(t[0].x+t[1].x)/2,h=(t[0].y+t[1].y)/2,S=Math.abs(y-t[2].x),f=Math.abs(h-t[2].y),g=0;if(S>0&&f>0){var M=1/(y-t[2].x),d=-1/(h-t[2].y),m=1*t[2].y/(h-t[2].y)-1*t[2].x/(y-t[2].x);g=Math.abs(M*t[0].x+d*t[0].y+m)/Math.sqrt(M*M+d*d)}else f<=1e-4?g=Math.abs(h-t[1].y):S<=1e-4&&(g=Math.abs(y-t[1].x));var v=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(g,t[2],new SuperMap.Geometry.Point(y,h)),b=SuperMap.Plot.PlottingUtil.pointIsRightToLine(t[1],t[2],t[0]);b?(n[1]=t[1],r[1]=t[0]):(n[1]=t[0],r[1]=t[1]),t[1]=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);var A=Math.sqrt((v.pntLeft.x-v.pntRight.x)*(v.pntLeft.x-v.pntRight.x)+(v.pntLeft.y-v.pntRight.y)*(v.pntLeft.y-v.pntRight.y))*SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtWidthDivAwWidth,L=(i=A*SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtLenDivAtWidth)*c;SuperMap.Plot.PlottingUtil.equalFuzzy(P,0)||(L=(i=l*P)*c);var T,x,O=SuperMap.Plot.PlottingUtil.distance(t[e],t[e-1]),w=2*i;O<w&&(L=(i=O/2)*c),t.push(t[e]),T=0,x=0;var U=0,R=[];for(U=2;U<=e;U++)T+=SuperMap.Plot.PlottingUtil.distance(t[U],t[U-1]);for(T-=i,U=2;U<=e-1;U++)x+=SuperMap.Plot.PlottingUtil.distance(t[U],t[U-1]),R[U]=L+(A-L)*Math.pow((T-x)/T,SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtScaleParameter);R[e]=L;var _,E,C=new SuperMap.Geometry.Point(0,0),I=new SuperMap.Geometry.Point(0,0),B=new SuperMap.Geometry.Point(0,0);for(U=2;U<=e-1;U++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,t[U-1],t[U],t[U+1],I,B),U==e-1&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,t[e],t[e-1],B,C),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(R[U],I,t[U]),(b=SuperMap.Plot.PlottingUtil.pointIsRightToLine(B,I,_.pntRight))?(n[U]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y),r[U]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y)):(n[U]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),r[U]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y));for(Math.sqrt(1*(t[e].x-C.x)*(t[e].x-C.x)+1*(t[e].y-C.y)*(t[e].y-C.y))>0&&(t[e]=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(i,t[e],C)),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L,t[e+1],t[e]),(b=SuperMap.Plot.PlottingUtil.pointIsRightToLine(t[e],t[e+1],_.pntLeft))?(r[e]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),n[e]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y)):(r[e]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y),n[e]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y)),U=2;U<e;U++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,n[U-1],n[U],n[U+1],I,B),a[U]=new SuperMap.Geometry.Point(I.x,I.y),s[U]=new SuperMap.Geometry.Point(B.x,B.y),SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,r[U-1],r[U],r[U+1],I,B),p[U]=new SuperMap.Geometry.Point(I.x,I.y),u[U]=new SuperMap.Geometry.Point(B.x,B.y),2==U&&(SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,n[1],n[2],a[2],C),s[1]=new SuperMap.Geometry.Point(C.x,C.y),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,r[1],r[2],p[2],C),u[1]=new SuperMap.Geometry.Point(C.x,C.y)),U==e-1&&(w=(O=SuperMap.Plot.PlottingUtil.distance(n[e],n[e-1]))/3,(E=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(w,t[e],t[e+1])).x+=n[e].x-t[e].x,E.y+=n[e].y-t[e].y,w=(O=A-L)*Math.pow(w/T,SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtScaleParameter),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(w,n[e],E),a[e]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),w=(O=SuperMap.Plot.PlottingUtil.distance(r[e],r[e-1]))/3,(E=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(w,t[e],t[e+1])).x+=r[e].x-t[e].x,E.y+=r[e].y-t[e].y,w=(O=A-L)*Math.pow(w/T,SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtScaleParameter),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(w,r[e],E),p[e]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y));return{arrowTouLen:i,leftBodyPts:SuperMap.Plot.ArrowToolkit.genArrowBody(e,n,a,s),rightBodyPts:SuperMap.Plot.ArrowToolkit.genArrowBody(e,r,p,u)}},SuperMap.Plot.ArrowToolkit.genArrowBody=function(t,e,o,l){var i=new SuperMap.Plot.Path2D;if(!(t<2)){i.MoveTo(e[1]);for(var n=1;n<=t-1;n++)i.CubicTo(l[n],o[n+1],e[n+1]);var r=[];return i.ToSubPathPolygons(r),r[0]}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.Path2DData=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e){this.cStart=e.cStart,this.fillRule=e.fillRule,this.require_StartNewFigure=e.require_StartNewFigure,this.isBoundsDirty=e.isBoundsDirty,this.bounds=new SuperMap.Bounds(e.bounds.left,e.bounds.bottom,e.bounds.right,e.bounds.top),this.ref=1,this.elements=[];for(var o=0;o<e.elements.length;o++)this.elements.push(e.elements[o].clone())}else this.ref=1,this.bounds=new SuperMap.Bounds(0,0,0,0),this.elements=[];this.CLASS_NAME="SuperMap.Plot.Path2DData"}return l(t,[{key:"IsClosed",value:function(){var t=this.elements[this.cStart],e=this.elements[this.elements.length-1];return t.GetX()==e.GetX()&&t.GetY()==e.GetY()}},{key:"Close",value:function(){this.require_StartNewFigure=!0;var t=this.elements[this.cStart],e=this.elements[this.elements.length-1];t!=e&&(t.Equal(e)?e.SetPosition(t.GetX(),t.GetY()):this.elements.push(new SuperMap.Plot.Element(t.GetX(),t.GetY(),SuperMap.Plot.ElementType.LineToElement)))}},{key:"MaybeStartNewFigure",value:function(){if(this.require_StartNewFigure){var t=this.elements[this.elements.length-1].clone();t.SetType(0),this.elements.push(t),this.require_StartNewFigure=!1}}}]),t}();SuperMap.Plot.Path2DData=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.Element=function(){function t(e,o,l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.m_x=e,this.m_y=o,this.m_type=l,this.CLASS_NAME="SuperMap.Plot.Element"}return l(t,[{key:"GetX",value:function(){return this.m_x}},{key:"GetY",value:function(){return this.m_y}},{key:"GetType",value:function(){return this.m_type}},{key:"GetPosition",value:function(){return SuperMap.Geometry.Point(this.m_x,this.m_y)}},{key:"SetPosition",value:function(t,e){this.m_x=t,this.m_y=e}},{key:"SetType",value:function(t){this.m_type=t}},{key:"IsCurveTo",value:function(){return 2==this.m_type}},{key:"IsLineTo",value:function(){return 1==this.m_type}},{key:"IsMoveTo",value:function(){return 0==this.m_type}},{key:"Equal",value:function(t){return SuperMap.Plot.PlottingUtil.equalFuzzy(this.m_x,t.m_x,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(this.m_y,t.m_y,1e-10)&&this.m_type==t.m_type}},{key:"clone",value:function(){return new SuperMap.Plot.Path2D.Element(this.m_x,this.m_y,this.m_type)}}]),t}();SuperMap.Plot.Element=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.Path2D=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.m_pData=null,this.CLASS_NAME="SuperMap.Plot.Path2D"}return l(t,[{key:"MoveTo",value:function(t){this.ensureData(),this.detach();var e=this.getDataPtr();if(e.require_StartNewFigure=!1,0==e.elements[e.elements.length-1].GetType())e.elements[e.elements.length-1].SetPosition(t.x,t.y);else{var o=new SuperMap.Plot.Element(t.x,t.y,0);e.elements.push(o)}e.cStart=e.elements.length-1}},{key:"LineTo",value:function(t){this.ensureData(),this.detach();var e=this.getDataPtr();if(e.MaybeStartNewFigure(),e.elements[e.elements.length-1].GetX()!=t.x||e.elements[e.elements.length-1].GetY()!=t.y){var o=new SuperMap.Plot.Element(t.x,t.y,1);e.elements.push(o)}}},{key:"CurveTo",value:function(t,e,o){this.ensureData(),this.detach();var l=this.getDataPtr();if(l.elements[l.elements.length-1].GetX()!=t.x||l.elements[l.elements.length-1].GetY()!=t.y||t.x!=e.x||t.y!=e.y||e.x!=o.x||e.y!=o.y){l.MaybeStartNewFigure();var i=new SuperMap.Plot.Element(t.x,t.y,2),n=new SuperMap.Plot.Element(e.x,e.y,3),r=new SuperMap.Plot.Element(o.x,o.y,3);l.elements.push(i),l.elements.push(n),l.elements.push(r)}}},{key:"CubicTo",value:function(t,e,o){this.ensureData(),this.detach();var l=this.getDataPtr();if(l.elements[l.elements.length-1].GetX()!=t.x||l.elements[l.elements.length-1].GetY()!=t.y||t.x!=e.x||t.y!=e.y||e.x!=o.x||e.y!=o.y){l.MaybeStartNewFigure();var i=new SuperMap.Plot.Element(t.x,t.y,2),n=new SuperMap.Plot.Element(e.x,e.y,3),r=new SuperMap.Plot.Element(o.x,o.y,3);l.elements.push(i),l.elements.push(n),l.elements.push(r)}}},{key:"ToSubPathPolygons",value:function(t){var e,o,l=this.getDataPtr();if(this.IsEmpty())return!1;for(var i=[],n=this.GetElementCount(),r=0;r<n;r++){var a=l.elements[r];switch(a.GetType()){case 0:i.length>1&&t.push(i),i=[],e=a.GetX(),o=a.GetY(),i.push(new SuperMap.Geometry.Point(e,o));break;case 1:e=a.GetX(),o=a.GetY(),i.push(new SuperMap.Geometry.Point(e,o));break;case 2:if(3!=l.elements[r+1].GetType()||3!=l.elements[r+1].GetType())break;for(var s=l.elements[r-1].GetX(),p=l.elements[r-1].GetY(),u=a.GetX(),P=a.GetY(),c=l.elements[r+1].GetX(),y=l.elements[r+1].GetY(),h=l.elements[r+2].GetX(),S=l.elements[r+2].GetY(),f=0;f<=1;f+=.03125){var g=f*f,M=g*f,d=1-3*f+3*g-M,m=3*(f-2*g+M),v=3*(g-M),b=M;i.push(new SuperMap.Geometry.Point(d*s+m*u+v*c+b*h,d*p+m*P+v*y+b*S))}r+=2}}return i.length>1&&t.push(i),!0}},{key:"ensureData",value:function(){null==this.m_pData&&this.ensureData_helper()}},{key:"ensureData_helper",value:function(){var t=new SuperMap.Plot.Path2DData,e=new SuperMap.Plot.Element(0,0,0);t.elements.push(e),null==this.m_pData||this.mtDeRef(this.m_pData.ref)||(this.m_pData=null),this.m_pData=t}},{key:"detach",value:function(){1!=this.m_pData.ref&&this.detach_helper(),this.setBoundsDirty(!0)}},{key:"detach_helper",value:function(){var t=new SuperMap.Plot.Path2DData;null==this.m_pData||this.mtDeRef(this.m_pData.ref)||(this.m_pData=null),this.m_pData=t}},{key:"setBoundsDirty",value:function(t){this.getDataPtr().isBoundsDirty=t}},{key:"getDataPtr",value:function(){return this.m_pData}},{key:"IsEmpty",value:function(){if(null==this.m_pData)return!0;var t=this.m_pData.elements.length;return 0==t||1==t&&0==this.m_pData.elements[0].GetType()}},{key:"GetElementCount",value:function(){return null!=this.m_pData?this.m_pData.elements.length:0}}],[{key:"mtRef",value:function(t){return 0!=++t}},{key:"mtDeRef",value:function(t){return 0!=--t}}]),t}();SuperMap.Plot.Path2D=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbol15200=e.AlgoSymbol315=e.AlgoSymbol1022=e.AlgoSymbol1021=e.AlgoSymbol1020=e.AlgoSymbol1019=e.AlgoSymbol1018=e.AlgoSymbol1017=e.AlgoSymbol1016=e.AlgoSymbol1015=e.AlgoSymbol1014=e.AlgoSymbol1013=e.AlgoSymbol1012=e.AlgoSymbol1011=e.AlgoSymbol1010=e.AlgoSymbol1009=e.AlgoSymbol1008=e.AlgoSymbol1007=e.AlgoSymbol1006=e.AlgoSymbol1005=e.AlgoSymbol1004=e.AlgoSymbol1003=e.AlgoSymbol1002=e.AlgoSymbol1001=e.LinearArrow=e.Wire=e.PolygonRegion=e.LineRelation=e.LineMarking=e.PathText=e.CurveEight=e.Runway=e.NodeChain=e.FreeCurve=e.CombinationalCircle=e.ConcentricCircle=e.SymbolTextBox=e.GeoTooltipBoxM=e.GeoTooltipBox=e.Trapezoid=e.Brace=e.RegularPolygon=e.ArrowLine=e.AlgoSymbol=e.ArrowToolkit=e.Path2DData=e.Element=e.Path2D=void 0;var l=o(51),i=o(50),n=o(49),r=o(48),a=o(47),s=o(46),p=o(45),u=o(44),P=o(43),c=o(42),y=o(41),h=o(40),S=o(39),f=o(38),g=o(37),M=o(36),d=o(35),m=o(34),v=o(33),b=o(32),A=o(31),L=o(30),T=o(29),x=o(28),O=o(27),w=o(26),U=o(25),R=o(24),_=o(23),E=o(22),C=o(21),I=o(20),B=o(19),D=o(18),G=o(17),V=o(16),N=o(15),k=o(14),Y=o(13),z=o(12),j=o(11),F=o(10),W=o(9),H=o(8),q=o(7),J=o(6),X=o(5),Z=o(4);e.Path2D=l.Path2D,e.Element=i.Element,e.Path2DData=n.Path2DData,e.ArrowToolkit=r.ArrowToolkit,e.AlgoSymbol=a.AlgoSymbol,e.ArrowLine=s.ArrowLine,e.RegularPolygon=p.RegularPolygon,e.Brace=u.Brace,e.Trapezoid=P.Trapezoid,e.GeoTooltipBox=c.GeoTooltipBox,e.GeoTooltipBoxM=y.GeoTooltipBoxM,e.SymbolTextBox=h.SymbolTextBox,e.ConcentricCircle=S.ConcentricCircle,e.CombinationalCircle=f.CombinationalCircle,e.FreeCurve=g.FreeCurve,e.NodeChain=M.NodeChain,e.Runway=d.Runway,e.CurveEight=m.CurveEight,e.PathText=v.PathText,e.LineMarking=b.LineMarking,e.LineRelation=A.LineRelation,e.PolygonRegion=L.PolygonRegion,e.Wire=T.Wire,e.LinearArrow=x.LinearArrow,e.AlgoSymbol1001=O.AlgoSymbol1001,e.AlgoSymbol1002=w.AlgoSymbol1002,e.AlgoSymbol1003=U.AlgoSymbol1003,e.AlgoSymbol1004=R.AlgoSymbol1004,e.AlgoSymbol1005=_.AlgoSymbol1005,e.AlgoSymbol1006=E.AlgoSymbol1006,e.AlgoSymbol1007=C.AlgoSymbol1007,e.AlgoSymbol1008=I.AlgoSymbol1008,e.AlgoSymbol1009=B.AlgoSymbol1009,e.AlgoSymbol1010=D.AlgoSymbol1010,e.AlgoSymbol1011=G.AlgoSymbol1011,e.AlgoSymbol1012=V.AlgoSymbol1012,e.AlgoSymbol1013=N.AlgoSymbol1013,e.AlgoSymbol1014=k.AlgoSymbol1014,e.AlgoSymbol1015=Y.AlgoSymbol1015,e.AlgoSymbol1016=z.AlgoSymbol1016,e.AlgoSymbol1017=j.AlgoSymbol1017,e.AlgoSymbol1018=F.AlgoSymbol1018,e.AlgoSymbol1019=W.AlgoSymbol1019,e.AlgoSymbol1020=H.AlgoSymbol1020,e.AlgoSymbol1021=q.AlgoSymbol1021,e.AlgoSymbol1022=J.AlgoSymbol1022,e.AlgoSymbol315=X.AlgoSymbol315,e.AlgoSymbol15200=Z.AlgoSymbol15200},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbolFactory=e.BasicAlgoSymbolFactory=void 0;var l=o(0),i=o(3);e.BasicAlgoSymbolFactory=l.BasicAlgoSymbolFactory,e.AlgoSymbolFactory=i.AlgoSymbolFactory},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.AddPoint_WayType=SuperMap.Plot.AddPoint_WayType={UNKNOWN:0,POLYLINE:1,CURVE:2}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.RouteNodePrimitives=SuperMap.Plot.RouteNodePrimitives=SuperMap.Plot.RouteNodePrimitives||{};SuperMap.Plot.RouteNodePrimitives={initialize:function(){},rendezvousPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(0,0)),o.textContent="会",o.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},o.style.labelAlign="cm",t.push(o),t.push(e),t},expandingPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(0,0)),o.textContent="展",o.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},o.style.labelAlign="cm",t.push(o),t.push(e),t},volleyPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(0,0)),o.textContent="齐",o.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},o.style.labelAlign="cm",t.push(o),t.push(e),t},standbyPoint_Outer:function(t,e){var o=[],l=new SuperMap.Geometry.Point(0,0),i=new SuperMap.Geometry.Point(0,30);t||(t=90);var n=new Object;n.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,n.positionPoints=[];for(var r=t+10;r<170+t;r+=10){var a=SuperMap.Plot.PlottingUtil.findPoint(l,i,30,r);n.positionPoints.push(a)}n.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(n);var s=n.positionPoints[n.positionPoints.length-1],p=n.positionPoints[n.positionPoints.length-2],u=SuperMap.Plot.PlottingUtil.findPoint(s,p,9,22.5),P=SuperMap.Plot.PlottingUtil.findPoint(s,p,9,-22.5),c=new Object;c.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,c.positionPoints=[],c.positionPoints.push(u),c.positionPoints.push(s.clone()),c.positionPoints.push(P),c.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(c);var y=new Object;y.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,y.positionPoints=[];for(var h=190+t;h<350+t;h+=10){var S=SuperMap.Plot.PlottingUtil.findPoint(l,i,30,h);y.positionPoints.push(S)}y.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(y);var f=y.positionPoints[y.positionPoints.length-1],g=y.positionPoints[y.positionPoints.length-2],M=SuperMap.Plot.PlottingUtil.findPoint(f,g,9,22.5),d=SuperMap.Plot.PlottingUtil.findPoint(f,g,9,-22.5),m=new Object;m.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,m.positionPoints=[],m.positionPoints.push(M),m.positionPoints.push(f.clone()),m.positionPoints.push(d),m.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(m);for(var v=0;v<o.length;v++)for(var b=0;b<o[v].positionPoints.length;b++){var A=e*(Math.PI/180);SuperMap.Plot.PlottingUtil.rotateAngle(l,A,o[v].positionPoints[b])}return o},standbyPoint_Inner:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(-20,0)),e.positionPoints.push(new SuperMap.Geometry.Point(20,10)),e.positionPoints.push(new SuperMap.Geometry.Point(20,-10)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e);var o=new Object;o.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(-5,0)),o.positionPoints.push(new SuperMap.Geometry.Point(17,0)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(o);var l=new Object;return l.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,l.positionPoints=[],l.positionPoints.push(new SuperMap.Geometry.Point(-2,1.5)),l.positionPoints.push(new SuperMap.Geometry.Point(-5,0)),l.positionPoints.push(new SuperMap.Geometry.Point(-2,-1.5)),l.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(l),t},supplyPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(0,0)),o.textContent="补",o.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},o.style.labelAlign="cm",t.push(o),t.push(e),t},takeoffPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(-15,25)),e.positionPoints.push(new SuperMap.Geometry.Point(15,25)),e.positionPoints.push(new SuperMap.Geometry.Point(15,-25)),e.positionPoints.push(new SuperMap.Geometry.Point(0,-35)),e.positionPoints.push(new SuperMap.Geometry.Point(-15,-25)),e.positionPoints.push(new SuperMap.Geometry.Point(-15,25)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},initialPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(-30,30)),e.positionPoints.push(new SuperMap.Geometry.Point(30,30)),e.positionPoints.push(new SuperMap.Geometry.Point(30,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(-30,-30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},visualInitalPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.positionPoints.push(new SuperMap.Geometry.Point(30,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(-30,0)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},lanchPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.positionPoints.push(new SuperMap.Geometry.Point(20,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(-20,-30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},turningPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},aimingPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(20,30)),e.positionPoints.push(new SuperMap.Geometry.Point(-20,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},targetPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.positionPoints.push(new SuperMap.Geometry.Point(30,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(-30,-30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},eightSpiralPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(30,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(-30,0)),o.positionPoints.push(new SuperMap.Geometry.Point(0,0)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t.push(o),t},happyValleyPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(-30,20)),e.positionPoints.push(new SuperMap.Geometry.Point(30,20)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;o.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(30,-20)),o.positionPoints.push(new SuperMap.Geometry.Point(-30,-20)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var l=new Object;l.type=SuperMap.Plot.SymbolType.ARCSYMBOL,l.positionPoints=[],l.positionPoints.push(new SuperMap.Geometry.Point(-30,20)),l.positionPoints.push(new SuperMap.Geometry.Point(-50,0)),l.positionPoints.push(new SuperMap.Geometry.Point(-30,-20)),l.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var i=new Object;return i.type=SuperMap.Plot.SymbolType.ARCSYMBOL,i.positionPoints=[],i.positionPoints.push(new SuperMap.Geometry.Point(30,20)),i.positionPoints.push(new SuperMap.Geometry.Point(50,0)),i.positionPoints.push(new SuperMap.Geometry.Point(30,-20)),i.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t.push(o),t.push(l),t.push(i),t},attackPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(0,20)),o.positionPoints.push(new SuperMap.Geometry.Point(20,-20)),o.positionPoints.push(new SuperMap.Geometry.Point(-20,-20)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(o),t.push(e),t},suppressPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fontSize:14};var o=new Object;return o.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(-15,15)),o.positionPoints.push(new SuperMap.Geometry.Point(15,15)),o.positionPoints.push(new SuperMap.Geometry.Point(15,-15)),o.positionPoints.push(new SuperMap.Geometry.Point(-15,-15)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(o),t.push(e),t},getRouteNodeCells:function(t,e,o){switch(t){case SuperMap.Plot.RouteNodeType.RENDEZVOUS:return this.rendezvousPoint();case SuperMap.Plot.RouteNodeType.EXPANDING:return this.expandingPoint();case SuperMap.Plot.RouteNodeType.VOLLEY:return this.volleyPoint();case SuperMap.Plot.RouteNodeType.STANDBY:return e?this.standbyPoint_Inner():this.standbyPoint_Outer(null,o);case SuperMap.Plot.RouteNodeType.SUPPLY:return this.supplyPoint();case SuperMap.Plot.RouteNodeType.TAKEOFF:return this.takeoffPoint();case SuperMap.Plot.RouteNodeType.INITIAL:return this.initialPoint();case SuperMap.Plot.RouteNodeType.VISUALINITAL:return this.visualInitalPoint();case SuperMap.Plot.RouteNodeType.LANCH:case SuperMap.Plot.RouteNodeType.WEAPONLAUNCH:return this.lanchPoint();case SuperMap.Plot.RouteNodeType.TURNING:case SuperMap.Plot.RouteNodeType.COMMONROUTE:return this.turningPoint();case SuperMap.Plot.RouteNodeType.AIMING:return this.aimingPoint();case SuperMap.Plot.RouteNodeType.TARGET:return this.targetPoint();case SuperMap.Plot.RouteNodeType.ATTACK:return this.attackPoint();case SuperMap.Plot.RouteNodeType.SUPPRESS:return this.suppressPoint();case SuperMap.Plot.RouteNodeType.EIGHTSPIRAL:return this.eightSpiralPoint();case SuperMap.Plot.RouteNodeType.HAPPYVALLEY:return this.happyValleyPoint();default:return[]}},getRouteNodeNameByType:function(t){switch(t){case SuperMap.Plot.RouteNodeType.RENDEZVOUS:return"会合点";case SuperMap.Plot.RouteNodeType.EXPANDING:return"展开点";case SuperMap.Plot.RouteNodeType.VOLLEY:return"齐射点";case SuperMap.Plot.RouteNodeType.STANDBY:return"待机点";case SuperMap.Plot.RouteNodeType.SUPPLY:return"补给点";case SuperMap.Plot.RouteNodeType.TAKEOFF:return"起飞点";case SuperMap.Plot.RouteNodeType.INITIAL:return"初始点";case SuperMap.Plot.RouteNodeType.VISUALINITAL:return"可视化初始点";case SuperMap.Plot.RouteNodeType.LANCH:return"发射点";case SuperMap.Plot.RouteNodeType.WEAPONLAUNCH:return"武器发射点";case SuperMap.Plot.RouteNodeType.TURNING:return"转弯点";case SuperMap.Plot.RouteNodeType.COMMONROUTE:return"普通航路点";case SuperMap.Plot.RouteNodeType.AIMING:return"目标瞄准点";case SuperMap.Plot.RouteNodeType.TARGET:return"目标点";case SuperMap.Plot.RouteNodeType.ATTACK:return"攻击点";case SuperMap.Plot.RouteNodeType.SUPPRESS:return"压制点";case SuperMap.Plot.RouteNodeType.EIGHTSPIRAL:return"八字盘旋点";case SuperMap.Plot.RouteNodeType.HAPPYVALLEY:return"跑马圈点";default:return""}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.Primitives=SuperMap.Plot.Primitives=SuperMap.Plot.Primitives||{};SuperMap.Plot.Primitives={nSegmentCount:72,initialize:function(t){t&&t.nSegmentCount&&(this.nSegmentCount=t.nSegmentCount)},polyline:function(t){return t},parallelline:function(t){if(t&&t.length>=3){var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);SuperMap.Plot.PlottingUtil.isRight(t[0],t[1],t[2])&&(e=-e);for(var o=[],l=1;l<t.length;l++)o.push(t[l].clone());var i=SuperMap.Plot.PlottingUtil.parallel(o,e);return t[0].x=i[0].x,t[0].y=i[0].y,[o,i]}return[]},kidney:function(t,e){if(t){var o=[];return o=e?this.getKendyShapePts(t):t,SuperMap.Plot.PlottingUtil.clearSamePts(o),o}},bezier:function(t,e){if(t){var o=[];return o=e?SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t):t,SuperMap.Plot.PlottingUtil.clearSamePts(o),o}},loopbezier:function(t,e){if(t){t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y||t.push(t[0]);var o=[];return o=e?SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t):t,SuperMap.Plot.PlottingUtil.clearSamePts(o),o}},parallelogram:function(t){if(t&&t.length>=3){var e=t[0].x+(t[2].x-t[1].x),o=t[0].y+(t[2].y-t[1].y),l=new SuperMap.Geometry.Point(e,o),i=[];return i.push.apply(i,t),i.push(l),i.push(i[0]),i}},polygon:function(t){if(t&&t.length>2)return t},circle:function(t){if(t&&2===t.length){for(var e=t[0],o=t[1],l=[],i=Math.sqrt((o.x-e.x)*(o.x-e.x)+(o.y-e.y)*(o.y-e.y)),n=360/this.nSegmentCount,r=0;r<this.nSegmentCount;r++){var a=(r*n+1)*Math.PI/180,s=new SuperMap.Geometry.Point(Math.cos(a)*i+e.x,Math.sin(a)*i+e.y);l[r]=s}return l}},rectangle:function(t){if(t&&2===t.length){var e=t[0],o=t[1],l=e.clone();return[l,new SuperMap.Geometry.Point(o.x,e.y),o.clone(),new SuperMap.Geometry.Point(e.x,o.y),l]}},sector:function(t){if(t&&t.length>=3){var e=this.getArcInfo(t[0],t[1],t[2]);e.dStartAngle*=Math.PI/180,e.dEndAngle*=Math.PI/180;var o=(e.dEndAngle-e.dStartAngle)/this.nSegmentCount,l=this.getArcSpatialData(e.pntCenter,e.dRadius,e.dRadius,0,e.dStartAngle,e.dEndAngle,o);if(l.push(e.pntCenter),0!==l.length)return l}},lune:function(t){if(t&&t.length>=3){var e=this.getArcInfo(t[0],t[1],t[2]);e.dStartAngle*=Math.PI/180,e.dEndAngle*=Math.PI/180;var o=(e.dEndAngle-e.dStartAngle)/this.nSegmentCount,l=this.getArcSpatialData(e.pntCenter,e.dRadius,e.dRadius,0,e.dStartAngle,e.dEndAngle,o);if(0!==l.length)return l}},arc:function(t){if(t&&t.length>=3){var e=this.getArcInfo(t[0],t[1],t[2]);e.dStartAngle*=Math.PI/180,e.dEndAngle*=Math.PI/180;var o=(e.dEndAngle-e.dStartAngle)/this.nSegmentCount,l=this.getArcSpatialData(e.pntCenter,e.dRadius,e.dRadius,0,e.dStartAngle,e.dEndAngle,o);if(0!==l.length)return l}},ellipse:function(t,e,o,l,i){if(!0===o){if((!l||null==l)&&t&&t.length>=3&&(l=SuperMap.Plot.PlottingUtil.distance(t[0],t[1])),(!i||null==i)&&t&&t.length>=3){var n=SuperMap.Plot.PlottingUtil.projectPoint(t[2],t[0],t[1]);i=SuperMap.Plot.PlottingUtil.distance(n,t[2])}}else i=SuperMap.Plot.PlottingUtil.distance(t[0],t[2]),l=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(e&&null!=e?e*=Math.PI/180:e=SuperMap.Plot.PlottingUtil.radian(t[0],t[1]),t&&t.length>0){var r=2*Math.PI,a=r/this.nSegmentCount,s=this.getArcSpatialData(t[0],l,i,e,0,r,a);if(!0===o){var p=Math.sin(e),u=Math.cos(e);t[2].x>t[1].x?(t[2].x=t[0].x-i*p,t[2].y=t[0].y+i*u):(t[2].x=t[0].x+i*p,t[2].y=t[0].y-i*u)}return s}},getArcSpatialData:function(t,e,o,l,i,n,r){var a=[];if(Math.abs(r)<1e-9)return a;for(;n<i;)n+=2*Math.PI;for(;n>i+2*Math.PI;)i+=2*Math.PI;var s=Math.cos(l)*e,p=Math.sin(l)*e,u=Math.cos(l)*o,P=Math.sin(l)*o,c=this.calcEllipseRadian(i,e,o),y=this.calcEllipseRadian(n,e,o);y-c<1e-5&&(y+=2*Math.PI);var h=Math.round(Math.abs((y-c)/r)+1);if(h<2)return a;for(var S=0;S<h-1;c+=r,S++){S===h-2&&(c=n);var f=t.x+s*Math.cos(c)-P*Math.sin(c),g=t.y+p*Math.cos(c)+u*Math.sin(c);a.push(new SuperMap.Geometry.Point(f,g))}return 0>a.length&&(a[a.length-1].x=t.x+s*Math.cos(y)-P*Math.sin(y),a[a.length-1].y=t.y+p*Math.cos(y)+u*Math.sin(y)),a},getArcInfo:function(t,e,o){var l={};l.pntCenter=new SuperMap.Geometry.Point(0,0),l.dRadius=0,l.dStartAngle=0,l.dEndAngle=0;var i=e.x-t.x,n=e.y-t.y;if(Math.abs(i)<1e-9){var r={},a={};r.x=(e.x+t.x)/2,r.y=(e.y+t.y)/2,a.x=(e.x+o.x)/2,a.y=(e.y+o.y)/2;var s=0;Math.abs(o.x-e.x)>=1e-9&&(s=(o.y-e.y)/(o.x-e.x)),l.pntCenter.y=r.y,Math.abs(s)<1e-9?l.pntCenter.x=a.x:l.pntCenter.x=a.x-s*(r.y-a.y)}else{var p={},u={};p.x=(e.x+t.x)/2,p.y=(e.y+t.y)/2,u.x=(e.x+o.x)/2,u.y=(e.y+o.y)/2;var P=n/i,c=1;Math.abs(P)<1e-9?(l.pntCenter.x=p.x,Math.abs(o.x-e.x<1e-9)?l.pntCenter.y=u.y:l.pntCenter.y=-(o.x-e.x)/(o.y-e.y)*(l.pntCenter.x-u.x)+u.y):Math.abs(o.x-e.x)<1e-9?(l.pntCenter.y=u.y,l.pntCenter.x=-P*(l.pntCenter.y-p.y)+p.x):(c=(o.y-e.y)/(o.x-e.x),l.pntCenter.x=(P*c*(p.y-u.y)+c*p.x-P*u.x)/(c-P),l.pntCenter.y=(u.x-p.x+c*u.y-P*p.y)/(c-P))}var y=Math.atan2(t.y-l.pntCenter.y,t.x-l.pntCenter.x),h=Math.atan2(o.y-l.pntCenter.y,o.x-l.pntCenter.x);if(SuperMap.Plot.PlottingUtil.isCounterClockwise(t,e,o)){for(;y>=2*Math.PI;)y-=2*Math.PI;for(;y<0;)y+=2*Math.PI;for(;h>2*Math.PI;)h-=2*Math.PI;for(;h<y;)h+=2*Math.PI}else{for(;h>=2*Math.PI;)h-=2*Math.PI;for(;h<0;)h+=2*Math.PI;for(;y>2*Math.PI;)y-=2*Math.PI;for(;h>y;)y+=2*Math.PI;var S=y;y=h,h=S}return l.dRadius=Math.sqrt((l.pntCenter.x-t.x)*(l.pntCenter.x-t.x)+(l.pntCenter.y-t.y)*(l.pntCenter.y-t.y)),l.dEndAngle=180*h/Math.PI,l.dStartAngle=180*y/Math.PI,l},calcEllipseRadian:function(t,e,o){var l=t,i=e*Math.sin(t),n=o*Math.cos(t),r=Math.atan2(i,n);if(t>Math.PI)for(;l>Math.PI;)l-=2*Math.PI,r+=2*Math.PI;else if(t<-Math.PI)for(;l<-Math.PI;)l+=2*Math.PI,r-=2*Math.PI;return r},getKendyShapePts:function(t){var e=[];if(2>(t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length)return e;var o=this.calcShapePoints(t);if(12!=o.length)return e;o.push(o[0]),o.push(o[1]),o.splice(0,1);for(var l=0;l<o.length-3;l+=3){var i;i=this.getBezierPtsWithScalePts(o[l],o[l+1],o[l+2],o[l+3]),e=e.concat(i)}return e},calcShapePoints:function(t){var e=[],o=[],l=t.length;if(0!==l){if(1!==l){if(2==l){var i=this.calcProtudeC3(t[0],t[1]);o.push(t[0]),o.push(t[1]),o.push(i)}else if(o.push(t[0]),o.push(t[1]),o.push(t[2]),(SuperMap.Plot.PlottingUtil.isSamePt(t[0],t[2])||SuperMap.Plot.PlottingUtil.isSamePt(t[1],t[2]))&&(e.push(t[0]),e.push(t[1])),SuperMap.Plot.PlottingUtil.isSamePt(t[0],t[1]))return e.push(t[0]),void e.push(t[2]);o=this.reNormalizeKidneyCtrlPoints(o);var n=new SuperMap.Geometry.Point(0,0),r=new SuperMap.Geometry.Point(0,0);n.x=.5*(o[0].x+o[1].x),n.y=.5*(o[0].y+o[1].y),r.x=n.x-.1*(o[2].x-n.x),r.y=n.y-.1*(o[2].y-n.y);var a=this.GetPtsByTriangle(3,0,o[1],o[0],r);e.push(a.pr),e.push(r),e.push(a.pl);var s=this.GetPtsByTriangle(4,2,o[2],o[0],o[1]);e.push(s.pr),e.push(o[1]),e.push(s.pl);var p=this.GetPtsByTriangle(2,0,o[0],o[1],o[2]);e.push(p.pr),e.push(o[2]),e.push(p.pl);var u=this.GetPtsByTriangle(4,1,o[1],o[2],o[0]);return e.push(u.pr),e.push(o[0]),e.push(u.pl),e}e.push(t[0])}},calcProtudeC3:function(t,e){var o,l=new SuperMap.Geometry.Point(0,0);return l.x=.5*(t.x+e.x),l.y=.5*(t.y+e.y),o=SuperMap.Plot.PlottingUtil.distance(e,t)/2.7,this.GetPointsOfNormal(o,t,l).pt3},GetPointsOfNormal:function(t,e,o){var l,i=new SuperMap.Geometry.Point(0,0),n=new SuperMap.Geometry.Point(0,0),r=new SuperMap.Geometry.Point(0,0);return 0==(l=SuperMap.Plot.PlottingUtil.distance(e,o))?(r.y=0,r.x=t):(r.x=t*(e.x-o.x)/l,r.y=t*(e.y-o.y)/l),i.x=-r.y+o.x,i.y=r.x+o.y,n.x=r.y+o.x,n.y=-r.x+o.y,{pt3:i,pt4:n}},reNormalizeKidneyCtrlPoints:function(t){var e=[];e.push(new SuperMap.Geometry.Point(0,0)),e.push(new SuperMap.Geometry.Point(0,0)),e.push(new SuperMap.Geometry.Point(0,0));var o=t.length;if(o<2)return e;if(2==o)e[0]=t[0],e[1]=t[1],e[2]=this.calcProtudeC3(t[0],t[1]);else{var l,i,n,r=t[0],a=t[1],s=t[2];if(l=SuperMap.Plot.PlottingUtil.distance(a,r),i=SuperMap.Plot.PlottingUtil.distance(s,a),n=SuperMap.Plot.PlottingUtil.distance(r,s),i>=l&&i>=n){var p=r.clone();r=s.clone(),s=p.clone()}else if(n>=l&&n>=i){var u=s.clone();s=a.clone(),a=u.clone()}if(!SuperMap.Plot.PlottingUtil.isRight(s,r,a)){var P=r.clone();r=a.clone(),a=P.clone()}e[0]=r,e[1]=a,e[2]=s}return e},GetPtsByTriangle:function(t,e,o,l,i){var n=new SuperMap.Geometry.Point(0,0),r=0,a=0;return r=SuperMap.Plot.PlottingUtil.distance(i,o),a=SuperMap.Plot.PlottingUtil.distance(l,i),1==e&&(r*=2),2==e&&(a*=2),n.x=(r*l.x+a*o.x)/(r+a),n.y=(r*l.y+a*o.y)/(r+a),{pl:this.GetWhichPtOfNormal(t,o,n,i),pr:this.GetWhichPtOfNormal(t,l,n,i)}},GetWhichPtOfNormal:function(t,e,o,l){var i=0;i=SuperMap.Plot.PlottingUtil.distance(l,e)/t;var n=this.GetPointsOfNormal(i,o,l);return SuperMap.Plot.PlottingUtil.distance(e,n.pt4)>=(i=SuperMap.Plot.PlottingUtil.distance(e,n.pt3))?n.pt3:n.pt4},getBezierPtsWithScalePts:function(t,e,o,l){var i=[],n=t.x,r=t.y,a=e.x,s=e.y,p=o.x,u=o.y,P=l.x,c=l.y;if(SuperMap.Plot.PlottingUtil.equalFuzzy(n,a,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(r,s,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(p,P,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(u,c,1e-10))i.push(new SuperMap.Geometry.Point(n,r)),i.push(new SuperMap.Geometry.Point(p,u));else for(var y=0;y<=1;y+=.03125){var h,S,f,g,M=y*y,d=M*y;h=1-3*y+3*M-d,S=3*(y-2*M+d),f=3*(M-d),g=d;var m=new SuperMap.Geometry.Point(h*n+S*a+f*p+g*P,h*r+S*s+f*u+g*c);i.push(m)}return i},getSpatialData:function(t,e,o,l){switch(null==l&&(l=!0),t){case 24:return this.polyline(e);case 390:return this.kidney(e,l);case 590:return this.bezier(e,l);case 360:return this.loopbezier(e,l);case 28:return this.parallelogram(e);case 32:return this.polygon(e);case 29:return this.circle(e);case 26:return this.rectangle(e);case 380:return this.sector(e);case 370:return this.lune(e);case 44:return this.arc(e);case 31:return this.ellipse(e,o,l);case 48:return this.parallelline(e);default:return e}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.PlottingUtil=SuperMap.Plot.PlottingUtil=SuperMap.Plot.PlottingUtil||{};SuperMap.Plot.PlottingUtil.DEFAULT_PRECISION=14,SuperMap.Plot.PlottingUtil.DPI=96,SuperMap.Plot.PlottingUtil.RTOD=57.29577951308232,SuperMap.Plot.PlottingUtil.DTOR=.017453292519943295,SuperMap.Plot.PlottingUtil.dirAngle=function(t,e){var o,l,i,n;o=e.x,l=e.y,i=o-t.x,n=l-t.y;var r=Math.atan2(n,i);return r<0&&(r+=2*Math.PI),r},SuperMap.Plot.PlottingUtil.generateUuid=function(){for(var t=[],e=0;e<36;e++)t[e]="0123456789abcdef".substr(Math.floor(16*Math.random()),1);return t[14]="4",t[19]="0123456789abcdef".substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="-",t.join("")},SuperMap.Plot.PlottingUtil.cloneObject=function(t){return JSON.parse(JSON.stringify(t))},SuperMap.Plot.PlottingUtil.colorRGBA=function(t,e){var o=t.substring(1,3),l=parseInt(o,16),i=t.substring(3,5),n=parseInt(i,16),r=t.substring(5);return"rgba("+l+","+n+","+parseInt(r,16)+","+e+")"},SuperMap.Plot.PlottingUtil.colorRGBToString=function(t){var e=t.red.toString(16);e.length<2&&(e="0"+e);var o=t.green.toString(16);o.length<2&&(o="0"+o);var l=t.blue.toString(16);return l.length<2&&(l="0"+l),"#"+e+o+l},SuperMap.Plot.PlottingUtil.colorStringToRGB=function(t){var e={},o=t.substring(1,3);e.red=parseInt(o,16);var l=t.substring(3,5);e.green=parseInt(l,16);var i=t.substring(5);return e.blue=parseInt(i,16),e},SuperMap.Plot.PlottingUtil.decimalToHex=function(t){for(var e=t.toString(16);e.length<8;)e="0"+e;var o=e.substring(0,2),l=e.substring(2,4),i=e.substring(4,6);return{color:"#"+e.substring(6)+i+l,alpha:parseInt(o,16)/255}},SuperMap.Plot.PlottingUtil.hexToDecimal=function(t,e){var o=t.substring(1,3),l=t.substring(3,5),i=t.substring(5),n=parseInt(i+l+o,16),r=Math.round(255*e).toString(16);return parseInt(r+"000000",16)+n},SuperMap.Plot.PlottingUtil.getAlign=function(t){return"TOPLEFT"===t?"lt":"TOPCENTER"===t?"ct":"TOPRIGHT"===t?"rt":"BOTTOMLEFT"===t?"lb":"BOTTOMCENTER"===t?"cb":"BOTTOMRIGHT"===t?"rb":"MIDDLELEFT"===t?"lm":"MIDDLECENTER"===t?"cm":"MIDDLERIGHT"===t?"rm":"lt"},SuperMap.Plot.PlottingUtil.trim=function(t){return null==t?"":t.replace(/(^\s*)|(\s*$)/g,"")},SuperMap.Plot.PlottingUtil.getTextWidth=function(t,e){" "===e&&(e="_");var o=document.createElement("span");document.body.appendChild(o),o.style.width="auto",o.style.height="auto",t.fontSize&&(o.style.fontSize=new String(t.fontSize)+"px"),t.fontFamily&&(o.style.fontFamily=t.fontFamily),t.fontWeight&&(o.style.fontWeight=t.fontWeight),o.style.position="absolute",o.style.visibility="hidden",o.style.display="inline-block",o.innerHTML=e;var l=o.clientWidth,i=e.length;return void 0===t.fontSpace&&void 0===t.fontPercent||(0!==t.fontSpace&&100!==t.fontPercent&&void 0!==t.fontSpace||void 0!==t.fontPercent?l=t.fontPercent/100*l+t.fontSpace*(t.fontPercent/100)*(i-1):0===t.fontSpace&&100!==t.fontPercent&&void 0!==t.fontPercent?l=t.fontPercent/100*l:0!==t.fontSpace&&100===t.fontPercent&&void 0!==t.fontSpace&&(l+=t.fontSpace*(i-1))),document.body.removeChild(o),l},SuperMap.Plot.PlottingUtil.getTextCount=function(t){for(var e=0,o=0,l=0;l<t.length;l++)t.charCodeAt(l)>255?e++:o++;return e+o/2},SuperMap.Plot.PlottingUtil.toJSON=function(t){var e=t;if(null==e)return null;switch(e.constructor){case String:return e=(e=(e=(e=(e=(e=(e='"'+e.replace(/(["\\])/g,"\\$1")+'"').replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace("<","<")).replace(">",">")).replace(/%/g,"%2525")).replace(/&/g,"%26");case Array:for(var o=[],i=0,n=e.length;i<n;i++)o.push(SuperMap.Plot.PlottingUtil.toJSON(e[i]));return"["+o.join(",")+"]";case Number:return isFinite(e)?String(e):null;case Boolean:return String(e);case Date:return"{'__type':\"System.DateTime\",'Year':"+e.getFullYear()+",'Month':"+(e.getMonth()+1)+",'Day':"+e.getDate()+",'Hour':"+e.getHours()+",'Minute':"+e.getMinutes()+",'Second':"+e.getSeconds()+",'Millisecond':"+e.getMilliseconds()+",'TimezoneOffset':"+e.getTimezoneOffset()+"}";default:if(null!=e.toJSON&&"function"==typeof e.toJSON)return e.toJSON();if("object"===(void 0===e?"undefined":l(e))){if(e.length){for(var r=[],a=0,s=e.length;a<s;a++)r.push(SuperMap.Plot.PlottingUtil.toJSON(e[a]));return"["+r.join(",")+"]"}var p=[];for(var u in e)"function"!=typeof e[u]&&"CLASS_NAME"!==u&&"parent"!==u&&p.push('"'+u+'":'+SuperMap.Plot.PlottingUtil.toJSON(e[u]));return p.length>0?"{"+p.join(",")+"}":"{}"}return e.toString()}},SuperMap.Plot.PlottingUtil.copyFeature=function(t){var e=null;if(null!=t&&t.geometry){var o=t.geometry.clone();e=new SuperMap.Feature.Vector(o),t.style&&(e.style=SuperMap.Plot.PlottingUtil.copyAttributes(e.style,t.style)),o.feature=e,o.calculateParts()}return e},SuperMap.Plot.PlottingUtil.getSurroundLinePts=function(t,e){for(var o=[],l=[],i=0;i<t.length-1;i++){var n,r,a=[];if(!SuperMap.Plot.PlottingUtil.equalFuzzy(t[i].x,t[i+1].x)||!SuperMap.Plot.PlottingUtil.equalFuzzy(t[i].y,t[i+1].y)){a.push(t[i]),a.push(t[i+1]);var s=SuperMap.Plot.PlottingUtil.parallel(a,e);if(n=s[0],r=s[1],0!=o.length){var p=SuperMap.Plot.PlottingUtil.intersectLines(n,r,o[0],o[1]);if(p.isIntersectLines){var u=p.intersectPoint,P=SuperMap.Plot.PlottingUtil.distance(n,r);SuperMap.Plot.PlottingUtil.distance(u,r)>2*P?l.push(r):(l[l.length-1]=u,l.push(r))}else l.push(r)}else l.push(n),l.push(r);(o=[]).push(l[l.length-2]),o.push(l[l.length-1])}}if(t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y&&1<l.length){var c=SuperMap.Plot.PlottingUtil.intersectLines(l[0],l[1],l[l.length-2],l[l.length-1]);if(c.isIntersectLines){var y=c.intersectPoint;l[l.length-1]=y,l[0]=y}}return l},SuperMap.Plot.PlottingUtil.copyFontStyle=function(t,e){void 0===t.labelAlign&&void 0!==e.labelAlign&&(t.labelAlign=e.labelAlign),!0!==t.fontSizeLimit&&(void 0!==e.fontSize&&(t.fontSize=e.fontSize),void 0!==e.fontWeight&&(t.fontWeight=e.fontWeight),void 0!==e.fontStyle&&(t.fontStyle=e.fontStyle),void 0!==e.fontSpace&&(t.fontSpace=e.fontSpace),void 0!==e.fontPercent&&(t.fontPercent=e.fontPercent)),t.strokeWidth=e.strokeWidth},SuperMap.Plot.PlottingUtil.getDataFromServer=function(t,e,o,i,n,r,a,s){var p=void 0;if(void 0!==r&&(p=r),"undefined"!=typeof SuperMap&&void 0!==SuperMap.GetSymbolInfoService){var u=new SuperMap.GetSymbolInfoService(t);u.events.on({processCompleted:a,processFailed:s,scope:p});var P=new SuperMap.GetSymbolInfoParameters;P.libID=e,P.code=o,n&&SuperMap.Plot.PlottingUtil.extend(P,n),i&&null!=i&&(SuperMap.Plot.PlottingUtil.isArray(i)||(i=[i]),P.inputPoints=i),u.processAsync(P)}else if(void 0!==("undefined"==typeof SuperMap?"undefined":l(SuperMap))&&void 0!==l(SuperMap.REST)&&void 0!==l(SuperMap.REST.GetSymbolInfoService)){var c=new SuperMap.REST.GetSymbolInfoService(t);c.events.on({processCompleted:a,processFailed:s,scope:p});var y=new SuperMap.REST.GetSymbolInfoParameters;if(y.libID=e,y.code=o,n&&SuperMap.Plot.PlottingUtil.extend(y,n),i&&null!=i&&(SuperMap.Plot.PlottingUtil.isArray(i)||(i=[i]),y.inputPoints=i),n&&n.credential){var h=n.credential;c.processAsync(y,h)}else c.processAsync(y)}},SuperMap.Plot.PlottingUtil.innerOutlineDir=function(t){function e(t,e){function o(t){var e=Math.atan2(t.y,t.x);return e<0&&(e+=2*Math.PI),e}var l=o(e)-o(t);return l<-Math.PI&&(l+=2*Math.PI),l>Math.PI&&(l-=2*Math.PI),l}if(t.length<3)return 1;for(var o=0,l={x:0,y:0},i={x:0,y:0},n=2;n<t.length;n++)i.x=t[n].x-t[n-1].x,i.y=t[n].y-t[n-1].y,l.x=t[n-1].x-t[n-2].x,l.y=t[n-1].y-t[n-2].y,o+=e(l,i);return i.x=t[1].x-t[0].x,i.y=t[1].y-t[0].y,l.x=t[0].x-t[t.length-1].x,l.y=t[0].y-t[t.length-1].y,(o+=e(l,i))>=0?-1:1},SuperMap.Plot.PlottingUtil.isNear=function(t,e){return e||(e=SuperMap.Plot.PlottingUtil.TORLERANCE_STATIC),t<e&&t>-e},SuperMap.Plot.PlottingUtil.equalFuzzy=function(t,e,o){return o||(o=1e-18),Math.abs(t-e)<=o},SuperMap.Plot.PlottingUtil.intersectLines=function(t,e,o,l){var i={isIntersectLines:!1};if(t.x===e.x&&t.y===e.y||o.x===l.x&&o.y===l.y)return i;var n=e.x-t.x,r=e.y-t.y,a=l.x-o.x,s=l.y-o.y,p=n*s-a*r;if(SuperMap.Plot.PlottingUtil.isNear(p))return i;var u=(n*(t.y-o.y)-r*(t.x-o.x))/p,P=new SuperMap.Geometry.Point(0,0);return P.x=u*a+o.x,P.y=u*s+o.y,i.isIntersectLines=!0,i.intersectPoint=P,i},SuperMap.Plot.PlottingUtil.getEnvelopePoints=function(t){function e(t,e){if(t.length!==e.length)return!1;for(var o=0;o<t.length;o++)if(t[o].x!==e[o].x||t[o].y!==e[o].y)return!1;return!0}function o(t,e,o){for(var l=0;l<t.length;l++)if(t[l].containsPoint(e))return o.index=l,!0;return!1}function l(t,e,o){for(var l=t.components[0].components,i=new SuperMap.Geometry.Point(0,0),n=0;n<l.length-1;n++)if(SuperMap.Plot.PlottingUtil.intersectLineSegs(e,o,l[n],l[n+1],i))return i;return null}function i(t,e){if(0===t.length||SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].x,e[e.length-1].x,.5)&&SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].y,e[e.length-1].y,.5))return e;for(var o=e[e.length-1],l=0;l<t.length;l++)if(SuperMap.Plot.PlottingUtil.equalFuzzy(t[l][0].x,o.x,.5)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[l][0].y,o.y,.5)){e=e.concat(t[l]),t.splice(l,1);var n=i(t,e);if(void 0!==n&&0!==n.length)return n}else if(SuperMap.Plot.PlottingUtil.equalFuzzy(t[l][t[l].length-1].x,o.x,.5)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[l][t[l].length-1].y,o.y,.5)){for(var r=t[l].length-1;r>=0;r--)e.push(t[l][r]);t.splice(l,1);var a=i(t,e);if(void 0!==a&&0!==a.length)return a}return e}if(SuperMap.Plot.PlottingUtil.isArray(t)||(t=[t]),0===t.length)return[];if(1===t.length)return t[0];for(var n=0;n<t.length;n++)for(var r=n+1;r<t.length;)e(t[n],t[r])?t.splice(r,1):r++;for(var a=[],s=0;s<t.length;s++)a.push(new SuperMap.Geometry.Polygon([new SuperMap.Geometry.LinearRing(t[s])]));for(var p=[],u=0;u<t.length;u++){var P=[],c=[],y=-1,h=-1,S=a.slice();S.splice(u,1);for(var f={},g=0;g<t[u].length;g++)if(o(S,t[u][g],f)){if(0!==c.length){var M=l(a[f.index],t[u][g-1],t[u][g]);M&&M!==t[u][g-1]&&M!==t[u][g]&&c.push(M),P.push(c),c=[]}}else{if(0===g&&(y=P.length),g===t[u].length-1&&(h=P.length),0===c.length&&void 0!==f.index){var d=l(a[f.index],t[u][g-1],t[u][g]);d&&d!==t[u][g-1]&&d!==t[u][g]&&c.push(d)}c.push(t[u][g].clone())}if(0!==c.length&&P.push(c),y<P.length&&h<P.length&&y!==h){for(var m=0;m<P[y].length;m++)P[h].push(P[y][m]);P.splice(y,1)}p=p.concat(P)}for(var v=[];0!==p.length;){var b=p[0];p.splice(0,1);var A=i(p,b);void 0!==A&&(b=A),b.length>2&&v.push(b)}return v},SuperMap.Plot.PlottingUtil.isRight=function(t,e,o){var l=e,i=o,n=e,r=t;return(i.x-l.x)*(r.y-n.y)-(r.x-n.x)*(i.y-l.y)<0},SuperMap.Plot.PlottingUtil.radian=function(t,e){var o,l,i=0;return o=e.x-t.x,l=e.y-t.y,(i=Math.atan2(l,o))<0&&(i+=2*Math.PI),i},SuperMap.Plot.PlottingUtil.findBisectorPoint=function(t,e,o,l){var i=SuperMap.Plot.PlottingUtil.radian(e,t),n=(i+SuperMap.Plot.PlottingUtil.radian(e,o))/2,r=Math.cos(n-i+Math.PI/2),a=l;SuperMap.Plot.PlottingUtil.isNear(r,.15)||(a=l/r);var s=e.x+a*Math.cos(n),p=e.y+a*Math.sin(n);return new SuperMap.Geometry.Point(s,p)},SuperMap.Plot.PlottingUtil.findPoint=function(t,e,o,l){if(t===e||Math.abs(o)<1e-18)return t;var i=SuperMap.Plot.PlottingUtil.radian(t,e)+l*Math.PI/180,n=t.x+o*Math.cos(i),r=t.y+o*Math.sin(i);return new SuperMap.Geometry.Point(n,r)},SuperMap.Plot.PlottingUtil.isSameQuadrant=function(t,e,o,l){var i=(e.x-t.x)*(l.x-o.x),n=(e.y-t.y)*(l.y-o.y);return!(Math.abs(i)<1e-18&&Math.abs(n)<1e-18)&&((i>0||Math.abs(i)<1e-18)&&(n>0||Math.abs(n)<1e-18))},SuperMap.Plot.PlottingUtil.isCross=function(t,e,o,l){var i=new SuperMap.Geometry.Point(0,0);return!(!SuperMap.Plot.PlottingUtil.intersectLineSegs(t,e,o,l,i)||i==t||i===e||i===o||i==l)},SuperMap.Plot.PlottingUtil.intersectLineSegs=function(t,e,o,l,i){if(SuperMap.Plot.PlottingUtil.equalFuzzy(t.x,e.x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t.y,e.y))return i.x=t.x,i.y=t.y,!1;if(SuperMap.Plot.PlottingUtil.equalFuzzy(o.x,l.x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(o.y,l.y))return i.x=o.x,i.y=o.y,!1;var n=0,r=0;if(n=t.x>e.x?t.x:e.x,r=t.x<e.x?t.x:e.x,o.x-n>1e-16&&l.x-n>1e-16||o.x-r<-1e-16&&l.x-r<-1e-16)return!1;if(n=t.y>e.y?t.y:e.y,r=t.y<e.y?t.y:e.y,o.y-n>1e-16&&l.y-n>1e-16||o.y-r<-1e-16&&l.y-r<-1e-16)return!1;var a=e.x-t.x,s=e.y-t.y,p=l.x-o.x,u=l.y-o.y,P=t.x-o.x,c=t.y-o.y,y=a*u-p*s,h=y;if(Math.abs(a)>1e-18&&Math.abs(p)>1e-18&&(h/=a*p),Math.abs(h)<1e-18)return t===o?(i.x=t.x,i.y=t.y,!SuperMap.Plot.PlottingUtil.isSameQuadrant(t,e,o,l)):e===l?(i.x=e.x,i.y=e.y,!SuperMap.Plot.PlottingUtil.isSameQuadrant(t,e,o,l)):t===l?(i.x=t.x,i.y=t.y,SuperMap.Plot.PlottingUtil.isSameQuadrant(t,e,o,l)):e===o&&(i.x=e.x,i.y=e.y,SuperMap.Plot.PlottingUtil.isSameQuadrant(t,e,o,l));var S=(a*c-s*P)/y,f=(p*c-u*P)/y;return!(S<0&&(Math.abs(S*p)>1e-16||Math.abs(S*u)>1e-16))&&(!(S>1&&(Math.abs((S-1)*p)>1e-16||Math.abs((S-1)*u)>1e-16))&&(!(f<0&&(Math.abs(f*a)>1e-16||Math.abs(f*s)>1e-16))&&(!(f>1&&(Math.abs((f-1)*a)>1e-16||Math.abs((f-1)*s)>1e-16))&&(Math.abs(S)<1e-18?(i.x=o.x,i.y=o.y,!0):Math.abs(S-1)<1e-18?(i.x=l.x,i.y=l.y,!0):Math.abs(f)<1e-18?(i.x=t.x,i.y=t.y,!0):Math.abs(f-1)<1e-18?(i.x=e.x,i.y=e.y,!0):!(S<0&&(Math.abs(S*p)>1e-16||Math.abs(S*u)>1e-16))&&(!(S>1&&(Math.abs((S-1)*p)>1e-16||Math.abs((S-1)*u)>1e-16))&&(!(f<0&&(Math.abs(f*a)>1e-16||Math.abs(f*s)>1e-16))&&(!(f>1&&(Math.abs((f-1)*a)>1e-16||Math.abs((f-1)*s)>1e-16))&&(i.x=S*p+o.x,i.y=S*u+o.y,!0))))))))},SuperMap.Plot.PlottingUtil.parallel=function(t,e){var o=[],l=t.length;if(!t||null==t||t.length<2)return o;var i=!1;t.length>3&&t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y&&(i=!0),i?(o[0]=SuperMap.Plot.PlottingUtil.findBisectorPoint(t[t.length-2],t[0],t[1],e),o[t.length-1]=o[0]):(o[0]=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,90),o[t.length-1]=SuperMap.Plot.PlottingUtil.findPoint(t[t.length-1],t[t.length-2],-e,90));for(var n=t[0],r=t[1],a=t[1],s=1;s<t.length-1;s++)if(r=t[s],t[s]!==t[s-1]&&(n=t[s-1]),t[s]!==t[s+1]){a=t[s+1];var p=SuperMap.Plot.PlottingUtil.findBisectorPoint(n,r,a,e);SuperMap.Plot.PlottingUtil.isCross(n,o[s-1],r,p)&&(p=o[s-1]),o[s]=p}else{for(var u=s;u<l-1;){if(t[u]!==t[u+1]){a=t[u+1];break}u++}if(u<l-1){var P=SuperMap.Plot.PlottingUtil.FindBisectorPoint(n,r,a,e);for(SuperMap.Plot.PlottingUtil.isCross(n,o[s-1],r,P)&&(P=o[s-1]);s<u;)o[s]=P,s++;s=u-1}}return o},SuperMap.Plot.PlottingUtil.distance=function(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))},SuperMap.Plot.PlottingUtil.projectPoint=function(t,e,o){if(e===o)return e;var l=new SuperMap.Geometry.Point(0,0),i=o.x-e.x,n=e.y-o.y,r=i*i,a=n*n,s=i*n,p=i*i+n*n;return l.x=(s*(e.y-t.y)+e.x*a+t.x*r)/p,l.y=(s*(e.x-t.x)+e.y*r+t.y*a)/p,l},SuperMap.Plot.PlottingUtil.pointToLineDis=function(t,e,o){var l=SuperMap.Plot.PlottingUtil.projectPoint(t,e,o);return SuperMap.Plot.PlottingUtil.distance(t,l)},SuperMap.Plot.PlottingUtil.pointToPloyLineDis=function(t,e,o){if(e===o)return SuperMap.Plot.PlottingUtil.distance(t,e);var l=(e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y),i=(o.x-t.x)*(o.x-t.x)+(o.y-t.y)*(o.y-t.y),n=(e.x-o.x)*(e.x-o.x)+(e.y-o.y)*(e.y-o.y),r=(l+n-i)/(2*n);r<0?r=0:r>1&&(r=1);var a=(o.x-e.x)*r+e.x,s=(o.y-e.y)*r+e.y,p=(a-t.x)*(a-t.x)+(s-t.y)*(s-t.y);return Math.sqrt(p)},SuperMap.Plot.PlottingUtil.isCounterClockwise=function(t,e,o){return(o.x-e.x)*(t.y-e.y)-(t.x-e.x)*(o.y-e.y)>0},SuperMap.Plot.PlottingUtil.clearSamePts=function(t){for(var e=t.length,o=0;o<e-1;)SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].x,t[o+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].y,t[o+1].y)?(t.splice(o,1),e--):o++;return t},SuperMap.Plot.PlottingUtil.getBeizerCtrlPt=function(t){var e=[],o=t.length;if(o<3)for(var l=0;l<o;++l)e[l]=t[l].clone();else{for(var i=0,n=0;n<3*o-2;n+=3)e[n]=t[i].clone(),e[n+1]=new SuperMap.Geometry.Point(0,0),e[n+2]=new SuperMap.Geometry.Point(0,0),i++;for(var r=1;r<o-1;r++)SuperMap.Plot.PlottingUtil.getTrianglePoints(8,3,t[r-1],t[r],t[r+1],e[3*r+1],e[3*r+2]);SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.6,e[0],e[3],e[4],e[2]),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.6,e[3*o-3],e[3*o-6],e[3*o-4],e[3*o-2]),e[1]=t[0].clone(),e[3*o-1]=t[o-1].clone()}return e},SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt=function(t,e){var o=t.slice();!0===e&&o.push(o[0]);var l=SuperMap.Plot.PlottingUtil.getBeizerCtrlPt(o);return SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(l)},SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt=function(t){var e=t.length,o=[];if(t.length<3)for(var l=0;l<e;l++)o[l]=t[l].clone();else for(var i=0;i<e;i+=3)if(!(i+4>=e)){var n=t[i].x,r=t[i].y,a=t[i+2].x,s=t[i+2].y,p=t[i+4].x,u=t[i+4].y,P=t[i+3].x,c=t[i+3].y;if(SuperMap.Plot.PlottingUtil.equalFuzzy(n,a,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(r,s,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(p,P,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(u,c,1e-10))o.push(new SuperMap.Geometry.Point(n,r)),o.push(new SuperMap.Geometry.Point(p,u));else for(var y=0;y<=1;y+=.03125){var h,S,f,g,M=y*y,d=M*y;h=1-3*y+3*M-d,S=3*(y-2*M+d),f=3*(M-d),g=d;var m=new SuperMap.Geometry.Point(h*n+S*a+f*p+g*P,h*r+S*s+f*u+g*c);o.push(m)}}return o},SuperMap.Plot.PlottingUtil.computeBeizerPoints=function(t,e,o){var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),i=[],n=[],r=[];if(t){n.push(e[0]);var a=o[0],s=o[1],p=e[0].x+l*a,u=e[0].y+l*s;n.push(new SuperMap.Geometry.Point(p,u)),i.push(new SuperMap.Geometry.Point(p,u));for(var P=1;P<e.length-1;P++){var c=o[4*P-2],y=o[4*P-1],h=e[P].x+l*c,S=e[P].y+l*y;n.push(new SuperMap.Geometry.Point(h,S)),i.push(new SuperMap.Geometry.Point(h,S)),n.push(new SuperMap.Geometry.Point(e[P].x,e[P].y)),c=o[4*P],y=o[4*P+1],h=e[P].x+l*c,S=e[P].y+l*y,n.push(new SuperMap.Geometry.Point(h,S)),i.push(new SuperMap.Geometry.Point(h,S))}var f=e.length-1;a=o[4*f-2],s=o[4*f-1],p=e[f].x+l*a,u=e[f].y+l*s,n.push(new SuperMap.Geometry.Point(p,u)),i.push(new SuperMap.Geometry.Point(p,u)),n.push(new SuperMap.Geometry.Point(e[f].x,e[f].y)),n.push(new SuperMap.Geometry.Point(e[f].x,e[f].y)),n.push(new SuperMap.Geometry.Point(e[f].x,e[f].y)),r=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(n)}else{o=[];var g=(n=SuperMap.Plot.PlottingUtil.getBeizerCtrlPt(e))[1].x-n[0].x,M=n[1].y-n[0].y,d=g/l,m=M/l;o.push(d),o.push(m),i.push(n[1]);for(var v=1;v<e.length-1;v++){var b=(n[3*v-1].x-n[3*v].x)/l,A=(n[3*v-1].y-n[3*v].y)/l;o.push(b),o.push(A),i.push(n[3*v-1]);var L=(n[3*v+1].x-n[3*v].x)/l,T=(n[3*v+1].y-n[3*v].y)/l;o.push(L),o.push(T),i.push(n[3*v+1])}d=(g=n[3*(e.length-1)-1].x-n[3*(e.length-1)].x)/l,m=(M=n[3*(e.length-1)-1].y-n[3*(e.length-1)].y)/l,o.push(d),o.push(m),i.push(n[3*(e.length-1)-1]),r=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(n)}return{scalePoints:i,scaleValues:o,beizerPoints:r}},SuperMap.Plot.PlottingUtil.getTrianglePoints=function(t,e,o,l,i,n,r){var a=o.x,s=o.y,p=l.x,u=l.y,P=i.x,c=i.y;SuperMap.Plot.PlottingUtil.getPointsByTriangle(t,e,a,s,p,u,P,c,n,r)},SuperMap.Plot.PlottingUtil.getPointsByTriangle=function(t,e,o,l,i,n,r,a,s,p){var u=i+(r-o),P=n+(a-l),c=0,y=0;if(o==r)c=o,y=P;else if(l==a)c=u,y=l;else{var h=1*(a-l)/(r-o),S=l-o*h;y=h*(c=(P+u/h-S)/(h+1/h))+S}var f=Math.sqrt(1*(i-u)*(i-u)+1*(n-P)*(n-P)),g=Math.sqrt(1*(o-i)*(o-i)+1*(l-n)*(l-n)),M=Math.sqrt(1*(i-r)*(i-r)+1*(n-a)*(n-a)),d=0;u=c+(u-c)*(d=g+M?1+(M-g)*t/(M+g):1),P=y+(P-y)*d,0==f&&(f=1),s.x=i+(i-u)*g/(e*f),s.y=n+(n-P)*g/(e*f),p.x=i+(u-i)*M/(e*f),p.y=n+(P-n)*M/(e*f)},SuperMap.Plot.PlottingUtil.getTrapezoidPoints=function(t,e,o,l,i){var n=e.x,r=e.y,a=o.x,s=o.y,p=l.x,u=l.y;return SuperMap.Plot.PlottingUtil.getPointsByTrapezoid(t,n,r,a,s,p,u,i)},SuperMap.Plot.PlottingUtil.getPointsByTrapezoid=function(t,e,o,l,i,n,r,a){var s=0,p=0,u=0,P=0;if(0==Math.abs(o-i))s=e+l-n,p=r;else if(0==Math.abs(e-l))s=n,p=o+i-r;else{var c=1*(o-i)/(e-l),y=r-c*n;p=c*(s=((i+o)/2+(e+l)/(2*c)-y)/(c+1/c))+y,s=2*s-n,p=2*p-r}var h=Math.sqrt(1*(e-l)*(e-l)+1*(o-i)*(o-i)),S=Math.sqrt(1*(e-s)*(e-s)+1*(o-p)*(o-p));return h>0?(u=e+(l-e)*S/h,P=o+(i-o)*S/h):(u=e,P=o),a.x=u+(s-u)*t,a.y=P+(p-P)*t,a},SuperMap.Plot.PlottingUtil.pointIsOnPolyLine=function(t,e,o){if(SuperMap.Plot.PlottingUtil.equalFuzzy(t.x,e.x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t.y,e.y)||SuperMap.Plot.PlottingUtil.equalFuzzy(t.x,o.x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t.y,o.y))return!0;var l=t.x-e.x,i=t.y-e.y,n=t.x-o.x,r=t.y-o.y,a=(l*n+i*r)/(Math.sqrt(l*l+i*i)*Math.sqrt(n*n+r*r));return!!SuperMap.Plot.PlottingUtil.equalFuzzy(a,-1,.1)},SuperMap.Plot.PlottingUtil.pointIsOnPolyLines=function(t,e){if(!e||0===e.length)return{isOnPolyLine:!1,index:-1};for(var o=!1,l=-1,i=0;i<e.length-1;i++)if(o=SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(t,e[i],e[i+1])){l=i;break}return{isOnPolyLine:o,index:l}},SuperMap.Plot.PlottingUtil.computePointToLineMinDis=function(t,e){for(var o=-1,l=-1,i=0;i<e.length-1;i++){var n=e[i],r=e[i+1],a=SuperMap.Plot.PlottingUtil.projectPoint(t,n,r);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(a,n,r)){var s=SuperMap.Plot.PlottingUtil.distance(t,a);o<0?(o=s,l&&(l=i)):o>s&&(o=s,l=i)}}return l&&o<0&&(l=-1),{minDis:o,index:l}},SuperMap.Plot.PlottingUtil.findPointInLine=function(t,e,o){if(t===e||Math.abs(o)<1e-18)return t;var l=e.x-t.x,i=e.y-t.y,n=o/Math.sqrt(l*l+i*i),r=t.x+l*n,a=t.y+i*n;return new SuperMap.Geometry.Point(r,a)},SuperMap.Plot.PlottingUtil.operateControlPoints=function(t){var e=t,o=e.length;if(3==o){var l=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrapezoidPoints(1,t[0],t[1],t[2],l),e.push(l)}if(o>4&&(e.splice(4,o-4),o=e.length),SuperMap.Plot.PlottingUtil.pointIsRightToLine(t[0],t[1],e[2])){var i=e[0];e[0]=e[1],e[1]=i}if(!SuperMap.Plot.PlottingUtil.pointIsRightToVerticle(e[0],e[1],e[2])){var n=e[2];e[2]=e[3],e[3]=n}return e},SuperMap.Plot.PlottingUtil.pointIsRightToLine=function(t,e,o){return(e.x-t.x)*(o.y-t.y)-(o.x-t.x)*(e.y-t.y)<0},SuperMap.Plot.PlottingUtil.pointIsRightToVerticle=function(t,e,o){var l=new SuperMap.Geometry.Point(.5*(e.x+t.x),.5*(e.y+t.y)),i=new SuperMap.Geometry.Point(e.x-t.x,e.y-t.y),n=new SuperMap.Geometry.Point(o.x-l.x,o.y-l.y);return i.x*n.x+i.y*n.y>0},SuperMap.Plot.PlottingUtil.linePnt=function(t,e,o){var l=SuperMap.Plot.PlottingUtil.distance(t,e);if(0==l)return t;var i=o/l;return SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(i,t,e)},SuperMap.Plot.PlottingUtil.findPointOnLineByRatio=function(t,e,o){var l=new SuperMap.Geometry.Point(0,0);return l.x=e.x+(o.x-e.x)*t,l.y=e.y+(o.y-e.y)*t,l},SuperMap.Plot.PlottingUtil.rotateAngle=function(t,e,o){var l=e,i=Math.cos(l),n=Math.sin(l),r=o.x-t.x,a=o.y-t.y;return o.x=r*i-a*n+t.x,o.y=r*n+a*i+t.y,o},SuperMap.Plot.PlottingUtil.resize=function(t,e,o){return o.x=t.x+e*(o.x-t.x),o.y=t.y+e*(o.y-t.y),o},SuperMap.Plot.PlottingUtil.findPointInPolyLine=function(t,e){if(e<0||t.length<2)return{index:-1,pt:null};if(Math.abs(e)<1e-18)return{index:0,pt:t[0]};for(var o=0,l=0;l<t.length-1;l++)if((o+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]))>e||SuperMap.Plot.PlottingUtil.equalFuzzy(o,e)){var i=o-e,n=t[l+1],r=t[l],a=i/SuperMap.Plot.PlottingUtil.distance(n,r),s=new SuperMap.Geometry.Point(0,0);return s.x=n.x+(r.x-n.x)*a,s.y=n.y+(r.y-n.y)*a,{index:l,pt:s}}return{index:-1,pt:null}},SuperMap.Plot.PlottingUtil.polylineDistance=function(t){if(0===t.length)return 0;for(var e=0,o=0;o<t.length-1;o++)e+=SuperMap.Plot.PlottingUtil.distance(t[o],t[o+1]);return e},SuperMap.Plot.PlottingUtil.rotate=function(t,e,o,l){var i=l.x-t.x,n=l.y-t.y,r=i*e-n*o+t.x,a=i*o+n*e+t.y;return new SuperMap.Geometry.Point(r,a)},SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale=function(t,e,o){var l=e.x,i=e.y,n=o.x,r=o.y,a=Math.sqrt(1*(l-n)*(l-n)+1*(i-r)*(i-r)),s=0,p=0;return 0==a?(s=l,p=i):(s=l+(n-l)*t/a,p=i+(r-i)*t/a),new SuperMap.Geometry.Point(s,p)},SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale=function(t,e,o){var l=e.x,i=e.y,n=o.x,r=o.y,a=0,s=0,p=Math.sqrt(1*(l-n)*(l-n)+1*(i-r)*(i-r));return 0===p?(a=l,s=i):(a=l+(l-n)*t/p,s=i+(i-r)*t/p),new SuperMap.Geometry.Point(a,s)},SuperMap.Plot.PlottingUtil.getSidePointsOfLine=function(t,e,o){var l=e.x,i=e.y,n=o.x,r=o.y,a=Math.sqrt(1*(l-n)*(l-n)+1*(i-r)*(i-r)),s=0,p=0;0==a?(p=0,s=t):(s=t*(l-n)/a,p=t*(i-r)/a);var u=-p+n,P=+s+r,c=+p+n,y=-s+r;return{pntLeft:new SuperMap.Geometry.Point(c,y),pntRight:new SuperMap.Geometry.Point(u,P)}},SuperMap.Plot.PlottingUtil.pointProjectToSegment=function(t,e,o){var l=0,i=0,n=0,r=1,a=void 0,s=void 0;if(i=e.x!==t.x?(e.y-t.y)/(e.x-t.x):1.7976931348623157e308,n=o.x!==t.x?(o.y-t.y)/(o.x-t.x):1.7976931348623157e308,l=o.y!==e.y?(o.x-e.x)/(e.y-o.y):1.7976931348623157e308,(a=e.x>=t.x&&e.y>=t.y?1:e.x<t.x&&e.y>t.y?2:e.x<=t.x&&e.y<=t.y?3:4)==(s=o.x>t.x&&o.y>t.y?1:o.x<t.x&&o.y>t.y?2:o.x<t.x&&o.y<t.y?3:4))(i<l&&n<l||i>l&&n>l)&&(r=0);else switch(a){case 1:(4==s&&i<l||2==s&&i>l)&&(r=0);break;case 2:(1==s&&i<l||3==s&&i>l)&&(r=0);break;case 3:(2==s&&i<l||4==s&&i>l)&&(r=0);break;case 4:(3==s&&i<l||1==s&&i>l)&&(r=0)}var p=new SuperMap.Geometry.Point(0,0);return SuperMap.Plot.PlottingUtil.equalFuzzy(l-1.7976931348623157e308,0)?(p.x=t.x,p.y=e.y):SuperMap.Plot.PlottingUtil.equalFuzzy(l,0)?(p.x=e.x,p.y=t.y):(p.x=(l*(e.y-t.y)+l*l*t.x+e.x)/(l*l+1),p.y=t.y+l*(p.x-t.x)),{isOnline:1===r,projectPoint:p}},SuperMap.Plot.PlottingUtil.coordinateTrans=function(t,e,o){var l=SuperMap.Plot.PlottingUtil.distance(new SuperMap.Geometry.Point(0,0),e),i=SuperMap.Plot.PlottingUtil.radian(new SuperMap.Geometry.Point(0,0),e)+o*Math.PI/180,n=l*Math.cos(i)+t.x,r=l*Math.sin(i)+t.y;return new SuperMap.Geometry.Point(n,r)},SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen=function(t,e,o){var l=void 0,i=void 0,n=(o.x-e.x)*(o.x-e.x)+(o.y-e.y)*(o.y-e.y),r=Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y)),a=Math.sqrt((t.x-o.x)*(t.x-o.x)+(t.y-o.y)*(t.y-o.y));if(0==a||0==r)l=0,i=0;else if(0==n)l=r,i=0;else{var s=(r*r+a*a-n)/2/r/a,p=0;s>=1?(s=1,p=0):p=Math.sqrt(1-s*s),l=a*s,i=a*p}return{dLen1:l,dLen2:i}},SuperMap.Plot.PlottingUtil.paraLine=function(t,e,o){var l=[];if(2>t.length)return l;if(o){var i=t[1].clone();i=SuperMap.Plot.PlottingUtil.rotateAngle(t[0],Math.PI/2,i),l.push(SuperMap.Plot.PlottingUtil.linePnt(t[0],i,e));for(var n=1;n<t.length-1;n++)if(!SuperMap.Plot.PlottingUtil.equalFuzzy(t[n].x,t[n+1].x)||!SuperMap.Plot.PlottingUtil.equalFuzzy(t[n].y,t[n+1].y)){for(var r=SuperMap.Plot.PlottingUtil.radian(t[n],t[n+1]),a=SuperMap.Plot.PlottingUtil.radian(t[n],t[n-1])-r;a<0;)a+=2*Math.PI;var s=a/2,p=void 0;p=s>Math.PI/2?s-Math.PI/2:Math.PI/2-s;var u=e/Math.cos(p);i=t[n+1].clone(),i=SuperMap.Plot.PlottingUtil.rotateAngle(t[n],s,i),l.push(SuperMap.Plot.PlottingUtil.linePnt(t[n],i,u))}i=t[t.length-2].clone(),i=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],-1*Math.PI/2,i),l.push(SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],i,e))}else{var P=t[1].clone();P=SuperMap.Plot.PlottingUtil.rotateAngle(t[0],-Math.PI/2,P),l.push(SuperMap.Plot.PlottingUtil.linePnt(t[0],P,e));for(var c=1;c<t.length-1;c++)if(!SuperMap.Plot.PlottingUtil.equalFuzzy(t[c].x,t[c+1].x)||!SuperMap.Plot.PlottingUtil.equalFuzzy(t[c].y,t[c+1].y)){for(var y=SuperMap.Plot.PlottingUtil.radian(t[c],t[c+1]),h=SuperMap.Plot.PlottingUtil.radian(t[c],t[c-1])-y;h<0;)h+=2*Math.PI;var S=Math.PI-h/2,f=void 0;f=S>Math.PI/2?S-Math.PI/2:Math.PI/2-S;var g=e/Math.cos(f);P=t[c-1].clone(),P=SuperMap.Plot.PlottingUtil.rotateAngle(t[c],S,P),l.push(SuperMap.Plot.PlottingUtil.linePnt(t[c],P,g))}P=t[t.length-2].clone(),P=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],Math.PI/2,P),l.push(SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],P,e))}return l},SuperMap.Plot.PlottingUtil.circlePoint=function(t,e,o,l){l*=Math.PI/180;var i=t.x+e*Math.cos(l),n=t.y+o*Math.sin(l);return new SuperMap.Geometry.Point(i,n)},SuperMap.Plot.PlottingUtil.getPolygonCenterPt=function(t){if(!t||0===t.length)return null;for(var e=0,o=0,l=0;l<t.length;l++)e+=t[l].x,o+=t[l].y;return new SuperMap.Geometry.Point(e/t.length,o/t.length)},SuperMap.Plot.PlottingUtil.ptIsInPolygon=function(t,e){if(!t||0===t.length)return!1;for(var o=0,l=t.length,i=0;i<l;i++){var n=t[i],r=t[(i+1)%l];if(n.y!==r.y){var a=n.y<r.y?n.y:r.y,s=n.y>r.y?n.y:r.y;if(!(e.y<a||e.y>s))(e.y-n.y)*(r.x-n.x)/(r.y-n.y)+n.x>e.x&&o++}}return o%2==1},SuperMap.Plot.PlottingUtil.projectPtOnPolyLine=function(t,e){if(2>e.length)return{index:-1,pt:null};for(var o=0;o<e.length-1;o++){var l=SuperMap.Plot.PlottingUtil.pointProjectToSegment(t,e[o],e[o+1]);if(l.isOnline)return{index:o,pt:l.projectPoint}}return{index:-1,pt:null}},SuperMap.Plot.PlottingUtil.isPloyClockwise=function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),o=e.length;if(!(o<3)){var l=e[0].y*(e[o-1].x-e[1].x);e.push(e[0].clone());for(var i=1;i<o;++i)l+=e[i].y*(e[i-1].x-e[i+1].x);return l>0?0:1}},SuperMap.Plot.PlottingUtil.isSamePt=function(t,e){return!(!SuperMap.Plot.PlottingUtil.equalFuzzy(t.x,e.x)||!SuperMap.Plot.PlottingUtil.equalFuzzy(t.y,e.y))},SuperMap.Plot.PlottingUtil.getPtsIndexByDistance=function(t,e){var o=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,t);return{index:o.index,pts:o.pt,bfind:-1!==o.index}},SuperMap.Plot.PlottingUtil.ptInBounds=function(t,e){return t.x>e.left&&t.x<e.right&&t.y<e.top&&t.y>e.bottom},SuperMap.Plot.PlottingUtil.InnerAngle=function(t,e,o){if(t==e||t==o)return 0;var l=SuperMap.Plot.PlottingUtil.distance(t,e),i=SuperMap.Plot.PlottingUtil.distance(t,o),n=SuperMap.Plot.PlottingUtil.distance(e,o),r=(l*l+i*i-n*n)/(2*l*i);return r>1&&SuperMap.Plot.PlottingUtil.equalFuzzy(r,1)?r=1:r<1&&SuperMap.Plot.PlottingUtil.equalFuzzy(r,-1)&&(r=-1),Math.acos(r)},SuperMap.Plot.PlottingUtil.plumbLineLen=function(t,e,o){return SuperMap.Plot.PlottingUtil.distance(t,e)*Math.sin(SuperMap.Plot.PlottingUtil.InnerAngle(e,t,o))},SuperMap.Plot.PlottingUtil.paraPolygon=function(t,e,o){var l=[],i=SuperMap.Plot.PlottingUtil.clonePoints(t),n=i.length;if(n<2)return l;var r=new SuperMap.Geometry.Point(0,0);if(o){if(n<3)r=i[1].clone(),SuperMap.Plot.PlottingUtil.rotateAngle(i[0],Math.PI,r),l.push(SuperMap.Plot.PlottingUtil.linePnt(i[0],r,e));else{for(var a=SuperMap.Plot.PlottingUtil.radian(i[0],i[1]),s=SuperMap.Plot.PlottingUtil.radian(i[0],i[i.length-1])-a;s<0;)s+=2*Math.PI;var p=s/2,u=void 0;u=p>Math.PI/2?p-Math.PI/2:Math.PI/2-p;var P=e/Math.cos(u);r=i[1].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(i[0],p,r),l.push(SuperMap.Plot.PlottingUtil.linePnt(i[0],r,P))}for(var c=1;c<n-1;c++){for(var y=SuperMap.Plot.PlottingUtil.radian(i[c],i[c+1]),h=SuperMap.Plot.PlottingUtil.radian(i[c],i[c-1])-y;h<0;)h+=2*Math.PI;var S=h/2,f=void 0;f=S>Math.PI/2?S-Math.PI/2:Math.PI/2-S;var g=e/Math.cos(f);r=i[c+1].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(i[c],S,r),l.push(SuperMap.Plot.PlottingUtil.linePnt(i[c],r,g))}if(n<3)r=i[n-2].clone(),SuperMap.Plot.PlottingUtil.rotateAngle(i[n-1],0,r),l.push(SuperMap.Plot.PlottingUtil.linePnt(i[n-1],r,e));else{for(var M=SuperMap.Plot.PlottingUtil.radian(i[n-1],i[0]),d=SuperMap.Plot.PlottingUtil.radian(i[n-1],i[n-2])-M;d<0;)d+=2*Math.PI;var m=d/2,v=void 0;v=m>Math.PI/2?m-Math.PI/2:Math.PI/2-m;var b=e/Math.cos(v);r=i[0].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(i[n-1],m,r),l.push(SuperMap.Plot.PlottingUtil.linePnt(i[n-1],r,b))}}else{if(n<3){var A=i[1].clone();SuperMap.Plot.PlottingUtil.rotateAngle(i[0],0,A),l.push(SuperMap.Plot.PlottingUtil.linePnt(i[0],A,e))}else{for(var L=SuperMap.Plot.PlottingUtil.radian(i[0],i[1]),T=SuperMap.Plot.PlottingUtil.radian(i[0],i[n-1])-L;T<0;)T+=2*Math.PI;var x=Math.PI-T/2,O=void 0;O=x>Math.PI/2?x-Math.PI/2:Math.PI/2-x;var w=e/Math.cos(O);r=i[n-1].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(i[0],x,r),l.push(SuperMap.Plot.PlottingUtil.linePnt(i[0],r,w))}for(var U=1;U<n-1;U++){for(var R=SuperMap.Plot.PlottingUtil.radian(i[U],i[U+1]),_=SuperMap.Plot.PlottingUtil.radian(i[U],i[U-1])-R;_<0;)_+=2*Math.PI;var E=Math.PI-_/2,C=void 0;C=E>Math.PI/2?E-Math.PI/2:Math.PI/2-E;var I=e/Math.cos(C);r=i[U-1].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(i[U],E,r),l.push(SuperMap.Plot.PlottingUtil.linePnt(i[U],r,I))}if(n<3)r=i[n-2].clone(),SuperMap.Plot.PlottingUtil.rotateAngle(i[n-1],Math.PI,r),l.push(SuperMap.Plot.PlottingUtil.linePnt(i[n-1],r,e));else{for(var B=SuperMap.Plot.PlottingUtil.radian(i[n-1],i[0]),D=SuperMap.Plot.PlottingUtil.radian(i[n-1],i[n-2])-B;D<0;)D+=2*Math.PI;var G=Math.PI-D/2,V=void 0;V=G>Math.PI/2?G-Math.PI/2:Math.PI/2-G;var N=e/Math.cos(V);r=i[n-2].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(i[n-1],G,r),l.push(SuperMap.Plot.PlottingUtil.linePnt(i[n-1],r,N))}}return l},SuperMap.Plot.PlottingUtil.getOutRectangleDis=function(t){if(2>t.length)return 0;for(var e=t[0].x,o=t[0].x,l=t[0].y,i=t[0].y,n=1;n<t.length;n++)e<t[n].x&&(e=t[n].x),o>t[n].x&&(o=t[n].x),l<t[n].y&&(l=t[n].y),i>t[n].y&&(i=t[n].y);return SuperMap.Plot.PlottingUtil.distance(new SuperMap.Geometry.Point(e,l),new SuperMap.Geometry.Point(o,i))},SuperMap.Plot.PlottingUtil.clonePoints=function(t){var e=[];if(void 0===t||null===t)return e;if(SuperMap.Plot.PlottingUtil.isArray(t)||(t=[t]),t&&null!=t)for(var o=0;o<t.length;o++)void 0!==t[o]&&null!==t[o]&&e.push(t[o].clone());return e},SuperMap.Plot.PlottingUtil.extend=function(t,e){if("function"==typeof SuperMap.Util.extend)return SuperMap.Util.extend(t,e);if(t=t||{},e){for(var o in e){var l=e[o];void 0!==l&&(t[o]=l)}!("function"==typeof window.Event&&e instanceof window.Event)&&e.hasOwnProperty&&e.hasOwnProperty("toString")&&(t.toString=e.toString)}return t},SuperMap.Plot.PlottingUtil.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},SuperMap.Plot.PlottingUtil.indexOf=function(t,e){if(null==t)return-1;if("function"==typeof t.indexOf)return t.indexOf(e);for(var o=0,l=t.length;o<l;o++)if(t[o]===e)return o;return-1},SuperMap.Plot.PlottingUtil.copyAttributes=function(t,e){if(t=t||{},e)for(var o in e){var l=e[o];void 0!==l&&"CLASS_NAME"!==o&&"function"!=typeof l&&(t[o]=l)}return t},SuperMap.Plot.PlottingUtil.cloneObject=function(t){if(null===t||"object"!==(void 0===t?"undefined":l(t)))return t;if(t instanceof Date){var e=new Date;return e.setTime(t.getTime()),e}if(t instanceof Array)return t.slice(0);if(t instanceof Object){var o={};for(var i in t)t.hasOwnProperty(i)&&(o[i]=SuperMap.Plot.PlottingUtil.cloneObject(t[i]));return o}throw new Error("Unable to copy obj! Its type isn't supported.")},SuperMap.Plot.PlottingUtil.rad=function(t){return t*Math.PI/180},SuperMap.Plot.PlottingUtil.deg=function(t){return 180*t/Math.PI},SuperMap.Plot.PlottingUtil.VincentyConstants={a:6378137,b:6356752.3142,f:1/298.257223563},SuperMap.Plot.PlottingUtil.distVincenty=function(t,e){var o,l,i,n=SuperMap.Plot.PlottingUtil.VincentyConstants,r=n.a,a=n.b,s=n.f;"undefined"!=typeof L&&void 0!==L.LatLng&&t instanceof L.LatLng&&e instanceof L.LatLng?(o=SuperMap.Plot.PlottingUtil.rad(e.lng-t.lng),l=Math.atan((1-s)*Math.tan(SuperMap.Plot.PlottingUtil.rad(t.lat))),i=Math.atan((1-s)*Math.tan(SuperMap.Plot.PlottingUtil.rad(e.lat)))):(o=SuperMap.Plot.PlottingUtil.rad(e.lon-t.lon),l=Math.atan((1-s)*Math.tan(SuperMap.Plot.PlottingUtil.rad(t.lat))),i=Math.atan((1-s)*Math.tan(SuperMap.Plot.PlottingUtil.rad(e.lat))));for(var p=Math.sin(l),u=Math.cos(l),P=Math.sin(i),c=Math.cos(i),y=o,h=2*Math.PI,S=20;Math.abs(y-h)>1e-12&&--S>0;){var f=Math.sin(y),g=Math.cos(y),M=Math.sqrt(c*f*(c*f)+(u*P-p*c*g)*(u*P-p*c*g));if(0==M)return 0;var d=p*P+u*c*g,m=Math.atan2(M,d),v=Math.asin(u*c*f/M),b=Math.cos(v)*Math.cos(v),A=d-2*p*P/b,T=s/16*b*(4+s*(4-3*b));h=y,y=o+(1-T)*s*Math.sin(v)*(m+T*M*(A+T*d*(2*A*A-1)))}if(0==S)return NaN;var x=b*(r*r-a*a)/(a*a),O=x/1024*(256+x*(x*(74-47*x)-128));return(a*(1+x/16384*(4096+x*(x*(320-175*x)-768)))*(m-O*M*(A+O/4*(d*(2*A*A-1)-O/6*A*(4*M*M-3)*(4*A*A-3))))).toFixed(3)/1e3},SuperMap.Plot.PlottingUtil.destinationVincenty=function(t,e,o){var l,i,n=SuperMap.Plot.PlottingUtil,r=n.VincentyConstants,a=r.a,s=r.b,p=r.f;"undefined"!=typeof L&&void 0!==L.LatLng&&t instanceof L.LatLng?(l=t.lng,i=t.lat):(l=t.lon,i=t.lat);for(var u=o,P=n.rad(e),c=Math.sin(P),y=Math.cos(P),h=(1-p)*Math.tan(n.rad(i)),S=1/Math.sqrt(1+h*h),f=h*S,g=Math.atan2(h,y),M=S*c,d=1-M*M,m=d*(a*a-s*s)/(s*s),v=1+m/16384*(4096+m*(m*(320-175*m)-768)),b=m/1024*(256+m*(m*(74-47*m)-128)),A=u/(s*v),T=2*Math.PI;Math.abs(A-T)>1e-12;){var x=Math.cos(2*g+A),O=Math.sin(A),w=Math.cos(A);T=A,A=u/(s*v)+b*O*(x+b/4*(w*(2*x*x-1)-b/6*x*(4*O*O-3)*(4*x*x-3)))}var U=f*O-S*w*y,R=Math.atan2(f*w+S*O*y,(1-p)*Math.sqrt(M*M+U*U)),_=p/16*d*(4+p*(4-3*d)),E=Math.atan2(O*c,S*w-f*O*y)-(1-_)*p*M*(A+_*O*(x+_*w*(2*x*x-1)));return"undefined"!=typeof L&&void 0!==L.LatLng&&t instanceof L.LatLng?L.latLng(n.deg(R),l+n.deg(E)):new SuperMap.LonLat(l+n.deg(E),n.deg(R))}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.AnalysisSymbol=SuperMap.Plot.AnalysisSymbol=SuperMap.Plot.AnalysisSymbol||{};SuperMap.Plot.AnalysisSymbol.analysisBasicInfo=function(t){var e=new Object;return e.libID=t.libID,e.code=t.code,e.symbolType=t.symbolType,e.symbolName=t.symbolName,e.textContent=t.textContent,e.minEditPts=t.algoMinEditPts,e.maxEditPts=t.algoMaxEditPts,e.surroundLineType=t.surroundLineType,e},SuperMap.Plot.AnalysisSymbol.analysisDotBasicInfo=function(t){var e=SuperMap.Plot.PlottingUtil.DPI,o=new Object;o.anchorPoint=new SuperMap.Geometry.Point(t.anchorPoint.x,t.anchorPoint.y);var l=0,i=0;return void 0!==t.symbolSizeInLib?(l=Math.round(t.symbolSizeInLib.x*e/25.4/10),i=Math.round(t.symbolSizeInLib.y*e/25.4/10)):(l=Math.round(t.symbolSize.x*e/25.4/10),i=Math.round(t.symbolSize.y*e/25.4/10)),o.symbolSizeInLib=new SuperMap.Size(l,i),o.symbolSizeInLib.w=l,o.symbolSizeInLib.h=i,o.middleMarkBounds=new SuperMap.Bounds(t.middleMarkBounds.leftBottom.x,t.middleMarkBounds.leftBottom.y,t.middleMarkBounds.rightTop.x,t.middleMarkBounds.rightTop.y),o},SuperMap.Plot.AnalysisSymbol.analysisAlgoBasicInfo=function(t,e){var o=new Object;if(o.subSymbols=[],o.scalePoints=[],o.scaleValues=[],e&&t.subSymbols)for(var l=0;l<t.subSymbols.length;l++)o.subSymbols.push(new SuperMap.Plot.SubSymbol(t.libID,t.subSymbols[l]));if(t.scalePoints){o.scalePoints=[];for(var i=0;i<t.scalePoints.length;i++){var n=new SuperMap.Geometry.Point(t.scalePoints[i].x,t.scalePoints[i].y);n.tag=i,n.isScalePoint=!0,o.scalePoints.push(n)}}if(t.scaleValues)for(var r=0;r<t.scaleValues.length;r++)o.scaleValues.push(t.scaleValues[r]);return o},SuperMap.Plot.AnalysisSymbol.analysisSymbolCells=function(t,e){var o=[];if(t&&(function(t,o){if(t.innerCells&&t.innerCells.length)for(var l=0;l<t.innerCells.length;l++){var i=t.innerCells[l];if(t.symbolIsCanFill&&i.type!==SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL){var n=new Object,r=SuperMap.Plot.AnalysisSymbol.getStyle(t,e);n.type=32,n.style={fillSymbolID:r.fillSymbolID,fillColor:r.fillColor,fillOpacity:r.fillOpacity,strokeOpacity:0,strokeWidth:0,fillLimit:!1,lineColorLimit:!0,lineWidthLimit:!0},n.positionPoints=[];for(var a=0;a<i.positionPoints.length;a++){var s=new SuperMap.Geometry.Point(i.positionPoints[a].x,i.positionPoints[a].y);n.positionPoints.push(s)}o.push(n)}}}(t,o),t.innerCells)){var l=t.innerCells;if(0!==l.length)for(var i=0;i<l.length;i++)o.push(SuperMap.Plot.AnalysisSymbol.analysisInnerCell(l[i],e))}return o},SuperMap.Plot.AnalysisSymbol.analysisInnerCell=function(t,e){var o=new Object;if(o.positionPoints=[],t){if(void 0!==t.polybezierClose&&(o.polybezierClose=t.polybezierClose),o.type=t.type,o.surroundLineFlag=t.surroundLineFlag,o.textContent=t.textContent,o.style=SuperMap.Plot.AnalysisSymbol.getStyle(t,e),null!=t.positionPoints)for(var l=t.positionPoints,i=0;i<l.length;i++){var n=new SuperMap.Geometry.Point(l[i].x,l[i].y);o.positionPoints.push(n)}if(o.style.lineColorLimit=t.lineColorLimit,o.style.lineTypeLimit=t.lineTypeLimit,o.style.lineWidthLimit=t.lineWidthLimit,o.style.fillLimit=t.fillLimit,o.style.fillColorLimit=t.fillColorLimit,o.style.fontColorLimit=t.fontColorLimit,o.style.surroundLineLimit=t.surroundLineLimit,o.style.surroundLineFlag=t.surroundLineFlag,o.style.surroundLineType=t.surroundLineType,34==t.type?o.style.fontColorLimit=!0:o.style.fontColorLimit=t.fontColorLimit,o.type===SuperMap.Plot.SymbolType.RECTANGLESYMBOL){var r=o.positionPoints[0],a=o.positionPoints[1],s=r.clone(),p=new SuperMap.Geometry.Point(a.x,r.y),u=a.clone(),P=new SuperMap.Geometry.Point(r.x,a.y);o.positionPoints=[],o.positionPoints.push(s),o.positionPoints.push(p),o.positionPoints.push(u),o.positionPoints.push(P),o.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL}o.type===SuperMap.Plot.SymbolType.TEXTSYMBOL&&(o.style.fontSizeLimit=!0)}return o},SuperMap.Plot.AnalysisSymbol.getStyle=function(t,e){function o(t){var e=t.red.toString(16);e.length<2&&(e="0"+e);var o=t.green.toString(16);o.length<2&&(o="0"+o);var l=t.blue.toString(16);return l.length<2&&(l="0"+l),"#"+e+o+l}function l(t){return"TOPLEFT"===t?"lt":"TOPCENTER"===t?"ct":"TOPRIGHT"===t?"rt":"BOTTOMLEFT"===t?"lb":"BOTTOMCENTER"===t?"cb":"BOTTOMRIGHT"===t?"rb":"MIDDLELEFT"===t?"lm":"MIDDLECENTER"===t?"cm":"MIDDLERIGHT"===t?"rm":0===t?"lt":1===t?"ct":2===t?"rt":6===t?"lb":7===t?"cb":8===t?"rb":3===t?"lm":4===t?"cm":5===t?"rm":"lt"}var i=SuperMap.Plot.PlottingUtil.DPI,n={};return t.style?(e?(n.fillSymbolID=t.style.fillSymbolID,n.fillSymbolID||(n.fill=t.style.fill)):(!1===t.style.fill?t.style.fillSymbolID=1:!0===t.style.fill&&(t.style.fillSymbolID=0),n.fillSymbolID=t.style.fillSymbolID),void 0!==t.style.strokeGradientMode&&null!=t.style.strokeGradientMode?1===t.style.strokeGradientMode?n.strokeGradientMode="LINEAR":2===t.style.strokeGradientMode?n.strokeGradientMode="RADIAL":"LINEAR"!==t.style.strokeGradientMode&&"RADIAL"!==t.style.strokeGradientMode&&(n.strokeGradientMode="NONE"):n.strokeGradientMode="NONE",t.style.strokeBackColor?void 0!==t.style.strokeBackColor.red?(n.strokeBackColor=o(t.style.strokeBackColor),n.strokeBackOpacity=(t.style.strokeBackColor.alpha/255).toFixed(2)):(n.strokeBackColor=t.style.strokeBackColor,n.strokeBackOpacity=t.style.strokeBackOpacity):t.style.fillBackColor&&(void 0!==t.style.fillBackColor.red?(n.strokeBackColor=o(t.style.fillBackColor),n.strokeBackOpacity=(t.style.fillBackColor.alpha/255).toFixed(2)):(n.strokeBackColor=t.style.strokeBackColor,n.strokeBackOpacity=t.style.strokeBackOpacity)),void 0!==t.style.fillGradientMode&&null!=t.style.fillGradientMode&&(1===t.style.fillGradientMode?n.fillGradientMode="LINEAR":2===t.style.fillGradientMode?n.fillGradientMode="RADIAL":"LINEAR"!==t.style.fillGradientMode&&"RADIAL"!==t.style.fillGradientMode&&(n.fillGradientMode="NONE")),null!=t.style.fillGradientAngle&&void 0!==t.style.fillGradientAngle?n.fillAngle=t.style.fillGradientAngle:void 0!==t.style.fillAngle&&null!=t.style.fillAngle&&(n.fillAngle=t.style.fillAngle),void 0!==t.style.fillGradientOffsetRatioX&&null!=t.style.fillGradientOffsetRatioX?n.fillCenterOffsetX=t.style.fillGradientOffsetRatioX/100:void 0!==t.style.fillCenterOffsetX&&null!=t.style.fillCenterOffsetX&&(n.fillCenterOffsetX=t.style.fillCenterOffsetX/100),void 0!==t.style.fillGradientOffsetRatioY&&null!=t.style.fillGradientOffsetRatioY?n.fillCenterOffsetY=t.style.fillGradientOffsetRatioY/100:void 0!==t.style.fillCenterOffsetY&&null!=t.style.fillCenterOffsetY&&(n.fillCenterOffsetY=t.style.fillCenterOffsetY/100),void 0!==t.style.fillForeColor&&(n.fillColor=o(t.style.fillForeColor)),void 0!==t.style.fillOpaqueRate&&(n.fillOpacity=(t.style.fillOpaqueRate/100).toFixed(2),100!==t.style.fillOpaqueRate||1===t.style.fillGradientMode&&2===t.style.fillGradientMode||(n.fillOpacity=(t.style.fillForeColor.alpha/255).toFixed(2))),void 0!==t.style.fillBackColor&&(void 0!==t.style.fillBackColor.red?n.fillBackColor=o(t.style.fillBackColor):n.fillBackColor=t.style.fillBackColor),0===t.style.fillBackOpaque?n.fillBackOpacity=0:t.style.fillBackColor&&t.style.fillBackColor.alpha?n.fillBackOpacity=(t.style.fillBackColor.alpha/255).toFixed(2):n.fillBackOpacity=t.style.fillBackOpacity,void 0!==t.style.lineColor&&(!0===e?(n.color=o(t.style.lineColor),n.opacity=(t.style.lineColor.alpha/255).toFixed(2)):(n.strokeColor=o(t.style.lineColor),n.strokeOpacity=(t.style.lineColor.alpha/255).toFixed(2))),!0===e?void 0!==t.style.lineWidth?n.weight=Math.ceil(t.style.lineWidth*i/25.4):n.weight=t.style.strokeWidth:void 0!==t.style.lineWidth?n.strokeWidth=Math.ceil(t.style.lineWidth*i/25.4):n.strokeWidth=t.style.strokeWidth,e?(n.lineSymbolID=t.style.lineSymbolID,n.lineSymbolID||(n.dashArray=t.style.dashArray),!n.dashArray&&t.style.strokeDashstyle&&("dash"===t.style.strokeDashstyle?n.lineSymbolID=1:"dot"===t.style.strokeDashstyle?n.lineSymbolID=2:"dashdot"===t.style.strokeDashstyle?n.lineSymbolID=3:n.lineSymbolID=0)):1===t.style.lineSymbolID?n.strokeDashstyle="dash":2===t.style.lineSymbolID?n.strokeDashstyle="dot":3===t.style.lineSymbolID?n.strokeDashstyle="dashdot":t.style.strokeDashstyle?n.strokeDashstyle=t.style.strokeDashstyle:n.strokeDashstyle="solid",t.textStyle2D&&null!=t.textStyle2D?(void 0!==t.textStyle2D.sizeFixed&&(n.sizeFixed=t.textStyle2D.sizeFixed),void 0!==t.textStyle2D.fontName&&(n.fontFamily=t.textStyle2D.fontName),void 0!==t.textStyle2D.fontHeight&&(n.sizeFixed?n.fontSize=Math.ceil(t.textStyle2D.fontHeight*i/25.4):n.fontSize=t.textStyle2D.fontHeight),void 0!==t.textStyle2D.foreColor&&(n.fontColor=o(t.textStyle2D.foreColor)),void 0!==t.textStyle2D.align&&(n.labelAlign=l(t.textStyle2D.align)),void 0!==t.textStyle2D.rotation&&(n.labelRotation=-t.textStyle2D.rotation),void 0!==t.textStyle2D.bold&&(n.fontWeight=-t.textStyle2D.bold),n.labelXOffset=0,n.labelYOffset=0):t.textStyle&&null!=t.textStyle&&(void 0!==t.textStyle.sizeFixed&&(n.sizeFixed=t.textStyle.sizeFixed),void 0!==t.textStyle.fontName&&(n.fontFamily=t.textStyle.fontName),void 0!==t.textStyle.fontHeight&&(n.sizeFixed?n.fontSize=Math.ceil(t.textStyle.fontHeight*i/25.4):n.fontSize=t.textStyle.fontHeight),void 0!==t.textStyle.foreColor&&(n.fontColor=o(t.textStyle.foreColor)),void 0!==t.textStyle.align&&(n.labelAlign=l(t.textStyle.align)),void 0!==t.textStyle.rotation&&(n.labelRotation=-t.textStyle.rotation),void 0!==t.textStyle.bold&&(n.fontWeight=-t.textStyle.bold),n.labelXOffset=0,n.labelYOffset=0),void 0!==t.style.fontOpacity&&(n.fontOpacity=t.style.fontOpacity),void 0!==t.style.fontStroke?n.fontStroke=t.style.fontStroke:t.textStyle2D&&void 0!==t.textStyle2D.outline&&(n.fontStroke=t.textStyle2D.outline),void 0!==t.style.fontStrokeColor?n.fontStrokeColor=t.style.fontStrokeColor:t.textStyle2D&&void 0!==t.textStyle2D.backColor&&(n.fontStrokeColor=o(t.textStyle2D.backColor)),void 0!==n.fontStrokeWidth&&(n.fontStrokeWidth=t.style.fontStrokeWidth),void 0!==t.style.fontBackground&&(n.fontBackground=t.style.fontBackground),void 0!==t.style.fontBackgroundColor&&(n.fontBackgroundColor=t.style.fontBackgroundColor),void 0!==t.style.fontShadow&&(n.fontShadow=t.style.fontShadow),void 0!==t.style.fontShadowColor&&(n.fontShadowColor=t.style.fontShadowColor),void 0!==t.style.fontShadowOffsetX&&(n.fontShadowOffsetX=t.style.fontShadowOffsetX),void 0!==t.style.fontShadowOffsetY&&(n.fontShadowOffsetY=t.style.fontShadowOffsetY),void 0!==t.style.fontSpace&&(n.fontSpace=t.style.fontSpace),void 0!==t.style.fontPercent&&(n.fontPercent=t.style.fontPercent),void 0!==t.style.fontWeight&&(n.fontWeight=t.style.fontWeight),void 0!==t.style.fontStyle&&(n.fontStyle=t.style.fontStyle),void 0!==t.surroundLineColor&&null!=t.surroundLineColor&&(n.surroundLineColor=o(t.surroundLineColor),n.surroundLineColorOpacity=(t.surroundLineColor.alpha/255).toFixed(2)),void 0!==t.surroundLineWidth2D&&null!=t.surroundLineWidth2D?n.surroundLineWidth=Math.round(t.surroundLineWidth2D*i/25.4):void 0!==t.surroundLineWidth&&null!=t.surroundLineWidth&&(n.surroundLineWidth=Math.round(t.surroundLineWidth*i/25.4)),null!=t.style.graphicWidth&&(n.graphicWidth=t.style.graphicWidth),null!=t.style.graphicHeight&&(n.graphicHeight=t.style.graphicHeight),null!=t.style.graphicOpacity&&(n.graphicOpacity=t.style.graphicOpacity),null!=t.style.graphicXOffset&&(n.graphicXOffset=t.style.graphicXOffset),null!=t.style.graphicYOffset&&(n.graphicYOffset=t.style.graphicYOffset),!1===t.visibility?n.display="none":n.display="display",n):n},SuperMap.Plot.AnalysisSymbol.setStyle=function(t,e,o){var l=SuperMap.Plot.PlottingUtil.DPI;if(null!=e)return e.style||(e.style={}),e.textStyle2D||(e.textStyle2D={}),o?(e.style.fillSymbolID=t.fillSymbolID,e.style.fillSymbolID||(e.style.fill=t.fill)):(!1===t.fill?t.fillSymbolID=1:!0===t.fill&&(t.fillSymbolID=0),e.style.fillSymbolID=t.fillSymbolID),t.fillGradientMode&&(e.style.fillGradientMode=t.fillGradientMode),t.fillGradientMode&&("LINEAR"===t.fillGradientMode?e.style.fillGradientMode=1:"RADIAL"===t.fillGradientMode?e.style.fillGradientMode=2:e.style.fillGradientMode=0),t.strokeGradientMode&&("LINEAR"===t.strokeGradientMode?e.style.strokeGradientMode=1:"RADIAL"===t.strokeGradientMode?e.style.strokeGradientMode=2:e.style.strokeGradientMode=0),t.strokeBackColor&&(e.style.strokeBackColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.strokeBackColor)),t.strokeBackOpacity&&(e.style.strokeBackColor.alpha=255*t.strokeBackOpacity),null!=t.fillAngle&&void 0!==t.fillAngle&&(e.style.fillAngle=t.fillAngle,e.style.fillGradientAngle=t.fillAngle),null!=t.fillCenterOffsetX&&void 0!==t.fillCenterOffsetX&&(e.style.fillCenterOffsetX=100*t.fillCenterOffsetX,e.style.fillGradientOffsetRatioX=100*t.fillCenterOffsetX),null!=t.fillCenterOffsetY&&void 0!==t.fillCenterOffsetY&&(e.style.fillCenterOffsetY=100*t.fillCenterOffsetY,e.style.fillGradientOffsetRatioY=100*t.fillCenterOffsetY),t.fillColor&&(e.style.fillForeColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fillColor)),void 0!==t.fillOpacity&&null!=t.fillOpacity&&(e.style.fillOpaqueRate=100*t.fillOpacity,e.style.fillForeColor.alpha=255),t.fillBackColor&&(e.style.fillBackColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fillBackColor)),void 0!==t.fillBackOpacity&&null!=t.fillBackOpacity&&(0===t.fillBackOpacity?(e.style.fillBackOpaque=0,e.style.fillBackColor.alpha=255):e.style.fillBackColor&&(e.style.fillBackOpaque=1,e.style.fillBackColor.alpha=255*t.fillBackOpacity)),!0===o&&t.color?e.style.lineColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.color):t.strokeColor&&(e.style.lineColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.strokeColor)),!0===o&&null!=t.opacity&&void 0!==t.opacity?(e.style.lineColor.alpha=255*t.opacity,e.style.lineColor.alpha<1&&(e.style.lineColor.alpha=1)):null!=t.strokeOpacity&&void 0!==t.strokeOpacity&&(e.style.lineColor.alpha=255*t.strokeOpacity,e.style.lineColor.alpha<1&&(e.style.lineColor.alpha=1)),!0===o&&t.weight?e.style.lineWidth=25.4*t.weight/l:t.strokeWidth&&(e.style.lineWidth=25.4*t.strokeWidth/l),o?(e.style.lineSymbolID=t.lineSymbolID,e.style.lineSymbolID||(e.style.dashArray=t.dashArray)):"dot"===t.strokeDashstyle?e.style.lineSymbolID=2:"dash"===t.strokeDashstyle||"longdash"===t.strokeDashstyle?e.style.lineSymbolID=1:"dashdot"===t.strokeDashstyle||"longdashdot"===t.strokeDashstyle?e.style.lineSymbolID=3:e.style.lineSymbolID=0,t.fontFamily&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.fontName=t.fontFamily:e.textStyle&&null!=e.textStyle&&(e.textStyle.fontName=t.fontFamily)),null!=t.sizeFixed&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.sizeFixed=t.sizeFixed:e.textStyle&&null!=e.textStyle&&(e.textStyle.sizeFixed=t.sizeFixed)),t.fontSize&&(e.textStyle2D&&null!=e.textStyle2D?t.sizeFixed?e.textStyle2D.fontHeight=25.4*t.fontSize/l:e.textStyle2D.fontHeight=t.fontSize:e.textStyle&&null!=e.textStyle&&(t.sizeFixed?e.textStyle.fontHeight=25.4*t.fontSize/l:e.textStyle.fontHeight=t.fontSize)),t.fontWeight&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.bold=t.fontWeight:e.textStyle&&null!=e.textStyle&&(e.textStyle.bold=t.fontWeight)),t.fontColor&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.foreColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fontColor):e.textStyle&&null!=e.textStyle&&(e.textStyle.foreColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fontColor))),t.labelRotation&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.rotation=-t.labelRotation:e.textStyle&&null!=e.textStyle&&(e.textStyle.rotation=-t.labelRotation)),void 0!==t.fontOpacity&&(e.style.fontOpacity=t.fontOpacity),void 0!==t.fontStroke&&(e.textStyle2D.outline=t.fontStroke),void 0!==t.fontStrokeColor&&(e.textStyle2D.backColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fontStrokeColor)),void 0!==t.fontStrokeWidth&&(e.style.fontStrokeWidth=t.fontStrokeWidth),void 0!==t.fontBackground&&(e.style.fontBackground=t.fontBackground),void 0!==t.fontBackgroundColor&&(e.style.fontBackgroundColor=t.fontBackgroundColor),void 0!==t.fontShadow&&(e.style.fontShadow=t.fontShadow),void 0!==t.fontShadowColor&&(e.style.fontShadowColor=t.fontShadowColor),void 0!==t.fontShadowOffsetX&&(e.style.fontShadowOffsetX=t.fontShadowOffsetX),void 0!==t.fontShadowOffsetY&&(e.style.fontShadowOffsetY=t.fontShadowOffsetY),void 0!==t.fontSpace&&(e.style.fontSpace=t.fontSpace),void 0!==t.fontPercent&&(e.style.fontPercent=t.fontPercent),void 0!==t.fontWeight&&(e.style.fontWeight=t.fontWeight),void 0!==t.fontStyle&&(e.style.fontStyle=t.fontStyle),t.surroundLineColor&&(e.surroundLineColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.surroundLineColor)),null!=t.surroundLineColorOpacity&&void 0!==t.surroundLineColorOpacity&&(e.surroundLineColor.alpha=255*t.surroundLineColorOpacity),t.surroundLineWidth&&(e.surroundLineWidth2D=25.4*t.surroundLineWidth/l),void 0!==t.labelAlign&&("lt"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=0:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=0):"ct"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=1:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=1):"rt"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=2:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=2):"lb"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=6:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=6):"cb"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=7:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=7):"rb"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=8:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=8):"lm"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=3:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=3):"cm"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=4:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=4):"rm"===t.labelAlign&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=5:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=5))),null!=t.graphicWidth&&(e.style.graphicWidth=t.graphicWidth),null!=t.graphicHeight&&(e.style.graphicHeight=t.graphicHeight),null!=t.graphicOpacity&&(e.style.graphicOpacity=t.graphicOpacity),null!=t.graphicXOffset&&(e.style.graphicXOffset=t.graphicXOffset),null!=t.graphicYOffset&&(e.style.graphicYOffset=t.graphicYOffset),t.display&&"none"===t.display?e.visibility=!1:e.visibility=!0,t},SuperMap.Plot.AnalysisSymbol.mergeDefaultStyleToFeature=function(t,e,o){var l=void 0,i=void 0;l=t.style,i=!0!==o?t.geometry:t,e&&!0===e.defaultFlag&&!1===i.isEdit&&(i.surroundLineType=e.surroundLineType,l.surroundLineColor=e.surroundLineColor,l.surroundLineWidth=e.surroundLineWidth,l.surroundLineColorOpacity=e.surroundLineColorOpacity,l.fillBackColor=e.fillBackColor,l.fillBackOpacity=e.fillBackOpacity,l.fillGradientMode=e.fillGradientMode,l.fillCenterOffsetX=e.fillCenterOffsetX,l.fillCenterOffsetY=e.fillCenterOffsetY,l.fillAngle=e.fillAngle,!0===o?(l.color=e.lineColor,l.weight=e.lineWidth,l.opacity=e.lineOpacity,l.lineSymbolID=e.lineType,l.lineCap=e.lineCap,l.lineJoin=e.lineJoin):(l.strokeColor=e.lineColor,l.strokeWidth=e.lineWidth,l.strokeOpacity=e.lineOpacity,l.strokeDashstyle=e.lineType,l.strokeLinecap=e.lineCap,l.strokeLinejoin=e.lineJoin),l.fillSymbolID=e.fillSymbolID,l.fillColor=e.fillColor,l.fillOpacity=e.fillOpacity,l.fontColor=e.fontColor,l.fontOpacity=e.fontOpacity,l.fontSize=e.fontSize,l.fontFamily=e.fontFamily,l.fontWeight=e.fontWeight,l.fontStyle=e.fontStyle,l.fontStroke=e.fontStroke,l.fontStrokeColor=e.fontStrokeColor,l.fontStrokeWidth=e.fontStrokeWidth,l.fontBackground=e.fontBackground,l.fontBackgroundColor=e.fontBackgroundColor,l.fontShadow=e.fontShadow,l.fontShadowColor=e.fontShadowColor,l.fontShadowOffsetX=e.fontShadowOffsetX,l.fontShadowOffsetY=e.fontShadowOffsetY,l.fontSpace=e.fontSpace,l.fontPercent=e.fontPercent,l.strokeGradientMode=e.strokeGradientMode,l.strokeBackColor=e.strokeBackColor,l.strokeBackOpacity=e.strokeBackOpacity)},SuperMap.Plot.AnalysisSymbol.mergeSymbolDataAndServerData=function(t,e){t.hasOwnProperty("algoMinEditPts")||(t.algoMinEditPts=e.algoMinEditPts),t.hasOwnProperty("algoMaxEditPts")||(t.algoMaxEditPts=e.algoMaxEditPts),t.hasOwnProperty("innerCells")||(t.innerCells=SuperMap.Util.cloneObject(e.innerCells)),t.hasOwnProperty("symbolRanks")||(t.symbolRanks=SuperMap.Util.cloneObject(e.symbolRanks)),t.hasOwnProperty("symbolSizeInLib")||(t.symbolSizeInLib=SuperMap.Util.cloneObject(e.symbolSize)),t.hasOwnProperty("middleMarkExist")||(t.middleMarkExist=SuperMap.Util.cloneObject(e.middleMarkExist)),t.hasOwnProperty("middleMarkBounds")||(t.middleMarkBounds=SuperMap.Util.cloneObject(e.middleMarkBounds)),t.hasOwnProperty("anchorPoint")||(t.anchorPoint=SuperMap.Util.cloneObject(e.anchorPoint))},SuperMap.Plot.AnalysisSymbol.setSymbolData=function(t,e,o){null==e&&(e={}),e.hasOwnProperty("type")||(e.type="GRAPHICOBJECT"),e.hasOwnProperty("version")||(e.version=2),e.isEdit=!0,e.uuid=t.uuid,e.associatedUuid=t.associatedUuid,e.hasOwnProperty("rotate2D")?e.rotate2D.x=t.dRotate:e.rotate2D={x:t.dRotate,y:0,z:0},e.hasOwnProperty("scale2D")?e.scale2D.x=t.dScale:e.scale2D={x:t.dScale,y:0,z:0},e.libID=t.libID,e.code=t.code,e.algoMaxEditPts=t.maxEditPts,e.algoMinEditPts=t.minEditPts,e.symbolType=t.symbolType,e.symbolName=t.symbolName,e.annotationPosition=t.annotationPosition?t.annotationPosition:t.textPosition,e.textContent=t.textContent,e.textDisplay=t.textDisplay,e.scaleByMap=t.scaleByMap,e.resolution=t.resolution,e.isLocked=t.isLocked,e.note=t.note,e.custom=t.custom,e.subSymbols=[];for(var l=0;l<t.subSymbols.length;l++){var i=t.subSymbols[l];e.subSymbols.push({libID:i.libID,code:i.code,symbolData:i.symbolData,textContent:i.textContent,totalNum:i.totalNum})}e.extendProperty=[];for(var n=t.getExtendProperty().getPropertyCount(),r=0;r<n;r++){var a=t.getExtendProperty().getPropertyByIndex(r);e.extendProperty.push({key:a.key,value:a.value})}e.avoidRegions=[];for(var s=0;s<t.avoidRegions.length;s++){var p={};SuperMap.Plot.AnalysisSymbol.setStyle(t.avoidRegions[s].feature.style,p,o),e.avoidRegions.push([t.avoidRegions[s].getSymbolData(),p])}if(!0===o?SuperMap.Plot.AnalysisSymbol.setStyle(t.style,e,o):null!=t.feature&&SuperMap.Plot.AnalysisSymbol.setStyle(t.feature.style,e),t.symbolType===SuperMap.Plot.SymbolType.AIRROUTE||t.symbolType===SuperMap.Plot.SymbolType.NAVYROUTE||t.symbolType===SuperMap.Plot.SymbolType.MISSILEROUTE){for(var u in e.routeNodes=[],t.routeNodes)e.routeNodes.push(t.routeNodes[u].setSymbolData());e.arrRoutePts=t.arrRoutePts,o||SuperMap.Plot.AnalysisSymbol.setStyle(t.lineStyle,e)}else if(t.symbolType===SuperMap.Plot.SymbolType.GROUPOBJECT||t.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP||t.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT||t.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT){if(e.subAssociatedUuids=t.subAssociatedUuids,e.subFeatures=[],o)for(var P=0;P<t.subObjects.length;P++)e.subFeatures.push(t.subObjects[P].getSymbolData());else for(var c=0;c<t.components.length;c++)e.subFeatures.push(t.components[c].geometry.getSymbolData());0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP?e.ratio=t.ratio:0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT?(e.colNum=t.colNum,e.speceDis=t.speceDis,e.isShowTooltip=t.isShowTooltip):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT&&(e.colNum=t.colNum,e.speceDis=t.speceDis)}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT){var y=[];for(var h in t.symbolTexts)y.push(t.symbolTexts[h].setSymbolData());e.symbolTexts=y,e.addFrame=t.addFrame}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT1)e.space=t.space,e.offsetX=t.offsetX,e.offsetY=t.offsetY;else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SATELLITE){if(e.hasOwnProperty("scaleValues"))for(var S=0;S<t.scaleValues.length;S++)e.scaleValues.length>S?e.scaleValues[S]=t.scaleValues[S]:e.scaleValues.push(t.scaleValues[S]);else e.scaleValues=[],e.scaleValues=t.scaleValues;e.visible=t.visible,e.orbitPoints=t.orbitPoints}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS)e.timeWindows=t.timeWindows;else{var f=void 0;f=!0===o?L.Util.latLngsToSuperMapPoints(t.getLatLngs()):t.controlPoints,e.hasOwnProperty("localePoints")||(e.localePoints=[]);var g=f.length;t.symbolType===SuperMap.Plot.SymbolType.ELLIPSESYMBOL&&(g=3);for(var M=0;M<g;M++)e.localePoints.length>M?(e.localePoints[M].x=f[M].x,e.localePoints[M].y=f[M].y,e.localePoints[M].hasOwnProperty("z")||(e.localePoints[M].z=0)):e.localePoints.push({x:f[M].x,y:f[M].y,z:0});if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.LINERELATION)e.endAssociatedUuid=t.endAssociatedUuid,e.lineRelationType=t.lineRelationType,e.startAssociatedUuid=t.startAssociatedUuid,e.subSectionCount=t.subSectionCount;else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.PICTURE)e.path=t.path;else if(t.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL){e.surroundLineType=t.surroundLineType,e.symbolRank=t.symbolRank,e.negativeImage=t.negativeImage,e.space=t.space,e.flagTextSize=t.flagTextSize,e.maxScale=t.maxScale,e.minScale=t.minScale,e.actualScale=t.actualScale,void 0!==t.fontSize&&(e.fontSize=t.fontSize),void 0!==t.strokeWidth&&(e.strokeWidth=t.strokeWidth);var d=25.4*t.symbolSize.w*10/SuperMap.Plot.PlottingUtil.DPI,m=25.4*t.symbolSize.h*10/SuperMap.Plot.PlottingUtil.DPI;e.symbolSize={x:d,y:m};var v=25.4*t.symbolSizeInLib.w*10/SuperMap.Plot.PlottingUtil.DPI,b=25.4*t.symbolSizeInLib.h*10/SuperMap.Plot.PlottingUtil.DPI;e.symbolSizeInLib={x:v,y:b},e.positionOffset=t.positionOffset,e.positionOffsetType=t.positionOffsetType,e.positionOffsetX=t.positionOffsetX,e.positionOffsetY=t.positionOffsetY,!1===t.widthHeightLimit||!0===t.widthHeightLimit?e.limitWidthHeight=t.widthHeightLimit:e.limitWidthHeight=t.limitWidthHeight}else{if(e.surroundLineType=t.surroundLineType,e.hasOwnProperty("scaleValues"))for(var A=0;A<t.scaleValues.length;A++)e.scaleValues.length>A?e.scaleValues[A]=t.scaleValues[A]:e.scaleValues.push(t.scaleValues[A]);else e.scaleValues=[],e.scaleValues=t.scaleValues;e.subSymbolScaleValue=t.subSymbolScaleValue,e.baseScale=t.baseScale,e.strokeWidth=t.strokeWidth,e.polylineConnectLocationPoint=t.polylineConnectLocationPoint,22===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ALGOSYMBOL?(e.arrowHeadType=t.arrowHeadType,e.arrowBodyType=t.arrowBodyType,e.arrowTailType=t.arrowTailType):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ARROWLINE?e.arrowAngle=t.arrowAngle:0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE?e.defaultRadius=t.defaultRadius:0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.CONCENTRICCIRCLE||(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.LINEMARKING?(e.islocationCircle=t.islocationCircle,e.textBoxType=t.textBoxType):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXTBOX?(e.roundBox=t.roundBox,e.textBoxType=t.textBoxType):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.PATHTEXT?(e.isAvoid=t.isAvoid,e.isCurve=t.isCurve,e.relLineText=t.relLineText,e.showPathLine=t.showPathLine,e.textToLineDistance=t.textToLineDistance,e.showPathLineArrow=t.showPathLineArrow):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ARCREGION&&(o?(e.centerPoint={x:t.centerPoint.lng,y:t.centerPoint.lat},e.circlePts=t.circlePts,e.spatialAnalystUrl=t.spatialAnalystUrl):e.centerPoint=t.centerPoint,e.endAngle=t.endAngle,e.radius=t.radius,e.radiusPosAngle=t.radiusPosAngle,e.startAngle=t.startAngle,e.textPosition=t.textPosition,e.radiusLineType=t.radiusLineType,e.radiusText=t.radiusText))}}t.symbolData=e},SuperMap.Plot.AnalysisSymbol.parseSymbolData=function(t,e,o){if(null!=e){if(void 0!==e.isEdit&&(t.isEdit=e.isEdit),e.hasOwnProperty("version")&&(t.version=e.version),t.libID=parseInt(e.libID),t.code=parseInt(e.code),t.maxEditPts=parseInt(e.algoMaxEditPts),t.minEditPts=parseInt(e.algoMinEditPts),t.symbolType=e.symbolType,t.symbolName=e.symbolName,t.textContent=e.textContent,void 0!==e.dScale?t.dScale=e.dScale:void 0!==e.scale2D&&(t.dScale=e.scale2D.x),void 0!==e.dRotate?t.dRotate=e.dRotate:void 0!==e.rotate2D&&(t.dRotate=e.rotate2D.x),void 0!==e.resolution&&(t.resolution=e.resolution),void 0!==e.uuid&&(t.uuid=e.uuid),void 0!==e.associatedUuid&&(t.associatedUuid=e.associatedUuid),void 0!==e.textDisplay&&(t.textDisplay=e.textDisplay),void 0!==e.annotationPosition&&(o?t.annotationPosition=e.annotationPosition:t.textPosition=e.annotationPosition),void 0!==e.scaleByMap&&(t.scaleByMap=e.scaleByMap),void 0!==e.isLocked&&(t.isLocked=e.isLocked),void 0!==e.note&&(t.note=e.note),void 0!==e.custom&&(t.custom=e.custom),e.extendProperty)for(var l=0;l<e.extendProperty.length;l++){var i=e.extendProperty[l];t.extendProperty.addProperty(i.key,i.value)}if(e.hasOwnProperty("subSymbols")&&null!=e.subSymbols){t.subSymbols=[];for(var n=0;n<e.subSymbols.length;n++){var r=e.subSymbols[n].libID;void 0===r&&(r=t.libID);var a=e.subSymbols[n].code;if(void 0!==a){var s={};void 0!==e.subSymbols[n].textContent&&(s.textContent=e.subSymbols[n].textContent),void 0!==e.subSymbols[n].totalNum&&(s.totalNum=e.subSymbols[n].totalNum),void 0!==e.subSymbols[n].symbolData&&(s.symbolData=e.subSymbols[n].symbolData),t.subSymbols.push(new SuperMap.Plot.SubSymbol(r,a,s))}}}if(e.avoidRegions&&0!==e.avoidRegions.length)for(var p=0;p<e.avoidRegions.length;p++){var u={libID:0,code:SuperMap.Plot.SymbolType.AVOIDREGION,map:t.map,symbolData:e.avoidRegions[p][0]},P=null;if(o)(P=L.supermap.plotting.avoidRegion(0,SuperMap.Plot.SymbolType.AVOIDREGION,[],u)).style=SuperMap.Plot.AnalysisSymbol.getStyle(t.symbolData.avoidRegions[p][1],!0);else{P=new SuperMap.Geometry.AvoidRegion(u);var c=new SuperMap.Feature.Vector(P);c.style=SuperMap.Plot.AnalysisSymbol.getStyle(e.avoidRegions[p][1],o),P.feature=c,P.calculateParts()}t.avoidRegions.push(P)}if(!0===o&&(t.style=SuperMap.Plot.AnalysisSymbol.getStyle(e,!0)),t.symbolType===SuperMap.Plot.SymbolType.AIRROUTE||t.symbolType===SuperMap.Plot.SymbolType.NAVYROUTE||t.symbolType===SuperMap.Plot.SymbolType.MISSILEROUTE){for(var y in t.routeNodes=[],e.routeNodes){var h=new SuperMap.Plot.RouteNode;t.routeNodes.push(h.parseSymbolData(e.routeNodes[y]))}t.arrRoutePts=[];for(var S=0;S<e.arrRoutePts.length;S++){for(var f=[],g=0;g<e.arrRoutePts[S].length;g++)e.arrRoutePts[S][g].hasOwnProperty("lat")&&e.arrRoutePts[S][g].hasOwnProperty("lng")?f.push(new SuperMap.Geometry.Point(e.arrRoutePts[S][g].lng,e.arrRoutePts[S][g].lat)):void 0===e.arrRoutePts[S][g].x&&void 0===e.arrRoutePts[S][g].y||f.push(new SuperMap.Geometry.Point(e.arrRoutePts[S][g].x,e.arrRoutePts[S][g].y));o&&(f=L.Util.superMapPointsToLatLngs(f)),t.arrRoutePts.push(f)}o||(t.lineStyle=SuperMap.Plot.AnalysisSymbol.getStyle(e,!1))}else if(t.symbolType===SuperMap.Plot.SymbolType.GROUPOBJECT||t.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP||t.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT||t.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT){if(t.subAssociatedUuids=e.subAssociatedUuids,o){for(var M=[],d=0;d<e.subFeatures.length;d++){var m=e.subFeatures[d];m.uuid=SuperMap.Plot.PlottingUtil.generateUuid();var v=L.supermap.plotting.PlottingObject.createSymbol(m.libID,m.code,null,{symbolData:m});M.push(v)}t.subObjects=M}else for(var b=0;b<e.subFeatures.length;b++){var A=e.subFeatures[b],T=SuperMap.Geometry.PlottingGeometry.createFeature(A.libID,A.code,null,{symbolData:A,map:t.map});T.geometry.ownGroupObj=t,t.components.push(T)}0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP?(t.ratio=e.ratio,t.subFeatures=e.subFeatures):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT?(t.colNum=e.colNum,t.speceDis=e.speceDis,t.isShowTooltip=e.isShowTooltip):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT&&(t.colNum=e.colNum,t.speceDis=e.speceDis)}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT){t.addFrame=e.addFrame,t.symbolTexts=[];for(var x=0,O=e.symbolTexts.length;x<O;x++){var w=new SuperMap.Plot.SymbolText;w.parseSymbolData(e.symbolTexts[x]),t.symbolTexts.push(w)}}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT1)void 0!==e.space&&(t.space=e.space),void 0!==e.offsetX&&(t.offsetX=e.offsetX),void 0!==e.offsetY&&(t.offsetY=e.offsetY);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SATELLITE){if(e.scaleValues&&0!==e.scaleValues.length){t.scaleValues=[];for(var U=0;U<e.scaleValues.length;U++)t.scaleValues.push(e.scaleValues[U])}if(e.subSymbol&&(t.subSymbols=[e.subSymbol]),t.visible=e.visible,e.orbitPoints){t.orbitPoints=[];for(var R=0;R<e.orbitPoints.length;R++)t.orbitPoints.push(new SuperMap.Plot.OrbitPoint(e.orbitPoints[R].x,e.orbitPoints[R].y,e.orbitPoints[R].z,e.orbitPoints[R].number,e.orbitPoints[R].time))}}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS){t.timeWindows=e.timeWindows;for(var _=0;_<t.timeWindows.length;_++)"Time"!==e.type&&"Number"!==e.type||(t.timeWindows[_].type=e.type)}else{if(e.localePoints){t.controlPoints=[];for(var E=0;E<e.localePoints.length;E++)t.controlPoints.push(new SuperMap.Geometry.Point(e.localePoints[E].x,e.localePoints[E].y));!0===o&&(t.latLngs=L.Util.superMapPointsToLatLngs(t.controlPoints),delete t.controlPoints)}if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.LINERELATION)t.endAssociatedUuid=e.endAssociatedUuid,t.lineRelationType=e.lineRelationType,t.startAssociatedUuid=e.startAssociatedUuid,t.subSectionCount=e.subSectionCount;else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.PICTURE)t.path=e.path;else if(t.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL){t.surroundLineType=e.surroundLineType,t.symbolRank=e.symbolRank,t.negativeImage=e.negativeImage;var C=SuperMap.Plot.AnalysisSymbol.analysisDotBasicInfo(e);if(t.anchorPoint=C.anchorPoint,t.symbolSizeInLib=C.symbolSizeInLib,t.middleMarkBounds=C.middleMarkBounds,void 0!==e.actualScale&&(t.actualScale=e.actualScale),void 0!==e.limitWidthHeight&&(t.limitWidthHeight=e.limitWidthHeight),void 0!==e.fontSize&&(t.fontSize=e.fontSize),void 0!==e.strokeWidth&&(t.strokeWidth=e.strokeWidth),void 0!==e.space&&(t.space=e.space),void 0!==e.flagTextSize&&(t.flagTextSize=e.flagTextSize),void 0!==e.maxScale&&(t.maxScale=e.maxScale),void 0!==e.minScale&&(t.minScale=e.minScale),!1!==t.isEdit){var I={x:0,y:0};-1===e.symbolSize.x&&-1===e.symbolSize.x?(I.x=e.symbolSizeInLib.x*SuperMap.Plot.PlottingUtil.DPI/25.4/10,I.y=e.symbolSizeInLib.y*SuperMap.Plot.PlottingUtil.DPI/25.4/10):(I.x=e.symbolSize.x*SuperMap.Plot.PlottingUtil.DPI/25.4/10,I.y=e.symbolSize.y*SuperMap.Plot.PlottingUtil.DPI/25.4/10),t.setSymbolSize(I.x,I.y)}void 0!==e.positionOffset&&null!==e.positionOffset&&(t.positionOffset=e.positionOffset),void 0!==e.positionOffsetType&&null!==e.positionOffsetType&&(t.positionOffsetType=e.positionOffsetType),void 0!==e.positionOffsetX&&null!==e.positionOffsetX&&(t.positionOffsetX=e.positionOffsetX),void 0!==e.positionOffsetY&&null!==e.positionOffsetY&&(t.positionOffsetY=e.positionOffsetY)}else{if(t.surroundLineType=e.surroundLineType,e.scaleValues&&0!==e.scaleValues.length){t.scaleValues=[];for(var B=0;B<e.scaleValues.length;B++)t.scaleValues.push(e.scaleValues[B])}if(void 0!==e.strokeWidth&&null!==e.strokeWidth&&(t.strokeWidth=e.strokeWidth),void 0!==e.baseScale&&null!==e.baseScale&&(t.baseScale=e.baseScale),void 0!==e.polylineConnectLocationPoint&&null!==e.polylineConnectLocationPoint&&(t.polylineConnectLocationPoint=e.polylineConnectLocationPoint),22===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ALGOSYMBOL)void 0!==e.arrowHeadType&&null!==e.arrowHeadType&&(t.arrowHeadType=e.arrowHeadType),void 0!==e.arrowBodyType&&null!==e.arrowBodyType&&(t.arrowBodyType=e.arrowBodyType),void 0!==e.arrowTailType&&null!==e.arrowTailType&&(t.arrowTailType=e.arrowTailType);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ARROWLINE)t.arrowAngle=e.arrowAngle,void 0!==e.arrowTypeStart&&(t.scaleValues[1]=e.arrowTypeStart),void 0!==e.arrowTypeEnd&&(t.scaleValues[2]=e.arrowTypeEnd);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE){if(e.radius&&0!==e.radius.length&&0===t.scaleValues.length)for(var D=0;D<e.radius.length;D++)t.scaleValues.push(e.radius[D])}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.CONCENTRICCIRCLE)t.symbolData.hasOwnProperty("startAngle")&&(t.scaleValues[0]=t.symbolData.startAngle),t.symbolData.hasOwnProperty("endAngle")&&(t.scaleValues[1]=t.symbolData.endAngle);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.LINEMARKING)void 0!==e.islocationCircle&&null!==e.islocationCircle&&(t.islocationCircle=e.islocationCircle),void 0!==e.textBoxType&&null!==e.textBoxType&&(t.textBoxType=e.textBoxType),e.tipPoint&&(this.scaleValues[1]=e.tipPoint.x,this.scaleValues[2]=e.tipPoint.y);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXTBOX)void 0!==e.roundBox&&null!==e.roundBox&&(t.roundBox=e.roundBox),void 0!==e.textBoxType&&null!==e.textBoxType&&(t.textBoxType=e.textBoxType),e.tipPoint&&(this.scaleValues[1]=e.tipPoint.x,this.scaleValues[2]=e.tipPoint.y);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM)e.tipPoint1&&(this.scaleValues[0]=e.tipPoint1.x,this.scaleValues[1]=e.tipPoint1.y),e.tipPoint2&&(this.scaleValues[2]=e.tipPoint2.x,this.scaleValues[3]=e.tipPoint2.y);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.PATHTEXT)t.isAvoid=e.isAvoid,t.isCurve=e.isCurve,t.relLineText=e.relLineText,t.showPathLine=e.showPathLine,t.textToLineDistance=e.textToLineDistance,t.showPathLineArrow=e.showPathLineArrow;else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ARCREGION){if(o){if(t.centerPoint=L.latLng(e.centerPoint.y,e.centerPoint.x),t.symbolData.circlePts){for(var G=[],V=0;V<e.circlePts.length;V++)G.push(new SuperMap.Geometry.Point(e.circlePts[V].x,e.circlePts[V].y));0!==G.length&&(t.circlePts=G)}t.spatialAnalystUrl=e.spatialAnalystUrl}else t.centerPoint=new SuperMap.Geometry.Point(e.centerPoint.x,e.centerPoint.y);t.endAngle=e.endAngle,t.radius=e.radius,t.radiusPosAngle=e.radiusPosAngle,t.startAngle=e.startAngle,t.textPosition=e.textPosition,t.radiusLineType=e.radiusLineType,t.radiusText=e.radiusText}else 0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.POLYGONREGION&&(t.symbolData.hasOwnProperty("textPosition")?t.scaleValues[1]=t.symbolData.textPosition:void 0===t.scaleValues[1]&&(t.scaleValues[1]=t.symbolData.annotationPosition))}}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AddPoint_WayType=e.RouteNodePrimitives=e.Primitives=e.PlottingUtil=e.AnalysisSymbol=void 0;var l=o(58),i=o(57),n=o(56),r=o(55),a=o(54);e.AnalysisSymbol=l.AnalysisSymbol,e.PlottingUtil=i.PlottingUtil,e.Primitives=n.Primitives,e.RouteNodePrimitives=r.RouteNodePrimitives,e.AddPoint_WayType=a.AddPoint_WayType},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.md5=e.AlgoSymbolFactory=e.BasicAlgoSymbolFactory=e.AddPoint_WayType=e.Primitives=e.PlottingUtil=e.RouteNodePrimitives=e.AnalysisSymbol=void 0;var l=o(59),i=o(53),n=o(2);e.AnalysisSymbol=l.AnalysisSymbol,e.RouteNodePrimitives=l.RouteNodePrimitives,e.PlottingUtil=l.PlottingUtil,e.Primitives=l.Primitives,e.AddPoint_WayType=l.AddPoint_WayType,e.BasicAlgoSymbolFactory=i.BasicAlgoSymbolFactory,e.AlgoSymbolFactory=i.AlgoSymbolFactory,e.md5=n.md5}]); |