/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// identity function for calling harmony imports with the correct context
/******/ 	__webpack_require__.i = function(value) { return value; };
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, {
/******/ 				configurable: false,
/******/ 				enumerable: true,
/******/ 				get: getter
/******/ 			});
/******/ 		}
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 5);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports) {

﻿/* COPYRIGHT 2012 SUPERMAP
 * 本程序只能在有效的授权许可下使用。
 * 未经许可，不得以任何手段擅自使用或传播。*/

/**
 * @requires SuperMap/BaseTypes.js
 */

/**
 * Namespace: SuperMap.Lang
 * 国际化的命名空间，包含多种语言和方法库来设置和获取当前的语言。
 */
var SuperMapAlgoPlot = window.SuperMapAlgoPlot = window.SuperMapAlgoPlot || {};

/***
 * @private
 * @type {{translate: SuperMap.PlotLang.translate}}
 */
SuperMapAlgoPlot.PlotLang = {
    /**
     * APIMethod: translate
     * 从当前语言字符串的字典查找key。
     *     getCode获取的值用来判断合适的字典。字典存储在 <SuperMap.Lang> 方法中。
     *
     * Parameters:
     * key - {String} 字典中i18n字符串值的关键字.
     * context - {Object} <SuperMap.String.format> 使用此参数。
     *
     * Returns:
     * {String} 国际化的字符串。
     */
    translate: function(key, context) {
        var dictionary = SuperMapAlgoPlot.PlotLang["zh-CN"];
        var message = dictionary && dictionary[key];
        if(!message) {
            // Message not found, fall back to message key
            message = key;
        }
        if(context) {
            message = SuperMapAlgoPlot.String.format(message, context);
        }
        return message;
    }

};


/**
 * @private
 * APIMethod: SuperMap.plotI18n
 *  <SuperMap.Lang.translate> 的别名.  当前语言字符串的字典查找key。
 *  getCode获取的值用来判断合适的字典。字典存储在 <SuperMap.Lang> 方法中。
 *
 * Parameters:
 * key - {String} 字典中i18n字符串值的关键字.
 * context - {Object} <SuperMap.String.format> 使用此参数。
 *
 * Returns:
 * {String} 国际化的字符串。
 */
SuperMapAlgoPlot.plotI18n = SuperMapAlgoPlot.PlotLang.translate;


/**
 * @private
 * */
SuperMapAlgoPlot.PlotLang["zh-CN"] = {
	//字体
	'SongTi':"宋体",
    //text
	'text':"文本",
    'textSizeLabel':"字体大小",
    'textSizeTitle':"字体大小",
    'textFaceNameLabel':"字体",
    'textFaceNameTitle':"字体",
    'textAlignLabel':"水平对齐方式",
    'textAlignTitle':"文本的水平对齐方式",
    'textVerticalAlignmentLabel':"垂直对齐方式",
    'textVerticalAlignmentTitle':"文本的垂直对齐方式",
    'textHaloRadiusLabel':"文本边框宽度",
    'textHaloRadiusTitle':"文本的外围边框的宽度",
    'textHaloColorLabel':"文本边框颜色",
    'textHaloColorTitle':"文本的外围边框的颜色",
    'textFillLabel':"文本颜色",
    'textFillTitle':"文本的颜色值",
    'textOpacityLabel':"透明度",
    'textOpacityTitle':"文本的透明度",
    'textDxLabel':"横向偏移",
    'textDxTitle':"文本的横向偏移值",
    'textDyLabel':"纵向偏移值",
    'textDyTitle':"文本的纵向偏移值",
    'textCompOpLabel':"叠加方式",
    'textCompOpTitle':"文本之间相互叠加里使用的覆盖或者是异或等运算方式",
    'expandingPointContent':"展",
    'volleyPointContent':"齐",
    'rendezvousPointContent':"会",
    'supplyPointContent':"补",
    //symbolAlgo
	//JB
    'symbolAlgo_17703':"加",
    'symbolAlgo_17704':"急",
    'symbolAlgo_21600':"冲",
    'symbolAlgo_28000_1':"危",
    'symbolAlgo_28000_2':"中",
    'symbolAlgo_28000_3':"轻",
    'symbolAlgo_315':"突击",
    'symbolAlgo_31304':"慑阻",
    'symbolAlgo_3010301':"调",
    'symbolAlgo_3010303':"出",
    'symbolAlgo_3010304':"协",

	//WJ
    'symbolAlgo_2121505':"火",
    'symbolAlgo_2121506':"墩",
    'symbolAlgo_2121507':"复",
    'symbolAlgo_2121601':"遥",
    'symbolAlgo_2121602':"障",
    'symbolAlgo_30010':"?",
    'symbolAlgo_3001101':"集",
    'symbolAlgo_3001102':"暴",
    'symbolAlgo_3001103':"骚",
    'symbolAlgo_3001104':"私",
    'symbolAlgo_3001105':"盗",
    'symbolAlgo_30020':"水",
    'symbolAlgo_3002001':"震",
    'symbolAlgo_3002004':"火",
    'symbolAlgo_30025':"滞",
    'symbolAlgo_5010301':"调",
    'symbolAlgo_5010303':"出",
    'symbolAlgo_5010304':"协",
    'symbolAlgo_5010401':"JZ",
    'symbolAlgo_5022001':"ZD0",
    'symbolAlgo_5034801':"催",
    "symbolAlgo_60203":"避",
    'symbolAlgo_60301':"爆",
    'symbolAlgo_6030101':"挖",
    'symbolAlgo_6030102':"浇",
    'symbolAlgo_6030103':"砌",
    'symbolAlgo_6030104':"装",
    'symbolAlgo_6030105':"石",
    'symbolAlgo_6030106':"沙",
    'symbolAlgo_6030107':"练",
    'symbolAlgo_60304':"隧",
    'symbolAlgo_3002501':"踏",
    'symbolAlgo_30026':"灾",
    'symbolAlgo_40104':"缉",
    'symbolAlgo_4030301':"标",
    'symbolAlgo_4030302':"劝",
    'symbolAlgo_4030303':"疏",
    'symbolAlgo_40304':"警",
    'symbolAlgo_4030401':"警",

    //basic symbol
    'polyLine':"折线",
    'parallelogram':"平行四边形",
    'circle':"圆",
    'ellipse':"椭圆",
    'annotation':"注记",
    'regularPolygon':"正多边形",
    'polygon':"多边形",
    'bezier':"贝塞尔曲线",
    'closedBesselCurve':"闭合贝塞尔曲线",
    'kidney':"集结地",
    'brace':"大括号",
    'trapezoid':"梯形",
    'rectangle':"矩形",
    'chord':"弓形",
    'sector':"扇形",
    'arc':"弧线",
    'parallel':"平行线",
    'annoframe':"注记指示框",
    'tooltipBoxM':"多角标注框",
    'runway':"跑道线",
    'curveEight':"八字形",
    'arrowLine':"箭头线",
    'pathText':"沿线注记",
    'concentricCircle':"同心圆",
    'combinedCircle':"组合圆",
    'freeCurve':"自由线",
    'nodeChain':"节点链",
    'lineMarking':"线型标注",
    'symbolTextBox':"标注框",

    'parallelFlatArrow':"平行平耳箭头",
    'multipleArrow':"多箭头",
    'trapezoidalFlatArrow':"梯形平耳箭头",
    'besselPointArrow':"贝塞尔尖耳箭头",
    'besselArrow':"普通贝塞尔箭头",
    'doubleArrow':"钳击箭头",
    'brokenSpaceTriangleArrow':"折线空三角箭头",
    'besselDovetailArrow':"贝塞尔燕尾箭头",
    'ordinaryLineArrow':"普通折线箭头",
    'besselPointedEarsTailArrow':"贝塞尔尖耳燕尾箭头",
    'besselTipArrow':"贝塞尔尖耳单点箭头",
    'besselArrowNoGraph':"普通贝塞尔箭头(不随图)",
    'brokenSpaceTriangleArrowNoGraph':"折线空三角箭头(不随图)",
    'besselPointedEarsTailArrowNoGraph':"贝塞尔尖耳燕尾箭头(不随图)",
    'ordinaryLineArrowNoGraph':"普通折线箭头(不随图)",
    'combianationArrow':"组合箭头",
    'symbolAlgo_311':'进攻方向',
    'symbolAlgo_317':'钳击',

    //new obj
    'airDeployment':"空军兵力部署",
    'airRoute':"空军航线",
    'arcRegion':"扇形区域",
    'flagGroup':"多旗",
    'lineRelation':"对象间连线",
    'polygonRegion':"多边形区域管理",
    'navyRoute':"海军航线",
    'missileRoute':"导弹航线",
    'navyDeployment':"海军兵力部署",
    'satelliteTimeWindows':"卫星时间窗",
    'satellite':"卫星",
    'symbolText':"对象标注",
    'symbolText1':"对象标注(带指示线)",
    'interferenceBeam':"干扰波束",
    'groupObject':"组合对象",

    //routeNodeTypeName
    'RENDEZVOUS': "会合点",
    'EXPANDING': "展开点",
    'VOLLEY': "齐射点",
    'STANDBY': "待机点",
    'SUPPLY': "补给点",
    'TAKEOFF': "起飞点",
    'INITIAL': "初始点",
    'VISUALINITAL': "可视初始点",
    'LANCH': "发射点",
    'TURNING': "转弯点",
    'AIMING': "瞄准点",
    'COMMONROUTE': "普通航路点",
    'WEAPONLAUNCH': "武器发射点",
    'TARGET': "目标点",
    'ATTACK':"攻击点",
    'SUPPRESS':"压制点",
    'EIGHTSPIRAL':"八字盘旋点",
    'HAPPYVALLEY':"跑马圈点",

    'LITERATESIGN':"标牌文字",

    'undoStackOverflow': '撤销的栈溢出',

    //Mapviewer
    'noContent':'无内容',
    'lableTitle': '_标签图层'

};



/***/ }),
/* 1 */
/***/ (function(module, exports) {

/*!
 * 
 *          iclient-plot-algorithms-jb.(https://iclient.supermap.io)
 *          Copyright© 2000 - 2020 SuperMap Software Co.Ltd
 *          version: v10.1.1
 *         
 */!function(t){var e={};function l(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,l),i.l=!0,i.exports}l.m=t,l.c=e,l.d=function(t,e,o){l.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},l.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l.t=function(t,e){if(1&e&&(t=l(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(l.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)l.d(o,i,function(e){return t[e]}.bind(null,i));return o},l.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return l.d(e,"a",e),e},l.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},l.p="",l(l.s=233)}([function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol1770501=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.2),l.scaleValues.push(.3),l.scaleValues.push(.7),l.scaleValues.push(.1),l.scaleValues.push(.5),l.scaleValues.push(1),l.scaleValues.push(.03)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);0===this.scaleValues.length&&(this.scaleValues.push(.02),this.scaleValues.push(.2),this.scaleValues.push(.3),this.scaleValues.push(.7),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.03)),this.isEdit||(this.scaleValues[0]=.2*this.getSubSymbolScaleValue(),this.scaleValues[7]=this.getSubSymbolScaleValue());var l=e*this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=this.scaleValues[7]*i,a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.3125*i),r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.6875*i),s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,i*this.scaleValues[5]),p=(this.scaleValues[2],this.scaleValues[6],[]),u=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n*this.scaleValues[6],o[s.index],s.pt);p.push(new SuperMapAlgoPlot.Point(u.pntRight.x,u.pntRight.y)),p.push(new SuperMapAlgoPlot.Point(u.pntLeft.x,u.pntLeft.y));var P,c,g=SuperMapAlgoPlot.PlottingUtil.distance(a.pt,r.pt)*this.scaleValues[6];g>(n*=this.scaleValues[6])?(P=SuperMapAlgoPlot.PlottingUtil.paraLine(p,n/2,!0),c=SuperMapAlgoPlot.PlottingUtil.paraLine(p,n/2,!1)):(P=SuperMapAlgoPlot.PlottingUtil.paraLine(p,g/2,!0),c=SuperMapAlgoPlot.PlottingUtil.paraLine(p,g/2,!1));var S=[];S.push(P[0]),S.push(P[P.length-1]),S.push(c[c.length-1]),S.push(c[0]);var h={surroundLineFlag:!1,fillLimit:!0,strokeColor:"#37CECE",fillColorLimit:!0,fillColor:"#37CECE",fill:!0,fillOpacity:.7,lineColorLimit:!0,color:"#37CECE",surroundLineLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,h);var f=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(S);h={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0};var y=SuperMapAlgoPlot.PlottingUtil.paraLine(o,l,!1);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,h);for(var A=i*this.scaleValues[1],M=this.getDashLinePts(o,A),b=0;b<M.length;b++){var d=M[b];d=SuperMapAlgoPlot.PlottingUtil.clearSamePts(d);var m=SuperMapAlgoPlot.PlottingUtil.paraLine(d,l,!0);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,m,h)}this.addScalePoint(f),this.addScalePoint(p[1]),this.finish()}}},{key:"getDashLinePts",value:function(t,e){var l=[],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(e>o)return l;for(var i=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),n=2*parseInt(o/(1.5*e)),a=0;a<n;a++){var r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,e);if(-1!==r.index){if(0==a%2){for(var s=[],p=0;p<r.index+1;p++)s.push(i[p].clone());s.push(r.pt),l.push(s)}var u=[];u.push(r.pt);for(var P=r.index+1;P<i.length;P++)u.push(i[P]);i=(i=[]).concat(u)}}return i.length>0&&l.push(i),l}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);for(var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=0,a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=SuperMapAlgoPlot.PlottingUtil.distance(o[0],e),s=0,p=1;p<o.length;p++){var u=SuperMapAlgoPlot.PlottingUtil.distance(o[p],e);u<r&&(r=u,s=p)}var P=[];for(p=0;p<o.length;p++)p<=s&&P.push(o[p]);var c=SuperMapAlgoPlot.PlottingUtil.polylineDistance(P);if(0===t)if(o.length<=3){if(0===(n=SuperMapAlgoPlot.PlottingUtil.distance(a.pts,e)))return;var g=.5;e.x-a.pts.x<0?((g=-1*n/i+.5)<0&&(g=0),this.scaleValues[5]=g):((g=n/i+.5)>1&&(g=1),this.scaleValues[5]=g)}else this.scaleValues[5]=c/i;else if(1===t){a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i*this.scaleValues[5],o),n=SuperMapAlgoPlot.PlottingUtil.distance(a.pts,e);var S=this.scaleValues[7]*i;this.scaleValues[6]=n/S}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol1770501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol1770201=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.2),l.scaleValues.push(.3),l.scaleValues.push(.7),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);0===this.scaleValues.length&&(this.scaleValues.push(.02),this.scaleValues.push(.2),this.scaleValues.push(.3),this.scaleValues.push(.7),this.scaleValues.push(.1)),this.isEdit||(this.scaleValues[0]=.2*this.getSubSymbolScaleValue());var l=e*this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=i*this.scaleValues[2],a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,n),r=4*l,s=[],p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[a.index],a.pt);s.push(new SuperMapAlgoPlot.Point(p.pntLeft.x,p.pntLeft.y)),s.push(new SuperMapAlgoPlot.Point(p.pntRight.x,p.pntRight.y)),n=i*this.scaleValues[3],a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,n);var u=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[a.index],a.pt);s.push(new SuperMapAlgoPlot.Point(u.pntLeft.x,u.pntLeft.y)),s.push(new SuperMapAlgoPlot.Point(u.pntRight.x,u.pntRight.y));for(var P=i*this.scaleValues[1],c=this.getDashLinePts(o,P),g={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0},S=0;S<c.length;S++){var h=c[S];h=SuperMapAlgoPlot.PlottingUtil.clearSamePts(h);var f=SuperMapAlgoPlot.PlottingUtil.paraLine(h,l,!0),y=SuperMapAlgoPlot.PlottingUtil.paraLine(h,l,!1);1!=S?(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,g)):(f.unshift(s[0]),f.push(s[2]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,g),y.unshift(s[1]),y.push(s[3]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,g))}r=2*l;var A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.05*i),M=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt);A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.15*i);var b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt),d=[];d.push(M.pntLeft),d.push(b.pntRight),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),(d=[]).push(M.pntRight),d.push(b.pntLeft),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.45*i);var m=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt);A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.55*i);var v=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt);(d=[]).push(m.pntLeft),d.push(v.pntRight),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),(d=[]).push(m.pntRight),d.push(v.pntLeft),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.85*i);var O=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt);A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.95*i);var U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt);(d=[]).push(O.pntLeft),d.push(U.pntRight),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),(d=[]).push(O.pntRight),d.push(U.pntLeft),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),this.finish()}}},{key:"getDashLinePts",value:function(t,e){var l=[],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(e>o)return l;for(var i=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),n=2*parseInt(o/(1.5*e)),a=0;a<n;a++){var r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,e);if(-1!==r.index){if(0==a%2){for(var s=[],p=0;p<r.index+1;p++)s.push(i[p].clone());s.push(r.pt),l.push(s)}var u=[];u.push(r.pt);for(var P=r.index+1;P<i.length;P++)u.push(i[P]);i=(i=[]).concat(u)}}return i.length>0&&l.push(i),l}}]),e}();SuperMapAlgoPlot.AlgoSymbol1770201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol1770101=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.2),l.scaleValues.push(.3),l.scaleValues.push(.7),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);0===this.scaleValues.length&&(this.scaleValues.push(.02),this.scaleValues.push(.2),this.scaleValues.push(.3),this.scaleValues.push(.7),this.scaleValues.push(.1)),this.isEdit||(this.scaleValues[0]=.2*this.getSubSymbolScaleValue());var l=e*this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=i*this.scaleValues[2],a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,n),r=4*l,s=[],p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[a.index],a.pt);s.push(new SuperMapAlgoPlot.Point(p.pntLeft.x,p.pntLeft.y)),s.push(new SuperMapAlgoPlot.Point(p.pntRight.x,p.pntRight.y)),n=i*this.scaleValues[3],a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,n);var u=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[a.index],a.pt);s.push(new SuperMapAlgoPlot.Point(u.pntLeft.x,u.pntLeft.y)),s.push(new SuperMapAlgoPlot.Point(u.pntRight.x,u.pntRight.y));for(var P=i*this.scaleValues[1],c=this.getDashLinePts(o,P),g={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0},S=0;S<c.length;S++){var h=c[S];SuperMapAlgoPlot.PlottingUtil.clearSamePts(h);var f=SuperMapAlgoPlot.PlottingUtil.paraLine(h,l,!0),y=SuperMapAlgoPlot.PlottingUtil.paraLine(h,l,!1);1!=S?(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,g)):(f.unshift(s[0]),f.push(s[2]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,g),y.unshift(s[1]),y.push(s[3]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,g))}r=2*l;var A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.05*i),M=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt);A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.15*i);var b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt),d=[];d.push(M.pntLeft),d.push(b.pntRight),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),(d=[]).push(M.pntRight),d.push(b.pntLeft),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.45*i);var m=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt);A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.55*i);var v=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt);(d=[]).push(m.pntLeft),d.push(v.pntRight),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),(d=[]).push(m.pntRight),d.push(v.pntLeft),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.85*i);var O=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt);A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.95*i);var U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt);(d=[]).push(O.pntLeft),d.push(U.pntRight),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),(d=[]).push(O.pntRight),d.push(U.pntLeft),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,0);var L=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(1.5*r,o[A.index+1],A.pt);A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.5*i);var w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(3*r,o[A.index],A.pt);A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,i);var V=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(1.5*r,o[A.index],A.pt);(d=[]).push(L.pntLeft),d.push(w.pntRight),d.push(V.pntRight);var _=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(d);_=SuperMapAlgoPlot.PlottingUtil.clearSamePts(_),g={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,_,g),this.finish()}}},{key:"getDashLinePts",value:function(t,e){var l=[],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(e>o)return l;for(var i=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),n=2*parseInt(o/(1.5*e)),a=0;a<n;a++){var r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,e);if(-1!==r.index){if(0==a%2){for(var s=[],p=0;p<r.index+1;p++)s.push(i[p].clone());s.push(r.pt),l.push(s)}var u=[];u.push(r.pt);for(var P=r.index+1;P<i.length;P++)u.push(i[P]);i=(i=[]).concat(u)}}return i.length>0&&l.push(i),l}}]),e}();SuperMapAlgoPlot.AlgoSymbol1770101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4021102=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol30800),e}();SuperMapAlgoPlot.AlgoSymbol4021102=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4021101=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol30800),e}();SuperMapAlgoPlot.AlgoSymbol4021101=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6020404=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 l=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===l.scaleValues.length&&l.scaleValues.push(.1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(!this.isEdit){var e=.3*this.getSubSymbolScaleValue();e>.05&&(e=.05),this.scaleValues[0]=e}for(var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=Math.abs(l*this.scaleValues[0]),i=this.getDashLinePts(t,o),n={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},a=1,r=0;r<i.length;r++){var s=i[r];if(0==a%2)if(2===s.length&&r!==i.length-1){var p=new SuperMapAlgoPlot.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),u=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*o,s[0],p),P=null;P=this.scaleValues[0]>0?u.pntLeft:u.pntRight,this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[P,s[0],s[1]],n)}else a--;i[r].length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),a++}var c=180*SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])/Math.PI;this.scaleValues[0]>0?c+=90:c-=90;var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],2*o,2*o,c);this.addScalePoint(g),this.finish()}}},{key:"getDashLinePts",value:function(t,e){var l=[],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(e>o)return l;for(var i=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),n=2*parseInt(o/(1.5*e)),a=0;a<n;a++){var r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,e);if(-1!==r.index){if(0==a%2){for(var s=[],p=0;p<r.index+1;p++)s.push(i[p].clone());s.push(r.pt),l.push(s)}var u=[];u.push(r.pt);for(var P=r.index+1;P<i.length;P++)u.push(i[P]);i=(i=[]).concat(u)}}return i.length>0&&l.push(i),l}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=.5*SuperMapAlgoPlot.PlottingUtil.distance(l[0],e)/o;i>=.05&&(i=.05),SuperMapAlgoPlot.PlottingUtil.isRight(e,l[0],l[1])&&(i=-i),this.scaleValues[0]=i}}}]),e}();SuperMapAlgoPlot.AlgoSymbol6020404=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6020403=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=1.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(1.05));var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);2===this.controlPoints.length&&t.splice(1,0,new SuperMapAlgoPlot.Point(t[0].x+e,t[0].y));var l=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),o=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),i=new SuperMapAlgoPlot.Point(t[2].x,t[2].y),n=SuperMapAlgoPlot.PlottingUtil.distance(l,o),a=n*this.scaleValues[0],r=180*SuperMapAlgoPlot.PlottingUtil.radian(l,o)/Math.PI%360,s=180*SuperMapAlgoPlot.PlottingUtil.radian(l,i)/Math.PI%360;r>s&&(s+=360);var p=(s-r)/50,u=this.getArcPts(t[0],n,r,s,p),P=this.getArcPts(t[0],a,r,s,p);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineLimit:!0}),3===this.controlPoints.length&&(this.controlPoints[2]=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e,e,s)),this.addScalePoint(new SuperMapAlgoPlot.Point(P[P.length-1].x,P[P.length-1].y),0),this.finish()}}},{key:"getArcPts",value:function(t,e,l,o,i){void 0!==i&&null!==i||(i=1);for(var n=[],a=l;a<o;a+=i){var r=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,a);n.push(r)}var s=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,o);return n.push(s),n}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]),i=SuperMapAlgoPlot.PlottingUtil.distance(l[0],e)/o;i>=1.01&&(this.scaleValues[0]=i)}}}]),e}();SuperMapAlgoPlot.AlgoSymbol6020403=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4022102=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol23500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),!(t.length<this.minEditPts)){4>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var i=this.scaleValues[0],n=this.scaleValues[2],a=this.scaleValues[3],r=o*i,s=new SuperMapAlgoPlot.Point(l.x+o*n,l.y+o*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],s,r,0);var p=new SuperMapAlgoPlot.Point(s.x+r,s.y+r/2),u=new SuperMapAlgoPlot.Point(s.x+r,s.y-r/2),P=.3*r,c=SuperMapAlgoPlot.PlottingUtil.radian(u,p)*SuperMapAlgoPlot.PlottingUtil.RTOD,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,P,P,c+157.5),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,P,P,c+202.5),h=new SuperMapAlgoPlot.Point((g.x+S.x)/2,(g.y+S.y)/2),f=[];f.push(u),f.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[g,h,S,p],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0),this.addScalePoint(s);var y=r,A=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,y,y,90);this.addScalePoint(A),this.finish(),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol4022102=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4022101=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol23500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),!(t.length<this.minEditPts)){4>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var i=this.scaleValues[0],n=this.scaleValues[2],a=this.scaleValues[3],r=o*i,s=new SuperMapAlgoPlot.Point(l.x+o*n,l.y+o*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],s,r,0);var p=new SuperMapAlgoPlot.Point(s.x+r,s.y+r/2),u=new SuperMapAlgoPlot.Point(s.x+r,s.y-r/2),P=.3*r,c=SuperMapAlgoPlot.PlottingUtil.radian(p,u)*SuperMapAlgoPlot.PlottingUtil.RTOD,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,P,P,c+157.5),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,P,P,c+202.5),h=new SuperMapAlgoPlot.Point((g.x+S.x)/2,(g.y+S.y)/2),f=[];f.push(p),f.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[g,h,S,u],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0),this.addScalePoint(s);var y=r,A=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,y,y,90);this.addScalePoint(A),this.finish(),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol4022101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4022100=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol23500),e}();SuperMapAlgoPlot.AlgoSymbol4022100=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4020402=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.069485),l.scaleValues.push(.15),l.scaleValues.push(.1),l.scaleValues.push(1.731025),l.scaleValues.push(2.076877)),l}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,SuperMapAlgoPlot.AlgoSymbol30102),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o),this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var i=e*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI,a=e*this.scaleValues[2],r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==r.index){var s=r.index,p=r.pt,u=new SuperMapAlgoPlot.Point(o[s].x,o[s].y),P=new SuperMapAlgoPlot.Point(o[s+1].x,o[s+1].y),c=180*SuperMapAlgoPlot.PlottingUtil.radian(u,P)/Math.PI,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,a/2,a/2,c+n),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,a,a,c+n+180);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[g,S]);var h=180*SuperMapAlgoPlot.PlottingUtil.radian(p,g)/Math.PI,f=new SuperMapAlgoPlot.Point(-.2*a,.05*a),y=new SuperMapAlgoPlot.Point(-.2*a,-.05*a),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(g,f,h),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(g,y,h);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[g,A,M],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});var b=.4*a*this.scaleValues[5],d=.4*a*this.scaleValues[6],m=new SuperMapAlgoPlot.Point(0,-.9*(b-.25*d)),v=new SuperMapAlgoPlot.Point(0,.9*(b-.25*d)),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,m,h),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,v,h);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[O,U]);var L=new SuperMapAlgoPlot.Point(0,-b),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,L,h),V=new SuperMapAlgoPlot.Point(.5*d,-.25*d),_=new SuperMapAlgoPlot.Point(-.25*d,-.25*d),T=new SuperMapAlgoPlot.Point(-.5*d,.25*d),x=new SuperMapAlgoPlot.Point(.5*d,.25*d),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,V,h),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,_,h),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,T,h),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,x,h);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[E,Y,j,C,E]);var I=new SuperMapAlgoPlot.Point(0,b),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,I,h),R=new SuperMapAlgoPlot.Point(0,.25*d),N=new SuperMapAlgoPlot.Point(.5*d,0),D=new SuperMapAlgoPlot.Point(0,-.25*d),k=new SuperMapAlgoPlot.Point(-.5*d,0),z=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(B,R,h),F=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(B,N,h),G=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(B,D,h),K=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(B,k,h);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[z,F,G,K,z]),this.addScalePoint(p,0);var W=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,a,a,c+n);this.addScalePoint(W,1);var q=new SuperMapAlgoPlot.Point(0,-b),J=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,q,h);this.addScalePoint(J,2);var Z=new SuperMapAlgoPlot.Point(-.5*d,0),X=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(B,Z,h);this.addScalePoint(X,3),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol4020402=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4020401=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol30100),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o),this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var i=e*this.scaleValues[0],n=this.scaleValues[1]*SuperMapAlgoPlot.PlottingUtil.RTOD,a=e*this.scaleValues[2],r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==r.index){var s=r.pt,p=r.index,u=new SuperMapAlgoPlot.Point(s.x,s.y),P=new SuperMapAlgoPlot.Point(o[p].x,o[p].y),c=new SuperMapAlgoPlot.Point(o[p+1].x,o[p+1].y),g=SuperMapAlgoPlot.PlottingUtil.radian(P,c)*SuperMapAlgoPlot.PlottingUtil.RTOD,S=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,1.5*a,1.5*a,g+n);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,S]);var h=SuperMapAlgoPlot.PlottingUtil.radian(u,S)*SuperMapAlgoPlot.PlottingUtil.RTOD,f=new SuperMapAlgoPlot.Point(-.2*a,.05*a),y=new SuperMapAlgoPlot.Point(-.2*a,-.05*a),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,f,h),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,y,h);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[S,A,M],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});var b=new SuperMapAlgoPlot.Point(.6*a,0),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u,b,h),m=.4*a*this.scaleValues[5],v=.4*a*this.scaleValues[6],O=new SuperMapAlgoPlot.Point(0,-.9*(m-.25*v)),U=new SuperMapAlgoPlot.Point(0,.9*(m-.25*v)),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,O,h),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,U,h);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[L,w]);var V=new SuperMapAlgoPlot.Point(0,m),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,V,h),T=new SuperMapAlgoPlot.Point(.5*v,-.25*v),x=new SuperMapAlgoPlot.Point(-.5*v,-.25*v),E=new SuperMapAlgoPlot.Point(-.5*v,.25*v),Y=new SuperMapAlgoPlot.Point(.25*v,.25*v),j=new SuperMapAlgoPlot.Point(.5*v,0),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,T,h+180),I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,x,h+180),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,E,h+180),R=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,Y,h+180),N=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,j,h+180);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[C,I,B,R,C]);var D=new SuperMapAlgoPlot.Point(0,-m),k=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,D,h),z=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(k,T,h+180),F=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(k,x,h+180),G=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(k,E,h+180),K=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(k,Y,h+180);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[z,F,G,K,z]),this.addScalePoint(s,0),this.addScalePoint(S,1);var W=new SuperMapAlgoPlot.Point(0,-m),q=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,W,h);this.addScalePoint(q,2),this.addScalePoint(N,3),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol4020401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4020303=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.069485),l.scaleValues.push(.14),l.scaleValues.push(.1),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.scaleValues.length<5&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(Math.PI/2),this.scaleValues.push(.069485),this.scaleValues.push(.14),this.scaleValues.push(.1),this.scaleValues.push(.1));var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[2]=1.5*o,this.scaleValues[4]=.5*o,this.scaleValues[5]=.5*o}var i=l*this.scaleValues[4],n=this.scaleValues[0]-this.scaleValues[3];n<0&&(n=0);var a=this.scaleValues[0]+this.scaleValues[3];a>1&&(a=1);var r=this.getLinePts(e,this.scaleValues[4],n),s=this.getLinePts(e,this.scaleValues[4],a),p=new SuperMapAlgoPlot.Point((r.startPt.x+r.endPt.x)/2,(r.startPt.y+r.endPt.y)/2),u=SuperMapAlgoPlot.PlottingUtil.radian(r.startPt,r.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.createSubSymbol1(p,i,u);var P=new SuperMapAlgoPlot.Point((s.startPt.x+s.endPt.x)/2,(s.startPt.y+s.endPt.y)/2),c=SuperMapAlgoPlot.PlottingUtil.radian(s.startPt,s.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.createSubSymbol2(P,i,c);for(var g=[],S=[],h=[],f=0;f<=r.startIndex;f++)g.push(e[f]);if(g.push(r.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g),r.endIndex<=s.startIndex){S.push(r.endPt);for(var y=r.endIndex+1;y<=s.startIndex;y++)S.push(e[y]);S.push(s.startPt),2===e.length&&SuperMapAlgoPlot.PlottingUtil.distance(e[0],r.endPt)<=SuperMapAlgoPlot.PlottingUtil.distance(e[0],s.startPt)&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S),e.length>2&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S)}h.push(s.endPt);for(var A=s.endIndex+1;A<e.length;A++)h.push(e[A]);var M=l*this.scaleValues[0],b=this.scaleValues[1]*SuperMapAlgoPlot.PlottingUtil.RTOD,d=l*this.scaleValues[2],m=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,M);if(-1!==m.index){var v=m.pt,O=new SuperMapAlgoPlot.Point(e[m.index].x,e[m.index].y),U=new SuperMapAlgoPlot.Point(e[m.index+1].x,e[m.index+1].y),L=SuperMapAlgoPlot.PlottingUtil.radian(O,U)*SuperMapAlgoPlot.PlottingUtil.RTOD,w=SuperMapAlgoPlot.PlottingUtil.circlePoint(v,d,d,b+L-180);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[v,w]);var V=SuperMapAlgoPlot.PlottingUtil.radian(v,w)*SuperMapAlgoPlot.PlottingUtil.RTOD,_=new SuperMapAlgoPlot.Point(-.2*d,.05*d),T=new SuperMapAlgoPlot.Point(-.2*d,-.05*d),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,_,V),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,T,V);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[w,x,E],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h),this.addScalePoint(m.pt,0),this.addScalePoint(w,1),this.addScalePoint(p,2),this.addScalePoint(r.startPt,3),this.finish()}}}},{key:"createSubSymbol1",value:function(t,e,l){var o=this.getSubSymbolPts(e);this.createSubSymbol(t,e,l,o)}},{key:"createSubSymbol2",value:function(t,e,l){var o=this.getSubSymbolPts1(e);this.createSubSymbol(t,e,l,o)}},{key:"createSubSymbol",value:function(t,e,l,o){for(var i=[],n=0;n<o.length;n++){var a=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,o[n],l);i.push(a)}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,i)}},{key:"getSubSymbolPts",value:function(t){var e=t,l=[];return l.push(new SuperMapAlgoPlot.Point(0,2*e)),l.push(new SuperMapAlgoPlot.Point(-e,0)),l.push(new SuperMapAlgoPlot.Point(0,-2*e)),l.push(new SuperMapAlgoPlot.Point(e,0)),l}},{key:"getSubSymbolPts1",value:function(t){var e=t,l=[];return l.push(new SuperMapAlgoPlot.Point(e,2*e)),l.push(new SuperMapAlgoPlot.Point(-e,2*e)),l.push(new SuperMapAlgoPlot.Point(-e,-2*e)),l.push(new SuperMapAlgoPlot.Point(e,-e)),l}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n,a,r,s,p,u,P,c,g,S=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){i=-1,n=0,a=new SuperMapAlgoPlot.Point(0,0);for(var h=0;h<o.length-1;h++)(r=[]).push(o[h]),r.push(o[h+1]),s=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,o[h],o[h+1]),-1!==(p=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(s,r)).index&&(u=SuperMapAlgoPlot.PlottingUtil.distance(e,s),-1==i?(i=h,a=s,n=u):n>u&&(i=h,a=s,n=u));if(-1==i||i>o.length-1)return;P=0;for(var f=0;f<i;f++)P+=SuperMapAlgoPlot.PlottingUtil.distance(o[f],o[f+1]);if((P+=SuperMapAlgoPlot.PlottingUtil.distance(o[i],a))<0||P>S)return;var y=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(this.scalePoints[0],o),A=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(this.scalePoints[3],o),M=0;y.index===A.index&&(M=SuperMapAlgoPlot.PlottingUtil.distance(this.scalePoints[0],this.scalePoints[3]));for(var b=A.index;b<y.index;b++)M+=SuperMapAlgoPlot.PlottingUtil.distance(o[b],o[b+1]);P<M+.5?P=M+.5:P>S-M-.5&&(P=S-M-.5),this.scaleValues[0]=P/S}else if(1===t){var d=S*this.scaleValues[0],m=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,d);if(-1===m.index)return;var v=o[m.index],O=o[m.index+1],U=SuperMapAlgoPlot.PlottingUtil.radian(v,O),L=SuperMapAlgoPlot.PlottingUtil.radian(m.pt,e);this.scaleValues[1]=L-U-Math.PI;var w=SuperMapAlgoPlot.PlottingUtil.distance(m.pt,e);this.scaleValues[2]=w/S}else if(2===t){i=-1,n=0,a=new SuperMapAlgoPlot.Point(0,0);for(var V=0;V<o.length-1;V++)(r=[]).push(o[V]),r.push(o[V+1]),s=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,o[V],o[V+1]),-1!==(p=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(s,r)).index&&(u=SuperMapAlgoPlot.PlottingUtil.distance(e,s),-1==i?(i=V,a=s,n=u):n>u&&(i=V,a=s,n=u));if(-1!==i&&i<=o.length-1){P=0;for(var _=0;_<i;_++)P+=SuperMapAlgoPlot.PlottingUtil.distance(o[_],o[_+1]);P+=SuperMapAlgoPlot.PlottingUtil.distance(o[i],a);var T=this.getLinePts(o,this.scaleValues[4],5/14),x=SuperMapAlgoPlot.PlottingUtil.distance(T.startPt,T.endPt)/3*2/S;if(P>0&&P<S){var E=P/S;E<x&&(E=x),E>1-x&&(E=1-x),this.scaleValues[3]=Math.abs(E-this.scaleValues[0])}}}else if(3===t)if(this.scaleValues[0]>.5){var Y=this.scaleValues[0]+this.scaleValues[3],j=S*(c=this.scaleValues[0]-this.scaleValues[3]),C=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,j);-1!==C.index&&((g=SuperMapAlgoPlot.PlottingUtil.distance(C.pt,e)/S)>1-Y&&(g=1-Y),this.scaleValues[4]=g)}else{var I=S*(c=this.scaleValues[0]-this.scaleValues[3]);-1!==(p=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,I)).index&&((g=SuperMapAlgoPlot.PlottingUtil.distance(p.pt,e)/S)>c&&(g=c),this.scaleValues[4]=g)}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol4020303=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4011101=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(-.1),l.scaleValues.push(0),l.scaleValues.push(.1),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){10>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getSubSymbolScaleValue()*SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[0]=i/o,this.scaleValues[3]=i/o}var n=this.scaleValues[0],a=this.scaleValues[1],r=this.scaleValues[3],s=this.scaleValues[4],p=this.scaleValues[6],u=this.scaleValues[7],P=this.scaleValues[8],c=this.scaleValues[9],g=new SuperMapAlgoPlot.Point(l.x+o*p,l.y+o*u),S=new SuperMapAlgoPlot.Point(l.x+o*P,l.y+o*c),h=[],f=.15*SuperMapAlgoPlot.PlottingUtil.distance(g,S),y=SuperMapAlgoPlot.PlottingUtil.linePnt(g,S,f),A=SuperMapAlgoPlot.PlottingUtil.linePnt(S,g,f);h.push(y),h.push(A),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var M=o*n,b=a;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],g,M,b+90);var d=o*r,m=s;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],S,d,m+90),this.addScalePoint(g);var v=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,.5*M,.5*M,b);this.addScalePoint(v),this.addScalePoint(S);var O=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,.5*d,.5*d,m);this.addScalePoint(O),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;10>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var o=[];o=3>=l.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n,a,r,s=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),u=e;if(0==t)i=(u.x-s.x)/p,this.scaleValues[6]=i,n=(u.y-s.y)/p,this.scaleValues[7]=n;else if(1==t){i=this.scaleValues[6],n=this.scaleValues[7];var P=new SuperMapAlgoPlot.Point(s.x+p*i,s.y+p*n),c=2*SuperMapAlgoPlot.PlottingUtil.distance(P,u)/p;this.scaleValues[0]=c;var g=180*SuperMapAlgoPlot.PlottingUtil.radian(P,u)/Math.PI;this.scaleValues[1]=g,this.scaleValues[2]=0<=g&&g<90?1:90<=g&&g<180?2:180<=g&&g<270?3:4}else if(2==t)a=(u.x-s.x)/p,this.scaleValues[8]=a,r=(u.y-s.y)/p,this.scaleValues[9]=r;else if(3==t){a=this.scaleValues[8],r=this.scaleValues[9];var S=new SuperMapAlgoPlot.Point(s.x+p*a,s.y+p*r),h=2*SuperMapAlgoPlot.PlottingUtil.distance(S,u)/p;this.scaleValues[3]=h;var f=180*SuperMapAlgoPlot.PlottingUtil.radian(S,u)/Math.PI;this.scaleValues[4]=f,this.scaleValues[5]=0<=f&&f<90?1:90<=f&&f<180?2:180<=f&&f<270?3:4}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol4011101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4011100=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(-.1),l.scaleValues.push(0),l.scaleValues.push(.1),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){10>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getSubSymbolScaleValue()*SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[0]=i/o,this.scaleValues[3]=i/o}var n=this.scaleValues[0],a=this.scaleValues[1],r=this.scaleValues[3],s=this.scaleValues[4],p=this.scaleValues[6],u=this.scaleValues[7],P=this.scaleValues[8],c=this.scaleValues[9],g=new SuperMapAlgoPlot.Point(l.x+o*p,l.y+o*u),S=new SuperMapAlgoPlot.Point(l.x+o*P,l.y+o*c),h=[],f=.15*SuperMapAlgoPlot.PlottingUtil.distance(g,S),y=SuperMapAlgoPlot.PlottingUtil.linePnt(g,S,f),A=SuperMapAlgoPlot.PlottingUtil.linePnt(S,g,f);h.push(y),h.push(A),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var M=o*n,b=a;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],g,M,b-90);var d=o*r,m=s;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],S,d,m-90),this.addScalePoint(g);var v=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,.5*M,.5*M,b);this.addScalePoint(v),this.addScalePoint(S);var O=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,.5*d,.5*d,m);this.addScalePoint(O),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;10>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var o=[];o=3>=l.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n,a,r,s=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),u=e;if(0==t)i=(u.x-s.x)/p,this.scaleValues[6]=i,n=(u.y-s.y)/p,this.scaleValues[7]=n;else if(1==t){i=this.scaleValues[6],n=this.scaleValues[7];var P=new SuperMapAlgoPlot.Point(s.x+p*i,s.y+p*n),c=2*SuperMapAlgoPlot.PlottingUtil.distance(P,u)/p;this.scaleValues[0]=c;var g=180*SuperMapAlgoPlot.PlottingUtil.radian(P,u)/Math.PI;this.scaleValues[1]=g,this.scaleValues[2]=0<=g&&g<90?1:90<=g&&g<180?2:180<=g&&g<270?3:4}else if(2==t)a=(u.x-s.x)/p,this.scaleValues[8]=a,r=(u.y-s.y)/p,this.scaleValues[9]=r;else if(3==t){a=this.scaleValues[8],r=this.scaleValues[9];var S=new SuperMapAlgoPlot.Point(s.x+p*a,s.y+p*r),h=2*SuperMapAlgoPlot.PlottingUtil.distance(S,u)/p;this.scaleValues[3]=h;var f=180*SuperMapAlgoPlot.PlottingUtil.radian(S,u)/Math.PI;this.scaleValues[4]=f,this.scaleValues[5]=0<=f&&f<90?1:90<=f&&f<180?2:180<=f&&f<270?3:4}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol4011100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4010905=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.333333),l.scaleValues.push(.333333),l.scaleValues.push(.125),l.scaleValues.push(90)),l}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,SuperMapAlgoPlot.AlgoSymbol23901),e}();SuperMapAlgoPlot.AlgoSymbol4010905=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4010801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol4010800),e}();SuperMapAlgoPlot.AlgoSymbol4010801=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4010800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol23500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){4>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l,o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=(l=1.5*this.getDefaultSubSymbolSize())/i;n>.2&&(n=.2),this.scaleValues[0]=n}var a=this.scaleValues[0],r=this.scaleValues[2],s=this.scaleValues[3];l=i*a;var p=new SuperMapAlgoPlot.Point(o.x+i*r,o.y+i*s);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,l,0);for(var u=0;u<this.components.length;u++)this.components[u].style.strokeColor="#0000ff",this.components[u].style.lineColorLimit=!0,this.components[u].style.strokeOpacity=1,this.components[u].style.color="#0000ff",this.components[u].style.opacity=1;this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e),this.addScalePoint(p);var P=l,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,P,P,90);this.addScalePoint(c),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol4010800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3032000=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(-.1),l.scaleValues.push(0),l.scaleValues.push(.1),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol23600),e}();SuperMapAlgoPlot.AlgoSymbol3032000=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3020901=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.125)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(2==t.length){var l=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),o=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),i=SuperMapAlgoPlot.PlottingUtil.distance(l,o),n=180*SuperMapAlgoPlot.PlottingUtil.radian(l,o)/Math.PI,a=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,i,i,n+60);e.push(t[0]),e.push(o),e.push(a),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e)}else{this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);for(var r=0;r<t.length;r++)e.push(t[r])}var s=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var u=this.scaleValues[0],P=this.scaleValues[1],c=this.scaleValues[2],g=new SuperMapAlgoPlot.Point(s.x+p*u,s.y+p*P),S=p*c;0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],g,S,0),this.addScalePoint(g.clone());var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,.5*S,.5*S,90);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];if(2==l.length){var i=new SuperMapAlgoPlot.Point(l[0].x,l[0].y),n=new SuperMapAlgoPlot.Point(l[1].x,l[1].y),a=SuperMapAlgoPlot.PlottingUtil.distance(i,n),r=180*SuperMapAlgoPlot.PlottingUtil.radian(i,n)/Math.PI,s=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,a,a,r+60);o.push(l[0]),o.push(n),o.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o)}else{this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);for(var p=0;p<l.length;p++)o.push(l[p])}var u=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),P=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t)this.scaleValues[0]=(e.x-u.x)/P,this.scaleValues[1]=(e.y-u.y)/P;else if(1===t){var c=new SuperMapAlgoPlot.Point(u.x+P*this.scaleValues[0],u.y+P*this.scaleValues[1]),g=2*SuperMapAlgoPlot.PlottingUtil.distance(e,c)/P;g<.5&&(this.scaleValues[2]=g)}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol3020901=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010304=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 l=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 l.subText="协",l}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,SuperMapAlgoPlot.AlgoSymbol21600),e}();SuperMapAlgoPlot.AlgoSymbol3010304=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010303=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 l=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 l.subText="出",l}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,SuperMapAlgoPlot.AlgoSymbol21600),e}();SuperMapAlgoPlot.AlgoSymbol3010303=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6020402=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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)).apply(this,arguments))}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,SuperMapAlgoPlot.AlgoSymbol6020400),o(e,[{key:"getSubSymbolPts",value:function(t){var e=[],l=[];l.push(new SuperMapAlgoPlot.Point(-t/2,0)),l.push(new SuperMapAlgoPlot.Point(t/2,0)),e.push(l);var o=[];return o.push(new SuperMapAlgoPlot.Point(0,0)),o.push(new SuperMapAlgoPlot.Point(0,t/2)),e.push(o),e}}]),e}();SuperMapAlgoPlot.AlgoSymbol6020402=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6020401=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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)).apply(this,arguments))}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,SuperMapAlgoPlot.AlgoSymbol6020400),o(e,[{key:"getSubSymbolPts",value:function(t){var e=[],l=[];l.push(new SuperMapAlgoPlot.Point(-t/2,0)),l.push(new SuperMapAlgoPlot.Point(t/2,0)),e.push(l);var o=[];return o.push(new SuperMapAlgoPlot.Point(0,-t/2)),o.push(new SuperMapAlgoPlot.Point(0,t/2)),e.push(o),e}}]),e}();SuperMapAlgoPlot.AlgoSymbol6020401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6020400=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.05));var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);2===this.controlPoints.length&&t.splice(1,0,new SuperMapAlgoPlot.Point(t[0].x+e,t[0].y));var l=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),o=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),i=new SuperMapAlgoPlot.Point(t[2].x,t[2].y),n=e,a=180*SuperMapAlgoPlot.PlottingUtil.radian(l,o)/Math.PI%360,r=180*SuperMapAlgoPlot.PlottingUtil.radian(l,i)/Math.PI%360;if(a>r&&(r+=360),!this.isEdit){var s=.5*this.getDefaultSubSymbolSize()/n;s>.1&&(s=.1),this.scaleValues[0]=s}var p=n*this.scaleValues[0],u=180*Math.atan(.5*p/n)/Math.PI,P=(r-a)/3,c=(r-a)/50,g=this.getArcPts(t[0],n,a,a+P-1.8*u,c);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var S=this.getArcPts(t[0],n,a+P+1.8*u,a+2*P-1.8*u,c);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S);var h=this.getArcPts(t[0],n,a+2*P+1.8*u,r,c);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var f=a+P+90,y=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e,e,a+P);this.createSubSymbol(y,p,f);var A=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e,e,a+2*P),M=a+2*P+90;this.createSubSymbol(A,p,M);var b=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e+p,e+p,a+P);this.addScalePoint(b),3===this.controlPoints.length&&(this.controlPoints[2]=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e,e,r)),this.finish()}}},{key:"getArcPts",value:function(t,e,l,o,i){void 0!==i&&null!==i||(i=1);for(var n=[],a=l;a<o;a+=i){var r=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,a);n.push(r)}var s=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,o);return n.push(s),n}},{key:"createSubSymbol",value:function(t,e,l){for(var o=this.getSubSymbolPts(e),i=0;i<o.length;i++){for(var n=o[i],a=[],r=0;r<n.length;r++){var s=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,n[r],l);a.push(s)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a)}}},{key:"getSubSymbolPts",value:function(t){var e=[],l=[];l.push(new SuperMapAlgoPlot.Point(-t/2,0)),l.push(new SuperMapAlgoPlot.Point(t/2,0)),e.push(l);var o=[];return o.push(new SuperMapAlgoPlot.Point(0,-t/2)),o.push(new SuperMapAlgoPlot.Point(0,0)),e.push(o),e}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);2===this.controlPoints.length&&l.splice(1,0,new SuperMapAlgoPlot.Point(l[0].x+o,l[0].y));var i=new SuperMapAlgoPlot.Point(l[0].x,l[0].y),n=new SuperMapAlgoPlot.Point(l[1].x,l[1].y),a=new SuperMapAlgoPlot.Point(l[2].x,l[2].y),r=SuperMapAlgoPlot.PlottingUtil.distance(i,n),s=180*SuperMapAlgoPlot.PlottingUtil.radian(i,n)/Math.PI%360,p=180*SuperMapAlgoPlot.PlottingUtil.radian(i,a)/Math.PI%360;s>p&&(p+=360);var u=(p-s)/3,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(l[0],o,o,s+u),c=SuperMapAlgoPlot.PlottingUtil.distance(P,e)/r;c<=.6&&(this.scaleValues[0]=c)}}}]),e}();SuperMapAlgoPlot.AlgoSymbol6020400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010302=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 l=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 l.subText="冲",l}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,SuperMapAlgoPlot.AlgoSymbol21600),e}();SuperMapAlgoPlot.AlgoSymbol3010302=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010301=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 l=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 l.subText="调",l}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,SuperMapAlgoPlot.AlgoSymbol21600),e}();SuperMapAlgoPlot.AlgoSymbol3010301=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010108=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.05),l}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,SuperMapAlgoPlot.AlgoSymbol3010107),e}();SuperMapAlgoPlot.AlgoSymbol3010108=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3010107=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);0==this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.05):1==this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue(l),this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var o=this.getLinePts(e,this.scaleValues[0]),i=new SuperMapAlgoPlot.Point((o.startPt.x+o.endPt.x)/2,(o.startPt.y+o.endPt.y)/2),n=180*SuperMapAlgoPlot.PlottingUtil.radian(o.startPt,o.endPt)/Math.PI,a=SuperMapAlgoPlot.PlottingUtil.distance(o.startPt,o.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],i,a,n-90);for(var r=[],s=[],p=0;p<=o.startIndex;p++)r.push(e[p]);if(r.push(o.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r),o.endIndex<=e.length){s.push(o.endPt);for(var u=o.endIndex+1;u<=e.length-1;u++)s.push(e[u]);this.addArrow(s,this.scaleValues[1])}var P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,e),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(P.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,n+90);this.addScalePoint(c,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMapAlgoPlot.AlgoSymbol3010107=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3010106=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.05):1==this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!1);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[0]=.8*this.getSubSymbolScaleValue(l),this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var o=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,.3*l);if(-1!==o.index){var i=o.pt,n=o.index,a=l*this.scaleValues[0]*.5,r=SuperMapAlgoPlot.PlottingUtil.radian(i,e[n+1])*SuperMapAlgoPlot.PlottingUtil.RTOD,s=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,a,a,r+90),p=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,a,a,r-90),u=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,i,s),P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,i,p);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u.pntLeft,u.pntRight]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[P.pntLeft,P.pntRight]);var c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,.6*l);if(-1!==c.index){var g=c.pt,S=c.index,h=SuperMapAlgoPlot.PlottingUtil.radian(g,e[S+1])*SuperMapAlgoPlot.PlottingUtil.RTOD,f=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,a,a,h+90),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,a,a,h-90),A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,g,f),M=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,g,y);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[A.pntLeft,A.pntRight]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[M.pntLeft,M.pntRight]),this.addArrow(e,this.scaleValues[1]),this.addScalePoint(y,0),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.6*i,o);if(!n.bfind)return;var a=2*SuperMapAlgoPlot.PlottingUtil.distance(e,n.pts);this.scaleValues[0]=a/i}}}]),e}();SuperMapAlgoPlot.AlgoSymbol3010106=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3010105=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol3010102),o(e,[{key:"getSubSymbolPts",value:function(t){var e=t/4,l=[];l.push(new SuperMapAlgoPlot.Point(-2*e,-e)),l.push(new SuperMapAlgoPlot.Point(e,-e));for(var o=-90;o<=90;o+=5)l.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(new SuperMapAlgoPlot.Point(e,0),e,e,o));return l.push(new SuperMapAlgoPlot.Point(e,e)),l.push(new SuperMapAlgoPlot.Point(-2*e,e)),l}}]),e}();SuperMapAlgoPlot.AlgoSymbol3010105=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3010104=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol3010102),o(e,[{key:"getSubSymbolPts",value:function(t){var e=t/4,l=[];return l.push(new SuperMapAlgoPlot.Point(2*e,0)),l.push(new SuperMapAlgoPlot.Point(0,e)),l.push(new SuperMapAlgoPlot.Point(-2*e,0)),l.push(new SuperMapAlgoPlot.Point(0,-e)),l.push(new SuperMapAlgoPlot.Point(-e,-e)),l.push(new SuperMapAlgoPlot.Point(e,-e)),l.push(new SuperMapAlgoPlot.Point(0,-e)),l}}]),e}();SuperMapAlgoPlot.AlgoSymbol3010104=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3010103=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol3010102),o(e,[{key:"createSubSymbol1",value:function(t,e,l){var o=this.getSubSymbolPts1(e);this.createSubSymbol(t,e,l,o)}},{key:"createSubSymbol2",value:function(t,e,l){var o=this.getSubSymbolPts2(e);this.createSubSymbol(t,e,l,o)}},{key:"getSubSymbolPts1",value:function(t){var e=t/4,l=[];return l.push(new SuperMapAlgoPlot.Point(-2*e,-e)),l.push(new SuperMapAlgoPlot.Point(2*e,-e)),l.push(new SuperMapAlgoPlot.Point(e,e)),l.push(new SuperMapAlgoPlot.Point(-2*e,e)),l}},{key:"getSubSymbolPts2",value:function(t){var e=t/4,l=[];return l.push(new SuperMapAlgoPlot.Point(-2*e,0)),l.push(new SuperMapAlgoPlot.Point(0,-e)),l.push(new SuperMapAlgoPlot.Point(2*e,0)),l.push(new SuperMapAlgoPlot.Point(0,e)),l}}]),e}();SuperMapAlgoPlot.AlgoSymbol3010103=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3010102=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.05):1===this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue(),this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=e*this.scaleValues[0],i=this.getLinePts(l,this.scaleValues[1],5/14),n=this.getLinePts(l,this.scaleValues[1],9/14),a=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=180*SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI;this.createSubSymbol1(a,o,r);var s=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),p=180*SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)/Math.PI;this.createSubSymbol2(s,o,p);var u=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,.5*o,.5*o,p+90);this.addScalePoint(u);for(var P=[],c=[],g=[],S=0;S<=i.startIndex;S++)P.push(l[S]);if(P.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P),i.endIndex<=n.startIndex){c.push(i.endPt);for(var h=i.endIndex+1;h<=n.startIndex;h++)c.push(l[h]);c.push(n.startPt),2===l.length&&SuperMapAlgoPlot.PlottingUtil.distance(l[0],i.endPt)<=SuperMapAlgoPlot.PlottingUtil.distance(l[0],n.startPt)&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c),l.length>2&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c)}g.push(n.endPt);for(var f=n.endIndex+1;f<l.length;f++)g.push(l[f]);this.addArrow(g,this.scaleValues[1]),this.finish()}}},{key:"createSubSymbol1",value:function(t,e,l){var o=this.getSubSymbolPts(e);this.createSubSymbol(t,e,l,o)}},{key:"createSubSymbol2",value:function(t,e,l){var o=this.getSubSymbolPts(e);this.createSubSymbol(t,e,l,o)}},{key:"createSubSymbol",value:function(t,e,l,o){for(var i=[],n=0;n<o.length;n++){var a=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,o[n],l);i.push(a)}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,i)}},{key:"getSubSymbolPts",value:function(t){var e=t/2,l=[];return l.push(new SuperMapAlgoPlot.Point(-2*e,0)),l.push(new SuperMapAlgoPlot.Point(0,-e)),l.push(new SuperMapAlgoPlot.Point(2*e,0)),l.push(new SuperMapAlgoPlot.Point(0,e)),l}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(9*i/14,o),a=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;a<=.3&&(this.scaleValues[0]=a)}}}]),e}();SuperMapAlgoPlot.AlgoSymbol3010102=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2890001=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.05),l.scaleValues.push(180)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){3!==this.scaleValues.length&&(this.scaleValues=[.5,.05,180]);var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2];this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());var a=l*o,r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,e);if(-1!==r.index){for(var s=[],p=0;p<=r.index;p++)s.push(e[p]);var u,P,c,g,S=l*i,h=[];if(a-SuperMapAlgoPlot.PlottingUtil.polylineDistance(s)>(S*=.5)){u=SuperMapAlgoPlot.PlottingUtil.linePnt(r.pts,e[r.index],S),s.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),P=SuperMapAlgoPlot.PlottingUtil.linePnt(r.pts,e[r.index+1],S),h.push(P);for(var f=e.length,y=r.index+1;y<f;++y)h.push(e[y])}else{for(var A=-1,M=s.length-1;M>=0;M--)if(c=new SuperMapAlgoPlot.Point(s[M].x,s[M].y),g=new SuperMapAlgoPlot.Point(r.pts.x,r.pts.y),SuperMapAlgoPlot.PlottingUtil.distance(c,g)>S){A=M;break}if(-1===A)return;s.splice(A+1,s.length-1-A),u=SuperMapAlgoPlot.PlottingUtil.linePnt(r.pts,e[A],S),s.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s);for(var b=-1,d=r.index;d<e.length;d++)if(c=new SuperMapAlgoPlot.Point(e[d].x,e[d].y),g=new SuperMapAlgoPlot.Point(r.pts.x,r.pts.y),SuperMapAlgoPlot.PlottingUtil.distance(c,g)>S){b=d;break}if(-1===b)return;P=SuperMapAlgoPlot.PlottingUtil.linePnt(r.pts,e[b],S),h.push(P);for(var m=b+1;m<e.length;++m)h.push(e[m])}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var v=h[0],O=s[s.length-1],U=new SuperMapAlgoPlot.Point((v.x+O.x)/2,(v.y+O.y)/2);r.x=U.x,r.y=U.y;var L=S,w=new SuperMapAlgoPlot.Point(.5*L,L),V=new SuperMapAlgoPlot.Point(.5*L,-L),_=new SuperMapAlgoPlot.Point(-.5*L,-L),T=new SuperMapAlgoPlot.Point(-.5*L,L),x=[],E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(U,w,n),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(U,V,n),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(U,_,n),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(U,T,n);x.push(E),x.push(Y),x.push(j),x.push(C),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,x);var I=new SuperMapAlgoPlot.Point(0,-2*L),B=new SuperMapAlgoPlot.Point(.15*L,-1.6*L),R=new SuperMapAlgoPlot.Point(-.15*L,-1.6*L),N=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(U,I,n),D=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(U,B,n),k=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(U,R,n),z=[];z.push(N),z.push(D),z.push(k);var F={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,z,F);var G=new SuperMapAlgoPlot.Point(0,-L),K=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(U,G,n);(z=[]).push(K),z.push(N),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,z),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],U,1.5*L,n+90);for(var W=.02*l,q=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(W,e[1],e[0]),J=.5*SuperMapAlgoPlot.PlottingUtil.distance(e[0],q.pntLeft),Z=new SuperMapAlgoPlot.Point((e[0].x+q.pntLeft.x)/2,(e[0].y+q.pntLeft.y)/2),X=SuperMapAlgoPlot.PlottingUtil.radian(e[1],e[0])*SuperMapAlgoPlot.PlottingUtil.RTOD,H=[],Q=270+X;Q<=360+X;Q+=5)H.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(Z,J,J,Q));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,H),w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(W,e[e.length-2],e[e.length-1]);for(var $=new SuperMapAlgoPlot.Point((e[e.length-1].x+w.pntRight.x)/2,(e[e.length-1].y+w.pntRight.y)/2),tt=SuperMapAlgoPlot.PlottingUtil.radian(e[e.length-1],w.pntRight)*SuperMapAlgoPlot.PlottingUtil.RTOD,et=[],lt=90+tt;lt<=180+tt;lt+=5)et.push(SuperMapAlgoPlot.PlottingUtil.circlePoint($,J,J,lt));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,et),this.scalePoints=[],this.addScalePoint(U,0);var ot=new SuperMapAlgoPlot.Point(0,-2*S),it=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(U,ot,this.scaleValues[2]);this.addScalePoint(it,1),this.finish()}}}},{key:"GetSymbolPt",value:function(){var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){3!==this.scaleValues.length&&(this.scaleValues=[.5,.05,0]);var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),o=this.scaleValues[0],i=this.scaleValues[1],n=l*o,a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,e);if(-1!==a.index){for(var r=[],s=0;s<=a.index;s++)r.push(e[s]);var p,u,P,c,g=l*i,S=[];if(n-SuperMapAlgoPlot.PlottingUtil.polylineDistance(r)>(g*=.5)){p=SuperMapAlgoPlot.PlottingUtil.linePnt(a.pts,e[a.index],g),r.push(p),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r),u=SuperMapAlgoPlot.PlottingUtil.linePnt(a.pts,e[a.index+1],g),S.push(u);for(var h=e.length,f=a.index+1;f<h;++f)S.push(e[f])}else{for(var y=-1,A=r.length-1;A>=0;A--)if(P=new SuperMapAlgoPlot.Point(r[A].x,r[A].y),c=new SuperMapAlgoPlot.Point(a.pts.x,a.pts.y),SuperMapAlgoPlot.PlottingUtil.distance(P,c)>g){y=A;break}if(-1===y)return;r.splice(y+1,r.length-1-y),p=SuperMapAlgoPlot.PlottingUtil.linePnt(a.pts,e[y],g),r.push(p);for(var M=-1,b=a.index;b<e.length;b++)if(P=new SuperMapAlgoPlot.Point(e[b].x,e[b].y),c=new SuperMapAlgoPlot.Point(a.pts.x,a.pts.y),SuperMapAlgoPlot.PlottingUtil.distance(P,c)>g){M=b;break}if(-1===M)return;u=SuperMapAlgoPlot.PlottingUtil.linePnt(a.pts,e[M],g),S.push(u);for(var d=M+1;d<e.length;++d)S.push(e[d])}var m=S[0],v=r[r.length-1];return new SuperMapAlgoPlot.Point((m.x+v.x)/2,(m.y+v.y)/2)}}}},{key:"computeScaleValues",value:function(t,e){if((0===t||1===t)&&!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n,a,r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){i=new SuperMapAlgoPlot.Point(e.x,e.y);for(var s=[],p=0;p<o.length;p++)s.push(o[p]);for(var u=-1,P=0,c=new SuperMapAlgoPlot.Point(0,0),g=0;g<s.length-1;g++){var S=[];S.push(s[g]),S.push(s[g+1]);var h=SuperMapAlgoPlot.PlottingUtil.projectPoint(i,s[g],s[g+1]);if(-1!==SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(h,S).index){var f=SuperMapAlgoPlot.PlottingUtil.distance(i,h);-1===u?(u=g,c=h,P=f):P>f&&(u=g,c=h,P=f)}}if(-1===u||u>s.length-1)return;n=0;for(var y=0;y<u;y++){var A=new SuperMapAlgoPlot.Point(o[y].x,o[y].y),M=new SuperMapAlgoPlot.Point(o[y+1].x,o[y+1].y);n+=SuperMapAlgoPlot.PlottingUtil.distance(A,M)}var b=new SuperMapAlgoPlot.Point(o[u].x,o[u].y);a=(n+=SuperMapAlgoPlot.PlottingUtil.distance(b,c))/r;var d=.4-this.scaleValues[1]+.5,m=.5-(.4-this.scaleValues[1]);a>=d&&(a=d),a<=m&&(a=m),this.scaleValues[0]=a}else if(1===t){i=new SuperMapAlgoPlot.Point(e.x,e.y);var v=this.GetSymbolPt();a=(n=SuperMapAlgoPlot.PlottingUtil.distance(i,v))/r;var O=this.scaleValues[0]<.4?this.scaleValues[0]:1-this.scaleValues[0];a>=O&&(a=O),this.scaleValues[1]=a;var U=SuperMapAlgoPlot.PlottingUtil.radian(v,i)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[2]=U-270}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol2890001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2570501=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 l=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===l.scaleValues.length&&l.scaleValues.push(.25),l.subText="封控",l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i=(l-e)/50;this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var n={surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1},a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),r=10*i;t.push(t[0]);var s=!0,p=a.x;for(a.x;s;){s=!1;for(var u,P,c,g,S=[],h=new SuperMapAlgoPlot.Point(p,a.y),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,10,10,60),y=0;y<t.length-1;y++){var A=SuperMapAlgoPlot.PlottingUtil.intersectLines(h,f,t[y],t[y+1]);A.isIntersectLines&&(u=A.intersectPoint,(P=[]).push(t[y]),P.push(t[y+1]),SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(u,P).isOnPolyLine&&S.push(u))}if(1<S.length){this.sortPts2D(S);for(var M=0;M<S.length-1;M++)g=new SuperMapAlgoPlot.Point((S[M].x+S[M+1].x)/2,(S[M].y+S[M+1].y)/2),SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(t,g)&&((c=[]).push(S[M]),c.push(S[M+1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,n,!0))}S.length>0&&(s=!0),p-=r}if(""==!this.subText.toString()){var b=a,d=(l-e)*this.scaleValues[0],m=new SuperMapAlgoPlot.Point(b.x+d,b.y),v=new SuperMapAlgoPlot.Point((b.x+m.x)/2,(b.y+m.y)/2),O=this.subText;this.addText(O,v,d,0)}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMapAlgoPlot.Point(0,0),l=0;l<t.length;l++)for(var o=0;o<t.length-1-l;o++)SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[o].x,t[o+1].x)?t[o].y>t[o+1].y&&(e=t[o],t[o]=t[o+1],t[o+1]=e):t[o].x>t[o+1].x&&(e=t[o],t[o]=t[o+1],t[o+1]=e);return t}}]),e}();SuperMapAlgoPlot.AlgoSymbol2570501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2570401=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 l=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===l.scaleValues.length&&l.scaleValues.push(.25),l.subText="慑阻",l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i=(l-e)/50;this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var n={surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1},a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),r=10*i;t.push(t[0]);var s=!0,p=a.x;for(a.x;s;){s=!1;for(var u,P,c,g,S=[],h=new SuperMapAlgoPlot.Point(p,a.y),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,10,10,60),y=0;y<t.length-1;y++){var A=SuperMapAlgoPlot.PlottingUtil.intersectLines(h,f,t[y],t[y+1]);A.isIntersectLines&&(u=A.intersectPoint,(P=[]).push(t[y]),P.push(t[y+1]),SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(u,P).isOnPolyLine&&S.push(u))}if(1<S.length){this.sortPts2D(S);for(var M=0;M<S.length-1;M++)g=new SuperMapAlgoPlot.Point((S[M].x+S[M+1].x)/2,(S[M].y+S[M+1].y)/2),SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(t,g)&&((c=[]).push(S[M]),c.push(S[M+1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,n,!0))}S.length>0&&(s=!0),p-=r}if(""==!this.subText.toString()){var b=a,d=(l-e)*this.scaleValues[0],m=new SuperMapAlgoPlot.Point(b.x+d,b.y),v=new SuperMapAlgoPlot.Point((b.x+m.x)/2,(b.y+m.y)/2),O=this.subText;this.addText(O,v,d,0)}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMapAlgoPlot.Point(0,0),l=0;l<t.length;l++)for(var o=0;o<t.length-1-l;o++)SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[o].x,t[o+1].x)?t[o].y>t[o+1].y&&(e=t[o],t[o]=t[o+1],t[o+1]=e):t[o].x>t[o+1].x&&(e=t[o],t[o]=t[o+1],t[o+1]=e);return t}}]),e}();SuperMapAlgoPlot.AlgoSymbol2570401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2570301=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 l=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===l.scaleValues.length&&l.scaleValues.push(.25),l.subText="禁飞",l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i=(l-e)/50;this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var n={surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1},a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),r=10*i;t.push(t[0]);var s=!0,p=a.x;for(a.x;s;){s=!1;for(var u,P,c,g,S=[],h=new SuperMapAlgoPlot.Point(p,a.y),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,10,10,60),y=0;y<t.length-1;y++){var A=SuperMapAlgoPlot.PlottingUtil.intersectLines(h,f,t[y],t[y+1]);A.isIntersectLines&&(u=A.intersectPoint,(P=[]).push(t[y]),P.push(t[y+1]),SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(u,P).isOnPolyLine&&S.push(u))}if(1<S.length){this.sortPts2D(S);for(var M=0;M<S.length-1;M++)g=new SuperMapAlgoPlot.Point((S[M].x+S[M+1].x)/2,(S[M].y+S[M+1].y)/2),SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(t,g)&&((c=[]).push(S[M]),c.push(S[M+1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,n,!0))}S.length>0&&(s=!0),p-=r}if(""==!this.subText.toString()){var b=a,d=(l-e)*this.scaleValues[0],m=new SuperMapAlgoPlot.Point(b.x+d,b.y),v=new SuperMapAlgoPlot.Point((b.x+m.x)/2,(b.y+m.y)/2),O=this.subText;this.addText(O,v,d,0)}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMapAlgoPlot.Point(0,0),l=0;l<t.length;l++)for(var o=0;o<t.length-1-l;o++)SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[o].x,t[o+1].x)?t[o].y>t[o+1].y&&(e=t[o],t[o]=t[o+1],t[o+1]=e):t[o].x>t[o+1].x&&(e=t[o],t[o]=t[o+1],t[o+1]=e);return t}}]),e}();SuperMapAlgoPlot.AlgoSymbol2570301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2570201=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 l=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===l.scaleValues.length&&l.scaleValues.push(.25),l.subText="禁航",l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i=(l-e)/50;this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var n={surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1},a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),r=10*i;t.push(t[0]);var s=!0,p=a.x;for(a.x;s;){s=!1;for(var u,P,c,g,S=[],h=new SuperMapAlgoPlot.Point(p,a.y),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,10,10,60),y=0;y<t.length-1;y++){var A=SuperMapAlgoPlot.PlottingUtil.intersectLines(h,f,t[y],t[y+1]);A.isIntersectLines&&(u=A.intersectPoint,(P=[]).push(t[y]),P.push(t[y+1]),SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(u,P).isOnPolyLine&&S.push(u))}if(1<S.length){this.sortPts2D(S);for(var M=0;M<S.length-1;M++)g=new SuperMapAlgoPlot.Point((S[M].x+S[M+1].x)/2,(S[M].y+S[M+1].y)/2),SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(t,g)&&((c=[]).push(S[M]),c.push(S[M+1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,n,!0))}S.length>0&&(s=!0),p-=r}if(""==!this.subText.toString()){var b=a,d=(l-e)*this.scaleValues[0],m=new SuperMapAlgoPlot.Point(b.x+d,b.y),v=new SuperMapAlgoPlot.Point((b.x+m.x)/2,(b.y+m.y)/2),O=this.subText;this.addText(O,v,d,0)}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMapAlgoPlot.Point(0,0),l=0;l<t.length;l++)for(var o=0;o<t.length-1-l;o++)SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[o].x,t[o+1].x)?t[o].y>t[o+1].y&&(e=t[o],t[o]=t[o+1],t[o+1]=e):t[o].x>t[o+1].x&&(e=t[o],t[o]=t[o+1],t[o+1]=e);return t}}]),e}();SuperMapAlgoPlot.AlgoSymbol2570201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2350001=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(0),l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(-.05)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){4>=this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(0),this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(-.05));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var i=this.getSubSymbolScaleValue()*SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[0]=i/o*.8,this.scaleValues[3]=i/o*.8}var n=this.scaleValues[0],a=this.scaleValues[1],r=this.scaleValues[3],s=this.scaleValues[4],p=this.scaleValues[6],u=this.scaleValues[7],P=this.scaleValues[8],c=this.scaleValues[9],g=new SuperMapAlgoPlot.Point(l.x+o*p,l.y+o*u),S=new SuperMapAlgoPlot.Point(l.x+o*P,l.y+o*c),h=o*n,f=a;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],g,h,f);var y=o*r,A=s;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],S,y,A),this.addScalePoint(g);var M=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,h,h,f);this.addScalePoint(M),this.addScalePoint(S);var b=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,y,y,A);this.addScalePoint(b),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;10>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(0),this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(-.05));var o=[];o=3>=l.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n,a,r,s=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),u=e;if(0==t)i=(u.x-s.x)/p,this.scaleValues[6]=i,n=(u.y-s.y)/p,this.scaleValues[7]=n;else if(1==t){i=this.scaleValues[6],n=this.scaleValues[7];var P=new SuperMapAlgoPlot.Point(s.x+p*i,s.y+p*n),c=SuperMapAlgoPlot.PlottingUtil.distance(P,u)/p;this.scaleValues[0]=c;var g=180*SuperMapAlgoPlot.PlottingUtil.radian(P,u)/Math.PI;this.scaleValues[1]=g,this.scaleValues[2]=0<=g&&g<90?1:90<=g&&g<180?2:180<=g&&g<270?3:4}else if(2==t)a=(u.x-s.x)/p,this.scaleValues[8]=a,r=(u.y-s.y)/p,this.scaleValues[9]=r;else if(3==t){a=this.scaleValues[8],r=this.scaleValues[9];var S=new SuperMapAlgoPlot.Point(s.x+p*a,s.y+p*r),h=SuperMapAlgoPlot.PlottingUtil.distance(S,u)/p;this.scaleValues[3]=h;var f=180*SuperMapAlgoPlot.PlottingUtil.radian(S,u)/Math.PI;this.scaleValues[4]=f,this.scaleValues[5]=0<=f&&f<90?1:90<=f&&f<180?2:180<=f&&f<270?3:4}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol2350001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2730101=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=[];l=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),i=new SuperMapAlgoPlot.Point(o.x,0);if(!1===this.polylineConnectLocationPoint){for(var n=0,a=-1,r=0;r<l.length-1;r++){var s=SuperMapAlgoPlot.PlottingUtil.intersectLines(o,new SuperMapAlgoPlot.Point(o.x,o.y+1),l[r],l[r+1]);s.isIntersectLines&&(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(s.intersectPoint,l[r],l[r+1])&&i.x===s.intersectPoint.x&&(0==n?(i.y=s.intersectPoint.y,a=r):i.y<s.intersectPoint.y&&(i.y=s.intersectPoint.y,a=r),n++))}var p=this.getSubSymbolScaleValue()*e,u=[];u.push(i);for(var P=a+1;P<l.length-1;P++)u.push(new SuperMapAlgoPlot.Point(l[P].x,l[P].y));for(var c=0;c<=a;c++)u.push(new SuperMapAlgoPlot.Point(l[c].x,l[c].y));var g=.8*p,S=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(u,g);if(-1===S.index)return;var h=[];h.push(S.pt);for(var f=S.index+1;f<u.length-1;f++)h.push(u[f]);u=[];for(var y=h.length-1;y>0;y--)u.push(h[y]);var A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(u,g);if(-1===A.index)return;(h=[]).push(A.pt);for(var M=A.index+1;M<u.length-1;M++)h.push(u[M]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h),this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbolC(this.subSymbols[0],i,p,0)}else{var b=t[0],d=t[1],m=SuperMapAlgoPlot.PlottingUtil.distance(b,d),v=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.2*m,[b,d]);if(-1===v.index)return;var O=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.4*m,[b,d]);if(-1===O.index)return;var U=[];U.push(t[0]),U.push(v.pts),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U),(U=[]).push(O.pts);for(var L=1;L<t.length;L++)U.push(t[L]);U.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U);var w=new SuperMapAlgoPlot.Point((v.pts.x+O.pts.x)/2,(v.pts.y+O.pts.y)/2);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbolC(this.subSymbols[0],w,.1*m,0)}this.finish()}}},{key:"computeSubSymbolC",value:function(t,e,l,o,i,n){if(null==t.symbolData||null==t.symbolData.innerCells)return null;void 0===i&&(i=0),void 0===n&&(n=0);for(var a=SuperMapAlgoPlot.AnalysisSymbol.analysisSymbolCells(t.symbolData,!0),r=0,s=0,p=0,u=0,P=0;P<a.length;P++){null!=a[P].polybezierClose&&(a[P].type===SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL||a[P].type===SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL?(a[P].type,SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL,a[P].positionPoints=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(a[P].positionPoints),a[P].isClosed&&a[P].positionPoints[0]!==a[P].positionPoints[symbolCell.positionPoints.length-1]&&a[P].positionPoints.push(a[P].positionPoints[0])):a[P].type===SuperMapAlgoPlot.SymbolType.KIDNEY&&(a[P].positionPoints=SuperMapAlgoPlot.Primitives.getSpatialData(a[P].type,a[P].positionPoints)));for(var c=SuperMapAlgoPlot.Primitives.getSpatialData(a[P].type,a[P].positionPoints,a[P].textContent,0,a[P].isCalculate),g=0,S=c.length;g<S;g++)r<c[g].x&&(r=c[g].x),s<c[g].y&&(s=c[g].y),p>c[g].x&&(p=c[g].x),u>c[g].y&&(u=c[g].y)}var h=new SuperMapAlgoPlot.Point(r,s),f=new SuperMapAlgoPlot.Point(p,u),y=(h.y-f.y)/l,A=(h.x-f.x)/l,M=A>y?A:y,b=new SuperMapAlgoPlot.Point(.5*(h.x+f.x),.5*(h.y+f.y));b.x+=i*(h.x-f.x),b.y+=n*(h.y-f.y);for(var d=0,m=a.length;d<m;d++){for(var v=0,O=a[d].positionPoints.length;v<O;v++)a[d].positionPoints[v].x-=b.x,a[d].positionPoints[v].y-=b.y,a[d].positionPoints[v].x/=M,a[d].positionPoints[v].y/=M,SuperMapAlgoPlot.PlottingUtil.rotateAngle(new SuperMapAlgoPlot.Point(0,0),o*Math.PI/180,a[d].positionPoints[v]),a[d].positionPoints[v].x+=e.x,a[d].positionPoints[v].y+=e.y;a[d].type===SuperMapAlgoPlot.SymbolType.TEXTSYMBOL&&(a[d].style.fontSize/=10*M,a[d].style.labelRotation=-o,a[d].style.sizeFixed=!1),a[d].isCalculate=!1,a[d].style.surroundLineType=0,a[d].style.surroundLineLimit=!0,this.components.push(a[d])}var U=a[0].positionPoints[3].x-a[0].positionPoints[0].x,L=a[0].positionPoints[1].y-a[0].positionPoints[2].y,w=new SuperMapAlgoPlot.Point(e.x+U/4,e.y+3*L/4),V=new SuperMapAlgoPlot.Point(e.x+3*U/4,e.y+3*L/4),_=[];return _.push(w),_.push(V),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,_),a}}]),e}();SuperMapAlgoPlot.AlgoSymbol2730101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol44400=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=0,l.scaleValues[1]=0,l.scaleValues[2]=.1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues[0]=0,this.scaleValues[1]=0,this.scaleValues[2]=.1),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t,{fill:!1});var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),o=this.scaleValues[0],i=this.scaleValues[1],n=e*this.scaleValues[2],a=new SuperMapAlgoPlot.Point(l.x+e*o,l.y+e*i),r=new SuperMapAlgoPlot.Point(a.x+1,a.y),s=[];t.push(t[0].clone());for(var p=0;p<t.length-1;p++){var u=SuperMapAlgoPlot.PlottingUtil.intersectLines(a,r,t[p],t[p+1]);u.isIntersectLines&&(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(u.intersectPoint,t[p],t[p+1])&&s.push(u.intersectPoint))}if(!(0>=s.length)){var P=s[0].clone(),c=s[0].clone();for(p=0;p<s.length;p++)P.x>s[p].x&&(P=s[p].clone()),c.x<s[p].x&&(c=s[p].clone());var g=[],S=new SuperMapAlgoPlot.Point(a.x-n/2,P.y);S.x<=c.x&&S.x>=P.x&&((g=[]).push(P),g.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g));var h=new SuperMapAlgoPlot.Point(a.x+n/2,c.y);h.x<=c.x&&h.x>=P.x&&((g=[]).push(c),g.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g)),this.scalePoints=[];var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,n/2,n/2,90);if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(t,a))return this.addScalePoint(a,0),this.addScalePoint(f,1),a.x<P.x?this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[P,a]):this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[c,a]),void this.finish();this.addScalePoint(a,0),this.addScalePoint(f,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;if(0===SuperMapAlgoPlot.PlottingUtil.getOutRectangleDis(l))return;var o,i,n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=e;if(0==t&&(o=(r.x-a.x)/n,this.scaleValues[0]=o,i=(r.y-a.y)/n,this.scaleValues[1]=i),1==t){o=this.scaleValues[0],i=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(a.x+o*n,a.y+i*n),p=2*SuperMapAlgoPlot.PlottingUtil.distance(r,s)/n;this.scaleValues[2]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol44400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol44300=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var i=this.scaleValues[0],n=this.scaleValues[2],a=this.scaleValues[3];l.x=l.x+n*o,l.y=l.y+a*o;var r=o*i,s=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,r,r,90),p=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,r,r,210),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,r,r,330),P=[];P.push(s),P.push(p),P.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,P,{lineTypeLimit:!0,lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineLimit:!0,fillLimit:!0,fill:!0}),this.scalePoints=[],this.addScalePoint(s),this.addScalePoint(l),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=[];if(o=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0===t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(n.x+a,n.y+r),p=SuperMapAlgoPlot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1===t){var u=(e.x-n.x)/i,P=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=P}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol44300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol44200=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.05),l.scaleValues.push(180)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=this.GetGoPts();if(!(t.length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.05),this.scaleValues.push(180));var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[1]=o}var i=this.scaleValues[0],n=this.scaleValues[1],a=this.scaleValues[2],r=l*i,s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,e);if(s.bfind){var p=s.index,u=s.pts,P=u,c=n*l,g=new SuperMapAlgoPlot.Point(c,-.5*c),S=new SuperMapAlgoPlot.Point(c,.5*c),h=new SuperMapAlgoPlot.Point(-c,.5*c),f=new SuperMapAlgoPlot.Point(-c,-.5*c),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,g,a),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,S,a),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,h,a),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,f,a),d=[];d.push(y),d.push(A),d.push(M),d.push(b),d.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,d);var m=new SuperMapAlgoPlot.Point(.5*c,-.2*c),v=new SuperMapAlgoPlot.Point(.7*c,.2*c),O=new SuperMapAlgoPlot.Point(.3*c,.2*c),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,m,a),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,O,a),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,v,a),V=[];V.push(U),V.push(L),V.push(w),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,V,{lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,fillLimit:!0,fill:!0,lineTypeLimit:!0});var _=new SuperMapAlgoPlot.Point(c,0),T=new SuperMapAlgoPlot.Point(2*c,0),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,_,a),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,T,a);(V=[]).push(x),V.push(E),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,V);var Y=new SuperMapAlgoPlot.Point(2*c,.15*c),j=new SuperMapAlgoPlot.Point(2*c,-.15*c),C=new SuperMapAlgoPlot.Point(2.6*c,0),I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,Y,a),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,j,a),R=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,C,a);(V=[]).push(I),V.push(B),V.push(R),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,V,{fillLimit:!0,fill:!0,lineTypeLimit:!0});var N=[];N.push(I),N.push(R);var D,k=[],z=[];for(D=0;D<=p;D++)k.push(e[D]);for(k.push(P),z.push(P),D=p+1;D<e.length;D++)z.push(e[D]);var F,G,K=1.2*c;if(r>K){var W=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r-K,k);if(W.bfind){var q=W.pts,J=W.index;for(V=[],D=0;D<=J;D++)V.push(k[D]);V.push(q),F=SuperMapAlgoPlot.PlottingUtil.radian(V[0],V[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,G=SuperMapAlgoPlot.PlottingUtil.circlePoint(V[0],.1*c,.1*c,90+F),V.splice(0,0,G),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,V)}}if(l-r>K){var Z=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(K,z);if(Z.bfind){var X=Z.pts,H=Z.index;for((V=[]).push(X),D=H+1;D<z.length;D++)V.push(z[D]);var Q=V.length;F=SuperMapAlgoPlot.PlottingUtil.radian(V[Q-1],V[Q-2])*SuperMapAlgoPlot.PlottingUtil.RTOD,G=SuperMapAlgoPlot.PlottingUtil.circlePoint(V[Q-1],.1*c,.1*c,270+F),V.push(G),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,V)}}this.scalePoints=[],this.addScalePoint(u),this.addScalePoint(E),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n,a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0==t){for(var r=e.clone(),s=-1,p=0,u=0;u<o.length-1;u++){var P=[];P.push(o[u]),P.push(o[u+1]);var c=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,o[u],o[u+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(c,P).isOnPolyLine){var g=SuperMapAlgoPlot.PlottingUtil.distance(r,c);-1==s?(s=u,p=g):p>g&&(s=u,p=g)}}if(-1==s)return SuperMapAlgoPlot.PlottingUtil.distance(r,o[0])>SuperMapAlgoPlot.PlottingUtil.distance(r,o[o.length-1])?void(s=o.length-1):void(s=0);if(i=0,0===s)i=SuperMapAlgoPlot.PlottingUtil.distance(o[0],c);else for(var S=0;S<s;S++)i+=SuperMapAlgoPlot.PlottingUtil.distance(o[S],o[S+1]);if(i<0||i>a)return;n=i/a,this.scaleValues[0]=n}else if(1==t){i=this.scaleValues[0]*a;var h=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,o);if(!h.bfind)return;var f=h.pts;(n=.5*SuperMapAlgoPlot.PlottingUtil.distance(f,e)/a)>.3&&(n=.3),this.scaleValues[1]=n;var y=SuperMapAlgoPlot.PlottingUtil.radian(f,e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[2]=y}}}},{key:"GetGoPts",value:function(){var t=[];return this.controlPoints.length<this.minEditPts?t:(t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),1==(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length&&(t=[]),t)}}]),e}();SuperMapAlgoPlot.AlgoSymbol44200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol44100=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.285714),l.scaleValues.push(.105263),l.scaleValues.push(.181818),l.scaleValues.push(.285714),l.scaleValues.push(.285714)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<5&&(this.scaleValues=[],this.scaleValues.push(.285714),this.scaleValues.push(.105263),this.scaleValues.push(.181818),this.scaleValues.push(.285714),this.scaleValues.push(.285714));var e=t[0].clone(),l=t[1].clone(),o=SuperMapAlgoPlot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMapAlgoPlot.Point(0,-o*i),a=new SuperMapAlgoPlot.Point(0,o*i),r=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMapAlgoPlot.Point(o*(1-s),-o*r),u=new SuperMapAlgoPlot.Point(o*(1-s),o*r),P=this.scaleValues[2],c=this.scaleValues[4],g=new SuperMapAlgoPlot.Point(o*(1-c),-o*P),S=new SuperMapAlgoPlot.Point(o*(1-c),o*P),h=new SuperMapAlgoPlot.Point(o,0),f=SuperMapAlgoPlot.PlottingUtil.radian(e,l)*SuperMapAlgoPlot.PlottingUtil.RTOD,y=[];y.push(a),y.push(p),y.push(g),y.push(h),y.push(S),y.push(u),y.push(n);for(var A=[],M=0;M<y.length;M++){var b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,y[M],f);A.push(b)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);var d=[],m=.06*o,v=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(m,l,e),O=v.pntRight,U=v.pntLeft;d.push(O),d.push(U),m=.15*o;var L=new SuperMapAlgoPlot.Point(m,0),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,L,f);d.push(w),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,d,{lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,fillLimit:!0,fill:!0,lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(A[0]),this.addScalePoint(A[1]),this.addScalePoint(A[2]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o,i=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]),n=l[0].clone(),a=l[1].clone(),r=e.clone();if(0==t){var s=SuperMapAlgoPlot.PlottingUtil.distance(r,n)/i;this.scaleValues[0]=s}else if(1==t){o=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,n,a);var p=SuperMapAlgoPlot.PlottingUtil.distance(o,r)/i;this.scaleValues[1]=p;var u=SuperMapAlgoPlot.PlottingUtil.distance(o,a)/i;this.scaleValues[3]=u}else if(2==t){o=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,n,a);var P=SuperMapAlgoPlot.PlottingUtil.distance(o,r)/i;this.scaleValues[2]=P;var c=SuperMapAlgoPlot.PlottingUtil.distance(o,a)/i;this.scaleValues[4]=c}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol44100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol43500=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),o=[];for(e=15;e<=75;e+=5)o.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,e));for(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o),o=[],e=105;e<=165;e+=5)o.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,e));for(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o),o=[],e=195;e<=255;e+=5)o.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,e));for(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o),o=[],e=285;e<=345;e+=5)o.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,e));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o);var i,n,a,r,s,p=.2*l,u=new SuperMapAlgoPlot.Point(t[0].x-p,t[0].y),P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(p,t[0],u);i=P.pntRight,n=P.pntLeft,a=(P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*p,i,n)).pntLeft;var c=new SuperMapAlgoPlot.Point(i.x+2*p,i.y);r=(P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(p,i,c)).pntRight,s=P.pntLeft,(o=[]).push(a),o.push(n),o.push(i),o.push(s),o.push(r),o.push(i),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o,{fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0}),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol43500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol42700=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.04),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){2==t.length?this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t):this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t,{fill:!1});var e,l,o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.2*this.getSubSymbolScaleValue()),l=i*this.scaleValues[0];var n=i*this.scaleValues[0],a=n+l;e=new SuperMapAlgoPlot.Point(o.x,o.y+a);var r=[];r.push(e),r.push(new SuperMapAlgoPlot.Point(e.x+l,e.y)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,r);var s=new SuperMapAlgoPlot.Point(o.x,o.y+.8*n),p=new SuperMapAlgoPlot.Point(o.x-n,o.y-n),u=new SuperMapAlgoPlot.Point(o.x+n,o.y-n);(r=[]).push(s),r.push(p),r.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,r,{fillLimit:!0,fill:!0,lineTypeLimit:!0});var P=new SuperMapAlgoPlot.Point(o.x-.5*n,o.y-n),c=new SuperMapAlgoPlot.Point(p.x,p.y-2*l),g=new SuperMapAlgoPlot.Point(o.x+.5*n,o.y-n),S=new SuperMapAlgoPlot.Point(u.x,u.y-2*l);(r=[]).push(P),r.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r),(r=[]).push(g),r.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol42700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol42500=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.285714),l.scaleValues.push(.285714),l.scaleValues.push(.5),l.scaleValues.push(.333333),l.scaleValues.push(.333333)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.285714),this.scaleValues.push(.285714),this.scaleValues.push(.5),this.scaleValues.push(.333333));var e=t[0].clone(),l=t[1].clone(),o=SuperMapAlgoPlot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMapAlgoPlot.Point(0,-o*i),a=new SuperMapAlgoPlot.Point(0,o*i),r=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMapAlgoPlot.Point(o*(1-s),-o*r),u=new SuperMapAlgoPlot.Point(o*(1-s),o*r),P=this.scaleValues[2],c=this.scaleValues[4],g=new SuperMapAlgoPlot.Point(o*(1-c),-o*P),S=new SuperMapAlgoPlot.Point(o*(1-c),o*P),h=new SuperMapAlgoPlot.Point(o,0),f=SuperMapAlgoPlot.PlottingUtil.radian(e,l)*SuperMapAlgoPlot.PlottingUtil.RTOD,y=[];y.push(a),y.push(u),y.push(S),y.push(h),y.push(g),y.push(p),y.push(n);for(var A=[],M=0;M<y.length;M++){var b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,y[M],f);A.push(b)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);var d,m,v,O=!0;e.x>l.x&&(O=!1);var U,L=(v=.1*o)+(m=.12*o/2);d=1==O?(U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(L,l,e)).pntRight:(U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(L,l,e)).pntLeft;var w,V,_,T,x,E,Y,j,C=[];C.push(d),C.push(new SuperMapAlgoPlot.Point(d.x+m,d.y)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,C),1==O?(w=(U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.85*v,l,e)).pntRight,T=U.pntLeft,V=(U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(v,w,T)).pntRight,_=U.pntLeft):(w=(U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.85*v,l,e)).pntLeft,T=U.pntRight,V=(U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(v,w,T)).pntLeft,_=U.pntRight),(C=[]).push(w),C.push(V),C.push(_),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,C,{fillLimit:!0,fill:!0,lineTypeLimit:!0}),U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*m,V,_),j=1==O?U.pntRight:U.pntLeft,U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*m,_,V),E=1==O?U.pntLeft:U.pntRight;var I=SuperMapAlgoPlot.PlottingUtil.intersectLines(w,E,_,V);I.isIntersectLines&&(x=I.intersectPoint,(I=SuperMapAlgoPlot.PlottingUtil.intersectLines(w,j,_,V)).isIntersectLines&&(Y=I.intersectPoint,(C=[]).push(x),C.push(E),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,C),(C=[]).push(Y),C.push(j),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,C),this.scalePoints=[],this.addScalePoint(A[0]),this.addScalePoint(A[1]),this.addScalePoint(A[2]),this.finish()))}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o,i=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]),n=l[0].clone(),a=l[1].clone(),r=e.clone();if(0==t){var s=SuperMapAlgoPlot.PlottingUtil.distance(r,n)/i;this.scaleValues[0]=s}else if(1==t){o=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,n,a);var p=SuperMapAlgoPlot.PlottingUtil.distance(o,r)/i;this.scaleValues[1]=p;var u=SuperMapAlgoPlot.PlottingUtil.distance(o,a)/i;this.scaleValues[3]=u}else if(2==t){o=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,n,a);var P=SuperMapAlgoPlot.PlottingUtil.distance(o,r)/i;this.scaleValues[2]=P;var c=SuperMapAlgoPlot.PlottingUtil.distance(o,a)/i;this.scaleValues[4]=c}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol42500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol42400=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=.5*i}var n=l*this.scaleValues[0],a=l*this.scaleValues[2],r=l*this.scaleValues[3],s=[];s.push(new SuperMapAlgoPlot.Point(o.x+a,o.y+r)),s.push(new SuperMapAlgoPlot.Point(o.x+a+n,o.y+r)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,s,{fill:!1}),this.scalePoints=[],this.addScalePoint(new SuperMapAlgoPlot.Point(o.x+a+n,o.y+r)),this.addScalePoint(new SuperMapAlgoPlot.Point(o.x+a,o.y+r)),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=[];if(o=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(n.x+a,n.y+r),p=SuperMapAlgoPlot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,P=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=P}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol42400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol42200=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{fillLimit:!0,fill:!1,surroundLineFlag:!1});var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.2||i<=0)&&(i=.2),this.scaleValues[0]=i}var n=this.scaleValues[0],a=this.scaleValues[2],r=this.scaleValues[3],s=o*n,p=new SuperMapAlgoPlot.Point(l.x+o*a,l.y+o*r);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,s,0),this.addScalePoint(p);var u=s,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,u,u,90);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n,a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t)i=(e.x-a.x)/r,this.scaleValues[2]=i,n=(e.y-a.y)/r,this.scaleValues[3]=n;else if(1===t){i=this.scaleValues[2],n=this.scaleValues[3];var s=new SuperMapAlgoPlot.Point(a.x+r*i,a.y+r*n),p=SuperMapAlgoPlot.PlottingUtil.distance(s,e)/r;this.scaleValues[0]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol42200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41202=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=-.25,l.scaleValues[1]=.1,l.scaleValues[2]=.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues[0]=-.25,this.scaleValues[1]=.1,this.scaleValues[2]=.05);var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);if(0!=e){var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);if(!this.isEdit){var o=this.getSubSymbolScaleValue()*l;this.scaleValues[2]=.35*o/e}var i=this.scaleValues[0],n=this.scaleValues[1],a=this.scaleValues[2];2===t.length?this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,t):this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),s=new SuperMapAlgoPlot.Point(r.x+i*e,r.y+n*e),p=a*e,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,270),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,30),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,150),g=[];g.push(u),g.push(P),g.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,{fill:!1,lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(s);var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,90);this.addScalePoint(S),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0==o)return;var i,n,a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=e;if(0==t)i=(r.x-a.x)/o,this.scaleValues[0]=i,n=(r.y-a.y)/o,this.scaleValues[1]=n;else if(1==t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(a.x+i*o,a.y+n*o),p=SuperMapAlgoPlot.PlottingUtil.distance(r,s)/o;this.scaleValues[2]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol41202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41201=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=-.25,l.scaleValues[1]=.1,l.scaleValues[2]=.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues[0]=-.25,this.scaleValues[1]=.1,this.scaleValues[2]=.05);var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);if(0!==e){var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);if(!this.isEdit){var o=this.getSubSymbolScaleValue()*l;this.scaleValues[2]=.35*o/e}var i=this.scaleValues[0],n=this.scaleValues[1],a=this.scaleValues[2];2===t.length?this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,t):this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),s=new SuperMapAlgoPlot.Point(r.x+i*e,r.y+n*e),p=a*e,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,90),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,210),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,330),g=[];g.push(u),g.push(P),g.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,{fill:!1,lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(s);var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,90);this.addScalePoint(S),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0==o)return;var i,n,a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=e;if(0==t)i=(r.x-a.x)/o,this.scaleValues[0]=i,n=(r.y-a.y)/o,this.scaleValues[1]=n;else if(1==t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(a.x+i*o,a.y+n*o),p=SuperMapAlgoPlot.PlottingUtil.distance(r,s)/o;this.scaleValues[2]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol41201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41200=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=-.25,l.scaleValues[1]=.1,l.scaleValues[2]=.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues[0]=-.25,this.scaleValues[1]=.1,this.scaleValues[2]=.05);var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);if(!this.isEdit){var o=this.getSubSymbolScaleValue()*l;this.scaleValues[2]=.35*o/e}var i=this.scaleValues[0],n=this.scaleValues[1],a=this.scaleValues[2];2===t.length?this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,t):this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),s=new SuperMapAlgoPlot.Point(r.x+i*e,r.y+n*e),p=a*e,u=new SuperMapAlgoPlot.Point(s.x,s.y),P=new SuperMapAlgoPlot.Point(s.x-p,s.y-p),c=new SuperMapAlgoPlot.Point(s.x+p,s.y-p),g=new SuperMapAlgoPlot.Point(s.x-p,s.y+p),S=new SuperMapAlgoPlot.Point(s.x+p,s.y+p),h=[];h.push(u),h.push(P),h.push(c),h.push(u),h.push(g),h.push(S),h.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(s);var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,90);this.addScalePoint(f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0==o)return;var i,n,a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=e;if(0==t)i=(r.x-a.x)/o,this.scaleValues[0]=i,n=(r.y-a.y)/o,this.scaleValues[1]=n;else if(1==t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(a.x+i*o,a.y+n*o),p=SuperMapAlgoPlot.PlottingUtil.distance(r,s)/o;this.scaleValues[2]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol41200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41100=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 l=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===l.scaleValues.length&&l.scaleValues.push(.5),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&this.scaleValues.push(.5);var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=e/l/2,i=.1*e;this.isEdit||(this.scaleValues[0]=o);var n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l*this.scaleValues[0]-.4*e,t);if(n.bfind){var a=n.pts,r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l*this.scaleValues[0]+.4*e,t);if(r.bfind){var s=r.pts,p=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l*this.scaleValues[0]-.3*e,t);if(p.bfind){var u=p.pts,P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l*this.scaleValues[0]+.3*e,t);if(P.bfind){var c=P.pts,g=0,S=0,h=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(a,t);h.isOnPolyLine&&(g=h.index);var f=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(s,t);f.isOnPolyLine&&(S=f.index);var y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l*this.scaleValues[0],t);if(y.bfind){var A=y.pts,M=[];if(M.push(u),g!==S)for(var b=g+1;b<=S;b++)M.push(t[b]);M.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M);for(var d=[],m=0;m<=n.index;m++)d.push(t[m]);d.push(a),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d);var v=[];if(r.index<=t.length){v.push(s);for(var O=r.index+1;O<=t.length-1;O++)v.push(t[O])}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v);for(var U=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(A,M),L=0,w=0;w<U.index;w++)L+=SuperMapAlgoPlot.PlottingUtil.distance(M[w],M[w+1]);L+=SuperMapAlgoPlot.PlottingUtil.distance(A,M[U.index]);var V=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(L-.1,M);if(V.bfind){var _=V.pts,T=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.42*e,_,A),x=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.48*e,_,A),E=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.6*e,_,A),Y=T.pntLeft,j=x.pntLeft,C=E.pntLeft;this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[A,Y]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[j,C]);var I=SuperMapAlgoPlot.PlottingUtil.polylineDistance([j,C]),B=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.3*I,j,C).pntRight;if(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[C,B]),t.length>this.minEditPts){for(var R,N,D,k,z,F,G,K,W,q=1;q<t.length-1;q++){for(R=t[q],N=t[q+1],D=t[q-1],z=180*SuperMapAlgoPlot.PlottingUtil.radian(R,N)/Math.PI,F=180*SuperMapAlgoPlot.PlottingUtil.radian(R,D)/Math.PI-z;F<0;)F+=360;k=F/2,G=t[q+1].clone(),G=SuperMapAlgoPlot.PlottingUtil.rotateAngle(R,k*Math.PI/180,G),K=SuperMapAlgoPlot.PlottingUtil.linePnt(R,G,i),(W=[]).push(t[q]),W.push(K),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,W,null,!0)}var J=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,t[t.length-2],t[t.length-1]),Z=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,t[1],t[0]),X=J.pntLeft,H=Z.pntRight;this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[t[0],H]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[t[t.length-1],X])}else{var Q=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,t[0],t[1]),$=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,t[1],t[0]),tt=Q.pntLeft,et=$.pntRight;this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[t[0],et]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[t[1],tt])}this.addScalePoint(A,0),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(l.length<this.minEditPts)return;for(var i=-1,n=0,a=new SuperMapAlgoPlot.Point(0,0),r=0;r<l.length-1;r++){var s=[];s.push(l[r]),s.push(l[r+1]);var p=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,l[r],l[r+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(p,s).isOnPolyLine){var u=SuperMapAlgoPlot.PlottingUtil.distance(e,p);-1===i?(i=r,a=p,n=u):n>u&&(i=r,a=p,n=u)}}if(-1===i||i>l.length-1)return;for(var P=0,c=0;c<i;c++)P+=SuperMapAlgoPlot.PlottingUtil.distance(l[c],l[c+1]);var g=l[i];if((P+=SuperMapAlgoPlot.PlottingUtil.distance(g,a))<0||P>o)return;var S=P/o,h=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1])/o;S<.4*h&&(S=.4*h),S>1-.4*h&&(S=1-.4*h),this.scaleValues[0]=S}}}]),e}();SuperMapAlgoPlot.AlgoSymbol41100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40900=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues=[]),this.scalePoints=[];var e=[],l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(t.length<3)e.push(t[0]),e.push(t[1]);else{var o=SuperMapAlgoPlot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=o.scaleValues;for(var i=0;i<o.scalePoints.length;i++)this.addScalePoint(o.scalePoints[i]);e=o.beizerPoints}SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(this.isEdit||(this.scaleValues.push(.5),this.scaleValues.push(this.getSubSymbolScaleValue())),!(e.length<=0)){var a;a=2==t.length?0:t.length-1;var r=n*this.scaleValues[4*a],s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,e);if(s.bfind){var p=s.index,u=s.pts,P=l*this.scaleValues[4*a+1],c=r-P,g=r+P;if((s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(c,e)).bfind){var S,h=s.pts,f=[];if(0==(p=s.index))f.push(e[0]);else for(S=0;S<p;S++)f.push(e[S]);if(f.push(h),(s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(g,e)).bfind){var y=s.pts;p=s.index;var A=[];for(A.push(y),S=p+1;S<e.length;S++)A.push(e[S]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[u,y]);var M=l*this.scaleValues[4*a+1]/1.667;if(!(f.length<2)){var b=f[0],d=f[1],m=SuperMapAlgoPlot.PlottingUtil.radian(b,d)*SuperMapAlgoPlot.PlottingUtil.RTOD,v=SuperMapAlgoPlot.PlottingUtil.circlePoint(b,M,M,m+90),O=SuperMapAlgoPlot.PlottingUtil.circlePoint(b,M,M,m+270),U=[];if(U.push(v),U.push(O),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U),!(A.length<2)){var L=A[A.length-1],w=A[A.length-2],V=SuperMapAlgoPlot.PlottingUtil.radian(L,w)*SuperMapAlgoPlot.PlottingUtil.RTOD,_=SuperMapAlgoPlot.PlottingUtil.circlePoint(L,M,M,V+90),T=SuperMapAlgoPlot.PlottingUtil.circlePoint(L,M,M,V+270);(U=[]).push(_),U.push(T),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U),this.addScalePoint(u),this.addScalePoint(v),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,0)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0))return;if(2*(l.length-1)==t||2==l.length&&0==t){var a,r=e,s=[];for(a=0;a<o.length;a++)s.push(o[a]);var p,u=-1,P=0;for(a=0;a<s.length-1;a++){var c=[];c.push(s[a]),c.push(s[a+1]);var g=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,s[a],s[a+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(g,c).isOnPolyLine){var S=SuperMapAlgoPlot.PlottingUtil.distance(r,g);-1==u?(u=a,p=g,P=S):P>S&&(u=a,p=g,P=S)}}if(-1==u||u>s.length-1)return;var h=0;for(a=0;a<u;a++){var f=o[a],y=o[a+1];h+=SuperMapAlgoPlot.PlottingUtil.distance(f,y)}var A=o[u];if((h+=SuperMapAlgoPlot.PlottingUtil.distance(A,p))<0||h>n)return;var M=h/n;if(M>.8||M<.2)return;2==l.length?this.scaleValues[0]=M:this.scaleValues[2*t]=M}else if(2*l.length-1==t||2==l.length&&1==t){var b=1.667*SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/i;2==l.length?this.scaleValues[1]=b:this.scaleValues[2*t-1]=b}else{var d=-1;d=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var m=(e.x-l[d].x)/i,v=(e.y-l[d].y)/i;this.scaleValues[2*t]=m,this.scaleValues[2*t+1]=v}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol40900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40101=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=.2*i}var n=l*this.scaleValues[0],a=l*this.scaleValues[2],r=l*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(o.x+a,o.y+r),p=[];p.push(s),p.push(new SuperMapAlgoPlot.Point(s.x+n,s.y)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,p,{fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0});for(var u=18*n,P=new SuperMapAlgoPlot.Point(s.x+u,s.y),c=[],g=135;g<180;g+=3)c.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(P,u,u,g));c.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(P,u,u,180)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[];var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,n,n,0);this.addScalePoint(S),this.addScalePoint(s),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),o=[];if(o=3>=(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(n.x+a,n.y+r),p=SuperMapAlgoPlot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,P=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=P}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol40101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40100=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=.4*i}var n=l*this.scaleValues[0],a=l*this.scaleValues[2],r=l*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(o.x+a,o.y+r),p=.6*n,u=new SuperMapAlgoPlot.Point(s.x+n,s.y),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,p,p,0),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,p,p,180),g=[];g.push(P),g.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,{lineTypeLimit:!0});var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,p,p,90),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,p,p,270);(g=[]).push(S),g.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,{lineTypeLimit:!0});var f=new SuperMapAlgoPlot.Point(s.x-n,s.y),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.5*n,.5*n,270),A=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,n,n,240),M=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,n,n,90),b=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,n,n,300);(g=[]).push(y),g.push(A),g.push(M),g.push(b),g.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,{lineTypeLimit:!0}),this.scalePoints=[];var d=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,n,n,0);this.addScalePoint(d),this.addScalePoint(s),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),o=[];if(o=3>=(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(n.x+a,n.y+r),p=SuperMapAlgoPlot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,P=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=P}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol40100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40000=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues=[]),this.scalePoints=[];var e=[];if(t.length<3)e.push(t[0]),e.push(t[1]);else{var l=SuperMapAlgoPlot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=l.scaleValues;for(var o=0;o<l.scalePoints.length;o++)this.addScalePoint(l.scalePoints[o]);e=l.beizerPoints}if(SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),!(e.length<=0)){this.isEdit||(this.scaleValues.push(.5),this.scaleValues.push(.5*this.getSubSymbolScaleValue()));var i=0;t.length>2&&(i=t.length-1);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e)*this.scaleValues[4*i],r=n*this.scaleValues[4*i+1]/1.667,s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var p=s.index,u=s.pts,P=3.6*r,c=a-P,g=a+P;if((s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(c,e)).bfind){var S,h=s.pts,f=[];if(0==(p=s.index))f.push(e[0]);else for(S=0;S<p;S++)f.push(e[S]);if(f.push(h),(s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(g,e)).bfind){var y=s.pts;p=s.index;var A=[];for(A.push(y),S=p+1;S<e.length;S++)A.push(e[S]);var M={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1};if(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A,M),!(f.length<2)){var b=f[0],d=f[1],m=SuperMapAlgoPlot.PlottingUtil.radian(b,d)*SuperMapAlgoPlot.PlottingUtil.RTOD,v=SuperMapAlgoPlot.PlottingUtil.circlePoint(b,r,r,m+90),O=SuperMapAlgoPlot.PlottingUtil.circlePoint(b,r,r,m+270),U=[];if(U.push(v),U.push(O),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,M),!(A.length<2)){var L=A[A.length-1],w=A[A.length-2],V=SuperMapAlgoPlot.PlottingUtil.radian(L,w)*SuperMapAlgoPlot.PlottingUtil.RTOD,_=SuperMapAlgoPlot.PlottingUtil.circlePoint(L,r,r,V+90),T=SuperMapAlgoPlot.PlottingUtil.circlePoint(L,r,r,V+270);(U=[]).push(_),U.push(T),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,M);var x=SuperMapAlgoPlot.PlottingUtil.radian(h,y)*SuperMapAlgoPlot.PlottingUtil.RTOD,E=.8*SuperMapAlgoPlot.PlottingUtil.distance(h,y),Y=new SuperMapAlgoPlot.Point((h.x+y.x)/2,(h.y+y.y)/2);if(this.subSymbols.length>0){var j=this.computeSubSymbol(this.subSymbols[0],Y,E,x);if(null!=j)for(var C=0;C<j.length;C++)j[C].style.lineColorLimit=!0,j[C].style.strokeColor="#0000ff",j[C].style.color="#0000ff"}var I=SuperMapAlgoPlot.PlottingUtil.findPointInLine(h,y,.4*E),B=SuperMapAlgoPlot.PlottingUtil.circlePoint(I,.75*E,.75*E,x+135),R=SuperMapAlgoPlot.PlottingUtil.circlePoint(I,.75*E,.75*E,x+315),N=SuperMapAlgoPlot.PlottingUtil.distance(B,R);(U=[]).push(B),U.push(R),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U);var D=SuperMapAlgoPlot.PlottingUtil.findPointInLine(B,R,1.2*N),k=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.08*N,B,R);(U=[]).push(D),U.push(k.pntLeft),U.push(k.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,U,{fillLimit:!0,fill:!0,lineTypeLimit:!0}),this.addScalePoint(u),this.addScalePoint(v),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,0)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0))return;if(2*(l.length-1)==t||2==l.length&&0==t){var a,r=e,s=[];for(a=0;a<o.length;a++)s.push(o[a]);var p,u=-1,P=0;for(a=0;a<s.length-1;a++){var c=[];c.push(s[a]),c.push(s[a+1]);var g=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,s[a],s[a+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(g,c).isOnPolyLine){var S=SuperMapAlgoPlot.PlottingUtil.distance(r,g);-1==u?(u=a,p=g,P=S):P>S&&(u=a,p=g,P=S)}}if(-1==u||u>s.length-1)return;var h=0;for(a=0;a<u;a++){var f=o[a],y=o[a+1];h+=SuperMapAlgoPlot.PlottingUtil.distance(f,y)}var A=o[u];if((h+=SuperMapAlgoPlot.PlottingUtil.distance(A,p))<0||h>n)return;var M=h/n;if(M>.8||M<.2)return;2==l.length?this.scaleValues[0]=M:this.scaleValues[2*t]=M}else if(2*l.length-1==t||2==l.length&&1==t){var b=1.667*SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/i;2==l.length?this.scaleValues[1]=b:this.scaleValues[2*t-1]=b}else{var d=-1;d=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var m=(e.x-l[d].x)/i,v=(e.y-l[d].y)/i;this.scaleValues[2*t]=m,this.scaleValues[2*t+1]=v}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol40000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol39802=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues=[]),this.scalePoints=[];var e=[];if(t.length<3)e.push(t[0]),e.push(t[1]);else{var l=SuperMapAlgoPlot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=l.scaleValues;for(var o=0;o<l.scalePoints.length;o++)this.addScalePoint(l.scalePoints[o]);e=l.beizerPoints}if(SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),!(e.length<=0)){this.isEdit||(this.scaleValues.push(.5),this.scaleValues.push(.5*this.getSubSymbolScaleValue()));var i=0;t.length>2&&(i=t.length-1);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e)*this.scaleValues[4*i],r=n*this.scaleValues[4*i+1]/1.667,s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var p=s.index,u=s.pts,P=3*r,c=a-P,g=a+P;if((s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(c,e)).bfind){var S,h=s.pts,f=[];if(0==(p=s.index))f.push(e[0]);else for(S=0;S<p;S++)f.push(e[S]);if(f.push(h),(s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(g,e)).bfind){var y=s.pts;p=s.index;var A=[];for(A.push(y),S=p+1;S<e.length;S++)A.push(e[S]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);var M=SuperMapAlgoPlot.PlottingUtil.radian(h,y)*SuperMapAlgoPlot.PlottingUtil.RTOD,b=SuperMapAlgoPlot.PlottingUtil.distance(h,y),d=new SuperMapAlgoPlot.Point((h.x+y.x)/2,(h.y+y.y)/2);if(this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],d,b,M),!(f.length<2)){var m=f[0],v=f[1],O=SuperMapAlgoPlot.PlottingUtil.radian(m,v)*SuperMapAlgoPlot.PlottingUtil.RTOD,U=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,r,r,O+90),L=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,r,r,O+270),w=[];if(w.push(U),w.push(L),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w),!(A.length<2)){var V=A[A.length-1],_=A[A.length-2],T=SuperMapAlgoPlot.PlottingUtil.radian(V,_)*SuperMapAlgoPlot.PlottingUtil.RTOD,x=SuperMapAlgoPlot.PlottingUtil.circlePoint(V,r,r,T+90),E=SuperMapAlgoPlot.PlottingUtil.circlePoint(V,r,r,T+270);(w=[]).push(x),w.push(E),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w);var Y=SuperMapAlgoPlot.PlottingUtil.paraLine(e,r,!1),j=SuperMapAlgoPlot.PlottingUtil.polylineDistance(Y)/11,C=j;for(S=0;S<11;S++)if((s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(C-j,Y)).bfind){var I=s.index,B=s.pts;if((s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(C,Y)).bfind){var R=s.pts,N=s.index;if(S%2==0){var D=[];D.push(B);for(var k=I+1;k<=N;k++)D.push(Y[k]);D.push(R),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,D,{surroundLineLimit:!0,lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1})}C+=j}}var z;z=SuperMapAlgoPlot.PlottingUtil.paraLine(e,3.5*r,!1),SuperMapAlgoPlot.PlottingUtil.clearSamePts(z),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,z);var F;F=SuperMapAlgoPlot.PlottingUtil.paraLine(e,3.5*r,!0),SuperMapAlgoPlot.PlottingUtil.clearSamePts(F),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,F),this.addScalePoint(u),this.addScalePoint(U),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,0)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0))return;if(2*(l.length-1)==t||2==l.length&&0==t){var a,r=e,s=[];for(a=0;a<o.length;a++)s.push(o[a]);var p,u=-1,P=0;for(a=0;a<s.length-1;a++){var c=[];c.push(s[a]),c.push(s[a+1]);var g=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,s[a],s[a+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(g,c).isOnPolyLine){var S=SuperMapAlgoPlot.PlottingUtil.distance(r,g);-1==u?(u=a,p=g,P=S):P>S&&(u=a,p=g,P=S)}}if(-1==u||u>s.length-1)return;var h=0;for(a=0;a<u;a++){var f=o[a],y=o[a+1];h+=SuperMapAlgoPlot.PlottingUtil.distance(f,y)}var A=o[u];if((h+=SuperMapAlgoPlot.PlottingUtil.distance(A,p))<0||h>n)return;var M=h/n;if(M>.8||M<.2)return;2==l.length?this.scaleValues[0]=M:this.scaleValues[2*t]=M}else if(2*l.length-1==t||2==l.length&&1==t){var b=1.667*SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/i;2==l.length?this.scaleValues[1]=b:this.scaleValues[2*t-1]=b}else{var d=-1;d=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var m=(e.x-l[d].x)/i,v=(e.y-l[d].y)/i;this.scaleValues[2*t]=m,this.scaleValues[2*t+1]=v}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol39802=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol39801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues=[]),this.scalePoints=[];var e=[];if(t.length<3)e.push(t[0]),e.push(t[1]);else{var l=SuperMapAlgoPlot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=l.scaleValues;for(var o=0;o<l.scalePoints.length;o++)this.addScalePoint(l.scalePoints[o]);e=l.beizerPoints}if(SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),!(e.length<=0)){this.isEdit||(this.scaleValues.push(.5),this.scaleValues.push(.5*this.getSubSymbolScaleValue()));var i=0;t.length>2&&(i=t.length-1);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e)*this.scaleValues[4*i],r=n*this.scaleValues[4*i+1]/1.667,s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var p=s.index,u=s.pts,P=3*r,c=a-P,g=a+P;if((s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(c,e)).bfind){var S,h=s.pts,f=[];if(0==(p=s.index))f.push(e[0]);else for(S=0;S<p;S++)f.push(e[S]);if(f.push(h),(s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(g,e)).bfind){var y=s.pts;p=s.index;var A=[];for(A.push(y),S=p+1;S<e.length;S++)A.push(e[S]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);var M=SuperMapAlgoPlot.PlottingUtil.radian(h,y)*SuperMapAlgoPlot.PlottingUtil.RTOD,b=SuperMapAlgoPlot.PlottingUtil.distance(h,y),d=new SuperMapAlgoPlot.Point((h.x+y.x)/2,(h.y+y.y)/2);if(this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],d,b,M),!(f.length<2)){var m=f[0],v=f[1],O=SuperMapAlgoPlot.PlottingUtil.radian(m,v)*SuperMapAlgoPlot.PlottingUtil.RTOD,U=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,r,r,O+90),L=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,r,r,O+270),w=[];if(w.push(U),w.push(L),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w),!(A.length<2)){var V=A[A.length-1],_=A[A.length-2],T=SuperMapAlgoPlot.PlottingUtil.radian(V,_)*SuperMapAlgoPlot.PlottingUtil.RTOD,x=SuperMapAlgoPlot.PlottingUtil.circlePoint(V,r,r,T+90),E=SuperMapAlgoPlot.PlottingUtil.circlePoint(V,r,r,T+270);(w=[]).push(x),w.push(E),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w),this.addScalePoint(u),this.addScalePoint(U),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,0)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0))return;if(2*(l.length-1)==t||2==l.length&&0==t){var a,r=e,s=[];for(a=0;a<o.length;a++)s.push(o[a]);var p,u=-1,P=0;for(a=0;a<s.length-1;a++){var c=[];c.push(s[a]),c.push(s[a+1]);var g=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,s[a],s[a+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(g,c).isOnPolyLine){var S=SuperMapAlgoPlot.PlottingUtil.distance(r,g);-1==u?(u=a,p=g,P=S):P>S&&(u=a,p=g,P=S)}}if(-1==u||u>s.length-1)return;var h=0;for(a=0;a<u;a++){var f=o[a],y=o[a+1];h+=SuperMapAlgoPlot.PlottingUtil.distance(f,y)}var A=o[u];if((h+=SuperMapAlgoPlot.PlottingUtil.distance(A,p))<0||h>n)return;var M=h/n;if(M>.8||M<.2)return;2==l.length?this.scaleValues[0]=M:this.scaleValues[2*t]=M}else if(2*l.length-1==t||2==l.length&&1==t){var b=1.667*SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/i;2==l.length?this.scaleValues[1]=b:this.scaleValues[2*t-1]=b}else{var d=-1;d=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var m=(e.x-l[d].x)/i,v=(e.y-l[d].y)/i;this.scaleValues[2*t]=m,this.scaleValues[2*t+1]=v}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol39801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol39800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues=[]),this.scalePoints=[];var e=[];if(t.length<3)e.push(t[0]),e.push(t[1]);else{var l=SuperMapAlgoPlot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=l.scaleValues;for(var o=0;o<l.scalePoints.length;o++)this.addScalePoint(l.scalePoints[o]);e=l.beizerPoints}if(SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),!(e.length<=0)){this.isEdit||(this.scaleValues.push(.5),this.scaleValues.push(.5*this.getSubSymbolScaleValue()));var i=0;t.length>2&&(i=t.length-1);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e)*this.scaleValues[4*i],r=n*this.scaleValues[4*i+1]/1.667,s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var p=s.index,u=s.pts,P=3.6*r,c=a-P,g=a+P;if((s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(c,e)).bfind){var S,h=s.pts,f=[];if(0==(p=s.index))f.push(e[0]);else for(S=0;S<p;S++)f.push(e[S]);if(f.push(h),(s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(g,e)).bfind){var y=s.pts;p=s.index;var A=[];for(A.push(y),S=p+1;S<e.length;S++)A.push(e[S]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);var M=SuperMapAlgoPlot.PlottingUtil.radian(h,y)*SuperMapAlgoPlot.PlottingUtil.RTOD,b=SuperMapAlgoPlot.PlottingUtil.distance(h,y),d=new SuperMapAlgoPlot.Point((h.x+y.x)/2,(h.y+y.y)/2);if(this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],d,.8*b,M),!(f.length<2)){var m=f[0],v=f[1],O=SuperMapAlgoPlot.PlottingUtil.radian(m,v)*SuperMapAlgoPlot.PlottingUtil.RTOD,U=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,r,r,O+90),L=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,r,r,O+270),w=[];if(w.push(U),w.push(L),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w),!(A.length<2)){var V=A[A.length-1],_=A[A.length-2],T=SuperMapAlgoPlot.PlottingUtil.radian(V,_)*SuperMapAlgoPlot.PlottingUtil.RTOD,x=SuperMapAlgoPlot.PlottingUtil.circlePoint(V,r,r,T+90),E=SuperMapAlgoPlot.PlottingUtil.circlePoint(V,r,r,T+270);(w=[]).push(x),w.push(E),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w);var Y=SuperMapAlgoPlot.PlottingUtil.paraLine(e,r,!1),j=SuperMapAlgoPlot.PlottingUtil.polylineDistance(Y)/11,C=j;for(S=0;S<11;S++)if((s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(C-j,Y)).bfind){var I=s.index,B=s.pts;if((s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(C,Y)).bfind){var R=s.pts,N=s.index;if(S%2==0){var D=[];D.push(B);for(var k=I+1;k<=N;k++)D.push(Y[k]);D.push(R),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,D,{surroundLineLimit:!0,lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1})}C+=j}}this.addScalePoint(u),this.addScalePoint(U),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,0)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0))return;if(2*(l.length-1)==t||2==l.length&&0==t){var a,r=e,s=[];for(a=0;a<o.length;a++)s.push(o[a]);var p,u=-1,P=0;for(a=0;a<s.length-1;a++){var c=[];c.push(s[a]),c.push(s[a+1]);var g=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,s[a],s[a+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(g,c).isOnPolyLine){var S=SuperMapAlgoPlot.PlottingUtil.distance(r,g);-1==u?(u=a,p=g,P=S):P>S&&(u=a,p=g,P=S)}}if(-1==u||u>s.length-1)return;var h=0;for(a=0;a<u;a++){var f=o[a],y=o[a+1];h+=SuperMapAlgoPlot.PlottingUtil.distance(f,y)}var A=o[u];if((h+=SuperMapAlgoPlot.PlottingUtil.distance(A,p))<0||h>n)return;var M=h/n;if(M>.8||M<.2)return;2==l.length?this.scaleValues[0]=M:this.scaleValues[2*t]=M}else if(2*l.length-1==t||2==l.length&&1==t){var b=1.667*SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/i;2==l.length?this.scaleValues[1]=b:this.scaleValues[2*t-1]=b}else{var d=-1;d=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var m=(e.x-l[d].x)/i,v=(e.y-l[d].y)/i;this.scaleValues[2*t]=m,this.scaleValues[2*t+1]=v}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol39800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol39600=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.03,l.scaleValues[1]=.05),l}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,SuperMapAlgoPlot.AlgoSymbol38600),e}();SuperMapAlgoPlot.AlgoSymbol39600=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol39500=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.285714),l.scaleValues.push(.08),l.scaleValues.push(.181818),l.scaleValues.push(.285714),l.scaleValues.push(.285714)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.285714),this.scaleValues.push(.08),this.scaleValues.push(.181818),this.scaleValues.push(.285714),this.scaleValues.push(.285714));var e=t[0].clone(),l=t[1].clone(),o=SuperMapAlgoPlot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMapAlgoPlot.Point(0,-o*i),a=new SuperMapAlgoPlot.Point(0,o*i),r=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMapAlgoPlot.Point(o*(1-s),-o*r),u=new SuperMapAlgoPlot.Point(o*(1-s),o*r),P=this.scaleValues[2],c=this.scaleValues[4],g=new SuperMapAlgoPlot.Point(o*(1-c),-o*P),S=new SuperMapAlgoPlot.Point(o*(1-c),o*P),h=new SuperMapAlgoPlot.Point(o,0),f=SuperMapAlgoPlot.PlottingUtil.radian(e,l)*SuperMapAlgoPlot.PlottingUtil.RTOD,y=[];y.push(n),y.push(p),y.push(g),y.push(h),y.push(S),y.push(u),y.push(a);for(var A=[],M=0;M<y.length;M++){var b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,y[M],f);A.push(b)}for(var d=[],m=A.length-1;m>=0;--m)d.push(A[m]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d);var v=t[0],O=t[0],U=t[1],L=SuperMapAlgoPlot.PlottingUtil.radian(O,U)*SuperMapAlgoPlot.PlottingUtil.RTOD+270,w=.2*o;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],v,w,L),this.scalePoints=[],this.addScalePoint(A[0]),this.addScalePoint(A[1]),this.addScalePoint(A[2]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o,i=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]),n=l[0].clone(),a=l[1].clone(),r=e.clone();if(0==t){var s=SuperMapAlgoPlot.PlottingUtil.distance(r,n)/i;this.scaleValues[0]=s}else if(1==t){o=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,n,a);var p=SuperMapAlgoPlot.PlottingUtil.distance(o,r)/i;this.scaleValues[1]=p;var u=SuperMapAlgoPlot.PlottingUtil.distance(o,a)/i;this.scaleValues[3]=u}else if(2==t){o=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,n,a);var P=SuperMapAlgoPlot.PlottingUtil.distance(o,r)/i;this.scaleValues[2]=P;var c=SuperMapAlgoPlot.PlottingUtil.distance(o,a)/i;this.scaleValues[4]=c}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol39500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol39101=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.1||i<=0)&&(i=.1),this.scaleValues[0]=i}var n=l*this.scaleValues[2],a=l*this.scaleValues[3],r=new SuperMapAlgoPlot.Point(o.x+n,o.y+a),s=l*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,s,0),this.scalePoints=[];var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,s,s,180);this.addScalePoint(p),this.addScalePoint(r),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=[];if(o=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(n.x+a,n.y+r),p=SuperMapAlgoPlot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,P=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=P}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol39101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol39000=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(.08),l.scaleValues.push(.05),l.scaleValues.push(-.08),l.scaleValues.push(-.08),l.scaleValues.push(.05),l.scaleValues.push(.08),l.scaleValues.push(-.08)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(.08),this.scaleValues.push(.05),this.scaleValues.push(-.08),this.scaleValues.push(-.08),this.scaleValues.push(.05),this.scaleValues.push(.08),this.scaleValues.push(-.08));var e=this.scaleValues[1],l=this.scaleValues[2],o=this.scaleValues[4],i=this.scaleValues[5],n=this.scaleValues[7],a=this.scaleValues[8],r=[];if(r=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),r=SuperMapAlgoPlot.PlottingUtil.clearSamePts(r),!(this.minEditPts>r.length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,r);var s=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var u=this.getSubSymbolScaleValue()*p;this.scaleValues[0]=u/p,this.scaleValues[3]=u/p,this.scaleValues[6]=u/p}var P=new SuperMapAlgoPlot.Point(s.x+p*e,s.y+p*l),c=new SuperMapAlgoPlot.Point(s.x+p*o,s.y+p*i),g=new SuperMapAlgoPlot.Point(s.x+p*n,s.y+p*a),S=p*this.scaleValues[0],h=p*this.scaleValues[3],f=p*this.scaleValues[6];this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],P,1.5*S,0),this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],c,1.5*h,0),this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[2],g,1.5*f,0),this.addScalePoint(P);var y=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,S,S,180);this.addScalePoint(y),this.addScalePoint(c);var A=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,h,h,180);this.addScalePoint(A),this.addScalePoint(g);var M=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,f,f,180);this.addScalePoint(M),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;0===this.scaleValues.length&&(this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(.08),this.scaleValues.push(.05),this.scaleValues.push(-.08),this.scaleValues.push(-.08),this.scaleValues.push(.05),this.scaleValues.push(.08),this.scaleValues.push(-.08));var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=this.scaleValues[3],r=this.scaleValues[4],s=this.scaleValues[5],p=this.scaleValues[6],u=this.scaleValues[7],P=this.scaleValues[8],c=[];if(c=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),c=SuperMapAlgoPlot.PlottingUtil.clearSamePts(c),this.minEditPts>c.length)return;this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,c);var g=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),S=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t)i=(e.x-g.x)/S,this.scaleValues[1]=i,n=(e.y-g.y)/S,this.scaleValues[2]=n;else if(1===t){i=this.scaleValues[1],n=this.scaleValues[2];var h=new SuperMapAlgoPlot.Point(g.x+S*i,g.y+S*n);o=SuperMapAlgoPlot.PlottingUtil.distance(h,e)/S,this.scaleValues[0]=o}if(2===t)r=(e.x-g.x)/S,this.scaleValues[4]=r,s=(e.y-g.y)/S,this.scaleValues[5]=s;else if(3===t){r=this.scaleValues[4],s=this.scaleValues[5];var f=new SuperMapAlgoPlot.Point(g.x+S*r,g.y+S*s);a=SuperMapAlgoPlot.PlottingUtil.distance(f,e)/S,this.scaleValues[3]=a}if(4===t)u=(e.x-g.x)/S,this.scaleValues[7]=u,P=(e.y-g.y)/S,this.scaleValues[8]=P;else if(5===t){u=this.scaleValues[7],P=this.scaleValues[8];var y=new SuperMapAlgoPlot.Point(g.x+S*u,g.y+S*P);p=SuperMapAlgoPlot.PlottingUtil.distance(y,e)/S,this.scaleValues[6]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol39000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol38700=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=Math.PI/4,l.scaleValues[1]=Math.PI/4,l.scaleValues[2]=.3,l.scaleValues[3]=.1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<4&&(this.scaleValues=[],this.scaleValues[0]=Math.PI/4,this.scaleValues[1]=Math.PI/4,this.scaleValues[2]=.3,this.scaleValues[3]=.1);var e=t[0],l=t[1],o=SuperMapAlgoPlot.PlottingUtil.distance(e,l),i=SuperMapAlgoPlot.PlottingUtil.radian(e,l)*SuperMapAlgoPlot.PlottingUtil.RTOD;if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/o;(n>.3||n<=0)&&(n=.3),this.scaleValues[2]=n}var a=this.scaleValues[0],r=this.scaleValues[1],s=this.scaleValues[2],p=this.scaleValues[3],u=a*SuperMapAlgoPlot.PlottingUtil.RTOD,P=i-u,c=i+u,g=this.GetArcPts(P,c,e,o);if(!(2>g.length)){this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var S=o*s,h=i-90,f=o*p,y=SuperMapAlgoPlot.PlottingUtil.linePnt(e,l,f),A=SuperMapAlgoPlot.PlottingUtil.radian(y,l)*SuperMapAlgoPlot.PlottingUtil.RTOD-30,M=SuperMapAlgoPlot.PlottingUtil.distance(y,l),b=0,d=t[0].clone(),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(y,M,M,A),v=null;if(this.subSymbols.length>0&&null!=(v=this.computeSubSymbol(this.subSymbols[0],y,S,h,0,-.5)))for(var O=0;O<v.length;O++)if(!(2>v[O].positionPoints))for(var U=0;U<v[O].positionPoints.length-1;U++){var L=v[O].positionPoints[U],w=v[O].positionPoints[U+1],V=new SuperMapAlgoPlot.Point(0,0);SuperMapAlgoPlot.PlottingUtil.intersectLineSegs(y,m,L,w,V)&&(0==b?d=V:SuperMapAlgoPlot.PlottingUtil.distance(y,V)>SuperMapAlgoPlot.PlottingUtil.distance(y,d)&&(d=V),b++)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[d,m]);var _=SuperMapAlgoPlot.PlottingUtil.radian(m,d)*SuperMapAlgoPlot.PlottingUtil.RTOD,T=SuperMapAlgoPlot.PlottingUtil.distance(d,m),x=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,.1*T,.1*T,_-15),E=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,.1*T,.1*T,_+15),Y=[];Y.push(m),Y.push(x),Y.push(E),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,Y,{fillLimit:!0,fill:!0,lineTypeLimit:!0}),this.scalePoints=[];var j=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,o,o,c);this.addScalePoint(j);var C=SuperMapAlgoPlot.PlottingUtil.linePnt(y,l,o*s);if(this.addScalePoint(C),this.addScalePoint(y),3==t.length){var I=t[2],B=SuperMapAlgoPlot.PlottingUtil.distance(e,I),R=r*SuperMapAlgoPlot.PlottingUtil.RTOD,N=i-R,D=i+R,k=this.GetArcPts(N,D,e,B);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,k);var z=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,B,B,D);this.addScalePoint(z);var F=m,G=SuperMapAlgoPlot.PlottingUtil.distance(e,I)-o,K=SuperMapAlgoPlot.PlottingUtil.circlePoint(F,G,G,A);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[F,K]);var W=SuperMapAlgoPlot.PlottingUtil.circlePoint(K,.1*G,.1*G,_-15),q=SuperMapAlgoPlot.PlottingUtil.circlePoint(K,.1*G,.1*G,_+15),J=[];J.push(K),J.push(W),J.push(q),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,J,{fillLimit:!0,fill:!0,lineTypeLimit:!0})}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>3)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=e,i=l[0],n=l[1],a=SuperMapAlgoPlot.PlottingUtil.distance(i,n),r=SuperMapAlgoPlot.PlottingUtil.radian(i,n);if(0==t){var s=SuperMapAlgoPlot.PlottingUtil.radian(i,o),p=Math.abs(s-r);this.scaleValues[0]=p}else if(1==t){var u=a*this.scaleValues[3],P=SuperMapAlgoPlot.PlottingUtil.linePnt(i,n,u),c=SuperMapAlgoPlot.PlottingUtil.distance(o,P)/a;this.scaleValues[2]=c}else if(2==t){var g=SuperMapAlgoPlot.PlottingUtil.distance(o,i)/a;if(g>=1)return;this.scaleValues[3]=g}else if(3==t){var S=SuperMapAlgoPlot.PlottingUtil.radian(i,o),h=Math.abs(S-r);this.scaleValues[1]=h}}}},{key:"GetArcPts",value:function(t,e,l,o){var i,n=[],a=0;for(a=t;a<e;a+=4)i=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,o,o,a),n.push(i);return a!=e&&(i=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,o,o,e),n.push(i)),n}}]),e}();SuperMapAlgoPlot.AlgoSymbol38700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol38600=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.04,l.scaleValues[2]=.1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.05,this.scaleValues[1]=.04),2===this.scaleValues.length&&this.scaleValues.push(.1),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=o,this.scaleValues[2]=.5*o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=180*SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI,r=SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,.7*r,a-90);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var P=i.endIndex+1;P<=e.length-1;P++)p.push(e[P]);this.addArrow(p,this.scaleValues[2])}for(var c=[],g=0;g<e.length;g++)c.push(e[g]);var S=l*this.scaleValues[1],h=SuperMapAlgoPlot.PlottingUtil.paraLine(c,S,!0),f=SuperMapAlgoPlot.PlottingUtil.paraLine(c,S,!1),y=[];for(g=0;g<h.length;g++)y.push(h[g]);var A=[];for(g=0;g<f.length;g++)A.push(f[g]);y=SuperMapAlgoPlot.PlottingUtil.clearSamePts(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y),A=SuperMapAlgoPlot.PlottingUtil.clearSamePts(A),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);var M=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,e),b=SuperMapAlgoPlot.PlottingUtil.circlePoint(M.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a+90);this.addScalePoint(b,0),this.addScalePoint(f[0],1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(l.length<this.minEditPts)return;if(0===t){var n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o);if(-1===n.index)return;var a=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}if(1===t){var r=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0]);this.scaleValues[1]=r/i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol38600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37700=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol23500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.2||i<=0)&&(i=.2),this.scaleValues[0]=i}var n=this.scaleValues[0],a=this.scaleValues[2],r=this.scaleValues[3],s=o*n,p=new SuperMapAlgoPlot.Point(l.x+o*a,l.y+o*r);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,s,0),this.addScalePoint(p);var u=s,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,u,u,90);this.addScalePoint(P),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol37700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37601=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),i=l*this.scaleValues[2],n=l*this.scaleValues[3],a=new SuperMapAlgoPlot.Point(o.x+i,o.y+n);if(!this.isEdit){var r=this.getDefaultSubSymbolSize()/l;(r>.3||r<=0)&&(r=.3),this.scaleValues[0]=r}var s=l*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,s,90),this.scalePoints=[];var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,s,s,180);this.addScalePoint(p),this.addScalePoint(a),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),o=[];if(o=3>=(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(n.x+a,n.y+r),p=SuperMapAlgoPlot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,P=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=P}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol37601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37600=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.15||i<=0)&&(i=.15),this.scaleValues[0]=i}var n=o*this.scaleValues[2],a=o*this.scaleValues[3],r=new SuperMapAlgoPlot.Point(l.x+n,l.y+a),s=o*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,s,0),this.scalePoints=[];var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,s,s,180);this.addScalePoint(p),this.addScalePoint(r),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),o=[];if(o=3>=(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(n.x+a,n.y+r),p=SuperMapAlgoPlot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,P=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=P}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol37600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37301=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.125,l.scaleValues[1]=.02,l.scaleValues[2]=.25,l.scaleValues[3]=.8),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<4&&(this.scaleValues=[],this.scaleValues[0]=.125,this.scaleValues[1]=.02,this.scaleValues[2]=.25,this.scaleValues[3]=.8),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[0]),l=SuperMapAlgoPlot.PlottingUtil.radian(t[1],t[0])*SuperMapAlgoPlot.PlottingUtil.RTOD,o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=this.scaleValues[3],r=new SuperMapAlgoPlot.Point(o*e,i*e),s=new SuperMapAlgoPlot.Point(o*e,-i*e),p=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[1],r,l),u=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[1],s,l),P=[];P.push(p),P.push(u),P.push(t[1]),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,P,{fillLimit:!0,fill:!0,lineTypeLimit:!0});var c=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n*e,t);if(c.bfind){var g=.05*e,S=c.pts,h=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,g,g,l+90),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,g,g,l+270);if((P=[]).push(h),P.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,{lineTypeLimit:!0,surroundLineLimit:!0}),(c=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a*e,t)).bfind){var y=c.pts,A=SuperMapAlgoPlot.PlottingUtil.circlePoint(y,g,g,l+90),M=SuperMapAlgoPlot.PlottingUtil.circlePoint(y,g,g,l+270);(P=[]).push(A),P.push(M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(u),this.addScalePoint(S),this.addScalePoint(y),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[1],l[0]);if(0==t){var i=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,l[1],l[0]),n=SuperMapAlgoPlot.PlottingUtil.distance(i,l[1]);90>SuperMapAlgoPlot.PlottingUtil.radian(l[1],i)*SuperMapAlgoPlot.PlottingUtil.RTOD&&(n=-n);var a=n/o;this.scaleValues[0]=a;var r=SuperMapAlgoPlot.PlottingUtil.distance(e,i)/o;this.scaleValues[1]=r}else if(1==t){var s=SuperMapAlgoPlot.PlottingUtil.distance(l[0],e)/o;if(.1>s||s>.95)return;this.scaleValues[2]=s}else if(2==t){var p=SuperMapAlgoPlot.PlottingUtil.distance(l[0],e)/o;if(.1>p||p>.95)return;this.scaleValues[3]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol37301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37300=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.125,l.scaleValues[1]=.02),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[0]),l=SuperMapAlgoPlot.PlottingUtil.radian(t[1],t[0])*SuperMapAlgoPlot.PlottingUtil.RTOD,o=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],t[0],.35*e),i=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,.05*e,.05*e,l+270);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[i,o],{fill:!1,fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0});var n=this.scaleValues[0],a=this.scaleValues[1],r=new SuperMapAlgoPlot.Point(n*e,a*e),s=new SuperMapAlgoPlot.Point(n*e,-a*e),p=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[1],r,l),u=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[1],s,l),P=[];P.push(p),P.push(u),P.push(t[1]),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,P,{fillLimit:!0,fill:!0,lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(u),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[1],l[0]);if(0==t){var i=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,l[1],l[0]),n=SuperMapAlgoPlot.PlottingUtil.distance(i,l[1]);90>SuperMapAlgoPlot.PlottingUtil.radian(l[1],i)*SuperMapAlgoPlot.PlottingUtil.RTOD&&(n=-n);var a=n/o;this.scaleValues[0]=a;var r=SuperMapAlgoPlot.PlottingUtil.distance(e,i)/o;this.scaleValues[1]=r}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol37300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol37200=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.1,l.scaleValues[1]=.2),l}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,SuperMapAlgoPlot.AlgoSymbol27100),e}();SuperMapAlgoPlot.AlgoSymbol37200=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37100=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.1,l.scaleValues[1]=.2),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.1,this.scaleValues[1]=.2),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e,l,o=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),i=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,n=this.scaleValues[0],a=this.scaleValues[1],r=n*o,s=[];for(e=90;e<=270;e+=3)l=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],r,r,e+i),s.push(l);var p=[];for(e=-90;e<=90;e+=3)l=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],r,r,e+i),p.push(l);var u=o*a,P=new SuperMapAlgoPlot.Point((s[0].x+p[p.length-1].x)/2,(s[0].y+p[p.length-1].y)/2),c=SuperMapAlgoPlot.PlottingUtil.linePnt(s[0],p[p.length-1],.5*(o-1.2*u)),g=SuperMapAlgoPlot.PlottingUtil.linePnt(p[p.length-1],s[0],.5*(o-1.2*u)),S=[];S.push(c),S.push.apply(S,s),S.push.apply(S,p),S.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S);var h=SuperMapAlgoPlot.PlottingUtil.radian(g,c)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],P,.9*u,h-90),this.scalePoints=[],this.addScalePoint(s[s.length-1]);var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,u,u,h+90);this.addScalePoint(f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0==t){var i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}else if(1==t){var n=this.scaleValues[0]*o,a=SuperMapAlgoPlot.PlottingUtil.circlePoint(l[0],n,n,90),r=SuperMapAlgoPlot.PlottingUtil.circlePoint(l[1],n,n,90),s=new SuperMapAlgoPlot.Point((a.x+r.x)/2,(a.y+r.y)/2),p=SuperMapAlgoPlot.PlottingUtil.distance(s,e)/o;p>=.8&&(p=.8),this.scaleValues[1]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol37100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol36800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.05),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var l=.1*e,o=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(l,t[1],t[0]),i=o.pntRight,n=o.pntLeft,a=(o=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(l,t[0],t[1])).pntRight,r=o.pntLeft,s=[];s.push(i),s.push(n),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s);var p=[];p.push(a),p.push(r),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p);var u=[];u.push(i),u.push(r);for(var P=SuperMapAlgoPlot.PlottingUtil.polylineDistance(u)/11,c=P,g=0,S=0,h=null,f=null,y=0;y<11;y++){if(0==y)g=0,h=i.clone();else{var A=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(c-P,u);if(!A.bfind)continue;g=A.index,h=A.pts}if(10==y)S=0,f=r.clone();else{if(!(A=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(c,u)).bfind)continue;S=A.index,f=A.pts}if(y%2==0){var M=[];M.push(h);for(var b=g+1;b<=S;b++)M.push(u[b]);M.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M,{lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0})}c+=P}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol36800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol36700=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.04,l.scaleValues[1]=.1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues[0]=.05,this.scaleValues[1]=.04),2===this.scaleValues.length&&this.scaleValues.push(.1),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=o,this.scaleValues[2]=.5*o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=180*SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI,r=SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,.7*r,a-90);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addStartPtArrow(s,this.scaleValues[2]),i.endIndex<=e.length){p.push(i.endPt);for(var P=i.endIndex+1;P<=e.length-1;P++)p.push(e[P]);this.addArrow(p,this.scaleValues[2])}for(var c=[],g=0;g<e.length;g++)c.push(e[g]);var S=l*this.scaleValues[1],h=SuperMapAlgoPlot.PlottingUtil.paraLine(c,S,!0),f=SuperMapAlgoPlot.PlottingUtil.paraLine(c,S,!1),y=[];for(g=0;g<h.length;g++)y.push(h[g]);var A=[];for(g=0;g<f.length;g++)A.push(f[g]);y=SuperMapAlgoPlot.PlottingUtil.clearSamePts(y),A=SuperMapAlgoPlot.PlottingUtil.clearSamePts(A),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);var M=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,e),b=SuperMapAlgoPlot.PlottingUtil.circlePoint(M.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a+90);this.addScalePoint(b,0),this.addScalePoint(f[0],1),this.finish()}}},{key:"addStartPtArrow",value:function(t,e){if(t.length<2)return t;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints)*e,o=t[0];if(t.length>=2){for(var i=-1,n=0;n<t.length-1;n++)if(l<SuperMapAlgoPlot.PlottingUtil.distance(o,t[n])){i=n;break}t.splice(1,i)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var a=t[1],r=t[0],s=l,p=SuperMapAlgoPlot.PlottingUtil.radian(r,a)*SuperMapAlgoPlot.PlottingUtil.RTOD,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,s,s,p+22.5),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,s,s,p-22.5);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[u,t[0],P],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0)}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(l.length<this.minEditPts)return;if(0===t){var n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o);if(-1===n.index)return;var a=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.4?a:.4}if(1===t){var r=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0]);this.scaleValues[1]=r/i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol36700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol36600=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.1,l.scaleValues[1]=.2),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.1,this.scaleValues[1]=.2),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue(),this.scaleValues[1]=this.getSubSymbolScaleValue());var e,l=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),o=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,i=this.scaleValues[0],n=this.scaleValues[1],a=i*l,r=[];for(e=90;e<=270;e+=3)r.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],a,a,e+o));for(e=-90;e<=90;e+=3)r.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],a,a,e+o));r.push(r[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r);var s=new SuperMapAlgoPlot.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2),p=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,u=l*n;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],s,u,p+90),this.scalePoints=[],this.addScalePoint(r[r.length-1]);var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,u,u,p+90);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0==t){var i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}else if(1==t){var n=new SuperMapAlgoPlot.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),a=SuperMapAlgoPlot.PlottingUtil.distance(n,e)/o;a>=.8&&(a=.8),this.scaleValues[1]=a}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol36600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol36401=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.1),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=.5*e,o=e*this.scaleValues[0],i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l,t),n=i.index,a=i.pts,r=(i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l+o,t)).index;if(!(n<0||r<0)){var s;if(n!=r)(s=SuperMapAlgoPlot.PlottingUtil.distance(t[n+1],t[n]))<=2*o?(o=s/2,a.x=(t[n+1].x+t[n].x)/2,a.y=(t[n+1].y+t[n].y)/2):a=SuperMapAlgoPlot.PlottingUtil.linePnt(t[n+1],t[n],o);else if((s=SuperMapAlgoPlot.PlottingUtil.distance(t[n+1],t[n]))<=2*o)o=s/2,a.x=(t[n+1].x+t[n].x)/2,a.y=(t[n+1].y+t[n].y)/2;else SuperMapAlgoPlot.PlottingUtil.distance(t[n],a)<o&&(a=SuperMapAlgoPlot.PlottingUtil.linePnt(t[n],t[n+1],o));var p,u=[];for(p=0;p<n+1;p++)u.push(t[p]);var P=SuperMapAlgoPlot.PlottingUtil.linePnt(a,t[n],o);u.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u);var c=SuperMapAlgoPlot.PlottingUtil.linePnt(a,t[n+1],o),g=[];g.push(c);var S=t.length;for(p=n+1;p<S;++p)g.push(t[p]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var h=t[0],f=t[1],y=t[t.length-2],A=t[t.length-1],M=.03*e,b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(M,f,h),d=b.pntRight,m=b.pntLeft,v=(b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(M,y,A)).pntRight,O=b.pntLeft,U=[];U.push(d),U.push(m),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,{lineTypeLimit:!0});var L=[];L.push(v),L.push(O),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,L,{lineTypeLimit:!0});var w=SuperMapAlgoPlot.PlottingUtil.radian(c,P)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,.8*o,w-90),this.scalePoints=[];var V=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,o,o,w-90);this.addScalePoint(V),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;if(0==t){var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=e,n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*o,l).pts,a=SuperMapAlgoPlot.PlottingUtil.distance(i,n)/o;this.scaleValues[0]=a<.5?a:.5}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol36401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol36400=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol36400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol35500=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.1);var e=t[0],l=t[1],o=SuperMapAlgoPlot.PlottingUtil.distance(e,l),i=o*this.scaleValues[0],n=SuperMapAlgoPlot.PlottingUtil.linePnt(e,l,.5*o),a=SuperMapAlgoPlot.PlottingUtil.linePnt(n,e,i),r=SuperMapAlgoPlot.PlottingUtil.linePnt(n,l,i),s=[],p=[];s.push(t[0]),s.push(a),p.push(r),p.push(t[1]);var u=SuperMapAlgoPlot.PlottingUtil.paraLine(s,.5*i,!0),P=SuperMapAlgoPlot.PlottingUtil.paraLine(p,.5*i,!0),c=[],g=[];c.push(u[0]),c.push(u[1]),g.push(P[0]),g.push(P[1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,{lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,{lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1});var S=[],h=[],f=SuperMapAlgoPlot.PlottingUtil.paraLine(s,.5*i,!1),y=SuperMapAlgoPlot.PlottingUtil.paraLine(p,.5*i,!1);S.push(f[0]),S.push(f[1]),h.push(y[0]),h.push(y[1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,{lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,{lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1});var A=SuperMapAlgoPlot.PlottingUtil.linePnt(c[1],g[0],.2*i),M=SuperMapAlgoPlot.PlottingUtil.linePnt(g[0],c[1],.2*i),b=SuperMapAlgoPlot.PlottingUtil.linePnt(S[1],h[0],.2*i),d=SuperMapAlgoPlot.PlottingUtil.linePnt(h[0],S[1],.2*i),m=[];m.push(A),m.push(M),m.push(d),m.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,m,{fillLimit:!0,fill:!0,lineTypeLimit:!0});var v=SuperMapAlgoPlot.PlottingUtil.linePnt(b,A,1.2*i),O=SuperMapAlgoPlot.PlottingUtil.linePnt(A,b,1.2*i),U=[];U.push(v),U.push(O),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,{lineTypeLimit:!0});var L=SuperMapAlgoPlot.PlottingUtil.linePnt(d,M,1.2*i),w=SuperMapAlgoPlot.PlottingUtil.linePnt(M,d,1.2*i),V=[];V.push(L),V.push(w),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,V,{lineTypeLimit:!0}),this.addScalePoint(f[0],0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>this.scalePoints.length)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t){var i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0]);this.scaleValues[0]=2*i/o}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol35500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol35304=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=0),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.05,this.scaleValues[1]=0),!this.isEdit){var e=[];e.push(this.subSymbols[0]),this.scaleValues[0]=this.getSubSymbolScaleValue(),this.subSymbols=[];for(var l=0;l<t.length;l++)this.subSymbols.push(e[0])}var o,i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],n=[];for(o=0;o<t.length;o++)n.push(t[o]);for(n.push(n[0]),o=0;o<n.length-1;o++){var a=n[o],r=n[o+1],s=SuperMapAlgoPlot.PlottingUtil.radian(a,r)*SuperMapAlgoPlot.PlottingUtil.RTOD;s+=90;var p=.5*i,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,p,p,s),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,p,p,s);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u,P])}this.scalePoints=[];var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],1.2*i,1.2*i,270);for(this.addScalePoint(c),o=0;o<t.length;o++){var g=n[o];2*(o+1)>=this.scaleValues.length&&this.scaleValues.push(0);var S=this.scaleValues[2*(o+1)];2*(o+1)+1>=this.scaleValues.length&&this.scaleValues.push(1);var h=S;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[o],g,i,h);var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,1.5*i,1.5*i,h+90);this.addScalePoint(f)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>this.scalePoints.length)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;if(0==t){for(var o=[],i=0;i<l.length;i++)o.push(l[i]);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),a=SuperMapAlgoPlot.PlottingUtil.distance(o[0],e)/1.2;this.scaleValues[0]=a/n}else{var r=l[t-1],s=SuperMapAlgoPlot.PlottingUtil.radian(r,e)*SuperMapAlgoPlot.PlottingUtil.RTOD;0>(s-=90)&&(s+=360),this.scaleValues[2*t]=s}}}},{key:"GetCodeByScaleValue",value:function(t){switch(Math.floor(t)){case 0:return 35300;case 1:return 35301;case 2:return 35302;case 3:return 35303;case 4:return 35400;case 5:return 35401;case 6:return 35402;case 7:return 35403;default:return-1}}}]),e}();SuperMapAlgoPlot.AlgoSymbol35304=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol35200=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.05),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue()),2==t.length?this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t):this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),o=e*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],l,o,0),this.scalePoints=[];var i=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,o,o,90);this.addScalePoint(i),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.distance(e,i)/o;this.scaleValues[0]=n}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol35200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol35000=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.03),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.03),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=e[0],n=e[1],a=e[e.length-1],r=e[e.length-2],s=SuperMapAlgoPlot.PlottingUtil.radian(i,n)*SuperMapAlgoPlot.PlottingUtil.RTOD,p=SuperMapAlgoPlot.PlottingUtil.radian(r,a)*SuperMapAlgoPlot.PlottingUtil.RTOD,u=this.scaleValues[0],P=l*u,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,P,P,s+90),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,P,P,s+270),S=[];S.push(c),S.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(g);var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,P,P,p+90),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,P,P,p+270);(S=[]).push(h),S.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0});var y,A,M=t.length;if(this.scaleValues.length<=M){for(this.scaleValues=[],this.scaleValues.push(u),A=1/M,y=0;y<M-1;y++)this.scaleValues.push(A*(y+1));this.scaleValues.push(u)}for(y=0;y<M-1;y++){var b=(A=this.scaleValues[y+1])*l,d=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(b,e);if(!d.bfind)return;var m=d.pts,v=d.index,O=l*this.getSubSymbolScaleValue(),U=.3*O,L=SuperMapAlgoPlot.PlottingUtil.radian(e[v],e[v+1])*SuperMapAlgoPlot.PlottingUtil.RTOD,w=new SuperMapAlgoPlot.Point(O,-U),V=new SuperMapAlgoPlot.Point(-O,-U),_=new SuperMapAlgoPlot.Point(-O,0),T=new SuperMapAlgoPlot.Point(O,0),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(m,w,L),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(m,V,L),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(m,_,L),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(m,T,L);(S=[]).push(x),S.push(E),S.push(Y),S.push(j),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{lineTypeLimit:!0,fillLimit:!0,fill:!0}),this.addScalePoint(m)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>=this.scalePoints.length)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0==t){var a=(i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0]))/n;this.scaleValues[0]=a}else{var r,s=e,p=[];for(r=0;r<o.length;r++)p.push(o[r]);var u=-1,P=0,c=new SuperMapAlgoPlot.Point(0,0);for(r=0;r<p.length-1;r++){var g=[];g.push(p[r]),g.push(p[r+1]);var S=SuperMapAlgoPlot.PlottingUtil.projectPoint(s,p[r],p[r+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(S,g).isOnPolyLine){var h=SuperMapAlgoPlot.PlottingUtil.distance(s,S);-1==u?(u=r,c=S,P=h):P>h&&(u=r,c=S,P=h)}}if(-1==u||u>p.length-1)return;for(i=0,r=0;r<u;r++)i+=SuperMapAlgoPlot.PlottingUtil.distance(o[r],o[r+1]);if((i+=SuperMapAlgoPlot.PlottingUtil.distance(o[u],c))<0||i>n)return;var f=i/n;this.scaleValues[t]=f}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol35000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34902=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.02):1===this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),o=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l/2,e);if(o.bfind){var i=o.index,n=o.pts;if(!this.isEdit){var a=this.getDefaultSubSymbolSize()/l;(a>.3||a<=0)&&(a=.3),this.scaleValues[0]=a,this.scaleValues[1]=.5*a}var r,s=l*this.scaleValues[0],p=[];for(p.push(n),r=i;r>=0;r--)p.push(e[r]);if((o=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,p)).bfind){var u=o.index,P=o.pts,c=[];for(r=p.length-1;r>u;r--)c.push(p[r]);c.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c);var g=[];for(g.push(n),r=i+1;r<e.length;r++)g.push(e[r]);if((o=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,g)).bfind){var S=o.index,h=o.pts;for((c=[]).push(h),r=S+1;r<g.length;r++)c.push(g[r]);this.addArrow(c,this.scaleValues[1]);var f=.1*s,y=P,A=h,M=SuperMapAlgoPlot.PlottingUtil.radian(y,A)*SuperMapAlgoPlot.PlottingUtil.RTOD,b=new SuperMapAlgoPlot.Point((y.x+A.x)/2,(y.y+A.y)/2),d=SuperMapAlgoPlot.PlottingUtil.circlePoint(b,2*f,2*f,M),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(b,2*f,2*f,M+180),v=SuperMapAlgoPlot.PlottingUtil.circlePoint(d,f,f,0);(c=[]).push(d),c.push(v);var O={surroundLineLimit:!0,lineTypeLimit:!0,fillLimit:!0,fill:!0};this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,c,O);var U=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,f,f,0);(c=[]).push(m),c.push(U),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,c,O);var L=e[0].clone(),w=e[1].clone(),V=SuperMapAlgoPlot.PlottingUtil.radian(w,L)*SuperMapAlgoPlot.PlottingUtil.RTOD,_=new SuperMapAlgoPlot.Point(0,.5*s),T=new SuperMapAlgoPlot.Point(s,.5*s),x=new SuperMapAlgoPlot.Point(1.5*s,0),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(L,_,V),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(L,T,V),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(L,x,V);(c=[]).push(e[0]),c.push(E),c.push(Y),c.push(j),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,c),this.finish()}}}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol34902=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34901=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.02):1===this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var o=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l/2,e);if(o.bfind){var i=o.index,n=o.pts;if(!this.isEdit){var a=this.getDefaultSubSymbolSize()/l;(a>.3||a<=0)&&(a=.3),this.scaleValues[0]=a,this.scaleValues[1]=.5*a}var r,s=l*this.scaleValues[0],p=[];for(p.push(n),r=i;r>=0;r--)p.push(e[r]);if((o=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,p)).bfind){var u=o.index,P=o.pts,c=[];for(r=p.length-1;r>u;r--)c.push(p[r]);c.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c);var g=[];for(g.push(n),r=i+1;r<e.length;r++)g.push(e[r]);if((o=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,g)).bfind){var S=o.index,h=o.pts;for((c=[]).push(h),r=S+1;r<g.length;r++)c.push(g[r]);this.addArrow(c,this.scaleValues[1]);var f=.1*s,y=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,f,f,0);(c=[]).push(n),c.push(y);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,c,{surroundLineLimit:!0,lineTypeLimit:!0,fillLimit:!0,fill:!0});var A=e[0].clone(),M=e[1].clone(),b=SuperMapAlgoPlot.PlottingUtil.radian(M,A)*SuperMapAlgoPlot.PlottingUtil.RTOD,d=new SuperMapAlgoPlot.Point(0,.5*s),m=new SuperMapAlgoPlot.Point(s,.5*s),v=new SuperMapAlgoPlot.Point(1.5*s,0),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(A,d,b),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(A,m,b),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(A,v,b);(c=[]).push(e[0]),c.push(O),c.push(U),c.push(L),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,c),this.finish()}}}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol34901=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34900=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.02):1===this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(-1!==SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,l/2).index){if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=.5*o}this.addArrow(e,this.scaleValues[1]);var i=l*this.scaleValues[0],n=new SuperMapAlgoPlot.Point(e[0].x,e[0].y),a=new SuperMapAlgoPlot.Point(e[1].x,e[1].y),r=SuperMapAlgoPlot.PlottingUtil.radian(a,n)*SuperMapAlgoPlot.PlottingUtil.RTOD,s=new SuperMapAlgoPlot.Point(0,.5*i),p=new SuperMapAlgoPlot.Point(i,.5*i),u=new SuperMapAlgoPlot.Point(1.5*i,0),P=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,s,r),c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,p,r),g=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,u,r);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[e[0],P,c,g]),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol34900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34801=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 l=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===l.scaleValues.length&&l.scaleValues.push(.4),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[],l=t[0].clone(),o=t[1].clone(),i=SuperMapAlgoPlot.PlottingUtil.distance(l,o),n=0;for(n=15;n<=165;n+=4)e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(l,i,i,n));SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,165)&&(n=165,e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(l,i,i,n)));var a=[];for(n=e.length-1;n>=0;n--)a.push(e[n]);for(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a),e=[],n=195;n<=345;n+=4)e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(l,i,i,n));for(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,345)&&(n=345,e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(l,i,i,n))),a=[],n=e.length-1;n>=0;n--)a.push(e[n]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a);var r=2*this.scaleValues[0]*i;(e=[]).push(new SuperMapAlgoPlot.Point(l.x-r,l.y)),e.push(new SuperMapAlgoPlot.Point(l.x-.4*r,l.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0}),(e=[]).push(new SuperMapAlgoPlot.Point(l.x-.2*r,l.y)),e.push(new SuperMapAlgoPlot.Point(l.x+.4*r,l.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0}),(e=[]).push(new SuperMapAlgoPlot.Point(l.x+.6*r,l.y)),e.push(new SuperMapAlgoPlot.Point(l.x+r,l.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0}),(e=[]).push(new SuperMapAlgoPlot.Point(l.x-this.scaleValues[0]*i,l.y)),e.push(new SuperMapAlgoPlot.Point(l.x-this.scaleValues[0]*i,l.y+this.scaleValues[0]*i)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0}),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol34801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[],l=t[0].clone(),o=t[1].clone(),i=SuperMapAlgoPlot.PlottingUtil.distance(l,o),n=0;for(n=15;n<=165;n+=4)e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(l,i,i,n));SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,165)&&(n=165,e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(l,i,i,n)));var a=[];for(n=e.length-1;n>=0;n--)a.push(e[n]);for(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a),e=[],n=195;n<=345;n+=4)e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(l,i,i,n));for(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,345)&&(n=345,e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(l,i,i,n))),a=[],n=e.length-1;n>=0;n--)a.push(e[n]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a);var r=.8*i;(e=[]).push(new SuperMapAlgoPlot.Point(l.x-r,l.y)),e.push(new SuperMapAlgoPlot.Point(l.x+r,l.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0}),(e=[]).push(new SuperMapAlgoPlot.Point(l.x-.4*i,l.y)),e.push(new SuperMapAlgoPlot.Point(l.x-.4*i,l.y+.4*i)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0}),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol34800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34700=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.08,l.scaleValues[1]=.03),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.08),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=.5*e,o=e*this.scaleValues[0],i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l,t),n=i.pts,a=i.index,r=(i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l+o,t)).index;if(!(a<0||r<0)){var s,p,u;if(a!=r)s=new SuperMapAlgoPlot.Point(t[a+1].x,t[a+1].y),p=new SuperMapAlgoPlot.Point(t[a].x,t[a].y),(u=SuperMapAlgoPlot.PlottingUtil.distance(s,p))<=2*o?(o=u/2,n.x=(t[a+1].x+t[a].x)/2,n.y=(t[a+1].y+t[a].y)/2):n=SuperMapAlgoPlot.PlottingUtil.linePnt(t[a+1],t[a],o);else if(s=new SuperMapAlgoPlot.Point(t[a+1].x,t[a+1].y),p=new SuperMapAlgoPlot.Point(t[a].x,t[a].y),(u=SuperMapAlgoPlot.PlottingUtil.distance(s,p))<=2*o)o=u/2,n.x=(t[a+1].x+t[a].x)/2,n.y=(t[a+1].y+t[a].y)/2;else s=new SuperMapAlgoPlot.Point(t[a].x,t[a].y),p=new SuperMapAlgoPlot.Point(n.x,n.y),SuperMapAlgoPlot.PlottingUtil.distance(s,p)<o&&(n=SuperMapAlgoPlot.PlottingUtil.linePnt(t[a],t[a],o));var P,c,g,S=[];for(P=0;P<a+1;P++)S.push(t[P]);c=SuperMapAlgoPlot.PlottingUtil.linePnt(n,t[a],o),S.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S),g=SuperMapAlgoPlot.PlottingUtil.linePnt(n,t[a+1],o);var h=[];h.push(g);var f=t.length;for(P=a+1;P<f;++P)h.push(t[P]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var y=[],A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o/2,c,g);y.push(c),y.push(A.pntRight),y.push(A.pntLeft);var M=(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,c,n)).pntRight;this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,y,{lineTypeLimit:!0});var b,d,m,v,O=t[0].clone(),U=t[1].clone(),L=t[t.length-2].clone(),w=t[t.length-1].clone(),V=e*this.scaleValues[1];d=(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(V,U,O)).pntRight,b=A.pntLeft,v=(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(V,L,w)).pntRight,m=A.pntLeft;var _=[];_.push(d),_.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,_,{lineTypeLimit:!0});var T=[];T.push(v),T.push(m),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T,{lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(M),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0==t){var i=.5*o,n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,l).pts,a=SuperMapAlgoPlot.PlottingUtil.distance(e,n)/o;a>.5&&(a=.5),this.scaleValues[0]=a}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol34700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34501=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts||t.length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),o=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),i=SuperMapAlgoPlot.PlottingUtil.radian(l,o)*SuperMapAlgoPlot.PlottingUtil.RTOD,n=new SuperMapAlgoPlot.Point(0,0),a=new SuperMapAlgoPlot.Point(.475*e,0),r=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,n,i),s=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,a,i),p=[];p.push(r),p.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var u=new SuperMapAlgoPlot.Point(.525*e,0),P=new SuperMapAlgoPlot.Point(.725*e,0),c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,u,i),g=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,P,i);(p=[]).push(c),p.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var S=new SuperMapAlgoPlot.Point(.775*e,0),h=new SuperMapAlgoPlot.Point(.95*e,0),f=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,S,i),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,h,i);if((p=[]).push(f),p.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0}),this.subSymbols.length>0){var A=.2*e,M=new SuperMapAlgoPlot.Point(t[1].x,t[1].y+A/2);this.computeSubSymbol(this.subSymbols[0],M,A,0)}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol34501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34500=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),o=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),i=SuperMapAlgoPlot.PlottingUtil.radian(l,o)*SuperMapAlgoPlot.PlottingUtil.RTOD,n=new SuperMapAlgoPlot.Point(0,0),a=new SuperMapAlgoPlot.Point(.475*e,0),r=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,n,i),s=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,a,i),p=[];p.push(r),p.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var u=new SuperMapAlgoPlot.Point(.525*e,0),P=new SuperMapAlgoPlot.Point(.725*e,0),c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,u,i),g=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,P,i);(p=[]).push(c),p.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var S=new SuperMapAlgoPlot.Point(.775*e,0),h=new SuperMapAlgoPlot.Point(.95*e,0),f=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,S,i),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,h,i);(p=[]).push(f),p.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var A=new SuperMapAlgoPlot.Point(e,.0125*e),M=new SuperMapAlgoPlot.Point(e,-.0125*e),b=new SuperMapAlgoPlot.Point(.75*e+.2*e,0),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,A,i),m=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,M,i),v=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,b,i);(p=[]).push(d),p.push(v),p.push(m),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var O=new SuperMapAlgoPlot.Point(.75*e+.025*e,0),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,O,i);(p=[]).push(v),p.push(U),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var L=new SuperMapAlgoPlot.Point(.75*e+.15*e,0),w=SuperMapAlgoPlot.PlottingUtil.circlePoint(L,.075*e,.1*e,150),V=SuperMapAlgoPlot.PlottingUtil.circlePoint(L,.075*e,.1*e,210),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,L,i),T=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,w,i),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,V,i);(p=[]).push(T),p.push(_),p.push(x),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var E=new SuperMapAlgoPlot.Point(.75*e+.05*e,.025*e),Y=new SuperMapAlgoPlot.Point(.75*e+.05*e,-.025*e),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,E,i),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,Y,i);(p=[]).push(j),p.push(C),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var I=new SuperMapAlgoPlot.Point(.75*e+.0125*e,0),B=new SuperMapAlgoPlot.Point(.75*e+.0125*e,.0125*e),R=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,I,i),N=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,B,i);(p=[]).push(R),p.push(N),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,p,{lineTypeLimit:!0}),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol34500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34400=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.1,l.scaleValues[1]=.2),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues[0]=.1,this.scaleValues[1]=.2);var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),o=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),i=SuperMapAlgoPlot.PlottingUtil.radian(l,o)*SuperMapAlgoPlot.PlottingUtil.RTOD,n=this.scaleValues[0],a=this.scaleValues[1];if(!(n<0||a<0)){var r=n*e,s=1-a*(5/4);s<0&&(s=0),s>1&&(s=1);var p,u,P=e*s,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,P,P,i),g=[];g.push(t[0].clone()),g.push(c),p=SuperMapAlgoPlot.PlottingUtil.paraLine(g,r,!0),u=SuperMapAlgoPlot.PlottingUtil.paraLine(g,r,!1);var S,h=[];for(S=0;S<p.length;S++)h.push(p[S]);var f=[];for(S=0;S<u.length;S++)f.push(u[S]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var y=a*e,A=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,y/2,y/2,i);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],A,y/2,i+180);for(var M=[],b=.1*P,d=[],m=0;m<h.length;m++)d.push(h[m].clone());var v=[];for(S=0;S<f.length;S++)v.push(f[S].clone());var O=SuperMapAlgoPlot.PlottingUtil.distance(v[0],v[1]);if(!(b>=O)){for(var U=b;U<P-r;U+=b){var L=SuperMapAlgoPlot.PlottingUtil.circlePoint(v[0],U,U,i),w=SuperMapAlgoPlot.PlottingUtil.circlePoint(L,O,O,i+45),V=SuperMapAlgoPlot.PlottingUtil.intersectLines(L,w,d[0],d[1]);if(V.isIntersectLines){var _=V.intersectPoint;if(!SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(_,d).isOnPolyLine)break;(M=[]).push(L),M.push(_),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M,{lineTypeLimit:!0,surroundLineLimit:!0})}}this.scalePoints=[];var T=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,r,r,i+90);this.addScalePoint(T);var x=y/2,E=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,x,x,i+90);this.addScalePoint(E),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);0==t?(o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],e)/i,this.scaleValues[0]=o):1==t&&(o=2*SuperMapAlgoPlot.PlottingUtil.distance(l[1],e)/i,this.scaleValues[1]=o)}}}]),e}();SuperMapAlgoPlot.AlgoSymbol34400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34300=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),i=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),n=SuperMapAlgoPlot.PlottingUtil.radian(o,i)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=.02*l,r=[];for(e=0;e<360;e+=10)r.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(new SuperMapAlgoPlot.Point(0,0),a,a,e));r.push(r[0]);var s=[],p=new SuperMapAlgoPlot.Point(.1*l,0),u=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,p,n);for(e=0;e<r.length;e++)s.push(new SuperMapAlgoPlot.Point(r[e].x+u.x,r[e].y+u.y));var P={lineTypeLimit:!0,surroundLineLimit:!0,fillLimit:!0,fill:!0};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,P);var c=new SuperMapAlgoPlot.Point(.25*l,0),g=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,c,n);for(s=[],e=0;e<r.length;e++)s.push(new SuperMapAlgoPlot.Point(r[e].x+g.x,r[e].y+g.y));this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,P);var S=new SuperMapAlgoPlot.Point(.4*l,0),h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,S,n);for(s=[],e=0;e<r.length;e++)s.push(new SuperMapAlgoPlot.Point(r[e].x+h.x,r[e].y+h.y));this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,P);var f=new SuperMapAlgoPlot.Point(.6*l,0),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,f,n);for(s=[],e=0;e<r.length;e++)s.push(new SuperMapAlgoPlot.Point(r[e].x+y.x,r[e].y+y.y));this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,P);var A=new SuperMapAlgoPlot.Point(.5*l,.05*l),M=new SuperMapAlgoPlot.Point(.7*l,.05*l),b=new SuperMapAlgoPlot.Point(.75*l,0),d=new SuperMapAlgoPlot.Point(.7*l,-.05*l),m=new SuperMapAlgoPlot.Point(.5*l,-.05*l),v=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,A,n),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,M,n),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,b,n),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,d,n),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,m,n);(s=[]).push(v),s.push(O),s.push(U),s.push(L),s.push(w),s.push(v),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol34300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol33400=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.125),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<5&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.125),this.scaleValues.push(0)),this.scaleValues.length<6&&this.scaleValues.push(.1);var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l,o,i,n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);this.isEdit||(((i=this.getDefaultSubSymbolSize()/n)>.3||i<=0)&&(i=.3),this.scaleValues[5]=i);var a=1.5*this.scaleValues[5];2==t.length?(this.isEdit||(this.scaleValues[3]=this.scaleValues[2]+a),l=this.scaleValues[2],o=this.scaleValues[3]):(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.scaleValues[4],0)&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.125)),this.isEdit||(this.scaleValues[4]=this.scaleValues[3]+a,((i=this.getDefaultSubSymbolSize()/n)>.3||i<=0)&&(i=.3),this.scaleValues[5]=i),l=this.scaleValues[3],o=this.scaleValues[4]);var r=n*l,s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,e);if(s.bfind){var p=s.index,u=s.pts,P=n*o;if((s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(P,e)).bfind){for(var c=s.index,g=s.pts,S=new SuperMapAlgoPlot.Point(u.x,u.y),h=new SuperMapAlgoPlot.Point(g.x,g.y),f=SuperMapAlgoPlot.PlottingUtil.radian(S,h)*SuperMapAlgoPlot.PlottingUtil.RTOD,y=[],A=0;A<=p;A++)y.push(e[A]);for(y.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y),(y=[]).push(g),A=c+1;A<e.length;A++)y.push(e[A]);this.addArrow(y,.5*this.scaleValues[5]);var M=SuperMapAlgoPlot.PlottingUtil.distance(S,h),b=new SuperMapAlgoPlot.Point(2/3*M,.5/3*M),d=new SuperMapAlgoPlot.Point(0,.5/3*M),m=new SuperMapAlgoPlot.Point(0,-.5/3*M),v=new SuperMapAlgoPlot.Point(2/3*M,-.5/3*M),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,b,f),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,d,f),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,m,f),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,v,f);(y=[]).push(O),y.push(U),y.push(L),y.push(w),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y);var V=M/3*2,_=SuperMapAlgoPlot.PlottingUtil.radian(h,O)*SuperMapAlgoPlot.PlottingUtil.RTOD,T=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,V,V,_),x=SuperMapAlgoPlot.PlottingUtil.radian(h,w)*SuperMapAlgoPlot.PlottingUtil.RTOD,E=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,V,V,x);(y=[]).push(T),y.push(g),y.push(E),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y),this.scalePoints=[],this.addScalePoint(g);var Y=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,M/2,M/2,f+90);this.addScalePoint(Y),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n,a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=0,s=0;if(2==l.length?(r=this.scaleValues[2],s=this.scaleValues[3]):(r=this.scaleValues[3],s=this.scaleValues[4]),0==t){for(var p=s-r,u=e.clone(),P=[],c=0;c<o.length;c++)P.push(o[c].clone());for(var g,S=-1,h=0,f=0;f<P.length-1;f++){var y=[];y.push(P[f]),y.push(P[f+1]);var A=SuperMapAlgoPlot.PlottingUtil.projectPoint(u,P[f],P[f+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(A,y).isOnPolyLine){var M=SuperMapAlgoPlot.PlottingUtil.distance(u,A);-1==S?(S=f,g=A,h=M):h>M&&(S=f,g=A,h=M)}}if(-1==S||S>P.length-1)return;i=0;for(var b=0;b<S;b++)i+=SuperMapAlgoPlot.PlottingUtil.distance(o[b],o[b+1]);if((i+=SuperMapAlgoPlot.PlottingUtil.distance(o[S],g))<0||i>a)return;if((n=i/a)>.7||n-p<0)return;2==l.length?(this.scaleValues[2]=n-p,this.scaleValues[3]=n):(this.scaleValues[3]=n-p,this.scaleValues[4]=n)}else if(1==t){i=a*r;var d=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,o);if(!d.bfind)return;var m=d.pts;if(.7<(n=(2*SuperMapAlgoPlot.PlottingUtil.distance(m,e)+i)/a))return;2==l.length?this.scaleValues[3]=n:this.scaleValues[4]=n}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol33400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol32900=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);2===t.length?this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t):this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),i=o;this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var n=e*this.scaleValues[0],a=this.scaleValues[1],r=a,s=this.scaleValues[3],p=this.scaleValues[4];i.x=o.x+s*e,i.y=o.y+p*e,this.computeSubSymbol(this.subSymbols[0],o,n,r),this.addScalePoint(i,0);var u=new SuperMapAlgoPlot.Point(i.x,i.y),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,n,n,0);this.addScalePoint(P,1);var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,2*n,2*n,a);this.addScalePoint(c,2),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o,i,n,a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t&&(o=(e.x-a.x)/r,this.scaleValues[3]=o,i=(e.y-a.y)/r,this.scaleValues[4]=i),1===t){o=this.scaleValues[3],i=this.scaleValues[4],n=new SuperMapAlgoPlot.Point(a.x+o*r,a.y+i*r);var s=SuperMapAlgoPlot.PlottingUtil.distance(n,e)/r;this.scaleValues[0]=s}if(2===t){o=this.scaleValues[3],i=this.scaleValues[4],n=new SuperMapAlgoPlot.Point(a.x+o*r,a.y+i*r);var p=SuperMapAlgoPlot.PlottingUtil.radian(n,e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[1]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol32900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol32300=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=t[0],o=t[1];e=2==t.length?o:t[2];var i=new SuperMapAlgoPlot.Point((l.x+o.x)/2,(l.y+o.y)/2),n=SuperMapAlgoPlot.PlottingUtil.distance(i,e),a=.5*n,r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,i,e),s=r.pntLeft,p=r.pntRight,u=!(i.x>e.x),P=[];u?(P.push(l),P.push(s)):(P.push(l),P.push(p)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER});var c=[];u?(c.push(o),c.push(p)):(c.push(o),c.push(s)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER});var g,S,h,f,y=.37*n,A=SuperMapAlgoPlot.PlottingUtil.linePnt(i,e,y),M=.09*n,b=[];b.push(A),b.push(new SuperMapAlgoPlot.Point(A.x,A.y+M)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,b,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE}),u?(g=(r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(M,i,A)).pntLeft,S=(r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*M,i,A)).pntLeft,h=(r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(M,g,S)).pntRight,f=r.pntLeft):(g=(r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(M,i,A)).pntRight,S=(r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*M,i,A)).pntRight,h=(r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(M,g,S)).pntRight,f=r.pntLeft);var d=[];d.push(g),d.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE});var m=[];m.push(h),m.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,m,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE}),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol32300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31803=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o);var i=.5*e,n=e*this.getSubSymbolScaleValue(),a=n,r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==r.index){var s=r.pt,p=new SuperMapAlgoPlot.Point(o[r.index].x,o[r.index].y),u=new SuperMapAlgoPlot.Point(o[r.index+1].x,o[r.index+1].y),P=180*SuperMapAlgoPlot.PlottingUtil.radian(p,u)/Math.PI,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,n,n,P+90);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,c]);var g=180*SuperMapAlgoPlot.PlottingUtil.radian(s,c)/Math.PI,S=new SuperMapAlgoPlot.Point(-.2*n,.05*n),h=new SuperMapAlgoPlot.Point(-.2*n,-.05*n),f=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,S,g),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,h,g);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[c,f,y],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});var A=new SuperMapAlgoPlot.Point(0,-.6*a);A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,A,P),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],A,a,P-90),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol31803=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31601=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var l=this.getDefaultSubSymbolSize()/e;(l>.3||l<=0)&&(l=.3),this.scaleValues[2]=l}var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),i=Math.abs(t[1].x-t[0].x)*this.getSubSymbolScaleValue()*.5,n=Math.abs(t[1].y-t[0].y)*this.getSubSymbolScaleValue()*.5;if(t[0].y>t[1].y){var a=new SuperMapAlgoPlot.Point(o.x,t[0].y),r=new SuperMapAlgoPlot.Point(o.x,t[0].y-n);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[a,r]);var s=new SuperMapAlgoPlot.Point(o.x,t[1].y),p=new SuperMapAlgoPlot.Point(o.x,t[1].y+n);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,p])}else{var u=new SuperMapAlgoPlot.Point(o.x,t[1].y),P=new SuperMapAlgoPlot.Point(o.x,t[1].y-n);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u,P]);var c=new SuperMapAlgoPlot.Point(o.x,t[0].y),g=new SuperMapAlgoPlot.Point(o.x,t[0].y+n);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[c,g])}if(t[0].x>t[1].x){var S=new SuperMapAlgoPlot.Point(t[0].x,o.y),h=new SuperMapAlgoPlot.Point(t[0].x-i,o.y);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[S,h]);var f=new SuperMapAlgoPlot.Point(t[1].x,o.y),y=new SuperMapAlgoPlot.Point(t[1].x+i,o.y);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[f,y])}else{var A=new SuperMapAlgoPlot.Point(t[1].x,o.y),M=new SuperMapAlgoPlot.Point(t[1].x-i,o.y);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[A,M]);var b=new SuperMapAlgoPlot.Point(t[0].x,o.y),d=new SuperMapAlgoPlot.Point(t[0].x+i,o.y);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[b,d])}this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,t);var m=new SuperMapAlgoPlot.Point(o.x+e*this.scaleValues[0],o.y+e*this.scaleValues[1]),v=e*this.scaleValues[2]*1.2;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],m,v,0),this.addScalePoint(m);var O=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,v/2,v/2,90);this.addScalePoint(O),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;this.scaleValues.lenth<3&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var o,i,n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0===t)o=(e.x-a.x)/n,this.scaleValues[0]=o,i=(e.y-a.y)/n,this.scaleValues[1]=i;else if(1===t){o=this.scaleValues[0],i=this.scaleValues[1];var r=new SuperMapAlgoPlot.Point(a.x+n*o,a.y+n*i),s=SuperMapAlgoPlot.PlottingUtil.distance(r,e)/n;this.scaleValues[2]=s}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol31601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31600=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.1),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues.push(.1),this.scaleValues.push(.1),this.scaleValues.push(0)),this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=Math.abs(t[1].x-t[0].x)*this.getSubSymbolScaleValue()*.5,i=new SuperMapAlgoPlot.Point(e.x-o,e.y+o),n=new SuperMapAlgoPlot.Point(e.x-3*o,e.y-o);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[i,n]);var a=new SuperMapAlgoPlot.Point(e.x-o,e.y-o),r=new SuperMapAlgoPlot.Point(e.x-3*o,e.y+o);if(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[a,r]),!this.isEdit){var s=this.getDefaultSubSymbolSize()/l;(s>.3||s<=0)&&(s=.3),this.scaleValues[0]=s}var p=new SuperMapAlgoPlot.Point(e.x+o,e.y),u=new SuperMapAlgoPlot.Point(e.x+4*o,e.y),P=SuperMapAlgoPlot.PlottingUtil.radian(p,u)*SuperMapAlgoPlot.PlottingUtil.RTOD,c=l*this.scaleValues[0]*2,g=new SuperMapAlgoPlot.Point(e.x+l*this.scaleValues[1],e.y+l*this.scaleValues[2]);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],g,.8*c,P),this.addScalePoint(g);var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,c/2,c/2,90);this.addScalePoint(S),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;this.scaleValues.lenth<3&&(this.scaleValues.push(.1),this.scaleValues.push(.1),this.scaleValues.push(0));var o,i,n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0===t)o=(e.x-a.x)/n,this.scaleValues[1]=o,i=(e.y-a.y)/n,this.scaleValues[2]=i;else if(1===t){o=this.scaleValues[1],i=this.scaleValues[2];var r=new SuperMapAlgoPlot.Point(a.x+n*o,a.y+n*i),s=SuperMapAlgoPlot.PlottingUtil.distance(r,e)/n;this.scaleValues[0]=s}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol31600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31401=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol31400),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,t);var e=0;e=Math.abs(t[1].x-t[0].x)<Math.abs(t[1].y-t[0].y)?.1*Math.abs(t[1].x-t[0].x):.1*Math.abs(t[1].y-t[0].y);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),o=new SuperMapAlgoPlot.Point(l.x-e,l.y-e),i=new SuperMapAlgoPlot.Point(l.x+e,l.y-3*e),n={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,[o,i],n,!0);var a=new SuperMapAlgoPlot.Point(l.x-e,l.y+e),r=new SuperMapAlgoPlot.Point(l.x-3*e,l.y+3*e);this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,[a,r],n,!0);var s=new SuperMapAlgoPlot.Point(l.x+e,l.y+e),p=new SuperMapAlgoPlot.Point(l.x+3*e,l.y+3*e);this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,[s,p],n,!0),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol31401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31400=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),l=0;l=Math.abs(t[1].x-t[0].x)<Math.abs(t[1].y-t[0].y)?.1*Math.abs(t[1].x-t[0].x):.1*Math.abs(t[1].y-t[0].y);var o=new SuperMapAlgoPlot.Point(e.x-l,e.y-l),i=new SuperMapAlgoPlot.Point(e.x+l,e.y+l);this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,[o,i],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol31400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31304=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 l=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 1===l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.1),l.scaleValues.push(.02)),l}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,SuperMapAlgoPlot.AlgoSymbol31300),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[1]*e,i=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],.5*e),n=SuperMapAlgoPlot.PlottingUtil.linePnt(i,t[0],o),a=SuperMapAlgoPlot.PlottingUtil.linePnt(i,t[1],o),r=this.scaleValues[0]*e,s=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,t[1],t[0]),p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,t[0],t[1]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s.pntLeft,s.pntRight]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[p.pntLeft,p.pntRight]);var u=[],P=[];u.push(new SuperMapAlgoPlot.Point(t[0].x,t[0].y)),u.push(new SuperMapAlgoPlot.Point(n.x,n.y)),P.push(new SuperMapAlgoPlot.Point(a.x,a.y)),P.push(new SuperMapAlgoPlot.Point(t[1].x,t[1].y));for(var c=this.scaleValues[this.scaleValues.length-1]*e,g=SuperMapAlgoPlot.PlottingUtil.paraLine(u,c,!0),S=SuperMapAlgoPlot.PlottingUtil.paraLine(u,c,!1),h=SuperMapAlgoPlot.PlottingUtil.paraLine(P,c,!0),f=SuperMapAlgoPlot.PlottingUtil.paraLine(P,c,!1),y=[],A=[],M=0;M<g.length;M++)y.push(g[M]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y);for(var b=0;b<S.length;b++)A.push(S[b]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);for(var d=[],m=[],v=0;v<h.length;v++)d.push(h[v]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d);for(var O=0;O<f.length;O++)m.push(f[O]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,m);var U=n,L=a,w=SuperMapAlgoPlot.PlottingUtil.radian(U,L)*SuperMapAlgoPlot.PlottingUtil.RTOD,V=SuperMapAlgoPlot.PlottingUtil.distance(U,L);this.addText("慑阻",i,V,w),this.addScalePoint(s.pntRight,0),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol31304=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31303=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol31300),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0]*e,i=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],.5*e),n=SuperMapAlgoPlot.PlottingUtil.linePnt(i,t[0],o),a=SuperMapAlgoPlot.PlottingUtil.linePnt(i,t[1],o);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[t[0],n]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[a,t[1]]);var r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]),s=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,t[0],t[1]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[r.pntLeft,r.pntRight]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s.pntLeft,s.pntRight]);var p=[],u=[];p.push(t[0]),p.push(n),u.push(a),u.push(t[1]);for(var P=SuperMapAlgoPlot.PlottingUtil.paraLine(p,o,!0),c=SuperMapAlgoPlot.PlottingUtil.paraLine(p,o,!1),g=SuperMapAlgoPlot.PlottingUtil.paraLine(u,o,!0),S=SuperMapAlgoPlot.PlottingUtil.paraLine(u,o,!1),h=[],f=[],y=0;y<P.length;y++)h.push(P[y]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);for(var A=0;A<c.length;A++)f.push(c[A]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);for(var M=[],b=[],d=0;d<g.length;d++)M.push(g[d]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M);for(var m=0;m<S.length;m++)b.push(S[m]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b);var v=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],i,2*o,v),this.addScalePoint(r.pntRight,0),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol31303=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31302=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol31300),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=t[0],i=t[1],n=this.scaleValues[0]*e,a=SuperMapAlgoPlot.PlottingUtil.linePnt(o,i,.5*e),r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,t[0],t[1]),s=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,t[1],t[0]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[r.pntLeft,r.pntRight]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s.pntLeft,s.pntRight]);var p=SuperMapAlgoPlot.PlottingUtil.linePnt(a,o,n),u=SuperMapAlgoPlot.PlottingUtil.linePnt(a,i,n);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[t[0],p]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u,t[1]]);var P=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,2*n,P),this.addScalePoint(s.pntRight),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol31302=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31301=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol31300),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var o=this.scaleValues[0]*e,i=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,t[0],t[1]),n=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[i.pntLeft,i.pntRight]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[n.pntLeft,n.pntRight]);var a=[],r=3*o;a.push(t[0]),a.push(t[1]);for(var s=SuperMapAlgoPlot.PlottingUtil.paraLine(a,r,!0),p=SuperMapAlgoPlot.PlottingUtil.paraLine(a,r,!1),u=[],P=0;P<s.length;P++)u.push(s[P]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u);var c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,s[1],s[0]),g=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,s[0],s[1]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[c.pntLeft,c.pntRight]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[g.pntLeft,g.pntRight]);for(var S=[],h=0;h<p.length;h++)S.push(p[h]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S);var f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,p[1],p[0]),y=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,p[0],p[1]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[f.pntLeft,f.pntRight]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[y.pntLeft,y.pntRight]),this.addScalePoint(n.pntRight,0),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol31301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31300=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var o=this.scaleValues[0]*e,i=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,t[0],t[1]),n=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[i.pntLeft,i.pntRight]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[n.pntLeft,n.pntRight]),this.addScalePoint(n.pntRight,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);if(0===t){var n=l[0],a=e,r=SuperMapAlgoPlot.PlottingUtil.distance(a,n)/o;this.scaleValues[0]=r}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol31300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30102=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(1.570796),l.scaleValues.push(.069485),l.scaleValues.push(.15),l.scaleValues.push(.1),l.scaleValues.push(1.731025),l.scaleValues.push(2.076877)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o),this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var i=e*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI,a=e*this.scaleValues[2],r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==r.index){var s=r.index,p=r.pt,u=o[s],P=o[s+1],c=180*SuperMapAlgoPlot.PlottingUtil.radian(u,P)/Math.PI,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,a/2,a/2,c+n),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,a,a,c+n+180);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[g,S]);var h=180*SuperMapAlgoPlot.PlottingUtil.radian(p,g)/Math.PI,f=new SuperMapAlgoPlot.Point(-.2*a,.05*a),y=new SuperMapAlgoPlot.Point(-.2*a,-.05*a),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(g,f,h),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(g,y,h);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[g,A,M],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});var b=.5*a*this.scaleValues[5],d=.5*a*this.scaleValues[6],m=new SuperMapAlgoPlot.Point(0,-.9*(b-.25*d)),v=new SuperMapAlgoPlot.Point(0,.9*(b-.25*d)),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,m,h),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,v,h);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[O,U]);var L=new SuperMapAlgoPlot.Point(0,b),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,L,h),V=new SuperMapAlgoPlot.Point(.5*d,-.25*d),_=new SuperMapAlgoPlot.Point(-.5*d,-.25*d),T=new SuperMapAlgoPlot.Point(-.5*d,.25*d),x=new SuperMapAlgoPlot.Point(.25*d,.25*d),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,V,h),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,_,h),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,T,h),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,x,h);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[E,Y,j,C,E]);var I=new SuperMapAlgoPlot.Point(0,-b),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,I,h),R=new SuperMapAlgoPlot.Point(0,.25*d),N=new SuperMapAlgoPlot.Point(.5*d,0),D=new SuperMapAlgoPlot.Point(0,-.25*d),k=new SuperMapAlgoPlot.Point(-.5*d,0),z=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(B,R,h),F=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(B,N,h),G=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(B,D,h),K=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(B,k,h);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[z,F,G,K,z]),this.addScalePoint(p,0);var W=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,a,a,c+n);this.addScalePoint(W,1);var q=new SuperMapAlgoPlot.Point(0,-b),J=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,q,h);this.addScalePoint(J,2);var Z=new SuperMapAlgoPlot.Point(-.5*d,0),X=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,Z,h);this.addScalePoint(X,3),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);var n,a,r,s,p,u,P,c,g,S=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(S=SuperMapAlgoPlot.PlottingUtil.clearSamePts(S),0===t){for(var h=-1,f=0,y=new SuperMapAlgoPlot.Point(0,0),A=0;A<S.length-1;A++){var M=[];M.push(S[A]),M.push(S[A+1]);var b=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,S[A],S[A+1]);if(-1!==SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(b,M).index){var d=SuperMapAlgoPlot.PlottingUtil.distance(e,b);-1==h?(h=A,y=b,f=d):f>d&&(h=A,y=b,f=d)}}if(-1==h||h>S.length-1)return;n=0;for(var m=0;m<h;m++)n+=SuperMapAlgoPlot.PlottingUtil.distance(S[m],S[m+1]);if((n+=SuperMapAlgoPlot.PlottingUtil.distance(S[h],y))<0||n>o)return;var v=n/o;this.scaleValues[0]=v}else if(1===t){a=o*this.scaleValues[0];var O=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(S,a);if(-1===O.index)return;s=r=O.pt,p=S[O.index],u=S[O.index+1],P=SuperMapAlgoPlot.PlottingUtil.radian(p,u);var U=SuperMapAlgoPlot.PlottingUtil.radian(s,e)-P;this.scaleValues[1]=U;var L=(n=SuperMapAlgoPlot.PlottingUtil.distance(r,e))/o;this.scaleValues[2]=L}else if(2===t){if(a=o*this.scaleValues[0],c=180*this.scaleValues[1]/Math.PI,n=o*this.scaleValues[2],-1===(r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(S,a)).index)return;s=r.pt,p=S[r.index],u=S[r.index+1],P=180*SuperMapAlgoPlot.PlottingUtil.radian(p,u)/Math.PI,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,n,n,P+c-180);var w=SuperMapAlgoPlot.PlottingUtil.distance(e,g)/(.4*n);this.scaleValues[5]=w}else if(3===t){if(a=o*this.scaleValues[0],c=180*this.scaleValues[1]/Math.PI,n=o*this.scaleValues[2],-1===(r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(S,a)).index)return;s=r.pt,p=S[r.index],u=S[r.index+1],P=180*SuperMapAlgoPlot.PlottingUtil.radian(p,u)/Math.PI,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,n,n,P+c-180);var V=.4*n*this.scaleValues[5],_=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,V,V,P+c+90),T=2*SuperMapAlgoPlot.PlottingUtil.distance(_,e)/(.4*n);if(this.scaleValues[5]-.25*T<=0)return;this.scaleValues[6]=T}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30102=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30800=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.125),l.scaleValues.push(Math.PI/2)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t);var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);if(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e),this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.125),this.scaleValues.push(Math.PI/2)),3===this.scaleValues.length&&this.scaleValues.push(this.getSubSymbolScaleValue()),!(t.length<this.minEditPts)){for(var l=0,o=0;o<t.length-1;o++)l+=SuperMapAlgoPlot.PlottingUtil.distance(t[o],t[o+1]);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[1]=i,this.scaleValues[3]=i}var n=this.scaleValues[1],a=180*this.scaleValues[2]/Math.PI,r=l*this.scaleValues[0],s=l*this.scaleValues[3],p=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,r);if(-1!==p.index){var u=p.pt,P=e[p.index],c=e[p.index+1],g=SuperMapAlgoPlot.PlottingUtil.radian(P,c)*SuperMapAlgoPlot.PlottingUtil.RTOD,S=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,s,s,g+a);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[p.pt,S]);var h,f=SuperMapAlgoPlot.PlottingUtil.radian(u,S)*SuperMapAlgoPlot.PlottingUtil.RTOD,y=l*n;0<this.subSymbols.length&&(h=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,s,s,g+a+180),this.computeSubSymbol(this.subSymbols[0],h,.8*y,g+a-180),this.addScalePoint(SuperMapAlgoPlot.PlottingUtil.circlePoint(h,.5*y,.5*y,g+a+90),1)),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,s,s,f+30);var A=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,s,s,f+33),M=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt([S,h,A]);M=SuperMapAlgoPlot.PlottingUtil.clearSamePts(M);var b=SuperMapAlgoPlot.PlottingUtil.polylineDistance(M),d=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.9*b,M);if(-1!==d.index){this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M.slice(0,d.index));var m=SuperMapAlgoPlot.PlottingUtil.radian(S,h)*SuperMapAlgoPlot.PlottingUtil.RTOD,v=new SuperMapAlgoPlot.Point(-.2*s,.05*s),O=new SuperMapAlgoPlot.Point(-.2*s,-.05*s),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(h,v,m+17),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(h,O,m+17),w={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[h,U,L],w);var V=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,s,s,f+330),_=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,s,s,f+327),T=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt([S,V,_]);T=SuperMapAlgoPlot.PlottingUtil.clearSamePts(T),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T.slice(0,d.index));var x=SuperMapAlgoPlot.PlottingUtil.radian(S,V)*SuperMapAlgoPlot.PlottingUtil.RTOD,E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(V,v,x-17),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(V,O,x-17);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[V,E,Y],w),this.addScalePoint(u,0),this.addScalePoint(S,2),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);var n,a,r,s,p=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(p=SuperMapAlgoPlot.PlottingUtil.clearSamePts(p),0===t){for(var u=[],P=0;P<p.length;P++)u.push(new SuperMapAlgoPlot.Point(p[P].x,p[P].y));for(var c=-1,g=0,S=new SuperMapAlgoPlot.Point(0,0),h=0;h<u.length-1;h++){var f=[];f.push(u[h]),f.push(u[h+1]);var y=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,u[h],u[h+1]);if(-1!==SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(y,f).index){var A=SuperMapAlgoPlot.PlottingUtil.distance(e,y);-1==c?(c=h,S=y,g=A):g>A&&(c=h,S=y,g=A)}}if(-1==c||c>u.length-1)return;for(var M=0,b=0;b<c;b++)M+=SuperMapAlgoPlot.PlottingUtil.distance(p[b],p[b+1]);if((M+=SuperMapAlgoPlot.PlottingUtil.distance(p[c],S))<0||M>o)return;var d=M/o;this.scaleValues[0]=d}else if(1===t){var m=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(p,o*this.scaleValues[0]);if(-1===m.index)return;n=m.pt,a=p[m.index],r=p[m.index+1],s=SuperMapAlgoPlot.PlottingUtil.radian(a,r)*SuperMapAlgoPlot.PlottingUtil.RTOD;var v=o*this.scaleValues[3],O=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,v,v,s+this.scaleValues[2]*SuperMapAlgoPlot.PlottingUtil.RTOD+180),U=SuperMapAlgoPlot.PlottingUtil.distance(O,e)/o*2;this.scaleValues[1]=U}else if(2===t){var L=o*this.scaleValues[0],w=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(p,L);if(-1===w.index)return;n=w.pt,a=p[w.index],r=p[w.index+1],s=SuperMapAlgoPlot.PlottingUtil.radian(a,r);var V=SuperMapAlgoPlot.PlottingUtil.radian(n,e)-s;this.scaleValues[2]=V}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30201=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol30200),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(1e3),this.scaleValues.push(.2),this.scaleValues.push(.1)),3===this.scaleValues.length&&this.scaleValues.push(.5*this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),0==this.scaleValues.length?(this.scaleValues.push(1e3),this.scaleValues.push(.2),this.scaleValues.push(.1),this.scaleValues.push(.05)):3==this.scaleValues.length&&(this.scaleValues[3]=.5*this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[1]=2*this.getSubSymbolScaleValue(),this.scaleValues[3]=.5*this.getSubSymbolScaleValue());var o=e*this.scaleValues[1],i=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,o);if(-1!==i.index){var n=t[0],a=i.pt,r=SuperMapAlgoPlot.PlottingUtil.radian(n,a)*SuperMapAlgoPlot.PlottingUtil.RTOD,s=new SuperMapAlgoPlot.Point(0,.1*o),p=new SuperMapAlgoPlot.Point(.4*o,.1*o),u=new SuperMapAlgoPlot.Point(.4*o,-.1*o),P=new SuperMapAlgoPlot.Point(0,-.1*o),c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,s,r),g=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,p,r),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,u,r),h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,P,r),f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[c,g,S,h,c],f);var y=new SuperMapAlgoPlot.Point(.3*o,.1*o),A=new SuperMapAlgoPlot.Point(.3*o,-.1*o),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,y,r),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,A,r);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[M,b],f);var d=new SuperMapAlgoPlot.Point(.4*o,0),m=new SuperMapAlgoPlot.Point(.8*o,0),v=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,d,r),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,m,r);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[v,O],f);var U=new SuperMapAlgoPlot.Point(.7*o,.025*o),L=new SuperMapAlgoPlot.Point(.7*o,-.025*o),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,U,r),V=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,L,r);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[O,w,V],f);var _=[];_.push(i.pt);for(var T=i.index+1;T<l.length;T++)_.push(l[T]);this.addArrow(_,this.scaleValues[3]),this.components[this.components.length-2].style.strokeDashstyle="dash",this.components[this.components.length-2].style.lineSymbolID=1,this.components[this.components.length-2].style.lineTypeLimit=!0;var x=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,o,o,r+90);this.addScalePoint(x,0),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30200=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 l=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===l.scaleValues.length&&(l.scaleValues.push(1e3),l.scaleValues.push(.2),l.scaleValues.push(.1),l.scaleValues.push(.05)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length?(this.scaleValues.push(1e3),this.scaleValues.push(.2),this.scaleValues.push(.1),this.scaleValues.push(.05)):3==this.scaleValues.length&&(this.scaleValues[3]=.5*this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[1]=2*this.getSubSymbolScaleValue(),this.scaleValues[3]=.5*this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=e*this.scaleValues[1],i=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,o);if(-1!==i.index){var n=t[0],a=i.pt,r=SuperMapAlgoPlot.PlottingUtil.radian(n,a)*SuperMapAlgoPlot.PlottingUtil.RTOD,s=new SuperMapAlgoPlot.Point(0,.1*o),p=new SuperMapAlgoPlot.Point(.4*o,.1*o),u=new SuperMapAlgoPlot.Point(.4*o,-.1*o),P=new SuperMapAlgoPlot.Point(0,-.1*o),c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,s,r),g=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,p,r),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,u,r),h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,P,r),f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[c,g,S,h,c],f);var y=.1*o,A=new SuperMapAlgoPlot.Point(.3*o,0),M=SuperMapAlgoPlot.PlottingUtil.circlePoint(A,y,y,135),b=SuperMapAlgoPlot.PlottingUtil.circlePoint(A,y,y,225),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,A,r),m=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,M,r),v=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,b,r);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[m,d,v],f);var O=new SuperMapAlgoPlot.Point(.9*o,0),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,O,r);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[d,U],f);var L=new SuperMapAlgoPlot.Point(.8*o,.025*o),w=new SuperMapAlgoPlot.Point(.8*o,-.025*o),V=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,L,r),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,w,r);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[U,V,_],f);var T=[];T.push(i.pt);for(var x=i.index+1;x<l.length;x++)T.push(l[x]);this.addArrow(T,this.scaleValues[3]),this.components[this.components.length-2].style.strokeDashstyle="dash",this.components[this.components.length-2].style.lineSymbolID=1,this.components[this.components.length-2].style.lineTypeLimit=!0;var E=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,o,o,r+90);this.addScalePoint(E,0),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);var n=l[0],a=e,r=SuperMapAlgoPlot.PlottingUtil.distance(a,n);if(0===t){var s=r/o;if(.06>s||.3<s)return;this.scaleValues[1]=s}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30100=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.069485),l.scaleValues.push(.15),l.scaleValues.push(.1),l.scaleValues.push(1.731025),l.scaleValues.push(2.076877)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o),this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var i=e*this.scaleValues[0],n=this.scaleValues[1]*SuperMapAlgoPlot.PlottingUtil.RTOD,a=e*this.scaleValues[2],r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==r.index){var s=r.pt,p=r.index,u=s,P=o[p],c=o[p+1],g=SuperMapAlgoPlot.PlottingUtil.radian(P,c)*SuperMapAlgoPlot.PlottingUtil.RTOD,S=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,1.5*a,1.5*a,g+n);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,S]);var h=SuperMapAlgoPlot.PlottingUtil.radian(u,S)*SuperMapAlgoPlot.PlottingUtil.RTOD,f=new SuperMapAlgoPlot.Point(-.2*a,.05*a),y=new SuperMapAlgoPlot.Point(-.2*a,-.05*a),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,f,h),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,y,h);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[S,A,M],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});var b=new SuperMapAlgoPlot.Point(.6*a,0),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u,b,h),m=.4*a*this.scaleValues[5],v=.4*a*this.scaleValues[6],O=new SuperMapAlgoPlot.Point(0,-.9*(m-.25*v)),U=new SuperMapAlgoPlot.Point(0,.9*(m-.25*v)),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,O,h),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,U,h);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[L,w]);var V=new SuperMapAlgoPlot.Point(0,m),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,V,h),T=new SuperMapAlgoPlot.Point(0,.25*v),x=new SuperMapAlgoPlot.Point(.5*v,0),E=new SuperMapAlgoPlot.Point(0,-.25*v),Y=new SuperMapAlgoPlot.Point(-.5*v,0),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,T,h),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,x,h),I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,E,h),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,Y,h);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[j,C,I,B,j]);var R=new SuperMapAlgoPlot.Point(0,-m),N=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,R,h),D=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(N,T,h),k=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(N,x,h),z=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(N,E,h),F=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(N,Y,h);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[D,k,z,F,D]),this.addScalePoint(s,0),this.addScalePoint(S,1);var G=new SuperMapAlgoPlot.Point(0,-m),K=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,G,h);this.addScalePoint(K,2),this.addScalePoint(B,3),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);var n,a,r,s,p,u,P,c,g,S=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(S=SuperMapAlgoPlot.PlottingUtil.clearSamePts(S),0===t){for(var h=[],f=0;f<S.length;f++)h.push(new SuperMapAlgoPlot.Point(S[f].x,S[f].y));for(var y=-1,A=0,M=new SuperMapAlgoPlot.Point(0,0),b=0;b<h.length-1;b++){var d=[];d.push(h[b]),d.push(h[b+1]);var m=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,h[b],h[b+1]);if(-1!==SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(m,d).index){var v=SuperMapAlgoPlot.PlottingUtil.distance(e,m);-1==y?(y=b,M=m,A=v):A>v&&(y=b,M=m,A=v)}}if(-1==y||y>h.length-1)return;n=0;for(var O=0;O<y;O++)n+=SuperMapAlgoPlot.PlottingUtil.distance(S[O],S[O+1]);if((n+=SuperMapAlgoPlot.PlottingUtil.distance(S[y],M))<0||n>o)return;var U=n/o;this.scaleValues[0]=U}else if(1===t){a=o*this.scaleValues[0];var L=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(S,a);if(-1===L.index)return;r=L.pt,s=S[L.index],p=S[L.index+1],u=SuperMapAlgoPlot.PlottingUtil.radian(s,p);var w=(g=SuperMapAlgoPlot.PlottingUtil.radian(r,e))-u;this.scaleValues[1]=w;var V=(n=SuperMapAlgoPlot.PlottingUtil.distance(r,e))/o/1.5;this.scaleValues[2]=V}else if(2===t){if(a=o*this.scaleValues[0],P=180*this.scaleValues[1]/Math.PI,n=o*this.scaleValues[2],-1===(r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(S,a)).index)return;c=r.pt,s=S[r.index],p=S[r.index+1],u=180*SuperMapAlgoPlot.PlottingUtil.radian(s,p)/Math.PI;var _=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.4*n,.4*n,u+P),T=SuperMapAlgoPlot.PlottingUtil.distance(e,_)/(.4*n);this.scaleValues[5]=T}else if(3===t){if(a=o*this.scaleValues[0],P=180*this.scaleValues[1]/Math.PI,n=o*this.scaleValues[2],-1===(r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(S,a)).index)return;c=r.pt,s=S[r.index],p=S[r.index+1],g=(u=180*SuperMapAlgoPlot.PlottingUtil.radian(s,p)/Math.PI)+P;var x=new SuperMapAlgoPlot.Point(.6*n,0),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,x,g),Y=.4*n*this.scaleValues[5],j=new SuperMapAlgoPlot.Point(0,Y),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(E,j,g),I=2*SuperMapAlgoPlot.PlottingUtil.distance(C,e)/(.4*n);this.scaleValues[6]=I}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30002=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol30001),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getSubSymbolScaleValue();this.scaleValues[2]=o,this.scaleValues[4]=o}var i=l*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI,a=l*this.scaleValues[2],r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,i);if(-1!==r.index){var s=r.pt,p=new SuperMapAlgoPlot.Point(e[r.index].x,e[r.index].y),u=new SuperMapAlgoPlot.Point(e[r.index+1].x,e[r.index+1].y),P=180*SuperMapAlgoPlot.PlottingUtil.radian(p,u)/Math.PI,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,a,a,P+n);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,c]);var g=180*SuperMapAlgoPlot.PlottingUtil.radian(s,c)/Math.PI,S=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.2*a,.2*a,g-157.5),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.2*a,.2*a,g+157.5);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[c,S,h],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});for(var f=4.5*(l*this.scaleValues[4])*Math.sin(Math.PI/8),y=this.getLeftSubSymbolPts(f),A=e[0].clone(),M=-1,b=null,d=1;d<e.length;d++)if(SuperMapAlgoPlot.PlottingUtil.distance(A,e[d])>.5*f){M=d-1,b=SuperMapAlgoPlot.PlottingUtil.linePnt(A,e[d],.5*f);break}-1===M&&(M=e.length-1,b=e[e.length-1]);var m=null;if(null!==b){for(var v=180*SuperMapAlgoPlot.PlottingUtil.radian(A,b)/Math.PI,O=[],U=0;U<y.length;U++)O.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(A,y[U],v));m=O[3].clone(),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,O)}for(var L=this.getRightSubSymbolPts(f),w=e[e.length-1].clone(),V=-1,_=null,T=e.length-2;T>=0;T--)if(SuperMapAlgoPlot.PlottingUtil.distance(w,e[T])>.5*f){V=T,_=SuperMapAlgoPlot.PlottingUtil.linePnt(w,e[T],.5*f);break}if(-1===V&&(V=0,_=e[0]),null!==_){for(var x=180*SuperMapAlgoPlot.PlottingUtil.radian(w,_)/Math.PI,E=[],Y=0;Y<L.length;Y++)E.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,L[Y],x));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,E)}if(M<=V){var j=[];j.push(b);for(var C=M+1;C<=V;C++)j.push(e[C]);j.push(_),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,j)}this.addScalePoint(s),this.addScalePoint(c),null!==m&&this.addScalePoint(m),this.finish()}}}},{key:"getRightSubSymbolPts",value:function(t){var e=.25*t,l=[];return l.push(new SuperMapAlgoPlot.Point(0,2*e)),l.push(new SuperMapAlgoPlot.Point(2*e,2*e)),l.push(new SuperMapAlgoPlot.Point(2*e,-e)),l.push(new SuperMapAlgoPlot.Point(0,-2*e)),l.push(new SuperMapAlgoPlot.Point(0,2*e)),l}}]),e}();SuperMapAlgoPlot.AlgoSymbol30002=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30001=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.05)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getSubSymbolScaleValue();(o>.2||o<=0)&&(o=.2),this.scaleValues[2]=o,this.scaleValues[4]=o}var i=l*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI,a=l*this.scaleValues[2],r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,i);if(-1!==r.index){var s=r.pt,p=new SuperMapAlgoPlot.Point(e[r.index].x,e[r.index].y),u=new SuperMapAlgoPlot.Point(e[r.index+1].x,e[r.index+1].y),P=180*SuperMapAlgoPlot.PlottingUtil.radian(p,u)/Math.PI,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,a,a,P+n);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,c]);var g=180*SuperMapAlgoPlot.PlottingUtil.radian(s,c)/Math.PI,S=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.2*a,.2*a,g-157.5),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.2*a,.2*a,g+157.5);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[c,S,h],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});for(var f=4.5*(l*this.scaleValues[4])*Math.sin(Math.PI/8),y=this.getLeftSubSymbolPts(f),A=e[0].clone(),M=-1,b=null,d=1;d<e.length;d++)if(SuperMapAlgoPlot.PlottingUtil.distance(A,e[d])>.5*f){M=d-1,b=SuperMapAlgoPlot.PlottingUtil.linePnt(A,e[d],.5*f);break}-1===M&&(M=e.length-1,b=e[e.length-1]);var m=null;if(null!==b){for(var v=180*SuperMapAlgoPlot.PlottingUtil.radian(A,b)/Math.PI,O=[],U=0;U<y.length;U++)O.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(A,y[U],v));m=O[3].clone(),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,O)}for(var L=this.getRightSubSymbolPts(f),w=e[e.length-1].clone(),V=-1,_=null,T=e.length-2;T>=0;T--)if(SuperMapAlgoPlot.PlottingUtil.distance(w,e[T])>.5*f){V=T,_=SuperMapAlgoPlot.PlottingUtil.linePnt(w,e[T],.5*f);break}if(-1===V&&(V=0,_=e[0]),null!==_){for(var x=180*SuperMapAlgoPlot.PlottingUtil.radian(w,_)/Math.PI,E=[],Y=0;Y<L.length;Y++)E.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,L[Y],x));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,E)}if(M<=V){var j=[];j.push(b);for(var C=M+1;C<=V;C++)j.push(e[C]);j.push(_),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,j)}this.addScalePoint(s),this.addScalePoint(c),null!==m&&this.addScalePoint(m),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){for(var a=-1,r=0,s=new SuperMapAlgoPlot.Point(0,0),p=0;p<o.length-1;p++){var u=[];u.push(o[p]),u.push(o[p+1]);var P=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,o[p],o[p+1]);if(-1!==SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(P,u).index){var c=SuperMapAlgoPlot.PlottingUtil.distance(e,P);isNaN(c)||(-1==a?(a=p,s=P,r=c):r>c&&(a=p,s=P,r=c))}}if(-1===a||a>o.length-1)return;i=0;for(var g=0;g<a;g++)i+=SuperMapAlgoPlot.PlottingUtil.distance(o[g],o[g+1]);if((i+=SuperMapAlgoPlot.PlottingUtil.distance(o[a],s))<0||i>n)return;var S=i/n;this.scaleValues[0]=S}else if(1===t){var h=n*this.scaleValues[0],f=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,h);if(-1===f.index)return;var y=f.pt,A=o[f.index],M=o[f.index+1],b=SuperMapAlgoPlot.PlottingUtil.radian(A,M),d=SuperMapAlgoPlot.PlottingUtil.radian(y,e)-b;this.scaleValues[1]=d;var m=(i=SuperMapAlgoPlot.PlottingUtil.distance(y,e))/n;this.scaleValues[2]=m}else if(2===t){var v=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/n;v>.35&&(v=.35),this.scaleValues[4]=v}}}},{key:"getLeftSubSymbolPts",value:function(t){var e=.25*t,l=[],o=new SuperMapAlgoPlot.Point(0,0),i=new SuperMapAlgoPlot.Point(e,-2*e),n=new SuperMapAlgoPlot.Point(2*e,0),a=new SuperMapAlgoPlot.Point(e,2*e);return l.push(o),l.push(i),l.push(n),l.push(a),l.push(o),l}},{key:"getRightSubSymbolPts",value:function(t){return this.getLeftSubSymbolPts(t)}}]),e}();SuperMapAlgoPlot.AlgoSymbol30001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30000=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.05)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o);var i=e*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI;if(!this.isEdit){var a=this.getSubSymbolScaleValue();this.scaleValues[2]=a}var r=e*this.scaleValues[2],s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==s.index){var p=s.pt,u=new SuperMapAlgoPlot.Point(o[s.index].x,o[s.index].y),P=new SuperMapAlgoPlot.Point(o[s.index+1].x,o[s.index+1].y),c=180*SuperMapAlgoPlot.PlottingUtil.radian(u,P)/Math.PI,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,r,r,c+n);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[p,g]);var S=180*SuperMapAlgoPlot.PlottingUtil.radian(p,g)/Math.PI,h=new SuperMapAlgoPlot.Point(-.2*r,.05*r),f=new SuperMapAlgoPlot.Point(-.2*r,-.05*r),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(g,h,S),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(g,f,S);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[g,y,A],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0}),this.addScalePoint(p,0),this.addScalePoint(g,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){for(var a=-1,r=0,s=new SuperMapAlgoPlot.Point(0,0),p=0;p<o.length-1;p++){var u=[];u.push(o[p]),u.push(o[p+1]);var P=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,o[p],o[p+1]);if(-1!==SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(P,u).index){var c=SuperMapAlgoPlot.PlottingUtil.distance(e,P);-1==a?(a=p,s=P,r=c):r>c&&(a=p,s=P,r=c)}}if(-1==a||a>o.length-1)return;i=0;for(var g=0;g<a;g++)i+=SuperMapAlgoPlot.PlottingUtil.distance(o[g],o[g+1]);if((i+=SuperMapAlgoPlot.PlottingUtil.distance(o[a],s))<0||i>n)return;var S=i/n;this.scaleValues[0]=S}else if(1===t){var h=n*this.scaleValues[0],f=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,h);if(-1===f.index)return;var y=f.pt,A=o[f.index],M=o[f.index+1],b=SuperMapAlgoPlot.PlottingUtil.radian(A,M),d=SuperMapAlgoPlot.PlottingUtil.radian(y,e)-b;this.scaleValues[1]=d;var m=(i=SuperMapAlgoPlot.PlottingUtil.distance(y,e))/n;this.scaleValues[2]=m}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29903=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.05,l.scaleValues[2]=.02),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.05,this.scaleValues[2]=.02):1===this.scaleValues.length?(this.scaleValues[1]=this.getSubSymbolScaleValue(),this.scaleValues[2]=.5*this.getSubSymbolScaleValue()):2===this.scaleValues.length&&(this.scaleValues[2]=.5*this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=this.getSubSymbolScaleValue(),this.scaleValues[2]=.5*this.getSubSymbolScaleValue()}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,r=SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,r,a-180);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var P=i.endIndex+1;P<=e.length-1;P++)p.push(e[P]);if(this.addArrow(p,this.scaleValues[2]),p.length>=2){var c=l*this.scaleValues[1],g=.3*c,S=.8*c,h=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l-S,e),f=1.1*c,y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l-f,e),A=180*SuperMapAlgoPlot.PlottingUtil.radian(h.pts,y.pts)/Math.PI,M=SuperMapAlgoPlot.PlottingUtil.circlePoint(h.pts,g,g,A+90),b=SuperMapAlgoPlot.PlottingUtil.circlePoint(h.pts,g,g,A+270),d=SuperMapAlgoPlot.PlottingUtil.circlePoint(y.pts,g,g,A+90),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(y.pts,g,g,A+270),v=[];v.push(M),v.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v),(v=[]).push(d),v.push(m),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v)}}var O=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,e),U=SuperMapAlgoPlot.PlottingUtil.circlePoint(O.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a+90);this.addScalePoint(U,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.4?a:.4}}}]),e}();SuperMapAlgoPlot.AlgoSymbol29903=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29800=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 l=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 10!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.2),l.scaleValues.push(.2),l.scaleValues.push(.4),l.scaleValues.push(.4),l.scaleValues.push(.1),l.scaleValues.push(.2),l.scaleValues.push(.1),l.scaleValues.push(.2),l.scaleValues.push(1),l.scaleValues.push(1)),l}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,SuperMapAlgoPlot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);SuperMapAlgoPlot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var o,i,n=e*this.scaleValues[4],a=e*this.scaleValues[5],r=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[0]),s=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],t[0],r+a);o=0===this.scaleValues[8]?SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,t[1],s).pntRight:SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,t[1],s).pntLeft;var p=e*this.scaleValues[6],u=e*this.scaleValues[7],P=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],r+u);i=0===this.scaleValues[9]?SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(p,t[0],P).pntLeft:SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(p,t[0],P).pntRight;var c=[];c.push(new SuperMapAlgoPlot.Point(o.x,o.y)),c.push(new SuperMapAlgoPlot.Point(t[0].x,t[0].y)),c.push(new SuperMapAlgoPlot.Point(t[1].x,t[1].y)),c.push(new SuperMapAlgoPlot.Point(i.x,i.y));var g=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(c);g=SuperMapAlgoPlot.PlottingUtil.clearSamePts(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g),this.addScalePoint(o,3),this.addScalePoint(i,4),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,l[0],l[1]);if(t<=2&&SuperMapAlgoPlot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments),3===t){var n=SuperMapAlgoPlot.PlottingUtil.distance(e,i)/o,a=SuperMapAlgoPlot.PlottingUtil.distance(i,l[0])/o;this.scaleValues[4]=n,this.scaleValues[5]=a,SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[0],l[1],e)?this.scaleValues[8]=1:this.scaleValues[8]=0}if(4===t){var r=SuperMapAlgoPlot.PlottingUtil.distance(e,i)/o,s=SuperMapAlgoPlot.PlottingUtil.distance(i,l[1])/o;this.scaleValues[6]=r,this.scaleValues[7]=s,SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[0],l[1],e)?this.scaleValues[9]=1:this.scaleValues[9]=0}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol29800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29401=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 l=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===l.scaleValues.length&&l.scaleValues.push(.1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0]*e,i=SuperMapAlgoPlot.PlottingUtil.paraLine(t,o,!0),n=SuperMapAlgoPlot.PlottingUtil.paraLine(t,o,!1);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);var a=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),r=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),s=180*SuperMapAlgoPlot.PlottingUtil.radian(a,r)/Math.PI,p=a,u=i[0],P=[];P.push(p),P.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,P);var c=new SuperMapAlgoPlot.Point(0,.8*o),g=new SuperMapAlgoPlot.Point(0,-.8*o),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,c,s),h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,g,s);(P=[]).push(S),P.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var f=new SuperMapAlgoPlot.Point(-.3*o,.4*o),y=new SuperMapAlgoPlot.Point(-.3*o,-.4*o),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,f,s),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,y,s);(P=[]).push(A),P.push(M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var b=new SuperMapAlgoPlot.Point(.3*o,.4*o),d=new SuperMapAlgoPlot.Point(.3*o,-.4*o),m=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,b,s),v=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,d,s);(P=[]).push(m),P.push(v),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var O=new SuperMapAlgoPlot.Point((a.x+r.x)/2,(a.y+r.y)/2),U=new SuperMapAlgoPlot.Point((i[0].x+i[i.length-1].x)/2,(i[i.length-1].y+i[0].y)/2);(P=[]).push(O),P.push(U),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,P);var L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,c,s),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,g,s);(P=[]).push(L),P.push(w),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var V=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,f,s),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,y,s);(P=[]).push(V),P.push(_),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var T=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,b,s),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,d,s);(P=[]).push(T),P.push(x),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var E=r,Y=i[i.length-1];(P=[]).push(E),P.push(Y),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,P);var j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(E,c,s),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(E,g,s);(P=[]).push(j),P.push(C),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(E,f,s),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(E,y,s);(P=[]).push(I),P.push(B),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var R=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(E,b,s),N=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(E,d,s);(P=[]).push(R),P.push(N),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P),this.addScalePoint(i[0],0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);var n=new SuperMapAlgoPlot.Point(l[0].x,l[0].y),a=new SuperMapAlgoPlot.Point(e.x,e.y),r=SuperMapAlgoPlot.PlottingUtil.distance(n,a)/o;this.scaleValues[0]=r}}}]),e}();SuperMapAlgoPlot.AlgoSymbol29401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29103=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol29100),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=[];o=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);for(var i=0;i<4;i++){var n=i*(o.length-1)/4,a=new SuperMapAlgoPlot.Point(o[n].x,o[n].y),r=new SuperMapAlgoPlot.Point(o[n+1].x,o[n+1].y),s=new SuperMapAlgoPlot.Point((a.x+r.x)/2,(a.y+r.y)/2),p=180*SuperMapAlgoPlot.PlottingUtil.radian(s,r)/Math.PI,u=e*this.scaleValues[0]/2,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,u,u,p),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,4*u,4*u,p+270),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,u,u,p+180);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[P,c,g],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0})}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol29103=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29101=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol29100),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.25*this.getSubSymbolScaleValue());var l=[];l=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);for(var o=0;o<4;o++){var i=o*(l.length-1)/4,n=new SuperMapAlgoPlot.Point(l[i].x,l[i].y),a=new SuperMapAlgoPlot.Point(l[i+1].x,l[i+1].y),r=new SuperMapAlgoPlot.Point((n.x+a.x)/2,(n.y+a.y)/2),s=SuperMapAlgoPlot.PlottingUtil.radian(r,a)*SuperMapAlgoPlot.PlottingUtil.RTOD,p=this.scaleValues[0]*e/2,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,p,p,s),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,4*p,4*p,s+270),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,p,p,s+180);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u,P,c])}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol29101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29100=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.25*this.getSubSymbolScaleValue());var l=[];l=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);for(var o=0;o<4;o++){var i=Math.floor(o*l.length/4),n=new SuperMapAlgoPlot.Point(l[i].x,l[i].y),a=new SuperMapAlgoPlot.Point(l[i+1].x,l[i+1].y),r=new SuperMapAlgoPlot.Point((n.x+a.x)/2,(n.y+a.y)/2),s=SuperMapAlgoPlot.PlottingUtil.radian(a,r)*SuperMapAlgoPlot.PlottingUtil.RTOD,p=this.scaleValues[0]*e/2,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,p,p,s),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,4*p,4*p,s+270),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,p,p,s+180);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u,P,c],{lineTypeLimit:!0,surroundLineLimit:!0})}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol29100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29003=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.02),this.scaleValues.push(0)),this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);for(var l,o,i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),n=this.scaleValues[0],a=this.scaleValues[1],r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),s=n*r,p=.083*r,u=0,P=.01*r,c=0,g=0;g<=i;g+=p){if(1==c||11==c||6==c){u=g+P;var S=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(u,e);if(!S.bfind)return;l=S.index,o=S.pts;var h=[],f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,e[l],o);0==a?h.push(f.pntLeft):h.push(f.pntRight),1==c&&(this.scalePoints=[],this.addScalePoint(h[0])),h.push(o);var y=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,h[0],h[1]),A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,h[1],h[0]),M=[];M.push(y.pntLeft),M.push(y.pntRight),M.push(A.pntLeft),M.push(A.pntRight),M.push(y.pntLeft.clone());this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,{SurroundLineLimit:!0,lineTypeLimit:!0,fillLimit:!0,fill:!0})}c++}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;if(0==t){var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),i=this.scaleValues[0],n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),a=i*n,r=.01*n,s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,o);if(!s.bfind)return;var p=s.pts,u=s.index,P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,o[u],p).pntLeft,c=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,P,p),g=SuperMapAlgoPlot.PlottingUtil.distance(c,p),S=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(c,p,e);this.scaleValues[1]=S?1:0,this.scaleValues[0]=g/n}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol29003=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29002=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol29001),o(e,[{key:"calculateParts",value:function(){(function t(e,l,o){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,l);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,l,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"calculateParts",this).call(this)}}]),e}();SuperMapAlgoPlot.AlgoSymbol29002=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29001=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t.length,l=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),o=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,i=.3*l,n=t[1].clone(),a=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],t[0],2*l);this.subSymbols.length>1&&(this.computeSubSymbol(this.subSymbols[0],n,i,o),this.computeSubSymbol(this.subSymbols[1],a,i,o));var r,s=[];2==e?(r=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t),s.push.apply(s,r)):3==e&&(r=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,t),s=s.concat(r));var p,u=new SuperMapAlgoPlot.Point(.8*l,.1*l),P=new SuperMapAlgoPlot.Point(1.2*l,.1*l),c=new SuperMapAlgoPlot.Point(1.2*l,.1*-l),g=new SuperMapAlgoPlot.Point(.9*l,.1*-l),S=[];S.push(u),S.push(P),S.push(c),S.push(g);var h=[],f=0;for(f=0;f<4;f++)p=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[0],S[f],o),h.push(p);var y=new SuperMapAlgoPlot.Point(-.8*l,.1*l),A=new SuperMapAlgoPlot.Point(-1.2*l,.1*l),M=new SuperMapAlgoPlot.Point(-1.1*l,.1*-l),b=new SuperMapAlgoPlot.Point(-.8*l,.1*-l);(S=[]).push(y),S.push(A),S.push(M),S.push(b);var d=[];for(f=0;f<4;f++)p=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[0],S[f],o),d.push(p);for(var m,v=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],t[0],3*l),O=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],2*l),U=[],L=0;L<s.length-1;L++){var w=SuperMapAlgoPlot.PlottingUtil.intersectLines(s[L],s[L+1],v,O);w.isIntersectLines&&(m=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(w.intersectPoint,s)).isOnPolyLine&&U.push(w.intersectPoint)}if(!(0>=U.length)&&(m=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(U[0],s)).isOnPolyLine){var V=[];for(f=m.index+1;f<s.length;f++)V.push(s[f]);for(f=0;f<=m.index;f++)V.push(s[f]);var _=[],T=[];SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(h,U[0])?(_.push.apply(_,h),T.push.apply(T,d)):(_.push.apply(_,d),T.push.apply(T,h));var x=[],E=[];for(m=-1,f=0;f<V.length;f++)if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(_,V[f])){if(SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(T,V[f])){m=f;break}x.push(V[f])}if(-1!=m)for(f=m;f<V.length;f++)if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(T,V[f])){if(SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(_,V[f]))break;E.push(V[f])}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,x),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,E),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol29001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29000=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=t.length,o=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),i=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,n=[];2==l?(e=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t),n.push.apply(n,e)):3==l&&(e=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,t),n=n.concat(e));var a,r=new SuperMapAlgoPlot.Point(.8*o,.1*o),s=new SuperMapAlgoPlot.Point(1.2*o,.1*o),p=new SuperMapAlgoPlot.Point(1.2*o,.1*-o),u=new SuperMapAlgoPlot.Point(.9*o,.1*-o),P=[];P.push(r),P.push(s),P.push(p),P.push(u);var c=[],g=0;for(g=0;g<4;g++)a=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[0],P[g],i),c.push(a);var S=new SuperMapAlgoPlot.Point(-.8*o,.1*o),h=new SuperMapAlgoPlot.Point(-1.2*o,.1*o),f=new SuperMapAlgoPlot.Point(-1.1*o,.1*-o),y=new SuperMapAlgoPlot.Point(-.8*o,.1*-o);(P=[]).push(S),P.push(h),P.push(f),P.push(y);var A=[];for(g=0;g<4;g++)a=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[0],P[g],i),A.push(a);var M,b=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],t[0],3*o),d=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],2*o),m=[];for(g=0;g<n.length-1;g++){var v=SuperMapAlgoPlot.PlottingUtil.intersectLines(n[g],n[g+1],b,d);v.isIntersectLines&&(M=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(v.intersectPoint,n)).isOnPolyLine&&m.push(v.intersectPoint)}if(!(0>=m.length)&&(M=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(m[0],n)).isOnPolyLine){var O=[];for(g=M.index+1;g<n.length;g++)O.push(n[g]);for(g=0;g<=M.index;g++)O.push(n[g]);var U=[],L=[];SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(c,m[0])?(U.push.apply(U,c),L.push.apply(L,A)):(U.push.apply(U,A),L.push.apply(L,c));var w=[],V=[];for(M=-1,g=0;g<O.length;g++)if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(U,O[g])){if(SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(L,O[g])){M=g;break}w.push(O[g])}if(-1!==M)for(g=M;g<O.length;g++)if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(L,O[g])){if(SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(U,O[g]))break;V.push(O[g])}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,V),this.addLine(w),this.addLine(V),this.finish()}}}},{key:"addLine",value:function(t){for(var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=0;l<t.length-2;l++){var o=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.02*e,t);if(-1!==o.index){var i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*e,t);if(-1!==i.index){var n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.92*e,t);if(-1!==n.index&&(l===o.index||l===o.index+1||l===n.index||l===n.index+1||l===i.index||l===i.index+1)){var a=SuperMapAlgoPlot.PlottingUtil.radian(t[l+1],t[l])*SuperMapAlgoPlot.PlottingUtil.RTOD,r=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[l+1],.02*e,.02*e,a+90);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[t[l+1],r])}}}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol29000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28900=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5)),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);var i=e[0],n=e[1],a=e[e.length-2],r=e[e.length-1],s=l*this.scaleValues[0]*.6,p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,n,i),u=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,a,r),P=p.pntLeft,c=u.pntRight,g=[];g.push(i),g.push(P);for(var S=new SuperMapAlgoPlot.Point((i.x+P.x)/2,(i.y+P.y)/2),h=SuperMapAlgoPlot.PlottingUtil.polylineDistance(g)/2,f=[],y=180*SuperMapAlgoPlot.PlottingUtil.radian(n,i)/Math.PI,A=270+y;A<=360+y;A+=3)f.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(S,h,h,A));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var M=[];M.push(r),M.push(c);var b=[];b.push(r),b.push(c);for(var d=new SuperMapAlgoPlot.Point((r.x+c.x)/2,(r.y+c.y)/2),m=SuperMapAlgoPlot.PlottingUtil.polylineDistance(b)/2,v=[],O=180*SuperMapAlgoPlot.PlottingUtil.radian(r,c)/Math.PI,U=90+O;U<=180+O;U+=3)v.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(d,m,m,U));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol28900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28400=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.087081),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.087081),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=2*i}var n=this.scaleValues[0],a=this.scaleValues[2],r=this.scaleValues[3],s=o*n,p=.5*SuperMapAlgoPlot.PlottingUtil.distance(t[0],l),u=new SuperMapAlgoPlot.Point(l.x+o*a-p,l.y+o*r);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],u,s,180),this.addScalePoint(u);var P=s,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,P,P,0);this.addScalePoint(c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n,a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),s=.5*SuperMapAlgoPlot.PlottingUtil.distance(l[0],a);if(0===t)i=(e.x+s-a.x)/r,this.scaleValues[2]=i,n=(e.y-a.y)/r,this.scaleValues[3]=n;else if(1===t){i=this.scaleValues[2],n=this.scaleValues[3];var p=new SuperMapAlgoPlot.Point(a.x-s+r*i,a.y+r*n),u=SuperMapAlgoPlot.PlottingUtil.distance(p,e)/r;this.scaleValues[0]=u}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol28400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28301=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.3),l.scaleValues.push(1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.3),this.scaleValues.push(1)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var e,l,o=t[0].clone(),i=t[1].clone(),n=SuperMapAlgoPlot.PlottingUtil.distance(o,i),a=this.scaleValues[0],r=this.scaleValues[1];if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(1,r))e=SuperMapAlgoPlot.PlottingUtil.radian(o,i)+270*SuperMapAlgoPlot.PlottingUtil.DTOR;else e=SuperMapAlgoPlot.PlottingUtil.radian(o,i)+90*SuperMapAlgoPlot.PlottingUtil.DTOR,l=o,o=i,i=l;var s=n*a*.67,p=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,s,s,e*SuperMapAlgoPlot.PlottingUtil.RTOD);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,n*a,e*SuperMapAlgoPlot.PlottingUtil.RTOD);var u=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,s,s,e*SuperMapAlgoPlot.PlottingUtil.RTOD);this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],u,n*a,e*SuperMapAlgoPlot.PlottingUtil.RTOD),this.scalePoints=[];var P=e*SuperMapAlgoPlot.PlottingUtil.RTOD,c=n*a,g=t[0].clone(),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,c,c,P);this.addScalePoint(S),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),o=(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l))[0].clone(),i=l[1].clone(),n=e.clone(),a=SuperMapAlgoPlot.PlottingUtil.distance(o,i),r=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(n,o,i)/a;if(r<0||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,0))return;this.scaleValues[0]=r,SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o,i,n)?this.scaleValues[1]=1:this.scaleValues[1]=0}}}]),e}();SuperMapAlgoPlot.AlgoSymbol28301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28300=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 l=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===l.scaleValues.length&&l.scaleValues.push(.1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var i=l*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],o,i,0),this.scalePoints=[];var n=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,i,i,0);this.addScalePoint(n),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=[];o=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=SuperMapAlgoPlot.PlottingUtil.distance(e,n)/i;this.scaleValues[0]=a}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol28300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28201=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 l=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===l.scaleValues.length&&l.scaleValues.push(1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),l=e*this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(l/2,t[0],t[1]),i=o.pntRight,n=o.pntLeft,a=SuperMapAlgoPlot.PlottingUtil.radian(i,n)*SuperMapAlgoPlot.PlottingUtil.RTOD,r=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,l/6,l/6,a-170),s=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,l/6,l/6,a+10),p=[];p.push(r),p.push(i),p.push(n),p.push(s),this.scalePoints=[],this.addScalePoint(i);var u=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(p);u=SuperMapAlgoPlot.PlottingUtil.clearSamePts(u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER});var P=SuperMapAlgoPlot.PlottingUtil.paraLine(p,e,!0),c=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(P);c=SuperMapAlgoPlot.PlottingUtil.clearSamePts(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0==t){var i=2*SuperMapAlgoPlot.PlottingUtil.distance(e,l[1])/o;this.scaleValues[0]=i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol28201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28200=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,l),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol28200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28100=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(.349066)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),l=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),o=180*SuperMapAlgoPlot.PlottingUtil.radian(e,l)/Math.PI,i=0,n=0;n<t.length-1;n++)i+=SuperMapAlgoPlot.PlottingUtil.distance(e,l);var a={surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER},r=this.scaleValues[0]*i;this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[e,new SuperMapAlgoPlot.Point(e.x+r,e.y)],a);var s=180*this.scaleValues[1]/Math.PI,p=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,i,i,o-s),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,i,i,o+s);this.addCell(SuperMapAlgoPlot.SymbolType.ARCSYMBOL,[p,l,u],a),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[t[0],t[1]],a);var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,r,r,o-90);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[P,p],a);var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,r,r,o+90);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[c,u],a),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[P,c],a);var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,r,r,o+180);this.addScalePoint(new SuperMapAlgoPlot.Point(g.x,g.y),0),this.addScalePoint(u,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=new SuperMapAlgoPlot.Point(l[0].x,l[0].y),i=new SuperMapAlgoPlot.Point(l[1].x,l[1].y),n=180*SuperMapAlgoPlot.PlottingUtil.radian(o,i)/Math.PI,a=SuperMapAlgoPlot.PlottingUtil.distance(o,i);if(0===t){var r=SuperMapAlgoPlot.PlottingUtil.distance(o,e)/a;this.scaleValues[0]=r}if(1===t){var s=180*SuperMapAlgoPlot.PlottingUtil.radian(o,e)/Math.PI,p=Math.abs(s-n);if(p>270&&p<360&&(p=360-p),p>90)return;this.scaleValues[1]=p*Math.PI/180}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol28100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28000=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.349066)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l,o,i,n,a,r,s=this.scaleValues[1]*SuperMapAlgoPlot.PlottingUtil.RTOD,p=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),u=new SuperMapAlgoPlot.Point(t[t.length-1].x,t[t.length-1].y),P=SuperMapAlgoPlot.PlottingUtil.radian(p,u)*SuperMapAlgoPlot.PlottingUtil.RTOD,c=new SuperMapAlgoPlot.Point(0,0);if(2<=t.length){for(e=[],l=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),o=SuperMapAlgoPlot.PlottingUtil.distance(p,l),i=0,i=P-s;i<P+s;i+=3)e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,o,o,i));SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,P+s)&&(i=P+s,e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,o,o,i))),(n=[]).push(t[0]);for(var g=0;g<e.length;g++)n.push(new SuperMapAlgoPlot.Point(e[g].x,e[g].y));n.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),a=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,o,o,P),c=new SuperMapAlgoPlot.Point(a.x,a.y),(r=[]).push(t[0]),r.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER})}var S=new SuperMapAlgoPlot.Point(0,0);if(3<=t.length){for(e=[],l=new SuperMapAlgoPlot.Point(t[2].x,t[2].y),o=SuperMapAlgoPlot.PlottingUtil.distance(p,l),i=0,i=P-s;i<P+s;i+=3)e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,o,o,i));SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,P+s)&&(i=P+s,e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,o,o,i)));var h=[];if(0==e.length)return void(h.length>0&&(h=[]));(n=[]).push(t[0]);for(var f=0;f<e.length;f++)n.push(new SuperMapAlgoPlot.Point(e[f].x,e[f].y));n.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER});for(var y=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),A=SuperMapAlgoPlot.PlottingUtil.distance(p,y)*this.scaleValues[0],M=[],b=90;b<=270;b+=3)M.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,A,A,P+b));n=[];for(var d=M.length-1;d>=0;d--)n.push(new SuperMapAlgoPlot.Point(M[d].x,M[d].y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),(n=[]).push(new SuperMapAlgoPlot.Point(M[0].x,M[0].y)),n.push(new SuperMapAlgoPlot.Point(e[e.length-1].x,e[e.length-1].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),(n=[]).push(new SuperMapAlgoPlot.Point(e[0].x,e[0].y)),n.push(new SuperMapAlgoPlot.Point(M[M.length-1].x,M[M.length-1].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),a=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,o,o,P),S=new SuperMapAlgoPlot.Point(a.x,a.y),(r=[]).push(c),r.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER})}var m=new SuperMapAlgoPlot.Point(0,0);if(4<=t.length){for(e=[],l=new SuperMapAlgoPlot.Point(t[3].x,t[3].y),o=SuperMapAlgoPlot.PlottingUtil.distance(p,l),i=0,i=P-s;i<=P+s;i+=3)e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,o,o,i));SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,P+s)&&(i=P+s,e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,o,o,i))),(n=[]).push(t[0]);for(var v=0;v<e.length;v++)n.push(new SuperMapAlgoPlot.Point(e[v].x,e[v].y));n.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),a=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,o,o,P),m=new SuperMapAlgoPlot.Point(a.x,a.y),(r=[]).push(S),r.push(m),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER})}if(3>t.length)this.addScalePoint(t[0]);else{var O=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])*this.scaleValues[0],U=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,O,O,P+180);this.addScalePoint(U,0)}var L=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[t.length-1]),w=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,L,L,P+s);this.addScalePoint(w,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l,o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),0==t){if(3>o.length)return;var i=new SuperMapAlgoPlot.Point(o[0].x,o[0].y),n=new SuperMapAlgoPlot.Point(e.x,e.y),a=SuperMapAlgoPlot.PlottingUtil.distance(i,n),r=new SuperMapAlgoPlot.Point(o[1].x,o[1].y);if((l=a/SuperMapAlgoPlot.PlottingUtil.distance(i,r))>=2.5)return;this.scaleValues[0]=l}else if(1==t){var s=new SuperMapAlgoPlot.Point(o[0].x,o[0].y),p=new SuperMapAlgoPlot.Point(o[o.length-1].x,o[o.length-1].y),u=SuperMapAlgoPlot.PlottingUtil.radian(s,p),P=new SuperMapAlgoPlot.Point(e.x,e.y);if(l=SuperMapAlgoPlot.PlottingUtil.radian(s,P)-u,(l=Math.abs(l))>Math.PI/2&&l<3*Math.PI/2)return;l>3*Math.PI/2&&l<=2*Math.PI&&(l=2*Math.PI-l),this.scaleValues[1]=Math.abs(l)}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol28000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27902=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol27900),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[t[0],new SuperMapAlgoPlot.Point(t[0].x-e*this.scaleValues[0],t[0].y)],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!0,fill:!0,fillColor:"#ffff00",fillOpacity:1,lineTypeLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[new SuperMapAlgoPlot.Point(t[0].x+e*(this.scaleValues[0]+.1),t[0].y+e*this.scaleValues[0]),new SuperMapAlgoPlot.Point(t[0].x-e*(this.scaleValues[0]+.1),t[0].y+e*this.scaleValues[0])]);var l=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e*this.scaleValues[0],e*this.scaleValues[0],90);this.addScalePoint(l,0),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol27902=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27901=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol27900),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[t[0],new SuperMapAlgoPlot.Point(t[0].x-e*this.scaleValues[0],t[0].y)],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!0,fill:!0,fillColor:"#ffff00",fillOpacity:1,lineTypeLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[new SuperMapAlgoPlot.Point(t[0].x+e*(this.scaleValues[0]+.1),t[0].y-e*this.scaleValues[0]),new SuperMapAlgoPlot.Point(t[0].x-e*(this.scaleValues[0]+.1),t[0].y-e*this.scaleValues[0])]);var l=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e*this.scaleValues[0],e*this.scaleValues[0],90);this.addScalePoint(l,0),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol27901=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27900=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 l=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===l.scaleValues.length&&l.scaleValues.push(.25),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[t[0],new SuperMapAlgoPlot.Point(t[0].x-e*this.scaleValues[0],t[0].y)],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!0,fill:!0,fillColor:"#ffff00",fillOpacity:1,lineTypeLimit:!0});var l=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e*this.scaleValues[0],e*this.scaleValues[0],90);this.addScalePoint(l,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=new SuperMapAlgoPlot.Point(this.controlPoints[0].x,this.controlPoints[0].y),o=new SuperMapAlgoPlot.Point(this.controlPoints[1].x,this.controlPoints[1].y),i=new SuperMapAlgoPlot.Point(e.x,e.y),n=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/SuperMapAlgoPlot.PlottingUtil.distance(l,o);.9<n&&(n=.9),this.scaleValues[0]=n}}}]),e}();SuperMapAlgoPlot.AlgoSymbol27900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27701=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 l=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===l.scaleValues.length&&l.scaleValues.push(.03),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&this.scaleValues.push(.03);for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=[];o=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);var i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue());var n=this.scaleValues[0]*e*2,a=this.scaleValues[0]*e,r=new SuperMapAlgoPlot.Point(i.x-n-a,i.y),s=new SuperMapAlgoPlot.Point(i.x-n,i.y),p=new SuperMapAlgoPlot.Point(i.x-n+a,i.y),u=new SuperMapAlgoPlot.Point(i.x+n,i.y),P=new SuperMapAlgoPlot.Point(i.x+n+a,i.y),c=new SuperMapAlgoPlot.Point(i.x+n+2*a,i.y),g=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,r,s),S=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,s,p),h=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,u,P),f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,P,c),y=[];y.push(new SuperMapAlgoPlot.Point(g.pntLeft.x,g.pntLeft.y)),y.push(new SuperMapAlgoPlot.Point(r.x,r.y)),y.push(new SuperMapAlgoPlot.Point(g.pntRight.x,g.pntRight.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y),(y=[]).push(new SuperMapAlgoPlot.Point(S.pntLeft.x,S.pntLeft.y)),y.push(new SuperMapAlgoPlot.Point(s.x,s.y)),y.push(new SuperMapAlgoPlot.Point(S.pntRight.x,S.pntRight.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y),(y=[]).push(new SuperMapAlgoPlot.Point(h.pntLeft.x,h.pntLeft.y)),y.push(new SuperMapAlgoPlot.Point(u.x,u.y)),y.push(new SuperMapAlgoPlot.Point(h.pntRight.x,h.pntRight.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y),(y=[]).push(new SuperMapAlgoPlot.Point(f.pntLeft.x,f.pntLeft.y)),y.push(new SuperMapAlgoPlot.Point(P.x,P.y)),y.push(new SuperMapAlgoPlot.Point(f.pntRight.x,f.pntRight.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol27701=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27700=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 l=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===l.scaleValues.length&&l.scaleValues.push(.1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0]*e,i=SuperMapAlgoPlot.PlottingUtil.paraLine(t,o,!0),n=SuperMapAlgoPlot.PlottingUtil.paraLine(t,o,!1);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);var a=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),r=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),s=180*SuperMapAlgoPlot.PlottingUtil.radian(a,r)/Math.PI;if(90<s&&s<270){var p=a;a=r,r=p,s=180*SuperMapAlgoPlot.PlottingUtil.radian(a,r)/Math.PI}var u=new SuperMapAlgoPlot.Point(.25*e,0),P=new SuperMapAlgoPlot.Point(.25*e+.2*o,.3*o),c=new SuperMapAlgoPlot.Point(.25*e+.2*o,-.3*o),g=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,u,s),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,P,s),h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,c,s),f=[];f.push(new SuperMapAlgoPlot.Point(S.x,S.y)),f.push(new SuperMapAlgoPlot.Point(g.x,g.y)),f.push(new SuperMapAlgoPlot.Point(h.x,h.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var y=new SuperMapAlgoPlot.Point(.3*e,0),A=new SuperMapAlgoPlot.Point(.3*e+.2*o,.3*o),M=new SuperMapAlgoPlot.Point(.3*e+.2*o,-.3*o),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,y,s),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,A,s),m=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,M,s);(f=[]).push(new SuperMapAlgoPlot.Point(d.x,d.y)),f.push(new SuperMapAlgoPlot.Point(b.x,b.y)),f.push(new SuperMapAlgoPlot.Point(m.x,m.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var v=new SuperMapAlgoPlot.Point(.7*e,0),O=new SuperMapAlgoPlot.Point(.7*e+.2*o,.3*o),U=new SuperMapAlgoPlot.Point(.7*e+.2*o,-.3*o),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,v,s),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,O,s),V=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,U,s);(f=[]).push(new SuperMapAlgoPlot.Point(w.x,w.y)),f.push(new SuperMapAlgoPlot.Point(L.x,L.y)),f.push(new SuperMapAlgoPlot.Point(V.x,V.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var _=new SuperMapAlgoPlot.Point(.75*e,0),T=new SuperMapAlgoPlot.Point(.75*e+.2*o,.3*o),x=new SuperMapAlgoPlot.Point(.75*e+.2*o,-.3*o),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,_,s),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,T,s),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,x,s);(f=[]).push(new SuperMapAlgoPlot.Point(Y.x,Y.y)),f.push(new SuperMapAlgoPlot.Point(E.x,E.y)),f.push(new SuperMapAlgoPlot.Point(j.x,j.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),this.addScalePoint(i[0],0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){for(var l=0,o=0;o<this.controlPoints.length-1;o++)l+=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[o],this.controlPoints[o+1]);var i=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[0],e)/l;this.scaleValues[0]=i}}}]),e}();SuperMapAlgoPlot.AlgoSymbol27700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27300=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=[];l=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),i=new SuperMapAlgoPlot.Point(o.x,0);if(!1===this.polylineConnectLocationPoint){for(var n=0,a=-1,r=0;r<l.length-1;r++){var s=SuperMapAlgoPlot.PlottingUtil.intersectLines(o,new SuperMapAlgoPlot.Point(o.x,o.y+1),l[r],l[r+1]);s.isIntersectLines&&(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(s.intersectPoint,l[r],l[r+1])&&i.x===s.intersectPoint.x&&(0==n?(i.y=s.intersectPoint.y,a=r):i.y<s.intersectPoint.y&&(i.y=s.intersectPoint.y,a=r),n++))}var p=this.getSubSymbolScaleValue()*e,u=[];u.push(i);for(var P=a+1;P<l.length-1;P++)u.push(new SuperMapAlgoPlot.Point(l[P].x,l[P].y));for(var c=0;c<=a;c++)u.push(new SuperMapAlgoPlot.Point(l[c].x,l[c].y));var g=.8*p,S=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(u,g);if(-1===S.index)return;var h=[];h.push(S.pt);for(var f=S.index+1;f<u.length-1;f++)h.push(u[f]);u=[];for(var y=h.length-1;y>0;y--)u.push(h[y]);var A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(u,g);if(-1===A.index)return;(h=[]).push(A.pt);for(var M=A.index+1;M<u.length-1;M++)h.push(u[M]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h),this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],i,p,0)}else{var b=t[0],d=t[1],m=SuperMapAlgoPlot.PlottingUtil.distance(b,d),v=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.2*m,[b,d]);if(-1===v.index)return;var O=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.4*m,[b,d]);if(-1===O.index)return;var U=[];U.push(t[0]),U.push(v.pts),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U),(U=[]).push(O.pts);for(var L=1;L<t.length;L++)U.push(t[L]);U.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U);var w=new SuperMapAlgoPlot.Point((v.pts.x+O.pts.x)/2,(v.pts.y+O.pts.y)/2);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],w,.1*m,0)}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol27300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27100=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.1,l.scaleValues[1]=.2),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues[0]=.1,this.scaleValues[1]=.2),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e,l,o=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),i=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,n=this.scaleValues[0],a=this.scaleValues[1],r=n*o,s=[];for(e=90;e<=270;e+=3)l=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],r,r,e+i),s.push(l);var p=[];for(e=-90;e<=90;e+=3)l=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],r,r,e+i),p.push(l);var u=o*a,P=new SuperMapAlgoPlot.Point((s[0].x+p[p.length-1].x)/2,(s[0].y+p[p.length-1].y)/2),c=SuperMapAlgoPlot.PlottingUtil.linePnt(s[0],p[p.length-1],.5*(o-1.2*u)),g=SuperMapAlgoPlot.PlottingUtil.linePnt(p[p.length-1],s[0],.5*(o-1.2*u)),S=SuperMapAlgoPlot.PlottingUtil.radian(g,c)*SuperMapAlgoPlot.PlottingUtil.RTOD,h=[];h.push(c),h.push.apply(h,s),h.push.apply(h,p),h.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],P,.9*u,S-90),this.scalePoints=[],this.addScalePoint(s[s.length-1]);var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,u,u,S+90);this.addScalePoint(f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0==t){var i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}else if(1==t){var n=this.scaleValues[0]*o,a=SuperMapAlgoPlot.PlottingUtil.radian(l[0],l[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,r=SuperMapAlgoPlot.PlottingUtil.circlePoint(l[0],n,n,90+a),s=SuperMapAlgoPlot.PlottingUtil.circlePoint(l[1],n,n,90+a),p=new SuperMapAlgoPlot.Point((r.x+s.x)/2,(r.y+s.y)/2),u=SuperMapAlgoPlot.PlottingUtil.distance(p,e)/o;u>=.8&&(u=.8),this.scaleValues[1]=u}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol27100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(2===this.controlPoints.length)this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t);else if(3===this.controlPoints.length){var e=new SuperMapAlgoPlot.Point(this.controlPoints[0].x,this.controlPoints[0].y),l=new SuperMapAlgoPlot.Point(this.controlPoints[1].x,this.controlPoints[1].y),o=new SuperMapAlgoPlot.Point(this.controlPoints[2].x,this.controlPoints[2].y),i=SuperMapAlgoPlot.PlottingUtil.distance(l,o);if(0>=i)return;this.scaleValues=[];var n=SuperMapAlgoPlot.PlottingUtil.distance(e,l)/i;this.scaleValues.push(n);var a=SuperMapAlgoPlot.PlottingUtil.radian(e,l)*SuperMapAlgoPlot.PlottingUtil.RTOD;a>90?a-=90:a=270+a,this.scaleValues.push(a*SuperMapAlgoPlot.PlottingUtil.DTOR);var r=SuperMapAlgoPlot.PlottingUtil.radian(e,o)*SuperMapAlgoPlot.PlottingUtil.RTOD;r>90?r-=90:r=270+r,this.scaleValues.push(r*SuperMapAlgoPlot.PlottingUtil.DTOR);var s=this.scaleValues[0]*i,p=this.scaleValues[1]*SuperMapAlgoPlot.PlottingUtil.RTOD+90,u=this.scaleValues[2]*SuperMapAlgoPlot.PlottingUtil.RTOD+90;p<u&&(p+=360);for(var P,c=[],g=p;g>=u;g-=4)P=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],s,s,g),c.push(P);g!=u&&(P=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],s,s,u),c.push(P)),c.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,c)}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol26800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26700=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0]*e,i=SuperMapAlgoPlot.PlottingUtil.paraLine(t,o,!0),n=SuperMapAlgoPlot.PlottingUtil.paraLine(t,o,!1);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);var a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),r=2*o*.8,s=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,r,s),0===this.scaleValues[1]?this.addScalePoint(i[0]):this.addScalePoint(n[0]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===o)return;if(0===t){var i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol26700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26601=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);for(var l,o,i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),n=.1*i,a=.5*n,r=this.computeDashLine(n,a,e),s=.01*i,p=0;p<r.length;p++)l=SuperMapAlgoPlot.PlottingUtil.paraLine(r[p],s,!0),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l),o=SuperMapAlgoPlot.PlottingUtil.paraLine(r[p],s,!1),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o);this.finish()}}},{key:"computeDashLine",value:function(t,e,l){for(var o,i,n=[],a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),r=l[0].clone(),s=1,p=0,u=!0,P=!0;p<a;){var c;(i=[]).push(r),p+=t;var g=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(p,l);if(c=g.index,o=g.pts,!(u=g.bfind))break;if(s<c)for(var S=s;S<c;S++)i.push(l[S]);i.push(o),n.push(i),p+=e;var h=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(p,l);if(c=h.index,r=h.pts,s=c+1,!(P=h.bfind))break}if(!u){(i=[]).push(r);for(var f=s;f<l.length;f++)i.push(l[f]);2===i.length&&0===SuperMapAlgoPlot.PlottingUtil.distance(i[0],i[1])||n.push(i)}if(!P){var y=l[l.length-1],A=SuperMapAlgoPlot.PlottingUtil.distance(o,y);if(A*=.01,!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(A,0)){var M=SuperMapAlgoPlot.PlottingUtil.linePnt(y,o,A);(i=[]).push(M),i.push(y),n.push(i)}}return n}}]),e}();SuperMapAlgoPlot.AlgoSymbol26601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26600=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=.1*SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),o=.5*l;this.computeDashLine(l,o,e),this.finish()}}},{key:"computeDashLine",value:function(t,e,l){for(var o,i,n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),a=l[0].clone(),r=1,s=0,p=!0,u=!0;s<n;){var P;(i=[]).push(a),s+=t;var c=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,l);if(P=c.index,o=c.pts,!(p=c.bfind))break;if(r<P)for(var g=r;g<P;g++)i.push(l[g]);i.push(o),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i),s+=e;var S=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,l);if(P=S.index,a=S.pts,r=P+1,!(u=S.bfind))break}if(!p){(i=[]).push(a);for(var h=r;h<l.length;h++)i.push(l[h]);2===i.length&&0===SuperMapAlgoPlot.PlottingUtil.distance(i[0],i[1])||this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i)}if(!u){var f=l[l.length-1],y=SuperMapAlgoPlot.PlottingUtil.distance(o,f);if(y*=.01,!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(y,0)){var A=SuperMapAlgoPlot.PlottingUtil.linePnt(f,o,y);(i=[]).push(A),i.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i)}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol26600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26503=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol22000),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5)),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}for(var i=l*this.scaleValues[0],n=this.getLinePts(e,this.scaleValues[0]),a=[],r=[],s=0;s<=n.startIndex;s++)a.push(e[s]);if(a.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a),n.endIndex<=e.length){r.push(n.endPt);for(var p=n.endIndex+1;p<=e.length-1;p++)r.push(e[p]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r)}var u=.5*i,P=new SuperMapAlgoPlot.Point(n.endPt.x,n.endPt.y),c=new SuperMapAlgoPlot.Point(n.startPt.x,n.startPt.y),g=SuperMapAlgoPlot.PlottingUtil.distance(P,c),S=.2*g,h=SuperMapAlgoPlot.PlottingUtil.linePnt(P,c,S),f=SuperMapAlgoPlot.PlottingUtil.linePnt(c,P,S),y=.5*g,A=SuperMapAlgoPlot.PlottingUtil.linePnt(P,c,y),M=new SuperMapAlgoPlot.Point((f.x+A.x)/2,(f.y+A.y)/2),b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(u,f,M),d=b.pntLeft,m=b.pntRight,v=[];v.push(m),v.push(f),v.push(d),this.addCell(SuperMapAlgoPlot.SymbolType.ARCSYMBOL,v,null,!0);var O=.1*g,U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(O,f,A),L=U.pntLeft,w=U.pntRight,V=[];V.push(f),V.push(L),V.push(w);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,V,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0);var _=[];_.push(A),_.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,_,null,!0);var T=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),x=180*SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)/Math.PI,E=.5*l*this.scaleValues[0],Y=SuperMapAlgoPlot.PlottingUtil.circlePoint(T,E,E,x+90),j=e[0],C=e[1],I=e[e.length-2],B=e[e.length-1],R=.5*i,N=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(R,C,j),D=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(R,I,B),k=N.pntLeft,z=D.pntLeft,F=[];F.push(j),F.push(k),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,F);var G=[];G.push(B),G.push(z),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,G),this.addScalePoint(Y),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol26503=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol26502=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05),l.scaleValues.push(.01)),l}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,SuperMapAlgoPlot.AlgoSymbol22000),e}();SuperMapAlgoPlot.AlgoSymbol26502=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26501=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5)),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=180*SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI,r=SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,.8*r,a);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var P=i.endIndex+1;P<=e.length-1;P++)p.push(e[P]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p)}var c=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,e),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(c.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a);this.addScalePoint(g,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMapAlgoPlot.AlgoSymbol26501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26500=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 l=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===l.scaleValues.length&&l.scaleValues.push(.1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),o=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,l/2);if(-1!==o.index){var i=o.pt,n=this.getDefaultSubSymbolSize()/l;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=n;var a=1.5*this.scaleValues[0]*l,r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,e[o.index],i),s=[];s.push(r.pntLeft),s.push(i),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s,null,!0),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol26500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26400=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05),l.scaleValues.push(-1.5)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(!this.isEdit){this.scaleValues=[];for(var e=0;e<t.length;e++)this.scaleValues.splice(e,0,0);var l=this.getSubSymbolScaleValue();this.scaleValues[t.length]=.8*l,this.scaleValues[t.length+1]=l,this.scaleValues[t.length+2]=-1.5;var o=.5*SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])/SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.scaleValues[t.length+3]=o,this.scaleValues[t.length+4]=l}this.isEdit&&this.scaleValues.length===t.length+3&&(this.scaleValues[t.length+3]=.5*SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])/SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),this.scaleValues[t.length+4]=.05);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),n=i*this.scaleValues[this.scaleValues.length-1],a=i*this.scaleValues[this.scaleValues.length-2],r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,a-.5*n);if(-1!==r.index){var s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,a+.5*n);if(-1!==s.index){var p=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,a).pt,u=SuperMapAlgoPlot.PlottingUtil.radian(r.pt,s.pt)*SuperMapAlgoPlot.PlottingUtil.RTOD;if(0===this.subSymbols.length){var P=new SuperMapAlgoPlot.Point(p.x+.1*n,p.y);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[p,P],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0)}else this.computeSubSymbol(this.subSymbols[0],p,.8*n,u);for(var c=[],g=[],S=0;S<=r.index;S++)c.push(t[S]);c.push(r.pt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c),g.push(s.pt);for(var h=r.index+1;h<=t.length-1;h++)g.push(t[h]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var f,y,A,M=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),b=this.scaleValues.length,d=M*this.scaleValues[b-5],m=this.scaleValues[0];if(0===m)f=(y=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,t[1],t[0])).pntRight;else if(1===m)f=(y=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,t[1],t[0])).pntLeft;else{if(2!==m)return;f=t[0]}var v,O,U,L,w=[];if(w.push(t[0]),w.push(f),this.addScalePoint(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w,null,!0),t.length>this.minEditPts){for(var V,_,T,x,E,Y=1;Y<t.length-1;Y++){var j,C,I,B=this.scaleValues[Y];if(0===B){for(V=t[Y],C=t[Y+1],I=t[Y-1],_=180*SuperMapAlgoPlot.PlottingUtil.radian(V,C)/Math.PI,T=180*SuperMapAlgoPlot.PlottingUtil.radian(V,I)/Math.PI-_;T<0;)T+=360;x=T/2,E=t[Y+1].clone(),E=SuperMapAlgoPlot.PlottingUtil.rotateAngle(V,x*Math.PI/180,E),j=SuperMapAlgoPlot.PlottingUtil.linePnt(V,E,d)}else if(1===B){for(V=t[Y],C=t[Y+1],I=t[Y-1],_=180*SuperMapAlgoPlot.PlottingUtil.radian(V,C)/Math.PI,T=180*SuperMapAlgoPlot.PlottingUtil.radian(V,I)/Math.PI-_;T<0;)T+=360;x=180-T/2,E=t[Y-1].clone(),E=SuperMapAlgoPlot.PlottingUtil.rotateAngle(V,x*Math.PI/180,E),j=SuperMapAlgoPlot.PlottingUtil.linePnt(V,E,d)}else{if(2!==B)continue;j=t[Y]}(v=[]).push(t[Y]),v.push(j),this.addScalePoint(j),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,null,!0)}var R=t.length,N=this.scaleValues[R-1];if(0===N)O=(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,t[R-2],t[R-1])).pntLeft,U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*d,t[R-2],t[R-1]).pntLeft;else if(1===N)O=(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,t[R-2],t[R-1])).pntRight,U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*d,t[R-2],t[R-1]).pntRight;else{if(2!==N)return;O=t[R-1].clone(),U=t[R-1].clone()}(v=[]).push(t[R-1]),v.push(O),this.addScalePoint(O),this.addScalePoint(U),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,null,!0)}else{var D=this.scaleValues[1];if(0===D)O=(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,t[0],t[1])).pntLeft,U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*d,t[0],t[1]).pntLeft;else if(1===D)O=(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,t[0],t[1])).pntRight,U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*d,t[0],t[1]).pntRight;else{if(2!==D)return;O=t[1].clone(),U=t[1].clone()}(v=[]).push(t[1]),v.push(O),this.addScalePoint(O),this.addScalePoint(U),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,null,!0)}var k=this.scaleValues.length,z=this.scaleValues[k-4],F=Math.abs(M*z),G=this.scaleValues[k-3],K=Math.abs(d*G);if(-1!==(y=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,F)).index){var W=y.index,q=y.pt;L=G>=0?(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(K,t[W],q)).pntRight:(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(K,t[W],q)).pntLeft;var J=SuperMapAlgoPlot.PlottingUtil.linePnt(q,L,K),Z=.3*K,X=SuperMapAlgoPlot.PlottingUtil.linePnt(J,q,Z),H=(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.3*Z,J,X)).pntLeft,Q=A.pntRight;(v=[]).push(q),v.push(J),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,null,!0),(v=[]).push(H),v.push(J),v.push(Q);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,v,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0),this.addScalePoint(J),this.addScalePoint(p);var $=SuperMapAlgoPlot.PlottingUtil.radian(r.pt,s.pt)*SuperMapAlgoPlot.PlottingUtil.RTOD+90,tt=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,.5*n,.5*n,$);this.addScalePoint(tt),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i,n,a,r,s,p,u,P,c,g=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),S=l.length,h=e;if(t>=0&&t<S){var f=!1;if(0==t)f=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[t],l[t+1],h);else if(t==S-1)f=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[t-1],l[t],h);else{var y=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[t-1],l[t],l[t+1]),A=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[t-1],l[t],h);if(y!=A)f=A;else{var M=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[t],l[t+1],h);f=M==A?A:M}}this.scaleValues[t]=f?1:0}else if(t==S){o=SuperMapAlgoPlot.PlottingUtil.distance(l[S-1],h);var b=(o/=2)/g;this.scaleValues[t]=b}else if(t===S+1){i=-1,n=0,a=new SuperMapAlgoPlot.Point(0,0);for(var d=0;d<l.length-1;d++)(r=[]).push(l[d]),r.push(l[d+1]),p=SuperMapAlgoPlot.PlottingUtil.projectPoint(h,l[d],l[d+1]),(s=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(p,r)).isOnPolyLine&&(c=SuperMapAlgoPlot.PlottingUtil.distance(h,p),-1==i?(i=d,a=p,n=c):n>c&&(i=d,a=p,n=c));if(-1==i||i>l.length-1)return;u=0;for(var m=0;m<i;m++){var v=l[m],O=l[m+1];u+=SuperMapAlgoPlot.PlottingUtil.distance(v,O)}if(P=l[i],(u+=SuperMapAlgoPlot.PlottingUtil.distance(P,a))<0||u>g)return;var U=u/g;this.scaleValues[S+1]=U;var L,w=this.scaleValues.length;o=g*this.scaleValues[w-5],L=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[i],l[i+1],h)?n/o:-Math.abs(n/o),this.scaleValues[S+2]=L}else if(t===S+2){i=-1,n=0,a=new SuperMapAlgoPlot.Point(0,0);for(var V=0;V<l.length-1;V++)(r=[]).push(l[V]),r.push(l[V+1]),p=SuperMapAlgoPlot.PlottingUtil.projectPoint(h,l[V],l[V+1]),(s=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(p,r)).isOnPolyLine&&(c=SuperMapAlgoPlot.PlottingUtil.distance(h,p),-1===i?(i=V,a=p,n=c):n>c&&(i=V,a=p,n=c));if(-1===i||i>l.length-1)return;u=0;for(var _=0;_<i;_++)u+=SuperMapAlgoPlot.PlottingUtil.distance(l[_],l[_+1]);if(P=l[i],(u+=SuperMapAlgoPlot.PlottingUtil.distance(P,a))<0||u>g)return;.1*g<u&&.9*g>u&&(this.scaleValues[this.scaleValues.length-2]=u/g)}else if(t===S+3){var T=this.scaleValues[this.scaleValues.length-2]*g;if(-1===(s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,T)).index)return;var x=2*SuperMapAlgoPlot.PlottingUtil.distance(s.pt,e)/g;x>.15&&(x=.15),this.scaleValues[this.scaleValues.length-1]=x}}}},{key:"computeSubSymbol",value:function(t,e,l,o,i,n){if(null==t.symbolData||null==t.symbolData.innerCells)return null;void 0===i&&(i=0),void 0===n&&(n=0);for(var a=SuperMapAlgoPlot.AnalysisSymbol.analysisSymbolCells(t.symbolData,!0),r=0,s=0,p=0,u=0,P=0;P<a.length;P++){null!=a[P].polybezierClose&&(a[P].type===SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL||a[P].type===SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL?(a[P].type,SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL,a[P].positionPoints=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(a[P].positionPoints),a[P].isClosed&&a[P].positionPoints[0]!==a[P].positionPoints[symbolCell.positionPoints.length-1]&&a[P].positionPoints.push(a[P].positionPoints[0])):a[P].type===SuperMapAlgoPlot.SymbolType.KIDNEY&&(a[P].positionPoints=SuperMapAlgoPlot.Primitives.getSpatialData(a[P].type,a[P].positionPoints)));for(var c=SuperMapAlgoPlot.Primitives.getSpatialData(a[P].type,a[P].positionPoints,a[P].textContent,0,a[P].isCalculate),g=0,S=c.length;g<S;g++)r<c[g].x&&(r=c[g].x),s<c[g].y&&(s=c[g].y),p>c[g].x&&(p=c[g].x),u>c[g].y&&(u=c[g].y)}var h=new SuperMapAlgoPlot.Point(r,s),f=new SuperMapAlgoPlot.Point(p,u),y=(h.y-f.y)/l,A=(h.x-f.x)/l,M=A>y?A:y;100!==this.subSymbols[0].libID||3300!==this.subSymbols[0].code&&3301!==this.subSymbols[0].code&&3302!==this.subSymbols[0].code||(M=2*(h.y-f.y)),100!==this.subSymbols[0].libID||3400!==this.subSymbols[0].code&&3401!==this.subSymbols[0].code&&3402!==this.subSymbols[0].code||(M=h.y-f.y);var b=new SuperMapAlgoPlot.Point(.5*(h.x+f.x),.5*(h.y+f.y));b.x+=i*(h.x-f.x),b.y+=n*(h.y-f.y);for(var d=0,m=a.length;d<m;d++){for(var v=0,O=a[d].positionPoints.length;v<O;v++)a[d].positionPoints[v].x-=b.x,a[d].positionPoints[v].y-=b.y,a[d].positionPoints[v].x/=M,a[d].positionPoints[v].y/=M,SuperMapAlgoPlot.PlottingUtil.rotateAngle(new SuperMapAlgoPlot.Point(0,0),o*Math.PI/180,a[d].positionPoints[v]),a[d].positionPoints[v].x+=e.x,a[d].positionPoints[v].y+=e.y;a[d].type===SuperMapAlgoPlot.SymbolType.TEXTSYMBOL&&(a[d].style.fontSize/=10*M,a[d].style.labelRotation=-o,a[d].style.sizeFixed=!1),a[d].isCalculate=!1,a[d].style.surroundLineType=0,a[d].style.surroundLineLimit=!0,this.components.push(a[d])}return a}}]),e}();SuperMapAlgoPlot.AlgoSymbol26400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25901=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol25900),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=2*this.getSubSymbolScaleValue());var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMapAlgoPlot.Point(e.x+l*o,e.y+l*i),r=n*l/2,s=[];s.push(new SuperMapAlgoPlot.Point(a.x-r,a.y)),s.push(new SuperMapAlgoPlot.Point(a.x+r,a.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s,null,!0);var p=.3*r,u=[];u.push(new SuperMapAlgoPlot.Point(a.x-r,a.y+p/2)),u.push(new SuperMapAlgoPlot.Point(a.x-r,a.y-p/2)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u,null,!0);var P=[];P.push(new SuperMapAlgoPlot.Point(a.x+r,a.y+p/2)),P.push(new SuperMapAlgoPlot.Point(a.x+r,a.y-p/2)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,null,!0);var c=[];c.push(new SuperMapAlgoPlot.Point(a.x,a.y)),c.push(new SuperMapAlgoPlot.Point(a.x,a.y+1.5*p)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,null,!0);var g=[];g.push(new SuperMapAlgoPlot.Point(a.x-p/2,a.y)),g.push(new SuperMapAlgoPlot.Point(a.x-p,a.y+p)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,null,!0);var S=[];S.push(new SuperMapAlgoPlot.Point(a.x+p/2,a.y)),S.push(new SuperMapAlgoPlot.Point(a.x+p,a.y+p)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,null,!0),this.addScalePoint(a);var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,r,r,90);this.addScalePoint(h),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25901=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25900=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.02)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i=(l-e)/50,n=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,i,!0),a=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,i,!1);if(n.length>2&&a.length>0){for(var r=[],s=0;s<n.length;s++)r.push(n[s]);var p=a[0],u=[];SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(r,p)||(u=u.concat(n),n=(n=[]).concat(a),a=(a=[]).concat(u))}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,a,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1},!0);var P=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),c=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=4*this.getSubSymbolScaleValue());var g=this.scaleValues[0],S=this.scaleValues[1],h=this.scaleValues[2],f=new SuperMapAlgoPlot.Point(P.x+c*g,P.y+c*S),y=h*c/2,A=[];A.push(new SuperMapAlgoPlot.Point(f.x-y,f.y)),A.push(new SuperMapAlgoPlot.Point(f.x+y,f.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A,null,!0);var M=.3*y,b=[];b.push(new SuperMapAlgoPlot.Point(f.x-y,f.y+M/2)),b.push(new SuperMapAlgoPlot.Point(f.x-y,f.y-M/2)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b,null,!0);var d=[];d.push(new SuperMapAlgoPlot.Point(f.x+y,f.y+M/2)),d.push(new SuperMapAlgoPlot.Point(f.x+y,f.y-M/2)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,null,!0);var m=[];m.push(new SuperMapAlgoPlot.Point(f.x,f.y)),m.push(new SuperMapAlgoPlot.Point(f.x,f.y+1.5*M)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,m,null,!0);var v=[];v.push(new SuperMapAlgoPlot.Point(f.x-M/2,f.y)),v.push(new SuperMapAlgoPlot.Point(f.x-M,f.y+M)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,null,!0);var O=[];O.push(new SuperMapAlgoPlot.Point(f.x+M/2,f.y)),O.push(new SuperMapAlgoPlot.Point(f.x+M,f.y+M)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,O,null,!0),this.addScalePoint(f);var U=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,y,y,90);this.addScalePoint(U),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t&&1!=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o,i,n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(a,0))return;if(0==t)o=(e.x-n.x)/a,this.scaleValues[0]=o,i=(e.y-n.y)/a,this.scaleValues[1]=i;else if(1==t){o=this.scaleValues[0],i=this.scaleValues[1];var r=new SuperMapAlgoPlot.Point(n.x+a*o,n.y+a*i),s=2*SuperMapAlgoPlot.PlottingUtil.distance(r,e)/a;this.scaleValues[2]=s}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol25800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=2*this.getSubSymbolScaleValue());var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMapAlgoPlot.Point(e.x+l*o,e.y+l*i),r=n*l/2,s=[];s.push(new SuperMapAlgoPlot.Point(a.x,a.y)),s.push(new SuperMapAlgoPlot.Point(a.x,a.y+r));this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,s,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0);var p=[];p.push(new SuperMapAlgoPlot.Point(a.x-1.5*r,a.y+r)),p.push(new SuperMapAlgoPlot.Point(a.x+1.5*r,a.y+r)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,null,!0),this.addScalePoint(a);var u=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,r,r,90);this.addScalePoint(u),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25800=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.08)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i=(l-e)/50,n=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,i,!0),a=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,i,!1);if(n.length>2&&a.length>0){for(var r=[],s=new SuperMapAlgoPlot.Point(0,0),p=0;p<n.length;p++)r.push(n[p]);s=a[0];var u=[];SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(r,s)||(u=u.concat(n),n=(n=[]).concat(a),a=(a=[]).concat(u))}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,a,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1},!0);var P=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),c=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=2*this.getSubSymbolScaleValue());var g=this.scaleValues[0],S=this.scaleValues[1],h=this.scaleValues[2],f=new SuperMapAlgoPlot.Point(P.x+c*g,P.y+c*S),y=h*c/2,A=[];A.push(new SuperMapAlgoPlot.Point(f.x,f.y)),A.push(new SuperMapAlgoPlot.Point(f.x,f.y+y));this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,A,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0);var M=[];M.push(new SuperMapAlgoPlot.Point(f.x-1.5*y,f.y+y)),M.push(new SuperMapAlgoPlot.Point(f.x+1.5*y,f.y+y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M,null,!0),this.addScalePoint(f);var b=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,y,y,90);this.addScalePoint(b),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i,n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0==n)return;if(0==t)o=(e.x-a.x)/n,this.scaleValues[0]=o,i=(e.y-a.y)/n,this.scaleValues[1]=i;else if(1==t){o=this.scaleValues[0],i=this.scaleValues[1];var r=new SuperMapAlgoPlot.Point(a.x+n*o,a.y+n*i),s=2*SuperMapAlgoPlot.PlottingUtil.distance(r,e)/n;this.scaleValues[2]=s}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25701=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i=(l-e)/50;this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var n={surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1},a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),r=10*i;t.push(t[0]);for(var s=!0,p=a.x,u=a.x;s;){s=!1;for(var P,c,g,S,h,f=[],y=new SuperMapAlgoPlot.Point(p,a.y),A=SuperMapAlgoPlot.PlottingUtil.circlePoint(y,10,10,45),M=0;M<t.length-1;M++){var b=SuperMapAlgoPlot.PlottingUtil.intersectLines(y,A,t[M],t[M+1]);b.isIntersectLines&&(c=b.intersectPoint,(g=[]).push(t[M]),g.push(t[M+1]),(P=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(c,g)).isOnPolyLine&&f.push(c))}if(1<f.length){this.sortPts2D(f);for(var d=0;d<f.length-1;d++)h=new SuperMapAlgoPlot.Point((f[d].x+f[d+1].x)/2,(f[d].y+f[d+1].y)/2),SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(t,h)&&((S=[]).push(f[d]),S.push(f[d+1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,n,!0))}f.length>0&&(s=!0),f=[];for(var m=new SuperMapAlgoPlot.Point(u,a.y),v=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,5,5,45),O=0;O<t.length-1;O++)(P=SuperMapAlgoPlot.PlottingUtil.intersectLines(m,v,t[O],t[O+1])).isIntersectLines&&(c=P.intersectPoint,(g=[]).push(t[O]),g.push(t[O+1]),(P=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(c,g)).isOnPolyLine&&f.push(c));if(1<f.length){this.sortPts2D(f);for(var U=0;U<f.length-1;U++)h=new SuperMapAlgoPlot.Point((f[U].x+f[U+1].x)/2,(f[U].y+f[U+1].y)/2),SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(t,h)&&((S=[]).push(f[U]),S.push(f[U+1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,n,!0))}f.length>0&&(s=!0),p-=r,u+=r}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMapAlgoPlot.Point(0,0),l=0;l<t.length;l++)for(var o=0;o<t.length-1-l;o++)SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[o].x,t[o+1].x)?t[o].y>t[o+1].y&&(e=t[o],t[o]=t[o+1],t[o+1]=e):t[o].x>t[o+1].x&&(e=t[o],t[o]=t[o+1],t[o+1]=e);return t}}]),e}();SuperMapAlgoPlot.AlgoSymbol25701=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25700=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i,n,a=(l-e)/50,r=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,a,!0),s=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,a,!1);if(r.length>2&&s.length>0){for(var p=[],u=0;u<r.length;u++)p.push(r[u]);i=s[0],n=[],SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(p,i)||(n=n.concat(r),r=(r=[]).concat(s),s=(s=[]).concat(n))}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,r);var P={surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,P),s.push(s[0]);for(var c=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),g=10*a,S=!0,h=c.x,f=c.x;S;){S=!1;for(var y,A,M,b=[],d=new SuperMapAlgoPlot.Point(h,c.y),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(d,10,10,45),v=0;v<s.length-1;v++){var O=SuperMapAlgoPlot.PlottingUtil.intersectLines(d,m,s[v],s[v+1]);O.isIntersectLines&&(A=O.intersectPoint,(n=[]).push(s[v]),n.push(s[v+1]),(y=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(A,n)).isOnPolyLine&&b.push(A))}if(1<b.length){this.sortPts2D(b);for(var U=0;U<b.length-1;U++)i=new SuperMapAlgoPlot.Point((b[U].x+b[U+1].x)/2,(b[U].y+b[U+1].y)/2),SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(s,i)&&((M=[]).push(b[U]),M.push(b[U+1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M,P))}b.length>0&&(S=!0),b=[];for(var L=new SuperMapAlgoPlot.Point(f,c.y),w=SuperMapAlgoPlot.PlottingUtil.circlePoint(L,5,5,45),V=0;V<s.length-1;V++)(y=SuperMapAlgoPlot.PlottingUtil.intersectLines(L,w,s[V],s[V+1])).isIntersectLines&&(A=y.intersectPoint,(n=[]).push(s[V]),n.push(s[V+1]),(y=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(A,n)).isOnPolyLine&&b.push(A));if(1<b.length){this.sortPts2D(b);for(var _=0;_<b.length-1;_++)i=new SuperMapAlgoPlot.Point((b[_].x+b[_+1].x)/2,(b[_].y+b[_+1].y)/2),SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(s,i)&&((M=[]).push(b[_]),M.push(b[_+1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M,P))}b.length>0&&(S=!0),h-=g,f+=g}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMapAlgoPlot.Point(0,0),l=0;l<t.length;l++)for(var o=0;o<t.length-1-l;o++)SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[o].x,t[o+1].x)?t[o].y>t[o+1].y&&(e=t[o],t[o]=t[o+1],t[o+1]=e):t[o].x>t[o+1].x&&(e=t[o],t[o]=t[o+1],t[o+1]=e);return t}}]),e}();SuperMapAlgoPlot.AlgoSymbol25700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25601=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol25600),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var l=this.scaleValues[0]*e*.5,o=SuperMapAlgoPlot.PlottingUtil.clonePoints(t);o.push(o[0].clone());for(var i=0;i<o.length-1;i++){var n=new SuperMapAlgoPlot.Point((o[i].x+o[i+1].x)/2,(o[i].y+o[i+1].y)/2),a=new SuperMapAlgoPlot.Point(0,1.5*l),r=new SuperMapAlgoPlot.Point(-.5*l,0),s=new SuperMapAlgoPlot.Point(0,-1.5*l),p=new SuperMapAlgoPlot.Point(.5*l,0),u=SuperMapAlgoPlot.PlottingUtil.radian(n,o[i+1])*SuperMapAlgoPlot.PlottingUtil.RTOD,P=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,a,u),c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,r,u),g=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,s,u),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,p,u),h=[];h.push(P),h.push(c),h.push(g),h.push(S),h.push(P.clone());this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,{surroundLineFlag:!1,surroundLineLimit:!0,lineTypeLimit:!0,fillLimit:!0,fill:!0,lineWidthLimit:!0})}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25600=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 l=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===l.scaleValues.length&&l.scaleValues.push(.01),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i=(l-e)/50,n=[],a=[],r=!0;t.length>2?SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(t[0],t[1],t[2])?(n=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,i,!1),a=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,i,!0)):(r=!1,n=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,i,!0),a=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,i,!1)):(n=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,i,!1),a=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,i,!0));var s,p,u,P,c,g,S,h,f;if(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,a),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n,{surroundLineFlag:!1,lineWidthLimit:!0}),t.length>2){var y=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var A=this.scaleValues[0]*y*.5;a.push(a[0].clone());for(var M=0;M<a.length-1;M++){s=new SuperMapAlgoPlot.Point((a[M].x+a[M+1].x)/2,(a[M].y+a[M+1].y)/2),p=new SuperMapAlgoPlot.Point(0,0),u=new SuperMapAlgoPlot.Point(0,0),P=new SuperMapAlgoPlot.Point(0,0),r?(p.x=0,p.y=1.5*A,u.x=-.5*A,u.y=0,P.x=.5*A,P.y=0):(p.x=0,p.y=-1.5*A,u.x=-.5*A,u.y=0,P.x=.5*A,P.y=0),c=SuperMapAlgoPlot.PlottingUtil.radian(s,a[M+1])*SuperMapAlgoPlot.PlottingUtil.RTOD,g=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,p,c),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,u,c),h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,P,c),(f=[]).push(g),f.push(S),f.push(h);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,f,{surroundLineFlag:!1,surroundLineLimit:!0,lineTypeLimit:!0,fillLimit:!0,fill:!0,lineWidthLimit:!0})}n.push(n[0].clone());for(var b=0;b<n.length-1;b++){s=new SuperMapAlgoPlot.Point((n[b].x+n[b+1].x)/2,(n[b].y+n[b+1].y)/2),p=new SuperMapAlgoPlot.Point(0,0),u=new SuperMapAlgoPlot.Point(0,0),P=new SuperMapAlgoPlot.Point(0,0),r?(p.x=0,p.y=-1.5*A,u.x=-.5*A,u.y=0,P.x=.5*A,P.y=0):(p.x=0,p.y=1.5*A,u.x=-.5*A,u.y=0,P.x=.5*A,P.y=0),c=SuperMapAlgoPlot.PlottingUtil.radian(s,n[b+1])*SuperMapAlgoPlot.PlottingUtil.RTOD,g=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,p,c),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,u,c),h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,P,c),(f=[]).push(g),f.push(S),f.push(h);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,f,{surroundLineFlag:!1,surroundLineLimit:!0,lineTypeLimit:!0,fillLimit:!0,fill:!0,lineWidthLimit:!0})}}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25503=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.02)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.02)),0==this.subSymbols.length&&this.subSymbols.push(new SuperMapAlgoPlot.SubSymbol(100,8402)),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=.5*this.getSubSymbolScaleValue());var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMapAlgoPlot.Point(e.x+l*o,e.y+l*i),r=n*l,s=[];s.push(new SuperMapAlgoPlot.Point(a.x-4*r,a.y+r/2)),s.push(new SuperMapAlgoPlot.Point(a.x-4*r,a.y-r/2));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s,{surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0});var p=[];p.push(new SuperMapAlgoPlot.Point(a.x-4*r,a.y)),p.push(new SuperMapAlgoPlot.Point(a.x-r,a.y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,{surroundLineFlag:!1,surroundLineLimit:!0,lineTypeLimit:!0}),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,2*r,0);var u=[];u.push(new SuperMapAlgoPlot.Point(a.x+4*r,a.y)),u.push(new SuperMapAlgoPlot.Point(a.x+r,a.y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u,{surroundLineFlag:!1,surroundLineLimit:!0,lineTypeLimit:!0});var P=[];P.push(new SuperMapAlgoPlot.Point(a.x+4*r,a.y+r/2)),P.push(new SuperMapAlgoPlot.Point(a.x+4*r,a.y-r/2));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,{surroundLineFlag:!1,surroundLineLimit:!0,lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(a.clone());var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,2*r,2*r,90);this.addScalePoint(c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t&&1!=t)return;var l,o,i=this.controlPoints,n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(i),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(a,0))return;if(0==t)l=(e.x-n.x)/a,this.scaleValues[0]=l,o=(e.y-n.y)/a,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var r=new SuperMapAlgoPlot.Point(n.x+a*l,n.y+a*o),s=SuperMapAlgoPlot.PlottingUtil.distance(r,e)/2/a;this.scaleValues[2]=s}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25503=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25502=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.02)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.08)),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=2*this.getSubSymbolScaleValue());var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMapAlgoPlot.Point(e.x+l*o,e.y+l*i),r=n*l/2.5,s=.7*r,p=[];p.push(new SuperMapAlgoPlot.Point(a.x,a.y)),p.push(new SuperMapAlgoPlot.Point(a.x+r,a.y));this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,p,{surroundLineFlag:!1,lineTypeLimit:!0});var u=[];u.push(new SuperMapAlgoPlot.Point(a.x+s,a.y-s/2)),u.push(new SuperMapAlgoPlot.Point(a.x-s,a.y-s/2));var P={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u,P);var c=[];c.push(new SuperMapAlgoPlot.Point(a.x,a.y-s/2)),c.push(new SuperMapAlgoPlot.Point(a.x,a.y+s)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,P);var g=[];g.push(new SuperMapAlgoPlot.Point(a.x-s/2,a.y-s/2)),g.push(new SuperMapAlgoPlot.Point(a.x-s,a.y+s/2)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,P);var S=[];S.push(new SuperMapAlgoPlot.Point(a.x+s/2,a.y-s/2)),S.push(new SuperMapAlgoPlot.Point(a.x+s,a.y+s/2)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,P),this.scalePoints=[],this.addScalePoint(a.clone());var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,1.25*r,1.25*r,90);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t&&1!=t)return;var l,o,i=this.controlPoints,n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(i),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(a,0))return;if(0==t)l=(e.x-n.x)/a,this.scaleValues[0]=l,o=(e.y-n.y)/a,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var r=new SuperMapAlgoPlot.Point(n.x+a*l,n.y+a*o),s=2*SuperMapAlgoPlot.PlottingUtil.distance(r,e)/a;this.scaleValues[2]=s}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25502=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25501=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.05)),l}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,SuperMapAlgoPlot.AlgoSymbol25500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.05)),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=2*this.getSubSymbolScaleValue());var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMapAlgoPlot.Point(e.x+l*o,e.y+l*i),r=n*l,s=.25*r,p=[];p.push(new SuperMapAlgoPlot.Point(a.x-r,a.y+s)),p.push(new SuperMapAlgoPlot.Point(a.x+r,a.y+s)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p);var u=[];u.push(new SuperMapAlgoPlot.Point(a.x+r,a.y-s)),u.push(new SuperMapAlgoPlot.Point(a.x-r,a.y-s)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u);var P=[];P.push(new SuperMapAlgoPlot.Point(a.x+r,a.y+2*s)),P.push(new SuperMapAlgoPlot.Point(a.x+r,a.y-2*s)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var c=[];c.push(new SuperMapAlgoPlot.Point(a.x-r,a.y+2*s)),c.push(new SuperMapAlgoPlot.Point(a.x-r,a.y-2*s)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c),this.scalePoints=[],this.addScalePoint(a);var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,r,r,90);this.addScalePoint(g),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25500=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.02)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.02));for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i=(l-e)/50,n=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,i,!1),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n),r=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,i,!0),s={surroundLineFlag:!1,lineWidthLimit:!0};a>SuperMapAlgoPlot.PlottingUtil.polylineDistance(r)?(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,r,s)):(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n,s),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,r));var p=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=.5*this.getSubSymbolScaleValue());var P=this.scaleValues[0],c=this.scaleValues[1],g=this.scaleValues[2],S=new SuperMapAlgoPlot.Point(p.x+u*P,p.y+u*c),h=g*u,f=new SuperMapAlgoPlot.Point(S.x-4*h,S.y+h/2),y=new SuperMapAlgoPlot.Point(S.x-4*h,S.y-h/2),A=[];A.push(f),A.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);var M=new SuperMapAlgoPlot.Point(S.x-4*h,S.y),b=new SuperMapAlgoPlot.Point(S.x-1.5*h,S.y);(A=[]).push(M),A.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);for(var d=new SuperMapAlgoPlot.Point(S.x,S.y-h),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(d,2*h,2*h,60),v=SuperMapAlgoPlot.PlottingUtil.circlePoint(d,2*h,2*h,120),O=new SuperMapAlgoPlot.Point((m.x+v.x)/2,m.y),U=[],L=0;L<=180;L+=3)U.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(O,h,h,L));A=[];for(var w=0;w<U.length;w++)A.push(U[w].clone());A.push(v.clone()),A.push(d.clone()),A.push(m.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,A);var V=new SuperMapAlgoPlot.Point(S.x+4*h,S.y),_=new SuperMapAlgoPlot.Point(S.x+1.5*h,S.y);(A=[]).push(V.clone()),A.push(_.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);var T=new SuperMapAlgoPlot.Point(S.x+4*h,S.y+h/2),x=new SuperMapAlgoPlot.Point(S.x+4*h,S.y-h/2);(A=[]).push(T.clone()),A.push(x.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A),this.scalePoints=[],this.addScalePoint(S.clone());var E=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,h,h,90);this.addScalePoint(E.clone()),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t&&1!=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o,i,n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(a,0))return;if(0==t)o=(e.x-n.x)/a,this.scaleValues[0]=o,i=(e.y-n.y)/a,this.scaleValues[1]=i;else if(1==t){o=this.scaleValues[0],i=this.scaleValues[1];var r=new SuperMapAlgoPlot.Point(n.x+a*o,n.y+a*i),s=SuperMapAlgoPlot.PlottingUtil.distance(r,e)/a;this.scaleValues[2]=s}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25400=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5));for(var i=this.getLinePts(e,this.scaleValues[0]),n=this.getLinePts(e,1.2*this.scaleValues[0]),a=SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt),r=[],s=[],p=0;p<=n.startIndex;p++)r.push(e[p]);if(r.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r),n.endIndex<=e.length){s.push(n.endPt);for(var u=n.endIndex+1;u<=e.length-1;u++)s.push(e[u]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s)}var P=e[0],c=e[1],g=e[e.length-2],S=e[e.length-1],h=.3*a,f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(h,c,P),y=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(h,g,S),A=f.pntLeft,M=y.pntLeft,b=[];b.push(P),b.push(A),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b);var d=[];d.push(S),d.push(M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d);var m=SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,v=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),O=new SuperMapAlgoPlot.Point(.1*a,0),U=new SuperMapAlgoPlot.Point(.5*a,0),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,O,m),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,U,m),V=[];V.push(L),V.push(w);var _={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,V,_);var T=new SuperMapAlgoPlot.Point(.35*a,0),x=SuperMapAlgoPlot.PlottingUtil.circlePoint(T,.2*a,.2*a,135),E=SuperMapAlgoPlot.PlottingUtil.circlePoint(T,.2*a,.2*a,225),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,T,m),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,x,m),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,E,m);(V=[]).push(j),V.push(Y),V.push(C),_={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,V,_);var I=new SuperMapAlgoPlot.Point(-.1*a,0),B=new SuperMapAlgoPlot.Point(-.5*a,-.15*a),R=new SuperMapAlgoPlot.Point(-.5*a,.15*a),N=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,I,m),D=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,B,m),k=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,R,m);(V=[]).push(N),V.push(D),V.push(k),V.push(N),_={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,V,_);var z=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,e),F=SuperMapAlgoPlot.PlottingUtil.circlePoint(z.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,m);this.addScalePoint(F,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25301=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 l=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===l.scaleValues.length&&l.scaleValues.push(.068),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&this.scaleValues.push(.068),0==this.subSymbols.length&&(this.subSymbols.push(new SuperMapAlgoPlot.SubSymbol(100,300)),this.subSymbols.push(new SuperMapAlgoPlot.SubSymbol(100,6200)));var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0],o=l*e,i=SuperMapAlgoPlot.PlottingUtil.paraLine(t,o,!0),n=SuperMapAlgoPlot.PlottingUtil.paraLine(t,o,!1),a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(e/2,n);if(a.bfind){var r=a.pts.clone(),s=a.index,p=(l=this.scaleValues[0])*e,u=[];u.push(r);for(var P=s;P>=0;P--)u.push(n[P]);if((a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(p,u)).bfind){var c=a.index,g=a.pts.clone(),S=[];S.push(g);for(var h=c+1;h<u.length;h++)S.push(u[h].clone());var f={surroundLineFlag:!1,fillLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,f);var y=[];y.push(r);for(var A=s+1;A<n.length;A++)y.push(n[A]);if((a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(p,y)).bfind){var M=a.index,b=a.pts.clone();(S=[]).push(b);for(var d=M+1;d<y.length;d++)S.push(y[d].clone());this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1});var m=SuperMapAlgoPlot.PlottingUtil.radian(g,b)*SuperMapAlgoPlot.PlottingUtil.RTOD,v=new SuperMapAlgoPlot.Point((g.x+b.x)/2,(g.y+b.y)/2);if(this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],v,p,m+90),e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i),(a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(e/2,i)).bfind){var O=a.index,U=a.pts.clone(),L=[];L.push(U);for(var w=O;w>=0;w--)L.push(i[w]);if((a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(p,L)).bfind){var V=a.index,_=a.pts.clone(),T=[];T.push(_);for(var x=V+1;x<L.length;x++)T.push(L[x]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T);var E=[];E.push(U);for(var Y=O+1;Y<i.length;Y++)E.push(i[Y]);if((a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(p,E)).bfind){var j=a.index,C=a.pts.clone();(T=[]).push(C);for(var I=j+1;I<E.length;I++)T.push(E[I]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T,f);var B=SuperMapAlgoPlot.PlottingUtil.radian(_,C)*SuperMapAlgoPlot.PlottingUtil.RTOD,R=new SuperMapAlgoPlot.Point((_.x+C.x)/2,(_.y+C.y)/2);this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],R,p,B);var N=SuperMapAlgoPlot.PlottingUtil.linePnt(u[u.length-1],L[L.length-1],3*o),D=SuperMapAlgoPlot.PlottingUtil.linePnt(L[L.length-1],u[u.length-1],3*o);(T=[]).push(N),T.push(D),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T,f);var k=SuperMapAlgoPlot.PlottingUtil.linePnt(y[y.length-1],E[E.length-1],3*o),z=SuperMapAlgoPlot.PlottingUtil.linePnt(E[E.length-1],y[y.length-1],3*o);(T=[]).push(k),T.push(z),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T,f),this.scalePoints=[],this.addScalePoint(N.clone()),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o/2;i>=.4&&(i=.4),this.scaleValues[0]=i}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25300=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 l=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===l.scaleValues.length&&l.scaleValues.push(.068),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0],o=l*e,i=SuperMapAlgoPlot.PlottingUtil.paraLine(t,o,!0),n=SuperMapAlgoPlot.PlottingUtil.paraLine(t,o,!1),a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(e/2,n);if(a.bfind){var r=a.pts.clone(),s=a.index,p=(l=this.scaleValues[0])*e,u=[];u.push(r);for(var P=s;P>=0;P--)u.push(n[P]);if((a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(p,u)).bfind){var c=a.index,g=a.pts.clone(),S=[];S.push(g);for(var h=c+1;h<u.length;h++)S.push(u[h].clone());var f={surroundLineFlag:!1,fillLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,f);var y=[];y.push(r);for(var A=s+1;A<n.length;A++)y.push(n[A]);if((a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(p,y)).bfind){var M=a.index,b=a.pts.clone();(S=[]).push(b);for(var d=M+1;d<y.length;d++)S.push(y[d].clone());this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1});var m=SuperMapAlgoPlot.PlottingUtil.radian(g,b)*SuperMapAlgoPlot.PlottingUtil.RTOD,v=new SuperMapAlgoPlot.Point((g.x+b.x)/2,(g.y+b.y)/2);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],v,p,m);var O=u[u.length-1].clone(),U=SuperMapAlgoPlot.PlottingUtil.circlePoint(O,.3*o,.3*o,m+30),L=SuperMapAlgoPlot.PlottingUtil.circlePoint(O,.3*o,.3*o,m+180),w=SuperMapAlgoPlot.PlottingUtil.circlePoint(O,.3*o,.3*o,m+330);(S=[]).push(U),S.push(L),S.push(w);var V={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};if(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,V,!0),e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i),(a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(e/2,i)).bfind){var _=a.index,T=a.pts.clone(),x=[];x.push(T);for(var E=_;E>=0;E--)x.push(i[E]);if((a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(p,x)).bfind){var Y=a.index,j=a.pts.clone(),C=[];C.push(j);for(var I=Y+1;I<x.length;I++)C.push(x[I]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,C);var B=[];B.push(T);for(var R=_+1;R<i.length;R++)B.push(i[R]);if((a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(p,B)).bfind){var N=a.index,D=a.pts.clone();(C=[]).push(D);for(var k=N+1;k<B.length;k++)C.push(B[k]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,C,f);var z=SuperMapAlgoPlot.PlottingUtil.radian(j,D)*SuperMapAlgoPlot.PlottingUtil.RTOD,F=new SuperMapAlgoPlot.Point((j.x+D.x)/2,(j.y+D.y)/2);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[1],F,p,z+90);var G=x[x.length-1].clone(),K=SuperMapAlgoPlot.PlottingUtil.circlePoint(G,.3*o,.3*o,m+30),W=SuperMapAlgoPlot.PlottingUtil.circlePoint(G,.3*o,.3*o,m+180),q=SuperMapAlgoPlot.PlottingUtil.circlePoint(G,.3*o,.3*o,m+330);(S=[]).push(K),S.push(W),S.push(q),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,V,!0);var J=SuperMapAlgoPlot.PlottingUtil.linePnt(W,L,3*o),Z=SuperMapAlgoPlot.PlottingUtil.linePnt(L,W,3*o);(C=[]).push(J),C.push(Z),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,C,f);var X=SuperMapAlgoPlot.PlottingUtil.linePnt(y[y.length-1],B[B.length-1],3*o),H=SuperMapAlgoPlot.PlottingUtil.linePnt(B[B.length-1],y[y.length-1],3*o);(C=[]).push(X),C.push(H),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,C,f),this.scalePoints=[],this.addScalePoint(J.clone()),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o/2;i>=.45&&(i=.45),this.scaleValues[0]=i}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25202=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 l=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===l.scaleValues.length&&l.scaleValues.push(.025),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var l,o=e*this.scaleValues[0];l=SuperMapAlgoPlot.PlottingUtil.paraLine(t,o,!0);var i;i=SuperMapAlgoPlot.PlottingUtil.paraLine(t,o,!1),this.addScalePoint(i[0]);var n=i[i.length-1],a=l[l.length-1],r=SuperMapAlgoPlot.PlottingUtil.distance(n,a),s=.3*r,p=l[l.length-2],u=l[l.length-1],P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,p,u).pntLeft;p=i[i.length-2],u=i[i.length-1];var c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,p,u).pntRight,g=r;p=i[i.length-1],u=t[t.length-1];var S=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(g,p,u).pntRight,h=[];h.push(P),h.push(S),h.push(c);var f=[];f=(f=f.concat(l)).concat(h);for(var y=i.length-1;y>=0;--y)f.push(i[y]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o;if(i>.5)return;this.scaleValues[0]=i}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25201=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=l*this.scaleValues[0],i=e[e.length-1];if(e.length>2){for(var n=-1,a=e.length-2;a>=0;a--)if(o<SuperMapAlgoPlot.PlottingUtil.distance(i,e[a])){n=a;break}e.splice(n+1,e.length-n),e.push(i)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);var r=e[e.length-2],s=e[e.length-1],p=o,u=180*SuperMapAlgoPlot.PlottingUtil.radian(r,s)/Math.PI,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,u+157.5),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,u+202.5),g=[];g.push(P),g.push(i),g.push(c);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0);var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,u);this.addScalePoint(S),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[l.length-1])/o;if(i>.2)return;this.scaleValues[0]=i}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25200=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 l=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 6!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.148),l.scaleValues.push(.4),l.scaleValues.push(.312),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}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,SuperMapAlgoPlot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),SuperMapAlgoPlot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var e=new SuperMapAlgoPlot.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(t.splice(0,2),t.unshift(e),this.subSymbols.length>0){var l;if(null==this.subSymbols[0].symbolData)return;l=Math.max(this.subSymbols[0].symbolData.symbolSize.x,this.subSymbols[0].symbolData.symbolSize.y);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=o*this.scaleValues[4],n=o*this.scaleValues[5],a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,t),r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,t),s=SuperMapAlgoPlot.PlottingUtil.radian(r.pts,a.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD+270,p=100*SuperMapAlgoPlot.PlottingUtil.distance(a.pts,r.pts)/l,u=new SuperMapAlgoPlot.Point((r.pts.x+a.pts.x)/2,(a.pts.y+r.pts.y)/2);if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],u,p,s),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone()),r.pts.isScalePoint=!0,r.pts.tag=this.scalePoints.length,this.scalePoints.push(r.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMapAlgoPlot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var o=new SuperMapAlgoPlot.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),i=SuperMapAlgoPlot.PlottingUtil.clonePoints(l);i.splice(0,2),i.unshift(o);var n=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,i),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i);if(3===t&&null==n.pt&&(n.pt=o.clone()),-1==n.index&&4==t)this.scaleValues[t+1]=.01;else{var r=SuperMapAlgoPlot.PlottingUtil.clonePoints(i);r.splice(0,n.index+1),r.unshift(n.pt);var s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(r);a<s&&(s=a),this.scaleValues[t+1]=(a-s)/a,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5)}}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25101=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.105263),l.scaleValues.push(.105263),l.scaleValues.push(.181818),l.scaleValues.push(.285714),l.scaleValues.push(.285714)),l}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,SuperMapAlgoPlot.AlgoSymbol25000),o(e,[{key:"calculateParts",value:function(){this.init();var t=this.GetGoPts();if(0!=t.length){0==this.scaleValues.length&&(this.scaleValues.push(.105263),this.scaleValues.push(.105263),this.scaleValues.push(.181818),this.scaleValues.push(.285714),this.scaleValues.push(.285714));var e=t[0].clone(),l=t[1].clone(),o=SuperMapAlgoPlot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMapAlgoPlot.Point(0,-o*i),a=new SuperMapAlgoPlot.Point(0,o*i),r=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMapAlgoPlot.Point(o*(1-s),-o*r),u=new SuperMapAlgoPlot.Point(o*(1-s),o*r),P=this.scaleValues[2],c=this.scaleValues[4],g=new SuperMapAlgoPlot.Point(o*(1-c),-o*P),S=new SuperMapAlgoPlot.Point(o*(1-c),o*P),h=new SuperMapAlgoPlot.Point(o,0),f=SuperMapAlgoPlot.PlottingUtil.radian(e,l),y=[];y.push(n),y.push(p),y.push(g),y.push(h),y.push(S),y.push(u),y.push(a);for(var A,M=[],b=0;b<y.length;b++)A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,y[b],f*SuperMapAlgoPlot.PlottingUtil.RTOD),M.push(A);for(var d=[],m=M.length-1;m>=0;--m)d.push(M[m]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M),this.scalePoints=[];var v=M[0].clone();v.isScalePoint=!0,v.tag=0,this.scalePoints.push(v);var O=M[1].clone();O.isScalePoint=!0,O.tag=1,this.scalePoints.push(O);var U=M[2].clone();U.isScalePoint=!0,U.tag=2,this.scalePoints.push(U);var L=.08125*o,w=new SuperMapAlgoPlot.Point(h.x-L,0),V=new SuperMapAlgoPlot.Point(w.x-L/2,0),_=new SuperMapAlgoPlot.Point(w.x+L/2,0),T=[];A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,V,f*SuperMapAlgoPlot.PlottingUtil.RTOD),T.push(A.clone()),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,_,f*SuperMapAlgoPlot.PlottingUtil.RTOD),T.push(A.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T);var x=new SuperMapAlgoPlot.Point(w.x,w.y-L/2),E=new SuperMapAlgoPlot.Point(w.x,w.y+L/2),Y=[];A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,E,f*SuperMapAlgoPlot.PlottingUtil.RTOD),Y.push(A.clone()),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,x,f*SuperMapAlgoPlot.PlottingUtil.RTOD),Y.push(A.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,Y),this.finish()}}},{key:"GetGoPts",value:function(){var t=[];return this.controlPoints.length<this.minEditPts?t:(t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),1==(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length&&(t=[]),t)}}]),e}();SuperMapAlgoPlot.AlgoSymbol25101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25100=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.285714),l.scaleValues.push(.285714),l.scaleValues.push(.5),l.scaleValues.push(.333333),l.scaleValues.push(.333333)),l}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,SuperMapAlgoPlot.AlgoSymbol25000),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.285714),this.scaleValues.push(.285714),this.scaleValues.push(.5),this.scaleValues.push(.333333),this.scaleValues.push(.333333));var e=t[0].clone(),l=t[1].clone(),o=SuperMapAlgoPlot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMapAlgoPlot.Point(0,-o*i),a=new SuperMapAlgoPlot.Point(0,o*i),r=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMapAlgoPlot.Point(o*(1-s),-o*r),u=new SuperMapAlgoPlot.Point(o*(1-s),o*r),P=this.scaleValues[2],c=this.scaleValues[4],g=new SuperMapAlgoPlot.Point(o*(1-c),-o*P),S=new SuperMapAlgoPlot.Point(o*(1-c),o*P),h=new SuperMapAlgoPlot.Point(o,0),f=SuperMapAlgoPlot.PlottingUtil.radian(e,l),y=[];y.push(n),y.push(p),y.push(g),y.push(h),y.push(S),y.push(u),y.push(a);for(var A,M=[],b=0;b<y.length;b++)A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,y[b],f*SuperMapAlgoPlot.PlottingUtil.RTOD),M.push(A);for(var d=[],m=M.length-1;m>=0;--m)d.push(M[m]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M),this.scalePoints=[];var v=M[0].clone();v.isScalePoint=!0,v.tag=0,this.scalePoints.push(v);var O=M[1].clone();O.isScalePoint=!0,O.tag=1,this.scalePoints.push(O);var U=M[2].clone();U.isScalePoint=!0,U.tag=2,this.scalePoints.push(U);var L=.04*o,w=.0475*o,V=new SuperMapAlgoPlot.Point(h.x-L,0),_=new SuperMapAlgoPlot.Point(g.x,g.y+w),T=SuperMapAlgoPlot.PlottingUtil.intersectLines(p,g,V,_),x=T.intersectPoint;if(0!=T.isIntersectLines){var E=new SuperMapAlgoPlot.Point(S.x,S.y-w),Y=(T=SuperMapAlgoPlot.PlottingUtil.intersectLines(S,u,V,E)).intersectPoint;if(0!=T.isIntersectLines){var j=[];j.push(x),j.push(V),j.push(Y);for(var C=[],I=0;I<j.length;I++)A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,j[I],f*SuperMapAlgoPlot.PlottingUtil.RTOD),C.push(A);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,C),this.finish()}}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25000=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.222222),l.scaleValues.push(.5),l.scaleValues.push(.5),l.scaleValues.push(.5)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.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(),l=t[1].clone(),o=SuperMapAlgoPlot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMapAlgoPlot.Point(0,-o*i),a=new SuperMapAlgoPlot.Point(0,o*i),r=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMapAlgoPlot.Point(o*(1-s),-o*r),u=new SuperMapAlgoPlot.Point(o*(1-s),o*r),P=this.scaleValues[2],c=this.scaleValues[4],g=new SuperMapAlgoPlot.Point(o*(1-c),-o*P),S=new SuperMapAlgoPlot.Point(o*(1-c),o*P),h=new SuperMapAlgoPlot.Point(o,0),f=SuperMapAlgoPlot.PlottingUtil.radian(e,l),y=[];y.push(n),y.push(p),y.push(g),y.push(h),y.push(S),y.push(u),y.push(a);for(var A=[],M=0;M<y.length;M++){var b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,y[M],f*SuperMapAlgoPlot.PlottingUtil.RTOD);A.push(b)}for(var d=[],m=A.length-1;m>=0;--m)d.push(A[m]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d),this.scalePoints=[];var v=A[0].clone();v.isScalePoint=!0,v.tag=0,this.scalePoints.push(v);var O=A[1].clone();O.isScalePoint=!0,O.tag=1,this.scalePoints.push(O);var U=A[2].clone();U.isScalePoint=!0,U.tag=2,this.scalePoints.push(U),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o,i=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]),n=l[0].clone(),a=l[1].clone(),r=e.clone();if(0==t){var s=SuperMapAlgoPlot.PlottingUtil.distance(r,n)/i;this.scaleValues[0]=s}else if(1==t){o=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,n,a);var p=SuperMapAlgoPlot.PlottingUtil.distance(o,r)/i;this.scaleValues[1]=p;var u=SuperMapAlgoPlot.PlottingUtil.distance(o,a)/i;this.scaleValues[3]=u}else if(2==t){o=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,n,a);var P=SuperMapAlgoPlot.PlottingUtil.distance(o,r)/i;this.scaleValues[2]=P;var c=SuperMapAlgoPlot.PlottingUtil.distance(o,a)/i;this.scaleValues[4]=c}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol24700=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.025),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e;0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(.025),this.scaleValues.push(0)),e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=new SuperMapAlgoPlot.Point(0,0),o=this.scaleValues[0],i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),n=o*i;if(!this.isEdit){var a=this.getDefaultSubSymbolSize()/i;(a>.3||a<=0)&&(a=.3),this.scaleValues[1]=a}var r=this.scaleValues[1]*SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),s=0,p=.3*n;this.ComputeDashLine(3*i/19,i/19,e);var u=e[1].clone(),P=e[0].clone(),c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,u,P),g=c.pntRight,S=c.pntLeft,h=[];h.push(S.clone()),h.push(g.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);for(var f=3*p,y=e[0].clone(),A=0;A<=i;A+=f){s=A+2*p;var M=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,e);if(M.bfind){if(l=M.pts,M.index>=e.length)break;var b,d,m,v,O,U,L,w=[];if(w.push(y.clone()),w.push(l.clone()),0==A){var V=l.clone();V.isScalePoint=!0,V.tag=0,this.scalePoints.push(V);var _=g.clone();_.isScalePoint=!0,_.tag=1,this.scalePoints.push(_)}if(0==this.scaleValues[2]){b=new SuperMapAlgoPlot.Point((y.x+l.x)/2,(y.y+l.y)/2),d=y.clone(),m=b.clone(),P=l.clone();var T=(c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,d,m)).pntLeft;v=SuperMapAlgoPlot.PlottingUtil.linePnt(b,d,.3*r),O=SuperMapAlgoPlot.PlottingUtil.linePnt(b,P,.3*r),0==A&&((U=T.clone()).isScalePoint=!0,U.tag=2,this.scalePoints.push(U)),(L=[]).push(T.clone()),L.push(v.clone()),L.push(O.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,L)}else{b=new SuperMapAlgoPlot.Point((y.x+l.x)/2,(y.y+l.y)/2),d=y.clone(),m=b.clone(),P=l.clone();var x=(c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,d,m)).pntRight;v=SuperMapAlgoPlot.PlottingUtil.linePnt(b,d,.3*p),O=SuperMapAlgoPlot.PlottingUtil.linePnt(b,P,.3*p),0==A&&((U=x.clone()).isScalePoint=!0,U.tag=2,this.scalePoints.push(U)),(L=[]).push(x.clone()),L.push(v.clone()),L.push(O.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,L)}if(s=A+3*p,(M=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,e)).bfind){if(l=M.pts,!(M.index<e.length))break;y=l}}}u=e[e.length-2].clone(),P=e[e.length-1].clone(),c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,u,P),(h=[]).push(c.pntLeft.clone()),h.push(c.pntRight.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t&&1!=t&&2!=t)return;var l,o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var i,n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),a=e.clone(),r=l[0].clone();if(0==t)i=SuperMapAlgoPlot.PlottingUtil.distance(a,r)/.6/n,this.scaleValues[0]=i;else if(1==t)i=SuperMapAlgoPlot.PlottingUtil.distance(a,r)/n,this.scaleValues[1]=i;else if(2==t){var s=this.scaleValues[0]*n,p=.01*n,u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(p,l);if(!u.bfind)return;var P=u.index,c=u.pts.clone();if(!(u.index<l.length))return;var g=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,l[P],c).pntLeft.clone(),S=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,g,c);(g.x-c.x)*(S.x-c.x)+(g.y-c.y)*(S.y-c.y)>=0?this.scaleValues[2]=0:this.scaleValues[2]=1}}}},{key:"ComputeDashLine",value:function(t,e,l){for(var o,i,n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),a=l[0].clone(),r=1,s=0,p=!0,u=!0;s<n;){var P;(i=[]).push(a),s+=t;var c=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,l);if(P=c.index,o=c.pts,!(p=c.bfind))break;if(r<P)for(var g=r;g<P;g++)i.push(l[g]);i.push(o),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i),s+=e;var S=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,l);if(P=S.index,a=S.pts,r=P+1,!(u=S.bfind))break}if(!p){(i=[]).push(a);for(var h=r;h<l.length;h++)i.push(l[h]);2===i.length&&0===SuperMapAlgoPlot.PlottingUtil.distance(i[0],i[1])||this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i)}if(!u){var f=l[l.length-1],y=SuperMapAlgoPlot.PlottingUtil.distance(o,f);if(y*=.01,!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(y,0)){var A=SuperMapAlgoPlot.PlottingUtil.linePnt(f,o,y);(i=[]).push(A),i.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i)}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol24700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23902=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.125),l.scaleValues.push(90)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l,o,i,n=[];if(2==t.length){e=t[0],l=t[1];var a=SuperMapAlgoPlot.PlottingUtil.distance(e,l);i=180*SuperMapAlgoPlot.PlottingUtil.radian(e,l)/Math.PI,o=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,a,a,i+60),n.push(e),n.push(o),n.push(l)}else n=n.concat(t);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n),n.push(n[0]);var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n),s=this.scaleValues[0],p=this.scaleValues[1],u=this.scaleValues[2],P=this.scaleValues[4],c=r*s;e=n[0],l=n[1],o=n[2];var g,S=r*p,h=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(e,l,o)/Math.PI*u,f=180*SuperMapAlgoPlot.PlottingUtil.radian(e,l)/Math.PI,y=f-h,A=f+h,M=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,S,S,y),b=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,S,S,A);g=SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(n,M)?M:b;var d=r*this.scaleValues[3];i=P,0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],g,d,i-90);var m=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,c,c,f+180);this.addScalePoint(m),this.addScalePoint(g);var v=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,.5*d,.5*d,i);this.addScalePoint(v),this.createArcPts(n,c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i,n,a,r,s,p,u=[];2==l.length?(o=l[0],i=l[1],r=SuperMapAlgoPlot.PlottingUtil.distance(o,i),a=180*SuperMapAlgoPlot.PlottingUtil.radian(o,i)/Math.PI,n=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,r,r,a+60),u.push(o),u.push(i),u.push(n)):u=u.concat(l),o=u[0],i=u[1],n=u[2],u.push(u[0]);var P=SuperMapAlgoPlot.PlottingUtil.polylineDistance(u),c=e;if(0===t)r=SuperMapAlgoPlot.PlottingUtil.distance(c,u[0]),this.scaleValues[0]=r/P;else if(1===t){s=SuperMapAlgoPlot.PlottingUtil.distance(c,u[0])/P,this.scaleValues[1]=s,a=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(o,i,n)/Math.PI,0<=(p=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(o,i,c)/Math.PI/a)&&1>=p&&(this.scaleValues[2]=p)}else if(2===t){s=this.scaleValues[1],p=this.scaleValues[2];var g,S=P*s,h=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(o,i,n)/Math.PI*p,f=180*SuperMapAlgoPlot.PlottingUtil.radian(o,i)/Math.PI,y=f-h,A=f+h,M=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,S,S,y),b=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,S,S,A);g=SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(u,M)?M:b;var d=2*SuperMapAlgoPlot.PlottingUtil.distance(c,g)/P;this.scaleValues[3]=d;var m=180*SuperMapAlgoPlot.PlottingUtil.radian(g,c)/Math.PI;this.scaleValues[4]=m}}}},{key:"ComputeSubSymbolPt",value:function(t,e,l,o){var i,n,a=l[0],r=l[1],s=l[2],p=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(s,a,r)*t,u=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(r,a,s)*e,P=[];if(SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(a,r,o)?((i=[]).push(a),i.push(r),P=SuperMapAlgoPlot.PlottingUtil.paraLine(i,p,!1)):((i=[]).push(a),i.push(r),P=SuperMapAlgoPlot.PlottingUtil.paraLine(i,p,!0)),SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(a,s,o)?((i=[]).push(a),i.push(s),n=SuperMapAlgoPlot.PlottingUtil.paraLine(i,u,!1)):((i=[]).push(a),i.push(s),n=SuperMapAlgoPlot.PlottingUtil.paraLine(i,u,!0)),2>P.length||2>n.length)return o;var c=SuperMapAlgoPlot.PlottingUtil.intersectLines(P[0],P[1],n[0],n[1]);return c.isIntersectLines?c.intersectPoint:o}},{key:"createArcPts",value:function(t,e){for(var l=[],o=[],i=0;i<t.length;i++)o.push(e),l.push([{Start:0,End:360}]);for(var n=0;n<t.length;n++)if(0!==l[n].length&&(0!==l[n][0].Start||0!==l[n][0].End))for(var a=n+1;a<t.length;a++)if(0!==l[a].length&&(0!==l[a][0].Start||0!==l[a][0].End)){var r=SuperMapAlgoPlot.PlottingUtil.distance(t[n],t[a]);if(r<o[n]+o[a])if(r>Math.abs(o[n]-o[a]))for(var s=0;s<2;s++){var p,u,P;0==s?(P=n,p=SuperMapAlgoPlot.PlottingUtil.radian(t[n],t[a])*SuperMapAlgoPlot.PlottingUtil.RTOD,u=Math.acos((r*r+o[n]*o[n]-o[a]*o[a])/(2*r*o[n]))*SuperMapAlgoPlot.PlottingUtil.RTOD):(P=a,p=SuperMapAlgoPlot.PlottingUtil.radian(t[a],t[n])*SuperMapAlgoPlot.PlottingUtil.RTOD,u=Math.acos((r*r+o[a]*o[a]-o[n]*o[n])/(2*r*o[a]))*SuperMapAlgoPlot.PlottingUtil.RTOD);var c=p-u,g=p+u,S=c<0&&g>0||c>360||g>360;c=this.adjustAngle(c),g=this.adjustAngle(g);for(var h=l[P].length-1;h>=0;h--)if(S){if(g>l[P][h].End||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(g,l[P][h].End)){l[P].splice(h,1);continue}if(g>l[P][h].Start&&(l[P][h].Start=g),c<l[P][h].Start||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(c,l[P][h].Start)){l[P].splice(h,1);continue}c<l[P][h].End&&(l[P][h].End=c)}else if(c<l[P][h].Start&&g>l[P][h].End)l[P].splice(h,1);else if(c>l[P][h].Start&&g<l[P][h].End)l[P].push({Start:l[P][h].Start,End:c}),l[P].push({Start:g,End:l[P][h].End}),l[P].splice(h,1);else{if(c>l[P][h].End)continue;if(c>l[P][h].Start&&(l[P][h].End=c),g<l[P][h].Start)continue;g<l[P][h].End&&(l[P][h].Start=g)}}else{if(o[n]<o[a]){l[n][0].Start=0,l[n][0].End=0;break}l[a][0].Start=0,l[a][0].End=0}}for(var f=0;f<t.length;f++)if(0!==l[f].length&&(0!==l[f][0].Start||0!==l[f][0].End))for(var y=l[f].length-1;y>=0;y--){for(var A=this.adjustAngle(l[f][y].Start),M=this.adjustAngle(l[f][y].End);M<A;)M+=360;for(var b=[],d=(M-A)/72,m=A;m<M+d/2;m+=d){var v=t[f].x+o[f]*Math.cos(m*SuperMapAlgoPlot.PlottingUtil.DTOR),O=t[f].y+o[f]*Math.sin(m*SuperMapAlgoPlot.PlottingUtil.DTOR);b.push(new SuperMapAlgoPlot.Point(v,O))}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b)}}},{key:"adjustAngle",value:function(t){for(;t>360;)t-=360;for(;t<0;)t+=360;return t}},{key:"GetCirclePts",value:function(t,e,l,o){var i=180*SuperMapAlgoPlot.PlottingUtil.radian(t,e)/Math.PI,n=180*SuperMapAlgoPlot.PlottingUtil.radian(t,l)/Math.PI,a=i;n>i&&(a=n);for(var r=[],s=a;s<360+a;s+=4)90==s&&(s=91),r.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,o,o,s));return r.push[0],r}},{key:"CreatArc",value:function(t,e,l){for(var o=[],i=[],n=0;n<t.length;n++){var a=t[n];SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(e,a)||SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(l,a)?(i.length>1&&o.push(i),i=[]):i.push(a)}i.length>1&&o.push(i);for(var r=0;r<o.length;r++){var s=o[r];this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s)}}},{key:"GetArcPts3D",value:function(t,e,l){for(var o=[],i=[],n=0;n<t.length;n++){var a=t[n];SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(e,a)||SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(l,a)?(i.length>1&&o.push(i),i=[]):i.push(a)}i.length>1&&o.push(i);for(var r=[],s=0;s<o.length;s++)r=r.concat(o[s]);return r}},{key:"sortPts",value:function(t,e){t=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);for(var l=0;l<e.length;l++)for(var o=e[l],i=180*SuperMapAlgoPlot.PlottingUtil.radian(t,o)/Math.PI,n=0;n<e.length;n++){var a=e[n],r=180*SuperMapAlgoPlot.PlottingUtil.radian(t,a)/Math.PI;if(i>r){var s=new SuperMapAlgoPlot.Point(o.x,o.y);o=new SuperMapAlgoPlot.Point(a.x,a.y),a=new SuperMapAlgoPlot.Point(s.x,s.y),i=r,e[l]=o,e[n]=a}}return e}}]),e}();SuperMapAlgoPlot.AlgoSymbol23902=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23901=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.333333),l.scaleValues.push(.333333),l.scaleValues.push(.125),l.scaleValues.push(90)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=[];if(2==t.length){var o=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),i=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),n=SuperMapAlgoPlot.PlottingUtil.distance(o,i);e=180*SuperMapAlgoPlot.PlottingUtil.radian(o,i)/Math.PI;var a=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,n,n,e+60);l.push(t[0]),l.push(i),l.push(a),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l)}else{this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);for(var r=0;r<t.length;r++)l.push(t[r])}var s=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);l.push(l[0]);var p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(!this.isEdit){var u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.scaleValues[2]=2*u*this.getSubSymbolScaleValue()/p}var P=this.scaleValues[0],c=this.scaleValues[1],g=this.scaleValues[2],S=this.scaleValues[3],h=this.ComputeSubSymbolPt(P,c,l,s),f=p*g,y=h;e=S-90,0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],y,f,e),this.addScalePoint(y);var A=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,f,f,S);this.addScalePoint(A),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i,n,a=[];if(2==l.length){o=l[0],i=l[1];var r=SuperMapAlgoPlot.PlottingUtil.distance(o,i),s=180*SuperMapAlgoPlot.PlottingUtil.radian(o,i)/Math.PI;n=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,r,r,s+60),a.push(o),a.push(i),a.push(n)}else a=a.concat(l);o=a[0],i=a[1],n=a[2];var p=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(a);a.push(a[0]);var u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(a),P=e;if(0==t){var c=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(n,o,i),g=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(i,o,n),S=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(P,o,i)/c,h=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(P,o,n)/g;S>1&&(S=1),h>1&&(h=1),this.scaleValues[0]=S,this.scaleValues[1]=h}else if(1==t){var f=this.scaleValues[0],y=this.scaleValues[1],A=this.ComputeSubSymbolPt(f,y,a,p),M=SuperMapAlgoPlot.PlottingUtil.distance(A,P)/u;this.scaleValues[2]=M;var b=180*SuperMapAlgoPlot.PlottingUtil.radian(A,P)/Math.PI;this.scaleValues[3]=b}}}},{key:"ComputeSubSymbolPt",value:function(t,e,l,o){var i,n,a=l[0],r=l[1],s=l[2],p=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(s,a,r)*t,u=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(r,a,s)*e,P=[];if(SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(a,r,o)?((i=[]).push(a),i.push(r),P=SuperMapAlgoPlot.PlottingUtil.paraLine(i,p,!1)):((i=[]).push(a),i.push(r),P=SuperMapAlgoPlot.PlottingUtil.paraLine(i,p,!0)),SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(a,s,o)?((i=[]).push(a),i.push(s),n=SuperMapAlgoPlot.PlottingUtil.paraLine(i,u,!1)):((i=[]).push(a),i.push(s),n=SuperMapAlgoPlot.PlottingUtil.paraLine(i,u,!0)),2>P.length||2>n.length)return o;var c=SuperMapAlgoPlot.PlottingUtil.intersectLines(P[0],P[1],n[0],n[1]);return c.isIntersectLines?c.intersectPoint:o}}]),e}();SuperMapAlgoPlot.AlgoSymbol23901=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23700=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];3>=t.length?(e=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)):e=t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=i}var n=o*this.scaleValues[0]*.15,a=[];a.push(new SuperMapAlgoPlot.Point(0,n)),a.push(new SuperMapAlgoPlot.Point(-n,0)),a.push(new SuperMapAlgoPlot.Point(0,-n));var r=[];r.push(new SuperMapAlgoPlot.Point(n,n)),r.push(new SuperMapAlgoPlot.Point(0,0)),r.push(new SuperMapAlgoPlot.Point(n,-n));for(var s=new SuperMapAlgoPlot.Point(-3*n,2*n),p=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,s,0),u=[],P=[],c=0;c<3;c++)u.push(new SuperMapAlgoPlot.Point(a[c].x+p.x,a[c].y+p.y)),P.push(new SuperMapAlgoPlot.Point(r[c].x+p.x,r[c].y+p.y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);for(var g=new SuperMapAlgoPlot.Point(3*n,2*n),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,g,0),h=[],f=[],y=0;y<3;y++)h.push(new SuperMapAlgoPlot.Point(a[y].x+S.x,a[y].y+S.y)),f.push(new SuperMapAlgoPlot.Point(r[y].x+S.x,r[y].y+S.y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var A=new SuperMapAlgoPlot.Point(-4*n,-2*n),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,A,0);h=[],f=[];for(var b=0;b<3;b++)h.push(new SuperMapAlgoPlot.Point(a[b].x+M.x,a[b].y+M.y)),f.push(new SuperMapAlgoPlot.Point(r[b].x+M.x,r[b].y+M.y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var d=new SuperMapAlgoPlot.Point(0,-2*n),m=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,d,0);h=[],f=[];for(var v=0;v<3;v++)h.push(new SuperMapAlgoPlot.Point(a[v].x+m.x,a[v].y+m.y)),f.push(new SuperMapAlgoPlot.Point(r[v].x+m.x,r[v].y+m.y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var O=new SuperMapAlgoPlot.Point(4*n,-2*n),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,O,0);h=[],f=[];for(var L=0;L<3;L++)h.push(new SuperMapAlgoPlot.Point(a[L].x+U.x,a[L].y+U.y)),f.push(new SuperMapAlgoPlot.Point(r[L].x+U.x,r[L].y+U.y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol23700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23600=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(-.1),l.scaleValues.push(0),l.scaleValues.push(.1),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){4>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var i=this.getSubSymbolScaleValue()*SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[0]=i/o*.8,this.scaleValues[3]=i/o*.8}var n=this.scaleValues[0],a=this.scaleValues[1],r=this.scaleValues[3],s=this.scaleValues[4],p=this.scaleValues[6],u=this.scaleValues[7],P=this.scaleValues[8],c=this.scaleValues[9],g=new SuperMapAlgoPlot.Point(l.x+o*p,l.y+o*u),S=new SuperMapAlgoPlot.Point(l.x+o*P,l.y+o*c),h=[],f=.15*SuperMapAlgoPlot.PlottingUtil.distance(g,S),y=SuperMapAlgoPlot.PlottingUtil.linePnt(g,S,f),A=SuperMapAlgoPlot.PlottingUtil.linePnt(S,g,f);h.push(y),h.push(A),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var M=o*n,b=a;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],g,M,b);var d=o*r,m=s;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],S,d,m),this.addScalePoint(g);var v=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,M,M,b);this.addScalePoint(v),this.addScalePoint(S);var O=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,d,d,m);this.addScalePoint(O),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;10>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var o=[];o=3>=l.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n,a,r,s=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),u=e;if(0==t)i=(u.x-s.x)/p,this.scaleValues[6]=i,n=(u.y-s.y)/p,this.scaleValues[7]=n;else if(1==t){i=this.scaleValues[6],n=this.scaleValues[7];var P=new SuperMapAlgoPlot.Point(s.x+p*i,s.y+p*n),c=SuperMapAlgoPlot.PlottingUtil.distance(P,u)/p;this.scaleValues[0]=c;var g=180*SuperMapAlgoPlot.PlottingUtil.radian(P,u)/Math.PI;this.scaleValues[1]=g,this.scaleValues[2]=0<=g&&g<90?1:90<=g&&g<180?2:180<=g&&g<270?3:4}else if(2==t)a=(u.x-s.x)/p,this.scaleValues[8]=a,r=(u.y-s.y)/p,this.scaleValues[9]=r;else if(3==t){a=this.scaleValues[8],r=this.scaleValues[9];var S=new SuperMapAlgoPlot.Point(s.x+p*a,s.y+p*r),h=SuperMapAlgoPlot.PlottingUtil.distance(S,u)/p;this.scaleValues[3]=h;var f=180*SuperMapAlgoPlot.PlottingUtil.radian(S,u)/Math.PI;this.scaleValues[4]=f,this.scaleValues[5]=0<=f&&f<90?1:90<=f&&f<180?2:180<=f&&f<270?3:4}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol23600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23500=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{fillLimit:!0,fill:!1,surroundLineFlag:!1});var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.2||i<=0)&&(i=.2),this.scaleValues[0]=i}var n=this.scaleValues[0],a=this.scaleValues[2],r=this.scaleValues[3],s=o*n,p=new SuperMapAlgoPlot.Point(l.x+o*a,l.y+o*r);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,s,0),this.addScalePoint(p);var u=s,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,u,u,90);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n,a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t)i=(e.x-a.x)/r,this.scaleValues[2]=i,n=(e.y-a.y)/r,this.scaleValues[3]=n;else if(1===t){i=this.scaleValues[2],n=this.scaleValues[3];var s=new SuperMapAlgoPlot.Point(a.x+r*i,a.y+r*n),p=SuperMapAlgoPlot.PlottingUtil.distance(s,e)/r;this.scaleValues[0]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol23500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23400=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e),this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var l=this.scaleValues[0],o=this.scaleValues[1],i=this.scaleValues[2],n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),r=a*i,s=new SuperMapAlgoPlot.Point(n.x+a*l,n.y+a*o);if(this.subSymbols.length>0){if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],s,r,0),this.addScalePoint(s);var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,r,r,0);this.addScalePoint(p)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var o=[];o=3>=l.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n,a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t)i=(e.x-a.x)/r,this.scaleValues[0]=i,n=(e.y-a.y)/r,this.scaleValues[1]=n;else if(1===t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(a.x+r*i,a.y+r*n),p=SuperMapAlgoPlot.PlottingUtil.distance(s,e)/r;this.scaleValues[2]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol23400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol22200=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05));var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.35*this.getSubSymbolScaleValue());var i=o*this.scaleValues[0],n=[];n.push(new SuperMapAlgoPlot.Point(l.x,l.y)),n.push(new SuperMapAlgoPlot.Point(l.x+i,l.y)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,n);var a=[];a.push(new SuperMapAlgoPlot.Point(l.x,l.y+.8*i)),a.push(new SuperMapAlgoPlot.Point(l.x,l.y-.8*i)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a);var r=[];r.push(new SuperMapAlgoPlot.Point(l.x+.8*i,l.y)),r.push(new SuperMapAlgoPlot.Point(l.x-.8*i,l.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol22200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol22103=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.025)),l}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,SuperMapAlgoPlot.AlgoSymbol22000),e}();SuperMapAlgoPlot.AlgoSymbol22103=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol22000=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.03):1===this.scaleValues.length&&(this.scaleValues[1]=.02),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=.6*this.getSubSymbolScaleValue()}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,r=SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,.8*r,a);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var P=i.endIndex+1;P<=e.length-1;P++)p.push(e[P]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p)}var c=e[0],g=e[1],S=e[e.length-2],h=e[e.length-1],f=l*this.scaleValues[1],y=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(f,g,c),A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(f,S,h),M=y.pntLeft,b=A.pntLeft,d=[];d.push(c),d.push(M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d);var m=[];m.push(h),m.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,m);var v=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,e),O=SuperMapAlgoPlot.PlottingUtil.circlePoint(v.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a);this.addScalePoint(O,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMapAlgoPlot.AlgoSymbol22000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21900=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.05,l.scaleValues[2]=.01,l.scaleValues[3]=.02),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0===this.scaleValues.length?(this.scaleValues=[],this.scaleValues[0]=.05,this.scaleValues[1]=.02,this.scaleValues[2]=.01,this.scaleValues[3]=.02):1===this.scaleValues.length&&(this.scaleValues.push(.02),this.scaleValues.push(.01),this.scaleValues.push(.25*this.getSubSymbolScaleValue())),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[3]=.5*o}for(var i=this.getLinePts(e,this.scaleValues[0]),n=[],a=[],r=0;r<=i.startIndex;r++)n.push(e[r]);if(n.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n),i.endIndex<=e.length){a.push(i.endPt);for(var s=i.endIndex+1;s<=e.length-1;s++)a.push(e[s]);this.addArrow(a,this.scaleValues[this.scaleValues.length-1])}var p,u,P,c,g,S,h,f,y,A,M,b,d,m=i.startPt.clone(),v=i.endPt.clone(),O=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),U=SuperMapAlgoPlot.PlottingUtil.distance(m,v),L=SuperMapAlgoPlot.PlottingUtil.radian(m,v)*SuperMapAlgoPlot.PlottingUtil.RTOD;p=new SuperMapAlgoPlot.Point(0,0),u=new SuperMapAlgoPlot.Point(0,0),P=new SuperMapAlgoPlot.Point(0,0),c=new SuperMapAlgoPlot.Point(0,0),g=new SuperMapAlgoPlot.Point(0,0),S=new SuperMapAlgoPlot.Point(0,0),h=new SuperMapAlgoPlot.Point(0,0),f=new SuperMapAlgoPlot.Point(0,0),y=new SuperMapAlgoPlot.Point(0,0),A=new SuperMapAlgoPlot.Point(0,0),M=new SuperMapAlgoPlot.Point(0,0),b=new SuperMapAlgoPlot.Point(0,0),d=new SuperMapAlgoPlot.Point(0,0),m.x>=v.x?(p.x=.25*U,p.y=.25*-U,u.x=.5*-U,u.y=.25*-U,P.x=.5*-U,P.y=.25*U,c.x=.5*U,c.y=.25*U,g.x=.5*U,g.y=0,S.x=.25*-U,S.y=.125*-U,h.x=0,h.y=.125*U,f.x=0,f.y=.125*-U,y.x=.25*U,y.y=.2*U,A.x=.25*-U,A.y=.25*-U,M.x=.375*-U,M.y=.5*-U,b.x=.02*-U,b.y=.25*-U,d.x=.1*U,d.y=.5*-U):(p.x=.25*U,p.y=.25*U,u.x=.5*-U,u.y=.25*U,P.x=.5*-U,P.y=.25*-U,c.x=.5*U,c.y=.25*-U,g.x=.5*U,g.y=0,S.x=.25*U,S.y=.125*-U,h.x=0,h.y=.125*U,f.x=0,f.y=.125*-U,y.x=.25*-U,y.y=.125*U,A.x=.25*-U,A.y=.25*U,M.x=.375*-U,M.y=.5*U,b.x=.02*U,b.y=.25*U,d.x=.15*U,d.y=.5*U);var w=[],V=[],_=[],T=[],x=[],E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,p,L),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,u,L),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,P,L),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,c,L),I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,g,L),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,S,L),R=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,h,L),N=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,f,L),D=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,y,L),k=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,A,L),z=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,M,L),F=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,b,L),G=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,d,L);w.push(E),w.push(Y),w.push(j),w.push(C),w.push(I),V.push(B),V.push(R),V.push(N),V.push(D),_.push(k),_.push(z),T.push(F),T.push(G),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,w,null,!0),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,V,null,!0),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,_,null,!0),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T,null,!0);var K=.3*SuperMapAlgoPlot.PlottingUtil.distance(N,D),W=SuperMapAlgoPlot.PlottingUtil.linePnt(D,N,K),q=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.3*K,D,W);x.push(q.pntLeft),x.push(D),x.push(q.pntRight);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,x,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0);var J=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,e),Z=SuperMapAlgoPlot.PlottingUtil.circlePoint(J.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,L+90);this.addScalePoint(Z,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMapAlgoPlot.AlgoSymbol21900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21800=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 l=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===l.scaleValues.length&&l.scaleValues.push(.2),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.2));var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],l=.5*e,o=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),i=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),n=180*SuperMapAlgoPlot.PlottingUtil.radian(o,i)/Math.PI,a=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,e,e,n+90),r=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,e,e,n+270),s=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,l,l,n),p=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,l,l,n),u=[];u.push(p),u.push(r),u.push(a),u.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u);var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,e,e,n+90),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,e,e,n+270),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,l,l,n+180),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,l,l,n+180);(u=[]).push(g),u.push(P),u.push(c),u.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),this.addScalePoint(a),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}}}]),e}();SuperMapAlgoPlot.AlgoSymbol21800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21600=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05)),l.subText="",l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),!(t.length<this.minEditPts)){1==this.scaleValues.length&&this.scaleValues.push(this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[0]=.6*this.getSubSymbolScaleValue(),this.scaleValues[1]=this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);for(var l=0,o=0;o<e.length-1;o++)l+=SuperMapAlgoPlot.PlottingUtil.distance(e[o],e[o+1]);var i=.5*l,n=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,i);if(-1!==n.index){for(var a=n.pt,r=[],s=0,p=0;p<n.index+1;p++)r.push(e[p]),p>0&&(s+=SuperMapAlgoPlot.PlottingUtil.distance(r[p],r[p-1]));var u,P,c=i-s,g=l*this.scaleValues[1],S=[];if(c>=g){u=SuperMapAlgoPlot.PlottingUtil.linePnt(a,e[n.index],g),r.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r),P=SuperMapAlgoPlot.PlottingUtil.linePnt(a,e[n.index+1],g),S.push(P);for(var h=e.length,f=n.index+1;f<h;++f)S.push(e[f]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S)}else{for(var y,A,M=-1,b=r.length-1;b>=0;b--)if(y=new SuperMapAlgoPlot.Point(r[b].x,r[b].y),A=new SuperMapAlgoPlot.Point(a.x,a.y),SuperMapAlgoPlot.PlottingUtil.distance(y,A)>g){M=b;break}if(-1==M)return;r.splice(M+1,r.length-1-M),u=SuperMapAlgoPlot.PlottingUtil.linePnt(a,e[M],g),r.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r);for(var d=-1,m=n.index;m<e.length;m++)if(y=new SuperMapAlgoPlot.Point(e[m].x,e[m].y),A=new SuperMapAlgoPlot.Point(a.x,a.y),SuperMapAlgoPlot.PlottingUtil.distance(y,A)>g){d=m;break}if(-1==d)return;P=SuperMapAlgoPlot.PlottingUtil.linePnt(a,e[d],g),S.push(P);for(var v=d+1;v<e.length;++v)S.push(e[v]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S)}if(!(r.length<2)){for(var O=0,U=0;U<t.length-1;U++)O+=SuperMapAlgoPlot.PlottingUtil.distance(t[U],t[U+1]);var L=O*this.scaleValues[0],w=new SuperMapAlgoPlot.Point(r[0].x,r[0].y),V=new SuperMapAlgoPlot.Point(r[1].x,r[1].y),_=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(L,V,w),T=[];if(T.push(_.pntLeft),T.push(_.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T),!(S.length<2)){var x=new SuperMapAlgoPlot.Point(S[S.length-1].x,S[S.length-1].y),E=new SuperMapAlgoPlot.Point(S[S.length-2].x,S[S.length-2].y),Y=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(L,E,x);(T=[]).push(Y.pntLeft),T.push(Y.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T);var j=u,C=P,I=180*SuperMapAlgoPlot.PlottingUtil.radian(j,C)/Math.PI,B=SuperMapAlgoPlot.PlottingUtil.distance(j,C),R=new SuperMapAlgoPlot.Point((u.x+P.x)/2,(u.y+P.y)/2),N=this.subText;this.addText(N,R,B,I),this.addScalePoint(_.pntLeft),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}}}]),e}();SuperMapAlgoPlot.AlgoSymbol21600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21504=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol21501),o(e,[{key:"addSubSymbols",value:function(t,e,l){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,.8*e,l-90)}}]),e}();SuperMapAlgoPlot.AlgoSymbol21504=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21503=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol21501),o(e,[{key:"addSubSymbols",value:function(t,e,l){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,.8*e,l-90)}}]),e}();SuperMapAlgoPlot.AlgoSymbol21503=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol21502=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}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,SuperMapAlgoPlot.AlgoSymbol21501),e}();SuperMapAlgoPlot.AlgoSymbol21502=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21501=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.02):1===this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue()),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=.5*this.getSubSymbolScaleValue()}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,r=SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt);this.addSubSymbols(n,r,a);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var P=i.endIndex+1;P<=e.length-1;P++)p.push(e[P]);this.addArrow(p,this.scaleValues[1])}var c=l*this.scaleValues[0]*.5,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,c,c,a+90);this.addScalePoint(g,0),this.finish()}}},{key:"addSubSymbols",value:function(t,e,l){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,.8*e,l-180)}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMapAlgoPlot.AlgoSymbol21501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21500=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues=[],this.scaleValues.push(.02),this.scaleValues.push(.1),this.scaleValues.push(0)):3===this.scaleValues.length&&this.scaleValues.push(.5*this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!1);if(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addArrow(e,this.scaleValues[this.scaleValues.length-1]),0!==SuperMapAlgoPlot.PlottingUtil.polylineDistance(e)){if(!this.isEdit){var l=this.getSubSymbolScaleValue();this.scaleValues[0]=.5*l,this.scaleValues[this.scaleValues.length-1]=.5*this.getSubSymbolScaleValue()}for(var o=this.scaleValues[0],i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),n=o*i,a=this.scaleValues[1]*i,r=0,s=.01*i,p=s,u=0;p<=i;p+=a,u++){r=p+s;var P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,r);if(-1===P.index)return;var c=[],g=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,e[P.index],P.pt);c.push(new SuperMapAlgoPlot.Point(g.pntLeft.x,g.pntLeft.y)),c.push(new SuperMapAlgoPlot.Point(g.pntRight.x,g.pntRight.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c),0===u?this.addScalePoint(c[0],0):1===u&&this.addScalePoint(P.pt,1)}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=.01*i;if(0===t){var a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,n);if(-1===a.index)return;var r=SuperMapAlgoPlot.PlottingUtil.distance(e,a.pt);this.scaleValues[0]=r/i}else if(1===t){var s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,n);if(-1===s.index)return;var p=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,o);if(-1===p.index)return;for(var u=0,P=s.index+1;P<p.index;P++)u+=SuperMapAlgoPlot.PlottingUtil.distance(o[P],o[P+1]);u+=SuperMapAlgoPlot.PlottingUtil.distance(o[p.index],p.pt),u-=n,this.scaleValues[1]=u/i,this.scaleValues[1]>.93&&(this.scaleValues[1]=.93)}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol21500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21401=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.03),l.scaleValues.push(.4),l.scaleValues.push(0),l.scaleValues.push(.02)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues=[],this.scaleValues.push(.03),this.scaleValues.push(.4),this.scaleValues.push(0)):3===this.scaleValues.length&&this.scaleValues.push(.02);var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!1);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),o=this.scaleValues[1],i=l*(1-o)*.5,n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,e);if(n.bfind){this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue(),this.scaleValues[this.scaleValues.length-1]=.5*this.getSubSymbolScaleValue());var a,r=this.scaleValues[0],s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*r,p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,e[n.index],n.pts),u=this.scaleValues[2];1===u?a=new SuperMapAlgoPlot.Point(p.pntRight.x,p.pntRight.y):0===u&&(a=new SuperMapAlgoPlot.Point(p.pntLeft.x,p.pntLeft.y));var P=[];P.push(a),P.push(n.pts);var c;this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,P,{lineTypeLimit:!0});var g=l*(.5+.5*o),S=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(g,e);if(S.bfind){var h=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,e[S.index],S.pts);1===u?c=new SuperMapAlgoPlot.Point(h.pntRight.x,h.pntRight.y):0===u&&(c=new SuperMapAlgoPlot.Point(h.pntLeft.x,h.pntLeft.y)),this.addArrow(e,this.scaleValues[this.scaleValues.length-1]),this.addScalePoint(c,0);var f=[];f.push(c),f.push(S.pts);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,f,{lineTypeLimit:!0}),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=i*(.5+.5*this.scaleValues[1]),a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,o);if(!a.bfind)return;var r,s=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(1,o[a.index],a.pts),p=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[a.index],o[a.index+1],e);this.scaleValues[2]=p?0:1,r=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,new SuperMapAlgoPlot.Point(s.pntLeft.x,s.pntLeft.y),new SuperMapAlgoPlot.Point(s.pntRight.x,s.pntRight.y));var u=SuperMapAlgoPlot.PlottingUtil.distance(r.projectPoint,new SuperMapAlgoPlot.Point(a.pts.x,a.pts.y));this.scaleValues[0]=u/i}}}]),e}();SuperMapAlgoPlot.AlgoSymbol21401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21400=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 l=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===l.scaleValues.length&&l.scaleValues.push(.02),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),!(this.controlPoints<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!1);0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.02));[].push(e[e.length-1]),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());for(var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e)*this.scaleValues[0],o=t[t.length-1],i=SuperMapAlgoPlot.PlottingUtil.distance(o,e[e.length-1]);i<1.5*l;)e.pop(),i=SuperMapAlgoPlot.PlottingUtil.distance(o,e[e.length-1]);e.push(o),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);var n=e[e.length-2],a=180*SuperMapAlgoPlot.PlottingUtil.radian(o,n)/Math.PI,r=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,l,l,a+22.5),s=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,l,l,a-22.5),p=[];p.push(r),p.push(o),p.push(s);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,p,{surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0,fill:!0}),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol21400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol20301=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length!==this.minEditPts&&(this.scaleValues=[],this.scaleValues.push(.2),this.scaleValues.push(0)),this.components.length=0,this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,this.controlPoints);var e,l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),i=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),n=180*SuperMapAlgoPlot.PlottingUtil.radian(o,i)/Math.PI,a=new SuperMapAlgoPlot.Point((o.x+i.x)/2,(o.y+i.y)/2),r=this.scaleValues[0]*l;e=0==this.scaleValues[1]?SuperMapAlgoPlot.PlottingUtil.circlePoint(a,r,r,n+90):SuperMapAlgoPlot.PlottingUtil.circlePoint(a,r,r,n+270);var s={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[a,e]);var p=.02*SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[t.length-1]),u=new SuperMapAlgoPlot.Point((o.x+a.x)/2,(o.y+a.y)/2),P=[u,new SuperMapAlgoPlot.Point(u.x,u.y+p)];this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,P,s,!0);var c=new SuperMapAlgoPlot.Point((i.x+a.x)/2,(i.y+a.y)/2);P=[c,new SuperMapAlgoPlot.Point(c.x,c.y+p)],this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,P,s,!0);var g=new SuperMapAlgoPlot.Point(e.x,e.y);g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=new SuperMapAlgoPlot.Point(l[0].x,l[0].y),i=new SuperMapAlgoPlot.Point(l[1].x,l[1].y),n=SuperMapAlgoPlot.PlottingUtil.distance(o,i);if(0===n)return;var a=new SuperMapAlgoPlot.Point((o.x+i.x)/2,(o.y+i.y)/2);if(0===t){var r=SuperMapAlgoPlot.PlottingUtil.distance(e,a)/n;this.scaleValues[0]=r,SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o,i,e)?this.scaleValues[1]=1:this.scaleValues[1]=0}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol20301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol20300=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 l=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===l.scaleValues.length&&l.scaleValues.push(.1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){1!==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1)),this.components.length=0,this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,this.controlPoints);var e=this.scaleValues[0],l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=l*e,i=.01*l;o<2*i&&(i=.5*o);for(var n={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},a=0,r=o;r<l-i;r+=o){var s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,t);if(s.bfind){var p=s.pts,u=[];u.push(p);var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,i,i,90);if(u.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,u,n),0===a){var c=new SuperMapAlgoPlot.Point(p.x,p.y);c.isScalePoint=!0,c.tag=0,this.scalePoints.push(c)}a++}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;for(var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=-1,n=0,a=new SuperMapAlgoPlot.Point(0,0),r=0;r<l.length-1;r++){var s,p=[];p.push(l[r]),p.push(l[r+1]);var u=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,l[r],l[r+1]);if(u.isOnline&&(s=u.projectPoint),!u.isOnline&&SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(e,l[r],l[r+1])&&(s=e),void 0===s)return;if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(s,p).isOnPolyLine){var P=SuperMapAlgoPlot.PlottingUtil.distance(e,s);-1===i?(i=r,a=s,n=P):n>P&&(i=r,a=s,n=P)}}if(-1===i||i>l.length-1)return;for(var c=0,g=0;g<i;g++){var S=new SuperMapAlgoPlot.Point(l[g].x,l[g].y),h=new SuperMapAlgoPlot.Point(l[g+1].x,l[g+1].y);c+=SuperMapAlgoPlot.PlottingUtil.distance(S,h)}var f=new SuperMapAlgoPlot.Point(l[i].x,l[i].y);if((c+=SuperMapAlgoPlot.PlottingUtil.distance(f,a))<0||c>o)return;var y=c/o;y>.95?y=.95:y<.1&&(y=.1),this.scaleValues[0]=y}}}]),e}();SuperMapAlgoPlot.AlgoSymbol20300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17806=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol17804),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var e,l,o,i,n,a=this.scaleValues[0],r=this.scaleValues[1],s=this.scaleValues[2],p=0,u=0;if(t.length==this.minEditPts){this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t),l=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),o=new SuperMapAlgoPlot.Point(t[1].x,t[1].y);var P=SuperMapAlgoPlot.PlottingUtil.distance(l,o);p=2*P,e=new SuperMapAlgoPlot.Point(l.x+p*a,l.y+p*r);var c=2*P*s/.28/2;u=c,i=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,c,c,0),(n=[]).push(e.clone()),n.push(i.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,n)}else{this.addCell(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,t),l=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),o=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),i=new SuperMapAlgoPlot.Point(t[2].x,t[2].y),p=SuperMapAlgoPlot.PlottingUtil.distance(l,o)+SuperMapAlgoPlot.PlottingUtil.distance(l,i),e=new SuperMapAlgoPlot.Point(l.x+p*a,l.y+p*r);var g=p*s/.21/2,S=p*s/.38/2;u=g;var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,g,g,0),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,S,S,90);(n=[]).push(e.clone()),n.push(h.clone()),n.push(f.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,n)}this.scalePoints=[];var y=new SuperMapAlgoPlot.Point(e.x+.1*p,e.y);y.isScalePoint=!0,y.tag=0,this.scalePoints.push(y);var A=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,u,u,90);A.isScalePoint=!0,A.tag=1,this.scalePoints.push(A),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l,o,i,n,a=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),r=(a=SuperMapAlgoPlot.PlottingUtil.clearSamePts(a))[0].clone(),s=0;if(0==(s=2==a.length?2*SuperMapAlgoPlot.PlottingUtil.distance(a[0],a[1]):SuperMapAlgoPlot.PlottingUtil.distance(a[0],a[1])+SuperMapAlgoPlot.PlottingUtil.distance(a[0],a[2])))return;if(0==t)n=(i=this.scaleValues[2])*s,l=(e.x-.1*s-r.x)/s,this.scaleValues[0]=l,o=(e.y-r.y)/s,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var p=new SuperMapAlgoPlot.Point(r.x+s*l,r.y+s*o);n=SuperMapAlgoPlot.PlottingUtil.distance(p,e),i=.1,i=2===a.length?.56*n/s:.42*n/s,this.scaleValues[2]=i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17806=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17805=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol17804),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1)),t.length==this.minEditPts?this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t):this.addCell(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,t);var e=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),l=0;if(0!=(l=t.length==this.minEditPts?2*SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]):SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])+SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[2]))){var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMapAlgoPlot.Point(e.x+l*o,e.y+l*i),r=3*(l*n),s=new SuperMapAlgoPlot.Point(-.5*r,.3*r),p=new SuperMapAlgoPlot.Point(-.5*r,-.3*r),u=new SuperMapAlgoPlot.Point(.5*r,-.3*r),P=new SuperMapAlgoPlot.Point(.5*r,.3*r),c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,s,0),g=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,p,0),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,u,0),h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,P,0),f=[];f.push(c.clone()),f.push(g.clone()),f.push(S.clone()),f.push(h.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,f);var y=new SuperMapAlgoPlot.Point(-.3*r,.3*r),A=new SuperMapAlgoPlot.Point(-.3*r,.5*r),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,y,0),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,A,0);(f=[]).push(M.clone()),f.push(b.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var d=new SuperMapAlgoPlot.Point(-.3*r,-.3*r),m=new SuperMapAlgoPlot.Point(-.3*r,-.5*r),v=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,d,0),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,m,0);(f=[]).push(v.clone()),f.push(O.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var U=new SuperMapAlgoPlot.Point(.3*r,.3*r),L=new SuperMapAlgoPlot.Point(.3*r,.5*r),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,U,0),V=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,L,0);(f=[]).push(w.clone()),f.push(V.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var _=new SuperMapAlgoPlot.Point(.3*r,-.3*r),T=new SuperMapAlgoPlot.Point(.3*r,-.5*r),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,_,0),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,T,0);(f=[]).push(x.clone()),f.push(E.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),this.scalePoints=[];var Y=new SuperMapAlgoPlot.Point(a.x+.1*r,a.y);Y.isScalePoint=!0,Y.tag=0,this.scalePoints.push(Y);var j=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,.5*r,.5*r,90);j.isScalePoint=!0,j.tag=1,this.scalePoints.push(j),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17805=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17804=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1)),t.length==this.minEditPts?this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t):this.addCell(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,t);var e=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),l=0;if(0!=(l=t.length==this.minEditPts?2*SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]):SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])+SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[2]))){var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMapAlgoPlot.Point(e.x+l*o,e.y+l*i),r=l*n,s=3*r,p=new SuperMapAlgoPlot.Point(-.5*s,.5*r),u=new SuperMapAlgoPlot.Point(.5*s,.5*r),P=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,p,0),c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,u,0),g=[];g.push(P.clone()),g.push(c.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var S=new SuperMapAlgoPlot.Point(-.5*s,-.5*r),h=new SuperMapAlgoPlot.Point(.5*s,-.5*r),f=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,S,0),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,h,0);(g=[]).push(f.clone()),g.push(y.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var A=new SuperMapAlgoPlot.Point(-.1*s,.5*r),M=new SuperMapAlgoPlot.Point(-.15*s,-.5*r),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,A,0),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,M,0);(g=[]).push(b.clone()),g.push(d.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var m=new SuperMapAlgoPlot.Point(.15*s,.5*r),v=new SuperMapAlgoPlot.Point(.1*s,-.5*r),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,m,0),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,v,0);(g=[]).push(O.clone()),g.push(U.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g),this.scalePoints=[];var L=new SuperMapAlgoPlot.Point(a.x+.1*s,a.y);L.isScalePoint=!0,L.tag=0,this.scalePoints.push(L);var w=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,.5*s,.5*s,90);w.isScalePoint=!0,w.tag=1,this.scalePoints.push(w),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l,o,i,n,a=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),r=(a=SuperMapAlgoPlot.PlottingUtil.clearSamePts(a))[0].clone(),s=0;if(0==(s=2==a.length?2*SuperMapAlgoPlot.PlottingUtil.distance(a[0],a[1]):SuperMapAlgoPlot.PlottingUtil.distance(a[0],a[1])+SuperMapAlgoPlot.PlottingUtil.distance(a[0],a[2])))return;if(0==t)n=(i=this.scaleValues[2])*s,l=(e.x-.1*n-r.x)/s,this.scaleValues[0]=l,o=(e.y-r.y)/s,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var p=new SuperMapAlgoPlot.Point(r.x+s*l,r.y+s*o);i=2*(n=SuperMapAlgoPlot.PlottingUtil.distance(p,e))/s/3,this.scaleValues[2]=i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17804=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17803=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.2)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.2)),2==t.length?this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t):this.addCell(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,t);var e=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),l=0;if(0!=(l=2==t.length?2*SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]):SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])+SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[2]))){var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMapAlgoPlot.Point(e.x+l*o,e.y+l*i),r=l*n,s=new SuperMapAlgoPlot.Point(-.5*r,.25*r),p=new SuperMapAlgoPlot.Point(-.4*r,.125*r),u=new SuperMapAlgoPlot.Point(.4*r,.125*r),P=new SuperMapAlgoPlot.Point(.5*r,.25*r),c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,s,0),g=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,p,0),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,u,0),h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,P,0),f=[];f.push(c.clone()),f.push(g.clone()),f.push(S.clone()),f.push(h.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var y=new SuperMapAlgoPlot.Point(-.5*r,-.25*r),A=new SuperMapAlgoPlot.Point(-.4*r,-.125*r),M=new SuperMapAlgoPlot.Point(.4*r,-.125*r),b=new SuperMapAlgoPlot.Point(.5*r,-.25*r),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,y,0),m=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,A,0),v=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,M,0),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,b,0);(f=[]).push(d.clone()),f.push(m.clone()),f.push(v.clone()),f.push(O.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),this.scalePoints=[];var U=new SuperMapAlgoPlot.Point(a.x+.1*r,a.y);U.isScalePoint=!0,U.tag=0,this.scalePoints.push(U);var L=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,.25*r,.25*r,90);L.isScalePoint=!0,L.tag=1,this.scalePoints.push(L),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l,o,i,n,a=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),r=(a=SuperMapAlgoPlot.PlottingUtil.clearSamePts(a))[0].clone(),s=0;if(0==(s=2==a.length?2*SuperMapAlgoPlot.PlottingUtil.distance(a[0],a[1]):SuperMapAlgoPlot.PlottingUtil.distance(a[0],a[1])+SuperMapAlgoPlot.PlottingUtil.distance(a[0],a[2])))return;if(0==t)n=(i=this.scaleValues[2])*s,l=(e.x-.1*n-r.x)/s,this.scaleValues[0]=l,o=(e.y-r.y)/s,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var p=new SuperMapAlgoPlot.Point(r.x+s*l,r.y+s*o);i=4*(n=SuperMapAlgoPlot.PlottingUtil.distance(p,e))/s,this.scaleValues[2]=i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17803=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17802=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol17800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),l=new SuperMapAlgoPlot.Point(t[t.length-1].x,t[t.length-1].y),o=0;2==t.length?this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t):(this.addCell(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,t),o=SuperMapAlgoPlot.PlottingUtil.radian(e,l)*SuperMapAlgoPlot.PlottingUtil.RTOD);var i=SuperMapAlgoPlot.PlottingUtil.distance(e,l),n=[],a=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.15*i,.15*i,o),r=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.08*i,.08*i,o+90),s=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.15*i,.15*i,o+180),p=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.08*i,.08*i,o+270);n.push(a.clone()),n.push(r.clone()),n.push(s.clone()),n.push(p.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n);var u=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.78*i,.78*i,o+180),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o+180);(n=[]).push(u.clone()),n.push(P.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.15*i,.15*i,o+180),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.58*i,.58*i,o+180);(n=[]).push(c.clone()),n.push(g.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.15*i,.15*i,o),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.58*i,.58*i,o);(n=[]).push(S.clone()),n.push(h.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.78*i,.78*i,o),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o);(n=[]).push(f.clone()),n.push(y.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17802=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol17800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),l=new SuperMapAlgoPlot.Point(t[t.length-1].x,t[t.length-1].y),o=0;2==t.length?this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t):(this.addCell(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,t),o=SuperMapAlgoPlot.PlottingUtil.radian(e,l)*SuperMapAlgoPlot.PlottingUtil.RTOD);var i=SuperMapAlgoPlot.PlottingUtil.distance(e,l),n=[],a=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.1*i,.1*i,0);n.push(t[0].clone()),n.push(a.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,n);var r=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.78*i,.78*i,o+180),s=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o+180);(n=[]).push(r.clone()),n.push(s.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.15*i,.15*i,o+180),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.58*i,.58*i,o+180);(n=[]).push(p.clone()),n.push(u.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.15*i,.15*i,o),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.58*i,.58*i,o);(n=[]).push(P.clone()),n.push(c.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.78*i,.78*i,o),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o);(n=[]).push(g.clone()),n.push(S.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),l=new SuperMapAlgoPlot.Point(t[t.length-1].x,t[t.length-1].y),o=0;2==t.length?this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t):(this.addCell(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,t),o=SuperMapAlgoPlot.PlottingUtil.radian(e,l)*SuperMapAlgoPlot.PlottingUtil.RTOD);var i=SuperMapAlgoPlot.PlottingUtil.distance(e,l),n=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.78*i,.78*i,o+180),a=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o+180),r=[];r.push(n.clone()),r.push(a.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r);var s=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.1*i,.1*i,o+180),p=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.58*i,.58*i,o+180);(r=[]).push(s.clone()),r.push(p.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r);var u=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.1*i,.1*i,o),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.58*i,.58*i,o);(r=[]).push(u.clone()),r.push(P.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r);var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.78*i,.78*i,o),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o);(r=[]).push(c.clone()),r.push(g.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol17704=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 l=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 l.subText="急",l}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,SuperMapAlgoPlot.AlgoSymbol17703),e}();SuperMapAlgoPlot.AlgoSymbol17704=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17703=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 l=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 l.subText="加",l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);this.isEdit||(this.scaleValues=[]);var o=[];if(this.scalePoints=[],t.length<3)o.push(new SuperMapAlgoPlot.Point(t[0].x,t[0].y)),o.push(new SuperMapAlgoPlot.Point(t[1].x,t[1].y));else{var i=SuperMapAlgoPlot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=i.scaleValues;for(var n=0;n<i.scalePoints.length;n++)this.addScalePoint(i.scalePoints[n]);o=i.beizerPoints}if(!(o.length<2)){var a=e/2;if(-1!==SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,a).index){var r,s;if(r=2==t.length?0:t.length-1,this.isEdit)s=this.scaleValues[4*r]*e,isNaN(s)&&(s=Math.abs(this.scaleValues[4*r-1]*e));else{var p=.5*this.getSubSymbolScaleValue();s=p*e,this.scaleValues.push(p)}var u=a-s,P=a+s,c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,u);if(-1!==c.index){var g=c.pt;this.addScalePoint(new SuperMapAlgoPlot.Point(g.x,g.y));var S=[];if(0==c.index)S.push(o[0]);else for(var h=0;h<c.index;h++)S.push(o[h]);S.push(g);var f=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,P);if(-1!==f.index){var y=f.pt,A=[];A.push(y);for(var M=f.index+1;M<o.length;M++)A.push(o[M]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);var b=S[S.length-1],d=A[0],m=180*SuperMapAlgoPlot.PlottingUtil.radian(b,d)/Math.PI,v=SuperMapAlgoPlot.PlottingUtil.distance(b,d),O=new SuperMapAlgoPlot.Point((b.x+d.x)/2,(b.y+d.y)/2),U=this.subText;this.addText(U,O,v,m),this.finish()}}}}}}},{key:"computeBeizer",value:function(t,e){var l,o,i,n=[];if(this.scalePoints=[],this.isEdit){(i=[]).push(new SuperMapAlgoPlot.Point(t[0].x,t[0].y)),i.push(new SuperMapAlgoPlot.Point(t[0].x,t[0].y)),l=this.scaleValues[0],o=this.scaleValues[1];var a=t[0].x+e*l,r=t[0].y+e*o;i.push(new SuperMapAlgoPlot.Point(a,r)),this.addScalePoint(new SuperMapAlgoPlot.Point(a,r));for(var s=1;s<t.length-1;s++)i.push(new SuperMapAlgoPlot.Point(t[s].x,t[s].y)),l=this.scaleValues[4*s-2],o=this.scaleValues[4*s-1],a=t[s].x+e*l,r=t[s].y+e*o,i.push(new SuperMapAlgoPlot.Point(a,r)),this.addScalePoint(new SuperMapAlgoPlot.Point(a,r)),l=this.scaleValues[4*s],o=this.scaleValues[4*s+1],a=t[s].x+e*l,r=t[s].y+e*o,i.push(new SuperMapAlgoPlot.Point(a,r)),this.addScalePoint(new SuperMapAlgoPlot.Point(a,r));var p=t.length-1;i.push(new SuperMapAlgoPlot.Point(t[p].x,t[p].y)),l=this.scaleValues[4*p-2],o=this.scaleValues[4*p-1],a=t[p].x+e*l,r=t[p].y+e*o,i.push(new SuperMapAlgoPlot.Point(a,r)),this.addScalePoint(new SuperMapAlgoPlot.Point(a,r)),i.push(new SuperMapAlgoPlot.Point(t[p].x,t[p].y)),n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(i)}else{if(this.scaleValues=[],i=[],(i=SuperMapAlgoPlot.PlottingUtil.getBeizerCtrlPt(t)).length<3)return n;var u=i[2].x-i[0].x,P=i[2].y-i[0].y;l=u/e,o=P/e,this.scaleValues.push(l),this.scaleValues.push(o),this.addScalePoint(new SuperMapAlgoPlot.Point(i[2].x,i[2].y));for(var c=1;c<t.length-1;c++){l=(u=i[3*c+1].x-i[3*c].x)/e,o=(P=i[3*c+1].y-i[3*c].y)/e,this.scaleValues.push(l),this.scaleValues.push(o),this.addScalePoint(new SuperMapAlgoPlot.Point(i[3*c+1].x,i[3*c+1].y));var g=(i[3*c+2].x-i[3*c].x)/e,S=(i[3*c+2].y-i[3*c].y)/e;this.scaleValues.push(g),this.scaleValues.push(S),this.addScalePoint(new SuperMapAlgoPlot.Point(i[3*c+2].x,i[3*c+2].y))}l=(u=i[3*(t.length-1)+1].x-i[3*(t.length-1)].x)/e,o=(P=i[3*(t.length-1)+1].y-i[3*(t.length-1)].y)/e,this.scaleValues.push(l),this.scaleValues.push(o),this.addScalePoint(new SuperMapAlgoPlot.Point(i[3*(t.length-1)+1].x,i[3*(t.length-1)+1].y)),n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(i)}return n}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),t<0||t>2*l.length-2)return;for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);if(2*(l.length-1)==t||2==l.length){for(var n=this.computeBeizer(l,o),a=0,r=0;r<n.length-1;r++)a+=SuperMapAlgoPlot.PlottingUtil.distance(n[r],n[r+1]);var s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,a/2);if(-1===s.index)return;var p=SuperMapAlgoPlot.PlottingUtil.distance(e,s.pt)/o;p>.45&&(p=.45),2==l.length?this.scaleValues[0]=p:this.scaleValues[2*t]=p}else{var u=-1;u=t%2==0?t/2:(t+1)/2;var P=(e.x-l[u].x)/o,c=(e.y-l[u].y)/o;this.scaleValues[2*t]=P,this.scaleValues[2*t+1]=c}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17703=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17700=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 l=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===l.scaleValues.length&&l.scaleValues.push(.02),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);0===this.scaleValues.length&&this.scaleValues.push(.02),this.isEdit||(this.scaleValues[0]=.2*this.getSubSymbolScaleValue());var l=e*this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.paraLine(o,l,!0),n=SuperMapAlgoPlot.PlottingUtil.paraLine(o,l,!1);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i);for(var a={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0},r=this.getDashLinePts(n,5*l),s=0;s<r.length;s++){var p=r[s];this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,a)}this.finish()}}},{key:"getDashLinePts",value:function(t,e){var l=[],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(e>o)return l;for(var i=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),n=2*parseInt(o/(1.5*e)),a=0;a<n;a++){var r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,e);if(-1!==r.index){if(0==a%2){for(var s=[],p=0;p<r.index+1;p++)s.push(i[p].clone());s.push(r.pt),l.push(s)}var u=[];u.push(r.pt);for(var P=r.index+1;P<i.length;P++)u.push(i[P]);i=(i=[]).concat(u)}}return i.length>0&&l.push(i),l}}]),e}();SuperMapAlgoPlot.AlgoSymbol17700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17600=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o,i,n={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},a=this.scaleValues[0]*e;o=SuperMapAlgoPlot.PlottingUtil.paraLine(t,a,!0),i=SuperMapAlgoPlot.PlottingUtil.paraLine(t,a,!1);var r=new SuperMapAlgoPlot.Point(o[0].x,o[0].y);r.isScalePoint=!0,r.tag=0,this.scalePoints.push(r),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i);var s=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),p=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),u=180*SuperMapAlgoPlot.PlottingUtil.radian(s,p)/Math.PI,P=new SuperMapAlgoPlot.Point(.3*e,0),c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,P,u),g=new SuperMapAlgoPlot.Point(0,.7*a),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,g,u),h=[];h.push(new SuperMapAlgoPlot.Point(c.x,c.y)),h.push(new SuperMapAlgoPlot.Point(S.x,S.y)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,h,n);var f=new SuperMapAlgoPlot.Point(.7*a,.7*a),y=new SuperMapAlgoPlot.Point(-.7*a,.7*a),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,f,u),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,y,u);(h=[]).push(new SuperMapAlgoPlot.Point(A.x,A.y)),h.push(new SuperMapAlgoPlot.Point(M.x,M.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var b=new SuperMapAlgoPlot.Point(.7*e,0),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,b,u),m=new SuperMapAlgoPlot.Point(.7*a,.7*a),v=new SuperMapAlgoPlot.Point(.7*a,-.7*a),O=new SuperMapAlgoPlot.Point(-.7*a,-.7*a),U=new SuperMapAlgoPlot.Point(-.7*a,.7*a),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,m,u),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,v,u),V=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,O,u),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,U,u);(h=[]).push(new SuperMapAlgoPlot.Point(L.x,L.y)),h.push(new SuperMapAlgoPlot.Point(w.x,w.y)),h.push(new SuperMapAlgoPlot.Point(V.x,V.y)),h.push(new SuperMapAlgoPlot.Point(_.x,_.y)),h.push(new SuperMapAlgoPlot.Point(L.x,L.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var T=new SuperMapAlgoPlot.Point(.3*a,.3*a),x=new SuperMapAlgoPlot.Point(.3*a,-.3*a),E=new SuperMapAlgoPlot.Point(-.3*a,-.3*a),Y=new SuperMapAlgoPlot.Point(-.3*a,.3*a),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,T,u),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,x,u),I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,E,u),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,Y,u);(h=[]).push(new SuperMapAlgoPlot.Point(j.x,j.y)),h.push(new SuperMapAlgoPlot.Point(C.x,C.y)),h.push(new SuperMapAlgoPlot.Point(I.x,I.y)),h.push(new SuperMapAlgoPlot.Point(B.x,B.y)),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,n),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);if(0==t){var n=l[0],a=l[1],r=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,n,a),s=SuperMapAlgoPlot.PlottingUtil.distance(e,r);this.scaleValues[0]=s/o}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17501=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var l=e[0].x,o=e[0].x,i=e[0].y,n=e[0].y,a=0;a<e.length;a++)l>e[a].x&&(l=e[a].x),o<e[a].x&&(o=e[a].x),i>e[a].y&&(i=e[a].y),n<e[a].y&&(n=e[a].y);var r=new SuperMapAlgoPlot.Point((o+l)/2,(n+i)/2),s=.33*(o-l),p=.1*(n-i),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,s,s,0),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,s,s,180),c=[];c.push(new SuperMapAlgoPlot.Point(u.x,u.y)),c.push(new SuperMapAlgoPlot.Point(P.x,P.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c);var g=new SuperMapAlgoPlot.Point(r.x-3*s/7,r.y+p),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,p,p,60),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,p,p,120);(c=[]).push(new SuperMapAlgoPlot.Point(S.x,S.y)),c.push(new SuperMapAlgoPlot.Point(g.x,g.y)),c.push(new SuperMapAlgoPlot.Point(h.x,h.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c);var f=new SuperMapAlgoPlot.Point(r.x+3*s/7,r.y+p),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,p,p,60),A=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,p,p,120);(c=[]).push(new SuperMapAlgoPlot.Point(y.x,y.y)),c.push(new SuperMapAlgoPlot.Point(f.x,f.y)),c.push(new SuperMapAlgoPlot.Point(A.x,A.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17500=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var l=e[0].x,o=e[0].x,i=e[0].y,n=e[0].y,a=0;a<e.length;a++)l>e[a].x&&(l=e[a].x),o<e[a].x&&(o=e[a].x),i>e[a].y&&(i=e[a].y),n<e[a].y&&(n=e[a].y);var r={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},s=new SuperMapAlgoPlot.Point((o+l)/2,(n+i)/2),p=o-l,u=n-i,P=.1*p,c=.1*u,g=new SuperMapAlgoPlot.Point(s.x,s.y+c),S=new SuperMapAlgoPlot.Point(s.x-P,s.y-c),h=new SuperMapAlgoPlot.Point(s.x+P,s.y-c);P=.03*p,c=.03*u;var f=new SuperMapAlgoPlot.Point(g.x,g.y+c),y=new SuperMapAlgoPlot.Point(g.x-P,g.y-c),A=new SuperMapAlgoPlot.Point(g.x+P,g.y-c),M=[];M.push(new SuperMapAlgoPlot.Point(f.x,f.y)),M.push(new SuperMapAlgoPlot.Point(y.x,y.y)),M.push(new SuperMapAlgoPlot.Point(A.x,A.y)),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,r);var b=new SuperMapAlgoPlot.Point(S.x,S.y+c),d=new SuperMapAlgoPlot.Point(S.x-P,S.y-c),m=new SuperMapAlgoPlot.Point(S.x+P,S.y-c),v=[];v.push(new SuperMapAlgoPlot.Point(b.x,b.y)),v.push(new SuperMapAlgoPlot.Point(d.x,d.y)),v.push(new SuperMapAlgoPlot.Point(m.x,m.y)),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,v,r);var O=new SuperMapAlgoPlot.Point(h.x,h.y+c),U=new SuperMapAlgoPlot.Point(h.x-P,h.y-c),L=new SuperMapAlgoPlot.Point(h.x+P,h.y-c),w=[];w.push(new SuperMapAlgoPlot.Point(O.x,O.y)),w.push(new SuperMapAlgoPlot.Point(U.x,U.y)),w.push(new SuperMapAlgoPlot.Point(L.x,L.y)),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,w,r),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17401=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var l=e[0].x,o=e[0].x,i=e[0].y,n=e[0].y,a=[],r=0;r<e.length;r++)l>e[r].x&&(l=e[r].x),o<e[r].x&&(o=e[r].x),i>e[r].y&&(i=e[r].y),n<e[r].y&&(n=e[r].y),a.push(e[r]);for(var s=(o-l)/5,p=.15*s,u=[],P=0;P<360;P+=18){var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(new SuperMapAlgoPlot.Point(0,0),p,p,P);u.push(c)}for(var g=0,S=l;S<o;S+=s)for(var h=i;h<n;h+=s){var f=new SuperMapAlgoPlot.Point(S,h);if(SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(a,f))if(0===g){g++;for(var y=[],A=0;A<u.length;A++){var M=new SuperMapAlgoPlot.Point(f.x+u[A].x,f.y+u[A].y);y.push(M)}y.push(y[0]),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,y,{fillColorLimit:!0,fillColor:"#ffff00",surroundLineFlag:!1,fillLimit:!0,fillOpacity:1,lineTypeLimit:!0});var b=[];b.push(y[10]),b.push(new SuperMapAlgoPlot.Point(y[10].x-.5*p,y[10].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b);var d=[];d.push(y[0]),d.push(new SuperMapAlgoPlot.Point(y[0].x+.5*p,y[10].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d)}else 1===g?(g++,null!=this.subSymbols[0]&&this.computeSubSymbol(this.subSymbols[0],f,2*p,0)):(g=0,null!=this.subSymbols[1]&&this.computeSubSymbol(this.subSymbols[1],f,3*p,0))}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17400=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),o=e[0].x,i=e[0].x,n=e[0].y,a=e[0].y,r=[],s=0;s<e.length;s++)o>e[s].x&&(o=e[s].x),i<e[s].x&&(i=e[s].x),n>e[s].y&&(n=e[s].y),a<e[s].y&&(a=e[s].y),r.push(e[s]);for(var p=(i-o)/5,u=.2*p,P=[],c=0;c<360;c+=18){var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(new SuperMapAlgoPlot.Point(0,0),u,u,c);P.push(g)}for(var S=0,h=o;h<i;h+=p)for(var f=n;f<a;f+=p){var y,A=new SuperMapAlgoPlot.Point(h,f);if(SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(r,A))0===S?(S=0,this.subSymbols.length>0&&(y=.015*l,this.computeSubSymbol(this.subSymbols[0],A,y,0)),S++):(S=0,this.subSymbols.length>0&&(y=.022*l,this.computeSubSymbol(this.subSymbols[1],A,y,0)))}this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16900=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o,i,n=this.scaleValues[0]*e,a=t[0],r=t[1],s=180*SuperMapAlgoPlot.PlottingUtil.radian(a,r)/Math.PI;o=SuperMapAlgoPlot.PlottingUtil.paraLine(t,n,!0),i=SuperMapAlgoPlot.PlottingUtil.paraLine(t,n,!1);var p=.15*e,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[0],p,p,s+165),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(i[0],p,p,s-165),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[o.length-1],p,p,s+15),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(i[i.length-1],p,p,s-15),S=SuperMapAlgoPlot.PlottingUtil.linePnt(o[0],o[o.length-1],3*e/11),h=SuperMapAlgoPlot.PlottingUtil.linePnt(o[0],o[o.length-1],4*e/11),f=SuperMapAlgoPlot.PlottingUtil.linePnt(o[0],o[o.length-1],7*e/11),y=SuperMapAlgoPlot.PlottingUtil.linePnt(o[0],o[o.length-1],8*e/11),A=[];A.push(u),A.push(o[0]),A.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A),(A=[]).push(h),A.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A),(A=[]).push(y),A.push(o[o.length-1]),A.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);var M=SuperMapAlgoPlot.PlottingUtil.linePnt(i[0],i[i.length-1],3*e/11),b=SuperMapAlgoPlot.PlottingUtil.linePnt(i[0],i[i.length-1],4*e/11),d=SuperMapAlgoPlot.PlottingUtil.linePnt(i[0],i[i.length-1],7*e/11),m=SuperMapAlgoPlot.PlottingUtil.linePnt(i[0],i[i.length-1],8*e/11),v=[];if(v.push(P),v.push(i[0]),v.push(M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v),(v=[]).push(b),v.push(d),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v),(v=[]).push(m),v.push(i[i.length-1]),v.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v),90<s&&s<270){var O=a;a=r,r=O,s=180*SuperMapAlgoPlot.PlottingUtil.radian(a,r)/Math.PI}var U=new SuperMapAlgoPlot.Point(.25*e,n+.2*e),L=new SuperMapAlgoPlot.Point(.35*e,n+.2*e+.1*e),w=new SuperMapAlgoPlot.Point(.35*e,n+.2*e-.1*e),V=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,U,s),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,L,s),T=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,w,s),x=[];x.push(new SuperMapAlgoPlot.Point(_.x,_.y)),x.push(new SuperMapAlgoPlot.Point(V.x,V.y)),x.push(new SuperMapAlgoPlot.Point(T.x,T.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,x);var E=new SuperMapAlgoPlot.Point(.35*e,n+.2*e),Y=new SuperMapAlgoPlot.Point(.4*e,n+.2*e+.05*e),j=new SuperMapAlgoPlot.Point(.4*e,n+.2*e-.05*e),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,E,s),I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,Y,s),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,j,s);(x=[]).push(new SuperMapAlgoPlot.Point(I.x,I.y)),x.push(new SuperMapAlgoPlot.Point(C.x,C.y)),x.push(new SuperMapAlgoPlot.Point(B.x,B.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,x);var R=new SuperMapAlgoPlot.Point(.7*e,n+.2*e),N=new SuperMapAlgoPlot.Point(.8*e,n+.2*e+.1*e),D=new SuperMapAlgoPlot.Point(.8*e,n+.2*e-.1*e),k=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,R,s),z=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,N,s),F=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,D,s);(x=[]).push(new SuperMapAlgoPlot.Point(z.x,z.y)),x.push(new SuperMapAlgoPlot.Point(k.x,k.y)),x.push(new SuperMapAlgoPlot.Point(F.x,F.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,x);var G=new SuperMapAlgoPlot.Point(.8*e,n+.2*e),K=new SuperMapAlgoPlot.Point(.85*e,n+.2*e+.05*e),W=new SuperMapAlgoPlot.Point(.85*e,n+.2*e-.05*e),q=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,G,s),J=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,K,s),Z=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,W,s);(x=[]).push(new SuperMapAlgoPlot.Point(J.x,J.y)),x.push(new SuperMapAlgoPlot.Point(q.x,q.y)),x.push(new SuperMapAlgoPlot.Point(Z.x,Z.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,x);var X=new SuperMapAlgoPlot.Point(o[0].x,o[0].y);X.isScalePoint=!0,X.tag=0,this.scalePoints.push(X),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);if(0==t){var n=l[0],a=l[1],r=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,n,a),s=SuperMapAlgoPlot.PlottingUtil.distance(e,r);this.scaleValues[0]=s/o}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol16900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16700=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0]*e,i=this.scaleValues[1]*e,n=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),a=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),r=180*SuperMapAlgoPlot.PlottingUtil.radian(n,a)/Math.PI,s=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,o,o,r+90),p=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,i,i,r+90),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,o,o,r+90),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,i,i,r+90),c=[];c.push(p),c.push(s),c.push(u),c.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,SuperMapAlgoPlot.PlottingUtil.clonePoints(c)),(c=[]).push(p),c.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,SuperMapAlgoPlot.PlottingUtil.clonePoints(c)),(c=[]).push(P),c.push(t[1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,SuperMapAlgoPlot.PlottingUtil.clonePoints(c));var g=new SuperMapAlgoPlot.Point(s.x,s.y);g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g);var S=new SuperMapAlgoPlot.Point(p.x,p.y);S.isScalePoint=!0,S.tag=1,this.scalePoints.push(S),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(this.isEdit=!0,!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.distance(l[0],e)/o;if(n<this.scaleValues[1])return;this.scaleValues[0]=n}else if(1==t){var a=SuperMapAlgoPlot.PlottingUtil.distance(l[0],e)/o;if(this.scaleValues[0]<a)return;this.scaleValues[1]=a}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol16700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16500=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 l=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===l.scaleValues.length&&l.scaleValues.push(.2),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){if(this.init(),this.controlPoints.length>=this.minEditPts){var t,e=[];if(2===this.controlPoints.length){for(var l=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]),o=this.scaleValues[0]*l,i=SuperMapAlgoPlot.PlottingUtil.parallel(this.controlPoints,o/2),n=SuperMapAlgoPlot.PlottingUtil.parallel(this.controlPoints,-o/2),a=180*SuperMapAlgoPlot.PlottingUtil.radian(this.controlPoints[0],this.controlPoints[1])/Math.PI,r=[],s=a+90;s<=a+270;s+=10)t=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],o/2,o/2,s),r.push(t);for(var p=[],u=a-90;u<=a+90;u+=10)t=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[1],o/2,o/2,u),p.push(t);e=(e=(e=(e=e.concat(r)).concat(n)).concat(p)).concat(i)}else this.controlPoints.length<=3?e=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,this.controlPoints):this.controlPoints.length>3&&!0===this.polylineConnectLocationPoint?e=this.controlPoints:(this.controlPoints.push(this.controlPoints[0]),e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(this.controlPoints));e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var P=e[0].x,c=e[0].x,g=e[0].y,S=e[0].y;for(s=0;s<e.length;s++)P>e[s].x&&(P=e[s].x),c<e[s].x&&(c=e[s].x),g>e[s].y&&(g=e[s].y),S<e[s].y&&(S=e[s].y);for(var h=new SuperMapAlgoPlot.Point((c+P)/2,(S+g)/2),f=(c-P)/5,y={surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1},A=!0,M=h.x,b=h.x;A;){A=!1;for(var d,m,v,O=[],U=[],L=new SuperMapAlgoPlot.Point(M,h.y),w=SuperMapAlgoPlot.PlottingUtil.circlePoint(L,10,10,45),V=SuperMapAlgoPlot.PlottingUtil.circlePoint(L,10,10,135),_=0;_<e.length-1;_++)(m=SuperMapAlgoPlot.PlottingUtil.intersectLines(L,w,e[_],e[_+1])).isIntersectLines&&SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(m.intersectPoint,e[_],e[_+1])&&O.push(m.intersectPoint),(v=SuperMapAlgoPlot.PlottingUtil.intersectLines(L,V,e[_],e[_+1])).isIntersectLines&&SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(v.intersectPoint,e[_],e[_+1])&&U.push(v.intersectPoint);if(1<O.length){O=this.sortPts2D(O);for(var T=0;T<O.length-1;T++)if(t=new SuperMapAlgoPlot.Point((O[T].x+O[T+1].x)/2,(O[T].y+O[T+1].y)/2),SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(e,t)){var x=[];x.push(O[T]),x.push(O[T+1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,x,y,!0)}}if(1<U.length){U=this.sortPts2D(U);for(var E=0;E<U.length-1;E++)t=new SuperMapAlgoPlot.Point((U[E].x+U[E+1].x)/2,(U[E].y+U[E+1].y)/2),SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(e,t)&&((d=[]).push(U[E]),d.push(U[E+1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,y,!0))}(O.length>0||U.length>0)&&(A=!0),O=[],U=[];for(var Y=new SuperMapAlgoPlot.Point(b,h.y),j=SuperMapAlgoPlot.PlottingUtil.circlePoint(Y,5,5,45),C=SuperMapAlgoPlot.PlottingUtil.circlePoint(Y,5,5,135),I=0;I<e.length-1;I++)(m=SuperMapAlgoPlot.PlottingUtil.intersectLines(Y,j,e[I],e[I+1])).isIntersectLines&&SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(m.intersectPoint,e[I],e[I+1])&&O.push(m.intersectPoint),(v=SuperMapAlgoPlot.PlottingUtil.intersectLines(Y,C,e[I],e[I+1])).isIntersectLines&&SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(v.intersectPoint,e[I],e[I+1])&&U.push(v.intersectPoint);if(1<O.length){O=this.sortPts2D(O);for(var B=0;B<O.length-1;B+=2)t=new SuperMapAlgoPlot.Point((O[B].x+O[B+1].x)/2,(O[B].y+O[B+1].y)/2),SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(e,t)&&((d=[]).push(O[B]),d.push(O[B+1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,y,!0))}if(1<U.length){U=this.sortPts2D(U);for(var R=0;R<U.length-1;R++)t=new SuperMapAlgoPlot.Point((U[R].x+U[R+1].x)/2,(U[R].y+U[R+1].y)/2),SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(e,t)&&((d=[]).push(U[R]),d.push(U[R+1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,y,!0))}(O.length>0||U.length>0)&&(A=!0),M-=f,b+=f}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e,l=0;l<t.length;l++)for(var o=0;o<t.length-1-l;o++)SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[o].x,t[o+1].x)?t[o].y>t[o+1].y&&(e=t[o],t[o]=t[o+1],t[o+1]=e):t[o].x>t[o+1].x&&(e=t[o],t[o]=t[o+1],t[o+1]=e);return t}}]),e}();SuperMapAlgoPlot.AlgoSymbol16500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16203=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l),this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue());for(var o=this.scaleValues[0]*e,i=this.scaleValues[1]*e,n=.01*e,a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),r=0,s={surroundLineFlag:!1,fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0},p=n,u=0;p<=a;p+=i,u++){r=p+n;var P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,r);if(-1===P.index)return;for(var c=SuperMapAlgoPlot.PlottingUtil.radian(P.pt,l[P.index+1])*SuperMapAlgoPlot.PlottingUtil.RTOD,g=this.getSubSymbolPts(o),S=[],h=0,f=g.length;h<f;h++)S.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P.pt,g[h],c));if(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,s),0===u){var y=new SuperMapAlgoPlot.Point((S[0].x+S[1].x)/2,(S[0].y+S[1].y)/2);this.addScalePoint(y,0)}else 1===u&&this.addScalePoint(P.pt,1);this.finish()}}}},{key:"getSubSymbolPts",value:function(t){var e=.5*t,l=[];return l.push(new SuperMapAlgoPlot.Point(.5*e,2*e)),l.push(new SuperMapAlgoPlot.Point(.5*-e,2*e)),l.push(new SuperMapAlgoPlot.Point(.5*-e,-2*e)),l.push(new SuperMapAlgoPlot.Point(.5*e,-2*e)),l}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);i=SuperMapAlgoPlot.PlottingUtil.clearSamePts(i);var n=.01*o;if(0===t){var a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,n);if(-1===a.index)return;var r=SuperMapAlgoPlot.PlottingUtil.distance(e,a.pt);this.scaleValues[0]=r/o}else if(1===t){var s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,n);if(-1===s.index)return;var p=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,i);if(-1===p.index)return;for(var u=0,P=s.index+1;P<p.index;P++)u+=SuperMapAlgoPlot.PlottingUtil.distance(i[P],i[P+1]);u+=SuperMapAlgoPlot.PlottingUtil.distance(i[p.index],p.pt),u-=n,this.scaleValues[1]=u/o,u>o-o*this.scaleValues[0]-n&&(this.scaleValues[1]=(o-o*this.scaleValues[0]-n)/o)}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol16203=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16202=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o,i,n=this.scaleValues[0]*e;o=SuperMapAlgoPlot.PlottingUtil.paraLine(t,n,!0),i=SuperMapAlgoPlot.PlottingUtil.paraLine(t,n,!1);var a=new SuperMapAlgoPlot.Point(o[0].x,o[0].y);a.isScalePoint=!0,a.tag=0,this.scalePoints.push(a),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i);var r=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),s=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),p=180*SuperMapAlgoPlot.PlottingUtil.radian(r,s)/Math.PI,u=new SuperMapAlgoPlot.Point(.3*e,0),P=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(r,u,p),c=new SuperMapAlgoPlot.Point(0,.4*n),g=new SuperMapAlgoPlot.Point(0,.2*n),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,c,p),h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,g,p),f=[];f.push(S),f.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,f);var y=new SuperMapAlgoPlot.Point(0,.2*n),A=new SuperMapAlgoPlot.Point(0,-.4*n),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,y,p),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,A,p);(f=[]).push(M),f.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var d=new SuperMapAlgoPlot.Point(.2*n,-.2*n),m=new SuperMapAlgoPlot.Point(-.2*n,-.6*n),v=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,d,p),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,m,p);(f=[]).push(v),f.push(O),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var U=new SuperMapAlgoPlot.Point(-.2*n,-.2*n),L=new SuperMapAlgoPlot.Point(.2*n,-.6*n),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,U,p),V=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,L,p);(f=[]).push(w),f.push(V),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var _=new SuperMapAlgoPlot.Point(.7*e,0),T=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(r,_,p),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(T,c,p),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(T,g,p);(f=[]).push(x),f.push(E),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,f);var Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(T,y,p),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(T,A,p);(f=[]).push(Y),f.push(j),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(T,d,p),I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(T,m,p);(f=[]).push(C),f.push(I),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(T,U,p),R=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(T,L,p);(f=[]).push(B),f.push(R),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.distance(l[0],e)/o;this.scaleValues[0]=n}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol16202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16201=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(.01)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues.push(.02),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(.01)):3===this.scaleValues.length&&this.scaleValues.push(.5*this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=this.scaleValues[0]*e,i=SuperMapAlgoPlot.PlottingUtil.paraLine(l,.5*o,!0),n=SuperMapAlgoPlot.PlottingUtil.paraLine(l,.5*o,!1);i=SuperMapAlgoPlot.PlottingUtil.clearSamePts(i),n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);for(var a=e*this.scaleValues[1],r=e*this.scaleValues[3],s=0,p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),u=r,P=0;u<=p-r;u+=a,P++){s=u+r;var c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,s);if(-1!==c.index){var g=new SuperMapAlgoPlot.Point(c.pt.x,c.pt.y+.5*o),S=[];S.push(c.pt),S.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,S),0===P?this.addScalePoint(g):1===P&&this.addScalePoint(c.pt)}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);var n,a=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(a=SuperMapAlgoPlot.PlottingUtil.clearSamePts(a),0==t){n=o*this.scaleValues[3];var r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(a,n);if(-1===r.index)return;var s=2*SuperMapAlgoPlot.PlottingUtil.distance(e,r.pt);this.scaleValues[0]=s/o}else if(1===t){n=o*this.scaleValues[3];var p=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(a,n);if(-1===p.index)return;var u=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,a);if(-1==u.index)return;for(var P=SuperMapAlgoPlot.PlottingUtil.distance(p.pt,a[p.index+1]),c=p.index+1;c<u.index;c++)P+=SuperMapAlgoPlot.PlottingUtil.distance(a[c],a[c+1]);P+=SuperMapAlgoPlot.PlottingUtil.distance(a[u.index],u.pt),this.scaleValues[1]=P/o,this.scaleValues[1]>.9&&(this.scaleValues[1]=.9)}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol16201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16200=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=this.getSubSymbolScaleValue();this.isEdit||(this.scaleValues[0]=.5*o);var i=this.scaleValues[0]*e,n=SuperMapAlgoPlot.PlottingUtil.paraLine(l,.5*i,!0),a=SuperMapAlgoPlot.PlottingUtil.paraLine(l,.5*i,!1);n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n),a=SuperMapAlgoPlot.PlottingUtil.clearSamePts(a),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a);for(var r=e*this.scaleValues[1],s=.5*i,p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),u=s,P=0;u<p;u+=r,P++){var c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,u);if(-1!==c.index){var g=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,l[c.index+1],c.pt),S=[];S.push(g.pntLeft),S.push(g.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S),0===P?this.addScalePoint(g.pntRight,0):1===P&&this.addScalePoint(c.pt,1)}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);var n,a=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(a=SuperMapAlgoPlot.PlottingUtil.clearSamePts(a),0==t){n=.5*(o*this.scaleValues[0]);var r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(a,n);if(-1===r.index)return;var s=SuperMapAlgoPlot.PlottingUtil.distance(e,r.pt);this.scaleValues[0]=s/o}else if(1===t){n=.5*(o*this.scaleValues[0]);var p=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(a,n);if(-1===p.index)return;var u=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,a);if(-1==u.index)return;for(var P=SuperMapAlgoPlot.PlottingUtil.distance(p.pt,a[p.index+1]),c=p.index+1;c<u.index;c++)P+=SuperMapAlgoPlot.PlottingUtil.distance(a[c],a[c+1]);P+=SuperMapAlgoPlot.PlottingUtil.distance(a[u.index],u.pt),this.scaleValues[1]=P/o}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol16200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16100=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){if(this.init(),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts)this.calAssistantLine();else{var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),!(t.length<this.minEditPts)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t);t.push(t[0]);for(var l=!0,o=e.x,i=e.x+.8,n={surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1};l;){l=!1;for(var a,r,s,p,u,P,c=[],g=[],S=new SuperMapAlgoPlot.Point(o,e.y),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,10,10,45),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,10,10,135),y=0;y<t.length-1;y++)(s=SuperMapAlgoPlot.PlottingUtil.intersectLines(S,h,t[y],t[y+1])).isIntersectLines&&SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(s.intersectPoint,t[y],t[y+1])&&c.push(s.intersectPoint),(p=SuperMapAlgoPlot.PlottingUtil.intersectLines(S,f,t[y],t[y+1])).isIntersectLines&&SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,t[y],t[y+1])&&g.push(p.intersectPoint);if(1<c.length){u=[],u=this.sortPts2D(c);for(var A=0;A<u.length-1;A++)a=new SuperMapAlgoPlot.Point((u[A].x+u[A+1].x)/2,(u[A].y+u[A+1].y)/2),SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(t,a)&&((r=[]).push(u[A]),r.push(u[A+1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,n,!0))}if(1<g.length){P=[],P=this.sortPts2D(g);for(var M=0;M<P.length-1;M++)a=new SuperMapAlgoPlot.Point((P[M].x+P[M+1].x)/2,(P[M].y+P[M+1].y)/2),SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(t,a)&&((r=[]).push(P[M]),r.push(P[M+1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,n,!0))}(c.length>0||g.length>0)&&(l=!0),c=[],g=[];for(var b=new SuperMapAlgoPlot.Point(i,e.y),d=SuperMapAlgoPlot.PlottingUtil.circlePoint(b,10,10,45),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(b,10,10,135),v=0;v<t.length-1;v++)(s=SuperMapAlgoPlot.PlottingUtil.intersectLines(b,d,t[v],t[v+1])).isIntersectLines&&SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(s.intersectPoint,t[v],t[v+1])&&c.push(s.intersectPoint),(p=SuperMapAlgoPlot.PlottingUtil.intersectLines(b,m,t[v],t[v+1])).isIntersectLines&&SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,t[v],t[v+1])&&g.push(p.intersectPoint);if(1<c.length){u=[],u=this.sortPts2D(c);for(var O=0;O<u.length-1;O++)a=new SuperMapAlgoPlot.Point((u[O].x+u[O+1].x)/2,(u[O].y+u[O+1].y)/2),SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(t,a)&&((r=[]).push(u[O]),r.push(u[O+1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,n,!0))}if(1<g.length){P=[],P=this.sortPts2D(g);for(var U=0;U<P.length-1;U++)a=new SuperMapAlgoPlot.Point((P[U].x+P[U+1].x)/2,(P[U].y+P[U+1].y)/2),SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(t,a)&&((r=[]).push(P[U]),r.push(P[U+1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,n,!0))}(c.length>0||g.length>0)&&(l=!0),o-=.8,i+=.8}this.finish()}}}},{key:"sortPts2D",value:function(t){for(var e,l=0;l<t.length;l++)for(var o=0;o<t.length-1-l;o++)SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[o].x,t[o+1].x)?t[o].y>t[o+1].y&&(e=t[o],t[o]=t[o+1],t[o+1]=tempPt11):t[o].x>t[o+1].x&&(e=t[o],t[o]=t[o+1],t[o+1]=e);return t}}]),e}();SuperMapAlgoPlot.AlgoSymbol16100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16001=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],l=t[1],o=.05*SuperMapAlgoPlot.PlottingUtil.distance(e,l),i=SuperMapAlgoPlot.PlottingUtil.paraLine(t,.5*o,!0),n=SuperMapAlgoPlot.PlottingUtil.paraLine(t,.5*o,!1);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);for(var a=0,r=0;r<i.length-1;r++)a+=SuperMapAlgoPlot.PlottingUtil.distance(i[r],i[r+1]);for(var s,p,u,P,c,g,S=a*this.getSubSymbolScaleValue()*.5,h=6*S,f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},y=S;y<=a-S/2;y+=h)-1!==(s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,y)).index&&(p=180*SuperMapAlgoPlot.PlottingUtil.radian(i[s.index],i[s.index+1])/Math.PI,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(s.pt,S,S,p+90),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(s.pt,.25*S,.25*S,p),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s.pt,.25*S,.25*S,p+180),(g=[]).push(u),g.push(P),g.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,f));for(var A=S;A<=a-S/2;A+=h)-1!==(s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,A)).index&&(p=180*SuperMapAlgoPlot.PlottingUtil.radian(n[s.index],n[s.index+1])/Math.PI,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(s.pt,S,S,p+270),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(s.pt,.25*S,.25*S,p),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s.pt,.25*S,.25*S,p+180),(g=[]).push(u),g.push(P),g.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,f));this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol16001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16000=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 l=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===l.scaleValues.length&&l.scaleValues.push(1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],l=t[1],o=.05*SuperMapAlgoPlot.PlottingUtil.distance(e,l),i=SuperMapAlgoPlot.PlottingUtil.paraLine(t,.5*o,!0),n=SuperMapAlgoPlot.PlottingUtil.paraLine(t,.5*o,!1);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);var a=[];a=this.scaleValues[0]<0?a.concat(n):a.concat(i);for(var r=0,s=0;s<a.length-1;s++)r+=SuperMapAlgoPlot.PlottingUtil.distance(a[s],a[s+1]);for(var p=this.getSubSymbolScaleValue(),u=r*p*.5,P=r*p*.125,c=.1*r,g=r*p*.5,S=0;S<=r;S+=c){var h=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(a,S+g);if(-1!==h.index){var f,y=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(u,a[h.index],h.pt);f=this.scaleValues[0]>0?new SuperMapAlgoPlot.Point(y.pntLeft.x,y.pntLeft.y):new SuperMapAlgoPlot.Point(y.pntRight.x,y.pntRight.y);var A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(P,f,h.pt),M=[];if(M.push(A.pntRight),M.push(f),M.push(A.pntLeft),0===S){var b=new SuperMapAlgoPlot.Point(f.x,f.y);b.isScalePoint=!0,b.tag=0,this.scalePoints.push(b)}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0})}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),o=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[0],l[1],e);this.scaleValues[0]=o?-1:1}}}]),e}();SuperMapAlgoPlot.AlgoSymbol16000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15900=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(1),l.scaleValues.push(.05)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);for(var l=0,o=0;o<t.length-1;o++)l+=SuperMapAlgoPlot.PlottingUtil.distance(t[o],t[o+1]);var i=l*this.scaleValues[0],n=l*this.scaleValues[2],a=!1;a=0===this.scaleValues[0];for(var r=0,s=0;s<e.length-1;s++)r+=SuperMapAlgoPlot.PlottingUtil.distance(e[s],e[s+1]);if(0!==r){for(var p=0;p<=r;p+=n){var u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,p);if(-1!==u.index){var P=[],c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);a?P.push(c.pntRight):P.push(c.pntLeft);var g=p+n,S=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,g);if(-1!==S.index){var h=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[S.index+1],S.pt);a?P.push(h.pntLeft):P.push(h.pntRight),Math.abs(p)<1e-6&&(this.addScalePoint(P[0],0),this.addScalePoint(S.pt,1)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P)}}}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t){var n=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(1,o[1],o[0]),a=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,n.pntRight,n.pntLeft),r=SuperMapAlgoPlot.PlottingUtil.distance(a.projectPoint,l[0]);this.scaleValues[0]=r/i;var s=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[0],o[1],e);this.scaleValues[1]=s?1:0}else{for(var p,u=-1,P=0,c=o.length-1;P<c;P++){var g=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,o[P],o[P+1]);if(g.isOnline){p=g.projectPoint,u=P;break}}if(-1===u)return;for(var S=[],h=0,f=u;h<=f;h++)S.push(o[h]);S.push(p);var y=SuperMapAlgoPlot.PlottingUtil.polylineDistance(S);this.scaleValues[2]=y/i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15806=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.06),l.scaleValues.push(1),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(t.length>=this.minEditPts){this.scalePoints=[];var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=l*o,n=.6*i,a=this.scaleValues[2]*o,r=0===this.scaleValues[1],s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0===s)return;for(var p=[],u=0;u<=s;u+=a){var P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,u);if(!(P.index<0)){var c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[P.index+1],P.pt);if(r?p.push(c.pntRight):p.push(c.pntLeft),!((P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,u+.65*a)).index<0||(c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,e[P.index+1],P.pt),r?p.push(c.pntRight):p.push(c.pntLeft),(P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,u+.8*a)).index<0||(p.push(P.pt),(P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,u+.5*a)).index<0||(c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[P.index+1],P.pt),r?p.push(c.pntLeft):p.push(c.pntRight),P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,u+.2*a),p.push(P.pt),(P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,u+.35*a)).index<0||(c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,e[P.index+1],P.pt),r?p.push(c.pntRight):p.push(c.pntLeft),(P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,u+a)).index<0||(c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[P.index+1],P.pt),r?p.push(c.pntRight):p.push(c.pntLeft),!(Math.abs(u)<=1e-6)))))))){this.scalePoints=[];var g=new SuperMapAlgoPlot.Point(p[0].x,p[0].y);g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g),(g=new SuperMapAlgoPlot.Point(P.pt.x,P.pt.y)).isScalePoint=!0,g.tag=1,this.scalePoints.push(g)}}}var S=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(p);SuperMapAlgoPlot.PlottingUtil.clearSamePts(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o,i,n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t){i=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(1,n[1],n[0]),o=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(new SuperMapAlgoPlot.Point(e.x,e.y),i.pntRight,i.pntLeft);var r=SuperMapAlgoPlot.PlottingUtil.distance(o.projectPoint,l[0])/a;this.scaleValues[0]=r;var s=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(n[0],n[1],new SuperMapAlgoPlot.Point(e.x,e.y));this.scaleValues[1]=s?1:0}else{for(var p,u=-1,P=0;P<n.length-1;P++)if((o=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(new SuperMapAlgoPlot.Point(e.x,e.y),n[P],n[P+1])).isOnline){p=o.projectPoint,u=P;break}if(-1===u)return void(this.scaleValues[2]=.05);for(var c=[],g=0;g<=u;g++)c.push(n[g]);c.push(p);var S=SuperMapAlgoPlot.PlottingUtil.polylineDistance(c);this.scaleValues[2]=S/a}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15806=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15805=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s=[],p=0;p<=r;p+=n){var u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(a?s.push(P.pntRight):s.push(P.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var c=new SuperMapAlgoPlot.Point(s[0].x,s[0].y);c.isScalePoint=!0,c.tag=0,this.scalePoints.push(c)}else Math.abs(2*n-p)<=1e-6&&((c=new SuperMapAlgoPlot.Point(u.pt.x,u.pt.y)).isScalePoint=!0,c.tag=1,this.scalePoints.push(c));a=!a}}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s);for(var g=s.length,S=0,h=45*Math.PI/180,f=45*Math.PI/180,y=0;y<g-1;y+=2){var A=[],M=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.3,s[y],s[y+1]);A.push(M);var b=new SuperMapAlgoPlot.Point(s[y].x,s[y].y),d=new SuperMapAlgoPlot.Point(s[y+1].x,s[y+1].y);S=SuperMapAlgoPlot.PlottingUtil.distance(b,d);var m=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.6,s[y],s[y+1]),v=new SuperMapAlgoPlot.Point(m.x,m.y);v=SuperMapAlgoPlot.PlottingUtil.rotateAngle(M,h,m),A.push(v);var O=.15*S;m=SuperMapAlgoPlot.PlottingUtil.linePnt(A[1],A[0],O);var U=new SuperMapAlgoPlot.Point(m.x,m.y);SuperMapAlgoPlot.PlottingUtil.rotateAngle(v,f,U),A.push(U);var L=new SuperMapAlgoPlot.Point(A[1].x-A[0].x+A[2].x,A[1].y-A[0].y+A[2].y);A.push(L),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A)}this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15805=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15804=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.029615),l.scaleValues.push(1),l.scaleValues.push(.12)),l}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,SuperMapAlgoPlot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s=[],p=0;p<=r;p+=n){var u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(a?s.push(P.pntRight):s.push(P.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var c=new SuperMapAlgoPlot.Point(s[0].x,s[0].y);c.isScalePoint=!0,c.tag=0,this.scalePoints.push(c)}else Math.abs(2*n-p)<=1e-6&&((c=new SuperMapAlgoPlot.Point(u.pt.x,u.pt.y)).isScalePoint=!0,c.tag=1,this.scalePoints.push(c));a=!a}}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s);for(var g=s.length,S=0,h=0;h<g-1;++h){var f=new SuperMapAlgoPlot.Point(s[h].x,s[h].y),y=new SuperMapAlgoPlot.Point(s[h+1].x,s[h+1].y);S=.3*SuperMapAlgoPlot.PlottingUtil.distance(f,y);var A=[],M=new SuperMapAlgoPlot.Point(.5*(f.x+y.x),.5*(f.y+y.y)),b=SuperMapAlgoPlot.PlottingUtil.dirAngle(f,y)*SuperMapAlgoPlot.PlottingUtil.RTOD,d=SuperMapAlgoPlot.PlottingUtil.circlePoint(M,S,S,b+90),m=1.5*S,v=SuperMapAlgoPlot.PlottingUtil.circlePoint(d,m,m,b+260),O=SuperMapAlgoPlot.PlottingUtil.circlePoint(d,m,m,b+280);A.push(v),A.push(d),A.push(O),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A)}this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15804=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15803=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s=[],p=0;p<=r;p+=n){var u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(a?s.push(P.pntRight):s.push(P.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var c=new SuperMapAlgoPlot.Point(s[0].x,s[0].y);c.isScalePoint=!0,c.tag=0,this.scalePoints.push(c)}else Math.abs(2*n-p)<=1e-6&&((c=new SuperMapAlgoPlot.Point(u.pt.x,u.pt.y)).isScalePoint=!0,c.tag=1,this.scalePoints.push(c));a=!a}}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s);for(var g=s.length,S=0,h=0;h<g-1;++h){var f=new SuperMapAlgoPlot.Point(s[h].x,s[h].y),y=new SuperMapAlgoPlot.Point(s[h+1].x,s[h+1].y);S=.3*SuperMapAlgoPlot.PlottingUtil.distance(f,y);var A=[],M=[];if(h!==g-2){var b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*S,s[h],s[h+1]);A.push(b.pntLeft),A.push(b.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A)}if(0!==h){var d=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*S,s[h+1],s[h]);M.push(d.pntLeft),M.push(d.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M)}}this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15803=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15802=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s,p=[],u=0;u<=r;u+=n){var P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,u);if(!(P.index<0)){var c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[P.index+1],P.pt);if(a?p.push(c.pntRight):p.push(c.pntLeft),Math.abs(u)<=1e-6){this.scalePoints=[];var g=new SuperMapAlgoPlot.Point(p[0].x,p[0].y);g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g)}else Math.abs(2*n-u)<=1e-6&&((g=new SuperMapAlgoPlot.Point(P.pt.x,P.pt.y)).isScalePoint=!0,g.tag=1,this.scalePoints.push(g));a=!a}}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p);for(var S=p.length,h=0,f=0;f<S-1;++f){var y=new SuperMapAlgoPlot.Point(p[f].x,p[f].y),A=new SuperMapAlgoPlot.Point(p[f+1].x,p[f+1].y);h=.3*SuperMapAlgoPlot.PlottingUtil.distance(y,A);var M=[],b=[],d=[],m=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.35,p[f],p[f+1]);s=new SuperMapAlgoPlot.Point((p[f].x+p[f+1].x)/2,(p[f].y+p[f+1].y)/2);var v=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*h,p[f],s);b.push(v.pntLeft,v.pntRight);var O=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*h,p[f],m);M.push(O.pntLeft,O.pntRight),d.push(new SuperMapAlgoPlot.Point(2*s.x-O.pntLeft.x,2*s.y-O.pntLeft.y)),d.push(new SuperMapAlgoPlot.Point(2*s.x-O.pntRight.x,2*s.y-O.pntRight.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d)}this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15802=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s=new SuperMapAlgoPlot.Point(0,0),p=[],u=0;u<=r;u+=n){var P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,u);if(!(P.index<0)){var c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[P.index+1],P.pt);if(a?p.push(c.pntRight):p.push(c.pntLeft),Math.abs(u)<=1e-6){this.scalePoints=[];var g=new SuperMapAlgoPlot.Point(p[0].x,p[0].y);g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g)}else Math.abs(2*n-u)<=1e-6&&((g=new SuperMapAlgoPlot.Point(P.pt.x,P.pt.y)).isScalePoint=!0,g.tag=1,this.scalePoints.push(g));a=!a}}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p);for(var S=p.length,h=0,f=0;f<S-1;++f){var y=new SuperMapAlgoPlot.Point(p[f].x,p[f].y),A=new SuperMapAlgoPlot.Point(p[f+1].x,p[f+1].y);h=.3*SuperMapAlgoPlot.PlottingUtil.distance(y,A);var M=[],b=[],d=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.35,p[f],p[f+1]);s=new SuperMapAlgoPlot.Point((p[f].x+p[f+1].x)/2,(p[f].y+p[f+1].y)/2);var m=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*h,p[f],d);M.push(m.pntLeft),M.push(m.pntRight),b.push(new SuperMapAlgoPlot.Point(2*s.x-m.pntLeft.x,2*s.y-m.pntLeft.y)),b.push(new SuperMapAlgoPlot.Point(2*s.x-m.pntRight.x,2*s.y-m.pntRight.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b)}this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15800=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.04),l.scaleValues.push(1),l.scaleValues.push(.12)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s=[],p=0;p<=r;p+=n){var u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(a?s.push(P.pntRight):s.push(P.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var c=new SuperMapAlgoPlot.Point(s[0].x,s[0].y);c.isScalePoint=!0,c.tag=0,this.scalePoints.push(c)}else Math.abs(2*n-p)<=1e-6&&((c=new SuperMapAlgoPlot.Point(u.pt.x,u.pt.y)).isScalePoint=!0,c.tag=1,this.scalePoints.push(c));a=!a}}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s);for(var g=s.length,S=0,h=0;h<g-1;++h){var f=new SuperMapAlgoPlot.Point(s[h].x,s[h].y),y=new SuperMapAlgoPlot.Point(s[h+1].x,s[h+1].y);S=.3*SuperMapAlgoPlot.PlottingUtil.distance(f,y);var A=[],M=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.5,s[h],s[h+1]),b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*S,s[h],M);A.push(b.pntLeft),A.push(b.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A)}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t){var n=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(1,o[1],o[0]),a=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,n.pntRight,n.pntLeft),r=SuperMapAlgoPlot.PlottingUtil.distance(a.projectPoint,l[0]);this.scaleValues[0]=r/i;var s=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[0],o[1],e);this.scaleValues[1]=s?1:0}else{for(var p,u=-1,P=0,c=o.length-1;P<c;P++){var g=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,o[P],o[P+1]);if(g.isOnline){p=g.projectPoint,u=P;break}}if(-1===u)return void(this.scaleValues[2]=.05);for(var S=[],h=0,f=u;h<=f;h++)S.push(o[h]);S.push(p);var y=SuperMapAlgoPlot.PlottingUtil.polylineDistance(S)/i;if(y>=1)return;this.scaleValues[2]=y}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15202=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 l=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===l.scaleValues.length&&(l.scaleValues.push(parseFloat(.1732)),l.scaleValues.push(.1),l.scaleValues.push(1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var e=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),l=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),o=SuperMapAlgoPlot.PlottingUtil.distance(e,l),i=this.scaleValues[0]*o,n=this.scaleValues[1]*o,a=this.scaleValues[2],r=null;if(1===a){var s=SuperMapAlgoPlot.PlottingUtil.linePnt(l,e,o+i);r=new SuperMapAlgoPlot.Point(s.x,s.y)}else s=SuperMapAlgoPlot.PlottingUtil.linePnt(l,e,o-i),r=new SuperMapAlgoPlot.Point(s.x,s.y);var p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*n,t[0],r),u=[];u.push(p.pntRight),u.push(t[0]),u.push(p.pntLeft),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u);var P=[],c=new SuperMapAlgoPlot.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(1===a){var g=new SuperMapAlgoPlot.Point(2*c.x-p.pntLeft.x,2*c.y-p.pntLeft.y);P.push(g),P.push(t[1]);var S=new SuperMapAlgoPlot.Point(2*c.x-p.pntRight.x,2*c.y-p.pntRight.y);P.push(S)}else g=new SuperMapAlgoPlot.Point(2*c.x-p.pntRight.x,2*c.y-p.pntRight.y),P.push(g),P.push(t[1]),S=new SuperMapAlgoPlot.Point(2*c.x-p.pntLeft.x,2*c.y-p.pntLeft.y),P.push(S);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15201=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(.185)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);for(var l=0,o=0,i=e.length-1;o<i;o++)l+=SuperMapAlgoPlot.PlottingUtil.distance(e[o],e[o+1]);for(var n=0,a=0,r=t.length-1;a<r;a++)n+=SuperMapAlgoPlot.PlottingUtil.distance(t[a],t[a+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<l;c+=u){var g=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(c,e);if(-1===g.index)return void this.finish();var S=c+P,h=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(S,e);if(-1===h.index)return void this.finish();var f=[],y=[];f.push(g.pts);var A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,e[g.index],g.pts);0===p?f.push(new SuperMapAlgoPlot.Point(A.pntLeft.x,A.pntLeft.y)):f.push(new SuperMapAlgoPlot.Point(A.pntRight.x,A.pntRight.y)),y.push(h.pts);var M=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,e[h.index],h.pts);if(0===p?y.push(new SuperMapAlgoPlot.Point(M.pntLeft.x,M.pntLeft.y)):y.push(new SuperMapAlgoPlot.Point(M.pntRight.x,M.pntRight.y)),u===c){this.scalePoints=[];var b=new SuperMapAlgoPlot.Point(f[1].x,f[1].y);b.isScalePoint=!0,b.tag=0,this.scalePoints.push(b),(b=new SuperMapAlgoPlot.Point(f[0].x,f[0].y)).isScalePoint=!0,b.tag=1,this.scalePoints.push(b)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;for(var o=0,i=0,n=l.length-1;i<n;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);var a=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),r=new SuperMapAlgoPlot.Point(e.x,e.y);if(0===t){var s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(a,o*this.scaleValues[2]);if(-1===s.index)return;var p=SuperMapAlgoPlot.PlottingUtil.distance(s.pt,r)/o,u=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(a[0],a[1],e);this.scaleValues[1]=u?1:0,this.scaleValues[0]=p}else if(1===t){for(var P=0,c=-1,g=[],S=0,h=a.length-1;S<h;S++){var f=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,a[S],a[S+1]);if(f.isOnline){var y=SuperMapAlgoPlot.PlottingUtil.distance(f.projectPoint,this.controlPoints[1]);0==P?(P=y,c=S,g=e):y<P&&(P=y,c=S,g=e)}}if(-1==c)return;for(var A=0,M=0,b=c-1;M<b;M++)A+=SuperMapAlgoPlot.PlottingUtil.distance(a[M],a[M+1]);var d=(A+=SuperMapAlgoPlot.PlottingUtil.distance(g,a[c]))/o;d>.7&&(d=.7),this.scaleValues[2]=d}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol13700=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e;if(2===t.length)e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t);else if(3===t.length){var l=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),o=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),i=new SuperMapAlgoPlot.Point(t[2].x,t[2].y),n=SuperMapAlgoPlot.PlottingUtil.distance(o,i);if(0>=n)return;this.scaleValues=[];var a=SuperMapAlgoPlot.PlottingUtil.distance(l,o)/n;this.scaleValues.push(a);var r=180*SuperMapAlgoPlot.PlottingUtil.radian(l,o)/Math.PI;r>90?r-=90:r=270+r,this.scaleValues.push(r*(Math.PI/180));var s=180*SuperMapAlgoPlot.PlottingUtil.radian(l,i)/Math.PI;s>90?s-=90:s=270+s,this.scaleValues.push(s*(Math.PI/180)),e=this.scaleValues[0]*n;var p=this.scaleValues[1]*(180/Math.PI)+90,u=this.scaleValues[2]*(180/Math.PI)+90;p<u&&(p+=360);for(var P,c=[],g=p;g>=u;g-=4)P=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,g),c.push(P);g!=u&&(P=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,u),c.push(P)),this.controlPoints[2]=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c)}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol13700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol12502=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.03)),l}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,SuperMapAlgoPlot.AlgoSymbol12500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.5),this.scaleValues.push(.03));for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0];this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());var i=this.scaleValues[1]*e,n=o*e,a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,n);if(-1!==a.index){for(var r,s=a.pt,p=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[s,new SuperMapAlgoPlot.Point(s.x+i,s.y)]),u=0;u<t.length-1;u++){var P,c=t[u];r=t[u+1];var g=SuperMapAlgoPlot.PlottingUtil.distance(s,c),S=SuperMapAlgoPlot.PlottingUtil.distance(s,r);if(!(g<i&&S<i))if(g>i&&S<i||g<i&&S>i){var h;h=g>i?c:r,(P=this.getLineAddCircleIntersectPts(c,r,p)).length>0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[P[0],h])}else{var f=SuperMapAlgoPlot.PlottingUtil.projectPoint(s,c,r);if(SuperMapAlgoPlot.PlottingUtil.distance(s,f)>=i)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[c,r]);else if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(f,c,r)){if((P=this.getLineAddCircleIntersectPts(c,r,p)).length>0){P.unshift(c),P.push(r);for(var y=0;y<P.length-1;y++)this.isLineInCircle(P[y],P[y+1],s,i)||this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[P[y],P[y+1]])}}else this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[c,r])}}var A=0;P&&(A=SuperMapAlgoPlot.PlottingUtil.radian(s,P[P.length-1])*SuperMapAlgoPlot.PlottingUtil.RTOD);var M=[];r=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,-i,-i,A),M.push(r,s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M);var b=SuperMapAlgoPlot.PlottingUtil.radian(r,s)*SuperMapAlgoPlot.PlottingUtil.RTOD,d=[],m=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,.8*i,.8*i,b+170),v=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,.8*i,.8*i,b-170);d.push(m),d.push(v),d.push(s);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,d,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[s,new SuperMapAlgoPlot.Point(s.x+i,s.y)]),this.addScalePoint(s,0),this.addScalePoint(new SuperMapAlgoPlot.Point(s.x+i,s.y),1),this.finish()}}}},{key:"isLineInCircle",value:function(t,e,l,o){var i=new SuperMapAlgoPlot.Point((t.x+e.x)/2,(t.y+e.y)/2);return o>SuperMapAlgoPlot.PlottingUtil.distance(i,l)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,l){var o=l.slice();o[0].x===o[o.length-1].x&&o[0].y===o[o.length-1].y||o.push(o[0]);for(var i,n=[],a=0;a<o.length-1;a++){var r=o[a],s=o[a+1],p=SuperMapAlgoPlot.PlottingUtil.intersectLines(t,e,r,s);p.isIntersectLines&&SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,t,e)&&SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,r,s)&&n.push(p.intersectPoint)}for(var u=0;u<n.length-1;u++)SuperMapAlgoPlot.PlottingUtil.isSamePt(n[u],n[u+1])&&(n.splice(u,1),u--);if(t.x>e.x)for(var P=0;P<n.length&&P!=n.length-1;P++)n[P].x<n[P+1].x&&(i=n[P],n[P]=n[P+1],n[P+1]=i);else if(t.x<e.x)for(var c=0;c<n.length&&c!=n.length-1;c++)n[c].x>n[c+1].x&&(i=n[c],n[c]=n[c+1],n[c+1]=i);else if(t.y>e.y)for(var g=0;g<n.length&&g!=n.length-1;g++)n[g].y<n[g+1].y&&(i=n[g],n[g]=n[g+1],n[g+1]=i);else if(t.y<e.y)for(var S=0;S<n.length&&S!=n.length-1;S++)n[S].y>n[S+1].y&&(i=n[S],n[S]=n[S+1],n[S+1]=i);return n}}]),e}();SuperMapAlgoPlot.AlgoSymbol12502=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol12501=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.03),l.scaleValues.push(.5),l.scaleValues.push(.03)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(!this.isEdit){var e=this.getSubSymbolScaleValue();this.scaleValues[0]=e,this.scaleValues[1]=.5*e,this.scaleValues[3]=.5*e}var l=this.scaleValues[0],o=this.scaleValues[1],i=this.scaleValues[2],n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var a=this.GetCurvePts(t,l,o);if(0!==a.pt.length){var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n)*i,s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,r);if(-1!==s.index){for(var p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[3],u=[],P=0;P<360;P+=12)u.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(s.pt,p,p,P));u.push(u[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u);for(var c=[],g=[],S=0;S<a.pt.length;S++)SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(u,a.pt[S])?g.length>1&&(c.push(g),g=[]):g.push(a.pt[S]);g.length>1&&c.push(g);for(var h=0;h<c.length;h++)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c[h]);var f=new SuperMapAlgoPlot.Point(a.pt[0].x,a.pt[0].y);f.isScalePoint=!0,f.tag=0,this.scalePoints.push(f);var y=new SuperMapAlgoPlot.Point(a.scalePt.x,a.scalePt.y);y.isScalePoint=!0,y.tag=1,this.scalePoints.push(y);var A=new SuperMapAlgoPlot.Point(s.pt.x,s.pt.y);A.isScalePoint=!0,A.tag=2,this.scalePoints.push(A);var M=SuperMapAlgoPlot.PlottingUtil.circlePoint(new SuperMapAlgoPlot.Point(s.pt.x,s.pt.y),p,p,0),b=new SuperMapAlgoPlot.Point(M.x,M.y);b.isScalePoint=!0,b.tag=3,this.scalePoints.push(b),this.finish()}else this.finish()}else this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(null!=e&&!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;if(4>this.scaleValues.length)return;var o,i,n,a,r,s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),p=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),u=new SuperMapAlgoPlot.Point(e.x,e.y);if(0===t){var P=new SuperMapAlgoPlot.Point(l[0].x,l[0].y),c=SuperMapAlgoPlot.PlottingUtil.distance(P,u);i=2*c/s,this.scaleValues[1]=i}else if(1===t)P=new SuperMapAlgoPlot.Point(l[0].x,l[0].y),o=(c=SuperMapAlgoPlot.PlottingUtil.distance(P,u))/s,this.scaleValues[0]=o;else if(2==t){var g=-1,S=0;r=new SuperMapAlgoPlot.Point(0,0),o=this.scaleValues[0],i=this.scaleValues[1];for(var h=0;h<p.length-1;h++){var f=p[h],y=p[h+1],A=SuperMapAlgoPlot.PlottingUtil.projectPoint(u,f,y);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(A,f,y)){var M=SuperMapAlgoPlot.PlottingUtil.distance(u,A);-1==g?(g=h,r=A,S=M):S>M&&(g=h,r=A,S=M)}}if(-1==g||g>p.length-1)return;a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(p);for(var b=[],d=0;d<g;d++)b.push(p[d]);b.push(r);var m=SuperMapAlgoPlot.PlottingUtil.polylineDistance(b);if(m<0||m>a)return;n=m/a,this.scaleValues[2]=n}else if(3===t){o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2];var v=(a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(p))*n;if(-1===(r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(p,v)).index)return;var O=SuperMapAlgoPlot.PlottingUtil.distance(r.pt,e)/s;O>.4&&(O=.4),this.scaleValues[3]=O}}}},{key:"GetCurvePts",value:function(t,e,l){for(var o,i=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i),a=n*e,r=n*l/2,s=[],p=[],u=i[0],P=!1,c=i[0],g=1;g<i.length;g++){var S=i[g],h=SuperMapAlgoPlot.PlottingUtil.distance(u,S);if(!(h<a&&g!==i.length-1)){for(var f,y=parseInt(h/a),A=0;A<y;A++){f=SuperMapAlgoPlot.PlottingUtil.linePnt(u,S,a),P||(o=f,P=!0);var M=this.GetCosPts2D(u,f,a,r);s=p.length>1&&0===A?this.ClearCurvePts2D(c,u,S,p,M,s):s.concat(M),p=(p=[]).concat(M),c=u,u=f}g===i.length-1&&(f=i[i.length-1],M=this.GetCosPts2D(u,f,a,r),s=p.length>1&&M.length>1?this.ClearCurvePts2D(c,u,S,p,M,s):s.concat(M))}}return{pt:s,scalePt:o}}},{key:"GetCosPts2D",value:function(t,e,l,o){for(var i=[],n=SuperMapAlgoPlot.PlottingUtil.distance(t,e),a=l/30,r=0;r<n;r+=a){var s=r*(2*Math.PI/l),p=o*Math.cos(s),u=new SuperMapAlgoPlot.Point(r,p),P=180*SuperMapAlgoPlot.PlottingUtil.radian(t,e)/Math.PI,c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,u,P);i.push(c)}return i}},{key:"ClearCurvePts2D",value:function(t,e,l,o,i,n){for(var a=180*SuperMapAlgoPlot.PlottingUtil.radian(e,l)/Math.PI,r=180*SuperMapAlgoPlot.PlottingUtil.radian(e,t)/Math.PI-a;r<=0;)r+=360;var s=r/2,p=l;p=SuperMapAlgoPlot.PlottingUtil.rotateAngle(e,s*Math.PI/180,p);for(var u=SuperMapAlgoPlot.PlottingUtil.linePnt(e,p,1),P=0,c=0;c<o.length;c++)if(SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(e,u,o[c])){P=c;break}if(0!=P)for(var g=0;g<o.length-P;g++)n.slice(g,n.length-1);for(var S=0;S<i.length;S++)SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(e,u,i[S])&&n.push(i[S]);return n}}]),e}();SuperMapAlgoPlot.AlgoSymbol12501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol12500=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.03)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.5),this.scaleValues.push(.03));var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0];this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());var o=this.scaleValues[1]*e,i=l*e,n=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,i);if(-1!==n.index){for(var a=n.pt,r=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[a,new SuperMapAlgoPlot.Point(a.x+o,a.y)]),s=0;s<t.length-1;s++){var p,u=t[s],P=t[s+1],c=SuperMapAlgoPlot.PlottingUtil.distance(a,u),g=SuperMapAlgoPlot.PlottingUtil.distance(a,P);if(!(c<o&&g<o))if(c>o&&g<o||c<o&&g>o){var S;S=c>o?u:P,(p=this.getLineAddCircleIntersectPts(u,P,r)).length>0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[p[0],S])}else{var h=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,u,P);if(SuperMapAlgoPlot.PlottingUtil.distance(a,h)>=o)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u,P]);else if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(h,u,P)){if((p=this.getLineAddCircleIntersectPts(u,P,r)).length>0){p.unshift(u),p.push(P);for(var f=0;f<p.length-1;f++)this.isLineInCircle(p[f],p[f+1],a,o)||this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[p[f],p[f+1]])}}else this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u,P])}}this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[a,new SuperMapAlgoPlot.Point(a.x+o,a.y)]),this.scalePoints=[];var y=a;y.isScalePoint=!0,y.tag=0,this.scalePoints.push(y);var A=new SuperMapAlgoPlot.Point(a.x+o,a.y);A.isScalePoint=!0,A.tag=1,this.scalePoints.push(A),this.finish()}}}},{key:"isLineInCircle",value:function(t,e,l,o){var i=new SuperMapAlgoPlot.Point((t.x+e.x)/2,(t.y+e.y)/2);return o>SuperMapAlgoPlot.PlottingUtil.distance(i,l)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,l){var o=l.slice();o[0].x===o[o.length-1].x&&o[0].y===o[o.length-1].y||o.push(o[0]);for(var i,n=[],a=0;a<o.length-1;a++){var r=o[a],s=o[a+1],p=SuperMapAlgoPlot.PlottingUtil.intersectLines(t,e,r,s);p.isIntersectLines&&SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,t,e)&&SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,r,s)&&n.push(p.intersectPoint)}for(var u=0;u<n.length-1;u++)SuperMapAlgoPlot.PlottingUtil.isSamePt(n[u],n[u+1])&&(n.splice(u,1),u--);if(t.x>e.x)for(var P=0;P<n.length&&P!=n.length-1;P++)n[P].x<n[P+1].x&&(i=n[P],n[P]=n[P+1],n[P+1]=i);else if(t.x<e.x)for(var c=0;c<n.length&&c!=n.length-1;c++)n[c].x>n[c+1].x&&(i=n[c],n[c]=n[c+1],n[c+1]=i);else if(t.y>e.y)for(var g=0;g<n.length&&g!=n.length-1;g++)n[g].y<n[g+1].y&&(i=n[g],n[g]=n[g+1],n[g+1]=i);else if(t.y<e.y)for(var S=0;S<n.length&&S!=n.length-1;S++)n[S].y>n[S+1].y&&(i=n[S],n[S]=n[S+1],n[S+1]=i);return n}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t){for(var i=0,n=-1,a=null,r=0;r<l.length-1;r++){var s=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,l[r],l[r+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(s.projectPoint,l[r],l[r+1])){var p=SuperMapAlgoPlot.PlottingUtil.distance(s.projectPoint,e);0==i?(i=p,n=r,a=s.projectPoint):p<i&&(i=p,n=r,a=s.projectPoint)}}if(-1==n)return;for(var u=0,P=0;P<n;P++)u+=SuperMapAlgoPlot.PlottingUtil.distance(l[P],l[P+1]);var c=(u+=SuperMapAlgoPlot.PlottingUtil.distance(a,l[n]))/o;c>1&&(c=1),this.scaleValues[0]=c}if(1===t){var g=this.scaleValues[0]*o,S=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,g);if(-1===S.index)return;var h=SuperMapAlgoPlot.PlottingUtil.distance(S.pt,e)/o;h>.4&&(h=.4),this.scaleValues[1]=h}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol12500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbol1770501=e.AlgoSymbol1770201=e.AlgoSymbol1770101=e.AlgoSymbol4021102=e.AlgoSymbol4021101=e.AlgoSymbol6020404=e.AlgoSymbol6020403=e.AlgoSymbol4022102=e.AlgoSymbol4022101=e.AlgoSymbol4022100=e.AlgoSymbol4020402=e.AlgoSymbol4020401=e.AlgoSymbol4020303=e.AlgoSymbol4011101=e.AlgoSymbol4011100=e.AlgoSymbol4010905=e.AlgoSymbol4010801=e.AlgoSymbol4010800=e.AlgoSymbol3032000=e.AlgoSymbol3020901=e.AlgoSymbol3010304=e.AlgoSymbol3010303=e.AlgoSymbol6020402=e.AlgoSymbol6020401=e.AlgoSymbol6020400=e.AlgoSymbol3010302=e.AlgoSymbol3010301=e.AlgoSymbol3010108=e.AlgoSymbol3010107=e.AlgoSymbol3010106=e.AlgoSymbol3010105=void 0,e.AlgoSymbol3010104=e.AlgoSymbol3010103=e.AlgoSymbol3010102=e.AlgoSymbol2890001=e.AlgoSymbol2730101=e.AlgoSymbol2570501=e.AlgoSymbol2570401=e.AlgoSymbol2570301=e.AlgoSymbol2570201=e.AlgoSymbol2350001=e.AlgoSymbol44400=e.AlgoSymbol44300=e.AlgoSymbol44200=e.AlgoSymbol44100=e.AlgoSymbol43500=e.AlgoSymbol42700=e.AlgoSymbol42500=e.AlgoSymbol42400=e.AlgoSymbol42200=e.AlgoSymbol41202=e.AlgoSymbol41201=e.AlgoSymbol41200=e.AlgoSymbol41100=e.AlgoSymbol40900=e.AlgoSymbol40101=e.AlgoSymbol40100=e.AlgoSymbol40000=e.AlgoSymbol39802=e.AlgoSymbol39801=e.AlgoSymbol39800=e.AlgoSymbol39600=e.AlgoSymbol39500=e.AlgoSymbol39101=e.AlgoSymbol39000=e.AlgoSymbol38700=e.AlgoSymbol38600=e.AlgoSymbol37700=e.AlgoSymbol37601=e.AlgoSymbol37600=e.AlgoSymbol37301=e.AlgoSymbol37300=e.AlgoSymbol37200=e.AlgoSymbol37100=e.AlgoSymbol36800=e.AlgoSymbol36700=e.AlgoSymbol36600=e.AlgoSymbol36401=e.AlgoSymbol36400=e.AlgoSymbol35500=e.AlgoSymbol35304=e.AlgoSymbol35200=e.AlgoSymbol35000=e.AlgoSymbol34902=e.AlgoSymbol34901=e.AlgoSymbol34900=e.AlgoSymbol34801=e.AlgoSymbol34800=e.AlgoSymbol34700=e.AlgoSymbol34501=e.AlgoSymbol34500=e.AlgoSymbol34400=e.AlgoSymbol34300=e.AlgoSymbol33400=e.AlgoSymbol32900=e.AlgoSymbol32300=e.AlgoSymbol31803=e.AlgoSymbol31601=e.AlgoSymbol31600=e.AlgoSymbol31401=e.AlgoSymbol31400=e.AlgoSymbol31304=e.AlgoSymbol31303=e.AlgoSymbol31302=e.AlgoSymbol31301=e.AlgoSymbol31300=e.AlgoSymbol30102=e.AlgoSymbol30800=e.AlgoSymbol30201=e.AlgoSymbol30200=e.AlgoSymbol30100=e.AlgoSymbol30002=e.AlgoSymbol30001=e.AlgoSymbol30000=e.AlgoSymbol29903=e.AlgoSymbol29800=e.AlgoSymbol29401=e.AlgoSymbol29103=e.AlgoSymbol29101=e.AlgoSymbol29100=e.AlgoSymbol29003=e.AlgoSymbol29002=e.AlgoSymbol29001=e.AlgoSymbol29000=e.AlgoSymbol28900=e.AlgoSymbol28400=e.AlgoSymbol28301=e.AlgoSymbol28300=e.AlgoSymbol28201=e.AlgoSymbol28200=e.AlgoSymbol28100=void 0,e.AlgoSymbol28000=e.AlgoSymbol27902=e.AlgoSymbol27901=e.AlgoSymbol27900=e.AlgoSymbol27701=e.AlgoSymbol27700=e.AlgoSymbol27300=e.AlgoSymbol27100=e.AlgoSymbol26800=e.AlgoSymbol26700=e.AlgoSymbol26601=e.AlgoSymbol26600=e.AlgoSymbol26503=e.AlgoSymbol26502=e.AlgoSymbol26501=e.AlgoSymbol26500=e.AlgoSymbol26400=e.AlgoSymbol25901=e.AlgoSymbol25900=e.AlgoSymbol25801=e.AlgoSymbol25800=e.AlgoSymbol25701=e.AlgoSymbol25700=e.AlgoSymbol25601=e.AlgoSymbol25600=e.AlgoSymbol25503=e.AlgoSymbol25502=e.AlgoSymbol25501=e.AlgoSymbol25500=e.AlgoSymbol25400=e.AlgoSymbol25301=e.AlgoSymbol25300=e.AlgoSymbol25202=e.AlgoSymbol25201=e.AlgoSymbol25200=e.AlgoSymbol25101=e.AlgoSymbol25100=e.AlgoSymbol25000=e.AlgoSymbol24700=e.AlgoSymbol23902=e.AlgoSymbol23901=e.AlgoSymbol23700=e.AlgoSymbol23600=e.AlgoSymbol23500=e.AlgoSymbol23400=e.AlgoSymbol22200=e.AlgoSymbol22103=e.AlgoSymbol22000=e.AlgoSymbol21900=e.AlgoSymbol21800=e.AlgoSymbol21600=e.AlgoSymbol21504=e.AlgoSymbol21503=e.AlgoSymbol21502=e.AlgoSymbol21501=e.AlgoSymbol21500=e.AlgoSymbol21401=e.AlgoSymbol21400=e.AlgoSymbol20301=e.AlgoSymbol20300=e.AlgoSymbol17806=e.AlgoSymbol17805=e.AlgoSymbol17804=e.AlgoSymbol17803=e.AlgoSymbol17802=e.AlgoSymbol17801=e.AlgoSymbol17800=e.AlgoSymbol17704=e.AlgoSymbol17703=e.AlgoSymbol17700=e.AlgoSymbol17600=e.AlgoSymbol17501=e.AlgoSymbol17500=e.AlgoSymbol17401=e.AlgoSymbol17400=e.AlgoSymbol16900=e.AlgoSymbol16700=e.AlgoSymbol16500=e.AlgoSymbol16203=e.AlgoSymbol16202=e.AlgoSymbol16201=e.AlgoSymbol16200=e.AlgoSymbol16100=e.AlgoSymbol16001=e.AlgoSymbol16000=e.AlgoSymbol15900=e.AlgoSymbol15806=e.AlgoSymbol15805=e.AlgoSymbol15804=e.AlgoSymbol15803=e.AlgoSymbol15802=e.AlgoSymbol15801=e.AlgoSymbol15800=e.AlgoSymbol15202=e.AlgoSymbol15201=e.AlgoSymbol15200=e.AlgoSymbol13700=e.AlgoSymbol12502=e.AlgoSymbol12501=e.AlgoSymbol12500=void 0;var o=l(230),i=l(229),n=l(228),a=l(227),r=l(226),s=l(225),p=l(224),u=l(223),P=l(222),c=l(221),g=l(220),S=l(219),h=l(218),f=l(217),y=l(216),A=l(215),M=l(214),b=l(213),d=l(212),m=l(211),v=l(210),O=l(209),U=l(208),L=l(207),w=l(206),V=l(205),_=l(204),T=l(203),x=l(202),E=l(201),Y=l(200),j=l(199),C=l(198),I=l(197),B=l(196),R=l(195),N=l(194),D=l(193),k=l(192),z=l(191),F=l(190),G=l(189),K=l(188),W=l(187),q=l(186),J=l(185),Z=l(184),X=l(183),H=l(182),Q=l(181),$=l(180),tt=l(179),et=l(178),lt=l(177),ot=l(176),it=l(175),nt=l(174),at=l(173),rt=l(172),st=l(171),pt=l(170),ut=l(169),Pt=l(168),ct=l(167),gt=l(166),St=l(165),ht=l(164),ft=l(163),yt=l(162),At=l(161),Mt=l(160),bt=l(159),dt=l(158),mt=l(157),vt=l(156),Ot=l(155),Ut=l(154),Lt=l(153),wt=l(152),Vt=l(151),_t=l(150),Tt=l(149),xt=l(148),Et=l(147),Yt=l(146),jt=l(145),Ct=l(144),It=l(143),Bt=l(142),Rt=l(141),Nt=l(140),Dt=l(139),kt=l(138),zt=l(137),Ft=l(136),Gt=l(135),Kt=l(134),Wt=l(133),qt=l(132),Jt=l(131),Zt=l(130),Xt=l(129),Ht=l(128),Qt=l(127),$t=l(126),te=l(125),ee=l(124),le=l(123),oe=l(122),ie=l(121),ne=l(120),ae=l(119),re=l(118),se=l(117),pe=l(116),ue=l(115),Pe=l(114),ce=l(113),ge=l(112),Se=l(111),he=l(110),fe=l(109),ye=l(108),Ae=l(107),Me=l(106),be=l(105),de=l(104),me=l(103),ve=l(102),Oe=l(101),Ue=l(100),Le=l(99),we=l(98),Ve=l(97),_e=l(96),Te=l(95),xe=l(94),Ee=l(93),Ye=l(92),je=l(91),Ce=l(90),Ie=l(89),Be=l(88),Re=l(87),Ne=l(86),De=l(85),ke=l(84),ze=l(83),Fe=l(82),Ge=l(81),Ke=l(80),We=l(79),qe=l(78),Je=l(77),Ze=l(76),Xe=l(75),He=l(74),Qe=l(73),$e=l(72),tl=l(71),el=l(70),ll=l(69),ol=l(68),il=l(67),nl=l(66),al=l(65),rl=l(64),sl=l(63),pl=l(62),ul=l(61),Pl=l(60),cl=l(59),gl=l(58),Sl=l(57),hl=l(56),fl=l(55),yl=l(54),Al=l(53),Ml=l(52),bl=l(51),dl=l(50),ml=l(49),vl=l(48),Ol=l(47),Ul=l(46),Ll=l(45),wl=l(44),Vl=l(43),_l=l(42),Tl=l(41),xl=l(40),El=l(39),Yl=l(38),jl=l(37),Cl=l(36),Il=l(35),Bl=l(34),Rl=l(33),Nl=l(32),Dl=l(31),kl=l(30),zl=l(29),Fl=l(28),Gl=l(27),Kl=l(26),Wl=l(25),ql=l(24),Jl=l(23),Zl=l(22),Xl=l(21),Hl=l(20),Ql=l(19),$l=l(18),to=l(17),eo=l(16),lo=l(15),oo=l(14),io=l(13),no=l(12),ao=l(11),ro=l(10),so=l(9),po=l(8),uo=l(7),Po=l(6),co=l(5),go=l(4),So=l(3),ho=l(2),fo=l(1),yo=l(0);e.AlgoSymbol12500=o.AlgoSymbol12500,e.AlgoSymbol12501=i.AlgoSymbol12501,e.AlgoSymbol12502=n.AlgoSymbol12502,e.AlgoSymbol13700=a.AlgoSymbol13700,e.AlgoSymbol15200=r.AlgoSymbol15200,e.AlgoSymbol15201=s.AlgoSymbol15201,e.AlgoSymbol15202=p.AlgoSymbol15202,e.AlgoSymbol15800=u.AlgoSymbol15800,e.AlgoSymbol15801=P.AlgoSymbol15801,e.AlgoSymbol15802=c.AlgoSymbol15802,e.AlgoSymbol15803=g.AlgoSymbol15803,e.AlgoSymbol15804=S.AlgoSymbol15804,e.AlgoSymbol15805=h.AlgoSymbol15805,e.AlgoSymbol15806=f.AlgoSymbol15806,e.AlgoSymbol15900=y.AlgoSymbol15900,e.AlgoSymbol16000=A.AlgoSymbol16000,e.AlgoSymbol16001=M.AlgoSymbol16001,e.AlgoSymbol16100=b.AlgoSymbol16100,e.AlgoSymbol16200=d.AlgoSymbol16200,e.AlgoSymbol16201=m.AlgoSymbol16201,e.AlgoSymbol16202=v.AlgoSymbol16202,e.AlgoSymbol16203=O.AlgoSymbol16203,e.AlgoSymbol16500=U.AlgoSymbol16500,e.AlgoSymbol16700=L.AlgoSymbol16700,e.AlgoSymbol16900=w.AlgoSymbol16900,e.AlgoSymbol17400=V.AlgoSymbol17400,e.AlgoSymbol17401=_.AlgoSymbol17401,e.AlgoSymbol17500=T.AlgoSymbol17500,e.AlgoSymbol17501=x.AlgoSymbol17501,e.AlgoSymbol17600=E.AlgoSymbol17600,e.AlgoSymbol17700=Y.AlgoSymbol17700,e.AlgoSymbol17703=j.AlgoSymbol17703,e.AlgoSymbol17704=C.AlgoSymbol17704,e.AlgoSymbol17800=I.AlgoSymbol17800,e.AlgoSymbol17801=B.AlgoSymbol17801,e.AlgoSymbol17802=R.AlgoSymbol17802,e.AlgoSymbol17803=N.AlgoSymbol17803,e.AlgoSymbol17804=D.AlgoSymbol17804,e.AlgoSymbol17805=k.AlgoSymbol17805,e.AlgoSymbol17806=z.AlgoSymbol17806,e.AlgoSymbol20300=F.AlgoSymbol20300,e.AlgoSymbol20301=G.AlgoSymbol20301,e.AlgoSymbol21400=K.AlgoSymbol21400,e.AlgoSymbol21401=W.AlgoSymbol21401,e.AlgoSymbol21500=q.AlgoSymbol21500,e.AlgoSymbol21501=J.AlgoSymbol21501,e.AlgoSymbol21502=Z.AlgoSymbol21502,e.AlgoSymbol21503=X.AlgoSymbol21503,e.AlgoSymbol21504=H.AlgoSymbol21504,e.AlgoSymbol21600=Q.AlgoSymbol21600,e.AlgoSymbol21800=$.AlgoSymbol21800,e.AlgoSymbol21900=tt.AlgoSymbol21900,e.AlgoSymbol22000=et.AlgoSymbol22000,e.AlgoSymbol22103=lt.AlgoSymbol22103,e.AlgoSymbol22200=ot.AlgoSymbol22200,e.AlgoSymbol23400=it.AlgoSymbol23400,e.AlgoSymbol23500=nt.AlgoSymbol23500,e.AlgoSymbol23600=at.AlgoSymbol23600,e.AlgoSymbol23700=rt.AlgoSymbol23700,e.AlgoSymbol23901=st.AlgoSymbol23901,e.AlgoSymbol23902=pt.AlgoSymbol23902,e.AlgoSymbol24700=ut.AlgoSymbol24700,e.AlgoSymbol25000=Pt.AlgoSymbol25000,e.AlgoSymbol25100=ct.AlgoSymbol25100,e.AlgoSymbol25101=gt.AlgoSymbol25101,e.AlgoSymbol25200=St.AlgoSymbol25200,e.AlgoSymbol25201=ht.AlgoSymbol25201,e.AlgoSymbol25202=ft.AlgoSymbol25202,e.AlgoSymbol25300=yt.AlgoSymbol25300,e.AlgoSymbol25301=At.AlgoSymbol25301,e.AlgoSymbol25400=Mt.AlgoSymbol25400,e.AlgoSymbol25500=bt.AlgoSymbol25500,e.AlgoSymbol25501=dt.AlgoSymbol25501,e.AlgoSymbol25502=mt.AlgoSymbol25502,e.AlgoSymbol25503=vt.AlgoSymbol25503,e.AlgoSymbol25600=Ot.AlgoSymbol25600,e.AlgoSymbol25601=Ut.AlgoSymbol25601,e.AlgoSymbol25700=Lt.AlgoSymbol25700,e.AlgoSymbol25701=wt.AlgoSymbol25701,e.AlgoSymbol25800=Vt.AlgoSymbol25800,e.AlgoSymbol25801=_t.AlgoSymbol25801,e.AlgoSymbol25900=Tt.AlgoSymbol25900,e.AlgoSymbol25901=xt.AlgoSymbol25901,e.AlgoSymbol26400=Et.AlgoSymbol26400,e.AlgoSymbol26500=Yt.AlgoSymbol26500,e.AlgoSymbol26501=jt.AlgoSymbol26501,e.AlgoSymbol26502=Ct.AlgoSymbol26502,e.AlgoSymbol26503=It.AlgoSymbol26503,e.AlgoSymbol26600=Bt.AlgoSymbol26600,e.AlgoSymbol26601=Rt.AlgoSymbol26601,e.AlgoSymbol26700=Nt.AlgoSymbol26700,e.AlgoSymbol26800=Dt.AlgoSymbol26800,e.AlgoSymbol27100=kt.AlgoSymbol27100,e.AlgoSymbol27300=zt.AlgoSymbol27300,e.AlgoSymbol27700=Ft.AlgoSymbol27700,e.AlgoSymbol27701=Gt.AlgoSymbol27701,e.AlgoSymbol27900=Kt.AlgoSymbol27900,e.AlgoSymbol27901=Wt.AlgoSymbol27901,e.AlgoSymbol27902=qt.AlgoSymbol27902,e.AlgoSymbol28000=Jt.AlgoSymbol28000,e.AlgoSymbol28100=Zt.AlgoSymbol28100,e.AlgoSymbol28200=Xt.AlgoSymbol28200,e.AlgoSymbol28201=Ht.AlgoSymbol28201,e.AlgoSymbol28300=Qt.AlgoSymbol28300,e.AlgoSymbol28301=$t.AlgoSymbol28301,e.AlgoSymbol28400=te.AlgoSymbol28400,e.AlgoSymbol28900=ee.AlgoSymbol28900,e.AlgoSymbol29000=le.AlgoSymbol29000,e.AlgoSymbol29001=oe.AlgoSymbol29001,e.AlgoSymbol29002=ie.AlgoSymbol29002,e.AlgoSymbol29003=ne.AlgoSymbol29003,e.AlgoSymbol29100=ae.AlgoSymbol29100,e.AlgoSymbol29101=re.AlgoSymbol29101,e.AlgoSymbol29103=se.AlgoSymbol29103,e.AlgoSymbol29401=pe.AlgoSymbol29401,e.AlgoSymbol29800=ue.AlgoSymbol29800,e.AlgoSymbol29903=Pe.AlgoSymbol29903,e.AlgoSymbol30000=ce.AlgoSymbol30000,e.AlgoSymbol30001=ge.AlgoSymbol30001,e.AlgoSymbol30002=Se.AlgoSymbol30002,e.AlgoSymbol30100=he.AlgoSymbol30100,e.AlgoSymbol30200=fe.AlgoSymbol30200,e.AlgoSymbol30201=ye.AlgoSymbol30201,e.AlgoSymbol30800=Ae.AlgoSymbol30800,e.AlgoSymbol30102=Me.AlgoSymbol30102,e.AlgoSymbol31300=be.AlgoSymbol31300,e.AlgoSymbol31301=de.AlgoSymbol31301,e.AlgoSymbol31302=me.AlgoSymbol31302,e.AlgoSymbol31303=ve.AlgoSymbol31303,e.AlgoSymbol31304=Oe.AlgoSymbol31304,e.AlgoSymbol31400=Ue.AlgoSymbol31400,e.AlgoSymbol31401=Le.AlgoSymbol31401,e.AlgoSymbol31600=we.AlgoSymbol31600,e.AlgoSymbol31601=Ve.AlgoSymbol31601,e.AlgoSymbol31803=_e.AlgoSymbol31803,e.AlgoSymbol32300=Te.AlgoSymbol32300,e.AlgoSymbol32900=xe.AlgoSymbol32900,e.AlgoSymbol33400=Ee.AlgoSymbol33400,e.AlgoSymbol34300=Ye.AlgoSymbol34300,e.AlgoSymbol34400=je.AlgoSymbol34400,e.AlgoSymbol34500=Ce.AlgoSymbol34500,e.AlgoSymbol34501=Ie.AlgoSymbol34501,e.AlgoSymbol34700=Be.AlgoSymbol34700,e.AlgoSymbol34800=Re.AlgoSymbol34800,e.AlgoSymbol34801=Ne.AlgoSymbol34801,e.AlgoSymbol34900=De.AlgoSymbol34900,e.AlgoSymbol34901=ke.AlgoSymbol34901,e.AlgoSymbol34902=ze.AlgoSymbol34902,e.AlgoSymbol35000=Fe.AlgoSymbol35000,e.AlgoSymbol35200=Ge.AlgoSymbol35200,e.AlgoSymbol35304=Ke.AlgoSymbol35304,e.AlgoSymbol35500=We.AlgoSymbol35500,e.AlgoSymbol36400=qe.AlgoSymbol36400,e.AlgoSymbol36401=Je.AlgoSymbol36401,e.AlgoSymbol36600=Ze.AlgoSymbol36600,e.AlgoSymbol36700=Xe.AlgoSymbol36700,e.AlgoSymbol36800=He.AlgoSymbol36800,e.AlgoSymbol37100=Qe.AlgoSymbol37100,e.AlgoSymbol37200=$e.AlgoSymbol37200,e.AlgoSymbol37300=tl.AlgoSymbol37300,e.AlgoSymbol37301=el.AlgoSymbol37301,e.AlgoSymbol37600=ll.AlgoSymbol37600,e.AlgoSymbol37601=ol.AlgoSymbol37601,e.AlgoSymbol37700=il.AlgoSymbol37700,e.AlgoSymbol38600=nl.AlgoSymbol38600,e.AlgoSymbol38700=al.AlgoSymbol38700,e.AlgoSymbol39000=rl.AlgoSymbol39000,e.AlgoSymbol39101=sl.AlgoSymbol39101,e.AlgoSymbol39500=pl.AlgoSymbol39500,e.AlgoSymbol39600=ul.AlgoSymbol39600,e.AlgoSymbol39800=Pl.AlgoSymbol39800,e.AlgoSymbol39801=cl.AlgoSymbol39801,e.AlgoSymbol39802=gl.AlgoSymbol39802,e.AlgoSymbol40000=Sl.AlgoSymbol40000,e.AlgoSymbol40100=hl.AlgoSymbol40100,e.AlgoSymbol40101=fl.AlgoSymbol40101,e.AlgoSymbol40900=yl.AlgoSymbol40900,e.AlgoSymbol41100=Al.AlgoSymbol41100,e.AlgoSymbol41200=Ml.AlgoSymbol41200,e.AlgoSymbol41201=bl.AlgoSymbol41201,e.AlgoSymbol41202=dl.AlgoSymbol41202,e.AlgoSymbol42200=ml.AlgoSymbol42200,e.AlgoSymbol42400=vl.AlgoSymbol42400,e.AlgoSymbol42500=Ol.AlgoSymbol42500,e.AlgoSymbol42700=Ul.AlgoSymbol42700,e.AlgoSymbol43500=Ll.AlgoSymbol43500,e.AlgoSymbol44100=wl.AlgoSymbol44100,e.AlgoSymbol44200=Vl.AlgoSymbol44200,e.AlgoSymbol44300=_l.AlgoSymbol44300,e.AlgoSymbol44400=Tl.AlgoSymbol44400,e.AlgoSymbol2350001=El.AlgoSymbol2350001,e.AlgoSymbol2570201=Yl.AlgoSymbol2570201,e.AlgoSymbol2570301=jl.AlgoSymbol2570301,e.AlgoSymbol2570401=Cl.AlgoSymbol2570401,e.AlgoSymbol2570501=Il.AlgoSymbol2570501,e.AlgoSymbol2730101=xl.AlgoSymbol2730101,e.AlgoSymbol2890001=Bl.AlgoSymbol2890001,e.AlgoSymbol3010102=Rl.AlgoSymbol3010102,e.AlgoSymbol3010103=Nl.AlgoSymbol3010103,e.AlgoSymbol3010104=Dl.AlgoSymbol3010104,e.AlgoSymbol3010105=kl.AlgoSymbol3010105,e.AlgoSymbol3010106=zl.AlgoSymbol3010106,e.AlgoSymbol3010107=Fl.AlgoSymbol3010107,e.AlgoSymbol3010108=Gl.AlgoSymbol3010108,e.AlgoSymbol3010301=Kl.AlgoSymbol3010301,e.AlgoSymbol3010302=Wl.AlgoSymbol3010302,e.AlgoSymbol6020400=ql.AlgoSymbol6020400,e.AlgoSymbol6020401=Jl.AlgoSymbol6020401,e.AlgoSymbol6020402=Zl.AlgoSymbol6020402,e.AlgoSymbol3010303=Xl.AlgoSymbol3010303,e.AlgoSymbol3010304=Hl.AlgoSymbol3010304,e.AlgoSymbol3020901=Ql.AlgoSymbol3020901,e.AlgoSymbol3032000=$l.AlgoSymbol3032000,e.AlgoSymbol4010800=to.AlgoSymbol4010800,e.AlgoSymbol4010801=eo.AlgoSymbol4010801,e.AlgoSymbol4010905=lo.AlgoSymbol4010905,e.AlgoSymbol4011100=oo.AlgoSymbol4011100,e.AlgoSymbol4011101=io.AlgoSymbol4011101,e.AlgoSymbol4020303=no.AlgoSymbol4020303,e.AlgoSymbol4020401=ao.AlgoSymbol4020401,e.AlgoSymbol4020402=ro.AlgoSymbol4020402,e.AlgoSymbol4022100=so.AlgoSymbol4022100,e.AlgoSymbol4022101=po.AlgoSymbol4022101,e.AlgoSymbol4022102=uo.AlgoSymbol4022102,e.AlgoSymbol6020403=Po.AlgoSymbol6020403,e.AlgoSymbol6020404=co.AlgoSymbol6020404,e.AlgoSymbol4021101=go.AlgoSymbol4021101,e.AlgoSymbol4021102=So.AlgoSymbol4021102,e.AlgoSymbol1770101=ho.AlgoSymbol1770101,e.AlgoSymbol1770201=fo.AlgoSymbol1770201,e.AlgoSymbol1770501=yo.AlgoSymbol1770501},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JBAlgoSymbolFactory=void 0,l(231);e.JBAlgoSymbolFactory=SuperMapAlgoPlot.JBAlgoSymbolFactory=SuperMapAlgoPlot.JBAlgoSymbolFactory||{};SuperMapAlgoPlot.JBAlgoSymbolFactory.getAlgoSymbol=function(t,e,l){if(100!==t)return new SuperMapAlgoPlot.AlgoSymbol(l);switch(e){case 12500:return new SuperMapAlgoPlot.AlgoSymbol12500(l);case 12501:return new SuperMapAlgoPlot.AlgoSymbol12501(l);case 12502:return new SuperMapAlgoPlot.AlgoSymbol12502(l);case 13700:return new SuperMapAlgoPlot.AlgoSymbol13700(l);case 15200:return new SuperMapAlgoPlot.AlgoSymbol15200(l);case 15201:case 23800:return new SuperMapAlgoPlot.AlgoSymbol15201(l);case 15202:return new SuperMapAlgoPlot.AlgoSymbol15202(l);case 15800:return new SuperMapAlgoPlot.AlgoSymbol15800(l);case 15801:return new SuperMapAlgoPlot.AlgoSymbol15801(l);case 15802:return new SuperMapAlgoPlot.AlgoSymbol15802(l);case 15803:return new SuperMapAlgoPlot.AlgoSymbol15803(l);case 15804:return new SuperMapAlgoPlot.AlgoSymbol15804(l);case 15805:return new SuperMapAlgoPlot.AlgoSymbol15805(l);case 15806:return new SuperMapAlgoPlot.AlgoSymbol15806(l);case 15900:return new SuperMapAlgoPlot.AlgoSymbol15900(l);case 16e3:return new SuperMapAlgoPlot.AlgoSymbol16000(l);case 16001:return new SuperMapAlgoPlot.AlgoSymbol16001(l);case 16100:return new SuperMapAlgoPlot.AlgoSymbol16100(l);case 16200:return new SuperMapAlgoPlot.AlgoSymbol16200(l);case 16201:return new SuperMapAlgoPlot.AlgoSymbol16201(l);case 16202:return new SuperMapAlgoPlot.AlgoSymbol16202(l);case 16203:return new SuperMapAlgoPlot.AlgoSymbol16203(l);case 16500:return new SuperMapAlgoPlot.AlgoSymbol16500(l);case 16700:return new SuperMapAlgoPlot.AlgoSymbol16700(l);case 16900:return new SuperMapAlgoPlot.AlgoSymbol16900(l);case 17400:return new SuperMapAlgoPlot.AlgoSymbol17400(l);case 17401:return new SuperMapAlgoPlot.AlgoSymbol17401(l);case 17500:return new SuperMapAlgoPlot.AlgoSymbol17500(l);case 17501:return new SuperMapAlgoPlot.AlgoSymbol17501(l);case 17600:return new SuperMapAlgoPlot.AlgoSymbol17600(l);case 17700:return new SuperMapAlgoPlot.AlgoSymbol17700(l);case 1770101:return new SuperMap.Plot.AlgoSymbol1770101(l);case 1770201:return new SuperMap.Plot.AlgoSymbol1770201(l);case 1770501:return new SuperMap.Plot.AlgoSymbol1770501(l);case 17703:return new SuperMapAlgoPlot.AlgoSymbol17703(l);case 17704:return new SuperMapAlgoPlot.AlgoSymbol17704(l);case 17800:return new SuperMapAlgoPlot.AlgoSymbol17800(l);case 17801:return new SuperMapAlgoPlot.AlgoSymbol17801(l);case 17802:return new SuperMapAlgoPlot.AlgoSymbol17802(l);case 17803:return new SuperMapAlgoPlot.AlgoSymbol17803(l);case 17804:return new SuperMapAlgoPlot.AlgoSymbol17804(l);case 17805:return new SuperMapAlgoPlot.AlgoSymbol17805(l);case 17806:return new SuperMapAlgoPlot.AlgoSymbol17806(l);case 20300:return new SuperMapAlgoPlot.AlgoSymbol20300(l);case 20301:return new SuperMapAlgoPlot.AlgoSymbol20301(l);case 21401:return new SuperMapAlgoPlot.AlgoSymbol21401(l);case 21500:return new SuperMapAlgoPlot.AlgoSymbol21500(l);case 21501:return new SuperMapAlgoPlot.AlgoSymbol21501(l);case 21502:return new SuperMapAlgoPlot.AlgoSymbol21502(l);case 21503:return new SuperMapAlgoPlot.AlgoSymbol21503(l);case 21504:return new SuperMapAlgoPlot.AlgoSymbol21504(l);case 21600:return new SuperMapAlgoPlot.AlgoSymbol21600(l);case 21800:return new SuperMapAlgoPlot.AlgoSymbol21800(l);case 21900:return new SuperMapAlgoPlot.AlgoSymbol21900(l);case 22e3:return new SuperMapAlgoPlot.AlgoSymbol22000(l);case 22103:return new SuperMapAlgoPlot.AlgoSymbol22103(l);case 22200:return new SuperMapAlgoPlot.AlgoSymbol22200(l);case 23400:return new SuperMapAlgoPlot.AlgoSymbol23400(l);case 23500:return new SuperMapAlgoPlot.AlgoSymbol23500(l);case 2350001:return new SuperMapAlgoPlot.AlgoSymbol2350001(l);case 23600:return new SuperMapAlgoPlot.AlgoSymbol23600(l);case 23700:return new SuperMapAlgoPlot.AlgoSymbol23700(l);case 23901:return new SuperMapAlgoPlot.AlgoSymbol23901(l);case 23902:return new SuperMapAlgoPlot.AlgoSymbol23902(l);case 24700:return new SuperMapAlgoPlot.AlgoSymbol24700(l);case 25e3:return new SuperMapAlgoPlot.AlgoSymbol25000(l);case 25100:return new SuperMapAlgoPlot.AlgoSymbol25100(l);case 25101:return new SuperMapAlgoPlot.AlgoSymbol25101(l);case 25200:return new SuperMapAlgoPlot.AlgoSymbol25200(l);case 21400:case 25201:return new SuperMapAlgoPlot.AlgoSymbol25201(l);case 25202:return new SuperMapAlgoPlot.AlgoSymbol25202(l);case 25300:return new SuperMapAlgoPlot.AlgoSymbol25300(l);case 25301:return new SuperMapAlgoPlot.AlgoSymbol25301(l);case 25400:return new SuperMapAlgoPlot.AlgoSymbol25400(l);case 25500:return new SuperMapAlgoPlot.AlgoSymbol25500(l);case 25501:return new SuperMapAlgoPlot.AlgoSymbol25501(l);case 25502:return new SuperMapAlgoPlot.AlgoSymbol25502(l);case 25503:return new SuperMapAlgoPlot.AlgoSymbol25503(l);case 25600:return new SuperMapAlgoPlot.AlgoSymbol25600(l);case 25601:return new SuperMapAlgoPlot.AlgoSymbol25601(l);case 25700:return new SuperMapAlgoPlot.AlgoSymbol25700(l);case 25701:return new SuperMapAlgoPlot.AlgoSymbol25701(l);case 2570201:return new SuperMap.Plot.AlgoSymbol2570201(l);case 2570301:return new SuperMap.Plot.AlgoSymbol2570301(l);case 2570401:return new SuperMap.Plot.AlgoSymbol2570401(l);case 2570501:return new SuperMap.Plot.AlgoSymbol2570501(l);case 25800:return new SuperMapAlgoPlot.AlgoSymbol25800(l);case 25801:return new SuperMapAlgoPlot.AlgoSymbol25801(l);case 25900:return new SuperMapAlgoPlot.AlgoSymbol25900(l);case 25901:return new SuperMapAlgoPlot.AlgoSymbol25901(l);case 26400:return new SuperMapAlgoPlot.AlgoSymbol26400(l);case 26500:return new SuperMapAlgoPlot.AlgoSymbol26500(l);case 26501:return new SuperMapAlgoPlot.AlgoSymbol26501(l);case 26502:return new SuperMapAlgoPlot.AlgoSymbol26502(l);case 26503:return new SuperMapAlgoPlot.AlgoSymbol26503(l);case 26600:return new SuperMapAlgoPlot.AlgoSymbol26600(l);case 26601:return new SuperMapAlgoPlot.AlgoSymbol26601(l);case 26700:return new SuperMapAlgoPlot.AlgoSymbol26700(l);case 26800:return new SuperMapAlgoPlot.AlgoSymbol26800(l);case 27100:return new SuperMapAlgoPlot.AlgoSymbol27100(l);case 27300:return new SuperMapAlgoPlot.AlgoSymbol27300(l);case 2730101:return new SuperMap.Plot.AlgoSymbol2730101(l);case 27700:return new SuperMapAlgoPlot.AlgoSymbol27700(l);case 27701:return new SuperMapAlgoPlot.AlgoSymbol27701(l);case 27900:return new SuperMapAlgoPlot.AlgoSymbol27900(l);case 27901:return new SuperMapAlgoPlot.AlgoSymbol27901(l);case 27902:return new SuperMapAlgoPlot.AlgoSymbol27902(l);case 28e3:return new SuperMapAlgoPlot.AlgoSymbol28000(l);case 28100:return new SuperMapAlgoPlot.AlgoSymbol28100(l);case 28200:return new SuperMapAlgoPlot.AlgoSymbol28200(l);case 28201:return new SuperMapAlgoPlot.AlgoSymbol28201(l);case 28300:return new SuperMapAlgoPlot.AlgoSymbol28300(l);case 28301:return new SuperMapAlgoPlot.AlgoSymbol28301(l);case 28400:return new SuperMapAlgoPlot.AlgoSymbol28400(l);case 28900:return new SuperMapAlgoPlot.AlgoSymbol28900(l);case 29e3:return new SuperMapAlgoPlot.AlgoSymbol29000(l);case 29001:return new SuperMapAlgoPlot.AlgoSymbol29001(l);case 29002:return new SuperMapAlgoPlot.AlgoSymbol29002(l);case 29003:return new SuperMapAlgoPlot.AlgoSymbol29003(l);case 29100:return new SuperMapAlgoPlot.AlgoSymbol29100(l);case 29101:return new SuperMapAlgoPlot.AlgoSymbol29101(l);case 29103:return new SuperMapAlgoPlot.AlgoSymbol29103(l);case 29401:return new SuperMapAlgoPlot.AlgoSymbol29401(l);case 29800:return new SuperMapAlgoPlot.AlgoSymbol29800(l);case 29903:return new SuperMapAlgoPlot.AlgoSymbol29903(l);case 3e4:return new SuperMapAlgoPlot.AlgoSymbol30000(l);case 30001:return new SuperMapAlgoPlot.AlgoSymbol30001(l);case 30002:return new SuperMapAlgoPlot.AlgoSymbol30002(l);case 30100:case 4020400:return new SuperMapAlgoPlot.AlgoSymbol30100(l);case 30200:return new SuperMapAlgoPlot.AlgoSymbol30200(l);case 30201:return new SuperMapAlgoPlot.AlgoSymbol30201(l);case 30800:return new SuperMapAlgoPlot.AlgoSymbol30800(l);case 30102:return new SuperMapAlgoPlot.AlgoSymbol30102(l);case 31300:return new SuperMapAlgoPlot.AlgoSymbol31300(l);case 31301:return new SuperMapAlgoPlot.AlgoSymbol31301(l);case 31302:return new SuperMapAlgoPlot.AlgoSymbol31302(l);case 31303:return new SuperMapAlgoPlot.AlgoSymbol31303(l);case 31304:return new SuperMapAlgoPlot.AlgoSymbol31304(l);case 31400:return new SuperMapAlgoPlot.AlgoSymbol31400(l);case 31401:return new SuperMapAlgoPlot.AlgoSymbol31401(l);case 31600:return new SuperMapAlgoPlot.AlgoSymbol31600(l);case 31601:return new SuperMapAlgoPlot.AlgoSymbol31601(l);case 31803:return new SuperMapAlgoPlot.AlgoSymbol31803(l);case 32300:return new SuperMapAlgoPlot.AlgoSymbol32300(l);case 32900:return new SuperMapAlgoPlot.AlgoSymbol32900(l);case 33400:return new SuperMapAlgoPlot.AlgoSymbol33400(l);case 34300:return new SuperMapAlgoPlot.AlgoSymbol34300(l);case 34400:return new SuperMapAlgoPlot.AlgoSymbol34400(l);case 34500:return new SuperMapAlgoPlot.AlgoSymbol34500(l);case 34501:return new SuperMapAlgoPlot.AlgoSymbol34501(l);case 34700:return new SuperMapAlgoPlot.AlgoSymbol34700(l);case 34800:return new SuperMapAlgoPlot.AlgoSymbol34800(l);case 34801:return new SuperMapAlgoPlot.AlgoSymbol34801(l);case 34900:return new SuperMapAlgoPlot.AlgoSymbol34900(l);case 34901:return new SuperMapAlgoPlot.AlgoSymbol34901(l);case 34902:return new SuperMapAlgoPlot.AlgoSymbol34902(l);case 35e3:return new SuperMapAlgoPlot.AlgoSymbol35000(l);case 35200:return new SuperMapAlgoPlot.AlgoSymbol35200(l);case 35304:return new SuperMapAlgoPlot.AlgoSymbol35304(l);case 35500:return new SuperMapAlgoPlot.AlgoSymbol35500(l);case 36400:return new SuperMapAlgoPlot.AlgoSymbol36400(l);case 36401:return new SuperMapAlgoPlot.AlgoSymbol36401(l);case 36600:return new SuperMapAlgoPlot.AlgoSymbol36600(l);case 36700:return new SuperMapAlgoPlot.AlgoSymbol36700(l);case 36800:return new SuperMapAlgoPlot.AlgoSymbol36800(l);case 37100:return new SuperMapAlgoPlot.AlgoSymbol37100(l);case 37200:return new SuperMapAlgoPlot.AlgoSymbol37200(l);case 37300:return new SuperMapAlgoPlot.AlgoSymbol37300(l);case 37301:return new SuperMapAlgoPlot.AlgoSymbol37301(l);case 37600:return new SuperMapAlgoPlot.AlgoSymbol37600(l);case 37601:return new SuperMapAlgoPlot.AlgoSymbol37601(l);case 37700:return new SuperMapAlgoPlot.AlgoSymbol37700(l);case 38600:return new SuperMapAlgoPlot.AlgoSymbol38600(l);case 38700:return new SuperMapAlgoPlot.AlgoSymbol38700(l);case 39e3:return new SuperMapAlgoPlot.AlgoSymbol39000(l);case 39101:return new SuperMapAlgoPlot.AlgoSymbol39101(l);case 39500:return new SuperMapAlgoPlot.AlgoSymbol39500(l);case 39600:return new SuperMapAlgoPlot.AlgoSymbol39600(l);case 39800:return new SuperMapAlgoPlot.AlgoSymbol39800(l);case 39801:return new SuperMapAlgoPlot.AlgoSymbol39801(l);case 39802:return new SuperMapAlgoPlot.AlgoSymbol39802(l);case 4e4:return new SuperMapAlgoPlot.AlgoSymbol40000(l);case 40100:return new SuperMapAlgoPlot.AlgoSymbol40100(l);case 40101:return new SuperMapAlgoPlot.AlgoSymbol40101(l);case 40900:return new SuperMapAlgoPlot.AlgoSymbol40900(l);case 41100:return new SuperMapAlgoPlot.AlgoSymbol41100(l);case 41200:return new SuperMapAlgoPlot.AlgoSymbol41200(l);case 41201:return new SuperMapAlgoPlot.AlgoSymbol41201(l);case 41202:return new SuperMapAlgoPlot.AlgoSymbol41202(l);case 42200:return new SuperMapAlgoPlot.AlgoSymbol42200(l);case 42400:return new SuperMapAlgoPlot.AlgoSymbol42400(l);case 42500:return new SuperMapAlgoPlot.AlgoSymbol42500(l);case 42700:return new SuperMapAlgoPlot.AlgoSymbol42700(l);case 43500:return new SuperMapAlgoPlot.AlgoSymbol43500(l);case 44100:return new SuperMapAlgoPlot.AlgoSymbol44100(l);case 44200:return new SuperMapAlgoPlot.AlgoSymbol44200(l);case 44300:return new SuperMapAlgoPlot.AlgoSymbol44300(l);case 44400:return new SuperMapAlgoPlot.AlgoSymbol44400(l);case 2890001:return new SuperMapAlgoPlot.AlgoSymbol2890001(l);case 3010301:return new SuperMapAlgoPlot.AlgoSymbol3010301(l);case 3010302:return new SuperMapAlgoPlot.AlgoSymbol3010302(l);case 3010303:return new SuperMapAlgoPlot.AlgoSymbol3010303(l);case 3010304:return new SuperMapAlgoPlot.AlgoSymbol3010304(l);case 3010102:return new SuperMapAlgoPlot.AlgoSymbol3010102(l);case 3010103:return new SuperMapAlgoPlot.AlgoSymbol3010103(l);case 3010104:return new SuperMapAlgoPlot.AlgoSymbol3010104(l);case 3010105:return new SuperMapAlgoPlot.AlgoSymbol3010105(l);case 3010106:return new SuperMapAlgoPlot.AlgoSymbol3010106(l);case 3010107:return new SuperMapAlgoPlot.AlgoSymbol3010107(l);case 3010108:return new SuperMapAlgoPlot.AlgoSymbol3010108(l);case 3020901:return new SuperMapAlgoPlot.AlgoSymbol3020901(l);case 3032e3:return new SuperMapAlgoPlot.AlgoSymbol3032000(l);case 4010800:return new SuperMapAlgoPlot.AlgoSymbol4010800(l);case 4010801:return new SuperMapAlgoPlot.AlgoSymbol4010801(l);case 4010905:return new SuperMapAlgoPlot.AlgoSymbol4010905(l);case 4011100:return new SuperMapAlgoPlot.AlgoSymbol4011100(l);case 4011101:return new SuperMapAlgoPlot.AlgoSymbol4011101(l);case 4020303:return new SuperMapAlgoPlot.AlgoSymbol4020303(l);case 4020401:return new SuperMapAlgoPlot.AlgoSymbol4020401(l);case 4020402:return new SuperMapAlgoPlot.AlgoSymbol4020402(l);case 4021101:return new SuperMapAlgoPlot.AlgoSymbol4021101(l);case 4021102:return new SuperMapAlgoPlot.AlgoSymbol4021102(l);case 4022100:return new SuperMapAlgoPlot.AlgoSymbol4022100(l);case 4022101:return new SuperMapAlgoPlot.AlgoSymbol4022101(l);case 4022102:return new SuperMapAlgoPlot.AlgoSymbol4022102(l);case 6020400:return new SuperMapAlgoPlot.AlgoSymbol6020400(l);case 6020401:return new SuperMapAlgoPlot.AlgoSymbol6020401(l);case 6020402:return new SuperMapAlgoPlot.AlgoSymbol6020402(l);case 6020403:return new SuperMapAlgoPlot.AlgoSymbol6020403(l);case 6020404:return new SuperMapAlgoPlot.AlgoSymbol6020404(l);default:return new SuperMapAlgoPlot.AlgoSymbol(l)}},SuperMapAlgoPlot.JBAlgoSymbolFactory.isAccessServer=function(t,e){if(100!==t)return!0;switch(e){case 12500:case 12501:case 12502:case 13700:case 15200:case 15201:case 15202:case 15800:case 15801:case 15802:case 15803:case 15804:case 15805:case 15806:case 15900:case 16e3:case 16001:case 16100:case 16200:case 16201:case 16202:case 16203:case 16500:case 16700:case 16900:case 17400:case 17401:case 17500:case 17501:case 17600:case 17700:case 1770101:case 1770201:case 1770501:case 17703:case 17704:case 17800:case 17801:case 17802:case 17803:case 17804:case 17805:case 17806:case 20300:case 20301:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21600:case 21800:case 21900:case 22e3:case 22103:case 22200:case 23400:case 23500:case 23600:case 23700:case 23800:case 23901:case 23902:case 24700:case 25e3:case 25100:case 25101:case 25200:case 25201:case 25202:case 25300:case 25301:case 25400:case 25500:case 25501:case 25502:case 25503:case 25600:case 25601:case 25700:case 25701:case 2570201:case 2570301:case 2570401:case 2570501:case 25800:case 25801:case 25900:case 25901:case 26400:case 26500:case 26501:case 26502:case 26503:case 26600:case 26601:case 26700:case 26800:case 27100:case 27300:case 2730101:case 27700:case 27701:case 27900:case 27901:case 27902:case 28e3:case 28100:case 28200:case 28201:case 28300:case 28301:case 28400:case 28900:case 29e3:case 29001:case 29002:case 29003:case 29100:case 29101:case 29103:case 29401:case 29800:case 29903:case 3e4:case 30001:case 30002:case 30100:case 30200:case 30201:case 30800:case 30102:case 31300:case 31301:case 31302:case 31303:case 31304:case 31400:case 31401:case 31600:case 31601:case 31803:case 32300:case 32900:case 33400:case 34300:case 34400:case 34500:case 34501:case 34700:case 34800:case 34801:case 34900:case 34901:case 34902:case 35e3:case 35200:case 35304:case 35500:case 36400:case 36401:case 36600:case 36700:case 36800:case 37100:case 37200:case 37300:case 37301:case 37600:case 37601:case 37700:case 38600:case 38700:case 39e3:case 39101:case 39500:case 39600:case 39800:case 39801:case 39802:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 4e4:case 40100:case 40101:case 40900:case 41100:case 41200:case 41201:case 41202:case 42200:case 42400:case 42500:case 42700:case 43500:case 44100:case 44200:case 44300:case 44400:case 2350001:case 2890001:case 3010301:case 3010302:case 3010303:case 3010304:case 3020901:case 3032e3:case 4010800:case 4010801:case 4010905:case 4011100:case 4011101:case 4020303:case 4020400:case 4020401:case 4020402:case 4022100:case 4022101:case 4022102:case 6020400:case 6020401:case 6020402:case 6020403:case 6020404:case 4021101:case 4021102:return!1;default:return!0}},SuperMapAlgoPlot.JBAlgoSymbolFactory.getSymbolWayType=function(t,e){if(100!==t)return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN;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 26500:case 26501:case 26502: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 42200: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 2730101: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 SuperMapAlgoPlot.AddPoint_WayType.CURVE;case 12500:case 12502:case 16100:case 20300:case 25501:case 25502:case 26503:case 25503:case 25601:case 25801:case 25901:case 32900:case 34700:case 35200:case 36401:case 41200:case 41201:case 41202:case 42700:case 44400:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}},SuperMapAlgoPlot.JBAlgoSymbolFactory.getDefaultSubSymbols=function(t,e){var l=[];if(100!==t)return l;switch(e){case 17400:case 17401:return l.push(new SuperMapAlgoPlot.SubSymbol(100,17300)),l.push(new SuperMapAlgoPlot.SubSymbol(100,17301)),l;case 21501:case 26502:return l.push(new SuperMapAlgoPlot.SubSymbol(100,19700)),l;case 21502:return l.push(new SuperMapAlgoPlot.SubSymbol(100,6803)),l;case 22103:case 26501:return l.push(new SuperMapAlgoPlot.SubSymbol(100,22100)),l;case 21503:return l.push(new SuperMapAlgoPlot.SubSymbol(100,7900)),l;case 21504:return l.push(new SuperMapAlgoPlot.SubSymbol(100,8404)),l;case 22e3:return l.push(new SuperMapAlgoPlot.SubSymbol(100,1e3)),l;case 23500:return l.push(new SuperMapAlgoPlot.SubSymbol(100,1300)),l;case 23600:return l.push(new SuperMapAlgoPlot.SubSymbol(100,800)),l.push(new SuperMapAlgoPlot.SubSymbol(100,800)),l;case 25300:return l.push(new SuperMapAlgoPlot.SubSymbol(100,6302)),l.push(new SuperMapAlgoPlot.SubSymbol(100,7900)),l;case 25301:return l.push(new SuperMapAlgoPlot.SubSymbol(100,300)),l.push(new SuperMapAlgoPlot.SubSymbol(100,6200)),l;case 25503:return l.push(new SuperMapAlgoPlot.SubSymbol(100,8402)),l;case 26700:return l.push(new SuperMapAlgoPlot.SubSymbol(100,4500)),l;case 27100:return l.push(new SuperMapAlgoPlot.SubSymbol(100,7700)),l;case 27300:return l.push(new SuperMapAlgoPlot.SubSymbol(100,1500)),l;case 2730101:return l.push(new SuperMap.Plot.SubSymbol(100,1500)),l;case 3032e3:return l.push(new SuperMapAlgoPlot.SubSymbol(100,1500)),l.push(new SuperMapAlgoPlot.SubSymbol(100,1500)),l;case 28300:return l.push(new SuperMapAlgoPlot.SubSymbol(100,18600)),l;case 28301:return l.push(new SuperMapAlgoPlot.SubSymbol(100,18600)),l.push(new SuperMapAlgoPlot.SubSymbol(100,18600)),l;case 28400:return l.push(new SuperMapAlgoPlot.SubSymbol(100,4801)),l;case 29001:return l.push(new SuperMapAlgoPlot.SubSymbol(100,5200)),l.push(new SuperMapAlgoPlot.SubSymbol(100,5200)),l;case 29002:return l.push(new SuperMapAlgoPlot.SubSymbol(100,600)),l.push(new SuperMapAlgoPlot.SubSymbol(100,5300)),l;case 23901:case 23902:return l.push(new SuperMapAlgoPlot.SubSymbol(100,4800)),l;case 31600:case 31601:return l.push(new SuperMapAlgoPlot.SubSymbol(100,700)),l;case 29903:case 4021101:return l.push(new SuperMapAlgoPlot.SubSymbol(100,600)),l;case 32900:return l.push(new SuperMapAlgoPlot.SubSymbol(100,6700)),l;case 35200:return l.push(new SuperMapAlgoPlot.SubSymbol(100,6803)),l;case 37700:return l.push(new SuperMapAlgoPlot.SubSymbol(100,37800)),l;case 3010107:return l.push(new SuperMapAlgoPlot.SubSymbol(100,800)),l;case 3010108:return l.push(new SuperMapAlgoPlot.SubSymbol(100,4600)),l;case 4010800:return l.push(new SuperMapAlgoPlot.SubSymbol(100,1300)),l;case 4010801:case 4022100:case 4022101:case 4022102:case 4021102:return l.push(new SuperMapAlgoPlot.SubSymbol(100,8400)),l;case 31303:case 31302:return l.push(new SuperMapAlgoPlot.SubSymbol(100,4400)),l;case 4010905:return l.push(new SuperMapAlgoPlot.SubSymbol(100,700)),l;case 31803:return l.push(new SuperMapAlgoPlot.SubSymbol(100,8402)),l;case 34400:return l.push(new SuperMapAlgoPlot.SubSymbol(100,6202)),l;case 34501:return l.push(new SuperMapAlgoPlot.SubSymbol(100,8403)),l;case 35304:return l.push(new SuperMapAlgoPlot.SubSymbol(100,35301)),l;case 36401:return l.push(new SuperMapAlgoPlot.SubSymbol(100,7200)),l;case 36600:return l.push(new SuperMapAlgoPlot.SubSymbol(100,300)),l;case 37100:return l.push(new SuperMapAlgoPlot.SubSymbol(100,8e3)),l;case 37200:return l.push(new SuperMapAlgoPlot.SubSymbol(100,7101)),l;case 37600:case 37601:case 38600:case 38700:return l.push(new SuperMapAlgoPlot.SubSymbol(100,4600)),l;case 39e3:return l.push(new SuperMapAlgoPlot.SubSymbol(100,9300)),l.push(new SuperMapAlgoPlot.SubSymbol(100,9300)),l.push(new SuperMapAlgoPlot.SubSymbol(100,9300)),l;case 39101:return l.push(new SuperMapAlgoPlot.SubSymbol(100,39100)),l;case 39500:case 39600:return l.push(new SuperMapAlgoPlot.SubSymbol(100,8700)),l;case 39800:case 39801:case 39802:case 4e4:return l.push(new SuperMapAlgoPlot.SubSymbol(100,8900)),l;case 36700:return l.push(new SuperMapAlgoPlot.SubSymbol(100,300)),l;case 42200:return l.push(new SuperMapAlgoPlot.SubSymbol(100,20901)),l;case 4011100:return l.push(new SuperMapAlgoPlot.SubSymbol(100,4e3)),l.push(new SuperMapAlgoPlot.SubSymbol(100,4001)),l;case 4011101:return l.push(new SuperMapAlgoPlot.SubSymbol(100,700)),l.push(new SuperMapAlgoPlot.SubSymbol(100,700)),l;case 2350001:return l.push(new SuperMapAlgoPlot.SubSymbol(100,7900)),l.push(new SuperMapAlgoPlot.SubSymbol(100,1300)),l;case 2890001:return l.push(new SuperMapAlgoPlot.SubSymbol(100,4003)),l;default:return l}},SuperMapAlgoPlot.JBAlgoSymbolFactory.getMinEditPts=function(t,e){if(100!==t)return 0;switch(e){case 12500:case 12501:case 12502:case 13700:case 15200:case 15201:case 15202:case 15800:case 15801:case 15802:case 15803:case 15804:case 15805:case 15806:case 15900:case 16e3:case 16001:case 16200:case 16201:case 16202:case 16203:case 16500:case 16700:case 16900:case 17400:case 17401:case 17500:case 17501:case 17600:case 17700:case 1770101:case 1770201:case 1770501:case 17703:case 17704:case 17800:case 17801:case 17802:case 17803:case 17804:case 17805:case 17806:case 20300:case 20301:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21600:case 21800:case 21900:case 22e3:case 22103:case 22200:case 23400:case 23500:case 23600:case 23700:case 23800:case 23901:case 23902:case 24700:case 25e3:case 25100:case 25101:case 25201:case 25202:case 25300:case 25301:case 25400:case 26400:case 26500:case 26501:case 26502:case 26503:case 26600:case 26601:case 26700:case 26800:case 27100:case 27300:case 2730101:case 27700:case 27701:case 27900:case 27901:case 27902:case 28e3:case 28100:case 28200:case 28201:case 28300:case 28301:case 28400:case 28900:case 29e3:case 29001:case 29002:case 29003:case 29100:case 29101:case 29103:case 29401:case 29903:case 41100:case 44100:case 43500:case 42500:case 39500:case 37301:case 37300:case 37200:case 37100:case 36800:case 36600:case 35500:case 34801:case 34800:case 34501:case 34500:case 34400:case 34300:case 31600:case 31601:case 31401:case 31400:case 31304:case 31303:case 31302:case 31301:case 31300:case 44200:case 41200:case 41201:case 41202:case 31803:case 30800:case 30201:case 30200:case 44300:case 42400:case 42200:case 40900:case 40100:case 40101:case 4e4:case 39802:case 39801:case 39800:case 39600:case 39101:case 39e3:case 38600:case 37700:case 37601:case 37600:case 36700:case 36401:case 36400:case 35304:case 35200:case 35e3:case 34700:case 33400:case 30100:case 30102:case 30002:case 30001:case 3e4:case 38700:case 32300:case 42700:case 34902:case 34901:case 34900:case 32900:case 2350001:case 2890001:case 3032e3:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 3010301:case 3010302:case 3010303:case 3010304:case 3020901:case 4021101:case 4021102:case 4010800:case 4010801:case 4011100:case 4011101:case 4022101:case 4022102:case 4020303:case 4020400:case 4020401:case 4020402:case 4022100:case 4010905:case 6020400:case 6020401:case 6020402:case 6020403:case 6020404:return 2;case 16100:case 25200:case 25500:case 25501:case 25502:case 25503:case 25600:case 25601:case 25700:case 25701:case 2570201:case 2570301:case 2570401:case 2570501:case 25800:case 25801:case 25900:case 25901:case 29800:case 44400:return 3;default:return 0}},SuperMapAlgoPlot.JBAlgoSymbolFactory.getMaxEditPts=function(t,e){if(100!==t)return 0;switch(e){case 15202:case 16202:case 20301:case 16700:case 16900:case 17600:case 25e3:case 25100:case 25101:case 25300:case 25301:case 27100:case 27700:case 27900:case 27901:case 27902:case 28100:case 28201:case 28301:case 44100:case 43500:case 42500:case 39500:case 37301:case 37300:case 37200:case 37100:case 36800:case 36600:case 35500:case 34801:case 34800:case 34501:case 34500:case 34400:case 34300:case 31600:case 31601:case 31401:case 31400:case 31304:case 31303:case 31302:case 31301:case 31300:case 21800:case 26700:case 29401:case 1770101:case 1770201:return 2;case 13700:case 17800:case 17801:case 17802:case 17803:case 17804:case 17805:case 17806:case 23901:case 23902:case 38700:case 26800:case 29001:case 29002:case 32300:case 29101:case 29100:case 4010905:case 6020400:case 6020401:case 6020402:case 6020403:case 29e3:return 3;case 28e3:return 4;case 16201:case 17400:case 17401:case 17500:case 17501:case 22200:case 23400:case 23500:case 2350001:case 23600:case 23700:case 23800:case 25200:case 27300:case 2730101:case 27701:case 28400:case 44300:case 42400:case 42200:case 40900:case 40100:case 40101:case 4e4:case 39802:case 39801:case 39800:case 39600:case 39101:case 39e3:case 38600:case 37700:case 37601:case 37600:case 36700:case 36401:case 36400:case 35304:case 35200:case 35e3:case 34700:case 33400:case 30100:case 30102:case 30002:case 30001:case 3e4:case 29903:case 29800:case 3032e3:case 4010800:case 4010801:case 4011100:case 4011101:case 4022101:case 4022102:case 4020303:case 4020400:case 4020401:case 4020402:case 4022100:case 16500:return 30;case 42700:case 34902:case 34901:case 34900:case 32900:case 6020404:return 512;case 12500:case 12501:case 12502:case 16e3:case 16001:case 16100:case 16200:case 16203:case 17700:case 1770501:case 17703:case 17704:case 21900:case 22e3:case 22103:case 25201:case 25202:case 24700:case 25400:case 25500:case 25501:case 25502:case 25503:case 25600:case 25601:case 25700:case 25701:case 2570201:case 2570301:case 2570401:case 2570501:case 25800:case 25801:case 25900:case 25901:case 28900:case 2890001:case 44400:case 44200:case 41200:case 41201:case 41202:case 31803:case 30800:case 30201:case 30200:case 4021102:case 29103:case 28300:case 28200:case 29003:return 1e3;case 15200:case 15201:case 15800:case 15801:case 15802:case 15803:case 15804:case 15805:case 15806:case 15900:case 20300:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21600:case 26400:case 26500:case 26501:case 26502:case 26503:case 26600:case 26601:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 3010301:case 3010302:case 3010303:case 3010304:case 3020901:case 4021101:case 41100:return 9999;default:return 0}},SuperMapAlgoPlot.JBAlgoSymbolFactory.getDefaultStyle=function(t,e){var l={};if(100===t)switch(e){case 34800:case 34801:case 22200:case 28e3:case 28100:case 28200:case 28201:case 44400:l.color=l.strokeColor="#0000ff";break;case 42500:case 42700:l.color=l.strokeColor="#00ff00";break;case 42400:l.color=l.strokeColor="#006600"}return l},SuperMapAlgoPlot.JBAlgoSymbolFactory.zoomInCalSymbol=function(){return!1}},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JBAlgoSymbolFactory=void 0;var o=l(232);e.JBAlgoSymbolFactory=o.JBAlgoSymbolFactory}]);

/***/ }),
/* 2 */
/***/ (function(module, exports) {

/*!
 * 
 *          iclient-plot-algorithms-wj.(https://iclient.supermap.io)
 *          Copyright© 2000 - 2020 SuperMap Software Co.Ltd
 *          version: v10.1.1
 *         
 */!function(t){var e={};function l(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,l),i.l=!0,i.exports}l.m=t,l.c=e,l.d=function(t,e,o){l.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},l.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l.t=function(t,e){if(1&e&&(t=l(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(l.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)l.d(o,i,function(e){return t[e]}.bind(null,i));return o},l.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return l.d(e,"a",e),e},l.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},l.p="",l(l.s=276)}([function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4030602=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l.subText="队",l}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,SuperMapAlgoPlot.AlgoSymbol3000801),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,r=.8*SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,r,a+180);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var P=i.endIndex+1;P<=e.length-1;P++)p.push(e[P]);this.addArrow(p)}var c=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,e),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(c.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a+90);this.addScalePoint(g,0);var S=SuperMapAlgoPlot.PlottingUtil.polylineDistance(p),h=this.subText,f=.15*S,y=new SuperMapAlgoPlot.Point(i.endPt.x+f/2,i.endPt.y-f/2),A=a;this.addText(h,y,f,A),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol4030602=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37301=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.125,l.scaleValues[1]=.02,l.scaleValues[2]=.25,l.scaleValues[3]=.8),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<4&&(this.scaleValues=[],this.scaleValues[0]=.125,this.scaleValues[1]=.02,this.scaleValues[2]=.25,this.scaleValues[3]=.8),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[0]),l=SuperMapAlgoPlot.PlottingUtil.radian(t[1],t[0])*SuperMapAlgoPlot.PlottingUtil.RTOD,o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=this.scaleValues[3],r=new SuperMapAlgoPlot.Point(o*e,i*e),s=new SuperMapAlgoPlot.Point(o*e,-i*e),p=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[1],r,l),u=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[1],s,l),P=[];P.push(p),P.push(u),P.push(t[1]),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,P,{fillLimit:!0,fill:!0,lineTypeLimit:!0});var c=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n*e,t);if(c.bfind){var g=.05*e,S=c.pts,h=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,g,g,l+90),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,g,g,l+270);if((P=[]).push(h),P.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,{lineTypeLimit:!0,surroundLineLimit:!0}),(c=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a*e,t)).bfind){var y=c.pts,A=SuperMapAlgoPlot.PlottingUtil.circlePoint(y,g,g,l+90),M=SuperMapAlgoPlot.PlottingUtil.circlePoint(y,g,g,l+270);(P=[]).push(A),P.push(M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(u),this.addScalePoint(S),this.addScalePoint(y),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[1],l[0]);if(0==t){var i=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,l[1],l[0]),n=SuperMapAlgoPlot.PlottingUtil.distance(i,l[1]);90>SuperMapAlgoPlot.PlottingUtil.radian(l[1],i)*SuperMapAlgoPlot.PlottingUtil.RTOD&&(n=-n);var a=n/o;this.scaleValues[0]=a;var r=SuperMapAlgoPlot.PlottingUtil.distance(e,i)/o;this.scaleValues[1]=r}else if(1==t){var s=SuperMapAlgoPlot.PlottingUtil.distance(l[0],e)/o;if(.1>s||s>.95)return;this.scaleValues[2]=s}else if(2==t){var p=SuperMapAlgoPlot.PlottingUtil.distance(l[0],e)/o;if(.1>p||p>.95)return;this.scaleValues[3]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol37301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5033701=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 l=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 l.scaleValues.push(.1),l.scaleValues.push(.2),l.RTOD=57.29577951308232,l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),l=e*this.scaleValues[1],o=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],e-1.2*l),i=[];i.push(t[0]),i.push(o),this.addArrow(i,this.scaleValues[0]);for(var n=[],a=[],r=0;r<=360;r+=5){var s=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],l,l,r);n.push(s)}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n);var p=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*this.RTOD;a.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],l,l,p-20)),a.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],l,l,p+160));if(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a,{lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,lineColor:"#0000ff"}),t.length>=3){var u=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],t[2],l),P=[];P.push(u),P.push(t[2]);var c=[];if(t.length>3){for(r=3;r<t.length;r++)P.push(t[r]);c=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(P)}this.addArrow(c,this.scaleValues[0])}n.length>0&&this.addScalePoint(n[0]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!(2>l.length)&&0==t){var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]),i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[1])/o;this.scaleValues[1]=i,this.scaleValues[1]>.7&&(this.scaleValues[1]=.7)}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5033701=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50337=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 l=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 l.scaleValues.push(.1),l.scaleValues.push(.5),l.scaleValues.push(-5),l.RTOD=57.29577951308232,l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l,o;if(this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue()),2==t.length)e=l=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);else if((e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]))<(l=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[2]))){var i=e;e=l,l=i}if(t.length>3){var n=[];if(!this.isEdit){var a=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[3])*this.RTOD;this.scaleValues[2]=a}o=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e,l,this.scaleValues[2]),n.push(o);for(var r=3;r<t.length;r++)n.push(t[r]);var s=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(n);this.addArrow(s,this.scaleValues[0])}var p=[],u=[],P=[];for(r=0;r<=this.scaleValues[2]-5;r+=5)p.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e,l,r));for(r=this.scaleValues[2]+5;r<=360;r+=5)u.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e,l,r));p.length>0&&u.push(p[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u);var c=[];for(r=0;r<=360;r+=5){var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l*this.scaleValues[1],l*this.scaleValues[1],r);P.push(g),30!=r&&210!=r||c.push(g)}var S={lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,lineColor:"#0000ff"};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,S),P.length>0&&(this.addScalePoint(P[0]),t.length>3&&this.addScalePoint(o)),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!(2>l.length)){if(0===t){var o,i;if(2===l.length)o=i=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);else if((o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]))<(i=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[2]))){var n=o;o=i,i=n}var a=i*this.scaleValues[1];(n=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/a)<=2&&(this.scaleValues[1]*=n)}if(1===t){var r=SuperMapAlgoPlot.PlottingUtil.radian(l[0],e)*this.RTOD;this.scaleValues[2]=r}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol50337=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5033601=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 l=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 l.scaleValues.push(.1),l.scaleValues.push(.2),l.RTOD=57.29577951308232,l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),l=e*this.scaleValues[1],o=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],e-1.2*l),i=[];i.push(t[0]),i.push(o),this.addArrow(i,this.scaleValues[0]);for(var n=[],a=[],r=0;r<=360;r+=5)n.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],l,l,r)),a.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],.15*l,.15*l,r));var s={lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,lineColor:"#0000ff"};if(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n,s),s={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!0,fill:!0,lineColorLimit:!0,strokeColor:"#00ff00",strokeOpacity:1,color:"#00ff00",opacity:1,lineColor:"#00ff00",fillColor:"#00ff00"},this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,a,s),t.length>=3){var p=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],t[2],l),u=[];u.push(p),u.push(t[2]);var P=[];if(t.length>3){for(r=3;r<t.length;r++)u.push(t[r]);P=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(u)}this.addArrow(P,this.scaleValues[0])}n.length>0&&this.addScalePoint(n[0]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!(2>l.length)&&0==t){var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]),i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[1])/o;this.scaleValues[1]=i,this.scaleValues[1]>.7&&(this.scaleValues[1]=.7)}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5033601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50336=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 l=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 l.scaleValues.push(.1),l.scaleValues.push(.2),l.RTOD=57.29577951308232,l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),l=e*this.scaleValues[1],o=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],e-1.2*l),i=[];i.push(t[0]),i.push(o),this.addArrow(i,this.scaleValues[0]);for(var n=[],a=[],r=0;r<=360;r+=5)n.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],l,l,r)),a.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],.1*l,.1*l,r));var s={lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,lineColor:"#0000ff"};if(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n,s),s={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,a,s),t.length>=3){var p=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],t[2],l),u=[];u.push(p),u.push(t[2]);var P=[];if(t.length>3){for(r=3;r<t.length;r++)u.push(t[r]);P=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(u)}this.addArrow(P,this.scaleValues[0])}n.length>0&&this.addScalePoint(n[0]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!(2>l.length)&&0==t){var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]),i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[1])/o;i<=.5&&(this.scaleValues[1]=i)}}}]),e}();SuperMapAlgoPlot.AlgoSymbol50336=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5033301=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 l=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 l.sv1_DefaultAtLenDivAbLen=.1,l.sv2_DefaultAjWidthDivAtLen=.148,l.sv3_DefaultAeWidthDivAtLen=.4,l.sv4_DefaultAeLenDivAtLen=.312,l.sv_arrowTailWidth=.05,0===l.scaleValues.length&&(l.scaleValues.push(l.sv1_DefaultAtLenDivAbLen),l.scaleValues.push(l.sv2_DefaultAjWidthDivAtLen),l.scaleValues.push(l.sv3_DefaultAeWidthDivAtLen),l.scaleValues.push(l.sv4_DefaultAeLenDivAtLen),l.scaleValues.push(l.sv_arrowTailWidth)),l.RTOD=57.29577951308232,l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());for(var e=this.GetBaseGeometry(),l=this.ComputeArrowEndBody(t,e.ptLeft,e.ptRight,e.dTailLenght),o=[],i=l.leftBody.length-1;i>0;i--)o.push(l.leftBody[i]);var n=this.arrowMeshs(e.tempPt);o=(o=o.concat(n.shapePts)).concat(l.rightBody);var a={fillLimit:!0,fillColorLimit:!0,fillStyle:0,strokeOpacity:1,opacity:1,lineColorLimit:!0,strokeColor:"#0000ff",color:"#0000ff",lineColor:"#0000ff",surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o,a),SuperMapAlgoPlot.AlgoSymbol1004.prototype.scaleValues=this.scaleValues;var r=SuperMapAlgoPlot.AlgoSymbol1004.prototype.updateScalePoints(e.tempPt);this.scalePoints=[],this.addScalePoint(r[r.length-1]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),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 o=l.length;if(o<=2)return;var i,n,a,r,s=this.operateCtrlPts(l);o=s.length,o--;if(this.scaleValues.length<4){var p=this.calcDefaultScaleValues(o);i=p[0],n=p[1],a=p[2],r=p[3]}else i=this.scaleValues[0],n=this.scaleValues[1],a=this.scaleValues[2],r=this.scaleValues[3];for(var u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),P=[],c=0;c<this.scalePoints.length;c++)P.push(this.scalePoints[c].clone());if(0==P.length)return;P[t]=e.clone();var g,S,h=o-1;g=o<=3?new SuperMapAlgoPlot.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2):s[h-1].clone();var f,y,A=new SuperMapAlgoPlot.Point(0,0),M=new SuperMapAlgoPlot.Point(0,0),b=new SuperMapAlgoPlot.Point(0,0);SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(0,3,g,s[h],s[h+1],M,b),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(.5,s[o],s[o-1],b,A),S=A.clone();var d=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(s[o],S,P[0]);f=d.dLen1,d.dLen2,0==f&&(f=.1),f,i=(f/=r+1)/u,0==t&&(i=f/u),f*n,(y=SuperMapAlgoPlot.PlottingUtil.distance(s[o],s[o-1]))<2*f&&((f=.5*y)*n,i=f/u),this.scaleValues[0]=i,this.scaleValues[1]=n,this.scaleValues[2]=a,this.scaleValues[3]=r}}},{key:"GetBaseGeometry",value:function(){var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<2)return null;var e=this.GetLeftAndRightPt(),l=[];l.push(e.leftPt),l.push(e.rightPt);for(var o=1;o<t.length;o++)l.push(t[o]);return{tempPt:l,ptLeft:e.leftPt,ptRight:e.rightPt,dTailLenght:e.dTailLenght}}},{key:"ComputeArrowEndBody",value:function(t,e,l,o){var i,n,a,r=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),s=(SuperMapAlgoPlot.PlottingUtil.polylineDistance(r),.5*SuperMapAlgoPlot.PlottingUtil.distance(e,l)),p=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(r,.9*o),u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(r,.7*o),P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(r,.4*o);2==t.length?i=n=a=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*this.RTOD:t.length>=3&&(i=SuperMapAlgoPlot.PlottingUtil.radian(r[p.index-1],r[p.index+1])*this.RTOD,n=SuperMapAlgoPlot.PlottingUtil.radian(r[u.index-1],r[u.index+1])*this.RTOD,a=SuperMapAlgoPlot.PlottingUtil.radian(r[P.index-1],r[P.index+1])*this.RTOD);var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(p.pt,.9*s,.9*s,i+90),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(p.pt,.9*s,.9*s,i+270),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(u.pt,.8*s,.8*s,n+90),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(u.pt,.8*s,.8*s,n+270),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(P.pt,.3*s,.3*s,a+90),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(P.pt,.3*s,.3*s,a+270),A=[];A.push(e),A.push(c),A.push(S),A.push(f),A.push(t[0]);var M=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(A),b=[];return b.push(l),b.push(g),b.push(h),b.push(y),b.push(t[0]),{leftBody:M,rightBody:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(b)}}},{key:"GetLeftAndRightPt",value:function(){var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),e=(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length;if(!(e<this.minEditPts)){var l,o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.scaleValues[4]=this.getSubSymbolScaleValue();var i,n,a=o*this.scaleValues[4]*.1;if(2==e){var r=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],o/3),s=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*this.RTOD;if(i=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,a,a,s+90),n=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,a,a,s+270),SuperMapAlgoPlot.PlottingUtil.isRight(i,t[0],t[1])){var p=i;i=n,n=p}l=o/3}else if(e>=3){for(var u=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),P=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(t[1],u),c=[],g=0;g<=P.index;g++)c.push(u[g]);var S=SuperMapAlgoPlot.PlottingUtil.polylineDistance(c),h=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(u,.9*S);s=SuperMapAlgoPlot.PlottingUtil.radian(u[h.index-1],u[h.index+1])*this.RTOD;if(i=SuperMapAlgoPlot.PlottingUtil.circlePoint(h.pt,a,a,s+90),n=SuperMapAlgoPlot.PlottingUtil.circlePoint(h.pt,a,a,s+270),SuperMapAlgoPlot.PlottingUtil.isRight(i,u[h.index-1],u[h.index+1])){p=i;i=n,n=p}var f=[];for(g=0;g<=h.index;g++)f.push(u[g]);l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(f)}return{leftPt:i,rightPt:n,dTailLenght:l}}}},{key:"updateScalePoints",value:function(t){var e=t.length,l=[];if(!(e<3)){var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(o,0)){var i=this.operateCtrlPts(t);e=i.length,e--;for(var n=[],a=0;a<this.scaleValues.length;a++)n.push(this.scaleValues[a]);var r=this.genArrowBodyPts(o,i,n),s=r.ArrowBodyCenterPts,p=this.genAtPts(e,s,n,r.ArrowTouLen),u=this.calc3rdScalePt(e,s,n,r.ArrowTouLen);return l.push(new SuperMapAlgoPlot.Point(r.LeftBodyPtsTemp[e].x,r.LeftBodyPtsTemp[e].y)),l.push(new SuperMapAlgoPlot.Point(p[2].x,p[2].y)),l.push(new SuperMapAlgoPlot.Point(u.x,u.y)),l}}}},{key:"arrowMeshs",value:function(t){var e=[],l=[],o=[],i=[],n=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),a=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePts(n,this.scaleValues,SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),r=a.arrowTouLen,s=a.leftBodyPts,p=a.rightBodyPts;if(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,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=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePts(n,u,P,r,SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),g=0;g<s.length;g++)e.push(s[g]),l.push(s[g]);for(var S=0;S<c.length;S++)e.push(c[S]),i.push(c[S]);for(var h=p.length-1;h>=0;h--)e.push(p[h]),o.push(p[h])}return{shapePts:e,leftBodyPts:l,rightBodyPts:o,arrowHeadPts:i}}},{key:"operateCtrlPts",value:function(t){var e=SuperMapAlgoPlot.PlottingUtil.clonePoints(t);if(3===e.length){var l=((e[0].x+e[1].x)/2+e[2].x)/2,o=((e[0].y+e[1].y)/2+e[2].y)/2,i=new SuperMapAlgoPlot.Point(l,o),n=e[2];e[2]=i,e.push(n)}return e}}]),e}();SuperMapAlgoPlot.AlgoSymbol5033301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50332=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 l=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 l.scaleValues.push(.1),l.RTOD=57.29577951308232,l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])*this.scaleValues[0];Math.sqrt(e*e/2);if(t.length>3){var l=[];l.push(t[0]),l.push(t[1]),l.push(t[2]);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);this.addArrow(o,this.scaleValues[0]);for(var i=[],n=3;n<t.length;n++)i.push(t[n]);if(i.length>=2){var a=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(i);this.addArrow(a,this.scaleValues[0])}}else if(t.length<=3){var r=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);this.addArrow(r,this.scaleValues[0])}this.finish()}}},{key:"computeScaleValues",value:function(t,e){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!(2>l.length)){0===this.scaleValues.length&&this.scaleValues.push(.2);SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1])}}}]),e}();SuperMapAlgoPlot.AlgoSymbol50332=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3002701=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(1),l.scaleValues.push(1),l.scaleValues.push(1),l.scaleValues.push(1),l.scaleValues.push(1.3),l.scaleValues.push(90),l.scaleValues.push(90),l.scaleValues.push(270),l.scaleValues.push(270),l.scaleValues.push(1)),l.RTOD=57.29577951308232,l.subText="",l._style={lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,lineColor:"#0000ff"},l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints&&!(t.length<this.minEditPts)){this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[0]*3,l=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*this.RTOD,o=SuperMapAlgoPlot.PlottingUtil.midPoint(t[0],t[1]),i=[];i.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e*this.scaleValues[1],e*this.scaleValues[1],l+this.scaleValues[6])),i.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(o,e/2,e/2,l+90)),i.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],e*this.scaleValues[2],e*this.scaleValues[2],l+this.scaleValues[7]));var n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(i),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n),r=.25*a,s=.1*r,p=this.computeDashLine(r,s,n);this.AddCellPoints(p,!0,s);var u=[];u.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e*this.scaleValues[3],e*this.scaleValues[3],l+this.scaleValues[8])),u.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(o,e/2,e/2,l+270)),u.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],e*this.scaleValues[4],e*this.scaleValues[4],l+this.scaleValues[9]));var P=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(u);s=.1*(r=.25*(a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(P)));var c,g=this.computeDashLine(r,s,P);this.AddCellPoints(g,!1,s),c=-1===this.scaleValues[10]?this.AddCellRec(g,e):this.AddCellRec(p,e);var S=p[0][0],h=p[p.length-1],f=h[h.length-1],y=g[0][0],A=g[g.length-1],M=A[A.length-1];this.addScalePoint(new SuperMapAlgoPlot.Point(S.x,S.y)),this.addScalePoint(new SuperMapAlgoPlot.Point(f.x,f.y)),this.addScalePoint(new SuperMapAlgoPlot.Point(y.x,y.y)),this.addScalePoint(new SuperMapAlgoPlot.Point(M.x,M.y)),this.addScalePoint(new SuperMapAlgoPlot.Point(c.x,c.y)),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o,i,n,a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l)*this.scaleValues[0]*5;switch(t){case 0:if(s=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[0],l[1],e))return;i=(SuperMapAlgoPlot.PlottingUtil.radian(l[0],e)-SuperMapAlgoPlot.PlottingUtil.radian(l[0],l[1]))*this.RTOD,o=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/a,this.scaleValues[1]=o,this.scaleValues[6]=i,n=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,l[0],l[1]),(r=SuperMapAlgoPlot.PlottingUtil.distance(e,n)/a)>=1&&(this.scaleValues[5]=r);break;case 1:if(s=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[0],l[1],e))return;i=(SuperMapAlgoPlot.PlottingUtil.radian(l[1],e)-SuperMapAlgoPlot.PlottingUtil.radian(l[0],l[1]))*this.RTOD,o=SuperMapAlgoPlot.PlottingUtil.distance(e,l[1])/a,this.scaleValues[2]=o,this.scaleValues[7]=i,n=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,l[0],l[1]),(r=SuperMapAlgoPlot.PlottingUtil.distance(e,n)/a)>=1.1&&(this.scaleValues[5]=r);break;case 2:if(!(s=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[0],l[1],e)))return;i=(SuperMapAlgoPlot.PlottingUtil.radian(l[0],e)-SuperMapAlgoPlot.PlottingUtil.radian(l[0],l[1]))*this.RTOD,o=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/a,this.scaleValues[3]=o,this.scaleValues[8]=i,n=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,l[0],l[1]),(r=SuperMapAlgoPlot.PlottingUtil.distance(e,n)/a)>=1.1&&-1==this.scaleValues[10]&&(this.scaleValues[5]=r);break;case 3:if(!(s=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[0],l[1],e)))return;i=(SuperMapAlgoPlot.PlottingUtil.radian(l[1],e)-SuperMapAlgoPlot.PlottingUtil.radian(l[0],l[1]))*this.RTOD,o=SuperMapAlgoPlot.PlottingUtil.distance(e,l[1])/a,this.scaleValues[4]=o,this.scaleValues[9]=i,n=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,l[0],l[1]),(r=SuperMapAlgoPlot.PlottingUtil.distance(e,n)/a)>=1.1&&-1==this.scaleValues[10]&&(this.scaleValues[5]=r);break;case 4:var r,s=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[0],l[1],e);this.scaleValues[10]=s?-1:1,n=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,l[0],l[1]),(r=SuperMapAlgoPlot.PlottingUtil.distance(e,n)/a)>=1.1&&(this.scaleValues[5]=r)}}}},{key:"AddCellPoints",value:function(t,e,l){for(var o=0;o<t.length;o++){this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t[o],this._style);var i=t[o],n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i),a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,.3*n),r=i[a.index+1],s=SuperMapAlgoPlot.PlottingUtil.radian(a.pt,r)*this.RTOD;s=e?s+90:s+270;var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(a.pt,l,l,s),u=[];u.push(a.pt),u.push(p),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u,this._style)}}},{key:"AddCellRec",value:function(t,e){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=t[0],i=t[t.length-1],n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i),r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.1*n),s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,.9*a),p=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(r.pt,l[0],l[1]),u=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(s.pt,l[0],l[1]),P=SuperMapAlgoPlot.PlottingUtil.linePnt(p.projectPoint,r.pt,e*this.scaleValues[5]),c=SuperMapAlgoPlot.PlottingUtil.linePnt(u.projectPoint,s.pt,e*this.scaleValues[5]),g=[];return g.push(r.pt),g.push(P),g.push(c),g.push(s.pt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,this._style),SuperMapAlgoPlot.PlottingUtil.midPoint(P,c)}}]),e}();SuperMapAlgoPlot.AlgoSymbol3002701=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6030601=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 l=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===l.scaleValues.length&&l.scaleValues.push(.1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0]*e,o=t[0].clone(),i=t[1].clone(),n=SuperMapAlgoPlot.PlottingUtil.linePnt(i,o,e+.2*e),a=SuperMapAlgoPlot.PlottingUtil.linePnt(o,i,e+.2*e),r=1.5*l,s=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,i,n),p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o,a),u=SuperMapAlgoPlot.PlottingUtil.paraLine(t,l,!0),P=SuperMapAlgoPlot.PlottingUtil.paraLine(t,l,!1),c=SuperMapAlgoPlot.PlottingUtil.linePnt(u[0],u[u.length-1],3*e/11),g=SuperMapAlgoPlot.PlottingUtil.linePnt(u[0],u[u.length-1],4*e/11),S=SuperMapAlgoPlot.PlottingUtil.linePnt(u[0],u[u.length-1],7*e/11),h=SuperMapAlgoPlot.PlottingUtil.linePnt(u[0],u[u.length-1],8*e/11),f=[];f.push(s.pntRight),f.push(u[0]),f.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var y=[];y.push(g),y.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y);var A=[];A.push(h),A.push(u[u.length-1]),A.push(p.pntLeft),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);var M=SuperMapAlgoPlot.PlottingUtil.linePnt(P[0],P[P.length-1],3*e/11),b=SuperMapAlgoPlot.PlottingUtil.linePnt(P[0],P[P.length-1],4*e/11),d=SuperMapAlgoPlot.PlottingUtil.linePnt(P[0],P[P.length-1],7*e/11),m=SuperMapAlgoPlot.PlottingUtil.linePnt(P[0],P[P.length-1],8*e/11),v=[];v.push(s.pntLeft),v.push(P[0]),v.push(M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v);var O=[];O.push(b),O.push(d),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,O);var U=[];U.push(m),U.push(P[P.length-1]),U.push(p.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U);var L=new SuperMapAlgoPlot.Point((s.pntLeft.x+s.pntRight.x)/2,(s.pntLeft.y+s.pntRight.y)/2),w=new SuperMapAlgoPlot.Point((c.x+M.x)/2,(c.y+M.y)/2),_=[];_.push(L),_.push(w),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,_);var V=SuperMapAlgoPlot.PlottingUtil.radian(L,w)*SuperMapAlgoPlot.PlottingUtil.RTOD,T=SuperMapAlgoPlot.PlottingUtil.distance(L,w),E=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.8,L,w),x=SuperMapAlgoPlot.PlottingUtil.circlePoint(E,.025*T,.025*T,V+90),C=SuperMapAlgoPlot.PlottingUtil.circlePoint(E,.025*T,.025*T,V-90),j=[];j.push(x),j.push(C),j.push(w);var Y={fillLimit:!0,fill:!0};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,j,Y);var I=new SuperMapAlgoPlot.Point((p.pntLeft.x+p.pntRight.x)/2,(p.pntLeft.y+p.pntRight.y)/2),R=new SuperMapAlgoPlot.Point((h.x+m.x)/2,(h.y+m.y)/2),B=[];B.push(I),B.push(R),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,B);var N=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.8,I,R),D=SuperMapAlgoPlot.PlottingUtil.circlePoint(N,.025*T,.025*T,V+90),k=SuperMapAlgoPlot.PlottingUtil.circlePoint(N,.025*T,.025*T,V-90),z=[];z.push(D),z.push(k),z.push(R),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,z,Y),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol6030601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol70110=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l;if(2==t.length)e=t[0],l=t[1];else{var o=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),i=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[2]),n=SuperMapAlgoPlot.PlottingUtil.distance(t[2],t[0]);o>=i&&o>=n?(e=t[0],l=t[1]):i>=o&&i>=n?(e=t[1],l=t[2]):(e=t[0],l=t[2])}var a=SuperMapAlgoPlot.PlottingUtil.dirAngle(e,l)*SuperMapAlgoPlot.PlottingUtil.RTOD,r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),s=.1*r,p=[];if(p=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),0!=(p=SuperMapAlgoPlot.PlottingUtil.clearSamePts(p)).length){for(var u=p[0].x,P=p[0].x,c=p[0].y,g=p[0].y,S=0;S<p.length;S++)u>p[S].x&&(u=p[S].x),P<p[S].x&&(P=p[S].x),c>p[S].y&&(c=p[S].y),g<p[S].y&&(g=p[S].y);for(var h=new SuperMapAlgoPlot.Point((P+u)/2,(g+c)/2),f=new SuperMapAlgoPlot.Point((P+u)/2,0),y=0,A=-1,M=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,r,r,a),b=0;b+1<p.length;b++){var d,m;if((d=SuperMap.Plot.PlottingUtil.intersectLines(h,M,p[b],p[b+1])).isIntersectLines){m=d.intersectPoint;var v,O=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(m,p);-1!==O.index&&(v=O.index,O.pt,0==y?(f.y=m.y,A=v):f.y<m.y&&(f.y=m.y,A=v),y++)}}if(0!=y&&-1!=A&&!(0>=p.length)){var U=[];U.push(f);for(var L=A+1;L<p.length;L++)U.push(new SuperMapAlgoPlot.Point(p[L].x,p[L].y));for(var w=0;w<=A;w++)U.push(new SuperMapAlgoPlot.Point(p[w].x,p[w].y));var _=new SuperMapAlgoPlot.Point(0,0),V=-1,T=.8*s,E=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(T,U);if(E.bfind){V=E.index,_=E.pts;var x=[];x.push(_);for(var C=V+1;C<U.length;C++)x.push(U[C]);U=[];for(var j=x.length-1;j>0;j--)U.push(x[j]);_=new SuperMapAlgoPlot.Point(0,0),V=-1;var Y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(T,U);if(Y.bfind){V=Y.index,_=Y.pts,(x=[]).push(_);for(var I=V+1;I<U.length;I++)x.push(U[I]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,x);var R,B=new SuperMapAlgoPlot.Point((x[0].x+x[x.length-1].x)/2,(x[0].y+x[x.length-1].y)/2),N=[],D=SuperMapAlgoPlot.PlottingUtil.circlePoint(B,s,s,a),k=SuperMapAlgoPlot.PlottingUtil.circlePoint(B,s,s,a+180);N.push(D),N.push(k),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,N);var z=a;SuperMapAlgoPlot.PlottingUtil.distance(h,D)>SuperMapAlgoPlot.PlottingUtil.distance(h,k)?(R=D,z=SuperMapAlgoPlot.PlottingUtil.dirAngle(D,k)*SuperMapAlgoPlot.PlottingUtil.RTOD):(R=k,z=SuperMapAlgoPlot.PlottingUtil.dirAngle(R,D)*SuperMapAlgoPlot.PlottingUtil.RTOD);var F=SuperMapAlgoPlot.PlottingUtil.circlePoint(R,.2*s,.2*s,z),G=SuperMapAlgoPlot.PlottingUtil.circlePoint(F,.05*s,.05*s,z+90),W=SuperMapAlgoPlot.PlottingUtil.circlePoint(F,.05*s,.05*s,z-90);(N=[]).push(G),N.push(W),N.push(R),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,N),this.finish()}}}}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol70110=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6031001=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 l=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 6!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.148),l.scaleValues.push(.4),l.scaleValues.push(.312),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}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,SuperMapAlgoPlot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),SuperMapAlgoPlot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var e=new SuperMapAlgoPlot.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(t.splice(0,2),t.unshift(e),this.subSymbols.length>0){var l;if(null==this.subSymbols[0].symbolData)return;l=this.subSymbols[0].symbolData.symbolSize.x;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=o*this.scaleValues[4],n=o*this.scaleValues[5],a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,t),r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,t),s=SuperMapAlgoPlot.PlottingUtil.radian(r.pts,a.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD+270,p=60*SuperMapAlgoPlot.PlottingUtil.distance(a.pts,r.pts)/l,u=new SuperMapAlgoPlot.Point(2*r.pts.x-a.pts.x,2*r.pts.y-a.pts.y),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,p,p,s),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,p,p,s-180);if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&(this.computeSubSymbol(this.subSymbols[0],r.pts,p,s-90),this.computeSubSymbol(this.subSymbols[1],P,p,s-90),this.computeSubSymbol(this.subSymbols[2],c,p,s-90)),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone()),r.pts.isScalePoint=!0,r.pts.tag=this.scalePoints.length,this.scalePoints.push(r.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMapAlgoPlot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var o=new SuperMapAlgoPlot.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),i=SuperMapAlgoPlot.PlottingUtil.clonePoints(l);i.splice(0,2),i.unshift(o);var n=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,i),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i);if(-1===n.index&&3===t&&(n.pt=o.clone()),-1==n.index&&4==t)this.scaleValues[t+1]=.01;else{var r=SuperMapAlgoPlot.PlottingUtil.clonePoints(i);r.splice(0,n.index+1),r.unshift(n.pt);var s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(r);a<s&&(s=a),this.scaleValues[t+1]=(a-s)/a,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5)}}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol6031001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6030501=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=.05*SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.paraLine(t,e,!0),o=SuperMapAlgoPlot.PlottingUtil.paraLine(t,e,!1),i=l[0],n=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.2,l[0],l[1]),a=[];a.push(i),a.push(n),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a);var r=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.2+.2/3,l[0],l[1]),s=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.4+.2/3,l[0],l[1]),p=[];p.push(r),p.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p);var u=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.4+.2/3*2,l[0],l[1]),P=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(3*.2+.2/3*2,l[0],l[1]),c=[];c.push(u),c.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c);var g=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.8,l[0],l[1]),S=l[1],h=[];h.push(g),h.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var f=o[0],y=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.2,o[0],o[1]),A=[];A.push(f),A.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);var M=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.2+.2/3,o[0],o[1]),b=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.4+.2/3,o[0],o[1]),d=[];d.push(M),d.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d);var m=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.4+.2/3*2,o[0],o[1]),v=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(3*.2+.2/3*2,o[0],o[1]),O=[];O.push(m),O.push(v),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,O);var U=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.8,o[0],o[1]),L=o[1],w=[];w.push(U),w.push(L),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w);var _=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.2,t[0],t[1]),V=t[0].clone(),T=[];T.push(_),T.push(V),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T);var E=SuperMapAlgoPlot.PlottingUtil.radian(_,V)*SuperMapAlgoPlot.PlottingUtil.RTOD,x=SuperMapAlgoPlot.PlottingUtil.distance(_,V),C=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.2,_,V),j=SuperMapAlgoPlot.PlottingUtil.circlePoint(C,.025*x,.025*x,E+90),Y=SuperMapAlgoPlot.PlottingUtil.circlePoint(C,.025*x,.025*x,E-90),I=[];I.push(j),I.push(Y),I.push(_);var R={fillLimit:!0,fill:!0};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,I,R);var B=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.2,t[1],t[0]),N=t[1].clone(),D=[];D.push(B),D.push(N),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,D);var k=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.2,B,N),z=SuperMapAlgoPlot.PlottingUtil.circlePoint(k,.025*x,.025*x,E+90),F=SuperMapAlgoPlot.PlottingUtil.circlePoint(k,.025*x,.025*x,E-90),G=[];G.push(z),G.push(F),G.push(B),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,G,R),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol6030501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol6030107=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 l=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 l.subText="练",l}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,SuperMapAlgoPlot.AlgoSymbol30020),e}();SuperMapAlgoPlot.AlgoSymbol6030107=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol6030106=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 l=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 l.subText="沙",l}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,SuperMapAlgoPlot.AlgoSymbol30020),e}();SuperMapAlgoPlot.AlgoSymbol6030106=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol6030105=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 l=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 l.subText="石",l}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,SuperMapAlgoPlot.AlgoSymbol30020),e}();SuperMapAlgoPlot.AlgoSymbol6030105=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol6030104=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 l=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 l.subText="催",l}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,SuperMapAlgoPlot.AlgoSymbol30020),e}();SuperMapAlgoPlot.AlgoSymbol6030104=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol6030103=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 l=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 l.subText="砌",l}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,SuperMapAlgoPlot.AlgoSymbol30020),e}();SuperMapAlgoPlot.AlgoSymbol6030103=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol6030102=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 l=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 l.subText="浇",l}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,SuperMapAlgoPlot.AlgoSymbol30020),e}();SuperMapAlgoPlot.AlgoSymbol6030102=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol6030101=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 l=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 l.subText="挖",l}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,SuperMapAlgoPlot.AlgoSymbol30020),e}();SuperMapAlgoPlot.AlgoSymbol6030101=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5020802=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=2*i}var n=this.scaleValues[0],a=this.scaleValues[2],r=this.scaleValues[3],s=o*n,p=new SuperMapAlgoPlot.Point(l.x+o*a,l.y+o*r);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,s,0),this.addScalePoint(p);var u=s,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,u,u,90);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),a=0,r=0;if(0===t)a=(e.x-i.x)/n,this.scaleValues[2]=a,r=(e.y-i.y)/n,this.scaleValues[3]=r;else if(1===t){a=this.scaleValues[2],r=this.scaleValues[3];var s=new SuperMapAlgoPlot.Point(i.x+n*a,i.y+n*r),p=SuperMapAlgoPlot.PlottingUtil.distance(s,e);this.scaleValues[0]=p/n}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5020802=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5020801=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.333333),l.scaleValues.push(.333333),l.scaleValues.push(.125),l.scaleValues.push(90)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),l=(SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),this.scaleValues[0]),o=this.scaleValues[1],i=(this.scaleValues[2],this.scaleValues[3],this.ComputeSubSymbolPt(l,o,t,e));new SuperMapAlgoPlot.Point(i.x,i.y);this.finish()}}},{key:"ComputeSubSymbolPt",value:function(t,e,l,o){var i,n,a=l[0],r=l[1],s=l[2],p=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(s,a,r)*t,u=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(r,a,s)*e,P=[];SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(a,r,o)?((n=[]).push(a),n.push(r),P=SuperMapAlgoPlot.PlottingUtil.paraLine(n,p,!1)):((n=[]).push(a),n.push(r),P=SuperMapAlgoPlot.PlottingUtil.paraLine(n,p,!0));SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(a,s,o)?((n=[]).push(a),n.push(s),i=SuperMapAlgoPlot.PlottingUtil.paraLine(n,u,!1)):((n=[]).push(a),n.push(s),i=SuperMapAlgoPlot.PlottingUtil.paraLine(n,u,!0));if(2>P.length||2>i.length)return o;var c=SuperMapAlgoPlot.PlottingUtil.intersectLines(P[0],P[1],i[0],i[1]);return c.isIntersectLines?c.intersectPoint:o}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o,i,n,a=[];if(2===l.length){o=new SuperMapAlgoPlot.Point(l[0].x,l[0].y),i=new SuperMapAlgoPlot.Point(l[1].x,l[1].y);var r=SuperMapAlgoPlot.PlottingUtil.distance(o,i),s=SuperMapAlgoPlot.PlottingUtil.radian(o,i)*SuperMapAlgoPlot.PlottingUtil.RTOD;n=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,r,r,s+60),a.push(o),a.push(i),a.push(n)}else for(var p=0;p<l.length;p++)a.push(l[p]);o=a[0].clone(),i=a[1].clone(),n=a[2].clone();var u=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(a);a.push(a[0]);var P=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t){var c=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(n,o,i),g=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(i,o,n),S=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(e,o,i)/c,h=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(e,o,n)/g;S>1&&(S=1),h>1&&(h=1),this.scaleValues[0]=S,this.scaleValues[1]=h}if(1===t){var f=this.scaleValues[0],y=this.scaleValues[1],A=this.ComputeSubSymbolPt(f,y,a,u),M=SuperMapAlgoPlot.PlottingUtil.distance(A,e)/P;this.scaleValues[2]=M;var b=SuperMapAlgoPlot.PlottingUtil.radian(A,e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[3]=b}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5020801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5035205=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.02)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(this.controlPoints.length<3)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t);this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue()/3);var o=this.scaleValues[0],i=this.scaleValues[1],n=e*this.scaleValues[2],a=new SuperMapAlgoPlot.Point(l.x+e*o,l.y+e*i),r=new SuperMapAlgoPlot.Point(a.x-4*n,a.y),s=new SuperMapAlgoPlot.Point(a.x-4*n,a.y-n/2),p=[];p.push(r),p.push(s);var u={lineTypeLimit:!0,fillLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,u);var P=new SuperMapAlgoPlot.Point(a.x-4*n,a.y),c=new SuperMapAlgoPlot.Point(a.x-n,a.y),g=[];g.push(P),g.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,u),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,2*n,0);var S=new SuperMapAlgoPlot.Point(a.x+4*n,a.y),h=new SuperMapAlgoPlot.Point(a.x+n,a.y),f=[];f.push(S),f.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,u);var y=new SuperMapAlgoPlot.Point(a.x+4*n,a.y+n/2),A=new SuperMapAlgoPlot.Point(a.x+4*n,a.y),M=[];M.push(y),M.push(A),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M,u),this.addScalePoint(a,0);var b=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,2*n,2*n,90);this.addScalePoint(b,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0===o)return;var n=0,a=0;if(0===t&&(n=(e.x-i.x)/o,this.scaleValues[0]=n,a=(e.y-i.y)/o,this.scaleValues[1]=a),1===t){n=this.scaleValues[0],a=this.scaleValues[1];var r=new SuperMapAlgoPlot.Point(i.x+o*n,i.y+o*a),s=SuperMapAlgoPlot.PlottingUtil.distance(r,e);this.scaleValues[2]=s/2/o}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5035205=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5035203=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 l=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 6!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.148),l.scaleValues.push(.4),l.scaleValues.push(.312),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}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,SuperMapAlgoPlot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),SuperMapAlgoPlot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var e=new SuperMapAlgoPlot.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);t.splice(0,2),t.unshift(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=l*this.scaleValues[4],i=l*this.scaleValues[5],n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(o,t),a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,t),r=SuperMapAlgoPlot.PlottingUtil.radian(a.pts,n.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD,s=SuperMapAlgoPlot.PlottingUtil.distance(n.pts,a.pts),p=a.pts.clone(),u=new SuperMapAlgoPlot.Point(0,.1*s),P=new SuperMapAlgoPlot.Point(.4*s,.1*s),c=new SuperMapAlgoPlot.Point(.4*s,-.1*s),g=new SuperMapAlgoPlot.Point(0,-.1*s),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,u,r),h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,P,r),f=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,c,r),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,g,r),A=[];A.push(S),A.push(h),A.push(f),A.push(y),A.push(S);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A,{fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0});var M=new SuperMapAlgoPlot.Point(.05*s,0),b=new SuperMapAlgoPlot.Point(.15*s,0),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,M,r),m=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,b,r),v=[];v.push(d),v.push(m);var O={lineTypeLimit:!0,surroundLineLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,O);var U=new SuperMapAlgoPlot.Point(.1*s,.05*s),L=new SuperMapAlgoPlot.Point(.1*s,-.05*s),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,U,r),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,L,r),V=[];V.push(w),V.push(_),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,V,O);var T=new SuperMapAlgoPlot.Point(.25*s,.05*s),E=new SuperMapAlgoPlot.Point(.35*s,.05*s),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,T,r),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,E,r),j=[];j.push(x),j.push(C),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,j,O);var Y=new SuperMapAlgoPlot.Point(.3*s,.05*s),I=new SuperMapAlgoPlot.Point(.3*s,-.05*s),R=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,Y,r),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,I,r),N=[];N.push(R),N.push(B),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,N,O);var D=new SuperMapAlgoPlot.Point(.25*s,-.05*s),k=new SuperMapAlgoPlot.Point(.35*s,-.05*s),z=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,D,r),F=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,k,r),G=[];G.push(z),G.push(F),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,G,O);var W=new SuperMapAlgoPlot.Point(.4*s,0),J=new SuperMapAlgoPlot.Point(.8*s,0),K=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,W,r),H=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,J,r),q=[];q.push(K),q.push(H),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,q,O);var Q=new SuperMapAlgoPlot.Point(.7*s,.025*s),X=new SuperMapAlgoPlot.Point(.7*s,-.025*s),Z=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,Q,r),$=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,X,r),tt=[];tt.push(H),tt.push(Z),tt.push($);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,tt,{fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0,fill:!0}),n.pts.isScalePoint=!0,n.pts.tag=this.scalePoints.length,this.scalePoints.push(n.pts.clone()),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone()),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMapAlgoPlot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var o=new SuperMapAlgoPlot.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),i=SuperMapAlgoPlot.PlottingUtil.clonePoints(l);i.splice(0,2),i.unshift(o);var n=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,i),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i);if(-1===n.index&&3===t&&(n.pt=o.clone()),-1==n.index&&4==t)this.scaleValues[t+1]=.01;else{var r=SuperMapAlgoPlot.PlottingUtil.clonePoints(i);r.splice(0,n.index+1),r.unshift(n.pt);var s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(r);a<s&&(s=a),this.scaleValues[t+1]=(a-s)/a,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5)}}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5035203=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5035202=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 l=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!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.148),l.scaleValues.push(.4),l.scaleValues.push(.312),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}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,SuperMapAlgoPlot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),SuperMapAlgoPlot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var e=new SuperMapAlgoPlot.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(t.splice(0,2),t.unshift(e),this.subSymbols.length>0){var l;if(null==this.subSymbols[0].symbolData)return;l=this.subSymbols[0].symbolData.symbolSize.x;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=o*this.scaleValues[4],n=o*this.scaleValues[5],a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,t),r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,t),s=SuperMapAlgoPlot.PlottingUtil.radian(r.pts,a.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD+270,p=60*SuperMapAlgoPlot.PlottingUtil.distance(a.pts,r.pts)/l;if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],r.pts,p,s-90),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone()),r.pts.isScalePoint=!0,r.pts.tag=this.scalePoints.length,this.scalePoints.push(r.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMapAlgoPlot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var o=new SuperMapAlgoPlot.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),i=SuperMapAlgoPlot.PlottingUtil.clonePoints(l);i.splice(0,2),i.unshift(o);var n=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,i),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i);if(-1===n.index&&3===t&&(n.pt=o.clone()),-1==n.index&&4==t)this.scaleValues[t+1]=.01;else{var r=SuperMapAlgoPlot.PlottingUtil.clonePoints(i);r.splice(0,n.index+1),r.unshift(n.pt);var s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(r);a<s&&(s=a),this.scaleValues[t+1]=(a-s)/a,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5)}}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5035202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5035201=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 l=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===l.scaleValues.length&&(l.scaleValues.push(1e3),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[1]=2*this.getSubSymbolScaleValue());var o=l*this.scaleValues[1],i=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,o);if(-1!==i.index){var n=t[0].clone(),a=i.pt,r=SuperMapAlgoPlot.PlottingUtil.radian(n,a)*SuperMapAlgoPlot.PlottingUtil.RTOD,s=[];s.push(i.pt);for(var p=i.index+1;p<e.length;p++)s.push(e[p]);this.addArrow(s);var u=.3*o,P=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(2/3*.5,t[0],i.pt);if(this.subSymbols.length>0){this.computeSubSymbol(this.subSymbols[0],P,u,r);var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],2.1*u,2.1*u,r),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],3*u,3*u,r),S=[];S.push(c),S.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S);var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,.2*u,.2*u,r),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,.05*u,.05*u,r+90),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,.05*u,.05*u,r+270),A=[];A.push(h),A.push(f),A.push(y);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,A,{fillLimit:!0,fill:!0})}var M=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,o,o,r+90);this.addScalePoint(M,0),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=l[0].clone(),n=e.clone(),a=SuperMapAlgoPlot.PlottingUtil.distance(n,i);if(0===t){var r=a/o;r<=.06&&(r=.06),r>=.15&&(r=.15),this.scaleValues[1]=r}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5035201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5034801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=t[0].clone(),o=t[1].clone();e=2==t.length?o:t[2].clone();var i=new SuperMapAlgoPlot.Point((l.x+o.x)/2,(l.y+o.y)/2),n=SuperMapAlgoPlot.PlottingUtil.distance(i,e),a=.5*n,r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,i,e),s=r.pntLeft,p=r.pntRight,u=!(i.x>e.x),P=[];u?(P.push(l),P.push(s)):(P.push(l),P.push(p)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var c=[];u?(c.push(o),c.push(p)):(c.push(o),c.push(s)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c);var g,S,h,f,y,A=.37*n,M=SuperMapAlgoPlot.PlottingUtil.linePnt(i,e,A),b=.09*n,d=[];d.push(M),d.push(new SuperMapAlgoPlot.Point(M.x,M.y+b)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,d,{lineTypeLimit:!0}),u?(S=(g=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(b,i,M)).pntLeft,h=(g=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*b,i,M)).pntLeft,f=(g=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(b,S,h)).pntRight,y=g.pntLeft):(S=(g=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(b,i,M)).pntRight,h=(g=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*b,i,M)).pntRight,f=(g=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(b,S,h)).pntRight,y=g.pntLeft);var m=[];m.push(S),m.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,m,{lineTypeLimit:!0});var v=[];v.push(f),v.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,{lineTypeLimit:!0}),this.addText("催",M,b,0),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5034801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5034203=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=.5*l,i=l*this.getSubSymbolScaleValue()*1.5,n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(o,e);if(n.bfind){var a=n.pts.clone(),r=e[n.index].clone(),s=e[n.index+1].clone(),p=SuperMapAlgoPlot.PlottingUtil.radian(r,s)*SuperMapAlgoPlot.PlottingUtil.RTOD,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,i,i,p+90),P=[];P.push(n.pts),P.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,{lineTypeLimit:!0});var c=SuperMapAlgoPlot.PlottingUtil.radian(a,u)*SuperMapAlgoPlot.PlottingUtil.RTOD,g=new SuperMapAlgoPlot.Point(-.2*i,.05*i),S=new SuperMapAlgoPlot.Point(-.2*i,-.05*i),h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u,g,c),f=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u,S,c),y=[];y.push(u),y.push(h),y.push(f);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,y,{lineTypeLimit:!0,fillLimit:!0,fill:!0});var A=new SuperMapAlgoPlot.Point(0,-.6*i),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,A,p);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],M,i,p-90),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5034203=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5034202=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=2*i}var n=this.scaleValues[0],a=o*this.scaleValues[2],r=o*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(l.x+a,l.y+r),p=o*n,u=new SuperMapAlgoPlot.Point(s.x-.5*p,s.y);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],u,p,0);var P=new SuperMapAlgoPlot.Point(s.x+.5*p,s.y),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.3*p,.3*p,-90),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.5*p,.5*p,90),S=[];S.push(c),S.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S);var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.2*p,.2*p,-90),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.05*p,.05*p,0),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.05*p,.05*p,180),A=[];A.push(h),A.push(f),A.push(y);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,A,{fillLimit:!0,fill:!0});var M=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,180);this.addScalePoint(M,0),this.addScalePoint(s,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===n)return;var a=0,r=0,s=0,p=0;if(0===t){a=n*(s=this.scaleValues[2]),r=n*(p=this.scaleValues[3]);var u=new SuperMapAlgoPlot.Point(i.x+a,i.y+r),P=SuperMapAlgoPlot.PlottingUtil.distance(e,u);this.scaleValues[0]=P/n}else 1===t&&(s=(a=e.x-i.x)/n,p=(r=e.y-i.y)/n,this.scaleValues[2]=s,this.scaleValues[3]=p)}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5034202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5034201=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=2*i}var n=this.scaleValues[0],a=o*this.scaleValues[2],r=o*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(l.x+a,l.y+r),p=o*n,u=new SuperMapAlgoPlot.Point(s.x-.5*p,s.y);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],u,p,0);var P=new SuperMapAlgoPlot.Point(s.x+.5*p,s.y),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.5*p,.5*p,-90),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.3*p,.3*p,90),S=[];S.push(c),S.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S);var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,.2*p,.2*p,90),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,.05*p,.05*p,0),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,.05*p,.05*p,180),A=[];A.push(h),A.push(f),A.push(y);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,A,{fillLimit:!0,fill:!0});var M=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,180);this.addScalePoint(M,0),this.addScalePoint(s,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===n)return;var a=0,r=0,s=0,p=0;if(0===t){s=n*(a=this.scaleValues[2]),p=n*(r=this.scaleValues[3]);var u=new SuperMapAlgoPlot.Point(i.x+s,i.y+p),P=SuperMapAlgoPlot.PlottingUtil.distance(e,u);this.scaleValues[0]=P/n}else 1===t&&(a=(s=e.x-i.x)/n,r=(p=e.y-i.y)/n,this.scaleValues[2]=a,this.scaleValues[3]=r)}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5034201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5034102=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.5),l.scaleValues.push(-5)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),e=(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length;if(!(t.length<this.minEditPts)){3!=this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(.5),this.scaleValues.push(-5)),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var l=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),o=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,i=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,o+120),n=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,o+240),a=[];if(a.push(t[1]),a.push(i),a.push(n),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,a),e>2)for(var r=2;r<t.length;r++)if(r%2==0&&t.length-2>=r){var s=[];if(s.push(this.getMinDisPt(t[r],t[1],i,n)),s.push(t[r+1]),2==r){for(var p=.25*SuperMapAlgoPlot.PlottingUtil.distance(s[0],s[1]),u=.1*p,P=this.computeDashLine(p,u,s),c=0;c<P.length;c++)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P[c]);this.addArrowWithOutLine(s,this.scaleValues[0])}else this.addArrow(s,this.scaleValues[0])}this.finish()}}},{key:"getMinDisPt",value:function(t,e,l,o){var i,n=SuperMapAlgoPlot.PlottingUtil.distance(t,e),a=SuperMapAlgoPlot.PlottingUtil.distance(t,l),r=SuperMapAlgoPlot.PlottingUtil.distance(t,o);return(i=(i=n<a?n:a)<r?i:r)==n?e:i==a?l:o}},{key:"computeScaleValues",value:function(t,e){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),o=(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length;if(!(l.length<2)){if(0==t){var i,n;if(2==o)i=n=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);else if((i=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]))<(n=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[2]))){var a=i;i=n,n=a}var r=n*this.scaleValues[1];(a=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/r)<=2&&(this.scaleValues[1]=a*this.scaleValues[1])}if(1==t){var s=SuperMapAlgoPlot.PlottingUtil.dirAngle(l[0],e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[2]=s}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5034102=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5034101=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.5),l.scaleValues.push(-5)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),e=(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length;if(!(t.length<this.minEditPts)){3!=this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(.5),this.scaleValues.push(-5)),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());for(var l=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])*this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,i=[],n=[],a=0;a<=360;a+=5)i.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,a));if(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i),n.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,o)),n.push(t[1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n),this.addArrow(n,this.scaleValues[0]),e>2){var r=[];o=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[2])*SuperMapAlgoPlot.PlottingUtil.RTOD,r.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,o)),r.push(t[2]),this.addArrow(r,this.scaleValues[0])}if(e>3)for(var s=3;s<t.length;s++){r=[],o=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[s])*SuperMapAlgoPlot.PlottingUtil.RTOD,r.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,o)),r.push(t[s]);for(var p=.25*SuperMapAlgoPlot.PlottingUtil.distance(r[0],r[1]),u=.1*p,P=this.computeDashLine(p,u,r),c=0;c<P.length;c++)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P[c]);this.addArrowWithOutLine(r,this.scaleValues[0])}this.finish()}}},{key:"computeScaleValues",value:function(t,e){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length}}]),e}();SuperMapAlgoPlot.AlgoSymbol5034101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50341=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.5),l.scaleValues.push(-5)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),e=(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length;if(!(t.length<this.minEditPts)){3!=this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(.5),this.scaleValues.push(-5)),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());for(var l=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])*this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,i=[],n=[],a=0;a<=360;a+=5)i.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,a));if(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i),n.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,o)),n.push(t[1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n),this.addArrow(n,this.scaleValues[0]),e>2){for(var r=[],s=0;s<=360;s+=5)r.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[2],l,l,s));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r)}if(e>3)for(var p=3;p<t.length;p++){var u=[],P=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[2],t[p])*SuperMapAlgoPlot.PlottingUtil.RTOD;if(u.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[2],l,l,P)),u.push(new SuperMapAlgoPlot.Point(t[p].x,t[p].y)),p>3){for(var c=.25*SuperMapAlgoPlot.PlottingUtil.distance(u[0],u[1]),g=.1*c,S=this.computeDashLine(c,g,u),h=0;h<S.length;h++)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S[h]);this.addArrowWithOutLine(u,this.scaleValues[0])}else this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),this.addArrow(u,this.scaleValues[0])}this.finish()}}},{key:"computeScaleValues",value:function(t,e){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length}}]),e}();SuperMapAlgoPlot.AlgoSymbol50341=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5033803=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0].clone(),l=t[1].clone(),o=SuperMapAlgoPlot.PlottingUtil.distance(e,l),i=this.scaleValues[0]*o,n=SuperMapAlgoPlot.PlottingUtil.linePnt(e,l,.5*o),a=SuperMapAlgoPlot.PlottingUtil.linePnt(n,e,i),r=SuperMapAlgoPlot.PlottingUtil.linePnt(n,l,i),s=[];s.push(t[0]),s.push(a),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s);var p=[];p.push(r),p.push(t[1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p);var u=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,t[1],t[0]),P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,t[0],t[1]),c=[];c.push(u.pntRight),c.push(u.pntLeft);var g={lineTypeLimit:!0,surroundLineLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,g);var S=[];S.push(P.pntRight),S.push(P.pntLeft),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,g);var h=[];h.push(t[0]),h.push(a);var f=[];f.push(r),f.push(t[1]);var y=SuperMapAlgoPlot.PlottingUtil.paraLine(h,i,!0),A=SuperMapAlgoPlot.PlottingUtil.paraLine(h,i,!1),M=SuperMapAlgoPlot.PlottingUtil.paraLine(f,i,!0),b=SuperMapAlgoPlot.PlottingUtil.paraLine(f,i,!1);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b);var d=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,2*i,d),this.addScalePoint(u.pntRight,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0===t){var i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o;i>.48&&(i=.48),this.scaleValues[0]=i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5033803=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5033802=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0].clone(),l=t[1].clone(),o=SuperMapAlgoPlot.PlottingUtil.distance(e,l),i=this.scaleValues[0]*o,n=SuperMapAlgoPlot.PlottingUtil.linePnt(e,l,.5*o),a=SuperMapAlgoPlot.PlottingUtil.linePnt(n,e,i),r=SuperMapAlgoPlot.PlottingUtil.linePnt(n,l,i),s=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,t[1],t[0]),p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,t[0],t[1]),u=[];u.push(s.pntRight),u.push(s.pntLeft);var P={lineTypeLimit:!0,surroundLineLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u,P);var c=[];c.push(p.pntRight),c.push(p.pntLeft),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,P);var g=[];g.push(t[0]),g.push(a),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var S=[];S.push(r),S.push(t[1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S);var h=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,2*i,h-90),this.addScalePoint(s.pntLeft,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0===t){var i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o;i>.48&&(i=.48),this.scaleValues[0]=i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5033802=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5033001=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=.5*l,i=l*this.getSubSymbolScaleValue()/1.2,n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(o,e);if(n.bfind){var a=n.pts.clone(),r=e[n.index].clone(),s=e[n.index+1].clone(),p=SuperMapAlgoPlot.PlottingUtil.radian(r,s)*SuperMapAlgoPlot.PlottingUtil.RTOD,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,i,i,p+90),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,i,i,p+270),c=[];c.push(n.pts),c.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,{lineTypeLimit:!0});var g=SuperMapAlgoPlot.PlottingUtil.radian(a,u)*SuperMapAlgoPlot.PlottingUtil.RTOD,S=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,i,i,g+30),h=[];h.push(u),h.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var f=SuperMapAlgoPlot.PlottingUtil.radian(u,S)*SuperMapAlgoPlot.PlottingUtil.RTOD,y=new SuperMapAlgoPlot.Point(-.2*i,.05*i),A=new SuperMapAlgoPlot.Point(-.2*i,-.05*i),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,y,f),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,A,f),d=[];d.push(S),d.push(M),d.push(b);var m={fillLimit:!0,fill:!0};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,d,m);var v=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,i,i,g+330),O=[];O.push(u),O.push(v),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,O);var U=SuperMapAlgoPlot.PlottingUtil.radian(u,v)*SuperMapAlgoPlot.PlottingUtil.RTOD,L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,y,U),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,A,U),_=[];_.push(v),_.push(L),_.push(w),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,_,m),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],P,i,p+270),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5033001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50321=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.069485),l.scaleValues.push(.15),l.scaleValues.push(.1),l.scaleValues.push(1.731025),l.scaleValues.push(2.076877)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o),this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var i=e*this.scaleValues[0],n=this.scaleValues[1]*SuperMapAlgoPlot.PlottingUtil.RTOD,a=e*this.scaleValues[2],r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==r.index){var s=r.pt,p=r.index,u=s,P=o[p],c=o[p+1],g=SuperMapAlgoPlot.PlottingUtil.radian(P,c)*SuperMapAlgoPlot.PlottingUtil.RTOD,S=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,1.5*a,1.5*a,g+n);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,S]);var h=SuperMapAlgoPlot.PlottingUtil.radian(u,S)*SuperMapAlgoPlot.PlottingUtil.RTOD,f=new SuperMapAlgoPlot.Point(-.2*a,.05*a),y=new SuperMapAlgoPlot.Point(-.2*a,-.05*a),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,f,h),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,y,h);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[S,A,M],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});var b=new SuperMapAlgoPlot.Point(.6*a,0),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u,b,h),m=.4*a*this.scaleValues[5],v=.4*a*this.scaleValues[6],O=new SuperMapAlgoPlot.Point(0,-.9*(m-.25*v)),U=new SuperMapAlgoPlot.Point(0,.9*(m-.25*v)),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,O,h),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,U,h);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[L,w]);var _=.7*m,V=new SuperMapAlgoPlot.Point(0,-1.1*(m-.1*v)),T=new SuperMapAlgoPlot.Point(0,1.1*(m-.1*v)),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,V,h),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,T,h);if(this.subSymbols.length>0){for(var C=0;C<this.subSymbols.length;C++)if(null!==this.subSymbols[C].symbolData)for(var j=0;j<this.subSymbols[C].symbolData.innerCells.length;j++)34===this.subSymbols[C].symbolData.innerCells[j].type&&this.subSymbols[C].symbolData.innerCells.splice(j,1);this.computeSubSymbol(this.subSymbols[0],E,_,g-90),this.computeSubSymbol(this.subSymbols[1],x,_,g-90)}this.addScalePoint(s,0),this.addScalePoint(S,1);var Y=new SuperMapAlgoPlot.Point(0,-m);SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,Y,h);this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);var n,a,r,s,p,u,P=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(P=SuperMapAlgoPlot.PlottingUtil.clearSamePts(P),0===t){for(var c=[],g=0;g<P.length;g++)c.push(new SuperMapAlgoPlot.Point(P[g].x,P[g].y));for(var S=-1,h=0,f=new SuperMapAlgoPlot.Point(0,0),y=0;y<c.length-1;y++){var A=[];A.push(c[y]),A.push(c[y+1]);var M=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,c[y],c[y+1]);if(-1!==SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(M,A).index){var b=SuperMapAlgoPlot.PlottingUtil.distance(e,M);-1==S?(S=y,f=M,h=b):h>b&&(S=y,f=M,h=b)}}if(-1==S||S>c.length-1)return;n=0;for(var d=0;d<S;d++)n+=SuperMapAlgoPlot.PlottingUtil.distance(P[d],P[d+1]);if((n+=SuperMapAlgoPlot.PlottingUtil.distance(P[S],f))<0||n>o)return;var m=n/o;this.scaleValues[0]=m}else if(1===t){a=o*this.scaleValues[0];var v=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(P,a);if(-1===v.index)return;r=v.pt,s=P[v.index],p=P[v.index+1],u=SuperMapAlgoPlot.PlottingUtil.radian(s,p);var O=SuperMapAlgoPlot.PlottingUtil.radian(r,e)-u;this.scaleValues[1]=O;var U=(n=SuperMapAlgoPlot.PlottingUtil.distance(r,e))/o/1.5;this.scaleValues[2]=U}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol50321=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5032004=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.05)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o);var i=e*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI;if(!this.isEdit){var a=this.getSubSymbolScaleValue();this.scaleValues[2]=a}var r=e*this.scaleValues[2],s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==s.index){var p=s.pt,u=new SuperMapAlgoPlot.Point(o[s.index].x,o[s.index].y),P=new SuperMapAlgoPlot.Point(o[s.index+1].x,o[s.index+1].y),c=180*SuperMapAlgoPlot.PlottingUtil.radian(u,P)/Math.PI,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,r,r,c+n);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[p,g]);var S=180*SuperMapAlgoPlot.PlottingUtil.radian(p,g)/Math.PI,h=new SuperMapAlgoPlot.Point(-.2*r,.05*r),f=new SuperMapAlgoPlot.Point(-.2*r,-.05*r),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(g,h,S),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(g,f,S);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[g,y,A],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});var M=.5*SuperMapAlgoPlot.PlottingUtil.distance(p,g);h=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,M,M,c+n+30),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,M,M,c+n-30);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[h,f]),this.addScalePoint(p,0),this.addScalePoint(g,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){for(var a=-1,r=0,s=new SuperMapAlgoPlot.Point(0,0),p=0;p<o.length-1;p++){var u=[];u.push(o[p]),u.push(o[p+1]);var P=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,o[p],o[p+1]);if(-1!==SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(P,u).index){var c=SuperMapAlgoPlot.PlottingUtil.distance(e,P);-1==a?(a=p,s=P,r=c):r>c&&(a=p,s=P,r=c)}}if(-1==a||a>o.length-1)return;i=0;for(var g=0;g<a;g++)i+=SuperMapAlgoPlot.PlottingUtil.distance(o[g],o[g+1]);if((i+=SuperMapAlgoPlot.PlottingUtil.distance(o[a],s))<0||i>n)return;var S=i/n;this.scaleValues[0]=S}else if(1===t){var h=n*this.scaleValues[0],f=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,h);if(-1===f.index)return;var y=f.pt,A=o[f.index],M=o[f.index+1],b=SuperMapAlgoPlot.PlottingUtil.radian(A,M),d=SuperMapAlgoPlot.PlottingUtil.radian(y,e)-b;this.scaleValues[1]=d;var m=(i=SuperMapAlgoPlot.PlottingUtil.distance(y,e))/n;this.scaleValues[2]=m}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5032004=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5032003=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(90),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.05)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[2]=2*o}var i=l*this.scaleValues[0],n=this.scaleValues[1],a=l*this.scaleValues[2],r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,e);if(r.bfind){var s=r.pts.clone(),p=e[r.index].clone(),u=e[r.index+1].clone(),P=SuperMapAlgoPlot.PlottingUtil.radian(p,u)*SuperMapAlgoPlot.PlottingUtil.RTOD,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,a,a,P+n),g=[];g.push(r.pts),g.push(c);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,{lineTypeLimit:!0,surroundLineLimit:!0});var S=SuperMapAlgoPlot.PlottingUtil.radian(s,c)*SuperMapAlgoPlot.PlottingUtil.RTOD,h=new SuperMapAlgoPlot.Point(-.2*a,.05*a),f=new SuperMapAlgoPlot.Point(-.2*a,-.05*a),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,h,S),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,f,S),M=[];M.push(c),M.push(y),M.push(A);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,{lineTypeLimit:!0,surroundLineLimit:!0,fillLimit:!0,fill:!0});var b=.3*a,d=.6*a,m=i-d;m<0&&(m=0);var v=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(m,e);if(v.bfind){var O=[];O.push(v.pts);for(var U=v.index;U>=0;U--)O.push(e[U]);var L=[];L.push(v.pts);for(var w=v.index+1;w<e.length;w++)L.push(e[w]);var _=.6*b,V=[];if(O.length>1){var T=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(_,O);if(T.bfind){(V=[]).push(T.pts);for(var E=T.index+1;E<O.length;E++)V.push(O[E]);O=[],V.length>1&&(O=O.concat(V))}}if(O.length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,O),L.length>1){var x=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(_,L);if(x.bfind){(V=[]).push(x.pts);for(var C=x.index+1;C<L.length;C++)V.push(L[C]);L=[],V.length>1&&(L=L.concat(V))}}var j=i+d;j>l&&(j=l),j=l-j;for(var Y=[],I=L.length-1;I>=0;I--)Y.push(L[I]);var R=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(j,Y);if(R.bfind){var B=[];B.push(R.pts);for(var N=R.index;N>=0;N--)B.push(Y[N]);var D=[];D.push(R.pts);for(var k=R.index+1;k<Y.length;k++)D.push(Y[k]);if(B.length>1){var z=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(_,B);if(z.bfind){(V=[]).push(z.pts);for(var F=z.index+1;F<B.length;F++)V.push(B[F]);B=[],V.length>1&&(B=B.concat(V))}}if(B.length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,B),D.length>1){var G=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(_,D);if(G.bfind){(V=[]).push(G.pts);for(var W=G.index+1;W<D.length;W++)V.push(D[W]);D=[],V.length>1&&(D=D.concat(V))}}if(D.length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,D),this.subSymbols.length>0){if(null!==this.subSymbols[0].symbolData)for(var J=0;J<this.subSymbols[0].symbolData.innerCells.length;J++)34===this.subSymbols[0].symbolData.innerCells[J].type&&this.subSymbols[0].symbolData.innerCells.splice(J,1);this.computeSubSymbol(this.subSymbols[0],v.pts,1.2*b,P-90),this.computeSubSymbol(this.subSymbols[1],R.pts,1.2*b,P-90)}this.addScalePoint(r.pts,0),this.addScalePoint(c,1),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;if(0>t||1<t)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){for(var n=[],a=0;a<o.length;a++)n.push(o[a]);for(var r=-1,s=new SuperMapAlgoPlot.Point(0,0),p=0,u=0;u<n.length-1;u++){var P=[];P.push(n[u]),P.push(n[u+1]);var c=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,n[u],n[u+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(c,P).isOnPolyLine){var g=SuperMapAlgoPlot.PlottingUtil.distance(e,c);-1===r?(r=u,s=c,p=g):p>g&&(r=u,s=c,p=g)}}if(-1===r||r>n.length-1)return;for(var S=0,h=0;h<r;h++){var f=o[h].clone(),y=o[h+1].clone();S+=SuperMapAlgoPlot.PlottingUtil.distance(f,y)}var A=o[r].clone();if((S+=SuperMapAlgoPlot.PlottingUtil.distance(A,s))<0||S>i)return;this.scaleValues[0]=S/i}if(1===t){var M=i*this.scaleValues[0],b=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(M,o);if(!b.bfind)return;var d=b.pts.clone(),m=new SuperMapAlgoPlot.Point(o[b.index].x,o[b.index].y),v=new SuperMapAlgoPlot.Point(o[b.index+1].x,o[b.index+1].y),O=SuperMapAlgoPlot.PlottingUtil.radian(m,v)*SuperMapAlgoPlot.PlottingUtil.RTOD,U=SuperMapAlgoPlot.PlottingUtil.radian(d,e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[1]=U-O;var L=SuperMapAlgoPlot.PlottingUtil.distance(d,e);this.scaleValues[2]=L/i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5032003=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5031401=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 l=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===l.scaleValues.length&&l.scaleValues.push(1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),l=e*this.scaleValues[0],o=.1*l,i=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],o),n=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(l/2,t[0],i),a=n.pntRight,r=n.pntLeft,s=[];s.push(a),s.push(t[0]),s.push(r);var p=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(s);p=SuperMapAlgoPlot.PlottingUtil.clearSamePts(p);var u={lineColorLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0,strokeColor:"#0000ff",color:"#0000ff",surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,u);var P=SuperMapAlgoPlot.PlottingUtil.paraLine(s,e,!1),c=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(P);c=SuperMapAlgoPlot.PlottingUtil.clearSamePts(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,u),this.addScalePoint(a,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0===t){var i=2*SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o;i<.4&&(i=.4),this.scaleValues[0]=i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5031401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5030301=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=180*SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI,r=SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,.8*r,a);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var P=i.endIndex+1;P<=e.length-1;P++)p.push(e[P]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p)}var c=e[0],g=e[1],S=e[e.length-2],h=e[e.length-1],f=.3*r,y=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(f,g,c),A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(f,S,h),M=y.pntLeft,b=A.pntLeft,d=[];d.push(c),d.push(M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d);var m=[];m.push(h),m.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,m);var v=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,e),O=SuperMapAlgoPlot.PlottingUtil.circlePoint(v.pts,l*this.scaleValues[0],l*this.scaleValues[0],a+90);this.addScalePoint(O,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5030301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5030107=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 l=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 l.MIN_GEOPT_COUNT=2,l.MAX_GEOPT_COUNT=1024,l.SV1_defaultATLenDivABLen=0,l.SV2_defaultAYPosScale=.65,l.SV_AJCtrl=.6,l.SV_ArrowWoCtrl=.6,l.SV2_DefaultAJWidDiviedByATLen=.148,l.SV3_DefaultAEWidDividedByATLen=.4,l.SV4_DefaultAELenDividedByATLen=.3,l.SV_ATScaleParameter=1.25,l.SV_ATLenDividedByATWid=1.35,l.SV_ATWidDividedByArrowWeiWid=.5,l.AB_VERTEX_COUNT=4,l.MIN_PTCOUNT_PERARROW=3,l.ATL_DIV_AWW=.7,l.ATL_DIV_ABL=.12,l.ATL_DIV_ABL_1=.18,l.DEFAULT_ARROW_TAIL_POS=.12,l.DUOJIANTOU_TAIL_RATE_1=8,l.DUOJIANTOU_TAIL_RATE_2=3,l.DUOJIANTOU_TAIL_RATE_3=.6,l.AB_CTRLPT_RATE1=0,l.AB_CTRLPT_RATE2=3,l.AB_CTRLPT_RATE3=.5,l.MIN_SCALEVALUE=.1,l.MAX_SCALEVALUE=1,l.m_scalePoints=[],l.CLASS_NAME="SuperMapAlgoPlot.AlgoSymbol5030107",l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),this.m_scalePoints=[];var t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(this.controlPoints);if((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=this.operateCtrlPts(t),l=e.length,o=Math.floor(l/this.MIN_PTCOUNT_PERARROW),i=this.scaleValues.length;if(i<2*o-1){0===i&&(this.scaleValues.push(this.SV1_defaultATLenDivABLen),i++);for(var n=2*o-1-i,a=0;a<n;a+=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*o-1){for(var r=0;r<o;r++)this.scaleValues.push(this.SV1_defaultATLenDivABLen);for(var s=0;s<o-1;s++)this.scaleValues.push(this.SV2_defaultAYPosScale)}var p=this.arrowMeshs(e);SuperMapAlgoPlot.PlottingUtil.clearSamePts(p.shapePts);for(var u=[],P=[],c=0;c<o;c++){var g=p.arrLeftPts2D[c],S=SuperMapAlgoPlot.PlottingUtil.polylineDistance(g),h=[],f=[],y=[],A=[];if(0===c){for(var M=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.4*S,p.arrLeftPts2D[c]),b=0;b<=M.index;b++)f.push(p.arrLeftPts2D[c][b]);for(var d=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.45*S,p.arrLeftPts2D[c]),m=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.9*S,p.arrLeftPts2D[c]),v=d.index;v<=m.index;v++)y.push(p.arrLeftPts2D[c][v]);for(var O=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.95*S,p.arrLeftPts2D[c]).index;O<p.arrLeftPts2D[c].length;O++)A.push(p.arrLeftPts2D[c][O]);h.push(f),h.push(y),h.push(A)}else{M=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.025*S,p.arrLeftPts2D[c]),d=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.85*S,p.arrLeftPts2D[c]);for(var U=M.index;U<=d.index;U++)f.push(p.arrLeftPts2D[c][U]);for(var L=(m=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.9*S,p.arrLeftPts2D[c])).index;L<p.arrLeftPts2D[c].length;L++)y.push(p.arrLeftPts2D[c][L]);h.push(f),h.push(y)}u.push(h);var w=[],_=p.arrRightPts2D[c],V=SuperMapAlgoPlot.PlottingUtil.polylineDistance(_),T=[],E=[],x=[];if(c===o-1){for(var C=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.1*V,p.arrRightPts2D[c]),j=0;j<C.index;j++)T.push(p.arrRightPts2D[c][j]);for(var Y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.15*V,p.arrRightPts2D[c]),I=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.6*V,p.arrRightPts2D[c]),R=Y.index;R<=I.index;R++)E.push(p.arrRightPts2D[c][R]);for(var B=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.65*V,p.arrRightPts2D[c]).index;B<p.arrRightPts2D[c].length;B++)x.push(p.arrRightPts2D[c][B]);w.push(T),w.push(E),w.push(x)}else{C=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.15*V,p.arrRightPts2D[c]);for(var N=0;N<C.index;N++)T.push(p.arrRightPts2D[c][N]);Y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.175*V,p.arrRightPts2D[c]),I=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.975*V,p.arrRightPts2D[c]);for(var D=Y.index;D<=I.index;D++)E.push(p.arrRightPts2D[c][D]);w.push(T),w.push(E)}P.push(w)}for(var k=0;k<o;k++){for(var z=0;z<u[k].length-1;z++){var F=u[k][z];this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,F)}var G=[];for(O=0;O<u[k][u[k].length-1].length;O++)G.push(u[k][u[k].length-1][O]);for(O=0;O<p.arrHeadPts2D[k].length;O++)G.push(p.arrHeadPts2D[k][O]);for(O=0;O<P[k][0].length;O++)G.push(P[k][0][O]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,G);for(var W=1;W<P[k].length;W++){var J=P[k][W];this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,J)}}this.scalePoints=[];for(var K=0;K<this.m_scalePoints.length;K++)this.m_scalePoints[K].isScalePoint=!0,this.m_scalePoints[K].tag=K,this.addScalePoint(this.m_scalePoints[K]);this.finish()}}},{key:"arrowMeshs",value:function(t){for(var e=[],l=[],o=[],i=new SuperMapAlgoPlot.Path2D,n=t.length,a=Math.floor(n/this.MIN_PTCOUNT_PERARROW),r=this.generateAWWidth(a,t),s=[],p=[],u=0,P=0,c=0,g=[],S=0,h=0;S<a;S++,h+=this.MIN_PTCOUNT_PERARROW){g[0]=t[h],g[1]=t[h+1],g[2]=t[h+2],u=this.scaleValues[S];var f=this.generateArrowBodyPts(g,r[S],u);u=f.dATLenDivABLen,s[S]=f.arrowBodyPts,p.push(u)}for(var y=[],A=0,M=0,b=0,d=[],m=[],v=0;v<a-1;v++,M+=this.MIN_PTCOUNT_PERARROW){b=M+this.MIN_PTCOUNT_PERARROW,d[0]=t[M],d[1]=t[M+1],d[2]=t[M+2],m[0]=t[b],m[1]=t[b+1],m[2]=t[b+2],A=this.scaleValues[a+v];var O=this.generateAYPts(d,s[v],m,s[v+1],A);y.push(O.arrowLeftYaoPts),y.push(O.arrowRightYaoPts)}var U=[],L=s[0],w=[],_=0,V=[];i.MoveTo(L[0]),i.CurveTo(L[1],L[2],L[3]),i.CurveTo(L[4],L[5],L[6]),i.ToSubPathPolygons(w),e.push(w[0]),_=w[0].length;for(var T=7;T<10;T++)i.LineTo(L[T]);for(w=[],i.ToSubPathPolygons(w);_<w[0].length;_++)V.push(w[0][_]);for(o.push(V),U.push(L[0]),U.push(t[0]),P=1,c=this.MIN_PTCOUNT_PERARROW;P<a;P++,c+=this.MIN_PTCOUNT_PERARROW){var E=s[P],x=P+P-2,C=y[x];for(i.LineTo(C[0]),i.CurveTo(C[1],C[2],C[3]),w=[],V=[],i.ToSubPathPolygons(w);_<w[0].length;_++)V.push(w[0][_]);l.push(V);var j=y[x+1];for(i.CurveTo(j[1],j[2],j[3]),w=[],V=[],i.ToSubPathPolygons(w);_<w[0].length;_++)V.push(w[0][_]);e.push(V);for(var Y=7;Y<10;Y++)i.LineTo(E[Y]);for(w=[],V=[],i.ToSubPathPolygons(w);_<w[0].length;_++)V.push(w[0][_]);o.push(V),U.push(t[c].clone())}var I=s[a-1];for(i.LineTo(I[10]),i.CurveTo(I[11],I[12],I[13]),i.CurveTo(I[14],I[15],I[16]),w=[],V=[],i.ToSubPathPolygons(w);_<w[0].length;_++)V.push(w[0][_]);l.push(V),U.push(I[16]);var R=[];return i.ToSubPathPolygons(R),{shapePts:R[0],arrLeftPts2D:e,arrRightPts2D:l,arrHeadPts2D:o}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var l=this.operateCtrlPts(this.controlPoints),o=l.length,i=Math.floor(o/this.MIN_PTCOUNT_PERARROW),n=0;if(t<i){var a=[],r=t*this.MIN_PTCOUNT_PERARROW;a[0]=l[r],a[1]=l[r+1],a[2]=l[r+2];var s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(a),p=new SuperMapAlgoPlot.Point(0,0),u=new SuperMapAlgoPlot.Point(0,0),P=new SuperMapAlgoPlot.Point(0,0);SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,a[0],a[1],a[2],p,u),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,a[2],a[1],u,P),n=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(a[2],P,e).dLen1/(this.SV4_DefaultAELenDividedByATLen+1)/s}else{var c=[],g=[],S=(t-i)*this.MIN_PTCOUNT_PERARROW;c[0]=l[S],c[1]=l[S+1],c[2]=l[S+2];var h=(t-i+1)*this.MIN_PTCOUNT_PERARROW;g[0]=l[h],g[1]=l[h+1],g[2]=l[h+2];var f=new SuperMapAlgoPlot.Point(0,0),y=new SuperMapAlgoPlot.Point(0,0),A=new SuperMapAlgoPlot.Point(0,0);f.x=.5*(c[2].x+g[2].x),y.x=.5*(c[1].x+g[1].x),A.x=.5*(c[0].x+g[0].x),f.y=.5*(c[2].y+g[2].y),y.y=.5*(c[1].y+g[1].y),A.y=.5*(c[0].y+g[0].y);var M=SuperMapAlgoPlot.PlottingUtil.distance(f,y),b=SuperMapAlgoPlot.PlottingUtil.distance(A,y),d=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(f,y,e),m=d.dLen1;n=m<M?m/(M+b):((m=(d=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(y,A,e)).dLen1)+M)/(M+b)}n>this.MAX_SCALEVALUE?n=this.MAX_SCALEVALUE:n<this.MIN_SCALEVALUE&&(n=this.MIN_SCALEVALUE),this.scaleValues[t]=n}this.calculateParts()}},{key:"operateCtrlPts",value:function(t){var e=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),l=e.length,o=Math.floor(l/this.MIN_PTCOUNT_PERARROW),i=l%this.MIN_PTCOUNT_PERARROW,n=new SuperMapAlgoPlot.Point;if(2===i&&(n.x=.5*(e[l-2].x+e[l-1].x),n.y=.5*(e[l-2].y+e[l-1].y),n.x===e[l-1].x&&n.y===e[l-1].y||(e.push(e[l-1].clone()),e[l-1]=n,l++,o++)),l>3)for(var a=o-1,r=0,s=a;r<a;s--,r++)for(var p=s*this.MIN_PTCOUNT_PERARROW,u=0;u<p;u+=this.MIN_PTCOUNT_PERARROW){if(!SuperMapAlgoPlot.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:"generateArrowBodyPts",value:function(t,e,l){var o=[],i=[],n=[],a=[],r=[],s=[],p=[],u=t.length-1;if(u<2)return{dATLenDivABLen:l=0,arrowBodyPts:o};var P=l,c=this.SV2_DefaultAJWidDiviedByATLen,g=this.SV3_DefaultAEWidDividedByATLen,S=this.SV4_DefaultAELenDividedByATLen,h=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),f=SuperMapAlgoPlot.PlottingUtil.polylineDistance(h),y=0===e?f*this.ATL_DIV_ABL_1:(f+e)*this.ATL_DIV_ABL,A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(y,h[1],h[0]);i[1]=A.pntLeft.clone(),n[1]=A.pntRight.clone();var M=0;M=SuperMapAlgoPlot.PlottingUtil.equalFuzzy(P,0,1e-14)?y*this.ATL_DIV_AWW:f*P;var b=SuperMapAlgoPlot.PlottingUtil.distance(h[1],h[2]);M+M>b&&(M=.5*b);var d=M*c;h.push(h[u].clone());var m,v=0;m=f-M;var O=[],U=0;for(U=2;U<=u;U++)v+=SuperMapAlgoPlot.PlottingUtil.distance(h[U-1],h[U-2]),SuperMapAlgoPlot.PlottingUtil.equalFuzzy(m,0,1e-14)?O[U]=0:SuperMapAlgoPlot.PlottingUtil.equalFuzzy(m-v,0,1e-14)?O[U]=d:O[U]=d+(y-d)*Math.pow((m-v)/m,this.SV_ATScaleParameter);O[u+1]=d;var L=new SuperMapAlgoPlot.Point(0,0),w=new SuperMapAlgoPlot.Point(0,0),_=new SuperMapAlgoPlot.Point(0,0);for(U=2;U<=u;U++){SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,h[U-2],h[U-1],h[U],w,_),u===U&&SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,h[u],h[u-1],_,L);var V=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(O[U],w,h[U-1]);n[U]=V.pntLeft,i[U]=V.pntRight}var T,E,x=L.clone();if(SuperMapAlgoPlot.PlottingUtil.distance(h[u],x)>0){var C=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(M,h[u],L);h[u]=C.clone()}for(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,h[u+1],h[u]),i[u+1]=A.pntLeft,n[u+1]=A.pntRight,U=2;U<=u;U++)SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,i[U-1],i[U],i[U+1],w,_),a[U]=w.clone(),r[U]=_.clone(),SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,n[U-1],n[U],n[U+1],w,_),s[U]=w.clone(),p[U]=_.clone();SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,i[1],i[2],a[2],L),r[1]=L.clone(),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,n[1],n[2],s[2],L),p[1]=L.clone();E=SuperMapAlgoPlot.PlottingUtil.distance(i[u+1],i[u])*(1/3),(T=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(E,h[u],h[u+1])).x+=i[u+1].x-h[u].x,T.y+=i[u+1].y-h[u].y,E=(y-d)*Math.pow(E/m,this.SV_ATScaleParameter+.3),A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(E,i[u+1],T),a[u+1]=A.pntLeft.clone(),E=SuperMapAlgoPlot.PlottingUtil.distance(n[u+1],n[u])*(1/3),(T=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(E,h[u],h[u+1])).x+=n[u+1].x-h[u].x,T.y+=n[u+1].y-h[u].y,E=(y-d)*Math.pow(E/m,this.SV_ATScaleParameter+.3),A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(E,n[u+1],T),s[u+1]=A.pntRight.clone();var j=[],Y=M*S,I=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(Y,h[u],h[u+1]);this.m_scalePoints.push(I.clone()),Y=M*g,A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(Y,h[u+1],I),j.push(A.pntRight),j.push(h[u+1]),j.push(A.pntLeft);var R=[];for(R.push(i[u+1]),U=u;U>=1;U--)R.push(a[U+1]),R.push(r[U]),R.push(i[U]);var B=[];for(U=1;U<=u;U++)B.push(n[U]),B.push(p[U]),B.push(s[U+1]);B.push(n[u+1]),o.push.apply(o,B),o.push.apply(o,j),o.push.apply(o,R),l=M/f;var N=[];for(U=R.length-1;U>=0;U--)N.push(R[U]);return{dATLenDivABLen:l,arrowBodyPts:o}}},{key:"generateAYPts",value:function(t,e,l,o,i){var n=new SuperMapAlgoPlot.Point(.5*(t[2].x+l[2].x),.5*(t[2].y+l[2].y)),a=new SuperMapAlgoPlot.Point(.5*(t[1].x+l[1].x),.5*(t[1].y+l[1].y)),r=new SuperMapAlgoPlot.Point(.5*(t[0].x+l[0].x),.5*(t[0].y+l[0].y)),s=SuperMapAlgoPlot.PlottingUtil.distance(n,a),p=SuperMapAlgoPlot.PlottingUtil.distance(r,a),u=i*(s+p),P=new SuperMapAlgoPlot.Point(0,0),c=new SuperMapAlgoPlot.Point(0,0),g=new SuperMapAlgoPlot.Point(0,0);if(u>s){u=s+p-u,P=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(u,r,a);var S=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[0]),h=SuperMapAlgoPlot.PlottingUtil.distance(l[1],l[0]);S=S*u/p,c=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(S,t[0],t[1]),h=h*u/p,g=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(h,l[0],l[1])}else{P=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(u,n,a);var f=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[2]),y=SuperMapAlgoPlot.PlottingUtil.distance(l[1],l[2]);f=f*u/s,c=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(f,t[2],t[1]),y=y*u/s,g=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(y,l[2],l[1])}this.m_scalePoints.push(P.clone());var A=this.SV_ArrowWoCtrl*SuperMapAlgoPlot.PlottingUtil.distance(P,c),M=this.SV_ArrowWoCtrl*SuperMapAlgoPlot.PlottingUtil.distance(P,g),b=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(A,P,c),d=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(M,P,g),m=e[11].clone(),v=e[10].clone(),O=o[5].clone(),U=o[6].clone(),L=SuperMapAlgoPlot.PlottingUtil.intersectLines(v,m,P,c),w=SuperMapAlgoPlot.PlottingUtil.distance(L.intersectPoint,v),_=SuperMapAlgoPlot.PlottingUtil.distance(v,P);w=w>_?this.SV_AJCtrl*_:this.SV_AJCtrl*w;var V=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(w,v,m);m=V.clone(),e[11]=V.clone(),L=SuperMapAlgoPlot.PlottingUtil.intersectLines(U,O,P,g),w=(w=SuperMapAlgoPlot.PlottingUtil.distance(L.intersectPoint,U))>(_=SuperMapAlgoPlot.PlottingUtil.distance(U,P))?this.SV_AJCtrl*_:this.SV_AJCtrl*w,O=(V=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(w,U,O)).clone(),o[5]=V.clone();var T=[];T.push(v),T.push(m),T.push(b),T.push(P);var E=[];return E.push(P),E.push(d),E.push(O),E.push(U),{arrowLeftYaoPts:T,arrowRightYaoPts:E}}},{key:"generateAWWidth",value:function(t,e){var l=[];if(t>0)if(1==t)l.push(0);else{var o=SuperMapAlgoPlot.PlottingUtil.distance(e[0],e[this.MIN_PTCOUNT_PERARROW]);l.push(o);for(var i=1,n=this.MIN_PTCOUNT_PERARROW;i<t-1;i++,n+=this.MIN_PTCOUNT_PERARROW){o=.5*(SuperMapAlgoPlot.PlottingUtil.distance(e[n-this.MIN_PTCOUNT_PERARROW],e[n])+SuperMapAlgoPlot.PlottingUtil.distance(e[n],e[n+this.MIN_PTCOUNT_PERARROW])),l.push(o)}o=SuperMapAlgoPlot.PlottingUtil.distance(e[n-this.MIN_PTCOUNT_PERARROW],e[n]),l.push(o)}return l}},{key:"addArrowTail",value:function(t,e,l,o,i){if(!(t<0)){var n=l.length;switch(o){case 0:break;case 1:i.LineTo(l[0].x,l[0].y);break;case 2:var a=new SuperMapAlgoPlot.Point(.5*(l[0].x+l[n-1].x),.5*(l[0].y+l[n-1].y)),r=new SuperMapAlgoPlot.Point(.5*(e[2].x+e[3*t-1].x),.5*(e[2].y+e[3*t-1].y)),s=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[n-1]),p=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(s*this.DEFAULT_ARROW_TAIL_POS,a,r),u=new SuperMapAlgoPlot.Point(0,0),P=new SuperMapAlgoPlot.Point(0,0);SuperMapAlgoPlot.PlottingUtil.getPointsByTriangle(this.DUOJIANTOU_TAIL_RATE_1,this.DUOJIANTOU_TAIL_RATE_2,l[0].x,l[0].y,p.x,p.y,l[n-1].x,l[n-1].y,u,P);var c=new SuperMapAlgoPlot.Point(0,0);c=SuperMapAlgoPlot.PlottingUtil.getPointsByTrapezoid(this.DUOJIANTOU_TAIL_RATE_3,l[0],p,u,c);var g=new SuperMapAlgoPlot.Point(0,0);g=SuperMapAlgoPlot.PlottingUtil.getPointsByTrapezoid(this.DUOJIANTOU_TAIL_RATE_3,l[n-1],p,P,g),i.CurveTo(g,P,p),i.CurveTo(u,c,l[0]);break;case 3:a=new SuperMapAlgoPlot.Point(.5*(l[0].x+l[n-1].x),.5*(l[0].y+l[n-1].y)),r=new SuperMapAlgoPlot.Point(.5*(e[2].x+e[3*t-1].x),.5*(e[2].y+e[3*t-1].y)),s=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[n-1]),p=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(s*this.DEFAULT_ARROW_TAIL_POS,a,r),i.LineTo(p),i.closePath()}return i}}},{key:"computeScaleValues",value:function(t,e){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)){var o=this.operateCtrlPts(l),i=(o.length,this.MIN_PTCOUNT_PERARROW,0);if(pindex<arrowCount){var n=[],a=pindex*this.MIN_PTCOUNT_PERARROW;n[0]=o[a],n[1]=o[a+1],n[2]=o[a+2];for(var r=0,s=0;s<n.length-1;s++)r+=SuperMapAlgoPlot.PlottingUtil.distance(n[s],n[s+1]);var p=new SuperMapAlgoPlot.Point(0,0),u=new SuperMapAlgoPlot.Point(0,0),P=new SuperMapAlgoPlot.Point(0,0);SuperMapAlgoPlot.PlottingUtil.getPointsByTriangle(this.AB_CTRLPT_RATE1,AB_CTRLPT_RATE2,n[0].x,n[0].y,n[1].x,n[1].y,n[2].x,n[2].y,p,u),SuperMapAlgoPlot.PlottingUtil.getPointsByTrapezoid(this.AB_CTRLPT_RATE3,n[2].x,n[2].y,n[1].x,n[1].y,u.x,u.y,P),i=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(n[2],P,posPt).dLen1/(this.SV4_DefaultAELenDividedByATLen+1)/r}else{var c=[],g=[],S=(pindex-arrowCount)*this.MIN_PTCOUNT_PERARROW;c[0]=o[S],c[1]=o[S+1],c[2]=o[S+2];var h=(pindex-arrowCount+1)*this.MIN_PTCOUNT_PERARROW;g[0]=o[h],g[1]=o[h+1],g[2]=o[h+2];var f,y,A=new SuperMapAlgoPlot.Point(.5*(c[2].x+g[2].x),.5*(c[2].y+g[2].y)),M=new SuperMapAlgoPlot.Point(.5*(c[1].x+g[1].x),.5*(c[1].y+g[1].y)),b=new SuperMapAlgoPlot.Point(.5*(c[0].x+g[0].x),.5*(c[0].y+g[0].y));f=SuperMapAlgoPlot.PlottingUtil.distance(A,M),y=SuperMapAlgoPlot.PlottingUtil.distance(b,M);var d=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(A,M,posPt);if(d.dLen1<f)i=d.dLen1/(f+y);else i=(SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(M,b,posPt).dLen1+f)/(f+y)}i>this.MAX_SCALEVALUE?i=this.MAX_SCALEVALUE:i<this.MIN_SCALEVALUE&&(i=this.MIN_SCALEVALUE),this.scaleValues[pindex]=i}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5030107=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5030105=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol1010),o(e,[{key:"calculateParts",value:function(){SuperMapAlgoPlot.AlgoSymbol1010.prototype.calculateParts.apply(this,arguments),this.components[0].style.fillStyle=0,this.components[0].style.fillLimit=!0,this.finish()}}]),e}();SuperMapAlgoPlot.AlgoSymbol5030105=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5030104=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 l=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 l.sv1_DefaultAtLenDivAbLen=0,l.sv2_DefaultAjWidthDivAtLen=.148,l.sv3_DefaultAeWidthDivAtLen=.4,l.sv4_DefaultAeLenDivAtLen=.312,l.sv_arrowTailWidth=.05,l.scaleValues=[],l}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,SuperMapAlgoPlot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);5>this.scaleValues.length&&(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),this.scaleValues.push(30));var l=e*this.scaleValues[4],o=this.scaleValues[5],i=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,n=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,i-o),a=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,i-o+180);if(SuperMapAlgoPlot.PlottingUtil.isRight(n,t[0],t[1])){var r=n;n=a,a=r}void 0!==t[0].z&&(n.z=t[0].z,a.z=t[0].z),this.controlPoints=[],this.controlPoints.push(n),this.controlPoints.push(a);for(var s=1;s<t.length;s++)this.controlPoints.push(new SuperMapAlgoPlot.Point(t[s].x,t[s].y));for(var p=[],u=0;u<this.scaleValues.length;u++)p.push(this.scaleValues[u]);this.scaleValues=[];for(var P=0;P<p.length-1;P++)this.scaleValues.push(p[P]);SuperMapAlgoPlot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var c=this.components[0];c.positionPoints.push(c.positionPoints[0]),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,c.positionPoints,{fillLimit:!0,fillStyle:0,strokeOpacity:1,opacity:1});var g=a.clone();g.isScalePoint=!0,g.tag=3,this.addScalePoint(g),this.controlPoints=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),this.scaleValues=[];for(var S=0;S<p.length;S++)this.scaleValues.push(p[S]);this.finish()}}},{key:"computeScaleValues",value:function(t,e){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)){5>this.scaleValues.length&&(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 o=l[0].clone(),i=l[1].clone(),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0!==n){var a=n*this.scaleValues[4],r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,l[1],l[0]);(l=[]).push(r.pntRight),l.push(r.pntLeft);for(var s=1;s<this.controlPoints.length;s++)l.push(new SuperMapAlgoPlot.Point(this.controlPoints[s].x,this.controlPoints[s].y));var p,u,P,c,g,S=l.length,h=this.operateCtrlPts(l);S=h.length,S--;var f=this.calcScaleValueCount(l.length);f++,this.scaleValues.length<f?(p=this.calcDefaultScaleValues()[0],u=this.calcDefaultScaleValues()[1],P=this.calcDefaultScaleValues()[2],c=this.calcDefaultScaleValues()[3],g=this.sv_arrowTailWidth):(p=this.scaleValues[0],u=this.scaleValues[1],P=this.scaleValues[2],c=this.scaleValues[3],g=this.scaleValues[4]);for(var y=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),A=[],M=0;M<this.scalePoints.length;M++)A.push(this.scalePoints[M].clone());if(0!==A.length){A[t]=e.clone();var b,d,m=S-1;b=S<=3?new SuperMapAlgoPlot.Point((h[0].x+h[1].x)/2,(h[0].y+h[1].y)/2):h[m-1].clone();var v,O,U,L,w,_,V=new SuperMapAlgoPlot.Point(0,0),T=new SuperMapAlgoPlot.Point(0,0),E=new SuperMapAlgoPlot.Point(0,0);SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(0,3,b,h[m],h[m+1],T,E),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(.5,h[S],h[S-1],E,V),d=V.clone();var x=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(h[S],d,A[2]);if(v=x.dLen1,x.dLen2,0===v&&(v=.1),O=v,p=(v/=c+1)/y,1===t)L=(x=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(h[S],d,A[1])).dLen1,P=(w=x.dLen2)/v,c=(L-v)/v;else if(0===t)v=(x=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(h[S],d,A[0])).dLen1,u=(U=x.dLen2)/v,(_=SuperMapAlgoPlot.PlottingUtil.distance(h[S],h[S-1]))<2*v&&(v=.5*_),L=(x=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(h[S],d,A[1])).dLen1,P=(w=x.dLen2)/v,(c=(O-v)/v)<.1&&(P=w/(v=O/(1+(c=.1))),u=U/v),p=v/y;else if(2===t)p=v/y;else if(3===t){g=(a=SuperMapAlgoPlot.PlottingUtil.distance(e,o))/n;var C=SuperMapAlgoPlot.PlottingUtil.dirAngle(o,e)*SuperMapAlgoPlot.PlottingUtil.RTOD,j=SuperMapAlgoPlot.PlottingUtil.dirAngle(o,i)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[5]=j-C}U=v*u,(_=SuperMapAlgoPlot.PlottingUtil.distance(h[S],h[S-1]))<2*v&&(U=(v=.5*_)*u,p=v/y),this.scaleValues[0]=p,this.scaleValues[1]=u,this.scaleValues[2]=P,this.scaleValues[3]=c,this.scaleValues[4]=g}}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5030104=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5030103=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 l=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 l.sv1_DefaultAtLenDivAbLen=0,l.sv2_DefaultAjWidthDivAtLen=.148,l.sv3_DefaultAeWidthDivAtLen=.4,l.sv4_DefaultAeLenDivAtLen=.312,l.sv_arrowTailWidth=.05,5!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(l.sv1_DefaultAtLenDivAbLen),l.scaleValues.push(l.sv2_DefaultAjWidthDivAtLen),l.scaleValues.push(l.sv3_DefaultAeWidthDivAtLen),l.scaleValues.push(l.sv4_DefaultAeLenDivAtLen),l.scaleValues.push(l.sv_arrowTailWidth)),l}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,SuperMapAlgoPlot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);5>this.scaleValues.length&&(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=e*this.scaleValues[4],o=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(l,t[1],t[0]);void 0!==t[0].z&&(o.pntLeft.z=t[0].z,o.pntRight.z=t[0].z),this.controlPoints=[],this.controlPoints.push(o.pntLeft),this.controlPoints.push(o.pntRight);for(var i=1;i<t.length;i++)this.controlPoints.push(new SuperMapAlgoPlot.Point(t[i].x,t[i].y));for(var n=[],a=0;a<this.scaleValues.length;a++)n.push(this.scaleValues[a]);this.scaleValues=[];for(var r=0;r<n.length-1;r++)this.scaleValues.push(n[r]);SuperMapAlgoPlot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);for(var s=this.components[0],p=[],u=0;u<s.positionPoints.length;u++)p.push(s.positionPoints[u]);p.push(s.positionPoints[0]),s.positionPoints.push(s.positionPoints[0]),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,s.positionPoints,{fillLimit:!0,fillStyle:0,strokeOpacity:1,opacity:1});var P=o.pntRight.clone();P.isScalePoint=!0,P.tag=3,this.addScalePoint(P),this.controlPoints=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),this.scaleValues=[];for(var c=0;c<n.length;c++)this.scaleValues.push(n[c]);this.finish()}}},{key:"computeScaleValues",value:function(t,e){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)){5>this.scaleValues.length&&(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 o=l[0].clone(),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0!==i){var n=i*this.scaleValues[4],a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,l[1],l[0]);(l=[]).push(a.pntRight),l.push(a.pntLeft);for(var r=1;r<this.controlPoints.length;r++)l.push(new SuperMapAlgoPlot.Point(this.controlPoints[r].x,this.controlPoints[r].y));var s,p,u,P,c,g=l.length,S=this.operateCtrlPts(l);g=S.length,g--;var h=this.calcScaleValueCount(l.length);h++,this.scaleValues.length<h?(s=this.calcDefaultScaleValues()[0],p=this.calcDefaultScaleValues()[1],u=this.calcDefaultScaleValues()[2],P=this.calcDefaultScaleValues()[3],c=this.sv_arrowTailWidth):(s=this.scaleValues[0],p=this.scaleValues[1],u=this.scaleValues[2],P=this.scaleValues[3],c=this.scaleValues[4]);for(var f=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),y=[],A=0;A<this.scalePoints.length;A++)y.push(this.scalePoints[A].clone());if(0!==y.length){y[t]=e.clone();var M,b,d=g-1;M=g<=3?new SuperMapAlgoPlot.Point((S[0].x+S[1].x)/2,(S[0].y+S[1].y)/2):S[d-1].clone();var m,v,O,U,L,w,_=new SuperMapAlgoPlot.Point(0,0),V=new SuperMapAlgoPlot.Point(0,0),T=new SuperMapAlgoPlot.Point(0,0);SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(0,3,M,S[d],S[d+1],V,T),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(.5,S[g],S[g-1],T,_),b=_.clone();var E=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(S[g],b,y[2]);if(m=E.dLen1,E.dLen2,0===m&&(m=.1),v=m,s=(m/=P+1)/f,1===t)U=(E=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(S[g],b,y[1])).dLen1,u=(L=E.dLen2)/m,P=(U-m)/m;else if(0===t)m=(E=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(S[g],b,y[0])).dLen1,p=(O=E.dLen2)/m,(w=SuperMapAlgoPlot.PlottingUtil.distance(S[g],S[g-1]))<2*m&&(m=.5*w),U=(E=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(S[g],b,y[1])).dLen1,u=(L=E.dLen2)/m,(P=(v-m)/m)<.1&&(u=L/(m=v/(1+(P=.1))),p=O/m),s=m/f;else if(2===t)s=m/f;else{c=SuperMapAlgoPlot.PlottingUtil.distance(e,o)/i}O=m*p,(w=SuperMapAlgoPlot.PlottingUtil.distance(S[g],S[g-1]))<2*m&&(O=(m=.5*w)*p,s=m/f),this.scaleValues[0]=s,this.scaleValues[1]=p,this.scaleValues[2]=u,this.scaleValues[3]=P,this.scaleValues[4]=c}}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5030103=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5022301=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){4>this.scaleValues.length&&(this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=1.5*this.getDefaultSubSymbolSize();this.subSymbolScaleValue=i/o,this.subSymbolScaleValue>.2&&(this.subSymbolScaleValue=.2),this.scaleValues[0]=this.subSymbolScaleValue}var n=this.scaleValues[0],a=this.scaleValues[2],r=this.scaleValues[3],s=o*n,p=new SuperMapAlgoPlot.Point(l.x+o*a,l.y+o*r);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,o*n,0);for(var u=0;u<this.components.length;u++)this.components[u].style.strokeColor="#0000FF",this.components[u].style.lineColorLimit=!0,this.components[u].style.strokeOpacity=1,this.components[u].style.color="#0000FF",this.components[u].style.opacity=1;this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e),this.addScalePoint(p);var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,s,s,90);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),a=0,r=0;if(0===t)a=(e.x-i.x)/n,this.scaleValues[2]=a,r=(e.y-i.y)/n,this.scaleValues[3]=r;else if(1===t){a=this.scaleValues[2],r=this.scaleValues[3];var s=new SuperMapAlgoPlot.Point(i.x+n*a,i.y+n*r),p=SuperMapAlgoPlot.PlottingUtil.distance(s,e);this.scaleValues[0]=p/n}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5022301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5022002=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.05),l.scaleValues.push(90)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.5),this.scaleValues.push(.05),this.scaleValues.push(90));var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[1]=o}var i=this.scaleValues[0],n=this.scaleValues[1],a=this.scaleValues[2],r=l*i,s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,e);if(s.bfind){var p=s.index,u=s.pts,P=n*l,c=u,g=new SuperMapAlgoPlot.Point(P,-.5*P),S=new SuperMapAlgoPlot.Point(P,.5*P),h=new SuperMapAlgoPlot.Point(-P,.5*P),f=new SuperMapAlgoPlot.Point(-P,-.5*P),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,g,a),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,S,a),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,h,a),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,f,a);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[y,A,M,b,y]);var d=new SuperMapAlgoPlot.Point(.5*P,.5*P),m=new SuperMapAlgoPlot.Point(.5*P,-.5*P),v=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,m,a),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,d,a);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[v,O]);var U=new SuperMapAlgoPlot.Point(0,.5*P),L=new SuperMapAlgoPlot.Point(0,-.5*P),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,U,a),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,L,a);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[w,_]);var V=new SuperMapAlgoPlot.Point(P,0),T=new SuperMapAlgoPlot.Point(2*P,0),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,V,a),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,T,a);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[E,x]);var C=new SuperMapAlgoPlot.Point(2*P,.15*P),j=new SuperMapAlgoPlot.Point(2*P,-.15*P),Y=new SuperMapAlgoPlot.Point(2.6*P,0),I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,C,a),R=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,j,a),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,Y,a);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[I,R,B],{lineTypeLimit:!0,lineColorLimit:!1,strokeColor:"#FF0000",strokeOpacity:1,color:"#FF0000",opacity:1,surroundLineLimit:!0,fillLimit:!0,fill:!0});var N,D=[],k=[];for(N=0;N<=p;N++)D.push(e[N]);for(D.push(u),k.push(u),N=p+1;N<e.length;N++)k.push(e[N]);var z=1.2*P;if(r>z){var F=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r-z,D);if(F.bfind){var G=F.pts,W=F.index,J=[];for(N=0;N<=W;N++)J.push(D[N]);J.push(G),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,J)}}if(l-r>z){var K=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(z,k);if(K.bfind){var H=K.pts,q=K.index;for((J=[]).push(H),N=q+1;N<k.length;N++)J.push(k[N]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,J)}}this.scalePoints=[],this.addScalePoint(u),this.addScalePoint(x),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){for(var n=e.clone(),a=-1,r=0,s=0;s<o.length-1;s++){var p=[];p.push(o[s]),p.push(o[s+1]);var u=SuperMapAlgoPlot.PlottingUtil.projectPoint(n,o[s],o[s+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(u,p).isOnPolyLine){var P=SuperMapAlgoPlot.PlottingUtil.distance(n,u);-1===a?(a=s,r=P):r>P&&(a=s,r=P)}}if(-1===a)return SuperMapAlgoPlot.PlottingUtil.distance(n,o[0])>SuperMapAlgoPlot.PlottingUtil.distance(n,o[o.length-1])?void(a=o.length-1):void(a=0);var c=0;if(0===a)c=SuperMapAlgoPlot.PlottingUtil.distance(o[0],u);else for(var g=0;g<a;g++)c+=SuperMapAlgoPlot.PlottingUtil.distance(o[g],o[g+1]);if(c<0||c>i)return;this.scaleValues[0]=c/i}else if(1===t){var S=this.scaleValues[0]*i,h=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(S,o);if(!h.bfind)return;var f=h.pts,y=SuperMapAlgoPlot.PlottingUtil.distance(f,e)/i;y>.5&&(y=.5),this.scaleValues[1]=y;var A=SuperMapAlgoPlot.PlottingUtil.radian(f,e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[2]=A+90}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5022002=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5022001=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.05),l.scaleValues.push(180)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.5),this.scaleValues.push(.05),this.scaleValues.push(180));var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[1]=o}var i=this.scaleValues[0],n=this.scaleValues[1],a=this.scaleValues[2],r=l*i,s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,e);if(s.bfind){var p=s.index,u=s.pts,P=n*l*.5,c=new SuperMapAlgoPlot.Point(0,0),g=new SuperMapAlgoPlot.Point(.5*P,0),S=new SuperMapAlgoPlot.Point(0,P),h=[],f=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u,c,a);h.push(f);var y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u,g,a);h.push(y);var A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u,S,a);h.push(A),this.addCell(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,h);var M=new SuperMapAlgoPlot.Point(0,-2*P),b=new SuperMapAlgoPlot.Point(.15*P,-1.6*P),d=new SuperMapAlgoPlot.Point(-.15*P,-1.6*P),m=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u,M,a),v=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u,b,a),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u,d,a),U=[];U.push(m),U.push(v),U.push(O);var L={surroundLineFlag:!1,fillLimit:!0,fill:!0};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,U,L);var w=new SuperMapAlgoPlot.Point(0,-P),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u,w,a);(U=[]).push(_),U.push(m.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,L);var V,T=[],E=[];for(V=0;V<=p;V++)T.push(e[V]);for(T.push(u),E.push(u),V=p+1;V<e.length;V++)E.push(e[V]);var x=1.2*P;if(r>x){var C=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r-x,T);if(C.bfind){var j=C.pts,Y=C.index,I=[];for(V=0;V<=Y;V++)I.push(T[V]);I.push(j),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,I)}}if(l-r>x){var R=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(x,E);if(R.bfind){var B=R.pts,N=R.index;for((I=[]).push(B),V=N+1;V<E.length;V++)I.push(E[V]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,I)}}B=void 0===B?e[e.length-1]:B,j=void 0===j?e[0]:j;var D=SuperMapAlgoPlot.PlottingUtil.radian(j,B)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.addText("ZD0",u,x,D+90),this.scalePoints=[],this.addScalePoint(u),this.addScalePoint(m),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){for(var n=e.clone(),a=-1,r=0,s=0;s<o.length-1;s++){var p=[];p.push(o[s]),p.push(o[s+1]);var u=SuperMapAlgoPlot.PlottingUtil.projectPoint(n,o[s],o[s+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(u,p).isOnPolyLine){var P=SuperMapAlgoPlot.PlottingUtil.distance(n,u);-1===a?(a=s,r=P):r>P&&(a=s,r=P)}}if(-1===a)return SuperMapAlgoPlot.PlottingUtil.distance(n,o[0])>SuperMapAlgoPlot.PlottingUtil.distance(n,o[o.length-1])?void(a=o.length-1):void(a=0);var c=0;if(0===a)c=SuperMapAlgoPlot.PlottingUtil.distance(o[0],u);else for(var g=0;g<a;g++)c+=SuperMapAlgoPlot.PlottingUtil.distance(o[g],o[g+1]);if(c<0||c>i)return;this.scaleValues[0]=c/i}else if(1===t){var S=this.scaleValues[0]*i,h=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(S,o);if(!h.bfind)return;var f=h.pts,y=SuperMapAlgoPlot.PlottingUtil.distance(f,e)/i;y>.5&&(y=.5),this.scaleValues[1]=y;var A=SuperMapAlgoPlot.PlottingUtil.radian(f,e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[2]=A+90}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5022001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5021803=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 l=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===l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.125),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.125),this.scaleValues.push(0));var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l,o,i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),n=this.getDefaultSubSymbolSize()/i;(n>.3||n<=0)&&(n=.3);var a=1.5*n;2===t.length?(this.isEdit||(this.scaleValues[3]=this.scaleValues[2]+a),l=this.scaleValues[2],o=this.scaleValues[3]):(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.scaleValues[4],0)&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.125)),this.isEdit||(this.scaleValues[4]=this.scaleValues[3]+a),l=this.scaleValues[3],o=this.scaleValues[4]);var r=i*l,s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,e);if(s.bfind){var p=s.pts,u=i*o;if((s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(u,e)).bfind){var P=s.index,c=s.pts,g=new SuperMapAlgoPlot.Point(p.x,p.y),S=new SuperMapAlgoPlot.Point(c.x,c.y),h=SuperMapAlgoPlot.PlottingUtil.radian(g,S)*SuperMapAlgoPlot.PlottingUtil.RTOD,f=[];f.push(c);for(var y=P+1;y<e.length;y++)f.push(e[y]);this.addArrow(f);var A=SuperMapAlgoPlot.PlottingUtil.distance(g,S);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],g,A,h),this.scalePoints=[],this.addScalePoint(c);var M=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,A/2,A/2,h+90);this.addScalePoint(M),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=0,a=0;if(2===l.length?(n=this.scaleValues[2],a=this.scaleValues[3]):(n=this.scaleValues[3],a=this.scaleValues[4]),0===t){for(var r=a-n,s=e.clone(),p=[],u=0;u<o.length;u++)p.push(o[u].clone());for(var P,c=-1,g=0,S=0;S<p.length-1;S++){var h=[];h.push(p[S]),h.push(p[S+1]);var f=SuperMapAlgoPlot.PlottingUtil.projectPoint(s,p[S],p[S+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(f,h).isOnPolyLine){var y=SuperMapAlgoPlot.PlottingUtil.distance(s,f);-1===c?(c=S,P=f,g=y):g>y&&(c=S,P=f,g=y)}}if(-1===c||c>p.length-1)return;for(var A=0,M=0;M<c;M++)A+=SuperMapAlgoPlot.PlottingUtil.distance(o[M],o[M+1]);if((A+=SuperMapAlgoPlot.PlottingUtil.distance(o[c],P))<0||A>i)return;var b=A/i;if(b>.7||b-r<0)return;2===l.length?(this.scaleValues[2]=b-r,this.scaleValues[3]=b):(this.scaleValues[3]=b-r,this.scaleValues[4]=b)}else if(1===t){var d=i*n,m=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(d,o);if(!m.bfind)return;var v=m.pts,O=(2*SuperMapAlgoPlot.PlottingUtil.distance(v,e)+d)/i;if(.7<O)return;2===l.length?this.scaleValues[3]=O:this.scaleValues[4]=O}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5021803=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5010401=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 l=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===l.scaleValues.length&&l.scaleValues.push(.2),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.2));var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],l=.5*e,o=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),i=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),n=SuperMapAlgoPlot.PlottingUtil.radian(o,i)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,e,e,n+90),r=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,e,e,n+270),s=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,l,l,n),p=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,l,l,n),u=[];u.push(p),u.push(r),u.push(a),u.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u);var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,e,e,n+90),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,e,e,n+270),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,l,l,n+180),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,l,l,n+180);(u=[]).push(g),u.push(P),u.push(c),u.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u);var h=.4*SuperMapAlgoPlot.PlottingUtil.distance(o,i),f=new SuperMapAlgoPlot.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2),y=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD;this.addText("JZ",f,h,y),this.addScalePoint(a),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5010401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbol4030802=void 0;l(0);var o=e.AlgoSymbol4030802=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 l=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 l.subText="队",l}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,SuperMapAlgoPlot.AlgoSymbol4030602),e}();SuperMapAlgoPlot.AlgoSymbol4030802=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4030501=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05),l.scaleValues.push(.02)),l}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,SuperMapAlgoPlot.AlgoSymbol40305),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues.push(.05),this.scaleValues.push(.05),this.scaleValues.push(.02)):2===this.scaleValues.length?this.scaleValues.push(.3*this.getSubSymbolScaleValue()):1===this.scaleValues.length&&(this.scaleValues.push(.5*this.getSubSymbolScaleValue()),this.scaleValues.push(.3*this.getSubSymbolScaleValue()));var e=SuperMapAlgoPlot.PlottingUtil.getBeizerCtrlPt(t),l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(e);SuperMap.Plot.PlottingUtil.polylineDistance(l);if(!this.isEdit){var o=this.getSubSymbolScaleValue();(o>.1||o<=0)&&(o=.1),this.scaleValues[0]=o,this.scaleValues[1]=this.getSubSymbolScaleValue(),this.scaleValues[2]=.5*o}var i=this.getLinePts(l,this.scaleValues[0],.5),n=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=SuperMap.Plot.PlottingUtil.dirAngle(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,r=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);this.computeSubSymbolC(n,r,a);for(var s=[],p=0;p<=i.startIndex;p++)s.push(l[p]);s.push(new SuperMapAlgoPlot.Point(i.startPt.x,i.startPt.y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s,{strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1});var u=[];if(i.endIndex<=l.length){u.push(new SuperMapAlgoPlot.Point(i.endPt.x,i.endPt.y));for(var P=i.endIndex+1;P<=l.length-1;P++)u.push(l[P]);this.addArrow(u,this.scaleValues[2])}var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,.5*r,.5*r,a+90);this.addScalePoint(c,0),this.finish()}}},{key:"computeSubSymbolC",value:function(t,e,l){for(var o=[],i=0;i<360;i+=12)o.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.5*e,.5*e,i));o.push(o[0]);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o,{lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1})}}]),e}();SuperMapAlgoPlot.AlgoSymbol4030501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4030401=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 l=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===l.scaleValues.length&&l.scaleValues.push(.2),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),!(this.controlPoints.length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],l=t[0].clone(),o=t[1].clone(),i=SuperMapAlgoPlot.PlottingUtil.radian(l,o)*SuperMapAlgoPlot.PlottingUtil.RTOD,n=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,e,e,i+90),a=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,e,e,i+270),r=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,e,e,i+90),s=a,p=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,e,e,i+270),u=n,P=r,c=SuperMapAlgoPlot.PlottingUtil.distance(u,P),g=SuperMapAlgoPlot.PlottingUtil.distance(s,p),S=SuperMapAlgoPlot.PlottingUtil.distance(u,s),h=SuperMapAlgoPlot.PlottingUtil.distance(P,p),f=SuperMapAlgoPlot.PlottingUtil.linePnt(u,P,.4*c),y=SuperMapAlgoPlot.PlottingUtil.linePnt(u,P,.6*c),A=SuperMapAlgoPlot.PlottingUtil.linePnt(u,s,.4*S),M=SuperMapAlgoPlot.PlottingUtil.linePnt(u,s,.6*S),b=SuperMapAlgoPlot.PlottingUtil.linePnt(P,p,.4*h),d=SuperMapAlgoPlot.PlottingUtil.linePnt(P,p,.6*h),m=SuperMapAlgoPlot.PlottingUtil.linePnt(s,p,.2*g),v=SuperMapAlgoPlot.PlottingUtil.linePnt(s,p,.25*g),O=SuperMapAlgoPlot.PlottingUtil.linePnt(s,p,.75*g),U=SuperMapAlgoPlot.PlottingUtil.linePnt(s,p,.8*g),L=[];L.push(y),L.push(P),L.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,L);var w=[];w.push(d),w.push(p),w.push(U),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w);var _=[];_.push(O),_.push(v),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,_);var V=[];V.push(m),V.push(s),V.push(M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,V);var T=[];T.push(A),T.push(u),T.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T);var E=SuperMapAlgoPlot.PlottingUtil.radian(f,y)*SuperMapAlgoPlot.PlottingUtil.RTOD,x=new SuperMapAlgoPlot.Point((f.x+y.x)/2,(f.y+y.y)/2),C=SuperMapAlgoPlot.PlottingUtil.distance(f,y);this.addText("警",x,C,E),this.addScalePoint(n,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.controlPoints.length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.distance(l[0],e)/o;this.scaleValues[0]=i}}}]),e}();SuperMapAlgoPlot.AlgoSymbol4030401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4030303=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 l=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 l.subText="疏",l}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,SuperMapAlgoPlot.AlgoSymbol4030301),e}();SuperMapAlgoPlot.AlgoSymbol4030303=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4030302=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 l=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 l.subText="劝",l}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,SuperMapAlgoPlot.AlgoSymbol4030301),e}();SuperMapAlgoPlot.AlgoSymbol4030302=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4030301=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l.subText="标",l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,r=SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,r,a);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var P=i.endIndex+1;P<=e.length-1;P++)p.push(e[P]);var c=SuperMapAlgoPlot.PlottingUtil.polylineDistance(p);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p)}var g=this.subText,S=.15*c,h=new SuperMapAlgoPlot.Point(i.endPt.x+S/2,i.endPt.y-S/2),f=a;this.addText(g,h,S,f);var y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,e),A=SuperMapAlgoPlot.PlottingUtil.circlePoint(y.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a+90);this.addScalePoint(A,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMapAlgoPlot.AlgoSymbol4030301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3002505=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 l=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 l.subText="滚",l}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,SuperMapAlgoPlot.AlgoSymbol30025),e}();SuperMapAlgoPlot.AlgoSymbol3002505=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3002504=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 l=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 l.subText="滑",l}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,SuperMapAlgoPlot.AlgoSymbol30025),e}();SuperMapAlgoPlot.AlgoSymbol3002504=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3002503=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 l=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 l.subText="堆",l}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,SuperMapAlgoPlot.AlgoSymbol30025),e}();SuperMapAlgoPlot.AlgoSymbol3002503=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3002502=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 l=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 l.subText="塌",l}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,SuperMapAlgoPlot.AlgoSymbol30025),e}();SuperMapAlgoPlot.AlgoSymbol3002502=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3002501=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 l=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 l.subText="冰",l}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,SuperMapAlgoPlot.AlgoSymbol30025),e}();SuperMapAlgoPlot.AlgoSymbol3002501=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3002005=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(this.controlPoints.length<3)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),o=this.scaleValues[0],i=this.scaleValues[1],n=e*this.scaleValues[2],a=new SuperMapAlgoPlot.Point(l.x+e*o,l.y+e*i),r=new SuperMapAlgoPlot.Point(a.x+1,a.y),s=[];t.push(t[0].clone());for(var p=0;p<t.length-1;p++){var u=SuperMapAlgoPlot.PlottingUtil.intersectLines(a,r,t[p],t[p+1]);u.isIntersectLines&&(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(u.intersectPoint,t[p],t[p+1])&&s.push(u.intersectPoint))}if(0>=s.length)this.finish();else{var P=s[0].clone(),c=s[0].clone();for(p=0;p<s.length;p++)P.x>s[p].x&&(P=s[p].clone()),c.x<s[p].x&&(c=s[p].clone());var g=[],S=new SuperMapAlgoPlot.Point(a.x-n/2,P.y);S.x<=c.x&&S.x>=P.x&&((g=[]).push(P),g.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g));var h=new SuperMapAlgoPlot.Point(a.x+n/2,c.y);h.x<=c.x&&h.x>=P.x&&((g=[]).push(c),g.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g)),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,n,0),this.addScalePoint(a,0);var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,n/2,n/2,90);this.addScalePoint(f,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),n=e,a=0,r=0;if(0===t){if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(l,n))return;a=(n.x-i.x)/o,this.scaleValues[0]=a,r=(n.y-i.y)/o,this.scaleValues[1]=r}if(1===t){a=this.scaleValues[0],r=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(i.x+a*o,i.y+r*o),p=2*SuperMapAlgoPlot.PlottingUtil.distance(n,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol3002005=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3002004=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(2>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),i=this.scaleValues[0],n=this.scaleValues[1],a=l*this.scaleValues[2],r=new SuperMapAlgoPlot.Point(o.x+l*i,o.y+l*n),s=new SuperMapAlgoPlot.Point(r.x+1,r.y),p=[];e.push(e[0].clone());for(var u=0;u<e.length-1;u++){var P=SuperMapAlgoPlot.PlottingUtil.intersectLines(r,s,e[u],e[u+1]);P.isIntersectLines&&(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(P.intersectPoint,e[u],e[u+1])&&p.push(P.intersectPoint))}if(0>=p.length)this.finish();else{var c=p[0].clone(),g=p[0].clone();for(u=0;u<p.length;u++)c.x>p[u].x&&(c=p[u].clone()),g.x<p[u].x&&(g=p[u].clone());var S=[],h=new SuperMapAlgoPlot.Point(r.x-a/2,c.y);h.x<=g.x&&h.x>=c.x&&((S=[]).push(c),S.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S));var f=new SuperMapAlgoPlot.Point(r.x+a/2,g.y);f.x<=g.x&&f.x>=c.x&&((S=[]).push(g),S.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S));var y=SuperMapAlgoPlot.PlottingUtil.radian(h,f)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.addText("火",r,a,y),this.addScalePoint(r,0);var A=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,a/2,a/2,90);this.addScalePoint(A,1),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),n=e,a=0,r=0;if(0===t){if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(l,n))return;a=(n.x-i.x)/o,this.scaleValues[0]=a,r=(n.y-i.y)/o,this.scaleValues[1]=r}if(1===t){a=this.scaleValues[0],r=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(i.x+a*o,i.y+r*o),p=2*SuperMapAlgoPlot.PlottingUtil.distance(n,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol3002004=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.AlgoSymbol3002003=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),e}()},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3002002=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(this.controlPoints.length<3)){var e={surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t,e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),i=this.scaleValues[0],n=this.scaleValues[1],a=l*this.scaleValues[2],r=new SuperMapAlgoPlot.Point(o.x+l*i,o.y+l*n),s=new SuperMapAlgoPlot.Point(r.x+1,r.y),p=[];t.push(t[0].clone());for(var u=0;u<t.length-1;u++){var P=SuperMapAlgoPlot.PlottingUtil.intersectLines(r,s,t[u],t[u+1]);P.isIntersectLines&&(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(P.intersectPoint,t[u],t[u+1])&&p.push(P.intersectPoint))}if(0>=p.length)this.finish();else{var c=p[0].clone(),g=p[0].clone();for(u=0;u<p.length;u++)c.x>p[u].x&&(c=p[u].clone()),g.x<p[u].x&&(g=p[u].clone());var S=new SuperMapAlgoPlot.Point(r.x-a/2,c.y),h=new SuperMapAlgoPlot.Point(r.x+a/2,g.y),f=SuperMapAlgoPlot.PlottingUtil.radian(S,h)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.addText("HX",r,a,f,"#0000FF"),this.addScalePoint(r,0);var y=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,a/2,a/2,90);this.addScalePoint(y,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),n=e,a=0,r=0;if(0===t){if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(l,n))return;a=(n.x-i.x)/o,this.scaleValues[0]=a,r=(n.y-i.y)/o,this.scaleValues[1]=r}if(1===t){a=this.scaleValues[0],r=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(i.x+a*o,i.y+r*o),p=2*SuperMapAlgoPlot.PlottingUtil.distance(n,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol3002002=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3002001=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 l=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 l.subText="震",l}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,SuperMapAlgoPlot.AlgoSymbol30020),e}();SuperMapAlgoPlot.AlgoSymbol3002001=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3001302=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=.1*SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),l=SuperMapAlgoPlot.PlottingUtil.linePnt(t[t.length-1],t[t.length-2],Math.sqrt(3)*e/4),o=SuperMapAlgoPlot.PlottingUtil.clonePoints(t);o.splice(t.length-1,1),o.push(l);var i=SuperMapAlgoPlot.PlottingUtil.paraLine(o,.25*e,!0),n={lineColorLimit:!0,strokeColor:"#00C000",color:"#00C000"},a=SuperMapAlgoPlot.PlottingUtil.paraLine(o,.25*e,!1);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i,n),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a,n);var r=SuperMapAlgoPlot.PlottingUtil.linePnt(t[t.length-1],t[t.length-2],e),s=new SuperMapAlgoPlot.Point(r.x,r.y),p=new SuperMapAlgoPlot.Point(r.x,r.y);s=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[t.length-1],1/6*Math.PI,s),p=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[t.length-1],11/6*Math.PI,p);var u=[];u.push(s),u.push(t[t.length-1]),u.push(p),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u,n),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol3001302=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3001301=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 l=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===l.scaleValues.length&&l.scaleValues.push(.5),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=.1*SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),l=this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.linePnt(t[t.length-1],t[t.length-2],Math.sqrt(3)*e/4),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),n=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],i*l),a=SuperMapAlgoPlot.PlottingUtil.linePnt(n,t[0],2*e),r=SuperMapAlgoPlot.PlottingUtil.linePnt(n,t[1],2*e),s=[];s.push(t[0]),s.push(a);var p=[];p.push(r),p.push(o);var u=SuperMapAlgoPlot.PlottingUtil.paraLine(s,.25*e,!0),P=SuperMapAlgoPlot.PlottingUtil.paraLine(s,.25*e,!1),c=SuperMapAlgoPlot.PlottingUtil.paraLine(p,.25*e,!0),g=SuperMapAlgoPlot.PlottingUtil.paraLine(p,.25*e,!1);if(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g),this.subSymbols.length>0){var S=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,h=.5*SuperMapAlgoPlot.PlottingUtil.distance(a,r);this.computeSubSymbol(this.subSymbols[0],n,h,S+180)}var f=SuperMapAlgoPlot.PlottingUtil.linePnt(t[t.length-1],t[t.length-2],e),y=new SuperMapAlgoPlot.Point(f.x,f.y),A=new SuperMapAlgoPlot.Point(f.x,f.y);y=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[t.length-1],1/6*Math.PI,y),A=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[t.length-1],11/6*Math.PI,A);var M=[];M.push(y),M.push(t[t.length-1]),M.push(A),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol3001301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3001105=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=this.scaleValues[0],l=this.scaleValues[1],o=this.scaleValues[2],i=SuperMapAlgoPlot.PlottingUtil.getOutRectangleDis(t);if(0!==i){if(!this.isEdit){var n=this.getSubSymbolScaleValue()*SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[2]=n/i}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),r=new SuperMapAlgoPlot.Point(a.x+e*i,a.y+l*i),s=o*i;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,s,0),this.addText("盗",r,s,0),this.addScalePoint(r,0);var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,s,s,90);this.addScalePoint(p,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.getOutRectangleDis(l),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0===o)return;var n=new SuperMapAlgoPlot.Point(e.x,e.y);if(0===t&&(this.scaleValues[0]=(n.x-i.x)/o,this.scaleValues[1]=(n.y-i.y)/o),1===t){var a=this.scaleValues[0],r=this.scaleValues[1],s=new SuperMapAlgoPlot.Point(i.x+a*o,i.y+r*o),p=SuperMapAlgoPlot.PlottingUtil.distance(e,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol3001105=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3001104=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=this.scaleValues[0],l=this.scaleValues[1],o=this.scaleValues[2],i=SuperMapAlgoPlot.PlottingUtil.getOutRectangleDis(t);if(0!==i){if(!this.isEdit){var n=this.getSubSymbolScaleValue()*SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[2]=n/i}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),r=new SuperMapAlgoPlot.Point(a.x+e*i,a.y+l*i),s=o*i;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,s,0),this.addText("私",r,s,0,"#0000FF"),this.addScalePoint(r,0);var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,s,s,90);this.addScalePoint(p,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.getOutRectangleDis(l),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0===o)return;var n=new SuperMapAlgoPlot.Point(e.x,e.y);if(0===t&&(this.scaleValues[0]=(n.x-i.x)/o,this.scaleValues[1]=(n.y-i.y)/o),1===t){var a=this.scaleValues[0],r=this.scaleValues[1],s=new SuperMapAlgoPlot.Point(i.x+a*o,i.y+r*o),p=SuperMapAlgoPlot.PlottingUtil.distance(e,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol3001104=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3001103=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 l=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 l.subText="骚",l}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,SuperMapAlgoPlot.AlgoSymbol3001101),e}();SuperMapAlgoPlot.AlgoSymbol3001103=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3001102=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 l=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 l.subText="暴",l}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,SuperMapAlgoPlot.AlgoSymbol3001101),e}();SuperMapAlgoPlot.AlgoSymbol3001102=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3001101=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 l=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===l.scaleValues.length&&(l.scaleValues.push(-.04),l.scaleValues.push(-.175),l.scaleValues.push(.1)),l.subText="集",l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.getOutRectangleDis(t);if(0!==e){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t);this.addText(this.subText,l,.3*e,0,"#0000FF"),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol3001101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3000809=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,r=.8*SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt);this.subSymbols.length>0&&(this.computeSubSymbol(this.subSymbols[0],n,r,a+180),this.computeSubSymbol(this.subSymbols[1],n,.5*r,a+180));for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var P=i.endIndex+1;P<=e.length-1;P++)p.push(e[P]);this.addArrow(p)}var c=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,e),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(c.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a+90);this.addScalePoint(g,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMapAlgoPlot.AlgoSymbol3000809=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3000808=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,r=.8*SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,r,a+180);var s=[],p=new SuperMapAlgoPlot.Point(0,0);p.x=-r/6,p.y=r/3;var u=new SuperMapAlgoPlot.Point(0,0),P=SuperMapAlgoPlot.PlottingUtil.rotateAngle(u,a*SuperMapAlgoPlot.PlottingUtil.DTOR,p),c=new SuperMapAlgoPlot.Point(P.x+n.x,P.y+n.y);p.x=r/6,p.y=r/3;var g=SuperMapAlgoPlot.PlottingUtil.rotateAngle(u,a*SuperMapAlgoPlot.PlottingUtil.DTOR,p),S=new SuperMapAlgoPlot.Point(g.x+n.x,g.y+n.y);p.x=0,p.y=-r/3;var h=SuperMapAlgoPlot.PlottingUtil.rotateAngle(u,a*SuperMapAlgoPlot.PlottingUtil.DTOR,p),f=new SuperMapAlgoPlot.Point(h.x+n.x,h.y+n.y);s.push(c),s.push(S),s.push(f);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,{fillLimit:!0,fill:!0});for(var y=[],A=[],M=0;M<=i.startIndex;M++)y.push(e[M]);if(y.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y),i.endIndex<=e.length){A.push(i.endPt);for(var b=i.endIndex+1;b<=e.length-1;b++)A.push(e[b]);this.addArrow(A)}var d=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,e),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(d.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a+90);this.addScalePoint(m,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMapAlgoPlot.AlgoSymbol3000808=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3000807=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,r=.8*SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt);this.subSymbols.length>0&&(this.computeSubSymbol(this.subSymbols[0],n,.05*r,a+90),this.computeSubSymbol(this.subSymbols[1],n,r,a+180));for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var P=i.endIndex+1;P<=e.length-1;P++)p.push(e[P]);this.addArrow(p)}var c=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,e),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(c.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a+90);this.addScalePoint(g,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMapAlgoPlot.AlgoSymbol3000807=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3000806=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol3000804),e}();SuperMapAlgoPlot.AlgoSymbol3000806=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3000805=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol3000804),e}();SuperMapAlgoPlot.AlgoSymbol3000805=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3000804=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol3000801),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,r=.8*SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,r,a+180);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var P=i.endIndex+1;P<=e.length-1;P++)p.push(e[P]);this.addArrow(p)}var c=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,e),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(c.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a+90);this.addScalePoint(g,0),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol3000804=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3000803=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol3000801),e}();SuperMapAlgoPlot.AlgoSymbol3000803=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3000802=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol3000801),e}();SuperMapAlgoPlot.AlgoSymbol3000802=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3000801=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,r=.8*SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,r,a);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var P=i.endIndex+1;P<=e.length-1;P++)p.push(e[P]);this.addArrow(p)}var c=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,e),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(c.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a+90);this.addScalePoint(g,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMapAlgoPlot.AlgoSymbol3000801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2122301=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.5),l.scaleValues.push(.4)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),l=e*this.scaleValues[0],o=this.scaleValues[1],i=this.scaleValues[2]*e,n=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],e*o),a=SuperMapAlgoPlot.PlottingUtil.distance(t[1],n),r=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],n,a+.45*i),s=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],e-a+.45*i),p=2*l,u=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(p,t[1],r),P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(p,t[0],s),c=SuperMapAlgoPlot.PlottingUtil.paraLine(t,l,!0),g=SuperMapAlgoPlot.PlottingUtil.paraLine(t,l,!1),S=e-a-i/2,h=SuperMapAlgoPlot.PlottingUtil.linePnt(c[0],c[c.length-1],S),f=SuperMapAlgoPlot.PlottingUtil.linePnt(c[0],c[c.length-1],S+.2*i),y=SuperMapAlgoPlot.PlottingUtil.linePnt(c[0],c[c.length-1],S+.8*i),A=SuperMapAlgoPlot.PlottingUtil.linePnt(c[0],c[c.length-1],S+i),M={fillLimit:!0},b=[];b.push(c[0]),b.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b,M);var d=[];d.push(u.pntRight),d.push(f),d.push(y),d.push(P.pntLeft),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,M);var m=[];m.push(A),m.push(c[1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,m,M);var v=SuperMapAlgoPlot.PlottingUtil.linePnt(g[0],g[g.length-1],S),O=SuperMapAlgoPlot.PlottingUtil.linePnt(g[0],g[g.length-1],S+.2*i),U=SuperMapAlgoPlot.PlottingUtil.linePnt(g[0],g[g.length-1],S+.8*i),L=SuperMapAlgoPlot.PlottingUtil.linePnt(g[0],g[g.length-1],S+i),w=[];w.push(g[0]),w.push(v),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w,M);var _=[];_.push(u.pntLeft),_.push(O),_.push(U),_.push(P.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,_,M);var V=[];V.push(L),V.push(g[1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,V,M);var T=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(l/2,h,c[0]);this.addScalePoint(T.pntLeft,0),this.addScalePoint(n,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.distance(l[0],e);if(0===t&&(this.scaleValues[0]=i/o),1===t){var n=i/o;n>.8?n=.8:n<.2&&(n=.2),this.scaleValues[1]=n}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol2122301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2122202=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.2),l.scaleValues.push(.3),l.scaleValues.push(.7),l.scaleValues.push(3)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);0===this.scaleValues.length&&(this.scaleValues.push(.02),this.scaleValues.push(.2),this.scaleValues.push(.3),this.scaleValues.push(.7),this.scaleValues.push(3)),this.isEdit||(this.scaleValues[0]=.2*this.getSubSymbolScaleValue());var l=e*this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=i*this.scaleValues[2],a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,n),r=4*l,s=[],p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[a.index],a.pt);s.push(new SuperMapAlgoPlot.Point(p.pntLeft.x,p.pntLeft.y)),s.push(new SuperMapAlgoPlot.Point(p.pntRight.x,p.pntRight.y)),n=i*this.scaleValues[3],a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,n);var u=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[a.index],a.pt);s.push(new SuperMapAlgoPlot.Point(u.pntLeft.x,u.pntLeft.y)),s.push(new SuperMapAlgoPlot.Point(u.pntRight.x,u.pntRight.y));for(var P=i*this.scaleValues[1],c=this.getDashLinePts(o,P),g={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0},S=0;S<c.length;S++){var h=c[S];SuperMapAlgoPlot.PlottingUtil.clearSamePts(h);var f=SuperMapAlgoPlot.PlottingUtil.paraLine(h,l,!0),y=SuperMapAlgoPlot.PlottingUtil.paraLine(h,l,!1);1!=S?(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,g)):(f.unshift(s[0]),f.push(s[2]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,g),y.unshift(s[1]),y.push(s[3]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,g))}r=2*l;var A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.05*i),M=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt);A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.15*i);var b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt),d=[];d.push(M.pntLeft),d.push(b.pntRight),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),(d=[]).push(M.pntRight),d.push(b.pntLeft),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.45*i);var m=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt);A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.55*i);var v=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt);(d=[]).push(m.pntLeft),d.push(v.pntRight),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),(d=[]).push(m.pntRight),d.push(v.pntLeft),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.85*i);var O=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt);A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.95*i);var U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt);(d=[]).push(O.pntLeft),d.push(U.pntRight),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),(d=[]).push(O.pntRight),d.push(U.pntLeft),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,0);var L=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(1.5*r,o[A.index],A.pt);A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.5*i);var w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r*this.scaleValues[4],o[A.index],A.pt);A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,i);var _=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(1.5*r,o[A.index],A.pt);(d=[]).push(L.pntLeft),d.push(w.pntRight),d.push(_.pntRight);var V=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(d);V=SuperMapAlgoPlot.PlottingUtil.clearSamePts(V),g={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0},this.addCell(SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL,V,g),this.scalePoints=[],this.addScalePoint(w.pntRight),this.finish()}}},{key:"getDashLinePts",value:function(t,e){var l=[],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(e>o)return l;for(var i=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),n=2*parseInt(o/(1.5*e)),a=0;a<n;a++){var r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,e);if(-1!==r.index){if(0==a%2){for(var s=[],p=0;p<r.index+1;p++)s.push(i[p].clone());s.push(r.pt),l.push(s)}var u=[];u.push(r.pt);for(var P=r.index+1;P<i.length;P++)u.push(i[P]);i=(i=[]).concat(u)}}return i.length>0&&l.push(i),l}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;if(0==t){SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);this.scaleValues[4]=o/10}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol2122202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2122201=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.2),l.scaleValues.push(.3),l.scaleValues.push(.7),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);0===this.scaleValues.length&&(this.scaleValues.push(.02),this.scaleValues.push(.2),this.scaleValues.push(.3),this.scaleValues.push(.7),this.scaleValues.push(.1)),this.isEdit||(this.scaleValues[0]=.2*this.getSubSymbolScaleValue());var l=e*this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=i*this.scaleValues[2],a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,n),r=4*l,s=[],p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[a.index],a.pt);s.push(new SuperMapAlgoPlot.Point(p.pntLeft.x,p.pntLeft.y)),s.push(new SuperMapAlgoPlot.Point(p.pntRight.x,p.pntRight.y)),n=i*this.scaleValues[3],a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,n);var u=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[a.index],a.pt);s.push(new SuperMapAlgoPlot.Point(u.pntLeft.x,u.pntLeft.y)),s.push(new SuperMapAlgoPlot.Point(u.pntRight.x,u.pntRight.y));for(var P=i*this.scaleValues[1],c=this.getDashLinePts(o,P),g={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0},S=0;S<c.length;S++){var h=c[S];h=SuperMapAlgoPlot.PlottingUtil.clearSamePts(h);var f=SuperMapAlgoPlot.PlottingUtil.paraLine(h,l,!0),y=SuperMapAlgoPlot.PlottingUtil.paraLine(h,l,!1);1!=S?(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,g)):(f.unshift(s[0]),f.push(s[2]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,g),y.unshift(s[1]),y.push(s[3]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,g))}r=2*l;var A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.05*i),M=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt);A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.15*i);var b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt),d=[];d.push(M.pntLeft),d.push(b.pntRight),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),(d=[]).push(M.pntRight),d.push(b.pntLeft),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.45*i);var m=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt);A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.55*i);var v=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt);(d=[]).push(m.pntLeft),d.push(v.pntRight),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),(d=[]).push(m.pntRight),d.push(v.pntLeft),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.85*i);var O=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt);A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.95*i);var U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[A.index],A.pt);(d=[]).push(O.pntLeft),d.push(U.pntRight),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),(d=[]).push(O.pntRight),d.push(U.pntLeft),g={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,g),this.finish()}}},{key:"getDashLinePts",value:function(t,e){var l=[],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(e>o)return l;for(var i=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),n=2*parseInt(o/(1.5*e)),a=0;a<n;a++){var r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,e);if(-1!==r.index){if(0==a%2){for(var s=[],p=0;p<r.index+1;p++)s.push(i[p].clone());s.push(r.pt),l.push(s)}var u=[];u.push(r.pt);for(var P=r.index+1;P<i.length;P++)u.push(i[P]);i=(i=[]).concat(u)}}return i.length>0&&l.push(i),l}}]),e}();SuperMapAlgoPlot.AlgoSymbol2122201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2122101=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 l=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===l.subSymbols.length&&(l.subSymbols=SuperMapAlgoPlot.WJAlgoSymbolFactory.getDefaultSubSymbols(l.libID,l.code)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(2>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL,e);for(var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),o=e[0].x,i=e[0].x,n=e[0].y,a=e[0].y,r=[],s=0;s<e.length;s++)o>e[s].x&&(o=e[s].x),i<e[s].x&&(i=e[s].x),n>e[s].y&&(n=e[s].y),a<e[s].y&&(a=e[s].y),r.push(e[s]);var p=(i-o)/5;p>10&&(p=10);for(var u=.2*p,P=[],c=0;c<360;c+=18){var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(new SuperMapAlgoPlot.Point(0,0),u,u,c);P.push(g)}for(var S=0,h=o;h<i;h+=p)for(var f=n;f<a;f+=p){var y=new SuperMapAlgoPlot.Point(h,f);if(SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(r,y))if(0===S){S++;for(var A=[],M=0;M<P.length;M++){var b=new SuperMapAlgoPlot.Point(y.x+P[M].x,y.y+P[M].y);A.push(b)}A.push(A[0]),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,A);var d=[];d.push(A[10]),d.push(new SuperMapAlgoPlot.Point(A[10].x-.5*u,A[10].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d);var m=[];m.push(A[0]),m.push(new SuperMapAlgoPlot.Point(A[0].x+.5*u,A[10].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,m)}else 1===S?(S++,null!==this.subSymbols[0]&&this.computeSubSymbol(this.subSymbols[0],y,.015*l,0)):(S=0,null!==this.subSymbols[1]&&this.computeSubSymbol(this.subSymbols[1],y,.015*l,0))}this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol2122101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol2121602=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 l=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 l.subText="障",l}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,SuperMapAlgoPlot.AlgoSymbol2121601),e}();SuperMapAlgoPlot.AlgoSymbol2121602=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2121601=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 l=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===l.scaleValues.length&&l.scaleValues.push(1),l.subText="遥",l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],l=t[1],o=SuperMapAlgoPlot.PlottingUtil.distance(e,l);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);for(var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),n=50*this.getSubSymbolScaleValue(),a=i*n*.02,r=i*n*.005,s=.1*i,p=.1*o,u=0;u<=i;u+=s){var P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,u+p);if(-1!==P.index){var c,g=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,t[P.index],P.pt);c=this.scaleValues[0]>0?new SuperMapAlgoPlot.Point(g.pntLeft.x,g.pntLeft.y):new SuperMapAlgoPlot.Point(g.pntRight.x,g.pntRight.y);var S=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,c,P.pt),h=[];if(h.push(S.pntRight),h.push(c),h.push(S.pntLeft),0===u){var f=new SuperMapAlgoPlot.Point(c.x,c.y);f.isScalePoint=!0,f.tag=0,this.scalePoints.push(f)}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}}var y=SuperMapAlgoPlot.PlottingUtil.radian(t[t.length-2],t[t.length-1])*SuperMapAlgoPlot.PlottingUtil.RTOD,A=.1*i,M=SuperMapAlgoPlot.PlottingUtil.distance(t[t.length-1],t[t.length-2]),b=SuperMapAlgoPlot.PlottingUtil.linePnt(t[t.length-2],t[t.length-1],.5*A+M);this.addText(this.subText,b,A,y),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),o=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[0],l[1],e);this.scaleValues[0]=o?-1:1}}}]),e}();SuperMapAlgoPlot.AlgoSymbol2121601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol2121507=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 l=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 l.subText="复",l}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,SuperMapAlgoPlot.AlgoSymbol2121505),e}();SuperMapAlgoPlot.AlgoSymbol2121507=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol2121506=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 l=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 l.subText="墩",l}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,SuperMapAlgoPlot.AlgoSymbol2121505),e}();SuperMapAlgoPlot.AlgoSymbol2121506=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2121504=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],l=t[1],o=SuperMapAlgoPlot.PlottingUtil.distance(e,l),i=o*this.scaleValues[0],n=SuperMapAlgoPlot.PlottingUtil.linePnt(e,l,.5*o),a=SuperMapAlgoPlot.PlottingUtil.linePnt(n,e,2*i),r=SuperMapAlgoPlot.PlottingUtil.linePnt(n,l,2*i),s=[];s.push(t[0],a);var p=[];p.push(r,t[1]);var u=SuperMapAlgoPlot.PlottingUtil.paraLine(s,i,!0),P=SuperMapAlgoPlot.PlottingUtil.paraLine(s,i,!1),c=SuperMapAlgoPlot.PlottingUtil.paraLine(p,i,!0),g=SuperMapAlgoPlot.PlottingUtil.paraLine(p,i,!1);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var S=SuperMapAlgoPlot.PlottingUtil.radian(e,l)*SuperMapAlgoPlot.PlottingUtil.RTOD,h=.5*SuperMapAlgoPlot.PlottingUtil.distance(a,r);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,h,S),this.addScalePoint(u[0],0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0===t){var i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o;i>.24&&(i=.24),this.scaleValues[0]=i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol2121504=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2092101=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.03)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0];this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());var o=this.scaleValues[1]*e,i=l*e,n=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,i);if(-1!==n.index){for(var a,r=n.pt,s=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[r,new SuperMapAlgoPlot.Point(r.x+o,r.y)]),p=0;p<t.length-1;p++){var u=t[p],P=t[p+1],c=SuperMapAlgoPlot.PlottingUtil.distance(r,u),g=SuperMapAlgoPlot.PlottingUtil.distance(r,P);if(!(c<o&&g<o))if(c>o&&g<o||c<o&&g>o){var S;S=c>o?u:P;var h=this.getLineAddCircleIntersectPts(u,P,s);h.length>0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[h[0],S])}else{var f=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,u,P);if(SuperMapAlgoPlot.PlottingUtil.distance(r,f)>=o)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u,P]);else if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(f,u,P)){var y=this.getLineAddCircleIntersectPts(u,P,s);if(y.length>0){y.unshift(u),y.push(P);for(var A=0;A<y.length-1;A++)this.isLineInCircle(y[A],y[A+1],r,o)||this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[y[A],y[A+1]])}}else this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u,P])}}if(this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[r,new SuperMapAlgoPlot.Point(r.x+o,r.y)]),a=n.index>=t.length-1?SuperMapAlgoPlot.PlottingUtil.radian(t[t.length-2],t[t.length-1])*SuperMapAlgoPlot.PlottingUtil.RTOD:SuperMapAlgoPlot.PlottingUtil.radian(t[n.index],t[n.index+1])*SuperMapAlgoPlot.PlottingUtil.RTOD,this.subSymbols.length>0){if(null!==this.subSymbols[0].symbolData)for(var M=0;M<this.subSymbols[0].symbolData.innerCells.length;M++)26===this.subSymbols[0].symbolData.innerCells[M].type&&this.subSymbols[0].symbolData.innerCells.splice(M,1);this.computeSubSymbol(this.subSymbols[0],r,o,a)}this.scalePoints=[];var b=r;b.isScalePoint=!0,b.tag=0,this.scalePoints.push(b);var d=new SuperMapAlgoPlot.Point(r.x+o,r.y);d.isScalePoint=!0,d.tag=1,this.scalePoints.push(d),this.finish()}}}},{key:"isLineInCircle",value:function(t,e,l,o){var i=new SuperMapAlgoPlot.Point((t.x+e.x)/2,(t.y+e.y)/2);return o>SuperMapAlgoPlot.PlottingUtil.distance(i,l)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,l){var o=l.slice();o[0].x===o[o.length-1].x&&o[0].y===o[o.length-1].y||o.push(o[0]);for(var i=[],n=0;n<o.length-1;n++){var a=o[n],r=o[n+1],s=SuperMapAlgoPlot.PlottingUtil.intersectLines(t,e,a,r);s.isIntersectLines&&SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(s.intersectPoint,t,e)&&SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(s.intersectPoint,a,r)&&i.push(s.intersectPoint)}for(var p=0;p<i.length-1;p++)SuperMapAlgoPlot.PlottingUtil.isSamePt(i[p],i[p+1])&&(i.splice(p,1),p--);if(t.x>e.x){for(var u=0;u<i.length&&u!==i.length-1;u++)if(i[u].x<i[u+1].x){var P=i[u];i[u]=i[u+1],i[u+1]=P}}else if(t.x<e.x){for(var c=0;c<i.length&&c!==i.length-1;c++)if(i[c].x>i[c+1].x){var g=i[c];i[c]=i[c+1],i[c+1]=g}}else if(t.y>e.y){for(var S=0;S<i.length&&S!==i.length-1;S++)if(i[S].y<i[S+1].y){var h=i[S];i[S]=i[S+1],i[S+1]=h}}else if(t.y<e.y)for(var f=0;f<i.length&&f!==i.length-1;f++)if(i[f].y>i[f+1].y){var y=i[f];i[f]=i[f+1],i[f+1]=y}return i}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t){for(var i=0,n=-1,a=null,r=0;r<l.length-1;r++){var s=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,l[r],l[r+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(s.projectPoint,l[r],l[r+1])){var p=SuperMapAlgoPlot.PlottingUtil.distance(s.projectPoint,e);0===i?(i=p,n=r,a=s.projectPoint):p<i&&(i=p,n=r,a=s.projectPoint)}}if(-1===n)return;for(var u=0,P=0;P<n;P++)u+=SuperMapAlgoPlot.PlottingUtil.distance(l[P],l[P+1]);var c=(u+=SuperMapAlgoPlot.PlottingUtil.distance(a,l[n]))/o;c>1&&(c=1),this.scaleValues[0]=c}if(1===t){var g=this.scaleValues[0]*o,S=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,g);if(-1===S.index)return;var h=SuperMapAlgoPlot.PlottingUtil.distance(S.pt,e)/o;h>.4&&(h=.4),this.scaleValues[1]=h}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol2092101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2091503=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.03),l.scaleValues.push(.5),l.scaleValues.push(.03)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(!this.isEdit){var e=this.getSubSymbolScaleValue();this.scaleValues[0]=e,this.scaleValues[1]=.5*e,this.scaleValues[3]=.5*e}var l=this.scaleValues[0],o=this.scaleValues[1],i=this.scaleValues[2],n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var a=this.GetCurvePts(t,l,o);if(0!==a.pt.length){var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n)*i,s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,r);if(-1!==s.index){for(var p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[3],u=[],P=0;P<360;P+=12)u.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(s.pt,p,p,P));u.push(u[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u);for(var c=[],g=[],S=0;S<a.pt.length;S++)SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(u,a.pt[S])?g.length>1&&(c.push(g),g=[]):g.push(a.pt[S]);g.length>1&&c.push(g);for(var h=0;h<c.length;h++)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c[h]);var f=[],y=new SuperMapAlgoPlot.Point(s.pt.x-p,s.pt.y),A=new SuperMapAlgoPlot.Point(s.pt.x+.5*p,s.pt.y);f.push(y,A),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var M=[],b=SuperMapAlgoPlot.PlottingUtil.circlePoint(A,.3*p,.3*p,157.5),d=SuperMapAlgoPlot.PlottingUtil.circlePoint(A,.3*p,.3*p,202.5);M.push(b),M.push(d),M.push(A);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0});var m=new SuperMapAlgoPlot.Point(a.pt[0].x,a.pt[0].y);m.isScalePoint=!0,m.tag=0,this.scalePoints.push(m);var v=new SuperMapAlgoPlot.Point(a.scalePt.x,a.scalePt.y);v.isScalePoint=!0,v.tag=1,this.scalePoints.push(v);var O=new SuperMapAlgoPlot.Point(s.pt.x,s.pt.y);O.isScalePoint=!0,O.tag=2,this.scalePoints.push(O);var U=SuperMapAlgoPlot.PlottingUtil.circlePoint(new SuperMapAlgoPlot.Point(s.pt.x,s.pt.y),p,p,0),L=new SuperMapAlgoPlot.Point(U.x,U.y);L.isScalePoint=!0,L.tag=3,this.scalePoints.push(L),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;if(4>this.scaleValues.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i),a=new SuperMapAlgoPlot.Point(e.x,e.y);if(0===t){var r=l[0],s=SuperMapAlgoPlot.PlottingUtil.distance(r,a);this.scaleValues[1]=2*s/o}else if(1===t)r=l[0],s=SuperMapAlgoPlot.PlottingUtil.distance(r,a),this.scaleValues[0]=s/o;else if(2===t){for(var p=-1,u=0,P=new SuperMapAlgoPlot.Point(0,0),c=0;c<i.length-1;c++){var g=i[c],S=i[c+1],h=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,g,S);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(h,g,S)){var f=SuperMapAlgoPlot.PlottingUtil.distance(a,h);-1===p?(p=c,P=h,u=f):u>f&&(p=c,P=h,u=f)}}if(-1===p||p>i.length-1)return;for(var y=[],A=0;A<p;A++)y.push(i[A]);y.push(P);var M=SuperMapAlgoPlot.PlottingUtil.polylineDistance(y);if(M<0||M>n)return;this.scaleValues[2]=M/n}else if(3===t){var b=n*this.scaleValues[2],d=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,b);if(-1===d.index)return;var m=SuperMapAlgoPlot.PlottingUtil.distance(d.pt,e);this.scaleValues[3]=m/o}}}},{key:"GetCurvePts",value:function(t,e,l){for(var o,i=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i),a=n*e,r=n*l/2,s=[],p=[],u=i[0],P=!1,c=i[0],g=1;g<i.length;g++){var S=i[g],h=SuperMapAlgoPlot.PlottingUtil.distance(u,S);if(!(h<a&&g!==i.length-1)){for(var f,y=parseInt(h/a),A=0;A<y;A++){f=SuperMapAlgoPlot.PlottingUtil.linePnt(u,S,a),P||(o=f,P=!0);var M=this.GetCosPts2D(u,f,a,r);s=p.length>1&&0===A?this.ClearCurvePts2D(c,u,S,p,M,s):s.concat(M),p=(p=[]).concat(M),c=u,u=f}g===i.length-1&&(f=i[i.length-1],M=this.GetCosPts2D(u,f,a,r),s=p.length>1&&M.length>1?this.ClearCurvePts2D(c,u,S,p,M,s):s.concat(M))}}return{pt:s,scalePt:o}}},{key:"GetCosPts2D",value:function(t,e,l,o){for(var i=[],n=SuperMapAlgoPlot.PlottingUtil.distance(t,e),a=l/30,r=0;r<n;r+=a){var s=r*(2*Math.PI/l),p=o*Math.cos(s),u=new SuperMapAlgoPlot.Point(r,p),P=180*SuperMapAlgoPlot.PlottingUtil.radian(t,e)/Math.PI,c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,u,P);i.push(c)}return i}},{key:"ClearCurvePts2D",value:function(t,e,l,o,i,n){for(var a=180*SuperMapAlgoPlot.PlottingUtil.radian(e,l)/Math.PI,r=180*SuperMapAlgoPlot.PlottingUtil.radian(e,t)/Math.PI-a;r<=0;)r+=360;var s=r/2,p=l;p=SuperMapAlgoPlot.PlottingUtil.rotateAngle(e,s*Math.PI/180,p);for(var u=SuperMapAlgoPlot.PlottingUtil.linePnt(e,p,1),P=0,c=0;c<o.length;c++)if(SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(e,u,o[c])){P=c;break}if(0!=P)for(var g=0;g<o.length-P;g++)n.slice(g,n.length-1);for(var S=0;S<i.length;S++)SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(e,u,i[S])&&n.push(i[S]);return n}}]),e}();SuperMapAlgoPlot.AlgoSymbol2091503=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol90217=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.1,l.scaleValues[1]=.2),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues[0]=.1,this.scaleValues[1]=.2),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e,l,o=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),i=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,n=this.scaleValues[0],a=this.scaleValues[1],r=n*o,s=[];for(e=90;e<=270;e+=3)l=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],r,r,e+i),s.push(l);var p=[];for(e=-90;e<=90;e+=3)l=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],r,r,e+i),p.push(l);var u=o*a,P=new SuperMapAlgoPlot.Point((s[0].x+p[p.length-1].x)/2,(s[0].y+p[p.length-1].y)/2),c=SuperMapAlgoPlot.PlottingUtil.linePnt(s[0],p[p.length-1],.5*(o-1.2*u)),g=SuperMapAlgoPlot.PlottingUtil.linePnt(p[p.length-1],s[0],.5*(o-1.2*u)),S=SuperMapAlgoPlot.PlottingUtil.radian(g,c)*SuperMapAlgoPlot.PlottingUtil.RTOD+180,h=[];if(h.push(c),h.push.apply(h,s),h.push.apply(h,p),h.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h),this.subSymbols.length>0)this.computeSubSymbol(this.subSymbols[0],P,.9*u,S-90);else{var f=new SuperMapAlgoPlot.Point(.3*u,0),y=new SuperMapAlgoPlot.Point(.4*u,0),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,f,S),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,y,S),b=[];b.push(A),b.push(M),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,b,{fill:!1,fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0});var d=new SuperMapAlgoPlot.Point(-.4*u,0),m=new SuperMapAlgoPlot.Point(-.3*u,0),v=new SuperMapAlgoPlot.Point(-.3*u,.2*u),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,d,S),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,m,S),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,v,S);(b=[]).push(A),b.push(O),b.push(L),b.push(U),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b,{fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0});var w=new SuperMapAlgoPlot.Point(-.2*u,0),_=SuperMapAlgoPlot.PlottingUtil.circlePoint(w,.3*u,.3*u,45),V=SuperMapAlgoPlot.PlottingUtil.circlePoint(w,.3*u,.3*u,315),T=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,w,S),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,_,S),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,V,S);(b=[]).push(E),b.push(T),b.push(x),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b,{fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0});var C=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.15*u,.15*u,45),j=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.15*u,.15*u,315),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,C,S),I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,j,S);(b=[]).push(Y),b.push(A),b.push(I),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b,{fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0})}this.scalePoints=[],this.addScalePoint(s[s.length-1]);var R=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,u,u,S+90);this.addScalePoint(R),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0==t){var i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}else if(1==t){var n=this.scaleValues[0]*o,a=SuperMapAlgoPlot.PlottingUtil.radian(l[0],l[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,r=SuperMapAlgoPlot.PlottingUtil.circlePoint(l[0],n,n,90+a),s=SuperMapAlgoPlot.PlottingUtil.circlePoint(l[1],n,n,90+a),p=new SuperMapAlgoPlot.Point((r.x+s.x)/2,(r.y+s.y)/2),u=SuperMapAlgoPlot.PlottingUtil.distance(p,e)/o;u>=.8&&(u=.8),this.scaleValues[1]=u}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol90217=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol90215=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),o=[];for(e=15;e<=75;e+=5)o.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,e));for(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o),o=[],e=105;e<=165;e+=5)o.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,e));for(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o),o=[],e=195;e<=255;e+=5)o.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,e));for(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o),o=[],e=285;e<=345;e+=5)o.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,e));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o);var i=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1]),n=new SuperMapAlgoPlot.Point(-.5*l,.2*l),a=new SuperMapAlgoPlot.Point(.5*l,.2*l),r=new SuperMapAlgoPlot.Point(.5*l,-.2*l),s=new SuperMapAlgoPlot.Point(-.5*l,-.2*l),p=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[0],n,i),u=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[0],a,i),P=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[0],r,i),c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[0],s,i),g=[];g.push(p),g.push(u),g.push(P),g.push(c),g.push(p);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,{lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,lineColor:"#0000ff"}),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol90215=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol90213=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.04,l.scaleValues[1]=.1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues[0]=.05,this.scaleValues[1]=.04),2===this.scaleValues.length&&this.scaleValues.push(.1),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=o,this.scaleValues[2]=.5*o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=180*SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI,r=SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt);if(0<this.subSymbols.length)this.computeSubSymbol(this.subSymbols[0],n,.7*r,a-90);else{r*=.7;var s=new SuperMapAlgoPlot.Point(.3*r,0),p=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,s,a),u=[],P=new SuperMapAlgoPlot.Point(-.6*r,0),c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,P,a);(u=[]).push(p),u.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u);var g=new SuperMapAlgoPlot.Point(-.35*r,0),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,.4*r,.4*r,45),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,.4*r,.4*r,315),f=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,g,a),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,S,a),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,h,a);(u=[]).push(y),u.push(f),u.push(A),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u)}for(var M=[],b=[],d=0;d<=i.startIndex;d++)M.push(e[d]);if(M.push(i.startPt),this.addStartPtArrow(M,this.scaleValues[2]),i.endIndex<=e.length){b.push(i.endPt);for(var m=i.endIndex+1;m<=e.length-1;m++)b.push(e[m]);this.addArrow(b,this.scaleValues[2])}for(var v=[],O=0;O<e.length;O++)v.push(e[O]);var U=l*this.scaleValues[1],L=SuperMapAlgoPlot.PlottingUtil.paraLine(v,U,!0),w=SuperMapAlgoPlot.PlottingUtil.paraLine(v,U,!1),_=[];for(O=0;O<L.length;O++)_.push(L[O]);var V=[];for(O=0;O<w.length;O++)V.push(w[O]);_=SuperMapAlgoPlot.PlottingUtil.clearSamePts(_),V=SuperMapAlgoPlot.PlottingUtil.clearSamePts(V),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,_),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,V);var T=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,e),E=SuperMapAlgoPlot.PlottingUtil.circlePoint(T.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a+90);this.addScalePoint(E,0),this.addScalePoint(w[0],1),this.finish()}}},{key:"addStartPtArrow",value:function(t,e){if(t.length<2)return t;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints)*e,o=t[0];if(t.length>=2){for(var i=-1,n=0;n<t.length-1;n++)if(l<SuperMapAlgoPlot.PlottingUtil.distance(o,t[n])){i=n;break}t.splice(1,i)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var a=t[1],r=t[0],s=l,p=SuperMapAlgoPlot.PlottingUtil.radian(r,a)*SuperMapAlgoPlot.PlottingUtil.RTOD,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,s,s,p+22.5),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,s,s,p-22.5);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[u,t[0],P],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0)}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(l.length<this.minEditPts)return;if(0===t){var n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o);if(-1===n.index)return;var a=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.4?a:.4}if(1===t){var r=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0]);this.scaleValues[1]=r/i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol90213=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol90212=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.1,l.scaleValues[1]=.2),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.1,this.scaleValues[1]=.2),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e,l,o=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),i=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,n=this.scaleValues[0],a=this.scaleValues[1],r=n*o,s=[];for(e=90;e<=270;e+=3)l=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],r,r,e+i),s.push(l);var p=[];for(e=-90;e<=90;e+=3)l=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],r,r,e+i),p.push(l);var u=o*a,P=new SuperMapAlgoPlot.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2),c=SuperMapAlgoPlot.PlottingUtil.linePnt(s[0],p[p.length-1],.5*(o-1.2*u)),g=SuperMapAlgoPlot.PlottingUtil.linePnt(p[p.length-1],s[0],o),S=[];S.push(c),S.push.apply(S,s),S.push.apply(S,p),S.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S);var h=SuperMapAlgoPlot.PlottingUtil.radian(g,c)*SuperMapAlgoPlot.PlottingUtil.RTOD;if(this.subSymbols.length>0)this.computeSubSymbol(this.subSymbols[0],P,.9*u,h-90);else{h+=180;var f=new SuperMapAlgoPlot.Point(.3*u,0),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,f,h),A=[],M=new SuperMapAlgoPlot.Point(-.6*u,0),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,M,h);(A=[]).push(y),A.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);var d=new SuperMapAlgoPlot.Point(-.35*u,0),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(d,.4*u,.4*u,45),v=SuperMapAlgoPlot.PlottingUtil.circlePoint(d,.4*u,.4*u,315),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,d,h),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,m,h),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,v,h);(A=[]).push(U),A.push(O),A.push(L),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A)}this.scalePoints=[],this.addScalePoint(s[s.length-1]);var w=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,u,u,h+90);this.addScalePoint(w),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0==t){var i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}else if(1==t){var n=this.scaleValues[0]*o,a=SuperMapAlgoPlot.PlottingUtil.circlePoint(l[0],n,n,90),r=SuperMapAlgoPlot.PlottingUtil.circlePoint(l[1],n,n,90),s=new SuperMapAlgoPlot.Point((a.x+r.x)/2,(a.y+r.y)/2),p=SuperMapAlgoPlot.PlottingUtil.distance(s,e)/o;p>=.8&&(p=.8),this.scaleValues[1]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol90212=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol8020301=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.25),l.scaleValues.push(.32),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{lineColorLimit:!0,strokeColor:"#ff00ff",strokeOpacity:1,color:"#ff00ff",opacity:1,lineColor:"#ff00ff"});var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=.4*i}var n=this.scaleValues[0],a=this.scaleValues[1],r=this.scaleValues[2],s=this.scaleValues[3],p=l*n,u=new SuperMapAlgoPlot.Point(o.x-l*r,o.y-l*s),P=new SuperMapAlgoPlot.Point(o.x-l*a,o.y-l*s);this.addText("!",u,4*p,0,"#ff00ff"),this.addText("!",P,4*p,0,"#ff00ff"),this.scalePoints=[];var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,p,p,0);this.addScalePoint(c),this.addScalePoint(o),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),o=[];if(o=3>=(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=(e.x-n.x)/i;this.scaleValues[2]=-a;var r=(e.y-n.y)/i;this.scaleValues[3]=-r}else if(1==t){a=this.scaleValues[2],r=this.scaleValues[3];var s=new SuperMapAlgoPlot.Point(n.x+i*a,n.y+i*r),p=SuperMapAlgoPlot.PlottingUtil.distance(s,new SuperMapAlgoPlot.Point(e.x,e.y))/2/i;this.scaleValues[0]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol8020301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol80203=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(.32),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{lineColorLimit:!0,strokeColor:"#008000",strokeOpacity:1,color:"#008000",opacity:1,lineColor:"#008000"});var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=.4*i}var n=this.scaleValues[0],a=this.scaleValues[2],r=this.scaleValues[3],s=l*n,p=new SuperMapAlgoPlot.Point(o.x-l*a,o.y-l*r);this.addText("!",p,4*s,0,"#008000"),this.scalePoints=[];var u=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,s,s,0);this.addScalePoint(u),this.addScalePoint(o),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),o=[];if(o=3>=(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=(e.x-n.x)/i;this.scaleValues[2]=-a;var r=(e.y-n.y)/i;this.scaleValues[3]=-r}else if(1==t){a=this.scaleValues[2],r=this.scaleValues[3];var s=new SuperMapAlgoPlot.Point(n.x+i*a,n.y+i*r),p=SuperMapAlgoPlot.PlottingUtil.distance(s,new SuperMapAlgoPlot.Point(e.x,e.y))/2/i;this.scaleValues[0]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol80203=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol60310=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 l=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 6!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.148),l.scaleValues.push(.4),l.scaleValues.push(.312),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}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,SuperMapAlgoPlot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),SuperMapAlgoPlot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var e=new SuperMapAlgoPlot.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(t.splice(0,2),t.unshift(e),this.subSymbols.length>0){var l;if(null==this.subSymbols[0].symbolData)return;l=this.subSymbols[0].symbolData.symbolSize.x;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=o*this.scaleValues[4],n=o*this.scaleValues[5],a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,t),r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,t),s=SuperMapAlgoPlot.PlottingUtil.radian(r.pts,a.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD+270,p=100*SuperMapAlgoPlot.PlottingUtil.distance(a.pts,r.pts)/l;if(null==this.subSymbols.length)return;if(null!=this.subSymbols[0].code){this.computeSubSymbol(this.subSymbols[0],r.pts,p,s-90);var u=SuperMapAlgoPlot.PlottingUtil.circlePoint(r.pts,p,p,s+90),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(r.pts,2*p,2*p,s+90),c=[];c.push(u),c.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c);var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.2*p,.2*p,s+90),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.05*p,.05*p,s),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.05*p,.05*p,s+180),f=[];f.push(g),f.push(S),f.push(h);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,f,{fillLimit:!0,fill:!0})}a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone()),r.pts.isScalePoint=!0,r.pts.tag=this.scalePoints.length,this.scalePoints.push(r.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMapAlgoPlot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var o=new SuperMapAlgoPlot.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),i=SuperMapAlgoPlot.PlottingUtil.clonePoints(l);i.splice(0,2),i.unshift(o);var n=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,i),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i);if(3===t&&null==n.pt&&(n.pt=o.clone()),-1==n.index&&4==t)this.scaleValues[t+1]=.01;else{var r=SuperMapAlgoPlot.PlottingUtil.clonePoints(i);r.splice(0,n.index+1),r.unshift(n.pt);var s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(r);a<s&&(s=a),this.scaleValues[t+1]=(a-s)/a,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5)}}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol60310=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol60306=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 l=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===l.scaleValues.length&&l.scaleValues.push(.1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0]*e,o=t[0].clone(),i=t[1].clone(),n=SuperMapAlgoPlot.PlottingUtil.linePnt(i,o,e+.2*e),a=SuperMapAlgoPlot.PlottingUtil.linePnt(o,i,e+.2*e),r=1.5*l,s=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,i,n),p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o,a),u=SuperMapAlgoPlot.PlottingUtil.paraLine(t,l,!0),P=SuperMapAlgoPlot.PlottingUtil.paraLine(t,l,!1),c=SuperMapAlgoPlot.PlottingUtil.linePnt(u[0],u[u.length-1],3*e/11),g=SuperMapAlgoPlot.PlottingUtil.linePnt(u[0],u[u.length-1],4*e/11),S=SuperMapAlgoPlot.PlottingUtil.linePnt(u[0],u[u.length-1],7*e/11),h=SuperMapAlgoPlot.PlottingUtil.linePnt(u[0],u[u.length-1],8*e/11),f=[];f.push(s.pntRight),f.push(u[0]),f.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var y=[];y.push(g),y.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y);var A=[];A.push(h),A.push(u[u.length-1]),A.push(p.pntLeft),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);var M=SuperMapAlgoPlot.PlottingUtil.linePnt(P[0],P[P.length-1],3*e/11),b=SuperMapAlgoPlot.PlottingUtil.linePnt(P[0],P[P.length-1],4*e/11),d=SuperMapAlgoPlot.PlottingUtil.linePnt(P[0],P[P.length-1],7*e/11),m=SuperMapAlgoPlot.PlottingUtil.linePnt(P[0],P[P.length-1],8*e/11),v=[];v.push(s.pntLeft),v.push(P[0]),v.push(M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v);var O=[];O.push(b),O.push(d),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,O);var U=[];U.push(m),U.push(P[P.length-1]),U.push(p.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol60306=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol60305=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=.05*SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.paraLine(t,e,!0),o=SuperMapAlgoPlot.PlottingUtil.paraLine(t,e,!1),i=l[0],n=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.2,l[0],l[1]),a=[];a.push(i),a.push(n),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a);var r=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.2+.2/3,l[0],l[1]),s=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.4+.2/3,l[0],l[1]),p=[];p.push(r),p.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p);var u=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.4+.2/3*2,l[0],l[1]),P=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(3*.2+.2/3*2,l[0],l[1]),c=[];c.push(u),c.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c);var g=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.8,l[0],l[1]),S=l[1],h=[];h.push(g),h.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var f=o[0],y=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.2,o[0],o[1]),A=[];A.push(f),A.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);var M=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.2+.2/3,o[0],o[1]),b=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.4+.2/3,o[0],o[1]),d=[];d.push(M),d.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d);var m=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.4+.2/3*2,o[0],o[1]),v=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(3*.2+.2/3*2,o[0],o[1]),O=[];O.push(m),O.push(v),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,O);var U=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.8,o[0],o[1]),L=o[1],w=[];w.push(U),w.push(L),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w);var _=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(1/3,t[0],t[1]),V=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(1/3*2,t[0],t[1]),T=[];T.push(_),T.push(V),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T);var E=SuperMapAlgoPlot.PlottingUtil.radian(_,V)*SuperMapAlgoPlot.PlottingUtil.RTOD,x=SuperMapAlgoPlot.PlottingUtil.distance(_,V),C=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.2,_,V),j=SuperMapAlgoPlot.PlottingUtil.circlePoint(C,.025*x,.025*x,E+90),Y=SuperMapAlgoPlot.PlottingUtil.circlePoint(C,.025*x,.025*x,E-90),I=[];I.push(j),I.push(Y),I.push(_);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,I,{fillLimit:!0,fill:!0}),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol60305=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol60304=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l.subText="隧",l}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,SuperMapAlgoPlot.AlgoSymbol2121505),e}();SuperMapAlgoPlot.AlgoSymbol60304=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2121505=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l.subText="火",l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],l=t[1],o=SuperMapAlgoPlot.PlottingUtil.distance(e,l),i=o*this.scaleValues[0],n=SuperMapAlgoPlot.PlottingUtil.linePnt(e,l,.5*o),a=SuperMapAlgoPlot.PlottingUtil.linePnt(n,e,2*i),r=SuperMapAlgoPlot.PlottingUtil.linePnt(n,l,2*i),s=[];s.push(t[0],a);var p=[];p.push(r,t[1]);var u=SuperMapAlgoPlot.PlottingUtil.paraLine(s,i,!0),P=SuperMapAlgoPlot.PlottingUtil.paraLine(s,i,!1),c=SuperMapAlgoPlot.PlottingUtil.paraLine(p,i,!0),g=SuperMapAlgoPlot.PlottingUtil.paraLine(p,i,!1);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var S=this.subText,h=SuperMapAlgoPlot.PlottingUtil.radian(e,l)*SuperMapAlgoPlot.PlottingUtil.RTOD,f=new SuperMapAlgoPlot.Point(n.x,n.y),y=SuperMapAlgoPlot.PlottingUtil.distance(a,r);this.addText(S,f,y,h),this.addScalePoint(u[0],0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0===t){var i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o;i>.24&&(i=.24),this.scaleValues[0]=i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol2121505=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol60301=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 l=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 l.subText="爆",l}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,SuperMapAlgoPlot.AlgoSymbol30020),e}();SuperMapAlgoPlot.AlgoSymbol60301=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol60205=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(90),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.05)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[2]=2*o}var i=l*this.scaleValues[0],n=this.scaleValues[1],a=l*this.scaleValues[2],r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,e);if(r.bfind){var s=r.pts.clone(),p=e[r.index].clone(),u=e[r.index+1].clone(),P=SuperMapAlgoPlot.PlottingUtil.radian(p,u)*SuperMapAlgoPlot.PlottingUtil.RTOD,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,a,a,P+n),g=[];g.push(r.pts),g.push(c);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,{lineTypeLimit:!0,surroundLineLimit:!0});var S=SuperMapAlgoPlot.PlottingUtil.radian(s,c)*SuperMapAlgoPlot.PlottingUtil.RTOD,h=new SuperMapAlgoPlot.Point(-.2*a,.05*a),f=new SuperMapAlgoPlot.Point(-.2*a,-.05*a),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,h,S),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,f,S),M=[];M.push(c),M.push(y),M.push(A);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,{lineTypeLimit:!0,surroundLineLimit:!0,fillLimit:!0,fill:!0});var b=.3*a,d=.6*a,m=i-d;m<0&&(m=0);var v=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(m,e);if(v.bfind){var O=[];O.push(v.pts);for(var U=v.index;U>=0;U--)O.push(e[U]);var L=[];L.push(v.pts);for(var w=v.index+1;w<e.length;w++)L.push(e[w]);var _=.6*b,V=[];if(O.length>1){var T=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(_,O);if(T.bfind){(V=[]).push(T.pts);for(var E=T.index+1;E<O.length;E++)V.push(O[E]);O=[],V.length>1&&(O=O.concat(V))}}if(O.length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,O),L.length>1){var x=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(_,L);if(x.bfind){(V=[]).push(x.pts);for(var C=x.index+1;C<L.length;C++)V.push(L[C]);L=[],V.length>1&&(L=L.concat(V))}}var j=i+d;j>l&&(j=l),j=l-j;for(var Y=[],I=L.length-1;I>=0;I--)Y.push(L[I]);var R=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(j,Y);if(R.bfind){var B=[];B.push(R.pts);for(var N=R.index;N>=0;N--)B.push(Y[N]);var D=[];D.push(R.pts);for(var k=R.index+1;k<Y.length;k++)D.push(Y[k]);if(B.length>1){var z=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(_,B);if(z.bfind){(V=[]).push(z.pts);for(var F=z.index+1;F<B.length;F++)V.push(B[F]);B=[],V.length>1&&(B=B.concat(V))}}if(B.length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,B),D.length>1){var G=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(_,D);if(G.bfind){(V=[]).push(G.pts);for(var W=G.index+1;W<D.length;W++)V.push(D[W]);D=[],V.length>1&&(D=D.concat(V))}}D.length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,D),this.subSymbols.length>0&&(this.computeSubSymbol(this.subSymbols[0],v.pts,b,P+n+180,.3),this.computeSubSymbol(this.subSymbols[1],R.pts,b,P+n+180,.3)),this.addScalePoint(r.pts,0),this.addScalePoint(c,1),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;if(0>t||1<t)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){for(var n=[],a=0;a<o.length;a++)n.push(o[a]);for(var r=-1,s=new SuperMapAlgoPlot.Point(0,0),p=0,u=0;u<n.length-1;u++){var P=[];P.push(n[u]),P.push(n[u+1]);var c=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,n[u],n[u+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(c,P).isOnPolyLine){var g=SuperMapAlgoPlot.PlottingUtil.distance(e,c);-1===r?(r=u,s=c,p=g):p>g&&(r=u,s=c,p=g)}}if(-1===r||r>n.length-1)return;for(var S=0,h=0;h<r;h++){var f=o[h].clone(),y=o[h+1].clone();S+=SuperMapAlgoPlot.PlottingUtil.distance(f,y)}var A=o[r].clone();if((S+=SuperMapAlgoPlot.PlottingUtil.distance(A,s))<0||S>i)return;this.scaleValues[0]=S/i}if(1===t){var M=i*this.scaleValues[0],b=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(M,o);if(!b.bfind)return;var d=b.pts.clone(),m=new SuperMapAlgoPlot.Point(o[b.index].x,o[b.index].y),v=new SuperMapAlgoPlot.Point(o[b.index+1].x,o[b.index+1].y),O=SuperMapAlgoPlot.PlottingUtil.radian(m,v)*SuperMapAlgoPlot.PlottingUtil.RTOD,U=SuperMapAlgoPlot.PlottingUtil.radian(d,e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[1]=U-O;var L=SuperMapAlgoPlot.PlottingUtil.distance(d,e);this.scaleValues[2]=L/i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol60205=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol60203=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length===this.minEditPts){for(var e=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,t),l=[],o=0;o<e.length;o++)l.push(e[o]);if(!(l.length<4)){var i=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]),n=SuperMapAlgoPlot.PlottingUtil.distance(l[1],l[2]),a=0;a=i<n?.2*i:.2*n;var r=SuperMapAlgoPlot.PlottingUtil.findPointInLine(l[0],l[1],.5*i-.5*a),s=SuperMapAlgoPlot.PlottingUtil.findPointInLine(l[0],l[1],.5*i+.5*a),p=SuperMapAlgoPlot.PlottingUtil.findPointInLine(l[1],l[2],.5*n-.5*a),u=SuperMapAlgoPlot.PlottingUtil.findPointInLine(l[1],l[2],.5*n+.5*a),P=SuperMapAlgoPlot.PlottingUtil.findPointInLine(l[2],l[3],.5*i-.5*a),c=SuperMapAlgoPlot.PlottingUtil.findPointInLine(l[2],l[3],.5*i+.5*a),g=SuperMapAlgoPlot.PlottingUtil.findPointInLine(l[3],l[0],.5*n-.5*a),S=SuperMapAlgoPlot.PlottingUtil.findPointInLine(l[3],l[0],.5*n+.5*a),h=[];h.push(S),h.push(l[0]),h.push(r),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var f=[];f.push(s),f.push(l[1]),f.push(p),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var y=[];y.push(u),y.push(l[2]),y.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y);var A=[];A.push(c),A.push(l[3]),A.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);var M=new SuperMapAlgoPlot.Point((l[0].x+l[2].x)/2,(l[0].y+l[2].y)/2);this.addText("避",M,3*a,0),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol60203=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6012702=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),!(t.length<this.minEditPts)){1==this.scaleValues.length&&this.scaleValues.push(this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[0]=.6*this.getSubSymbolScaleValue(),this.scaleValues[1]=this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);for(var l=0,o=0;o<e.length-1;o++)l+=SuperMapAlgoPlot.PlottingUtil.distance(e[o],e[o+1]);var i=.5*l,n=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,i);if(-1!==n.index){for(var a=n.pt,r=[],s=0,p=0;p<n.index+1;p++)r.push(e[p]),p>0&&(s+=SuperMapAlgoPlot.PlottingUtil.distance(r[p],r[p-1]));var u,P,c=i-s,g=l*this.scaleValues[1],S=[];if(c>=g){u=SuperMapAlgoPlot.PlottingUtil.linePnt(a,e[n.index],g),r.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r),P=SuperMapAlgoPlot.PlottingUtil.linePnt(a,e[n.index+1],g),S.push(P);for(var h=e.length,f=n.index+1;f<h;++f)S.push(e[f]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S)}else{for(var y,A,M=-1,b=r.length-1;b>=0;b--)if(y=new SuperMapAlgoPlot.Point(r[b].x,r[b].y),A=new SuperMapAlgoPlot.Point(a.x,a.y),SuperMapAlgoPlot.PlottingUtil.distance(y,A)>g){M=b;break}if(-1==M)return;r.splice(M+1,r.length-1-M),u=SuperMapAlgoPlot.PlottingUtil.linePnt(a,e[M],g),r.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r);for(var d=-1,m=n.index;m<e.length;m++)if(y=new SuperMapAlgoPlot.Point(e[m].x,e[m].y),A=new SuperMapAlgoPlot.Point(a.x,a.y),SuperMapAlgoPlot.PlottingUtil.distance(y,A)>g){d=m;break}if(-1==d)return;P=SuperMapAlgoPlot.PlottingUtil.linePnt(a,e[d],g),S.push(P);for(var v=d+1;v<e.length;++v)S.push(e[v]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S)}if(!(r.length<2)){for(var O=0,U=0;U<t.length-1;U++)O+=SuperMapAlgoPlot.PlottingUtil.distance(t[U],t[U+1]);var L=O*this.scaleValues[0],w=new SuperMapAlgoPlot.Point(r[0].x,r[0].y),_=new SuperMapAlgoPlot.Point(r[1].x,r[1].y),V=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(L,_,w),T=[];if(T.push(V.pntLeft),T.push(V.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T),!(S.length<2)){var E=new SuperMapAlgoPlot.Point(S[S.length-1].x,S[S.length-1].y),x=new SuperMapAlgoPlot.Point(S[S.length-2].x,S[S.length-2].y),C=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(L,x,E);(T=[]).push(C.pntLeft),T.push(C.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T);var j=u,Y=P,I=180*SuperMapAlgoPlot.PlottingUtil.radian(j,Y)/Math.PI+90;SuperMapAlgoPlot.PlottingUtil.distance(j,Y),new SuperMapAlgoPlot.Point((u.x+P.x)/2,(u.y+P.y)/2);if(this.subSymbols.length>0){if(null!==this.subSymbols[0].symbolData)for(var R=0;R<this.subSymbols[0].symbolData.innerCells.length;R++)26===this.subSymbols[0].symbolData.innerCells[R].type&&this.subSymbols[0].symbolData.innerCells.splice(R,1);this.computeSubSymbol(this.subSymbols[0],a,g,I)}this.addScalePoint(V.pntLeft),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}}}]),e}();SuperMapAlgoPlot.AlgoSymbol6012702=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6011501=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.3),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){3!=this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(.3),this.scaleValues.push(.1)),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),l=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD+180,o=e*this.scaleValues[1],i=e*this.scaleValues[2],n=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],i),a=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],i+o/2),r=[];r.push(t[0]),r.push(n),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r);this.computeSubSymbol(this.subSymbols[0],a,o,l);var s=[],p=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],i+o);s.push(p),s.push(t[1]),this.addArrow(s,this.scaleValues[0]);var u=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],1.3*i+o),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,.3*i,.3*i,l+90),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,.3*i,.3*i,l-90);(r=[]).push(P),r.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r);var g=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],e-i),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,.3*i,.3*i,l+90),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,.3*i,.3*i,l-90);(r=[]).push(S),r.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r);var f=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],2*i+o),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,1.5*i,1.5*i,l-80),A=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],3*i+o),M=SuperMapAlgoPlot.PlottingUtil.circlePoint(A,1.5*i,1.5*i,l-80);(r=[]).push(f),r.push(y),r.push(A),r.push(M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r);var b=[],d=[];b.push(A),b.push(M),this.addArrow(b,.3*this.scaleValues[0]);var m=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],.5*e+2*i),v=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,1.5*i,1.5*i,l-80),O=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],.5*e+3*i),U=SuperMapAlgoPlot.PlottingUtil.circlePoint(O,1.5*i,1.5*i,l-80);(r=[]).push(m),r.push(v),r.push(O),r.push(U),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r),d.push(O),d.push(U),this.addArrow(d,.3*this.scaleValues[0]),this.scalePoints=[],this.scalePoints.push(p),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<2)){SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0===t){var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]),i=.18*o,n=(.9*o-SuperMapAlgoPlot.PlottingUtil.distance(e,l[1]))/i*.18;0<n&&n<.37&&(this.scaleValues[1]=n)}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol6011501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol60115=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.3),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){3!=this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(.3),this.scaleValues.push(.1)),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),l=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD+180,o=e*this.scaleValues[1],i=e*this.scaleValues[2],n=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],i),a=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],i+o/2),r=[];r.push(t[0]),r.push(n),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r);this.computeSubSymbol(this.subSymbols[0],a,o,l);var s=[],p=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],i+o);s.push(p),s.push(t[1]),this.addArrow(s,this.scaleValues[0]);var u=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],1.3*i+o),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,.3*i,.3*i,l+90),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,.3*i,.3*i,l-90);(r=[]).push(P),r.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r);var g=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],e-i),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,.3*i,.3*i,l+90),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,.3*i,.3*i,l-90);(r=[]).push(S),r.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r);var f=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],2*i+o),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,1.5*i,1.5*i,l-80),A=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],3*i+o),M=SuperMapAlgoPlot.PlottingUtil.circlePoint(A,1.5*i,1.5*i,l-80);(r=[]).push(f),r.push(y),r.push(A),r.push(M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r);var b=new SuperMapAlgoPlot.Point((f.x+A.x)/2,(f.y+A.y)/2),d=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,1.6*i,1.6*i,l-80),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(b,1.65*i,1.65*i,l-75),v=SuperMapAlgoPlot.PlottingUtil.circlePoint(A,1.6*i,1.6*i,l-80),O=[],U=[];O.push(d),O.push(m),O.push(v);var L=[],w=[];L=SuperMapAlgoPlot.PlottingUtil.getBeizerCtrlPt(O),w=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(L),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w);var _=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],.5*e+2*i),V=SuperMapAlgoPlot.PlottingUtil.circlePoint(_,1.5*i,1.5*i,l-80),T=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],.5*e+3*i),E=SuperMapAlgoPlot.PlottingUtil.circlePoint(T,1.5*i,1.5*i,l-80);(r=[]).push(_),r.push(V),r.push(T),r.push(E),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r);var x=new SuperMapAlgoPlot.Point((_.x+T.x)/2,(_.y+T.y)/2);d=SuperMapAlgoPlot.PlottingUtil.circlePoint(_,1.6*i,1.6*i,l-80),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(x,1.65*i,1.65*i,l-75),v=SuperMapAlgoPlot.PlottingUtil.circlePoint(T,1.6*i,1.6*i,l-85),U.push(d),U.push(m),U.push(v),L=[],w=[],L=SuperMapAlgoPlot.PlottingUtil.getBeizerCtrlPt(U),w=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(L),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w),this.scalePoints=[],this.scalePoints.push(p),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<2)){SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0===t){var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]),i=.18*o,n=(.9*o-SuperMapAlgoPlot.PlottingUtil.distance(e,l[1]))/i*.18;0<n&&n<.37&&(this.scaleValues[1]=n)}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol60115=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol60108=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(15),l.scaleValues.push(15),l.scaleValues.push(1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){4!=this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(15),this.scaleValues.push(15),this.scaleValues.push(1)),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());for(var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),l=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,o=e*this.scaleValues[0]*this.scaleValues[3],i=e-o,n=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],t[0],e-i/2),a=[],r=0;r<=360;r+=5)a.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],o,o,r));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a),this.addText("展",t[1],1.5*o,l,"#000000"),this.computeSubSymbol(this.subSymbols[0],n,i,l+180);var s=[],p=[];s.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],o,o,l+this.scaleValues[1])),s.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],.5*i,.5*i,l+this.scaleValues[1])),this.addArrow(s,this.scaleValues[0]),p.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],o,o,l-this.scaleValues[2])),p.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],.5*i,.5*i,l-this.scaleValues[2])),this.addArrow(p,this.scaleValues[0]),this.scalePoints=[],this.scalePoints.push(new SuperMapAlgoPlot.Point(s[1].x,s[1].y)),this.scalePoints.push(new SuperMapAlgoPlot.Point(p[1].x,p[1].y)),this.scalePoints.push(new SuperMapAlgoPlot.Point(p[0].x,p[0].y)),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<2)){if(0==t){var o=SuperMapAlgoPlot.PlottingUtil.dirAngle(l[0],l[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,i=SuperMapAlgoPlot.PlottingUtil.dirAngle(l[1],e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[1]=i-o}if(1==t){o=SuperMapAlgoPlot.PlottingUtil.dirAngle(l[0],l[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,i=SuperMapAlgoPlot.PlottingUtil.dirAngle(l[1],e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[2]=o-i}if(2==t){var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l)*this.scaleValues[0];(i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[1]))/n<=4&&(this.scaleValues[3]=i/n)}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol60108=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5035501=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.getBeizerCtrlPt(t),l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===this.scaleValues.length&&(this.scaleValues[0]=.05,this.scaleValues[1]=.02,this.scaleValues[2]=0),!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.2||i<=0)&&(i=.2),this.scaleValues[0]=i,this.scaleValues[1]=.5*this.getSubSymbolScaleValue(),this.scaleValues[2]=0}for(var n=this.getLinePts(l,this.scaleValues[0],.5),a=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),r=SuperMapAlgoPlot.PlottingUtil.dirAngle(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,s=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt),p=[],u=0;u<=n.startIndex;u++)p.push(l[u]);p.push(new SuperMapAlgoPlot.Point(n.startPt.x,n.startPt.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p);var P=[];if(n.endIndex<=l.length){P.push(new SuperMapAlgoPlot.Point(n.endPt.x,n.endPt.y));for(var c=n.endIndex+1;c<=l.length-1;c++)P.push(l[c]);this.addArrow(P,this.scaleValues[1])}if(this.subSymbols.length>0)this.computeSubSymbol(this.subSymbols[0],centerPoint,.8*s,r-180);else{var g=new SuperMapAlgoPlot.Point(0,.2*s),S=new SuperMapAlgoPlot.Point(s,.2*s),h=new SuperMapAlgoPlot.Point(s,-.2*s),f=new SuperMapAlgoPlot.Point(0,-.2*s),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p[p.length-1],g,r),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p[p.length-1],S,r),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p[p.length-1],h,r),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p[p.length-1],f,r),d=[];d.push(y),d.push(A),d.push(M),d.push(b),d.push(y);var m={lineColorLimit:!0,strokeColor:"#008000",strokeOpacity:1,color:"#008000",opacity:1,lineColor:"#008000"};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,d,m);var v=new SuperMapAlgoPlot.Point(.5*s,.2*s),O=new SuperMapAlgoPlot.Point(.5*s,-.2*s),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p[p.length-1],v,r),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p[p.length-1],O,r);(d=[]).push(U),d.push(L),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,m);var w=0,_=0,V=0,T=0,E=0,x=this.scaleValues[1];x=.7*SuperMapAlgoPlot.PlottingUtil.distance(p[0],p[p.length-1]);var C=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(x,p);if(!C.bfind)return;w=C.index;var j,Y,I,R=C.pts,B=.1*s,N=(g=new SuperMapAlgoPlot.Point(p[w].x,p[w].y),S=new SuperMapAlgoPlot.Point(R.x,R.y),SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(B,g,S));T=N.pntLeft.x,E=N.pntLeft.y,_=N.pntRight.x,V=N.pntRight.y,0==(j=this.scaleValues[2])?Y=new SuperMapAlgoPlot.Point(_,V):1==j&&(Y=new SuperMapAlgoPlot.Point(T,E)),(d=[]).push(Y),d.push(R),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,d),_=0,V=0,T=0,E=0;var D;D=.3*SuperMapAlgoPlot.PlottingUtil.distance(p[0],p[p.length-1]);var k=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(D,P);if(!k.bfind)return;w=k.index,I=k.pts;h=new SuperMapAlgoPlot.Point(P[w].x,P[w].y),f=new SuperMapAlgoPlot.Point(I.x,I.y);var z,F=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(B,h,f);T=F.pntLeft.x,E=F.pntLeft.y,_=F.pntRight.x,V=F.pntRight.y,0==j?z=new SuperMapAlgoPlot.Point(_,V):1==j&&(z=new SuperMapAlgoPlot.Point(T,E)),(d=[]).push(z),d.push(I),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,d),this.scalePoints=[];var G=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,.5*s,.5*s,r+90);this.addScalePoint(G,0),this.addScalePoint(z,1)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=this.scaleValues[0],n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0==t){var a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*n,o),r=2*SuperMapAlgoPlot.PlottingUtil.distance(a.pts,e)/n;this.scaleValues[0]=r<=.3?r:.3}else{var s=n*(.5+.5*i),p=(t=-1,SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,o));if(!p.bfind)return;t=p.index,p.pts;var u=new SuperMapAlgoPlot.Point(o[t].x,o[t].y),P=new SuperMapAlgoPlot.Point(o[t+1].x,o[t+1].y),c=new SuperMapAlgoPlot.Point(e.x,e.y),g=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(u,P,c);this.scaleValues[2]=g?0:1}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol5035501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.SuperMap=window.SuperMap=window.SuperMap||{};e.Plot=o.Plot=o.Plot||{},e.SuperMapAlgoPlot=window.SuperMapAlgoPlot=o.Plot||{}},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbol50355=void 0;var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}(),i=l(112);var n=e.AlgoSymbol50355=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}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,i.SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=i.SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=i.SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=i.SuperMapAlgoPlot.PlottingUtil.getBeizerCtrlPt(t),l=i.SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(e),o=i.SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.02):1===this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue()),!this.isEdit){var n=this.getDefaultSubSymbolSize()/o;(n>.2||n<=0)&&(n=.2),this.scaleValues[0]=n,this.scaleValues[1]=.5*this.getSubSymbolScaleValue()}for(var a=this.getLinePts(l,this.scaleValues[0],.5),r=new i.SuperMapAlgoPlot.Point((a.startPt.x+a.endPt.x)/2,(a.startPt.y+a.endPt.y)/2),s=i.SuperMapAlgoPlot.PlottingUtil.dirAngle(a.startPt,a.endPt)*i.SuperMapAlgoPlot.PlottingUtil.RTOD,p=i.SuperMapAlgoPlot.PlottingUtil.distance(a.startPt,a.endPt),u=[],P=0;P<=a.startIndex;P++)u.push(l[P]);u.push(new i.SuperMapAlgoPlot.Point(a.startPt.x,a.startPt.y)),this.addCell(i.SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u);var c=[];if(a.endIndex<=l.length){c.push(new i.SuperMapAlgoPlot.Point(a.endPt.x,a.endPt.y));for(var g=a.endIndex+1;g<=l.length-1;g++)c.push(l[g]);this.addArrow(c,this.scaleValues[2])}this.scalePoints=[];var S=i.SuperMapAlgoPlot.PlottingUtil.circlePoint(r,.5*p,.5*p,s+90);if(this.addScalePoint(S,0),this.subSymbols.length>0)this.computeSubSymbol(this.subSymbols[0],centerPoint,.8*p,s-180);else{var h=new i.SuperMapAlgoPlot.Point(0,.2*p),f=new i.SuperMapAlgoPlot.Point(p,.2*p),y=new i.SuperMapAlgoPlot.Point(p,-.2*p),A=new i.SuperMapAlgoPlot.Point(0,-.2*p),M=i.SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u[u.length-1],h,s),b=i.SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u[u.length-1],f,s),d=i.SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u[u.length-1],y,s),m=i.SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u[u.length-1],A,s),v=[];v.push(M),v.push(b),v.push(d),v.push(m),v.push(M);var O={lineColorLimit:!0,strokeColor:"#008000",strokeOpacity:1,color:"#008000",opacity:1,lineColor:"#008000"};this.addCell(i.SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,v,O);var U=new i.SuperMapAlgoPlot.Point(.5*p,.2*p),L=new i.SuperMapAlgoPlot.Point(.5*p,-.2*p),w=i.SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u[u.length-1],U,s),_=i.SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u[u.length-1],L,s);(v=[]).push(w),v.push(_),this.addCell(i.SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,O)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=i.SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=i.SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=i.SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=i.SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n=i.SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),a=i.SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*n,o),r=2*i.SuperMapAlgoPlot.PlottingUtil.distance(a.pts,e)/n;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();i.SuperMapAlgoPlot.AlgoSymbol50355=n},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5035401=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.5)),l.subText="冰",l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){2!=this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(.5)),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e,l=[];e=SuperMapAlgoPlot.PlottingUtil.getBeizerCtrlPt(t),l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(e),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o,i,n=.02*SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);o=SuperMapAlgoPlot.PlottingUtil.paraLine(l,n,!0),i=SuperMapAlgoPlot.PlottingUtil.paraLine(l,n,!1);var a={lineColorLimit:!0,strokeColor:"#585756",strokeOpacity:1,color:"#585756",opacity:1};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o,a),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i,a),this.addSubSymbolAndLine(l,o,i),this.finish()}}},{key:"addSubSymbolAndLine",value:function(t,e,l){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n,a,r,s,p,u,P,c=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),g=.02*c,S=.1*c,h=.45*c,f=.55*c,y=.9*c,A=.5*c;i=(P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(S,t)).index,a=P.pts,n=(P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(h,t)).index,r=P.pts,n=(P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(A,t)).index,u=P.pts;var M,b,d,m,v,O,U=[],L=[];if(t.length>2){for(var w=i;w<n;w++)U.push(t[w]);M=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[i],t[i+1])*SuperMapAlgoPlot.PlottingUtil.RTOD}else U.push(a),U.push(r),M=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD;if(i=(P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(f,t,f)).index,s=P.pts,n=(P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(y,t,y)).index,p=P.pts,t.length>2){for(var _=i;_<n;_++)L.push(t[_]);b=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[n-1],t[n])*SuperMapAlgoPlot.PlottingUtil.RTOD}else L.push(s),L.push(p),b=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD;d=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,1.2*g,1.2*g,M+90),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,1.2*g,1.2*g,M+270),v=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,1.2*g,1.2*g,b+90),O=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,1.2*g,1.2*g,b+270);var V=[];V.push(d),V.push(m);var T={lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,V,T),(V=[]).push(v),V.push(O),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,V,T);var E=new SuperMapAlgoPlot.Point((d.x+m.x)/2,(d.y+m.y)/2),x=new SuperMapAlgoPlot.Point((v.x+O.x)/2,(v.y+O.y)/2);if(U[0]=E,this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,T),L[L.length-1]=x,this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,L,T),this.subText){var C=SuperMapAlgoPlot.PlottingUtil.distance(U[U.length-1],L[0]),j=SuperMapAlgoPlot.PlottingUtil.dirAngle(U[U.length-1],L[0])*SuperMapAlgoPlot.PlottingUtil.RTOD,Y=this.subText;this.addText(Y,u,C,j,"#0000ff")}j=SuperMapAlgoPlot.PlottingUtil.dirAngle(x,o[o.length-1])*SuperMapAlgoPlot.PlottingUtil.RTOD;var I=100*this.scaleValues[0];0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],o[o.length-1],I,j);var R,B,N=[];i=(P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.95*c,t)).index,R=P.pts,i=(P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.85*c,t)).index,B=P.pts,N.push(R),N.push(B),this.addArrow(N,.2*this.scaleValues[0])}},{key:"computeScaleValues",value:function(t,e){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length}}]),e}();SuperMapAlgoPlot.AlgoSymbol5035401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50354=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.5)),l.subText="冰",l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){2!=this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(.5)),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e,l=[];e=SuperMapAlgoPlot.PlottingUtil.getBeizerCtrlPt(t),l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(e),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o,i,n=.02*SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);o=SuperMapAlgoPlot.PlottingUtil.paraLine(l,n,!0),i=SuperMapAlgoPlot.PlottingUtil.paraLine(l,n,!1);var a={lineColorLimit:!0,strokeColor:"#585756",strokeOpacity:1,color:"#585756",opacity:1};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o,a),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i,a),this.addMidLine(l,o,i),this.finish()}}},{key:"addMidLine",value:function(t,e,l){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n,a,r,s,p,u,P,c=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),g=.02*c,S=.1*c,h=.45*c,f=.55*c,y=.9*c,A=.5*c;i=(P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(S,t)).index,a=P.pts,n=(P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(h,t)).index,r=P.pts,n=(P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(A,t)).index,u=P.pts;var M,b,d,m,v,O,U=[],L=[];if(t.length>2){for(var w=i;w<n;w++)U.push(t[w]);M=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[i],t[i+1])*SuperMapAlgoPlot.PlottingUtil.RTOD}else U.push(a),U.push(r),M=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD;if(i=(P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(f,t,f)).index,s=P.pts,n=(P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(y,t,y)).index,p=P.pts,t.length>2){for(var _=i;_<n;_++)L.push(t[_]);b=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[n-1],t[n])*SuperMapAlgoPlot.PlottingUtil.RTOD}else L.push(s),L.push(p),b=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD;d=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,1.2*g,1.2*g,M+90),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,1.2*g,1.2*g,M+270),v=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,1.2*g,1.2*g,b+90),O=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,1.2*g,1.2*g,b+270);var V=[];V.push(d),V.push(m);var T={lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,V,T),(V=[]).push(v),V.push(O),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,V,T);var E,x,C,j=new SuperMapAlgoPlot.Point((d.x+m.x)/2,(d.y+m.y)/2),Y=new SuperMapAlgoPlot.Point((v.x+O.x)/2,(v.y+O.y)/2);if(U[0]=j,this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,T),L[L.length-1]=Y,this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,L,T),this.subText){var I=SuperMapAlgoPlot.PlottingUtil.distance(U[U.length-1],L[0]),R=SuperMapAlgoPlot.PlottingUtil.dirAngle(U[U.length-1],L[0])*SuperMapAlgoPlot.PlottingUtil.RTOD,B=this.subText;this.addText(B,u,I,R,"#0000ff")}E=SuperMapAlgoPlot.PlottingUtil.dirAngle(j,e[0])*SuperMapAlgoPlot.PlottingUtil.RTOD,x=SuperMapAlgoPlot.PlottingUtil.dirAngle(j,l[0])*SuperMapAlgoPlot.PlottingUtil.RTOD,C=SuperMapAlgoPlot.PlottingUtil.dirAngle(j,o[0])*SuperMapAlgoPlot.PlottingUtil.RTOD;var N=[];N.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(j,1.1*S,1.1*S,E)),N.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(j,1.1*S,1.1*S,C)),N.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(j,1.1*S,1.1*S,x));var D=[];D=SuperMapAlgoPlot.PlottingUtil.getBeizerCtrlPt(N),D=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(D),D=SuperMapAlgoPlot.PlottingUtil.clearSamePts(D),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,D);var k=[];k.push(N[1]),k.push(j),this.addArrow(k,.2*this.scaleValues[0]);var z=SuperMapAlgoPlot.PlottingUtil.distance(t[e.length-2],t[t.length-1]),F=[];F.push(SuperMapAlgoPlot.PlottingUtil.linePnt(e[e.length-2],e[e.length-1],z+.3*g)),F.push(SuperMapAlgoPlot.PlottingUtil.linePnt(t[e.length-2],t[t.length-1],z+.4*g)),F.push(SuperMapAlgoPlot.PlottingUtil.linePnt(l[l.length-2],l[l.length-1],z+.3*g)),D=[],D=SuperMapAlgoPlot.PlottingUtil.getBeizerCtrlPt(F),D=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(D),D=SuperMapAlgoPlot.PlottingUtil.clearSamePts(D),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,D),(k=[]).push(F[1]);for(var G=t.length-1;G>=P.index;G--)k.push(t[G]);this.addArrow(k,.2*this.scaleValues[0])}},{key:"computeScaleValues",value:function(t,e){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length}}]),e}();SuperMapAlgoPlot.AlgoSymbol50354=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50352=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 l=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 6!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.148),l.scaleValues.push(.4),l.scaleValues.push(.312),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}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,SuperMapAlgoPlot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),SuperMapAlgoPlot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var e=new SuperMapAlgoPlot.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(t.splice(0,2),t.unshift(e),this.subSymbols.length>0){var l;if(null==this.subSymbols[0].symbolData)return;l=this.subSymbols[0].symbolData.symbolSize.x;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=o*this.scaleValues[4],n=o*this.scaleValues[5],a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,t),r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,t),s=SuperMapAlgoPlot.PlottingUtil.radian(r.pts,a.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD+270,p=60*SuperMapAlgoPlot.PlottingUtil.distance(a.pts,r.pts)/l,u=new SuperMapAlgoPlot.Point((r.pts.x+a.pts.x)/2,(a.pts.y+r.pts.y)/2);if(null==this.subSymbols.length)return;if(null!=this.subSymbols[0].code){this.computeSubSymbol(this.subSymbols[0],u,p,s+90);var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(r.pts,p,p,s+90),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(r.pts,2*p,2*p,s+90),g=[];g.push(P),g.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.2*p,.2*p,s+90),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.05*p,.05*p,s),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.05*p,.05*p,s+180),y=[];y.push(S),y.push(h),y.push(f);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,y,{fillLimit:!0,fill:!0})}a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone()),r.pts.isScalePoint=!0,r.pts.tag=this.scalePoints.length,this.scalePoints.push(r.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMapAlgoPlot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var o=new SuperMapAlgoPlot.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),i=SuperMapAlgoPlot.PlottingUtil.clonePoints(l);i.splice(0,2),i.unshift(o);var n=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,i),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i);if(-1===n.index&&3===t&&(n.pt=o.clone()),-1==n.index&&4==t)this.scaleValues[t+1]=.01;else{var r=SuperMapAlgoPlot.PlottingUtil.clonePoints(i);r.splice(0,n.index+1),r.unshift(n.pt);var s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(r);a<s&&(s=a),this.scaleValues[t+1]=(a-s)/a,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5)}}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol50352=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50344=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues[0]=.1),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e,l,o=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),i=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,n=this.scaleValues[0]*o,a=[];for(e=90;e<=270;e+=3)l=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],n,n,e+i),a.push(l);var r=[];for(e=-90;e<=90;e+=3)l=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],n,n,e+i),r.push(l);var s=new SuperMapAlgoPlot.Point((a[0].x+r[r.length-1].x)/2,(a[0].y+r[r.length-1].y)/2),p=SuperMapAlgoPlot.PlottingUtil.linePnt(a[0],r[r.length-1],o),u=SuperMapAlgoPlot.PlottingUtil.linePnt(r[r.length-1],a[0],o),P=(SuperMapAlgoPlot.PlottingUtil.radian(u,p),SuperMapAlgoPlot.PlottingUtil.RTOD,[]);P.push(p),P.push.apply(P,a),P.push.apply(P,r),P.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);s=new SuperMapAlgoPlot.Point((a[0].x+r[r.length-1].x)/2,(a[0].y+r[r.length-1].y)/2);var c=SuperMapAlgoPlot.PlottingUtil.dirAngle(u,p)*SuperMapAlgoPlot.PlottingUtil.RTOD,g=new SuperMapAlgoPlot.Point(-.06*o,.02*o),S=new SuperMapAlgoPlot.Point(-.06*o,-.02*o),h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,g,c+180),f=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,S,c+180),y=[];y.push(s),y.push(h),y.push(f);var A={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,y,A);var M=new SuperMapAlgoPlot.Point((a[a.length-1].x+r[0].x)/2,(a[a.length-1].y+r[0].y)/2),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(M,g,c),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(M,S,c);(y=[]).push(M),y.push(b),y.push(d),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,y,A),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol50344=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol5034303=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 l=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 l.subText="R",l}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,SuperMapAlgoPlot.AlgoSymbol50343),e}();SuperMapAlgoPlot.AlgoSymbol5034303=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol5034302=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 l=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 l.subText="D",l}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,SuperMapAlgoPlot.AlgoSymbol50343),e}();SuperMapAlgoPlot.AlgoSymbol5034302=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol5034301=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 l=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 l.subText="P",l}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,SuperMapAlgoPlot.AlgoSymbol50343),e}();SuperMapAlgoPlot.AlgoSymbol5034301=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50343=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 l=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 l.subText="",l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,t);var e={surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE,fillLimit:!0,fillColorLimit:!0,fill:!0,fillColor:"#e99678",lineWidth:1e-6,lineColorLimit:!0,strokeColor:"#e99678",strokeOpacity:1,color:"#e99678",opacity:0,lineColor:"#e99678"},l=t[0],o=t[1],i=[],n=new SuperMapAlgoPlot.Point(l.x,l.y),a=new SuperMapAlgoPlot.Point(l.x,o.y),r=new SuperMapAlgoPlot.Point(o.x,o.y),s=new SuperMapAlgoPlot.Point(o.x,l.y),p=0;p=Math.abs(t[1].x-t[0].x)<Math.abs(t[1].y-t[0].y)?.1*Math.abs(t[1].x-t[0].x):.1*Math.abs(t[1].y-t[0].y);var u=Math.abs(Math.abs(t[1].y)-Math.abs(t[0].y))/10,P=SuperMapAlgoPlot.PlottingUtil.dirAngle(s,o)*SuperMapAlgoPlot.PlottingUtil.RTOD,c=(Math.abs(Math.abs(o.y)-Math.abs(u)),SuperMapAlgoPlot.PlottingUtil.circlePoint(s,u,u,P));(i=[]).push(new SuperMapAlgoPlot.Point(l.x,l.y)),i.push(new SuperMapAlgoPlot.Point(l.x,c.y)),i.push(new SuperMapAlgoPlot.Point(c.x,c.y)),i.push(new SuperMapAlgoPlot.Point(c.x,l.y)),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,i,e);var g=SuperMapAlgoPlot.PlottingUtil.dirAngle(r,s)*SuperMapAlgoPlot.PlottingUtil.RTOD,S=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,u,u,g);(i=[]).push(new SuperMapAlgoPlot.Point(a.x,a.y)),i.push(new SuperMapAlgoPlot.Point(a.x,S.y)),i.push(new SuperMapAlgoPlot.Point(S.x,S.y)),i.push(new SuperMapAlgoPlot.Point(S.x,a.y)),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,i,e);var h=SuperMapAlgoPlot.PlottingUtil.dirAngle(a,r)*SuperMapAlgoPlot.PlottingUtil.RTOD,f=new SuperMapAlgoPlot.Point(l.x,c.y),y=new SuperMapAlgoPlot.Point(a.x,S.y),A=SuperMapAlgoPlot.PlottingUtil.circlePoint(y,u,u,h);(i=[]).push(new SuperMapAlgoPlot.Point(f.x,f.y)),i.push(new SuperMapAlgoPlot.Point(f.x,A.y)),i.push(new SuperMapAlgoPlot.Point(A.x,A.y)),i.push(new SuperMapAlgoPlot.Point(A.x,f.y)),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,i,e);var M=SuperMapAlgoPlot.PlottingUtil.dirAngle(r,a)*SuperMapAlgoPlot.PlottingUtil.RTOD,b=new SuperMapAlgoPlot.Point(c.x,c.y),d=new SuperMapAlgoPlot.Point(S.x,S.y),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(d,u,u,M);if((i=[]).push(new SuperMapAlgoPlot.Point(b.x,b.y)),i.push(new SuperMapAlgoPlot.Point(b.x,m.y)),i.push(new SuperMapAlgoPlot.Point(m.x,m.y)),i.push(new SuperMapAlgoPlot.Point(m.x,b.y)),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,i,e),(i=[]).push(n),i.push(a),i.push(r),i.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,i),this.subText){var v=this.subText,O=new SuperMapAlgoPlot.Point((t[1].x+t[0].x)/2,(t[1].y+t[0].y)/2);this.addText(v,O,10*p,0,"#000000")}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol50343=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50342=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=2*i}var n=this.scaleValues[0],a=o*this.scaleValues[2],r=o*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(l.x+a,l.y+r),p=o*n;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],s,p,0);var u=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,180);this.addScalePoint(u,0),this.addScalePoint(s,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===n)return;var a=0,r=0,s=0,p=0;if(0===t){s=n*(a=this.scaleValues[2]),p=n*(r=this.scaleValues[3]);var u=new SuperMapAlgoPlot.Point(i.x+s,i.y+p),P=SuperMapAlgoPlot.PlottingUtil.distance(e,u)/n;this.scaleValues[0]=P}else 1===t&&(a=(s=e.x-i.x)/n,r=(p=e.y-i.y)/n,this.scaleValues[2]=a,this.scaleValues[3]=r)}}}]),e}();SuperMapAlgoPlot.AlgoSymbol50342=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol5033502=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 l=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 l.bShowArrow=!1,l}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,SuperMapAlgoPlot.AlgoSymbol50335),e}();SuperMapAlgoPlot.AlgoSymbol5033502=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5033501=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 l=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 l.bShowArrow=!0,l}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,SuperMapAlgoPlot.AlgoSymbol50335),o(e,[{key:"computeSubCells",value:function(t,e){var l=1.2*e,o=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,l,l,45),i=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,l,l,225),n=[];n.push(o),n.push(i),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);var a=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,l,l,135),r=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,l,l,315),s=[];s.push(a),s.push(r),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s)}}]),e}();SuperMapAlgoPlot.AlgoSymbol5033501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50335=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 l=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 l.bShowArrow=!0,l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0>=this.scaleValues.length&&this.scaleValues.push(.2);var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),l=e*this.scaleValues[0];this.computeArcAndArrow(t[0],e,l,40,140),this.computeArcAndArrow(t[0],e,l,160,260),this.computeArcAndArrow(t[0],e,l,290,380);for(var o=[],i=0;i<360;i+=12)o.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,i));this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o,{lineColorLimit:!0,fillStyle:1,color:"#0000FF",opacity:1}),this.computeSubCells(t[0],l),this.scalePoints=[];var n=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,0);this.scalePoints.push(n),this.finish()}}},{key:"computeSubCells",value:function(t,e){}},{key:"computeArcAndArrow",value:function(t,e,l,o,i){for(var n=[],a=o;a<i;a+=12)n.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,a));n.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,i)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);var r=e-l,s=.5*(o+i),p=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.2*r+l,.2*r+l,s),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,s),P=[];if(P.push(p),P.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P),this.bShowArrow){var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,l,l,s),g=Math.tan(.25),S=.2*e/Math.cos(g),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,S,S,s+g*SuperMapAlgoPlot.PlottingUtil.RTOD),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,S,S,s-g*SuperMapAlgoPlot.PlottingUtil.RTOD),y=[];y.push(c),y.push(h),y.push(f);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,y,{fillLimit:!0,fillStyle:0,strokeOpacity:1,opacity:1})}}},{key:"computeScaleValues",value:function(t,e){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<2)){var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0===t){var i=SuperMapAlgoPlot.PlottingUtil.distance(l[0],e)/o;i>.7&&(i=.6),this.scaleValues[0]=i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol50335=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50331=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),l=e;t.length>2&&(l=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[2]));for(var o=[],i=80;i<420;i+=12)o.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,e,i));o.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,e,420)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o);var n=[],a=l>e?l:e;a*=1.5,n.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],a,a,50)),n.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,e,70)),n.push(new SuperMapAlgoPlot.Point(t[0].x,t[0].y));var r=SuperMapAlgoPlot.PlottingUtil.getBeizerCtrlPt(n),s=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(r);this.addArrow(s,.1),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol50331=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50328=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.3),l.scaleValues.push(.7),l.scaleValues.push(.45),l.scaleValues.push(.2),l.scaleValues.push(Math.PI/2)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=this.scaleValues[4]*SuperMapAlgoPlot.PlottingUtil.RTOD,i=l*this.scaleValues[0],n=l*this.scaleValues[1],a=l*this.scaleValues[3],r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,e);if(r.bfind){var s=r.pts,p=r.index;if((O=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,e)).bfind){var u=O.pts,P=(O.index,new SuperMapAlgoPlot.Point(s.x,s.y)),c=new SuperMapAlgoPlot.Point(e[p].x,e[p].y),g=new SuperMapAlgoPlot.Point(e[p+1].x,e[p+1].y),S=SuperMapAlgoPlot.PlottingUtil.dirAngle(c,g)*SuperMapAlgoPlot.PlottingUtil.RTOD,h=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,a,a,S+o),f=[],y=(SuperMapAlgoPlot.PlottingUtil.dirAngle(P,h),SuperMapAlgoPlot.PlottingUtil.RTOD,l*this.scaleValues[2]),A=[],M=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,y,y,S-270),b=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,2*y,2*y,S-280);A.push(s),A.push(M),A.push(b);var d=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(A);d=SuperMapAlgoPlot.PlottingUtil.clearSamePts(d),f=[];for(var m=0;m<d.length;m++)f.push(d[m]);var v=-1;if(SuperMapAlgoPlot.PlottingUtil.polylineDistance(f)/l>.8){var O;if(!(O=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.8*l,d)))return;v=O.index,r.pts,f=[];for(var U=0;U<v;U++)f.push(d[U])}else{f=[];for(var L=0;L<d.length;L++)f.push(d[L])}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var w=SuperMapAlgoPlot.PlottingUtil.dirAngle(M,b)*SuperMapAlgoPlot.PlottingUtil.RTOD;b=f[f.length-1];var _=new SuperMapAlgoPlot.Point(-.2*a,.05*a),V=new SuperMapAlgoPlot.Point(-.2*a,-.05*a),T=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(b,_,w-5),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(b,V,w-5);(f=[]).push(b),f.push(T),f.push(E);var x={lineTypeLimit:!0,fillLimit:!0,fillStyle:0,strokeOpacity:1,opacity:1};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,f,x);var C=[],j=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,y,y,S-280),Y=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,2*y,2*y,S-270);C.push(u),C.push(j),C.push(Y);var I=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(C);I=SuperMapAlgoPlot.PlottingUtil.clearSamePts(I),f=[];for(var R=0;R<I.length;R++)f.push(I[R]);var B=-1;if(SuperMapAlgoPlot.PlottingUtil.polylineDistance(f)/l>.8){var N=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.8*l,I);if(!N.bfind)return;B=N.index,N.pts,f=[];for(var D=0;D<B;D++)f.push(I[D])}else{f=[];for(var k=0;k<I.length;k++)f.push(I[k])}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),Y=f[f.length-1];var z,F=SuperMapAlgoPlot.PlottingUtil.dirAngle(j,Y)*SuperMapAlgoPlot.PlottingUtil.RTOD,G=new SuperMapAlgoPlot.Point(-.2*a,.05*a),W=new SuperMapAlgoPlot.Point(-.2*a,-.05*a),J=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(Y,G,F+5),K=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(Y,W,F+5);(f=[]).push(Y),f.push(J),f.push(K),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,f,x);var H,q=.1*l;if((r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(q,e)).bfind){H=r.index,z=r.pts;var Q,X=new SuperMapAlgoPlot.Point(e[H].x,e[H].y),Z=new SuperMapAlgoPlot.Point(e[H+1].x,e[H+1].y),$=SuperMapAlgoPlot.PlottingUtil.dirAngle(X,Z)*SuperMapAlgoPlot.PlottingUtil.RTOD+90,tt=SuperMapAlgoPlot.PlottingUtil.circlePoint(z,.05*l,.05*l,$),et=.12*l;if((r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(et,e)).bfind){r.index,Q=r.pts;var lt,ot=SuperMapAlgoPlot.PlottingUtil.circlePoint(Q,.05*l,.05*l,$),it=[],nt=[];it.push(z),it.push(tt),nt.push(Q),nt.push(ot),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,it),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,nt);var at,rt=.9*l;if((r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(rt,e)).bfind){at=r.index,lt=r.pts;var st,pt=new SuperMapAlgoPlot.Point(e[at].x,e[at].y),ut=new SuperMapAlgoPlot.Point(e[at+1].x,e[at+1].y),Pt=SuperMapAlgoPlot.PlottingUtil.dirAngle(pt,ut)*SuperMapAlgoPlot.PlottingUtil.RTOD+90,ct=SuperMapAlgoPlot.PlottingUtil.circlePoint(lt,.05*l,.05*l,Pt),gt=.88*l;if((r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(gt,e)).bfind){r.index,st=r.pts;var St=SuperMapAlgoPlot.PlottingUtil.circlePoint(st,.05*l,.05*l,Pt),ht=[],ft=[];ht.push(lt),ht.push(ct),ft.push(st),ft.push(St),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,ht),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,ft),this.scalePoints=[],this.scalePoints.push(new SuperMapAlgoPlot.Point(P.x,P.y)),this.scalePoints.push(new SuperMapAlgoPlot.Point(b.x,b.y)),this.scalePoints.push(new SuperMapAlgoPlot.Point(u.x,u.y)),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);var n,a,r=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(r=SuperMapAlgoPlot.PlottingUtil.clearSamePts(r),0===t){for(var s=[],p=0;p<r.length;p++)s.push(new SuperMapAlgoPlot.Point(r[p].x,r[p].y));for(var u=-1,P=0,c=new SuperMapAlgoPlot.Point(0,0),g=0;g<s.length-1;g++){var S=[];S.push(s[g]),S.push(s[g+1]);var h=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,s[g],s[g+1]);if(-1!==SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(h,S).index){var f=SuperMapAlgoPlot.PlottingUtil.distance(e,h);-1==u?(u=g,c=h,P=f):P>f&&(u=g,c=h,P=f)}}if(-1==u||u>s.length-1)return;if(!(m=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(P,r)).bfind)return;var y=m.index;U=new SuperMapAlgoPlot.Point(r[(r[y].x,r[y].y)]),L=new SuperMapAlgoPlot.Point(r[(r[y+1].x,r[y+1].y)]),n=0;for(var A=0;A<u;A++)n+=SuperMapAlgoPlot.PlottingUtil.distance(r[A],r[A+1]);if((n+=SuperMapAlgoPlot.PlottingUtil.distance(r[u],c))<0||n>o)return;var M=SuperMapAlgoPlot.PlottingUtil.dirAngle(U,L),b=SuperMapAlgoPlot.PlottingUtil.dirAngle(c,e)+M;this.scaleValues[4]=b;var d=n/o;this.scaleValues[0]=d}else if(1===t){var m;if(a=o*this.scaleValues[0],-1===(m=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,r)).index)return;y=m.index;var v=m.pts,O=new SuperMapAlgoPlot.Point(v.x,v.y),U=new SuperMapAlgoPlot.Point(r[y].x,r[y].y),L=new SuperMapAlgoPlot.Point(r[y+1].x,r[y+1].y);M=SuperMapAlgoPlot.PlottingUtil.dirAngle(U,L);b=SuperMapAlgoPlot.PlottingUtil.dirAngle(O,e)-M;this.scaleValues[4]=b;var w=(n=SuperMapAlgoPlot.PlottingUtil.distance(O,e))/o;this.scaleValues[2]=w>.65?.65:w}else if(2==t){for(var _=-1,V=0,T=new SuperMapAlgoPlot.Point(0,0),E=r.length,x=0;x<E-1;x++){var C=[];C.push(r[x]),C.push(r[x+1]);var j=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,r[x],r[x+1]);if(-1!==SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(j,C).index){var Y=SuperMapAlgoPlot.PlottingUtil.distance(e,j);-1==_?(_=x,T=j,V=Y):V>Y&&(_=x,T=j,V=Y)}}if(-1==_||_>E-1)return;for(var I=0,R=0;R<_;R++){var B=new SuperMapAlgoPlot.Point(r[R].x,r[R].y),N=new SuperMapAlgoPlot.Point(r[R+1].x,r[R+1].y);I+=SuperMapAlgoPlot.PlottingUtil.distance(B,N)}var D=new SuperMapAlgoPlot.Point(r[_].x,r[_].y);if((I+=SuperMapAlgoPlot.PlottingUtil.distance(D,T))<0||I>o)return;var k=I/o;this.scaleValues[1]=k}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol50328=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50323=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 l=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 l.RATIO_OUTLINE=.02,l.RATIO_INLINE=.001,l.scaleValues=[],l.scaleValues.push(.02),l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.getBeizerCtrlPt(t),l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(e);2>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(this.RATIO_OUTLINE),this.scaleValues.push(.05));[].push(l[l.length-1]);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues.push(.5*this.getSubSymbolScaleValue()),this.scaleValues.push(this.getSubSymbolScaleValue()));for(var i=o*this.scaleValues[0],n=t[t.length-1],a=SuperMapAlgoPlot.PlottingUtil.distance(n,l[l.length-1]);a<=1.5*i;)l.pop(),a=SuperMapAlgoPlot.PlottingUtil.distance(n,l[l.length-1]);l.push(n),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l);var r=l[l.length-2],s=SuperMapAlgoPlot.PlottingUtil.dirAngle(n,r)*SuperMapAlgoPlot.PlottingUtil.RTOD,p=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,i,i,s+14),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,i,i,s-14),P=[];P.push(p),P.push(n),P.push(u);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,P,{lineTypeLimit:!0,fillLimit:!0,fillStyle:0,strokeOpacity:1,opacity:1});var c=o*this.scaleValues[1],g=SuperMapAlgoPlot.PlottingUtil.dirAngle(l[0],l[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,S=SuperMapAlgoPlot.PlottingUtil.circlePoint(l[0],c,c,g+90),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(l[0],c,c,g-90),f=[];f.push(S),f.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var y=(o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t))*this.scaleValues[0];this.scalePoints=[];var A=SuperMapAlgoPlot.PlottingUtil.circlePoint(l[l.length-1],y,y,s+180);this.scalePoints.push(A),this.scalePoints.push(S),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)){var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=l[l.length-1],n=e;if(0===t){var a=SuperMapAlgoPlot.PlottingUtil.distance(n,i)/o;if(.5<a)return;this.scaleValues[0]=a}else if(1===t){var r=SuperMapAlgoPlot.PlottingUtil.distance(n,l[0])/o;this.scaleValues[1]=r}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol50323=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50318=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 l=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 l.sv1_DefaultAtLenDivAbLen=0,l.sv2_DefaultAjWidthDivAtLen=.148,l.sv3_DefaultAeWidthDivAtLen=.4,l.sv4_DefaultAeLenDivAtLen=.312,l.sv_arrowTailWidth=.05,l}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,SuperMapAlgoPlot.AlgoSymbol1011),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(0!==e){SuperMapAlgoPlot.AlgoSymbol1011.prototype.calculateParts.apply(this,arguments),5>this.scaleValues.length&&(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));for(var l=e*this.scaleValues[4],o=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(l,t[1],t[0]),i=SuperMapAlgoPlot.PlottingUtil.distance(o.pntLeft,o.pntRight),n=i,a=2.5*i,r=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,s=[],p=120;p<420;p+=12)s.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],n,.5*a,p+r-90));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol50318=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50308=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05),l.scaleValues.push(-1.5)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(!this.isEdit||3===this.scaleValues.length){this.scaleValues=[];for(var e=0;e<t.length;e++)this.scaleValues.push(0);var l=this.getSubSymbolScaleValue();this.scaleValues.push(.8*l),this.scaleValues.push(l),this.scaleValues.push(-1.5)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var o,i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),n=this.scaleValues.length,a=i*this.scaleValues[n-3],r=new SuperMapAlgoPlot.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2),s=new SuperMapAlgoPlot.Point(r.x+a,r.y),p=[];p.push(r),p.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,p,{fillLimit:!0,fill:!0,fillColorLimit:!0,fillColor:"#ff0000",fillOpacity:1});var u=this.scaleValues[0];if(0===u)o=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,t[1],t[0]).pntRight;else if(1===u)o=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,t[1],t[0]).pntLeft;else{if(2!==u)return;o=t[0]}var P,c=[];if(c.push(t[0]),c.push(o),this.addScalePoint(o),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,null,!0),t.length>this.minEditPts){for(var g=1;g<t.length-1;g++){var S,h=[],f=this.scaleValues[g],y=null,A=null,M=null,b=0,d=0,m=0;if(0===f){for(y=t[g],A=t[g+1],M=t[g-1],b=SuperMapAlgoPlot.PlottingUtil.radian(y,A)*SuperMapAlgoPlot.PlottingUtil.RTOD,d=SuperMapAlgoPlot.PlottingUtil.radian(y,M)*SuperMapAlgoPlot.PlottingUtil.RTOD-b;d<0;)d+=360;m=d/2;var v=t[g+1].clone();v=SuperMapAlgoPlot.PlottingUtil.rotateAngle(y,m*Math.PI/180,v),S=SuperMapAlgoPlot.PlottingUtil.linePnt(y,v,a)}else if(1===f){for(y=t[g],A=t[g+1],M=t[g-1],b=SuperMapAlgoPlot.PlottingUtil.radian(y,A)*SuperMapAlgoPlot.PlottingUtil.RTOD,d=SuperMapAlgoPlot.PlottingUtil.radian(y,M)*SuperMapAlgoPlot.PlottingUtil.RTOD-b;d<0;)d+=360;m=180-d/2;var O=t[g-1].clone();v=SuperMapAlgoPlot.PlottingUtil.rotateAngle(y,m*Math.PI/180,O),S=SuperMapAlgoPlot.PlottingUtil.linePnt(y,O,a)}else{if(2!==f)continue;S=t[g]}h.push(t[g]),h.push(S),this.addScalePoint(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,null,!0)}var U=t.length,L=this.scaleValues[U-1],w=0,_=0,V=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,t[U-2],t[U-1]),T=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*a,t[U-2],t[U-1]);if(0===L)w=V.pntLeft,_=T.pntLeft;else if(1===L)w=V.pntRight,_=T.pntRight;else{if(2!==L)return;w=t[U-1].clone(),_=t[U-1].clone()}(h=[]).push(t[U-1]),h.push(w),this.addScalePoint(w),this.addScalePoint(_),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,null,!0)}else{var E=this.scaleValues[1];if(V=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,t[0],t[1]),T=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*a,t[0],t[1]),0===E)w=V.pntLeft,_=T.pntLeft;else if(1===E)w=V.pntRight,_=T.pntRight;else{if(2!==E)return;w=t[1].clone(),_=t[1].clone()}(h=[]).push(t[1]),h.push(w),this.addScalePoint(w),this.addScalePoint(_),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,null,!0)}var x=this.scaleValues.length,C=this.scaleValues[x-2],j=Math.abs(i*C),Y=this.scaleValues[x-1],I=Math.abs(a*Y),R=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,j);if(-1!==R.index){var B=R.index,N=R.pt;P=Y>=0?(V=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(I,t[B],N)).pntRight:(V=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(I,t[B],N)).pntLeft;var D=SuperMapAlgoPlot.PlottingUtil.linePnt(N,P,I),k=.3*I,z=SuperMapAlgoPlot.PlottingUtil.linePnt(D,N,k),F=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.3*k,D,z),G=F.pntLeft,W=F.pntRight;(h=[]).push(N),h.push(D),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,null,!0),(h=[]).push(G),h.push(D),h.push(W);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0),this.addScalePoint(D),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=l.length,n=e;if(t>=0&&t<i){var a=!1,r=null,s=null;a=0===t?SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[t],l[t+1],n):t===i-1?SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[t-1],l[t],n):SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[t-1],l[t],l[t+1])!==(r=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[t-1],l[t],n))?r:(s=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[t],l[t+1],n))===r?r:s,this.scaleValues[t]=a?1:0}else if(t===i){var p=SuperMapAlgoPlot.PlottingUtil.distance(l[i-1],n)/2;this.scaleValues[t]=p/o}else if(t===i+1||t===i+2){for(var u=-1,P=0,c=new SuperMapAlgoPlot.Point(0,0),g=0;g<l.length-1;g++){var S=[];S.push(l[g]),S.push(l[g+1]);var h=SuperMapAlgoPlot.PlottingUtil.projectPoint(n,l[g],l[g+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(h,S).isOnPolyLine){var f=SuperMapAlgoPlot.PlottingUtil.distance(n,h);-1===u?(u=g,c=h,P=f):P>f&&(u=g,c=h,P=f)}}if(-1===u||u>l.length-1)return;for(var y=0,A=0;A<u;A++){var M=l[A],b=l[A+1];y+=SuperMapAlgoPlot.PlottingUtil.distance(M,b)}var d=l[u];if((y+=SuperMapAlgoPlot.PlottingUtil.distance(d,c))<0||y>o)return;this.scaleValues[i+1]=y/o;var m,v=this.scaleValues.length,O=o*this.scaleValues[v-3];m=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[u],l[u+1],n)?P/O:-Math.abs(P/O),this.scaleValues[i+2]=m}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol50308=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50226=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.088259),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),!(this.controlPoints.length<this.minEditPts)){var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),i=this.scaleValues[0],n=this.scaleValues[2],a=this.scaleValues[3];o.x=o.x+n*l,o.y=o.y+a*l;var r=new SuperMapAlgoPlot.Point(.5*l*i,0),s=new SuperMapAlgoPlot.Point(-.5*l*i,0),p=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,r,0),u=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,s,0),P=[];P.push(p),P.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var c=new SuperMapAlgoPlot.Point(.8*l*i,0),g=new SuperMapAlgoPlot.Point(-.8*l*i,0),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,c,0),h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,g,0);this.subSymbols.length>0&&(this.computeSubSymbol(this.subSymbols[0],S,.05*i,90),this.computeSubSymbol(this.subSymbols[0],h,.05*i,90));var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,i*l,i*l,180);this.addScalePoint(f,0),this.addScalePoint(o,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.controlPoints.length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0===t){n.x=n.x+this.scaleValues[2]*i,n.y=n.y+this.scaleValues[3]*i;var a=SuperMapAlgoPlot.PlottingUtil.distance(e,n)/i;this.scaleValues[0]=a}if(1===t){var r=(e.x-n.x)/i;this.scaleValues[2]=r;var s=(e.y-n.y)/i;this.scaleValues[3]=s}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol50226=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50225=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(this.controlPoints.length<this.minEditPts)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t);this.isEdit||(this.subSymbolScaleValue=this.getDefaultSubSymbolSize()/e,this.subSymbolScaleValue>.2&&(this.subSymbolScaleValue=.2),this.scaleValues[0]=this.subSymbolScaleValue);var o=this.scaleValues[0],i=this.scaleValues[2],n=this.scaleValues[3],a=e*o,r=new SuperMapAlgoPlot.Point(l.x+e*i,l.y+e*n);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,a,0),this.addScalePoint(r,0);var s=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,a,a,90);this.addScalePoint(s,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0===o)return;var n=0,a=0;if(0===t&&(n=(e.x-i.x)/o,this.scaleValues[2]=n,a=(e.y-i.y)/o,this.scaleValues[3]=a),1===t){n=this.scaleValues[2],a=this.scaleValues[3];var r=new SuperMapAlgoPlot.Point(i.x+o*n,i.y+o*a),s=SuperMapAlgoPlot.PlottingUtil.distance(r,e);this.scaleValues[0]=s/2/o}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol50225=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50223=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.088259),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.088259),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=2*i}var n=this.scaleValues[0],a=this.scaleValues[2],r=this.scaleValues[3];l.x=l.x+a*o,l.y=l.y+r*o;var s=new SuperMapAlgoPlot.Point(.25*o*n,.25*o*n),p=new SuperMapAlgoPlot.Point(0,.5*o*n),u=new SuperMapAlgoPlot.Point(-.25*o*n,.25*o*n),P=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,s,0),c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,p,0),g=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,u,0);this.addCell(SuperMapAlgoPlot.SymbolType.ARCSYMBOL,[P,c,g],{lineTypeLimit:!0,lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineLimit:!0});var S=new SuperMapAlgoPlot.Point(0,-.3*o*n),h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,S,0);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[P,h,g],{lineTypeLimit:!0,lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineLimit:!0}),this.scalePoints=[];var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,n*o*.5,n*o*.5,180);this.addScalePoint(f,0),this.addScalePoint(l,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t){i.x=i.x+this.scaleValues[2]*n,i.y=i.y+this.scaleValues[3]*n;var a=SuperMapAlgoPlot.PlottingUtil.distance(e,i)/n;this.scaleValues[0]=a}else if(1===t){var r=(e.x-i.x)/n;this.scaleValues[2]=r;var s=(e.y-i.y)/n;this.scaleValues[3]=s}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol50223=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50108=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=2*i}var n=this.scaleValues[0],a=this.scaleValues[2],r=this.scaleValues[3],s=o*n,p=new SuperMapAlgoPlot.Point(l.x+o*a,l.y+o*r);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,s,0);for(var u=0;u<this.components.length;u++)this.components[u].style.strokeColor="#0000ff",this.components[u].style.lineColorLimit=!0,this.components[u].style.strokeOpacity=1,this.components[u].style.color="#0000ff",this.components[u].style.opacity=1;this.addScalePoint(p);var P=s,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,P,P,90);this.addScalePoint(c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),a=0,r=0;if(0===t)a=(e.x-i.x)/n,this.scaleValues[2]=a,r=(e.y-i.y)/n,this.scaleValues[3]=r;else if(1===t){a=this.scaleValues[2],r=this.scaleValues[3];var s=new SuperMapAlgoPlot.Point(i.x+n*a,i.y+n*r),p=SuperMapAlgoPlot.PlottingUtil.distance(s,e);this.scaleValues[0]=p/n}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol50108=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40305=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 l=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 l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.05),l.scaleValues.push(.02),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues.push(.05),this.scaleValues.push(.05),this.scaleValues.push(.02)):2===this.scaleValues.length?this.scaleValues.push(.3*this.getSubSymbolScaleValue()):1===this.scaleValues.length&&(this.scaleValues.push(.5*this.getSubSymbolScaleValue()),this.scaleValues.push(.3*this.getSubSymbolScaleValue()));var e=SuperMapAlgoPlot.PlottingUtil.getBeizerCtrlPt(t),l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(e);SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(!this.isEdit){var o=this.getSubSymbolScaleValue();(o>.1||o<=0)&&(o=.1),this.scaleValues[0]=o,this.scaleValues[1]=this.getSubSymbolScaleValue(),this.scaleValues[2]=.5*o}var i=this.getLinePts(l,this.scaleValues[0],.5),n=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=SuperMapAlgoPlot.PlottingUtil.dirAngle(i.startPt,i.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,r=SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt);this.computeSubSymbolC(n,r,a);for(var s=[],p=0;p<=i.startIndex;p++)s.push(l[p]);s.push(new SuperMapAlgoPlot.Point(i.startPt.x,i.startPt.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s);var u=[];if(i.endIndex<=l.length){u.push(new SuperMapAlgoPlot.Point(i.endPt.x,i.endPt.y));for(var P=i.endIndex+1;P<=l.length-1;P++)u.push(l[P]);this.addArrow(u,this.scaleValues[2])}this.scalePoints=[];var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,.5*r,.5*r,a+90);this.addScalePoint(c,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)){var o=SuperMapAlgoPlot.PlottingUtil.getBeizerCtrlPt(l),i=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(o);if(0===t){var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*n,i),r=SuperMapAlgoPlot.PlottingUtil.distance(e,a.pts)/n,s=1/l.length-.05;s<=.05&&(s=.05),r>=s&&(r=s),this.scaleValues[0]=r}}}}},{key:"computeSubSymbolC",value:function(t,e,l){for(var o=[],i=0;i<360;i+=12)o.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.5*e,.5*e,i));o.push(o[0]);var n={lineColorLimit:!0,fillLimit:!1,fillStyle:0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o,n);for(var a=[],r=0;r<360;r+=12)a.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.25*e,.25*e,r));a.push(a[0]),n={lineColorLimit:!0,fillLimit:!0,fillColorLimit:!0,fillStyle:1,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,a,n);var s=[];s.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.25*e,.25*e,l+90)),s.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.5*e,.5*e,l+90)),n={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s,n);var p=[];p.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.25*e,.25*e,l+270)),p.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.5*e,.5*e,l+270)),n={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,n)}}]),e}();SuperMapAlgoPlot.AlgoSymbol40305=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40304=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),!(this.controlPoints.length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=.5*e,o=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l,t);if(-1!==o.index){for(var i=[],n=0;n<o.index+1;n++)i.push(t[n]);var a=[],r=.1*e,s=.5*r,p=.05*e;if(l-SuperMapAlgoPlot.PlottingUtil.polylineDistance(i)>=p){var u=SuperMapAlgoPlot.PlottingUtil.linePnt(o.pts,t[o.index],p);i.push(u),this.ComputeDashLine(r,s,i);var P=SuperMapAlgoPlot.PlottingUtil.linePnt(o.pts,t[o.index],p);a.push(P);for(var c=o.index+1;c<t.length;++c)a.push(t[c]);this.ComputeDashLine(r,s,a)}else{for(var g=-1,S=i.length-1;S>=0;S--){var h=new SuperMapAlgoPlot.Point(i[S].x,i[S].y),f=new SuperMapAlgoPlot.Point(o.pts.x,o.pts.y),y=SuperMapAlgoPlot.PlottingUtil.distance(h,f);if(y>p){g=S;break}}if(-1==g)return;i.splice(g+1,i.length-1-g),u=SuperMapAlgoPlot.PlottingUtil.linePnt(o.pts,t[g],p),i.push(u),this.ComputeDashLine(r,s,i);for(var A=-1,M=i.length-1;M<t.length;M++)if(h=new SuperMapAlgoPlot.Point(t[M].x,t[M].y),f=new SuperMapAlgoPlot.Point(o.pts.x,o.pts.y),(y=SuperMapAlgoPlot.PlottingUtil.distance(h,f))>p){A=M;break}if(-1==A)return;P=SuperMapAlgoPlot.PlottingUtil.linePnt(o.pts,t[A],p),a.push(P);for(var b=A+1;b<t.length;++b)a.push(t[b]);this.ComputeDashLine(r,s,a)}var d=u.clone(),m=P.clone(),v=SuperMapAlgoPlot.PlottingUtil.radian(d,m)*SuperMapAlgoPlot.PlottingUtil.RTOD,O=SuperMapAlgoPlot.PlottingUtil.distance(d,m),U=new SuperMapAlgoPlot.Point((u.x+P.x)/2,(u.y+P.y)/2);this.addText("警",U,O,v),this.finish()}}}},{key:"ComputeDashLine",value:function(t,e,l){for(var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.clonePoints(l),n=o/7,a=0;a<7;a++){var r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,n);if(-1!==r.index){if(0!=a%2){for(var s=[],p=0;p<r.index+1;p++)s.push(i[p].clone());s.push(r.pt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s)}var u=[];u.push(r.pt);for(var P=r.index+1;P<i.length;P++)u.push(i[P]);i=(i=[]).concat(u)}}i.length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i)}}]),e}();SuperMapAlgoPlot.AlgoSymbol40304=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40302=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.02)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(this.controlPoints.length<3)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t);this.isEdit||(this.subSymbolScaleValue=this.getDefaultSubSymbolSize()/e,this.subSymbolScaleValue>.2&&(this.subSymbolScaleValue=.2),this.scaleValues[2]=this.subSymbolScaleValue/3);var o=this.scaleValues[0],i=this.scaleValues[1],n=e*this.scaleValues[2],a=new SuperMapAlgoPlot.Point(l.x+e*o,l.y+e*i),r=new SuperMapAlgoPlot.Point(a.x-4*n,a.y),s=new SuperMapAlgoPlot.Point(a.x-4*n,a.y-n/2),p=[];p.push(r),p.push(s);var u={lineTypeLimit:!0,fillLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,u);var P=new SuperMapAlgoPlot.Point(a.x-4*n,a.y),c=new SuperMapAlgoPlot.Point(a.x-n,a.y),g=[];g.push(P),g.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,u),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,2*n,0);var S=new SuperMapAlgoPlot.Point(a.x+4*n,a.y),h=new SuperMapAlgoPlot.Point(a.x+n,a.y),f=[];f.push(S),f.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,u);var y=new SuperMapAlgoPlot.Point(a.x+4*n,a.y+n/2),A=new SuperMapAlgoPlot.Point(a.x+4*n,a.y),M=[];M.push(y),M.push(A),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M,u),this.addScalePoint(a,0);var b=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,2*n,2*n,90);this.addScalePoint(b,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0===o)return;var n=0,a=0;if(0===t&&(n=(e.x-i.x)/o,this.scaleValues[0]=n,a=(e.y-i.y)/o,this.scaleValues[1]=a),1===t){n=this.scaleValues[0],a=this.scaleValues[1];var r=new SuperMapAlgoPlot.Point(i.x+o*n,i.y+o*a),s=SuperMapAlgoPlot.PlottingUtil.distance(r,e);this.scaleValues[2]=s/2/o}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol40302=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40104=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(this.controlPoints.length<3)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),o=this.scaleValues[0],i=this.scaleValues[1],n=e*this.scaleValues[2],a=new SuperMapAlgoPlot.Point(l.x+e*o,l.y+e*i),r=new SuperMapAlgoPlot.Point(a.x+1,a.y),s=[];t.push(t[0].clone());for(var p=0;p<t.length-1;p++){var u=SuperMapAlgoPlot.PlottingUtil.intersectLines(a,r,t[p],t[p+1]);u.isIntersectLines&&(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(u.intersectPoint,t[p],t[p+1])&&s.push(u.intersectPoint))}if(0>=s.length)this.finish();else{var P=s[0].clone(),c=s[0].clone();for(p=0;p<s.length;p++)P.x>s[p].x&&(P=s[p].clone()),c.x<s[p].x&&(c=s[p].clone());var g=new SuperMapAlgoPlot.Point(a.x-n/2,P.y),S=new SuperMapAlgoPlot.Point(a.x+n/2,c.y),h=SuperMapAlgoPlot.PlottingUtil.radian(g,S)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.addText("缉",a,n,h),this.addScalePoint(a,0);var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,n/2,n/2,90);this.addScalePoint(f,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),n=e,a=0,r=0;if(0===t){if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(l,n))return;a=(n.x-i.x)/o,this.scaleValues[0]=a,r=(n.y-i.y)/o,this.scaleValues[1]=r}if(1===t){a=this.scaleValues[0],r=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(i.x+a*o,i.y+r*o),p=2*SuperMapAlgoPlot.PlottingUtil.distance(n,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol40104=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30031=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 l=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===l.scaleValues.length&&l.scaleValues.push(.02),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t={lineColorLimit:!0,strokeColor:"#00FF00",strokeOpacity:1,color:"#00FF00",opacity:1},e=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length<this.minEditPts)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,t),this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue());var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),i=new SuperMapAlgoPlot.Point(o.x+1,o.y),n=[];e.push(e[0].clone());for(var a=0;a<e.length-1;a++){var r=SuperMapAlgoPlot.PlottingUtil.intersectLines(o,i,e[a],e[a+1]);r.isIntersectLines&&(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(r.intersectPoint,e[a],e[a+1])&&n.push(r.intersectPoint))}if(!(0>=n.length)){var s=n[0].clone(),p=n[0].clone();for(a=0;a<n.length;a++)s.x>n[a].x&&(s=n[a].clone()),p.x<n[a].x&&(p=n[a].clone());var u=SuperMapAlgoPlot.PlottingUtil.distance(p,s),P=new SuperMapAlgoPlot.Point(o.x-.25*u,s.y),c=l*this.scaleValues[0],g=l*this.scaleValues[0],S=g+c,h=new SuperMapAlgoPlot.Point(P.x,P.y+S);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[h,new SuperMapAlgoPlot.Point(h.x+c,h.y)],t);var f=new SuperMapAlgoPlot.Point(P.x,P.y+.8*g),y=new SuperMapAlgoPlot.Point(P.x-g,P.y-g),A=new SuperMapAlgoPlot.Point(P.x+g,P.y-g),M=[];M.push(f),M.push(y),M.push(A),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,t);var b=new SuperMapAlgoPlot.Point(P.x-.5*g,P.y-g),d=new SuperMapAlgoPlot.Point(y.x,y.y-2*c),m=new SuperMapAlgoPlot.Point(P.x+.5*g,P.y-g),v=new SuperMapAlgoPlot.Point(A.x,A.y-2*c),O=[];O.push(b),O.push(d);var U=[];U.push(m),U.push(v),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,O,t),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,t),this.addText("灾",o,2*g,0,"#00FF00"),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30031=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3003001=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 l=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===l.scaleValues.length&&l.scaleValues.push(.02),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e={lineColorLimit:!0,strokeColor:"#00FF00",strokeOpacity:1,color:"#00FF00",opacity:1};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t,e),this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue());var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),i=new SuperMapAlgoPlot.Point(o.x+1,o.y),n=[];t.push(t[0].clone());for(var a=0;a<t.length-1;a++){var r=SuperMapAlgoPlot.PlottingUtil.intersectLines(o,i,t[a],t[a+1]);r.isIntersectLines&&(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(r.intersectPoint,t[a],t[a+1])&&n.push(r.intersectPoint))}if(!(0>=n.length)){var s=n[0].clone(),p=n[0].clone();for(a=0;a<n.length;a++)s.x>n[a].x&&(s=n[a].clone()),p.x<n[a].x&&(p=n[a].clone());var u=SuperMapAlgoPlot.PlottingUtil.distance(p,s),P=new SuperMapAlgoPlot.Point(o.x-.25*u,s.y),c=l*this.scaleValues[0],g=l*this.scaleValues[0],S=g+c,h=new SuperMapAlgoPlot.Point(P.x,P.y+S),f=new SuperMapAlgoPlot.Point(h.x+c,h.y),y=SuperMapAlgoPlot.PlottingUtil.rotateAngle(P,Math.PI/2,f),A=SuperMapAlgoPlot.PlottingUtil.rotateAngle(P,Math.PI/2,h);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[A,y],e);var M=new SuperMapAlgoPlot.Point(P.x,P.y+.8*g),b=new SuperMapAlgoPlot.Point(P.x-g,P.y-g),d=new SuperMapAlgoPlot.Point(P.x+g,P.y-g),m=SuperMapAlgoPlot.PlottingUtil.rotateAngle(P,Math.PI/2,M.clone()),v=SuperMapAlgoPlot.PlottingUtil.rotateAngle(P,Math.PI/2,b.clone()),O=SuperMapAlgoPlot.PlottingUtil.rotateAngle(P,Math.PI/2,d.clone()),U=[];U.push(m),U.push(v),U.push(O),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,U,e);var L=new SuperMapAlgoPlot.Point(P.x-.5*g,P.y-g),w=new SuperMapAlgoPlot.Point(b.x,b.y-2*c),_=new SuperMapAlgoPlot.Point(P.x+.5*g,P.y-g),V=new SuperMapAlgoPlot.Point(d.x,d.y-2*c),T=SuperMapAlgoPlot.PlottingUtil.rotateAngle(P,Math.PI/2,L),E=SuperMapAlgoPlot.PlottingUtil.rotateAngle(P,Math.PI/2,w),x=SuperMapAlgoPlot.PlottingUtil.rotateAngle(P,Math.PI/2,_),C=SuperMapAlgoPlot.PlottingUtil.rotateAngle(P,Math.PI/2,V),j=[];j.push(T),j.push(E);var Y=[];Y.push(x),Y.push(C),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,j,e),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,Y,e),this.addText("踏",o,2*g,0,"#00FF00"),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol3003001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30030=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 l=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===l.scaleValues.length&&l.scaleValues.push(.02),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e={lineColorLimit:!0,strokeColor:"#00FF00",strokeOpacity:1,color:"#00FF00",opacity:1};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t,e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t);this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue());var i=new SuperMapAlgoPlot.Point(o.x+1,o.y),n=[];t.push(t[0].clone());for(var a=0;a<t.length-1;a++){var r=SuperMapAlgoPlot.PlottingUtil.intersectLines(o,i,t[a],t[a+1]);r.isIntersectLines&&(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(r.intersectPoint,t[a],t[a+1])&&n.push(r.intersectPoint))}if(!(0>=n.length)){var s=n[0].clone(),p=n[0].clone();for(a=0;a<n.length;a++)s.x>n[a].x&&(s=n[a].clone()),p.x<n[a].x&&(p=n[a].clone());var u=SuperMapAlgoPlot.PlottingUtil.distance(p,s),P=new SuperMapAlgoPlot.Point(o.x-.25*u,s.y),c=l*this.scaleValues[0],g=l*this.scaleValues[0],S=g+c,h=new SuperMapAlgoPlot.Point(P.x,P.y+S);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[h,new SuperMapAlgoPlot.Point(h.x+c,h.y)],e);var f=new SuperMapAlgoPlot.Point(P.x,P.y+.8*g),y=new SuperMapAlgoPlot.Point(P.x-g,P.y-g),A=new SuperMapAlgoPlot.Point(P.x+g,P.y-g),M=[];M.push(f),M.push(y),M.push(A),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,e);var b=new SuperMapAlgoPlot.Point(P.x-.5*g,P.y-g),d=new SuperMapAlgoPlot.Point(y.x,y.y-2*c),m=new SuperMapAlgoPlot.Point(P.x+.5*g,P.y-g),v=new SuperMapAlgoPlot.Point(A.x,A.y-2*c),O=[];O.push(b),O.push(d);var U=[];U.push(m),U.push(v),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,O,e),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,e),this.addText("滞",o,2*g,0,"#00FF00"),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30030=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30026=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],l=t[1],o=.08*SuperMapAlgoPlot.PlottingUtil.distance(e,l),i={lineColorLimit:!0,color:"#585756"},n=SuperMapAlgoPlot.PlottingUtil.paraLine(t,.5*o,!0),a=SuperMapAlgoPlot.PlottingUtil.paraLine(t,.5*o,!1);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n,i),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a,i);for(var r=0,s=0;s<n.length-1;s++)r+=SuperMapAlgoPlot.PlottingUtil.distance(n[s],n[s+1]);for(var p,u,P,c,g=r*this.getSubSymbolScaleValue()*.3,S=6*g,h=g;h<=r-g/2;h+=S)-1!==(p=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,h)).index&&(m=SuperMapAlgoPlot.PlottingUtil.radian(n[p.index],n[p.index+1])*SuperMapAlgoPlot.PlottingUtil.RTOD,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(p.pt,g,g,m+90),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(p.pt,.25*g,.25*g,m+90),(c=[]).push(u),c.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,i));for(var f=g;f<=r-g/2;f+=S)-1!==(p=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(a,f)).index&&(m=SuperMapAlgoPlot.PlottingUtil.radian(a[p.index],a[p.index+1])*SuperMapAlgoPlot.PlottingUtil.RTOD,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(p.pt,g,g,m+285),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(p.pt,.25*g,.25*g,m),(c=[]).push(u),c.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,i));var y=new SuperMapAlgoPlot.Point((n[0].x+n[n.length-1].x)/2,(n[0].y+n[n.length-1].y)/2),A=new SuperMapAlgoPlot.Point((a[0].x+a[a.length-1].x)/2,(a[0].y+a[a.length-1].y)/2),M=new SuperMapAlgoPlot.Point((y.x+A.x)/2,(y.y+A.y)/2),b=SuperMapAlgoPlot.PlottingUtil.dirAngle(y,A)*SuperMapAlgoPlot.PlottingUtil.RTOD+90,d=SuperMapAlgoPlot.PlottingUtil.distance(y,A);this.subText;this.addText("决",M,d,b,"#0000FF");var m,v=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(90<(m=SuperMapAlgoPlot.PlottingUtil.dirAngle(e,l)*SuperMapAlgoPlot.PlottingUtil.RTOD)&&m<270){var O=e;e=l,l=O,m=SuperMapAlgoPlot.PlottingUtil.dirAngle(e,l)*SuperMapAlgoPlot.PlottingUtil.RTOD}var U=new SuperMapAlgoPlot.Point(.4*v+.25*o,.5*o),L=new SuperMapAlgoPlot.Point(.4*v+.25*o,-.5*o),w=new SuperMapAlgoPlot.Point(.6*v+.25*o,.5*o),_=new SuperMapAlgoPlot.Point(.6*v+.25*o,-.5*o),V=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,U,m),T=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,L,m),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,w,m),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,_,m),C=[];C.push(V),C.push(T),C.push(x),C.push(E),i={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,C,i);var j=new SuperMapAlgoPlot.Point(.1*v-o,.9*o),Y=new SuperMapAlgoPlot.Point(.1*v-o,2.5*o),I=new SuperMapAlgoPlot.Point(.9*v+o,.9*o),R=new SuperMapAlgoPlot.Point(.9*v+o,2.5*o),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,j,m),N=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,Y,m),D=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,I,m),k=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,R,m),z=[];z.push(B),z.push(N),z.push(k),z.push(D),i={lineColorLimit:!0,color:"#1e90ff",fillLimit:!0,fillColorLimit:!0,fill:!0,fillColor:"#add8e6",fillOpacity:1,lineTypeLimit:!0},this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,z,i),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30026=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30025=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 l=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===l.scaleValues.length&&l.scaleValues.push(.1),l.subText="",l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0]*e,i={lineColorLimit:!0,strokeColor:"#696969",strokeOpacity:1,color:"#696969",opacity:1},n=SuperMapAlgoPlot.PlottingUtil.paraLine(t,o,!0),a=SuperMapAlgoPlot.PlottingUtil.paraLine(t,o,!1);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n,i),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a,i);var r=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),s=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),p=180*SuperMapAlgoPlot.PlottingUtil.radian(r,s)/Math.PI;if(90<p&&p<270){var u=r;r=s,s=u,p=180*SuperMapAlgoPlot.PlottingUtil.radian(r,s)/Math.PI}i={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1};var P=new SuperMapAlgoPlot.Point(.1*e+.5*o,o),c=new SuperMapAlgoPlot.Point(.1*e+.5*o,-o),g=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(r,P,p),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(r,c,p),h=[];h.push(new SuperMapAlgoPlot.Point(S.x,S.y)),h.push(new SuperMapAlgoPlot.Point(g.x,g.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,i);var f=new SuperMapAlgoPlot.Point(.4*e+.5*o,o),y=new SuperMapAlgoPlot.Point(.4*e+.5*o,-o),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(r,f,p),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(r,y,p);(h=[]).push(new SuperMapAlgoPlot.Point((g.x+S.x)/2,(g.y+S.y)/2)),h.push(new SuperMapAlgoPlot.Point((A.x+M.x)/2,(A.y+M.y)/2)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,i);var b=new SuperMapAlgoPlot.Point(.85*e+.5*o,o),d=new SuperMapAlgoPlot.Point(.85*e+.5*o,-o),m=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(r,b,p),v=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(r,d,p);(h=[]).push(new SuperMapAlgoPlot.Point(v.x,v.y)),h.push(new SuperMapAlgoPlot.Point(m.x,m.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,i);var O=new SuperMapAlgoPlot.Point(.6*e+.5*o,o),U=new SuperMapAlgoPlot.Point(.6*e+.5*o,-o),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(r,O,p),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(r,U,p);(h=[]).push(new SuperMapAlgoPlot.Point((m.x+v.x)/2,(m.y+v.y)/2)),h.push(new SuperMapAlgoPlot.Point((L.x+w.x)/2,(L.y+w.y)/2)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,i);var _=new SuperMapAlgoPlot.Point(.5*e+.5*o,o),V=new SuperMapAlgoPlot.Point(.5*e+.5*o,-o),T=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(r,O,p),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(r,U,p),x=SuperMapAlgoPlot.PlottingUtil.dirAngle(T,E)*SuperMapAlgoPlot.PlottingUtil.RTOD+90,C=SuperMapAlgoPlot.PlottingUtil.distance(_,V),j=new SuperMapAlgoPlot.Point((r.x+s.x)/2,(r.y+s.y)/2),Y=this.subText;this.addText(Y,j,C,x,"#0000FF");var I=new SuperMapAlgoPlot.Point(.12*e+2*o,4*o),R=new SuperMapAlgoPlot.Point(.12*e+2*o,-o),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(r,I,p),N=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(r,R,p),D=new SuperMapAlgoPlot.Point((B.x+N.x)/2,(B.y+N.y)/2),k=(x=SuperMapAlgoPlot.PlottingUtil.dirAngle(B,N)*SuperMapAlgoPlot.PlottingUtil.RTOD+90,SuperMapAlgoPlot.PlottingUtil.distance(B,N));i={surroundLineFlag:!1,fillColorLimit:!0,fill:!0,lineColorLimit:!0,color:"#00FF00",fillOpacity:.7,surroundLineLimit:!0};if(this.subSymbols.length>0){var z=this.computeSubSymbol(this.subSymbols[0],D,.62*k,x);if(null!=z)for(var F=0;F<z.length;F++)z[F].style.lineColorLimit=!0,z[F].style.strokeColor="#00FF00",z[F].style.color="#00FF00"}this.addScalePoint(n[0],0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){for(var l=0,o=0;o<this.controlPoints.length-1;o++)l+=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[o],this.controlPoints[o+1]);var i=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[0],e)/l;this.scaleValues[0]=i}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30025=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30023=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=[],l=t[0],o=t[1],i=t[2],n=new SuperMapAlgoPlot.Point(0,0);this.GetPointsByTrapezoid(1,i,o,l,n),e.push(l),e.push(o),e.push(i),e.push(n);var a=SuperMapAlgoPlot.PlottingUtil.intersectLines(l,o,i,n),r=a.intersectPoint;if(a.isIntersectLines&&(r.x>l.x&&r.x<o.x||r.y>l.y&&r.y<o.y||r.x<l.x&&r.x>o.x||r.y<l.y&&r.y>o.y)&&(e[0]=n,e[3]=l),4==e.length){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);l=e[0],o=e[2];var s=[];s.push(l),s.push(o),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s)}this.finish()}}},{key:"GetPointsByTrapezoid",value:function(t,e,l,o,i){var n=e.x,a=e.y,r=l.x,s=l.y,p=o.x,u=o.y,P=0,c=0,g=0,S=0;if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(Math.abs(a-s),0))P=n+r-p,c=u;else if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(Math.abs(n-r),0))P=p,c=a+s-u;else{var h=1*(a-s)/(n-r),f=u-h*p;c=h*(P=((s+a)/2+(n+r)/(2*h)-f)/(h+1/h))+f,P=2*P-p,c=2*c-u}var y=Math.sqrt(1*(n-r)*(n-r)+1*(a-s)*(a-s)),A=Math.sqrt(1*(n-P)*(n-P)+1*(a-c)*(a-c));y>0?(g=n+(r-n)*A/y,S=a+(s-a)*A/y):(g=n,S=a);var M=g+(P-g)*t,b=S+(c-S)*t;i.x=M,i.y=b}}]),e}();SuperMapAlgoPlot.AlgoSymbol30023=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30020=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l.subText="水",l._style={lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,lineColor:"#0000ff"},l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(this.controlPoints.length<3)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t,this._style);var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),o=this.scaleValues[0],i=this.scaleValues[1],n=e*this.scaleValues[2],a=new SuperMapAlgoPlot.Point(l.x+e*o,l.y+e*i),r=new SuperMapAlgoPlot.Point(a.x+1,a.y),s=[];t.push(t[0].clone());for(var p=0;p<t.length-1;p++){var u=SuperMapAlgoPlot.PlottingUtil.intersectLines(a,r,t[p],t[p+1]);u.isIntersectLines&&(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(u.intersectPoint,t[p],t[p+1])&&s.push(u.intersectPoint))}if(0>=s.length)this.finish();else{var P=s[0].clone(),c=s[0].clone();for(p=0;p<s.length;p++)P.x>s[p].x&&(P=s[p].clone()),c.x<s[p].x&&(c=s[p].clone());var g=[],S=new SuperMapAlgoPlot.Point(a.x-n/2,P.y);S.x<=c.x&&S.x>=P.x&&((g=[]).push(P),g.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,this._style));var h=new SuperMapAlgoPlot.Point(a.x+n/2,c.y);h.x<=c.x&&h.x>=P.x&&((g=[]).push(c),g.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,this._style));var f=SuperMapAlgoPlot.PlottingUtil.radian(S,h)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.addText(this.subText,a,n,f),this.addScalePoint(a,0);var y=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,n/2,n/2,90);this.addScalePoint(y,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),n=0,a=0,r=e;if(0===t){if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(l,r))return;n=(r.x-i.x)/o,this.scaleValues[0]=n,a=(r.y-i.y)/o,this.scaleValues[1]=a}if(1===t){n=this.scaleValues[0],a=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(i.x+n*o,i.y+a*o),p=2*SuperMapAlgoPlot.PlottingUtil.distance(r,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30020=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30014=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=.1*SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),o=.1*e,i=.5*(e-o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,t);if(-1!==n.index){var a=SuperMapAlgoPlot.PlottingUtil.clonePoints(t);a.splice(n.index+1,t.length-n.index-1),a.push(n.pts);var r={lineColorLimit:!0,strokeColor:"#0000ff",color:"#0000ff"},s=SuperMapAlgoPlot.PlottingUtil.paraLine(a,.25*l,!0),p=SuperMapAlgoPlot.PlottingUtil.paraLine(a,.25*l,!1),u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i+o,t);if(-1!==u.index){var P=SuperMapAlgoPlot.PlottingUtil.clonePoints(t);P.splice(0,u.index+1),P.splice(0,0,u.pts);var c=SuperMapAlgoPlot.PlottingUtil.paraLine(P,.25*l,!0),g=SuperMapAlgoPlot.PlottingUtil.paraLine(P,.25*l,!1);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s,r),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,r),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,r),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,r);var S=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*e,t),h=SuperMapAlgoPlot.PlottingUtil.radian(n.pts,u.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.addText("(XX)",S.pts,o,h),this.finish()}}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30014=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30013=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=.1*SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),l=SuperMapAlgoPlot.PlottingUtil.linePnt(t[t.length-1],t[t.length-2],Math.sqrt(3)*e/4),o=SuperMapAlgoPlot.PlottingUtil.clonePoints(t);o.splice(t.length-1,1),o.push(l);var i=SuperMapAlgoPlot.PlottingUtil.paraLine(o,.25*e,!0),n={lineColorLimit:!0,strokeColor:"#0000ff",color:"#0000ff"},a=SuperMapAlgoPlot.PlottingUtil.paraLine(o,.25*e,!1);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i,n),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a,n);var r=SuperMapAlgoPlot.PlottingUtil.linePnt(t[t.length-1],t[t.length-2],e),s=new SuperMapAlgoPlot.Point(r.x,r.y),p=new SuperMapAlgoPlot.Point(r.x,r.y);s=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[t.length-1],1/6*Math.PI,s),p=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[t.length-1],11/6*Math.PI,p);var u=[];u.push(s),u.push(t[t.length-1]),u.push(p),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u,n),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30013=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30012=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=this.scaleValues[0],l=this.scaleValues[1],o=this.scaleValues[2],i=SuperMapAlgoPlot.PlottingUtil.getOutRectangleDis(t);if(0!==i){if(!this.isEdit){var n=this.getSubSymbolScaleValue()*SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[2]=n/i}var a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),r=new SuperMapAlgoPlot.Point(a.x+e*i,a.y+l*i),s=o*i;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,s,0),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t),this.addScalePoint(r,0);var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,s,s,90);this.addScalePoint(p,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.getOutRectangleDis(l),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0===o)return;var n=new SuperMapAlgoPlot.Point(e.x,e.y);if(0===t&&(this.scaleValues[0]=(n.x-i.x)/o,this.scaleValues[1]=(n.y-i.y)/o),1===t){var a=this.scaleValues[0],r=this.scaleValues[1],s=new SuperMapAlgoPlot.Point(i.x+a*o,i.y+r*o),p=SuperMapAlgoPlot.PlottingUtil.distance(e,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30012=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30011=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts||0!==SuperMapAlgoPlot.PlottingUtil.getOutRectangleDis(t)&&(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t),this.finish())}}]),e}();SuperMapAlgoPlot.AlgoSymbol30011=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30010=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 l=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===l.scaleValues.length&&(l.scaleValues.push(-.1),l.scaleValues.push(-.1),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=this.scaleValues[0],l=this.scaleValues[1],o=this.scaleValues[2],i=SuperMapAlgoPlot.PlottingUtil.getOutRectangleDis(t);if(0!==i){if(!this.isEdit){var n=this.getSubSymbolScaleValue()*SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[2]=n/i}t.length===this.minEditPts?this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t):this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),r=new SuperMapAlgoPlot.Point(a.x+e*i,a.y+l*i),s=o*i;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,s,0),this.addText("?",a,.3*i,0,"#0000ff"),this.addScalePoint(r,0);var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,s,s,90);this.addScalePoint(p,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.getOutRectangleDis(l),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0===o)return;var n=new SuperMapAlgoPlot.Point(e.x,e.y);if(0===t&&(this.scaleValues[0]=(n.x-i.x)/o,this.scaleValues[1]=(n.y-i.y)/o),1===t){var a=this.scaleValues[0],r=this.scaleValues[1],s=new SuperMapAlgoPlot.Point(i.x+a*o,i.y+r*o),p=SuperMapAlgoPlot.PlottingUtil.distance(e,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30010=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30009=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 l=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===l.scaleValues.length&&(l.scaleValues.push(-.04),l.scaleValues.push(-.175),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=l*this.scaleValues[0],i=e[e.length-1];if(e.length>2){for(var n=-1,a=e.length-2;a>=0;a--)if(o<SuperMapAlgoPlot.PlottingUtil.distance(i,e[a])){n=a;break}e.splice(n+1,e.length-n),e.push(i)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);var r=e[e.length-2],s=e[e.length-1],p=o,u=180*SuperMapAlgoPlot.PlottingUtil.radian(r,s)/Math.PI,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,u+157.5),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,u+202.5),g=[];g.push(P),g.push(i),g.push(c);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0);var S=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(.8*p,s,r),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,p,p,u+90),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,p,p,u-90),y=[];y.push(h),y.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y);var A=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(1.2*p,s,r),M=SuperMapAlgoPlot.PlottingUtil.circlePoint(A,p,p,u+90),b=SuperMapAlgoPlot.PlottingUtil.circlePoint(A,p,p,u-90),d=[];d.push(M),d.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30009=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30008=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=l*this.scaleValues[0],i=e[e.length-1];if(e.length>2){for(var n=-1,a=e.length-2;a>=0;a--)if(o<SuperMapAlgoPlot.PlottingUtil.distance(i,e[a])){n=a;break}e.splice(n+1,e.length-n),e.push(i)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);var r=e[e.length-2],s=e[e.length-1],p=o,u=180*SuperMapAlgoPlot.PlottingUtil.radian(r,s)/Math.PI,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,u+157.5),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,u+202.5),g=[];g.push(P),g.push(i),g.push(c);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30008=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21221=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL,e);for(var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),o=e[0].x,i=e[0].x,n=e[0].y,a=e[0].y,r=[],s=0;s<e.length;s++)o>e[s].x&&(o=e[s].x),i<e[s].x&&(i=e[s].x),n>e[s].y&&(n=e[s].y),a<e[s].y&&(a=e[s].y),r.push(e[s]);for(var p=(i-o)/5,u=.2*p,P=[],c=0;c<360;c+=18){var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(new SuperMapAlgoPlot.Point(0,0),u,u,c);P.push(g)}for(var S=0,h=o;h<i;h+=p)for(var f=n;f<a;f+=p){var y=new SuperMapAlgoPlot.Point(h,f);if(SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(r,y))if(0===S){if(S=0,this.subSymbols.length>0){var A=.015*l;this.computeSubSymbol(this.subSymbols[0],y,A,0),!0===this.subSymbols[0].fillLimit&&(this.subSymbols[0].fillColor="#332323")}S++}else if(S=0,this.subSymbols.length>0){var M=.015*l;this.computeSubSymbol(this.subSymbols[1],y,M,0)}}this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol21221=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21216=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 l=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===l.scaleValues.length&&l.scaleValues.push(1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),l=.05*e,o=SuperMapAlgoPlot.PlottingUtil.paraLine(t,.5*l,!0);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o);var i=[];i=i.concat(o);for(var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i),a=50*this.getSubSymbolScaleValue(),r=n*a*.02,s=n*a*.005,p=.1*n,u=.1*e,P=0;P<=n;P+=p){var c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,P+u);if(-1!==c.index){var g,S=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,i[c.index],c.pt);g=this.scaleValues[0]>0?new SuperMapAlgoPlot.Point(S.pntLeft.x,S.pntLeft.y):new SuperMapAlgoPlot.Point(S.pntRight.x,S.pntRight.y);var h=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,g,c.pt),f=[];if(f.push(h.pntRight),f.push(g),f.push(h.pntLeft),0===P){var y=new SuperMapAlgoPlot.Point(g.x,g.y);y.isScalePoint=!0,y.tag=0,this.scalePoints.push(y)}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,f,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),o=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[0],l[1],e);this.scaleValues[0]=o?-1:1}}}]),e}();SuperMapAlgoPlot.AlgoSymbol21216=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21207=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&this.scaleValues.push(.05),this.scaleValues[0]>.4&&(this.scaleValues[0]=.4);var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])*this.scaleValues[0],l=[];l.push(t[0]),l.push(t[1]);var o=SuperMapAlgoPlot.PlottingUtil.paraLine(l,.5*e,!0),i=SuperMapAlgoPlot.PlottingUtil.paraLine(l,.5*e,!1),n=!1;if(t.length>=3){var a=t[2];if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(a,t[0],t[1]))n=!0;else{n=!1;var r=SuperMap.Plot.PlottingUtil.isRight(a,t[0],t[1]),s=.8*SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);if(r){var p=SuperMapAlgoPlot.PlottingUtil.linePnt(i[0],i[1],s),u=SuperMapAlgoPlot.PlottingUtil.dirAngle(p,t[2])*SuperMapAlgoPlot.PlottingUtil.RTOD-SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD;if(u<0&&(u+=360),u>180&&(u-=180),u<10||u>170)n=!0;else{var P=[];P.push(p),P.push(new SuperMapAlgoPlot.Point(t[2].x,t[2].y));var c=SuperMapAlgoPlot.PlottingUtil.paraLine(P,.5*e,!0),g=SuperMapAlgoPlot.PlottingUtil.paraLine(P,.5*e,!1),S=SuperMapAlgoPlot.PlottingUtil.intersectLines(i[0],i[1],c[0],c[1]);c[0]=S.intersectPoint,S=SuperMapAlgoPlot.PlottingUtil.intersectLines(i[0],i[1],g[0],g[1]),g[0]=S.intersectPoint;for(var h=[],f=[],y=0;y<o.length;y++)h.push(o[y]);h.push(i[i.length-1]);for(var A=0;A<c.length;A++)h.push(c[A]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);for(var M=g.length-1;M>=0;M--)f.push(g[M]);f.push(i[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f)}}else{var b=SuperMapAlgoPlot.PlottingUtil.linePnt(o[0],o[1],s),d=SuperMapAlgoPlot.PlottingUtil.dirAngle(b,t[2])*SuperMapAlgoPlot.PlottingUtil.RTOD-SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD;if(d<0&&(d+=360),d>180&&(d-=180),d<10||d>170)n=!0;else{var m=[];m.push(b),m.push(new SuperMapAlgoPlot.Point(t[2].x,t[2].y));var v=SuperMapAlgoPlot.PlottingUtil.paraLine(m,.5*e,!0),O=SuperMapAlgoPlot.PlottingUtil.paraLine(m,.5*e,!1),U=SuperMapAlgoPlot.PlottingUtil.intersectLines(o[0],o[1],v[0],v[1]);v[0]=U.intersectPoint,U=SuperMapAlgoPlot.PlottingUtil.intersectLines(o[0],o[1],O[0],O[1]),O[0]=U.intersectPoint;var L=[],w=[];L.push(o[0]);for(var _=0;_<v.length;_++)L.push(v[_]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,L);for(var V=O.length-1;V>=0;V--)w.push(O[V]);w.push(o[o.length-1]);for(var T=i.length-1;T>=0;T--)w.push(i[T]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w)}}}}else n=!0;if(n){for(var E=i.length-1;E>=0;E--)o.push(i[E]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o)}this.addScalePoint(o[0],0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!(2>l.length)){0===this.scaleValues.length&&this.scaleValues.push(.2);var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0===t){var i=2*SuperMapAlgoPlot.PlottingUtil.pointToLineDis(e,l[0],l[1])/o;i>.4&&(i=.4),this.scaleValues[0]=i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol21207=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2060202=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=this.scaleValues[0],l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=e*l,i=this.scaleValues[2]*l*.5,n=this.scaleValues[1],a=!1;a=0!=n;var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(0!=r){for(var s=[],p=0;p<=r;p+=i){var u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,p);if(!(u.index<0)){var P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,t[u.index+1],u.pt);if(a?s.push(P.pntRight):s.push(P.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var c=new SuperMapAlgoPlot.Point(s[0].x,s[0].y);c.isScalePoint=!0,c.tag=0,this.scalePoints.push(c)}else Math.abs(2*i-p)<=1e-6&&((c=new SuperMapAlgoPlot.Point(u.pt.x,u.pt.y)).isScalePoint=!0,c.tag=1,this.scalePoints.push(c));a=!a}}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),a=0==n;for(var g=s.length,S=0;S<g-1;S+=2){var h=[],f=new SuperMapAlgoPlot.Point(s[S].x,s[S].y),y=new SuperMapAlgoPlot.Point(s[S+1].x,s[S+1].y),A=new SuperMapAlgoPlot.Point(0,0);S<g-2&&(A.x=s[S+2].x,A.y=s[S+2].y);var M,b,d,m=.3*SuperMapAlgoPlot.PlottingUtil.distance(f,y),v=new SuperMapAlgoPlot.Point(0,0);v.x=(f.x+y.x)/2,v.y=(f.y+y.y)/2,M=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(m,f,v),b=a?M.pntLeft:M.pntRight,h.push(b),d=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(m/3,b,v),h.push(d.pntLeft),h.push(d.pntRight);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!0,fill:!0,lineTypeLimit:!0},!0)}this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol2060202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2060201=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=this.scaleValues[0],l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=e*l,i=this.scaleValues[2]*l*.5,n=this.scaleValues[1],a=!1;a=0!=n;var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(0!=r){for(var s=[],p=0;p<=r;p+=i){var u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,p);if(!(u.index<0)){var P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,t[u.index+1],u.pt);if(a?s.push(P.pntRight):s.push(P.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var c=new SuperMapAlgoPlot.Point(s[0].x,s[0].y);c.isScalePoint=!0,c.tag=0,this.scalePoints.push(c)}else Math.abs(2*i-p)<=1e-6&&((c=new SuperMapAlgoPlot.Point(u.pt.x,u.pt.y)).isScalePoint=!0,c.tag=1,this.scalePoints.push(c));a=!a}}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),a=0==n;for(var g=s.length,S=0;S<g-1;S+=2){var h=new SuperMapAlgoPlot.Point(s[S].x,s[S].y),f=new SuperMapAlgoPlot.Point(s[S+1].x,s[S+1].y),y=new SuperMapAlgoPlot.Point(0,0);S<g-2&&(y.x=s[S+2].x,y.y=s[S+2].y);var A,M,b=.3*SuperMapAlgoPlot.PlottingUtil.distance(h,f),d=.8*b,m=.6*b;S<g-2&&(A=SuperMapAlgoPlot.PlottingUtil.linePnt(h,y,d),M=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(m,y,h),a||(M=M.pntLeft),SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(m,h,A),a&&M.pntRight)}var v=SuperMapAlgoPlot.PlottingUtil.distance(s[g-3],s[g-1]),O=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(v/4,s[g-1],s[g-3]);O.y=(s[g-1].y+s[g-2].y)/2;var U=SuperMapAlgoPlot.PlottingUtil.dirAngle(s[g-3],s[g-1])*SuperMapAlgoPlot.PlottingUtil.RTOD;this.addText("钢网",O,v,U),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol2060201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),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 l=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 l.MIN_GEOPT_COUNT=2,l.MAX_GEOPT_COUNT=1024,l.SV1_defaultATLenDivABLen=0,l.SV2_defaultAYPosScale=.65,l.SV_AJCtrl=.6,l.SV_ArrowWoCtrl=.6,l.SV2_DefaultAJWidDiviedByATLen=.148,l.SV3_DefaultAEWidDividedByATLen=.4,l.SV4_DefaultAELenDividedByATLen=.3,l.SV_ATScaleParameter=1.25,l.SV_ATLenDividedByATWid=1.35,l.SV_ATWidDividedByArrowWeiWid=.5,l.AB_VERTEX_COUNT=4,l.MIN_PTCOUNT_PERARROW=3,l.ATL_DIV_AWW=.7,l.ATL_DIV_ABL=.12,l.ATL_DIV_ABL_1=.18,l.DEFAULT_ARROW_TAIL_POS=.12,l.DUOJIANTOU_TAIL_RATE_1=8,l.DUOJIANTOU_TAIL_RATE_2=3,l.DUOJIANTOU_TAIL_RATE_3=.6,l.AB_CTRLPT_RATE1=0,l.AB_CTRLPT_RATE2=3,l.AB_CTRLPT_RATE3=.5,l.MIN_SCALEVALUE=.1,l.MAX_SCALEVALUE=1,l.m_scalePoints=null,l.CLASS_NAME="SuperMapAlgoPlot.AlgoSymbol1002",l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),this.m_scalePoints=[];var t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(this.controlPoints);if((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=this.operateCtrlPts(t),l=e.length,o=Math.floor(l/this.MIN_PTCOUNT_PERARROW),i=this.scaleValues.length;if(i<2*o-1){0==i&&(this.scaleValues.push(this.SV1_defaultATLenDivABLen),i++);for(var n=2*o-1-i,a=0;a<n;a+=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*o-1){for(var r=0;r<o;r++)this.scaleValues.push(this.SV1_defaultATLenDivABLen);for(var s=0;s<o-1;s++)this.scaleValues.push(this.SV2_defaultAYPosScale)}var p=this.arrowMeshs(e);SuperMapAlgoPlot.PlottingUtil.clearSamePts(p.shapePts);var u=!1;if(void 0!==t[0].z&&(u=!0),u){var P=this.operateCtrlPts3D(t),c=p.arrLeftPts2D,g=p.arrRightPts2D,S=p.arrHeadPts2D;if(o!=c.length&&o!=g.length&&o!=S.length)return!1;for(var h=[],f=0;f<o;f++){for(var y=[],A=3*f;A<3*(f+1)&&A<P.length;A++)y.push(P[A]);h.push(y)}for(var M=[],b=[],d=[],m=0;m<o;m++)if(!(2>h[m].length)){for(var v=c[m][c[m].length-1],O=g[m][0],U=new SuperMapAlgoPlot.Point(.5*(v.x+O.x),.5*(v.y+O.y)),L=h[m][h[m].length-1],w=h[m][h[m].length-2],_=this.ComputeZValue(U,L,w),V={x:U.x,y:U.y,z:_},T=[],E=[],x=0;x<h[m].length-1;x++)if(0==m)E.push(h[m][x]);else{var C={x:h[m][x].x,y:h[m][x].y,z:.5*(h[m][x].z+h[m-1][x].z)};E.push(C)}E.push(V),this.ComputeBeizerZValueByDis(E,c[m],T),M.push(T),T=[];var j=[];j.push(V);for(var Y=h[m].length-2;Y>=0;Y--)if(m==o-1)j.push(h[m][Y]);else{var I={x:h[m][Y].x,y:h[m][Y].y,z:.5*(h[m][Y].z+h[m+1][Y].z)};j.push(I)}this.ComputeBeizerZValueByDis(j,g[m],T),b.push(T),T=[];for(var R=S[m],B=0;B<R.length;B++){var N=this.ComputeZValue(R[B],L,w);T.push({x:R[B].x,y:R[B].y,z:N})}d.push(T)}for(var D=[],k=0;k<o;k++)D=(D=(D=D.concat(M[k])).concat(d[k])).concat(b[k]);return SuperMapAlgoPlot.PlottingUtil.clearSamePts(D),p.shapePts.length>0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,D,{surroundLineFlag:!1}),this.scalePoints=this.scalePoints.concat(this.m_scalePoints),!0}p.shapePts.length>0&&(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,p.shapePts,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMapAlgoPlot.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 l=this.operateCtrlPts(this.controlPoints),o=l.length,i=Math.floor(o/this.MIN_PTCOUNT_PERARROW),n=0;if(t<i){var a=[],r=t*this.MIN_PTCOUNT_PERARROW;a[0]=l[r],a[1]=l[r+1],a[2]=l[r+2];var s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(a),p=new SuperMapAlgoPlot.Point(0,0),u=new SuperMapAlgoPlot.Point(0,0),P=new SuperMapAlgoPlot.Point(0,0);SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,a[0],a[1],a[2],p,u),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,a[2],a[1],u,P),n=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(a[2],P,e).dLen1/(this.SV4_DefaultAELenDividedByATLen+1)/s}else{var c=[],g=[],S=(t-i)*this.MIN_PTCOUNT_PERARROW;c[0]=l[S],c[1]=l[S+1],c[2]=l[S+2];var h=(t-i+1)*this.MIN_PTCOUNT_PERARROW;g[0]=l[h],g[1]=l[h+1],g[2]=l[h+2];var f=new SuperMapAlgoPlot.Point(0,0),y=new SuperMapAlgoPlot.Point(0,0),A=new SuperMapAlgoPlot.Point(0,0);f.x=.5*(c[2].x+g[2].x),y.x=.5*(c[1].x+g[1].x),A.x=.5*(c[0].x+g[0].x),f.y=.5*(c[2].y+g[2].y),y.y=.5*(c[1].y+g[1].y),A.y=.5*(c[0].y+g[0].y);var M=SuperMapAlgoPlot.PlottingUtil.distance(f,y),b=SuperMapAlgoPlot.PlottingUtil.distance(A,y),d=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(f,y,e),m=d.dLen1;n=m<M?m/(M+b):((m=(d=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(y,A,e)).dLen1)+M)/(M+b)}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=[],l=[],o=[],i=new SuperMapAlgoPlot.Path2D,n=t.length,a=Math.floor(n/this.MIN_PTCOUNT_PERARROW),r=this.generateAWWidth(a,t),s=[],p=[],u=0,P=0,c=0,g=[];for(P=0,c=0;P<a;P++,c+=this.MIN_PTCOUNT_PERARROW){g[0]=t[c],g[1]=t[c+1],g[2]=t[c+2],u=this.scaleValues[P];var S=this.generateArrowBodyPts(g,r[P],u);u=S.dATLenDivABLen,s[P]=S.arrowBodyPts,p.push(u)}var h=[],f=0,y=0,A=0,M=[],b=[];for(P=0;P<a-1;P++,y+=this.MIN_PTCOUNT_PERARROW){A=y+this.MIN_PTCOUNT_PERARROW,M[0]=t[y],M[1]=t[y+1],M[2]=t[y+2],b[0]=t[A],b[1]=t[A+1],b[2]=t[A+2],f=this.scaleValues[a+P];var d=this.generateAYPts(M,s[P],b,s[P+1],f);h.push(d.arrowLeftYaoPts),h.push(d.arrowRightYaoPts)}var m=[],v=s[0],O=[],U=0,L=[];i.MoveTo(v[0]),i.CurveTo(v[1],v[2],v[3]),i.CurveTo(v[4],v[5],v[6]),i.ToSubPathPolygons(O),e.push(O[0]),U=O[0].length;for(var w=7;w<10;w++)i.LineTo(v[w]);for(O=[],i.ToSubPathPolygons(O);U<O[0].length;U++)L.push(O[0][U]);for(o.push(L),m.push(v[0]),m.push(t[0]),P=1,c=this.MIN_PTCOUNT_PERARROW;P<a;P++,c+=this.MIN_PTCOUNT_PERARROW){var _=s[P],V=P+P-2,T=h[V];for(i.LineTo(T[0]),i.CurveTo(T[1],T[2],T[3]),O=[],L=[],i.ToSubPathPolygons(O);U<O[0].length;U++)L.push(O[0][U]);l.push(L);var E=h[V+1];for(i.CurveTo(E[1],E[2],E[3]),O=[],L=[],i.ToSubPathPolygons(O);U<O[0].length;U++)L.push(O[0][U]);e.push(L);for(var x=7;x<10;x++)i.LineTo(_[x]);for(O=[],L=[],i.ToSubPathPolygons(O);U<O[0].length;U++)L.push(O[0][U]);o.push(L),m.push(t[c].clone())}var C=s[a-1];for(i.LineTo(C[10]),i.CurveTo(C[11],C[12],C[13]),i.CurveTo(C[14],C[15],C[16]),O=[],L=[],i.ToSubPathPolygons(O);U<O[0].length;U++)L.push(O[0][U]);l.push(L),m.push(C[16]);var j=[];return i.ToSubPathPolygons(j),{shapePts:j[0],arrLeftPts2D:e,arrRightPts2D:l,arrHeadPts2D:o}}},{key:"operateCtrlPts",value:function(t){var e=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),l=e.length,o=Math.floor(l/this.MIN_PTCOUNT_PERARROW),i=l%this.MIN_PTCOUNT_PERARROW,n=new SuperMapAlgoPlot.Point;if(2==i&&(n.x=.5*(e[l-2].x+e[l-1].x),n.y=.5*(e[l-2].y+e[l-1].y),n.x==e[l-1].x&&n.y==e[l-1].y||(e.push(e[l-1].clone()),e[l-1]=n,l++,o++)),l>3)for(var a=o-1,r=0,s=a;r<a;s--,r++)for(var p=s*this.MIN_PTCOUNT_PERARROW,u=0;u<p;u+=this.MIN_PTCOUNT_PERARROW){if(!SuperMapAlgoPlot.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,l=e.length,o=Math.floor(l/this.MIN_PTCOUNT_PERARROW),i={x:0,y:0,z:0};if(2==l%3&&(i.x=.5*(e[l-2].x+e[l-1].x),i.y=.5*(e[l-2].y+e[l-1].y),i.z=.5*(e[l-2].z+e[l-1].z),i.x==e[l-1].x&&i.y==e[l-1].y&&i.z==e[l-1].z||(e.push(e[l-1]),e[l-1]=i,l++,o++)),l>3)for(var n=o-1,a=0,r=n;a<n;r--,a++)for(var s=3*r,p=0;p<s;p+=3){if(!SuperMapAlgoPlot.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 l=[];if(t>0)if(1==t)l.push(0);else{var o=SuperMapAlgoPlot.PlottingUtil.distance(e[0],e[this.MIN_PTCOUNT_PERARROW]);l.push(o);for(var i=1,n=this.MIN_PTCOUNT_PERARROW;i<t-1;i++,n+=this.MIN_PTCOUNT_PERARROW){o=.5*(SuperMapAlgoPlot.PlottingUtil.distance(e[n-this.MIN_PTCOUNT_PERARROW],e[n])+SuperMapAlgoPlot.PlottingUtil.distance(e[n],e[n+this.MIN_PTCOUNT_PERARROW])),l.push(o)}o=SuperMapAlgoPlot.PlottingUtil.distance(e[n-this.MIN_PTCOUNT_PERARROW],e[n]),l.push(o)}return l}},{key:"generateArrowBodyPts",value:function(t,e,l){var o=[],i=[],n=[],a=[],r=[],s=[],p=[],u=t.length-1;if(u<2)return{dATLenDivABLen:l=0,arrowBodyPts:o};var P=l,c=this.SV2_DefaultAJWidDiviedByATLen,g=this.SV3_DefaultAEWidDividedByATLen,S=this.SV4_DefaultAELenDividedByATLen,h=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),f=SuperMapAlgoPlot.PlottingUtil.polylineDistance(h),y=0==e?f*this.ATL_DIV_ABL_1:(f+e)*this.ATL_DIV_ABL,A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(y,h[1],h[0]);i[1]=A.pntLeft.clone(),n[1]=A.pntRight.clone();var M=0;M=SuperMapAlgoPlot.PlottingUtil.equalFuzzy(P,0,1e-14)?y*this.ATL_DIV_AWW:f*P;var b=SuperMapAlgoPlot.PlottingUtil.distance(h[1],h[2]);M+M>b&&(M=.5*b);var d=M*c;h.push(h[u].clone());var m,v=0;m=f-M;var O=[],U=0;for(U=2;U<=u;U++)v+=SuperMapAlgoPlot.PlottingUtil.distance(h[U-1],h[U-2]),SuperMapAlgoPlot.PlottingUtil.equalFuzzy(m,0,1e-14)?O[U]=0:SuperMapAlgoPlot.PlottingUtil.equalFuzzy(m-v,0,1e-14)?O[U]=d:O[U]=d+(y-d)*Math.pow((m-v)/m,this.SV_ATScaleParameter);O[u+1]=d;var L=new SuperMapAlgoPlot.Point(0,0),w=new SuperMapAlgoPlot.Point(0,0),_=new SuperMapAlgoPlot.Point(0,0);for(U=2;U<=u;U++){SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,h[U-2],h[U-1],h[U],w,_),u==U&&SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,h[u],h[u-1],_,L);var V=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(O[U],w,h[U-1]);n[U]=V.pntLeft,i[U]=V.pntRight}var T,E,x=L.clone();if(SuperMapAlgoPlot.PlottingUtil.distance(h[u],x)>0){var C=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(M,h[u],L);h[u]=C.clone()}for(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,h[u+1],h[u]),i[u+1]=A.pntLeft,n[u+1]=A.pntRight,U=2;U<=u;U++)SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,i[U-1],i[U],i[U+1],w,_),a[U]=w.clone(),r[U]=_.clone(),SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,n[U-1],n[U],n[U+1],w,_),s[U]=w.clone(),p[U]=_.clone();SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,i[1],i[2],a[2],L),r[1]=L.clone(),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,n[1],n[2],s[2],L),p[1]=L.clone();E=SuperMapAlgoPlot.PlottingUtil.distance(i[u+1],i[u])*(1/3),(T=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(E,h[u],h[u+1])).x+=i[u+1].x-h[u].x,T.y+=i[u+1].y-h[u].y,E=(y-d)*Math.pow(E/m,this.SV_ATScaleParameter+.3),A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(E,i[u+1],T),a[u+1]=A.pntLeft.clone(),E=SuperMapAlgoPlot.PlottingUtil.distance(n[u+1],n[u])*(1/3),(T=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(E,h[u],h[u+1])).x+=n[u+1].x-h[u].x,T.y+=n[u+1].y-h[u].y,E=(y-d)*Math.pow(E/m,this.SV_ATScaleParameter+.3),A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(E,n[u+1],T),s[u+1]=A.pntRight.clone();var j=[],Y=M*S,I=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(Y,h[u],h[u+1]);this.m_scalePoints.push(I.clone()),Y=M*g,A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(Y,h[u+1],I),j.push(A.pntRight),j.push(h[u+1]),j.push(A.pntLeft);var R=[];for(R.push(i[u+1]),U=u;U>=1;U--)R.push(a[U+1]),R.push(r[U]),R.push(i[U]);var B=[];for(U=1;U<=u;U++)B.push(n[U]),B.push(p[U]),B.push(s[U+1]);B.push(n[u+1]),o.push.apply(o,B),o.push.apply(o,j),o.push.apply(o,R),l=M/f;var N=[];for(U=R.length-1;U>=0;U--)N.push(R[U]);return{dATLenDivABLen:l,arrowBodyPts:o}}},{key:"generateAYPts",value:function(t,e,l,o,i){var n=new SuperMapAlgoPlot.Point(.5*(t[2].x+l[2].x),.5*(t[2].y+l[2].y)),a=new SuperMapAlgoPlot.Point(.5*(t[1].x+l[1].x),.5*(t[1].y+l[1].y)),r=new SuperMapAlgoPlot.Point(.5*(t[0].x+l[0].x),.5*(t[0].y+l[0].y)),s=SuperMapAlgoPlot.PlottingUtil.distance(n,a),p=SuperMapAlgoPlot.PlottingUtil.distance(r,a),u=i*(s+p),P=new SuperMapAlgoPlot.Point(0,0),c=new SuperMapAlgoPlot.Point(0,0),g=new SuperMapAlgoPlot.Point(0,0);if(u>s){u=s+p-u,P=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(u,r,a);var S=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[0]),h=SuperMapAlgoPlot.PlottingUtil.distance(l[1],l[0]);S=S*u/p,c=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(S,t[0],t[1]),h=h*u/p,g=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(h,l[0],l[1])}else{P=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(u,n,a);var f=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[2]),y=SuperMapAlgoPlot.PlottingUtil.distance(l[1],l[2]);f=f*u/s,c=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(f,t[2],t[1]),y=y*u/s,g=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(y,l[2],l[1])}this.m_scalePoints.push(P.clone());var A=this.SV_ArrowWoCtrl*SuperMapAlgoPlot.PlottingUtil.distance(P,c),M=this.SV_ArrowWoCtrl*SuperMapAlgoPlot.PlottingUtil.distance(P,g),b=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(A,P,c),d=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(M,P,g),m=e[11].clone(),v=e[10].clone(),O=o[5].clone(),U=o[6].clone(),L=SuperMapAlgoPlot.PlottingUtil.intersectLines(v,m,P,c),w=SuperMapAlgoPlot.PlottingUtil.distance(L.intersectPoint,v),_=SuperMapAlgoPlot.PlottingUtil.distance(v,P);w=w>_?this.SV_AJCtrl*_:this.SV_AJCtrl*w;var V=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(w,v,m);m=V.clone(),e[11]=V.clone(),L=SuperMapAlgoPlot.PlottingUtil.intersectLines(U,O,P,g),w=(w=SuperMapAlgoPlot.PlottingUtil.distance(L.intersectPoint,U))>(_=SuperMapAlgoPlot.PlottingUtil.distance(U,P))?this.SV_AJCtrl*_:this.SV_AJCtrl*w,O=(V=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(w,U,O)).clone(),o[5]=V.clone();var T=[];T.push(v),T.push(m),T.push(b),T.push(P);var E=[];return E.push(P),E.push(d),E.push(O),E.push(U),{arrowLeftYaoPts:T,arrowRightYaoPts:E}}}]),e}();SuperMapAlgoPlot.AlgoSymbol1002=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),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 l=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===l.scaleValues.length&&l.scaleValues.push(.25),l.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1021",l.QIANJI_RATE1=9,l.QIANJI_RATE2=20,l.QIANJI_RATE4=5,l.QIANJI_RATE3=1/3,l.QIANJI_TAIL_RATE1=8,l.QIANJI_TAIL_RATE2=3,l.QIANJI_TAIL_RATE3=.6,l.SV1_Default=.25,l.SV1_MinValue=0,l.SV1_MaxValue=.5,l.DEFAULT_ARROW_TAIL_POS=.4,l.SCALE_VALUE_COUNT=1,l.MIN_LEN_LeftToRightCenter=1e-7,l.SCALE_AT=1/3,l.SCALE_ATAJ=1/7,l.SCALE_ATAE=1/3,l.SCALE_AW=2/3,l.SCALE_ATAJctrlDefSide=.8,l.SCALE_ATAJctrlSameSide=2/3,l.SCALE_MM_LEFT=.25,l.SCALE_MM_RIGHT=.75,l.BEZIER_K1=1/3,l.QIANJI_OPERATE_RATE1=1,l.m_dMaxDis=0,l.m_bIsAnimation=!1,l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.components.length=0,this.m_scalePoints=[],t.length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<3)){var e=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),l=this.arrowMeshs(e);l.LeftArowHead.unshift(l.LeftArowLeftBody[0][l.LeftArowLeftBody[0].length-1]),l.RightArowHead.unshift(l.RightArowLeftBody[l.RightArowLeftBody.length-1]),l.LeftArowLeftBody[0].push(l.LeftArowHead[0]),l.RightArowLeftBody.push(l.RightArowHead[0]),l.shapePts.push(l.shapePts[0]);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l.LeftArowLeftBody[0]),i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.4*o,l.LeftArowLeftBody[0]),n=[],a=[];if(i.bfind)for(var r=0;r<=i.index;r++)n.push(l.LeftArowLeftBody[0][r]);var s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*o,l.LeftArowLeftBody[0]);if(s.bfind)for(var p=s.index;p<l.LeftArowLeftBody[0].length-1;p++)a.push(l.LeftArowLeftBody[0][p]);var u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l.RightArowLeftBody),P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.4*u,l.RightArowLeftBody),c=[],g=[];if(P.bfind)for(var S=0;S<=P.index;S++)c.push(l.RightArowLeftBody[S]);var h=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*u,l.RightArowLeftBody);if(h.bfind)for(var f=h.index;f<l.RightArowLeftBody.length-1;f++)g.push(l.RightArowLeftBody[f]);var y=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l.RightArowRightBody),A=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.4*y,l.RightArowRightBody),M=[],b=[];if(A.bfind)for(var d=0;d<=A.index;d++)M.push(l.RightArowRightBody[d]);var m=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*y,l.RightArowRightBody);if(m.bfind)for(var v=m.index;v<l.RightArowRightBody.length-1;v++)b.push(l.RightArowRightBody[v]);l.shapePts.length>0&&(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l.shapePts,{strokeWidth:0,weight:0,lineWidthLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l.LeftArowHead,{lineTypeLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l.LeftArowRightBody),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l.RightArowHead,{lineTypeLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b)),this.scalePoints=[];for(var O=0;O<this.m_scalePoints.length;O++)this.m_scalePoints[O].isScalePoint=!0,this.m_scalePoints[O].tag=O,this.scalePoints.push(this.m_scalePoints[O]);this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o,i=SuperMapAlgoPlot.PlottingUtil.operateControlPoints(l),n=new SuperMapAlgoPlot.Point((i[0].x+i[1].x)/2,(i[0].y+i[1].y)/2),a=new SuperMapAlgoPlot.Point((i[2].x+i[3].x)/2,(i[2].y+i[3].y)/2),r=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,n,a);if(r.isOnline){var s=SuperMapAlgoPlot.PlottingUtil.distance(r.projectPoint,n),p=SuperMapAlgoPlot.PlottingUtil.distance(n,a);(o=SuperMapAlgoPlot.PlottingUtil.equalFuzzy(s,0)?this.SV1_MinValue:s/p)>this.SV1_MaxValue&&(o=this.SV1_MaxValue)}else o=SuperMapAlgoPlot.PlottingUtil.distance(r.projectPoint,n)<SuperMapAlgoPlot.PlottingUtil.distance(r.projectPoint,a)?this.SV1_MinValue:this.SV1_MaxValue;this.scaleValues=[],this.scaleValues.push(o)}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=new SuperMapAlgoPlot.Path2D,l=[];l=this.m_bIsAnimation&&4===t.length?SuperMapAlgoPlot.PlottingUtil.clonePoints(t):SuperMapAlgoPlot.PlottingUtil.operateControlPoints(t);var o=this.scaleValues[0],i=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[3]),n=SuperMapAlgoPlot.PlottingUtil.distance(l[1],l[2]),a=l[1].clone(),r=.5*(l[0].x+l[3].x),s=.5*(l[0].y+l[3].y),p=new SuperMapAlgoPlot.Point(r,s),u=.5*(l[1].x+l[2].x),P=.5*(l[1].y+l[2].y),c=new SuperMapAlgoPlot.Point(u,P),g=SuperMapAlgoPlot.PlottingUtil.distance(p,c);g<this.MIN_LEN_LeftToRightCenter&&(g=this.MIN_LEN_LeftToRightCenter),p.x=r+i*(r-u)/(g*this.QIANJI_RATE1),p.y=s+i*(s-P)/(g*this.QIANJI_RATE1),c.x=u+n*(u-r)/(g*this.QIANJI_RATE1),c.y=P+n*(P-s)/(g*this.QIANJI_RATE1);var S=new SuperMapAlgoPlot.Point(0,0),h=new SuperMapAlgoPlot.Point(0,0);S.x=r+i*(r-u)/(g*this.QIANJI_RATE2),S.y=s+i*(s-P)/(g*this.QIANJI_RATE2),h.x=u+n*(u-r)/(g*this.QIANJI_RATE2),h.y=P+n*(P-s)/(g*this.QIANJI_RATE2);var f=new SuperMapAlgoPlot.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),y=new SuperMapAlgoPlot.Point((l[2].x+l[3].x)/2,(l[2].y+l[3].y)/2),A=l[3].x-(l[3].x-p.x)*this.SCALE_AT,M=l[3].y-(l[3].y-p.y)*this.SCALE_AT,b=l[2].x-(l[2].x-c.x)*this.SCALE_AT,d=l[2].y-(l[2].y-c.y)*this.SCALE_AT,m=new SuperMapAlgoPlot.Point(0,0),v=new SuperMapAlgoPlot.Point(0,0),O=new SuperMapAlgoPlot.Point(0,0),U=new SuperMapAlgoPlot.Point(0,0);v.x=A-(M-l[3].y)*this.SCALE_ATAJ,v.y=M+(A-l[3].x)*this.SCALE_ATAJ,m.x=A+(M-l[3].y)*this.SCALE_ATAJ,m.y=M-(A-l[3].x)*this.SCALE_ATAJ,U.x=b-(d-l[2].y)*this.SCALE_ATAJ,U.y=d+(b-l[2].x)*this.SCALE_ATAJ,O.x=b+(d-l[2].y)*this.SCALE_ATAJ,O.y=d-(b-l[2].x)*this.SCALE_ATAJ;var L=new SuperMapAlgoPlot.Point(0,0),w=new SuperMapAlgoPlot.Point(0,0),_=new SuperMapAlgoPlot.Point(0,0),V=new SuperMapAlgoPlot.Point(0,0);L.x=3*m.x-2*A-(l[3].x-A)*this.SCALE_ATAE,L.y=3*m.y-2*M-(l[3].y-M)*this.SCALE_ATAE,w.x=3*v.x-2*A-(l[3].x-A)*this.SCALE_ATAE,w.y=3*v.y-2*M-(l[3].y-M)*this.SCALE_ATAE,_.x=3*O.x-2*b-(l[2].x-b)*this.SCALE_ATAE,_.y=3*O.y-2*d-(l[2].y-d)*this.SCALE_ATAE,V.x=3*U.x-2*b-(l[2].x-b)*this.SCALE_ATAE,V.y=3*U.y-2*d-(l[2].y-d)*this.SCALE_ATAE,p.x=r+i*(r-u)/(g*this.QIANJI_RATE4),p.y=s+i*(s-P)/(g*this.QIANJI_RATE4),c.x=u+n*(u-r)/(g*this.QIANJI_RATE4),c.y=P+n*(P-s)/(g*this.QIANJI_RATE4);var T=new SuperMapAlgoPlot.Point(0,0);T.x=l[0].x+(p.x-l[0].x)*this.SCALE_AW,T.y=l[0].y+(p.y-l[0].y)*this.SCALE_AW;var E=new SuperMapAlgoPlot.Point(0,0);E.x=l[1].x+(c.x-l[1].x)*this.SCALE_AW,E.y=l[1].y+(c.y-l[1].y)*this.SCALE_AW;var x=new SuperMapAlgoPlot.Point(0,0);x.x=m.x+(p.x-m.x)*this.SCALE_ATAJctrlSameSide,x.y=m.y+(p.y-m.y)*this.SCALE_ATAJctrlSameSide;var C=new SuperMapAlgoPlot.Point(0,0);C.x=U.x+(c.x-U.x)*this.SCALE_ATAJctrlSameSide,C.y=U.y+(c.y-U.y)*this.SCALE_ATAJctrlSameSide;var j=new SuperMapAlgoPlot.Point(0,0);j.x=v.x+(S.x-v.x)*this.SCALE_ATAJctrlDefSide,j.y=v.y+(S.y-v.y)*this.SCALE_ATAJctrlDefSide;var Y=new SuperMapAlgoPlot.Point(0,0);Y.x=O.x+(h.x-O.x)*this.SCALE_ATAJctrlDefSide,Y.y=O.y+(h.y-O.y)*this.SCALE_ATAJctrlDefSide;var I=new SuperMapAlgoPlot.Point(0,0);I.x=f.x+(y.x-f.x)*o,I.y=f.y+(y.y-f.y)*o,this.m_scalePoints.push(new SuperMapAlgoPlot.Point(I.x,I.y));var R=new SuperMapAlgoPlot.Point(0,0),B=new SuperMapAlgoPlot.Point(0,0);R.x=l[0].x+(l[3].x-l[0].x)*o,R.y=l[0].y+(l[3].y-l[0].y)*o,B.x=l[1].x+(l[2].x-l[1].x)*o,B.y=l[1].y+(l[2].y-l[1].y)*o,R.x=R.x+(I.x-R.x)*this.QIANJI_RATE3,R.y=R.y+(I.y-R.y)*this.QIANJI_RATE3,B.x=B.x+(I.x-B.x)*this.QIANJI_RATE3,B.y=B.y+(I.y-B.y)*this.QIANJI_RATE3;var N=[];N.push(l[0].clone()),N.push(T.clone()),N.push(x.clone()),N.push(m.clone()),e.MoveTo(N[0]),e.CurveTo(N[1],N[2],N[3]);var D,k=[],z=[],F=[],G=[],W=[],J=[],K=[];for(e.ToSubPathPolygons(K),k.push(K[0]),D=K[0].length,e.LineTo(L),e.LineTo(l[3]),e.LineTo(w),(N=[]).push(v),N.push(j),N.push(R),N.push(I),e.LineTo(N[0]),K=[],e.ToSubPathPolygons(K);D<K[0].length;D++)z.push(K[0][D]);for(D=K[0].length,e.CurveTo(N[1],N[2],N[3]),K=[],e.ToSubPathPolygons(K);D<K[0].length;D++)F.push(K[0][D]);for(D=K[0].length,(N=[]).push(B),N.push(Y),N.push(O),e.CurveTo(N[0],N[1],N[2]),K=[],e.ToSubPathPolygons(K);D<K[0].length;D++)G.push(K[0][D]);for(D=K[0].length,e.LineTo(_),e.LineTo(l[2]),e.LineTo(V),(N=[]).push(U),N.push(C),N.push(E),N.push(a),e.LineTo(N[0]),K=[],e.ToSubPathPolygons(K);D<K[0].length;D++)W.push(K[0][D]);for(D=K[0].length,e.CurveTo(N[1],N[2],N[3]),K=[],e.ToSubPathPolygons(K);D<K[0].length;D++)J.push(K[0][D]);return K=[],e.ToSubPathPolygons(K),{shapePts:K[0],LeftArowLeftBody:k,LeftArowHead:z,LeftArowRightBody:F,ArowMidBody:[],RightArowLeftBody:G,RightArowHead:W,RightArowRightBody:J}}}]),e}();SuperMapAlgoPlot.AlgoSymbol1021=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),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 l=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===l.scaleValues.length&&l.scaleValues.push(.126),l.CLASS_NAME="SuperMapAlgoPlot.GeoTooltipBox",l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"destroy",value:function(){(function t(e,l,o){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,l);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,l,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):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,l,o,i,n,a;this.controlPoints[2]&&(this.controlPoints[2].isFixedPos=!0),this.controlPoints[0].x<this.controlPoints[1].x?(e=this.controlPoints[0].x,o=this.controlPoints[1].x):(e=this.controlPoints[1].x,o=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(i=this.controlPoints[0].y,l=this.controlPoints[1].y):(i=this.controlPoints[1].y,l=this.controlPoints[0].y),n=this.controlPoints[2].x,a=this.controlPoints[2].y;var r=0,s=(l-i)/(o-e);r=n<e?a>l?Math.abs((a-l)/(n-e))>s?2:1:a<i&&Math.abs((a-i)/(n-e))>s?4:1:n>o?a>l?Math.abs((a-l)/(n-o))>s?2:3:a<i&&Math.abs((a-i)/(n-o))>s?4:3:a>l?2:a<i?4:0,this.scalePoints=[];var p=[];switch(p.push(new SuperMapAlgoPlot.Point(e,i)),p.push(new SuperMapAlgoPlot.Point(e,l)),p.push(new SuperMapAlgoPlot.Point(o,l)),p.push(new SuperMapAlgoPlot.Point(o,i)),r){case 0:break;case 1:this.addScalePoint(new SuperMapAlgoPlot.Point(e,l-(l-i)*t)),p.splice(r,0,new SuperMapAlgoPlot.Point(e,l-(l-i)*t)),p.splice(r,0,this.controlPoints[2].clone()),p.splice(r,0,new SuperMapAlgoPlot.Point(e,i+(l-i)*t));break;case 2:this.addScalePoint(new SuperMapAlgoPlot.Point(o-(o-e)*t,l)),p.splice(r,0,new SuperMapAlgoPlot.Point(o-(o-e)*t,l)),p.splice(r,0,this.controlPoints[2].clone()),p.splice(r,0,new SuperMapAlgoPlot.Point(e+(o-e)*t,l));break;case 3:this.addScalePoint(new SuperMapAlgoPlot.Point(o,l-(l-i)*t)),p.splice(r,0,new SuperMapAlgoPlot.Point(o,i+(l-i)*t)),p.splice(r,0,this.controlPoints[2].clone()),p.splice(r,0,new SuperMapAlgoPlot.Point(o,l-(l-i)*t));break;case 4:this.addScalePoint(new SuperMapAlgoPlot.Point(o-(o-e)*t,i)),p.splice(r,0,new SuperMapAlgoPlot.Point(e+(o-e)*t,i)),p.splice(r,0,this.controlPoints[2].clone()),p.splice(r,0,new SuperMapAlgoPlot.Point(o-(o-e)*t,i))}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,p),this.annotationContent(e,l,o,i)}this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint&&0==t){var l,o,i,n,a,r,s=this.scalePoints[0];this.controlPoints[0].x<this.controlPoints[1].x?(l=this.controlPoints[0].x,i=this.controlPoints[1].x):(l=this.controlPoints[1].x,i=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(n=this.controlPoints[0].y,o=this.controlPoints[1].y):(n=this.controlPoints[1].y,o=this.controlPoints[0].y),a=this.controlPoints[2].x,r=this.controlPoints[2].y;var p=(o-n)/(i-l),u=.25;switch(a<l?r>o?Math.abs((r-o)/(a-l))>p?2:1:r<n&&Math.abs((r-n)/(a-l))>p?4:1:a>i?r>o?Math.abs((r-o)/(a-i))>p?2:3:r<n&&Math.abs((r-n)/(a-i))>p?4:3:r>o?2:r<n?4:0){case 1:case 3:var P=s.y+(e.y-s.y);P>o&&(P=o),P<(o+n)/2&&(P=(o+n)/2),u=1-2*(o-P)/(o-n);break;case 2:case 4:var c=s.x+(e.x-s.x);c>i&&(c=i),c<(l+i)/2&&(c=(l+i)/2),u=1-2*(i-c)/(i-l)}u<0&&(u=0),u>1&&(u=1),this.scaleValues[0]=u}this.calculateParts()}}]),e}();SuperMapAlgoPlot.GeoTooltipBox=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3020901=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.125)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(2==t.length){var l=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),o=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),i=SuperMapAlgoPlot.PlottingUtil.distance(l,o),n=180*SuperMapAlgoPlot.PlottingUtil.radian(l,o)/Math.PI,a=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,i,i,n+60);e.push(t[0]),e.push(o),e.push(a),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e)}else{this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);for(var r=0;r<t.length;r++)e.push(t[r])}var s=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var u=this.scaleValues[0],P=this.scaleValues[1],c=this.scaleValues[2],g=new SuperMapAlgoPlot.Point(s.x+p*u,s.y+p*P),S=p*c;0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],g,S,0),this.addScalePoint(g.clone());var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,.5*S,.5*S,90);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];if(2==l.length){var i=new SuperMapAlgoPlot.Point(l[0].x,l[0].y),n=new SuperMapAlgoPlot.Point(l[1].x,l[1].y),a=SuperMapAlgoPlot.PlottingUtil.distance(i,n),r=180*SuperMapAlgoPlot.PlottingUtil.radian(i,n)/Math.PI,s=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,a,a,r+60);o.push(l[0]),o.push(n),o.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o)}else{this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);for(var p=0;p<l.length;p++)o.push(l[p])}var u=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),P=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t)this.scaleValues[0]=(e.x-u.x)/P,this.scaleValues[1]=(e.y-u.y)/P;else if(1===t){var c=new SuperMapAlgoPlot.Point(u.x+P*this.scaleValues[0],u.y+P*this.scaleValues[1]),g=2*SuperMapAlgoPlot.PlottingUtil.distance(e,c)/P;g<.5&&(this.scaleValues[2]=g)}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol3020901=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010304=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 l=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 l.subText="协",l}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,SuperMapAlgoPlot.AlgoSymbol21600),e}();SuperMapAlgoPlot.AlgoSymbol3010304=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010303=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 l=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 l.subText="出",l}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,SuperMapAlgoPlot.AlgoSymbol21600),e}();SuperMapAlgoPlot.AlgoSymbol3010303=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010301=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 l=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 l.subText="调",l}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,SuperMapAlgoPlot.AlgoSymbol21600),e}();SuperMapAlgoPlot.AlgoSymbol3010301=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40100=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=.4*i}var n=l*this.scaleValues[0],a=l*this.scaleValues[2],r=l*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(o.x+a,o.y+r),p=.6*n,u=new SuperMapAlgoPlot.Point(s.x+n,s.y),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,p,p,0),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,p,p,180),g=[];g.push(P),g.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,{lineTypeLimit:!0});var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,p,p,90),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,p,p,270);(g=[]).push(S),g.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,{lineTypeLimit:!0});var f=new SuperMapAlgoPlot.Point(s.x-n,s.y),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.5*n,.5*n,270),A=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,n,n,240),M=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,n,n,90),b=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,n,n,300);(g=[]).push(y),g.push(A),g.push(M),g.push(b),g.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,{lineTypeLimit:!0}),this.scalePoints=[];var d=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,n,n,0);this.addScalePoint(d),this.addScalePoint(s),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),o=[];if(o=3>=(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(n.x+a,n.y+r),p=SuperMapAlgoPlot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,P=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=P}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol40100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37700=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol23500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.2||i<=0)&&(i=.2),this.scaleValues[0]=i}var n=this.scaleValues[0],a=this.scaleValues[2],r=this.scaleValues[3],s=o*n,p=new SuperMapAlgoPlot.Point(l.x+o*a,l.y+o*r);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,s,0),this.addScalePoint(p);var u=s,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,u,u,90);this.addScalePoint(P),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol37700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol35500=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.1);var e=t[0],l=t[1],o=SuperMapAlgoPlot.PlottingUtil.distance(e,l),i=o*this.scaleValues[0],n=SuperMapAlgoPlot.PlottingUtil.linePnt(e,l,.5*o),a=SuperMapAlgoPlot.PlottingUtil.linePnt(n,e,i),r=SuperMapAlgoPlot.PlottingUtil.linePnt(n,l,i),s=[],p=[];s.push(t[0]),s.push(a),p.push(r),p.push(t[1]);var u=SuperMapAlgoPlot.PlottingUtil.paraLine(s,.5*i,!0),P=SuperMapAlgoPlot.PlottingUtil.paraLine(p,.5*i,!0),c=[],g=[];c.push(u[0]),c.push(u[1]),g.push(P[0]),g.push(P[1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,{lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,{lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1});var S=[],h=[],f=SuperMapAlgoPlot.PlottingUtil.paraLine(s,.5*i,!1),y=SuperMapAlgoPlot.PlottingUtil.paraLine(p,.5*i,!1);S.push(f[0]),S.push(f[1]),h.push(y[0]),h.push(y[1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,{lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,{lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1});var A=SuperMapAlgoPlot.PlottingUtil.linePnt(c[1],g[0],.2*i),M=SuperMapAlgoPlot.PlottingUtil.linePnt(g[0],c[1],.2*i),b=SuperMapAlgoPlot.PlottingUtil.linePnt(S[1],h[0],.2*i),d=SuperMapAlgoPlot.PlottingUtil.linePnt(h[0],S[1],.2*i),m=[];m.push(A),m.push(M),m.push(d),m.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,m,{fillLimit:!0,fill:!0,lineTypeLimit:!0});var v=SuperMapAlgoPlot.PlottingUtil.linePnt(b,A,1.2*i),O=SuperMapAlgoPlot.PlottingUtil.linePnt(A,b,1.2*i),U=[];U.push(v),U.push(O),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,{lineTypeLimit:!0});var L=SuperMapAlgoPlot.PlottingUtil.linePnt(d,M,1.2*i),w=SuperMapAlgoPlot.PlottingUtil.linePnt(M,d,1.2*i),_=[];_.push(L),_.push(w),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,_,{lineTypeLimit:!0}),this.addScalePoint(f[0],0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>this.scalePoints.length)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t){var i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0]);this.scaleValues[0]=2*i/o}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol35500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol35200=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.05),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue()),2==t.length?this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t):this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),o=e*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],l,o,0),this.scalePoints=[];var i=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,o,o,90);this.addScalePoint(i),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.distance(e,i)/o;this.scaleValues[0]=n}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol35200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol35000=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.03),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.03),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=e[0],n=e[1],a=e[e.length-1],r=e[e.length-2],s=SuperMapAlgoPlot.PlottingUtil.radian(i,n)*SuperMapAlgoPlot.PlottingUtil.RTOD,p=SuperMapAlgoPlot.PlottingUtil.radian(r,a)*SuperMapAlgoPlot.PlottingUtil.RTOD,u=this.scaleValues[0],P=l*u,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,P,P,s+90),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,P,P,s+270),S=[];S.push(c),S.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(g);var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,P,P,p+90),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,P,P,p+270);(S=[]).push(h),S.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0});var y,A,M=t.length;if(this.scaleValues.length<=M){for(this.scaleValues=[],this.scaleValues.push(u),A=1/M,y=0;y<M-1;y++)this.scaleValues.push(A*(y+1));this.scaleValues.push(u)}for(y=0;y<M-1;y++){var b=(A=this.scaleValues[y+1])*l,d=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(b,e);if(!d.bfind)return;var m=d.pts,v=d.index,O=l*this.getSubSymbolScaleValue(),U=.3*O,L=SuperMapAlgoPlot.PlottingUtil.radian(e[v],e[v+1])*SuperMapAlgoPlot.PlottingUtil.RTOD,w=new SuperMapAlgoPlot.Point(O,-U),_=new SuperMapAlgoPlot.Point(-O,-U),V=new SuperMapAlgoPlot.Point(-O,0),T=new SuperMapAlgoPlot.Point(O,0),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(m,w,L),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(m,_,L),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(m,V,L),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(m,T,L);(S=[]).push(E),S.push(x),S.push(C),S.push(j),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{lineTypeLimit:!0,fillLimit:!0,fill:!0}),this.addScalePoint(m)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>=this.scalePoints.length)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0==t){var a=(i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0]))/n;this.scaleValues[0]=a}else{var r,s=e,p=[];for(r=0;r<o.length;r++)p.push(o[r]);var u=-1,P=0,c=new SuperMapAlgoPlot.Point(0,0);for(r=0;r<p.length-1;r++){var g=[];g.push(p[r]),g.push(p[r+1]);var S=SuperMapAlgoPlot.PlottingUtil.projectPoint(s,p[r],p[r+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(S,g).isOnPolyLine){var h=SuperMapAlgoPlot.PlottingUtil.distance(s,S);-1==u?(u=r,c=S,P=h):P>h&&(u=r,c=S,P=h)}}if(-1==u||u>p.length-1)return;for(i=0,r=0;r<u;r++)i+=SuperMapAlgoPlot.PlottingUtil.distance(o[r],o[r+1]);if((i+=SuperMapAlgoPlot.PlottingUtil.distance(o[u],c))<0||i>n)return;var f=i/n;this.scaleValues[t]=f}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol35000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol44100=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.285714),l.scaleValues.push(.105263),l.scaleValues.push(.181818),l.scaleValues.push(.285714),l.scaleValues.push(.285714)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<5&&(this.scaleValues=[],this.scaleValues.push(.285714),this.scaleValues.push(.105263),this.scaleValues.push(.181818),this.scaleValues.push(.285714),this.scaleValues.push(.285714));var e=t[0].clone(),l=t[1].clone(),o=SuperMapAlgoPlot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMapAlgoPlot.Point(0,-o*i),a=new SuperMapAlgoPlot.Point(0,o*i),r=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMapAlgoPlot.Point(o*(1-s),-o*r),u=new SuperMapAlgoPlot.Point(o*(1-s),o*r),P=this.scaleValues[2],c=this.scaleValues[4],g=new SuperMapAlgoPlot.Point(o*(1-c),-o*P),S=new SuperMapAlgoPlot.Point(o*(1-c),o*P),h=new SuperMapAlgoPlot.Point(o,0),f=SuperMapAlgoPlot.PlottingUtil.radian(e,l)*SuperMapAlgoPlot.PlottingUtil.RTOD,y=[];y.push(a),y.push(p),y.push(g),y.push(h),y.push(S),y.push(u),y.push(n);for(var A=[],M=0;M<y.length;M++){var b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,y[M],f);A.push(b)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);var d=[],m=.06*o,v=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(m,l,e),O=v.pntRight,U=v.pntLeft;d.push(O),d.push(U),m=.15*o;var L=new SuperMapAlgoPlot.Point(m,0),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,L,f);d.push(w),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,d,{lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,fillLimit:!0,fill:!0,lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(A[0]),this.addScalePoint(A[1]),this.addScalePoint(A[2]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o,i=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]),n=l[0].clone(),a=l[1].clone(),r=e.clone();if(0==t){var s=SuperMapAlgoPlot.PlottingUtil.distance(r,n)/i;this.scaleValues[0]=s}else if(1==t){o=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,n,a);var p=SuperMapAlgoPlot.PlottingUtil.distance(o,r)/i;this.scaleValues[1]=p;var u=SuperMapAlgoPlot.PlottingUtil.distance(o,a)/i;this.scaleValues[3]=u}else if(2==t){o=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,n,a);var P=SuperMapAlgoPlot.PlottingUtil.distance(o,r)/i;this.scaleValues[2]=P;var c=SuperMapAlgoPlot.PlottingUtil.distance(o,a)/i;this.scaleValues[4]=c}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol44100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol42200=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{fillLimit:!0,fill:!1,surroundLineFlag:!1});var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.2||i<=0)&&(i=.2),this.scaleValues[0]=i}var n=this.scaleValues[0],a=this.scaleValues[2],r=this.scaleValues[3],s=o*n,p=new SuperMapAlgoPlot.Point(l.x+o*a,l.y+o*r);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,s,0),this.addScalePoint(p);var u=s,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,u,u,90);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n,a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t)i=(e.x-a.x)/r,this.scaleValues[2]=i,n=(e.y-a.y)/r,this.scaleValues[3]=n;else if(1===t){i=this.scaleValues[2],n=this.scaleValues[3];var s=new SuperMapAlgoPlot.Point(a.x+r*i,a.y+r*n),p=SuperMapAlgoPlot.PlottingUtil.distance(s,e)/r;this.scaleValues[0]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol42200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41202=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=-.25,l.scaleValues[1]=.1,l.scaleValues[2]=.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues[0]=-.25,this.scaleValues[1]=.1,this.scaleValues[2]=.05);var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);if(0!=e){var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);if(!this.isEdit){var o=this.getSubSymbolScaleValue()*l;this.scaleValues[2]=.35*o/e}var i=this.scaleValues[0],n=this.scaleValues[1],a=this.scaleValues[2];2===t.length?this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,t):this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),s=new SuperMapAlgoPlot.Point(r.x+i*e,r.y+n*e),p=a*e,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,270),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,30),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,150),g=[];g.push(u),g.push(P),g.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,{fill:!1,lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(s);var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,90);this.addScalePoint(S),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0==o)return;var i,n,a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=e;if(0==t)i=(r.x-a.x)/o,this.scaleValues[0]=i,n=(r.y-a.y)/o,this.scaleValues[1]=n;else if(1==t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(a.x+i*o,a.y+n*o),p=SuperMapAlgoPlot.PlottingUtil.distance(r,s)/o;this.scaleValues[2]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol41202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41201=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=-.25,l.scaleValues[1]=.1,l.scaleValues[2]=.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues[0]=-.25,this.scaleValues[1]=.1,this.scaleValues[2]=.05);var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);if(0!==e){var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);if(!this.isEdit){var o=this.getSubSymbolScaleValue()*l;this.scaleValues[2]=.35*o/e}var i=this.scaleValues[0],n=this.scaleValues[1],a=this.scaleValues[2];2===t.length?this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,t):this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),s=new SuperMapAlgoPlot.Point(r.x+i*e,r.y+n*e),p=a*e,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,90),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,210),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,330),g=[];g.push(u),g.push(P),g.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,{fill:!1,lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(s);var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,90);this.addScalePoint(S),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0==o)return;var i,n,a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=e;if(0==t)i=(r.x-a.x)/o,this.scaleValues[0]=i,n=(r.y-a.y)/o,this.scaleValues[1]=n;else if(1==t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(a.x+i*o,a.y+n*o),p=SuperMapAlgoPlot.PlottingUtil.distance(r,s)/o;this.scaleValues[2]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol41201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41200=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=-.25,l.scaleValues[1]=.1,l.scaleValues[2]=.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues[0]=-.25,this.scaleValues[1]=.1,this.scaleValues[2]=.05);var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);if(!this.isEdit){var o=this.getSubSymbolScaleValue()*l;this.scaleValues[2]=.35*o/e}var i=this.scaleValues[0],n=this.scaleValues[1],a=this.scaleValues[2];2===t.length?this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,t):this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),s=new SuperMapAlgoPlot.Point(r.x+i*e,r.y+n*e),p=a*e,u=new SuperMapAlgoPlot.Point(s.x,s.y),P=new SuperMapAlgoPlot.Point(s.x-p,s.y-p),c=new SuperMapAlgoPlot.Point(s.x+p,s.y-p),g=new SuperMapAlgoPlot.Point(s.x-p,s.y+p),S=new SuperMapAlgoPlot.Point(s.x+p,s.y+p),h=[];h.push(u),h.push(P),h.push(c),h.push(u),h.push(g),h.push(S),h.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(s);var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,90);this.addScalePoint(f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0==o)return;var i,n,a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=e;if(0==t)i=(r.x-a.x)/o,this.scaleValues[0]=i,n=(r.y-a.y)/o,this.scaleValues[1]=n;else if(1==t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(a.x+i*o,a.y+n*o),p=SuperMapAlgoPlot.PlottingUtil.distance(r,s)/o;this.scaleValues[2]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol41200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41100=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 l=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===l.scaleValues.length&&l.scaleValues.push(.5),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&this.scaleValues.push(.5);var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=e/l/2,i=.1*e;this.isEdit||(this.scaleValues[0]=o);var n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l*this.scaleValues[0]-.4*e,t);if(n.bfind){var a=n.pts,r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l*this.scaleValues[0]+.4*e,t);if(r.bfind){var s=r.pts,p=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l*this.scaleValues[0]-.3*e,t);if(p.bfind){var u=p.pts,P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l*this.scaleValues[0]+.3*e,t);if(P.bfind){var c=P.pts,g=0,S=0,h=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(a,t);h.isOnPolyLine&&(g=h.index);var f=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(s,t);f.isOnPolyLine&&(S=f.index);var y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l*this.scaleValues[0],t);if(y.bfind){var A=y.pts,M=[];if(M.push(u),g!==S)for(var b=g+1;b<=S;b++)M.push(t[b]);M.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M);for(var d=[],m=0;m<=n.index;m++)d.push(t[m]);d.push(a),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d);var v=[];if(r.index<=t.length){v.push(s);for(var O=r.index+1;O<=t.length-1;O++)v.push(t[O])}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v);for(var U=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(A,M),L=0,w=0;w<U.index;w++)L+=SuperMapAlgoPlot.PlottingUtil.distance(M[w],M[w+1]);L+=SuperMapAlgoPlot.PlottingUtil.distance(A,M[U.index]);var _=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(L-.1,M);if(_.bfind){var V=_.pts,T=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.42*e,V,A),E=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.48*e,V,A),x=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.6*e,V,A),C=T.pntLeft,j=E.pntLeft,Y=x.pntLeft;this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[A,C]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[j,Y]);var I=SuperMapAlgoPlot.PlottingUtil.polylineDistance([j,Y]),R=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.3*I,j,Y).pntRight;if(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[Y,R]),t.length>this.minEditPts){for(var B,N,D,k,z,F,G,W,J,K=1;K<t.length-1;K++){for(B=t[K],N=t[K+1],D=t[K-1],z=180*SuperMapAlgoPlot.PlottingUtil.radian(B,N)/Math.PI,F=180*SuperMapAlgoPlot.PlottingUtil.radian(B,D)/Math.PI-z;F<0;)F+=360;k=F/2,G=t[K+1].clone(),G=SuperMapAlgoPlot.PlottingUtil.rotateAngle(B,k*Math.PI/180,G),W=SuperMapAlgoPlot.PlottingUtil.linePnt(B,G,i),(J=[]).push(t[K]),J.push(W),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,J,null,!0)}var H=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,t[t.length-2],t[t.length-1]),q=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,t[1],t[0]),Q=H.pntLeft,X=q.pntRight;this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[t[0],X]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[t[t.length-1],Q])}else{var Z=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,t[0],t[1]),$=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,t[1],t[0]),tt=Z.pntLeft,et=$.pntRight;this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[t[0],et]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[t[1],tt])}this.addScalePoint(A,0),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(l.length<this.minEditPts)return;for(var i=-1,n=0,a=new SuperMapAlgoPlot.Point(0,0),r=0;r<l.length-1;r++){var s=[];s.push(l[r]),s.push(l[r+1]);var p=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,l[r],l[r+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(p,s).isOnPolyLine){var u=SuperMapAlgoPlot.PlottingUtil.distance(e,p);-1===i?(i=r,a=p,n=u):n>u&&(i=r,a=p,n=u)}}if(-1===i||i>l.length-1)return;for(var P=0,c=0;c<i;c++)P+=SuperMapAlgoPlot.PlottingUtil.distance(l[c],l[c+1]);var g=l[i];if((P+=SuperMapAlgoPlot.PlottingUtil.distance(g,a))<0||P>o)return;var S=P/o,h=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1])/o;S<.4*h&&(S=.4*h),S>1-.4*h&&(S=1-.4*h),this.scaleValues[0]=S}}}]),e}();SuperMapAlgoPlot.AlgoSymbol41100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40101=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=.2*i}var n=l*this.scaleValues[0],a=l*this.scaleValues[2],r=l*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(o.x+a,o.y+r),p=[];p.push(s),p.push(new SuperMapAlgoPlot.Point(s.x+n,s.y)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,p,{fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0});for(var u=18*n,P=new SuperMapAlgoPlot.Point(s.x+u,s.y),c=[],g=135;g<180;g+=3)c.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(P,u,u,g));c.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(P,u,u,180)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[];var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,n,n,0);this.addScalePoint(S),this.addScalePoint(s),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),o=[];if(o=3>=(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(n.x+a,n.y+r),p=SuperMapAlgoPlot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,P=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=P}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol40101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40900=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues=[]),this.scalePoints=[];var e=[],l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(t.length<3)e.push(t[0]),e.push(t[1]);else{var o=SuperMapAlgoPlot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=o.scaleValues;for(var i=0;i<o.scalePoints.length;i++)this.addScalePoint(o.scalePoints[i]);e=o.beizerPoints}SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(this.isEdit||(this.scaleValues.push(.5),this.scaleValues.push(this.getSubSymbolScaleValue())),!(e.length<=0)){var a;a=2==t.length?0:t.length-1;var r=n*this.scaleValues[4*a],s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,e);if(s.bfind){var p=s.index,u=s.pts,P=l*this.scaleValues[4*a+1],c=r-P,g=r+P;if((s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(c,e)).bfind){var S,h=s.pts,f=[];if(0==(p=s.index))f.push(e[0]);else for(S=0;S<p;S++)f.push(e[S]);if(f.push(h),(s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(g,e)).bfind){var y=s.pts;p=s.index;var A=[];for(A.push(y),S=p+1;S<e.length;S++)A.push(e[S]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[u,y]);var M=l*this.scaleValues[4*a+1]/1.667;if(!(f.length<2)){var b=f[0],d=f[1],m=SuperMapAlgoPlot.PlottingUtil.radian(b,d)*SuperMapAlgoPlot.PlottingUtil.RTOD,v=SuperMapAlgoPlot.PlottingUtil.circlePoint(b,M,M,m+90),O=SuperMapAlgoPlot.PlottingUtil.circlePoint(b,M,M,m+270),U=[];if(U.push(v),U.push(O),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U),!(A.length<2)){var L=A[A.length-1],w=A[A.length-2],_=SuperMapAlgoPlot.PlottingUtil.radian(L,w)*SuperMapAlgoPlot.PlottingUtil.RTOD,V=SuperMapAlgoPlot.PlottingUtil.circlePoint(L,M,M,_+90),T=SuperMapAlgoPlot.PlottingUtil.circlePoint(L,M,M,_+270);(U=[]).push(V),U.push(T),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U),this.addScalePoint(u),this.addScalePoint(v),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,0)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0))return;if(2*(l.length-1)==t||2==l.length&&0==t){var a,r=e,s=[];for(a=0;a<o.length;a++)s.push(o[a]);var p,u=-1,P=0;for(a=0;a<s.length-1;a++){var c=[];c.push(s[a]),c.push(s[a+1]);var g=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,s[a],s[a+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(g,c).isOnPolyLine){var S=SuperMapAlgoPlot.PlottingUtil.distance(r,g);-1==u?(u=a,p=g,P=S):P>S&&(u=a,p=g,P=S)}}if(-1==u||u>s.length-1)return;var h=0;for(a=0;a<u;a++){var f=o[a],y=o[a+1];h+=SuperMapAlgoPlot.PlottingUtil.distance(f,y)}var A=o[u];if((h+=SuperMapAlgoPlot.PlottingUtil.distance(A,p))<0||h>n)return;var M=h/n;if(M>.8||M<.2)return;2==l.length?this.scaleValues[0]=M:this.scaleValues[2*t]=M}else if(2*l.length-1==t||2==l.length&&1==t){var b=1.667*SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/i;2==l.length?this.scaleValues[1]=b:this.scaleValues[2*t-1]=b}else{var d=-1;d=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var m=(e.x-l[d].x)/i,v=(e.y-l[d].y)/i;this.scaleValues[2*t]=m,this.scaleValues[2*t+1]=v}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol40900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37300=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.125,l.scaleValues[1]=.02),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[0]),l=SuperMapAlgoPlot.PlottingUtil.radian(t[1],t[0])*SuperMapAlgoPlot.PlottingUtil.RTOD,o=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],t[0],.35*e),i=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,.05*e,.05*e,l+270);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[i,o],{fill:!1,fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0});var n=this.scaleValues[0],a=this.scaleValues[1],r=new SuperMapAlgoPlot.Point(n*e,a*e),s=new SuperMapAlgoPlot.Point(n*e,-a*e),p=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[1],r,l),u=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[1],s,l),P=[];P.push(p),P.push(u),P.push(t[1]),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,P,{fillLimit:!0,fill:!0,lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(u),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[1],l[0]);if(0==t){var i=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,l[1],l[0]),n=SuperMapAlgoPlot.PlottingUtil.distance(i,l[1]);90>SuperMapAlgoPlot.PlottingUtil.radian(l[1],i)*SuperMapAlgoPlot.PlottingUtil.RTOD&&(n=-n);var a=n/o;this.scaleValues[0]=a;var r=SuperMapAlgoPlot.PlottingUtil.distance(e,i)/o;this.scaleValues[1]=r}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol37300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol37200=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.1,l.scaleValues[1]=.2),l}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,SuperMapAlgoPlot.AlgoSymbol27100),e}();SuperMapAlgoPlot.AlgoSymbol37200=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37100=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.1,l.scaleValues[1]=.2),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.1,this.scaleValues[1]=.2),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e,l,o=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),i=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,n=this.scaleValues[0],a=this.scaleValues[1],r=n*o,s=[];for(e=90;e<=270;e+=3)l=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],r,r,e+i),s.push(l);var p=[];for(e=-90;e<=90;e+=3)l=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],r,r,e+i),p.push(l);var u=o*a,P=new SuperMapAlgoPlot.Point((s[0].x+p[p.length-1].x)/2,(s[0].y+p[p.length-1].y)/2),c=SuperMapAlgoPlot.PlottingUtil.linePnt(s[0],p[p.length-1],.5*(o-1.2*u)),g=SuperMapAlgoPlot.PlottingUtil.linePnt(p[p.length-1],s[0],.5*(o-1.2*u)),S=[];S.push(c),S.push.apply(S,s),S.push.apply(S,p),S.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S);var h=SuperMapAlgoPlot.PlottingUtil.radian(g,c)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],P,.9*u,h-90),this.scalePoints=[],this.addScalePoint(s[s.length-1]);var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,u,u,h+90);this.addScalePoint(f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0==t){var i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}else if(1==t){var n=this.scaleValues[0]*o,a=SuperMapAlgoPlot.PlottingUtil.circlePoint(l[0],n,n,90),r=SuperMapAlgoPlot.PlottingUtil.circlePoint(l[1],n,n,90),s=new SuperMapAlgoPlot.Point((a.x+r.x)/2,(a.y+r.y)/2),p=SuperMapAlgoPlot.PlottingUtil.distance(s,e)/o;p>=.8&&(p=.8),this.scaleValues[1]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol37100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol36800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.05),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var l=.1*e,o=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(l,t[1],t[0]),i=o.pntRight,n=o.pntLeft,a=(o=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(l,t[0],t[1])).pntRight,r=o.pntLeft,s=[];s.push(i),s.push(n),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s);var p=[];p.push(a),p.push(r),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p);var u=[];u.push(i),u.push(r);for(var P=SuperMapAlgoPlot.PlottingUtil.polylineDistance(u)/11,c=P,g=0,S=0,h=null,f=null,y=0;y<11;y++){if(0==y)g=0,h=i.clone();else{var A=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(c-P,u);if(!A.bfind)continue;g=A.index,h=A.pts}if(10==y)S=0,f=r.clone();else{if(!(A=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(c,u)).bfind)continue;S=A.index,f=A.pts}if(y%2==0){var M=[];M.push(h);for(var b=g+1;b<=S;b++)M.push(u[b]);M.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M,{lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0})}c+=P}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol36800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol36400=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol36400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34700=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.08,l.scaleValues[1]=.03),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.08),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=.5*e,o=e*this.scaleValues[0],i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l,t),n=i.pts,a=i.index,r=(i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l+o,t)).index;if(!(a<0||r<0)){var s,p,u;if(a!=r)s=new SuperMapAlgoPlot.Point(t[a+1].x,t[a+1].y),p=new SuperMapAlgoPlot.Point(t[a].x,t[a].y),(u=SuperMapAlgoPlot.PlottingUtil.distance(s,p))<=2*o?(o=u/2,n.x=(t[a+1].x+t[a].x)/2,n.y=(t[a+1].y+t[a].y)/2):n=SuperMapAlgoPlot.PlottingUtil.linePnt(t[a+1],t[a],o);else if(s=new SuperMapAlgoPlot.Point(t[a+1].x,t[a+1].y),p=new SuperMapAlgoPlot.Point(t[a].x,t[a].y),(u=SuperMapAlgoPlot.PlottingUtil.distance(s,p))<=2*o)o=u/2,n.x=(t[a+1].x+t[a].x)/2,n.y=(t[a+1].y+t[a].y)/2;else s=new SuperMapAlgoPlot.Point(t[a].x,t[a].y),p=new SuperMapAlgoPlot.Point(n.x,n.y),SuperMapAlgoPlot.PlottingUtil.distance(s,p)<o&&(n=SuperMapAlgoPlot.PlottingUtil.linePnt(t[a],t[a],o));var P,c,g,S=[];for(P=0;P<a+1;P++)S.push(t[P]);c=SuperMapAlgoPlot.PlottingUtil.linePnt(n,t[a],o),S.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S),g=SuperMapAlgoPlot.PlottingUtil.linePnt(n,t[a+1],o);var h=[];h.push(g);var f=t.length;for(P=a+1;P<f;++P)h.push(t[P]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var y=[],A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o/2,c,g);y.push(c),y.push(A.pntRight),y.push(A.pntLeft);var M=(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,c,n)).pntRight;this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,y,{lineTypeLimit:!0});var b,d,m,v,O=t[0].clone(),U=t[1].clone(),L=t[t.length-2].clone(),w=t[t.length-1].clone(),_=e*this.scaleValues[1];d=(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(_,U,O)).pntRight,b=A.pntLeft,v=(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(_,L,w)).pntRight,m=A.pntLeft;var V=[];V.push(d),V.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,V,{lineTypeLimit:!0});var T=[];T.push(v),T.push(m),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T,{lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(M),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0==t){var i=.5*o,n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,l).pts,a=SuperMapAlgoPlot.PlottingUtil.distance(e,n)/o;a>.5&&(a=.5),this.scaleValues[0]=a}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol34700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34400=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.1,l.scaleValues[1]=.2),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues[0]=.1,this.scaleValues[1]=.2);var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),o=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),i=SuperMapAlgoPlot.PlottingUtil.radian(l,o)*SuperMapAlgoPlot.PlottingUtil.RTOD,n=this.scaleValues[0],a=this.scaleValues[1];if(!(n<0||a<0)){var r=n*e,s=1-a*(5/4);s<0&&(s=0),s>1&&(s=1);var p,u,P=e*s,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,P,P,i),g=[];g.push(t[0].clone()),g.push(c),p=SuperMapAlgoPlot.PlottingUtil.paraLine(g,r,!0),u=SuperMapAlgoPlot.PlottingUtil.paraLine(g,r,!1);var S,h=[];for(S=0;S<p.length;S++)h.push(p[S]);var f=[];for(S=0;S<u.length;S++)f.push(u[S]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var y=a*e,A=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,y/2,y/2,i);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],A,y/2,i+180);for(var M=[],b=.1*P,d=[],m=0;m<h.length;m++)d.push(h[m].clone());var v=[];for(S=0;S<f.length;S++)v.push(f[S].clone());var O=SuperMapAlgoPlot.PlottingUtil.distance(v[0],v[1]);if(!(b>=O)){for(var U=b;U<P-r;U+=b){var L=SuperMapAlgoPlot.PlottingUtil.circlePoint(v[0],U,U,i),w=SuperMapAlgoPlot.PlottingUtil.circlePoint(L,O,O,i+45),_=SuperMapAlgoPlot.PlottingUtil.intersectLines(L,w,d[0],d[1]);if(_.isIntersectLines){var V=_.intersectPoint;if(!SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(V,d).isOnPolyLine)break;(M=[]).push(L),M.push(V),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M,{lineTypeLimit:!0,surroundLineLimit:!0})}}this.scalePoints=[];var T=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,r,r,i+90);this.addScalePoint(T);var E=y/2,x=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,E,E,i+90);this.addScalePoint(x),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);0==t?(o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],e)/i,this.scaleValues[0]=o):1==t&&(o=2*SuperMapAlgoPlot.PlottingUtil.distance(l[1],e)/i,this.scaleValues[1]=o)}}}]),e}();SuperMapAlgoPlot.AlgoSymbol34400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34300=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),i=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),n=SuperMapAlgoPlot.PlottingUtil.radian(o,i)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=.02*l,r=[];for(e=0;e<360;e+=10)r.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(new SuperMapAlgoPlot.Point(0,0),a,a,e));r.push(r[0]);var s=[],p=new SuperMapAlgoPlot.Point(.1*l,0),u=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,p,n);for(e=0;e<r.length;e++)s.push(new SuperMapAlgoPlot.Point(r[e].x+u.x,r[e].y+u.y));var P={lineTypeLimit:!0,surroundLineLimit:!0,fillLimit:!0,fill:!0};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,P);var c=new SuperMapAlgoPlot.Point(.25*l,0),g=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,c,n);for(s=[],e=0;e<r.length;e++)s.push(new SuperMapAlgoPlot.Point(r[e].x+g.x,r[e].y+g.y));this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,P);var S=new SuperMapAlgoPlot.Point(.4*l,0),h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,S,n);for(s=[],e=0;e<r.length;e++)s.push(new SuperMapAlgoPlot.Point(r[e].x+h.x,r[e].y+h.y));this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,P);var f=new SuperMapAlgoPlot.Point(.6*l,0),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,f,n);for(s=[],e=0;e<r.length;e++)s.push(new SuperMapAlgoPlot.Point(r[e].x+y.x,r[e].y+y.y));this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,P);var A=new SuperMapAlgoPlot.Point(.5*l,.05*l),M=new SuperMapAlgoPlot.Point(.7*l,.05*l),b=new SuperMapAlgoPlot.Point(.75*l,0),d=new SuperMapAlgoPlot.Point(.7*l,-.05*l),m=new SuperMapAlgoPlot.Point(.5*l,-.05*l),v=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,A,n),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,M,n),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,b,n),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,d,n),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,m,n);(s=[]).push(v),s.push(O),s.push(U),s.push(L),s.push(w),s.push(v),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol34300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol32300=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=t[0],o=t[1];e=2==t.length?o:t[2];var i=new SuperMapAlgoPlot.Point((l.x+o.x)/2,(l.y+o.y)/2),n=SuperMapAlgoPlot.PlottingUtil.distance(i,e),a=.5*n,r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,i,e),s=r.pntLeft,p=r.pntRight,u=!(i.x>e.x),P=[];u?(P.push(l),P.push(s)):(P.push(l),P.push(p)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER});var c=[];u?(c.push(o),c.push(p)):(c.push(o),c.push(s)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER});var g,S,h,f,y=.37*n,A=SuperMapAlgoPlot.PlottingUtil.linePnt(i,e,y),M=.09*n,b=[];b.push(A),b.push(new SuperMapAlgoPlot.Point(A.x,A.y+M)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,b,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE}),u?(g=(r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(M,i,A)).pntLeft,S=(r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*M,i,A)).pntLeft,h=(r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(M,g,S)).pntRight,f=r.pntLeft):(g=(r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(M,i,A)).pntRight,S=(r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*M,i,A)).pntRight,h=(r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(M,g,S)).pntRight,f=r.pntLeft);var d=[];d.push(g),d.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE});var m=[];m.push(h),m.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,m,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE}),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol32300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31401=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol31400),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,t);var e=0;e=Math.abs(t[1].x-t[0].x)<Math.abs(t[1].y-t[0].y)?.1*Math.abs(t[1].x-t[0].x):.1*Math.abs(t[1].y-t[0].y);var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),o=new SuperMapAlgoPlot.Point(l.x-e,l.y-e),i=new SuperMapAlgoPlot.Point(l.x+e,l.y-3*e),n={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,[o,i],n,!0);var a=new SuperMapAlgoPlot.Point(l.x-e,l.y+e),r=new SuperMapAlgoPlot.Point(l.x-3*e,l.y+3*e);this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,[a,r],n,!0);var s=new SuperMapAlgoPlot.Point(l.x+e,l.y+e),p=new SuperMapAlgoPlot.Point(l.x+3*e,l.y+3*e);this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,[s,p],n,!0),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol31401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31400=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,t);var e=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),l=0;l=Math.abs(t[1].x-t[0].x)<Math.abs(t[1].y-t[0].y)?.1*Math.abs(t[1].x-t[0].x):.1*Math.abs(t[1].y-t[0].y);var o=new SuperMapAlgoPlot.Point(e.x-l,e.y-l),i=new SuperMapAlgoPlot.Point(e.x+l,e.y+l);this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,[o,i],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol31400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31301=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol31300),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var o=this.scaleValues[0]*e,i=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,t[0],t[1]),n=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[i.pntLeft,i.pntRight]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[n.pntLeft,n.pntRight]);var a=[],r=3*o;a.push(t[0]),a.push(t[1]);for(var s=SuperMapAlgoPlot.PlottingUtil.paraLine(a,r,!0),p=SuperMapAlgoPlot.PlottingUtil.paraLine(a,r,!1),u=[],P=0;P<s.length;P++)u.push(s[P]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u);var c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,s[1],s[0]),g=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,s[0],s[1]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[c.pntLeft,c.pntRight]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[g.pntLeft,g.pntRight]);for(var S=[],h=0;h<p.length;h++)S.push(p[h]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S);var f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,p[1],p[0]),y=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,p[0],p[1]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[f.pntLeft,f.pntRight]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[y.pntLeft,y.pntRight]),this.addScalePoint(n.pntRight,0),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol31301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31300=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var o=this.scaleValues[0]*e,i=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,t[0],t[1]),n=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[i.pntLeft,i.pntRight]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[n.pntLeft,n.pntRight]),this.addScalePoint(n.pntRight,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);if(0===t){var n=l[0],a=e,r=SuperMapAlgoPlot.PlottingUtil.distance(a,n)/o;this.scaleValues[0]=r}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol31300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30800=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.125),l.scaleValues.push(Math.PI/2)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t);var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);if(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e),this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.125),this.scaleValues.push(Math.PI/2)),3===this.scaleValues.length&&this.scaleValues.push(this.getSubSymbolScaleValue()),!(t.length<this.minEditPts)){for(var l=0,o=0;o<t.length-1;o++)l+=SuperMapAlgoPlot.PlottingUtil.distance(t[o],t[o+1]);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[1]=i,this.scaleValues[3]=i}var n=this.scaleValues[1],a=180*this.scaleValues[2]/Math.PI,r=l*this.scaleValues[0],s=l*this.scaleValues[3],p=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,r);if(-1!==p.index){var u=p.pt,P=e[p.index],c=e[p.index+1],g=SuperMapAlgoPlot.PlottingUtil.radian(P,c)*SuperMapAlgoPlot.PlottingUtil.RTOD,S=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,s,s,g+a);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[p.pt,S]);var h,f=SuperMapAlgoPlot.PlottingUtil.radian(u,S)*SuperMapAlgoPlot.PlottingUtil.RTOD,y=l*n;0<this.subSymbols.length&&(h=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,s,s,g+a+180),this.computeSubSymbol(this.subSymbols[0],h,.8*y,g+a-180),this.addScalePoint(SuperMapAlgoPlot.PlottingUtil.circlePoint(h,.5*y,.5*y,g+a+90),1)),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,s,s,f+30);var A=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,s,s,f+33),M=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt([S,h,A]);M=SuperMapAlgoPlot.PlottingUtil.clearSamePts(M);var b=SuperMapAlgoPlot.PlottingUtil.polylineDistance(M),d=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.9*b,M);if(-1!==d.index){this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M.slice(0,d.index));var m=SuperMapAlgoPlot.PlottingUtil.radian(S,h)*SuperMapAlgoPlot.PlottingUtil.RTOD,v=new SuperMapAlgoPlot.Point(-.2*s,.05*s),O=new SuperMapAlgoPlot.Point(-.2*s,-.05*s),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(h,v,m+17),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(h,O,m+17),w={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[h,U,L],w);var _=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,s,s,f+330),V=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,s,s,f+327),T=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt([S,_,V]);T=SuperMapAlgoPlot.PlottingUtil.clearSamePts(T),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T.slice(0,d.index));var E=SuperMapAlgoPlot.PlottingUtil.radian(S,_)*SuperMapAlgoPlot.PlottingUtil.RTOD,x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,v,E-17),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,O,E-17);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[_,x,C],w),this.addScalePoint(u,0),this.addScalePoint(S,2),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);var n,a,r,s,p=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(p=SuperMapAlgoPlot.PlottingUtil.clearSamePts(p),0===t){for(var u=[],P=0;P<p.length;P++)u.push(new SuperMapAlgoPlot.Point(p[P].x,p[P].y));for(var c=-1,g=0,S=new SuperMapAlgoPlot.Point(0,0),h=0;h<u.length-1;h++){var f=[];f.push(u[h]),f.push(u[h+1]);var y=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,u[h],u[h+1]);if(-1!==SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(y,f).index){var A=SuperMapAlgoPlot.PlottingUtil.distance(e,y);-1==c?(c=h,S=y,g=A):g>A&&(c=h,S=y,g=A)}}if(-1==c||c>u.length-1)return;for(var M=0,b=0;b<c;b++)M+=SuperMapAlgoPlot.PlottingUtil.distance(p[b],p[b+1]);if((M+=SuperMapAlgoPlot.PlottingUtil.distance(p[c],S))<0||M>o)return;var d=M/o;this.scaleValues[0]=d}else if(1===t){var m=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(p,o*this.scaleValues[0]);if(-1===m.index)return;n=m.pt,a=p[m.index],r=p[m.index+1],s=SuperMapAlgoPlot.PlottingUtil.radian(a,r)*SuperMapAlgoPlot.PlottingUtil.RTOD;var v=o*this.scaleValues[3],O=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,v,v,s+this.scaleValues[2]*SuperMapAlgoPlot.PlottingUtil.RTOD+180),U=SuperMapAlgoPlot.PlottingUtil.distance(O,e)/o*2;this.scaleValues[1]=U}else if(2===t){var L=o*this.scaleValues[0],w=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(p,L);if(-1===w.index)return;n=w.pt,a=p[w.index],r=p[w.index+1],s=SuperMapAlgoPlot.PlottingUtil.radian(a,r);var _=SuperMapAlgoPlot.PlottingUtil.radian(n,e)-s;this.scaleValues[2]=_}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30201=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol30200),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(1e3),this.scaleValues.push(.2),this.scaleValues.push(.1)),3===this.scaleValues.length&&this.scaleValues.push(.5*this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),0==this.scaleValues.length?(this.scaleValues.push(1e3),this.scaleValues.push(.2),this.scaleValues.push(.1),this.scaleValues.push(.05)):3==this.scaleValues.length&&(this.scaleValues[3]=.5*this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[1]=2*this.getSubSymbolScaleValue(),this.scaleValues[3]=.5*this.getSubSymbolScaleValue());var o=e*this.scaleValues[1],i=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,o);if(-1!==i.index){var n=t[0],a=i.pt,r=SuperMapAlgoPlot.PlottingUtil.radian(n,a)*SuperMapAlgoPlot.PlottingUtil.RTOD,s=new SuperMapAlgoPlot.Point(0,.1*o),p=new SuperMapAlgoPlot.Point(.4*o,.1*o),u=new SuperMapAlgoPlot.Point(.4*o,-.1*o),P=new SuperMapAlgoPlot.Point(0,-.1*o),c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,s,r),g=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,p,r),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,u,r),h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,P,r),f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[c,g,S,h,c],f);var y=new SuperMapAlgoPlot.Point(.3*o,.1*o),A=new SuperMapAlgoPlot.Point(.3*o,-.1*o),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,y,r),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,A,r);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[M,b],f);var d=new SuperMapAlgoPlot.Point(.4*o,0),m=new SuperMapAlgoPlot.Point(.8*o,0),v=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,d,r),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,m,r);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[v,O],f);var U=new SuperMapAlgoPlot.Point(.7*o,.025*o),L=new SuperMapAlgoPlot.Point(.7*o,-.025*o),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,U,r),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,L,r);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[O,w,_],f);var V=[];V.push(i.pt);for(var T=i.index+1;T<l.length;T++)V.push(l[T]);this.addArrow(V,this.scaleValues[3]),this.components[this.components.length-2].style.strokeDashstyle="dash",this.components[this.components.length-2].style.lineSymbolID=1,this.components[this.components.length-2].style.lineTypeLimit=!0;var E=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,o,o,r+90);this.addScalePoint(E,0),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30200=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 l=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===l.scaleValues.length&&(l.scaleValues.push(1e3),l.scaleValues.push(.2),l.scaleValues.push(.1),l.scaleValues.push(.05)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length?(this.scaleValues.push(1e3),this.scaleValues.push(.2),this.scaleValues.push(.1),this.scaleValues.push(.05)):3==this.scaleValues.length&&(this.scaleValues[3]=.5*this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[1]=2*this.getSubSymbolScaleValue(),this.scaleValues[3]=.5*this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=e*this.scaleValues[1],i=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,o);if(-1!==i.index){var n=t[0],a=i.pt,r=SuperMapAlgoPlot.PlottingUtil.radian(n,a)*SuperMapAlgoPlot.PlottingUtil.RTOD,s=new SuperMapAlgoPlot.Point(0,.1*o),p=new SuperMapAlgoPlot.Point(.4*o,.1*o),u=new SuperMapAlgoPlot.Point(.4*o,-.1*o),P=new SuperMapAlgoPlot.Point(0,-.1*o),c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,s,r),g=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,p,r),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,u,r),h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,P,r),f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[c,g,S,h,c],f);var y=.1*o,A=new SuperMapAlgoPlot.Point(.3*o,0),M=SuperMapAlgoPlot.PlottingUtil.circlePoint(A,y,y,135),b=SuperMapAlgoPlot.PlottingUtil.circlePoint(A,y,y,225),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,A,r),m=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,M,r),v=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,b,r);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[m,d,v],f);var O=new SuperMapAlgoPlot.Point(.9*o,0),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,O,r);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[d,U],f);var L=new SuperMapAlgoPlot.Point(.8*o,.025*o),w=new SuperMapAlgoPlot.Point(.8*o,-.025*o),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,L,r),V=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(n,w,r);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[U,_,V],f);var T=[];T.push(i.pt);for(var E=i.index+1;E<l.length;E++)T.push(l[E]);this.addArrow(T,this.scaleValues[3]),this.components[this.components.length-2].style.strokeDashstyle="dash",this.components[this.components.length-2].style.lineSymbolID=1,this.components[this.components.length-2].style.lineTypeLimit=!0;var x=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,o,o,r+90);this.addScalePoint(x,0),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);var n=l[0],a=e,r=SuperMapAlgoPlot.PlottingUtil.distance(a,n);if(0===t){var s=r/o;if(.06>s||.3<s)return;this.scaleValues[1]=s}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30100=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.069485),l.scaleValues.push(.15),l.scaleValues.push(.1),l.scaleValues.push(1.731025),l.scaleValues.push(2.076877)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o),this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var i=e*this.scaleValues[0],n=this.scaleValues[1]*SuperMapAlgoPlot.PlottingUtil.RTOD,a=e*this.scaleValues[2],r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==r.index){var s=r.pt,p=r.index,u=s,P=o[p],c=o[p+1],g=SuperMapAlgoPlot.PlottingUtil.radian(P,c)*SuperMapAlgoPlot.PlottingUtil.RTOD,S=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,1.5*a,1.5*a,g+n);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,S]);var h=SuperMapAlgoPlot.PlottingUtil.radian(u,S)*SuperMapAlgoPlot.PlottingUtil.RTOD,f=new SuperMapAlgoPlot.Point(-.2*a,.05*a),y=new SuperMapAlgoPlot.Point(-.2*a,-.05*a),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,f,h),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,y,h);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[S,A,M],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});var b=new SuperMapAlgoPlot.Point(.6*a,0),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u,b,h),m=.4*a*this.scaleValues[5],v=.4*a*this.scaleValues[6],O=new SuperMapAlgoPlot.Point(0,-.9*(m-.25*v)),U=new SuperMapAlgoPlot.Point(0,.9*(m-.25*v)),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,O,h),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,U,h);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[L,w]);var _=new SuperMapAlgoPlot.Point(0,m),V=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,_,h),T=new SuperMapAlgoPlot.Point(0,.25*v),E=new SuperMapAlgoPlot.Point(.5*v,0),x=new SuperMapAlgoPlot.Point(0,-.25*v),C=new SuperMapAlgoPlot.Point(-.5*v,0),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(V,T,h),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(V,E,h),I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(V,x,h),R=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(V,C,h);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[j,Y,I,R,j]);var B=new SuperMapAlgoPlot.Point(0,-m),N=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,B,h),D=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(N,T,h),k=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(N,E,h),z=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(N,x,h),F=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(N,C,h);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[D,k,z,F,D]),this.addScalePoint(s,0),this.addScalePoint(S,1);var G=new SuperMapAlgoPlot.Point(0,-m),W=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,G,h);this.addScalePoint(W,2),this.addScalePoint(R,3),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);var n,a,r,s,p,u,P,c,g,S=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(S=SuperMapAlgoPlot.PlottingUtil.clearSamePts(S),0===t){for(var h=[],f=0;f<S.length;f++)h.push(new SuperMapAlgoPlot.Point(S[f].x,S[f].y));for(var y=-1,A=0,M=new SuperMapAlgoPlot.Point(0,0),b=0;b<h.length-1;b++){var d=[];d.push(h[b]),d.push(h[b+1]);var m=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,h[b],h[b+1]);if(-1!==SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(m,d).index){var v=SuperMapAlgoPlot.PlottingUtil.distance(e,m);-1==y?(y=b,M=m,A=v):A>v&&(y=b,M=m,A=v)}}if(-1==y||y>h.length-1)return;n=0;for(var O=0;O<y;O++)n+=SuperMapAlgoPlot.PlottingUtil.distance(S[O],S[O+1]);if((n+=SuperMapAlgoPlot.PlottingUtil.distance(S[y],M))<0||n>o)return;var U=n/o;this.scaleValues[0]=U}else if(1===t){a=o*this.scaleValues[0];var L=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(S,a);if(-1===L.index)return;r=L.pt,s=S[L.index],p=S[L.index+1],u=SuperMapAlgoPlot.PlottingUtil.radian(s,p);var w=(g=SuperMapAlgoPlot.PlottingUtil.radian(r,e))-u;this.scaleValues[1]=w;var _=(n=SuperMapAlgoPlot.PlottingUtil.distance(r,e))/o/1.5;this.scaleValues[2]=_}else if(2===t){if(a=o*this.scaleValues[0],P=180*this.scaleValues[1]/Math.PI,n=o*this.scaleValues[2],-1===(r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(S,a)).index)return;c=r.pt,s=S[r.index],p=S[r.index+1],u=180*SuperMapAlgoPlot.PlottingUtil.radian(s,p)/Math.PI;var V=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.4*n,.4*n,u+P),T=SuperMapAlgoPlot.PlottingUtil.distance(e,V)/(.4*n);this.scaleValues[5]=T}else if(3===t){if(a=o*this.scaleValues[0],P=180*this.scaleValues[1]/Math.PI,n=o*this.scaleValues[2],-1===(r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(S,a)).index)return;c=r.pt,s=S[r.index],p=S[r.index+1],g=(u=180*SuperMapAlgoPlot.PlottingUtil.radian(s,p)/Math.PI)+P;var E=new SuperMapAlgoPlot.Point(.6*n,0),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,E,g),C=.4*n*this.scaleValues[5],j=new SuperMapAlgoPlot.Point(0,C),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(x,j,g),I=2*SuperMapAlgoPlot.PlottingUtil.distance(Y,e)/(.4*n);this.scaleValues[6]=I}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30002=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol30001),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getSubSymbolScaleValue();this.scaleValues[2]=o,this.scaleValues[4]=o}var i=l*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI,a=l*this.scaleValues[2],r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,i);if(-1!==r.index){var s=r.pt,p=new SuperMapAlgoPlot.Point(e[r.index].x,e[r.index].y),u=new SuperMapAlgoPlot.Point(e[r.index+1].x,e[r.index+1].y),P=180*SuperMapAlgoPlot.PlottingUtil.radian(p,u)/Math.PI,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,a,a,P+n);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,c]);var g=180*SuperMapAlgoPlot.PlottingUtil.radian(s,c)/Math.PI,S=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.2*a,.2*a,g-157.5),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.2*a,.2*a,g+157.5);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[c,S,h],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});for(var f=4.5*(l*this.scaleValues[4])*Math.sin(Math.PI/8),y=this.getLeftSubSymbolPts(f),A=e[0].clone(),M=-1,b=null,d=1;d<e.length;d++)if(SuperMapAlgoPlot.PlottingUtil.distance(A,e[d])>.5*f){M=d-1,b=SuperMapAlgoPlot.PlottingUtil.linePnt(A,e[d],.5*f);break}-1===M&&(M=e.length-1,b=e[e.length-1]);var m=null;if(null!==b){for(var v=180*SuperMapAlgoPlot.PlottingUtil.radian(A,b)/Math.PI,O=[],U=0;U<y.length;U++)O.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(A,y[U],v));m=O[3].clone(),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,O)}for(var L=this.getRightSubSymbolPts(f),w=e[e.length-1].clone(),_=-1,V=null,T=e.length-2;T>=0;T--)if(SuperMapAlgoPlot.PlottingUtil.distance(w,e[T])>.5*f){_=T,V=SuperMapAlgoPlot.PlottingUtil.linePnt(w,e[T],.5*f);break}if(-1===_&&(_=0,V=e[0]),null!==V){for(var E=180*SuperMapAlgoPlot.PlottingUtil.radian(w,V)/Math.PI,x=[],C=0;C<L.length;C++)x.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,L[C],E));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,x)}if(M<=_){var j=[];j.push(b);for(var Y=M+1;Y<=_;Y++)j.push(e[Y]);j.push(V),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,j)}this.addScalePoint(s),this.addScalePoint(c),null!==m&&this.addScalePoint(m),this.finish()}}}},{key:"getRightSubSymbolPts",value:function(t){var e=.25*t,l=[];return l.push(new SuperMapAlgoPlot.Point(0,2*e)),l.push(new SuperMapAlgoPlot.Point(2*e,2*e)),l.push(new SuperMapAlgoPlot.Point(2*e,-e)),l.push(new SuperMapAlgoPlot.Point(0,-2*e)),l.push(new SuperMapAlgoPlot.Point(0,2*e)),l}}]),e}();SuperMapAlgoPlot.AlgoSymbol30002=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30001=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.05)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getSubSymbolScaleValue();(o>.2||o<=0)&&(o=.2),this.scaleValues[2]=o,this.scaleValues[4]=o}var i=l*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI,a=l*this.scaleValues[2],r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,i);if(-1!==r.index){var s=r.pt,p=new SuperMapAlgoPlot.Point(e[r.index].x,e[r.index].y),u=new SuperMapAlgoPlot.Point(e[r.index+1].x,e[r.index+1].y),P=180*SuperMapAlgoPlot.PlottingUtil.radian(p,u)/Math.PI,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,a,a,P+n);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,c]);var g=180*SuperMapAlgoPlot.PlottingUtil.radian(s,c)/Math.PI,S=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.2*a,.2*a,g-157.5),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.2*a,.2*a,g+157.5);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[c,S,h],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});for(var f=4.5*(l*this.scaleValues[4])*Math.sin(Math.PI/8),y=this.getLeftSubSymbolPts(f),A=e[0].clone(),M=-1,b=null,d=1;d<e.length;d++)if(SuperMapAlgoPlot.PlottingUtil.distance(A,e[d])>.5*f){M=d-1,b=SuperMapAlgoPlot.PlottingUtil.linePnt(A,e[d],.5*f);break}-1===M&&(M=e.length-1,b=e[e.length-1]);var m=null;if(null!==b){for(var v=180*SuperMapAlgoPlot.PlottingUtil.radian(A,b)/Math.PI,O=[],U=0;U<y.length;U++)O.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(A,y[U],v));m=O[3].clone(),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,O)}for(var L=this.getRightSubSymbolPts(f),w=e[e.length-1].clone(),_=-1,V=null,T=e.length-2;T>=0;T--)if(SuperMapAlgoPlot.PlottingUtil.distance(w,e[T])>.5*f){_=T,V=SuperMapAlgoPlot.PlottingUtil.linePnt(w,e[T],.5*f);break}if(-1===_&&(_=0,V=e[0]),null!==V){for(var E=180*SuperMapAlgoPlot.PlottingUtil.radian(w,V)/Math.PI,x=[],C=0;C<L.length;C++)x.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,L[C],E));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,x)}if(M<=_){var j=[];j.push(b);for(var Y=M+1;Y<=_;Y++)j.push(e[Y]);j.push(V),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,j)}this.addScalePoint(s),this.addScalePoint(c),null!==m&&this.addScalePoint(m),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){for(var a=-1,r=0,s=new SuperMapAlgoPlot.Point(0,0),p=0;p<o.length-1;p++){var u=[];u.push(o[p]),u.push(o[p+1]);var P=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,o[p],o[p+1]);if(-1!==SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(P,u).index){var c=SuperMapAlgoPlot.PlottingUtil.distance(e,P);isNaN(c)||(-1==a?(a=p,s=P,r=c):r>c&&(a=p,s=P,r=c))}}if(-1===a||a>o.length-1)return;i=0;for(var g=0;g<a;g++)i+=SuperMapAlgoPlot.PlottingUtil.distance(o[g],o[g+1]);if((i+=SuperMapAlgoPlot.PlottingUtil.distance(o[a],s))<0||i>n)return;var S=i/n;this.scaleValues[0]=S}else if(1===t){var h=n*this.scaleValues[0],f=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,h);if(-1===f.index)return;var y=f.pt,A=o[f.index],M=o[f.index+1],b=SuperMapAlgoPlot.PlottingUtil.radian(A,M),d=SuperMapAlgoPlot.PlottingUtil.radian(y,e)-b;this.scaleValues[1]=d;var m=(i=SuperMapAlgoPlot.PlottingUtil.distance(y,e))/n;this.scaleValues[2]=m}else if(2===t){var v=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/n;v>.35&&(v=.35),this.scaleValues[4]=v}}}},{key:"getLeftSubSymbolPts",value:function(t){var e=.25*t,l=[],o=new SuperMapAlgoPlot.Point(0,0),i=new SuperMapAlgoPlot.Point(e,-2*e),n=new SuperMapAlgoPlot.Point(2*e,0),a=new SuperMapAlgoPlot.Point(e,2*e);return l.push(o),l.push(i),l.push(n),l.push(a),l.push(o),l}},{key:"getRightSubSymbolPts",value:function(t){return this.getLeftSubSymbolPts(t)}}]),e}();SuperMapAlgoPlot.AlgoSymbol30001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30000=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.05)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o);var i=e*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI;if(!this.isEdit){var a=this.getSubSymbolScaleValue();this.scaleValues[2]=a}var r=e*this.scaleValues[2],s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==s.index){var p=s.pt,u=new SuperMapAlgoPlot.Point(o[s.index].x,o[s.index].y),P=new SuperMapAlgoPlot.Point(o[s.index+1].x,o[s.index+1].y),c=180*SuperMapAlgoPlot.PlottingUtil.radian(u,P)/Math.PI,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,r,r,c+n);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[p,g]);var S=180*SuperMapAlgoPlot.PlottingUtil.radian(p,g)/Math.PI,h=new SuperMapAlgoPlot.Point(-.2*r,.05*r),f=new SuperMapAlgoPlot.Point(-.2*r,-.05*r),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(g,h,S),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(g,f,S);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[g,y,A],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0}),this.addScalePoint(p,0),this.addScalePoint(g,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){for(var a=-1,r=0,s=new SuperMapAlgoPlot.Point(0,0),p=0;p<o.length-1;p++){var u=[];u.push(o[p]),u.push(o[p+1]);var P=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,o[p],o[p+1]);if(-1!==SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(P,u).index){var c=SuperMapAlgoPlot.PlottingUtil.distance(e,P);-1==a?(a=p,s=P,r=c):r>c&&(a=p,s=P,r=c)}}if(-1==a||a>o.length-1)return;i=0;for(var g=0;g<a;g++)i+=SuperMapAlgoPlot.PlottingUtil.distance(o[g],o[g+1]);if((i+=SuperMapAlgoPlot.PlottingUtil.distance(o[a],s))<0||i>n)return;var S=i/n;this.scaleValues[0]=S}else if(1===t){var h=n*this.scaleValues[0],f=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,h);if(-1===f.index)return;var y=f.pt,A=o[f.index],M=o[f.index+1],b=SuperMapAlgoPlot.PlottingUtil.radian(A,M),d=SuperMapAlgoPlot.PlottingUtil.radian(y,e)-b;this.scaleValues[1]=d;var m=(i=SuperMapAlgoPlot.PlottingUtil.distance(y,e))/n;this.scaleValues[2]=m}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol30000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29800=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 l=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 10!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.2),l.scaleValues.push(.2),l.scaleValues.push(.4),l.scaleValues.push(.4),l.scaleValues.push(.1),l.scaleValues.push(.2),l.scaleValues.push(.1),l.scaleValues.push(.2),l.scaleValues.push(1),l.scaleValues.push(1)),l}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,SuperMapAlgoPlot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);SuperMapAlgoPlot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var o,i,n=e*this.scaleValues[4],a=e*this.scaleValues[5],r=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[0]),s=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],t[0],r+a);o=0===this.scaleValues[8]?SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,t[1],s).pntRight:SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,t[1],s).pntLeft;var p=e*this.scaleValues[6],u=e*this.scaleValues[7],P=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],r+u);i=0===this.scaleValues[9]?SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(p,t[0],P).pntLeft:SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(p,t[0],P).pntRight;var c=[];c.push(new SuperMapAlgoPlot.Point(o.x,o.y)),c.push(new SuperMapAlgoPlot.Point(t[0].x,t[0].y)),c.push(new SuperMapAlgoPlot.Point(t[1].x,t[1].y)),c.push(new SuperMapAlgoPlot.Point(i.x,i.y));var g=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(c);g=SuperMapAlgoPlot.PlottingUtil.clearSamePts(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g),this.addScalePoint(o,3),this.addScalePoint(i,4),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,l[0],l[1]);if(t<=2&&SuperMapAlgoPlot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments),3===t){var n=SuperMapAlgoPlot.PlottingUtil.distance(e,i)/o,a=SuperMapAlgoPlot.PlottingUtil.distance(i,l[0])/o;this.scaleValues[4]=n,this.scaleValues[5]=a,SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[0],l[1],e)?this.scaleValues[8]=1:this.scaleValues[8]=0}if(4===t){var r=SuperMapAlgoPlot.PlottingUtil.distance(e,i)/o,s=SuperMapAlgoPlot.PlottingUtil.distance(i,l[1])/o;this.scaleValues[6]=r,this.scaleValues[7]=s,SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[0],l[1],e)?this.scaleValues[9]=1:this.scaleValues[9]=0}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol29800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28301=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.3),l.scaleValues.push(1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.3),this.scaleValues.push(1)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var e,l,o=t[0].clone(),i=t[1].clone(),n=SuperMapAlgoPlot.PlottingUtil.distance(o,i),a=this.scaleValues[0],r=this.scaleValues[1];if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(1,r))e=SuperMapAlgoPlot.PlottingUtil.radian(o,i)+270*SuperMapAlgoPlot.PlottingUtil.DTOR;else e=SuperMapAlgoPlot.PlottingUtil.radian(o,i)+90*SuperMapAlgoPlot.PlottingUtil.DTOR,l=o,o=i,i=l;var s=n*a*.67,p=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,s,s,e*SuperMapAlgoPlot.PlottingUtil.RTOD);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,n*a,e*SuperMapAlgoPlot.PlottingUtil.RTOD);var u=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,s,s,e*SuperMapAlgoPlot.PlottingUtil.RTOD);this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],u,n*a,e*SuperMapAlgoPlot.PlottingUtil.RTOD),this.scalePoints=[];var P=e*SuperMapAlgoPlot.PlottingUtil.RTOD,c=n*a,g=t[0].clone(),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,c,c,P);this.addScalePoint(S),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),o=(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l))[0].clone(),i=l[1].clone(),n=e.clone(),a=SuperMapAlgoPlot.PlottingUtil.distance(o,i),r=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(n,o,i)/a;if(r<0||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,0))return;this.scaleValues[0]=r,SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o,i,n)?this.scaleValues[1]=1:this.scaleValues[1]=0}}}]),e}();SuperMapAlgoPlot.AlgoSymbol28301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28300=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 l=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===l.scaleValues.length&&l.scaleValues.push(.1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var i=l*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],o,i,0),this.scalePoints=[];var n=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,i,i,0);this.addScalePoint(n),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=[];o=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=SuperMapAlgoPlot.PlottingUtil.distance(e,n)/i;this.scaleValues[0]=a}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol28300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28200=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,l),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol28200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28100=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(.349066)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),l=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),o=180*SuperMapAlgoPlot.PlottingUtil.radian(e,l)/Math.PI,i=0,n=0;n<t.length-1;n++)i+=SuperMapAlgoPlot.PlottingUtil.distance(e,l);var a={surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER},r=this.scaleValues[0]*i;this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[e,new SuperMapAlgoPlot.Point(e.x+r,e.y)],a);var s=180*this.scaleValues[1]/Math.PI,p=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,i,i,o-s),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,i,i,o+s);this.addCell(SuperMapAlgoPlot.SymbolType.ARCSYMBOL,[p,l,u],a),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[t[0],t[1]],a);var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,r,r,o-90);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[P,p],a);var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,r,r,o+90);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[c,u],a),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[P,c],a);var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,r,r,o+180);this.addScalePoint(new SuperMapAlgoPlot.Point(g.x,g.y),0),this.addScalePoint(u,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=new SuperMapAlgoPlot.Point(l[0].x,l[0].y),i=new SuperMapAlgoPlot.Point(l[1].x,l[1].y),n=180*SuperMapAlgoPlot.PlottingUtil.radian(o,i)/Math.PI,a=SuperMapAlgoPlot.PlottingUtil.distance(o,i);if(0===t){var r=SuperMapAlgoPlot.PlottingUtil.distance(o,e)/a;this.scaleValues[0]=r}if(1===t){var s=180*SuperMapAlgoPlot.PlottingUtil.radian(o,e)/Math.PI,p=Math.abs(s-n);if(p>270&&p<360&&(p=360-p),p>90)return;this.scaleValues[1]=p*Math.PI/180}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol28100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28000=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.349066)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l,o,i,n,a,r,s=this.scaleValues[1]*SuperMapAlgoPlot.PlottingUtil.RTOD,p=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),u=new SuperMapAlgoPlot.Point(t[t.length-1].x,t[t.length-1].y),P=SuperMapAlgoPlot.PlottingUtil.radian(p,u)*SuperMapAlgoPlot.PlottingUtil.RTOD,c=new SuperMapAlgoPlot.Point(0,0);if(2<=t.length){for(e=[],l=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),o=SuperMapAlgoPlot.PlottingUtil.distance(p,l),i=0,i=P-s;i<P+s;i+=3)e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,o,o,i));SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,P+s)&&(i=P+s,e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,o,o,i))),(n=[]).push(t[0]);for(var g=0;g<e.length;g++)n.push(new SuperMapAlgoPlot.Point(e[g].x,e[g].y));n.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),a=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,o,o,P),c=new SuperMapAlgoPlot.Point(a.x,a.y),(r=[]).push(t[0]),r.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER})}var S=new SuperMapAlgoPlot.Point(0,0);if(3<=t.length){for(e=[],l=new SuperMapAlgoPlot.Point(t[2].x,t[2].y),o=SuperMapAlgoPlot.PlottingUtil.distance(p,l),i=0,i=P-s;i<P+s;i+=3)e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,o,o,i));SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,P+s)&&(i=P+s,e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,o,o,i)));var h=[];if(0==e.length)return void(h.length>0&&(h=[]));(n=[]).push(t[0]);for(var f=0;f<e.length;f++)n.push(new SuperMapAlgoPlot.Point(e[f].x,e[f].y));n.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER});for(var y=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),A=SuperMapAlgoPlot.PlottingUtil.distance(p,y)*this.scaleValues[0],M=[],b=90;b<=270;b+=3)M.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,A,A,P+b));n=[];for(var d=M.length-1;d>=0;d--)n.push(new SuperMapAlgoPlot.Point(M[d].x,M[d].y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),(n=[]).push(new SuperMapAlgoPlot.Point(M[0].x,M[0].y)),n.push(new SuperMapAlgoPlot.Point(e[e.length-1].x,e[e.length-1].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),(n=[]).push(new SuperMapAlgoPlot.Point(e[0].x,e[0].y)),n.push(new SuperMapAlgoPlot.Point(M[M.length-1].x,M[M.length-1].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),a=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,o,o,P),S=new SuperMapAlgoPlot.Point(a.x,a.y),(r=[]).push(c),r.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER})}var m=new SuperMapAlgoPlot.Point(0,0);if(4<=t.length){for(e=[],l=new SuperMapAlgoPlot.Point(t[3].x,t[3].y),o=SuperMapAlgoPlot.PlottingUtil.distance(p,l),i=0,i=P-s;i<=P+s;i+=3)e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,o,o,i));SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,P+s)&&(i=P+s,e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,o,o,i))),(n=[]).push(t[0]);for(var v=0;v<e.length;v++)n.push(new SuperMapAlgoPlot.Point(e[v].x,e[v].y));n.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),a=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,o,o,P),m=new SuperMapAlgoPlot.Point(a.x,a.y),(r=[]).push(S),r.push(m),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER})}if(3>t.length)this.addScalePoint(t[0]);else{var O=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])*this.scaleValues[0],U=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,O,O,P+180);this.addScalePoint(U,0)}var L=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[t.length-1]),w=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,L,L,P+s);this.addScalePoint(w,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l,o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),0==t){if(3>o.length)return;var i=new SuperMapAlgoPlot.Point(o[0].x,o[0].y),n=new SuperMapAlgoPlot.Point(e.x,e.y),a=SuperMapAlgoPlot.PlottingUtil.distance(i,n),r=new SuperMapAlgoPlot.Point(o[1].x,o[1].y);if((l=a/SuperMapAlgoPlot.PlottingUtil.distance(i,r))>=2.5)return;this.scaleValues[0]=l}else if(1==t){var s=new SuperMapAlgoPlot.Point(o[0].x,o[0].y),p=new SuperMapAlgoPlot.Point(o[o.length-1].x,o[o.length-1].y),u=SuperMapAlgoPlot.PlottingUtil.radian(s,p),P=new SuperMapAlgoPlot.Point(e.x,e.y);if(l=SuperMapAlgoPlot.PlottingUtil.radian(s,P)-u,(l=Math.abs(l))>Math.PI/2&&l<3*Math.PI/2)return;l>3*Math.PI/2&&l<=2*Math.PI&&(l=2*Math.PI-l),this.scaleValues[1]=Math.abs(l)}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol28000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26601=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);for(var l,o,i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),n=.1*i,a=.5*n,r=this.computeDashLine(n,a,e),s=.01*i,p=0;p<r.length;p++)l=SuperMapAlgoPlot.PlottingUtil.paraLine(r[p],s,!0),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l),o=SuperMapAlgoPlot.PlottingUtil.paraLine(r[p],s,!1),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o);this.finish()}}},{key:"computeDashLine",value:function(t,e,l){for(var o,i,n=[],a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),r=l[0].clone(),s=1,p=0,u=!0,P=!0;p<a;){var c;(i=[]).push(r),p+=t;var g=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(p,l);if(c=g.index,o=g.pts,!(u=g.bfind))break;if(s<c)for(var S=s;S<c;S++)i.push(l[S]);i.push(o),n.push(i),p+=e;var h=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(p,l);if(c=h.index,r=h.pts,s=c+1,!(P=h.bfind))break}if(!u){(i=[]).push(r);for(var f=s;f<l.length;f++)i.push(l[f]);2===i.length&&0===SuperMapAlgoPlot.PlottingUtil.distance(i[0],i[1])||n.push(i)}if(!P){var y=l[l.length-1],A=SuperMapAlgoPlot.PlottingUtil.distance(o,y);if(A*=.01,!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(A,0)){var M=SuperMapAlgoPlot.PlottingUtil.linePnt(y,o,A);(i=[]).push(M),i.push(y),n.push(i)}}return n}}]),e}();SuperMapAlgoPlot.AlgoSymbol26601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26600=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=.1*SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),o=.5*l;this.computeDashLine(l,o,e),this.finish()}}},{key:"computeDashLine",value:function(t,e,l){for(var o,i,n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),a=l[0].clone(),r=1,s=0,p=!0,u=!0;s<n;){var P;(i=[]).push(a),s+=t;var c=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,l);if(P=c.index,o=c.pts,!(p=c.bfind))break;if(r<P)for(var g=r;g<P;g++)i.push(l[g]);i.push(o),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i),s+=e;var S=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,l);if(P=S.index,a=S.pts,r=P+1,!(u=S.bfind))break}if(!p){(i=[]).push(a);for(var h=r;h<l.length;h++)i.push(l[h]);2===i.length&&0===SuperMapAlgoPlot.PlottingUtil.distance(i[0],i[1])||this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i)}if(!u){var f=l[l.length-1],y=SuperMapAlgoPlot.PlottingUtil.distance(o,f);if(y*=.01,!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(y,0)){var A=SuperMapAlgoPlot.PlottingUtil.linePnt(f,o,y);(i=[]).push(A),i.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i)}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol26600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol26502=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05),l.scaleValues.push(.01)),l}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,SuperMapAlgoPlot.AlgoSymbol22000),e}();SuperMapAlgoPlot.AlgoSymbol26502=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26500=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 l=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===l.scaleValues.length&&l.scaleValues.push(.1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),o=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,l/2);if(-1!==o.index){var i=o.pt,n=this.getDefaultSubSymbolSize()/l;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=n;var a=1.5*this.scaleValues[0]*l,r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,e[o.index],i),s=[];s.push(r.pntLeft),s.push(i),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s,null,!0),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol26500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26400=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05),l.scaleValues.push(-1.5)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(!this.isEdit){this.scaleValues=[];for(var e=0;e<t.length;e++)this.scaleValues.splice(e,0,0);var l=this.getSubSymbolScaleValue();this.scaleValues[t.length]=.8*l,this.scaleValues[t.length+1]=l,this.scaleValues[t.length+2]=-1.5;var o=.5*SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])/SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.scaleValues[t.length+3]=o,this.scaleValues[t.length+4]=l}this.isEdit&&this.scaleValues.length===t.length+3&&(this.scaleValues[t.length+3]=.5*SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])/SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),this.scaleValues[t.length+4]=.05);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),n=i*this.scaleValues[this.scaleValues.length-1],a=i*this.scaleValues[this.scaleValues.length-2],r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,a-.5*n);if(-1!==r.index){var s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,a+.5*n);if(-1!==s.index){var p=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,a).pt,u=SuperMapAlgoPlot.PlottingUtil.radian(r.pt,s.pt)*SuperMapAlgoPlot.PlottingUtil.RTOD;if(0===this.subSymbols.length){var P=new SuperMapAlgoPlot.Point(p.x+.1*n,p.y);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[p,P],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0)}else this.computeSubSymbol(this.subSymbols[0],p,.8*n,u);for(var c=[],g=[],S=0;S<=r.index;S++)c.push(t[S]);c.push(r.pt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c),g.push(s.pt);for(var h=r.index+1;h<=t.length-1;h++)g.push(t[h]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var f,y,A,M=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),b=this.scaleValues.length,d=M*this.scaleValues[b-5],m=this.scaleValues[0];if(0===m)f=(y=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,t[1],t[0])).pntRight;else if(1===m)f=(y=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,t[1],t[0])).pntLeft;else{if(2!==m)return;f=t[0]}var v,O,U,L,w=[];if(w.push(t[0]),w.push(f),this.addScalePoint(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w,null,!0),t.length>this.minEditPts){for(var _,V,T,E,x,C=1;C<t.length-1;C++){var j,Y,I,R=this.scaleValues[C];if(0===R){for(_=t[C],Y=t[C+1],I=t[C-1],V=180*SuperMapAlgoPlot.PlottingUtil.radian(_,Y)/Math.PI,T=180*SuperMapAlgoPlot.PlottingUtil.radian(_,I)/Math.PI-V;T<0;)T+=360;E=T/2,x=t[C+1].clone(),x=SuperMapAlgoPlot.PlottingUtil.rotateAngle(_,E*Math.PI/180,x),j=SuperMapAlgoPlot.PlottingUtil.linePnt(_,x,d)}else if(1===R){for(_=t[C],Y=t[C+1],I=t[C-1],V=180*SuperMapAlgoPlot.PlottingUtil.radian(_,Y)/Math.PI,T=180*SuperMapAlgoPlot.PlottingUtil.radian(_,I)/Math.PI-V;T<0;)T+=360;E=180-T/2,x=t[C-1].clone(),x=SuperMapAlgoPlot.PlottingUtil.rotateAngle(_,E*Math.PI/180,x),j=SuperMapAlgoPlot.PlottingUtil.linePnt(_,x,d)}else{if(2!==R)continue;j=t[C]}(v=[]).push(t[C]),v.push(j),this.addScalePoint(j),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,null,!0)}var B=t.length,N=this.scaleValues[B-1];if(0===N)O=(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,t[B-2],t[B-1])).pntLeft,U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*d,t[B-2],t[B-1]).pntLeft;else if(1===N)O=(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,t[B-2],t[B-1])).pntRight,U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*d,t[B-2],t[B-1]).pntRight;else{if(2!==N)return;O=t[B-1].clone(),U=t[B-1].clone()}(v=[]).push(t[B-1]),v.push(O),this.addScalePoint(O),this.addScalePoint(U),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,null,!0)}else{var D=this.scaleValues[1];if(0===D)O=(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,t[0],t[1])).pntLeft,U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*d,t[0],t[1]).pntLeft;else if(1===D)O=(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,t[0],t[1])).pntRight,U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*d,t[0],t[1]).pntRight;else{if(2!==D)return;O=t[1].clone(),U=t[1].clone()}(v=[]).push(t[1]),v.push(O),this.addScalePoint(O),this.addScalePoint(U),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,null,!0)}var k=this.scaleValues.length,z=this.scaleValues[k-4],F=Math.abs(M*z),G=this.scaleValues[k-3],W=Math.abs(d*G);if(-1!==(y=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,F)).index){var J=y.index,K=y.pt;L=G>=0?(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(W,t[J],K)).pntRight:(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(W,t[J],K)).pntLeft;var H=SuperMapAlgoPlot.PlottingUtil.linePnt(K,L,W),q=.3*W,Q=SuperMapAlgoPlot.PlottingUtil.linePnt(H,K,q),X=(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.3*q,H,Q)).pntLeft,Z=A.pntRight;(v=[]).push(K),v.push(H),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,null,!0),(v=[]).push(X),v.push(H),v.push(Z);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,v,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0),this.addScalePoint(H),this.addScalePoint(p);var $=SuperMapAlgoPlot.PlottingUtil.radian(r.pt,s.pt)*SuperMapAlgoPlot.PlottingUtil.RTOD+90,tt=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,.5*n,.5*n,$);this.addScalePoint(tt),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i,n,a,r,s,p,u,P,c,g=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),S=l.length,h=e;if(t>=0&&t<S){var f=!1;if(0==t)f=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[t],l[t+1],h);else if(t==S-1)f=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[t-1],l[t],h);else{var y=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[t-1],l[t],l[t+1]),A=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[t-1],l[t],h);if(y!=A)f=A;else{var M=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[t],l[t+1],h);f=M==A?A:M}}this.scaleValues[t]=f?1:0}else if(t==S){o=SuperMapAlgoPlot.PlottingUtil.distance(l[S-1],h);var b=(o/=2)/g;this.scaleValues[t]=b}else if(t===S+1){i=-1,n=0,a=new SuperMapAlgoPlot.Point(0,0);for(var d=0;d<l.length-1;d++)(r=[]).push(l[d]),r.push(l[d+1]),p=SuperMapAlgoPlot.PlottingUtil.projectPoint(h,l[d],l[d+1]),(s=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(p,r)).isOnPolyLine&&(c=SuperMapAlgoPlot.PlottingUtil.distance(h,p),-1==i?(i=d,a=p,n=c):n>c&&(i=d,a=p,n=c));if(-1==i||i>l.length-1)return;u=0;for(var m=0;m<i;m++){var v=l[m],O=l[m+1];u+=SuperMapAlgoPlot.PlottingUtil.distance(v,O)}if(P=l[i],(u+=SuperMapAlgoPlot.PlottingUtil.distance(P,a))<0||u>g)return;var U=u/g;this.scaleValues[S+1]=U;var L,w=this.scaleValues.length;o=g*this.scaleValues[w-5],L=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[i],l[i+1],h)?n/o:-Math.abs(n/o),this.scaleValues[S+2]=L}else if(t===S+2){i=-1,n=0,a=new SuperMapAlgoPlot.Point(0,0);for(var _=0;_<l.length-1;_++)(r=[]).push(l[_]),r.push(l[_+1]),p=SuperMapAlgoPlot.PlottingUtil.projectPoint(h,l[_],l[_+1]),(s=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(p,r)).isOnPolyLine&&(c=SuperMapAlgoPlot.PlottingUtil.distance(h,p),-1===i?(i=_,a=p,n=c):n>c&&(i=_,a=p,n=c));if(-1===i||i>l.length-1)return;u=0;for(var V=0;V<i;V++)u+=SuperMapAlgoPlot.PlottingUtil.distance(l[V],l[V+1]);if(P=l[i],(u+=SuperMapAlgoPlot.PlottingUtil.distance(P,a))<0||u>g)return;.1*g<u&&.9*g>u&&(this.scaleValues[this.scaleValues.length-2]=u/g)}else if(t===S+3){var T=this.scaleValues[this.scaleValues.length-2]*g;if(-1===(s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,T)).index)return;var E=2*SuperMapAlgoPlot.PlottingUtil.distance(s.pt,e)/g;E>.15&&(E=.15),this.scaleValues[this.scaleValues.length-1]=E}}}},{key:"computeSubSymbol",value:function(t,e,l,o,i,n){if(null==t.symbolData||null==t.symbolData.innerCells)return null;void 0===i&&(i=0),void 0===n&&(n=0);for(var a=SuperMapAlgoPlot.AnalysisSymbol.analysisSymbolCells(t.symbolData,!0),r=0,s=0,p=0,u=0,P=0;P<a.length;P++){null!=a[P].polybezierClose&&(a[P].type===SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL||a[P].type===SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL?(a[P].type,SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL,a[P].positionPoints=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(a[P].positionPoints),a[P].isClosed&&a[P].positionPoints[0]!==a[P].positionPoints[symbolCell.positionPoints.length-1]&&a[P].positionPoints.push(a[P].positionPoints[0])):a[P].type===SuperMapAlgoPlot.SymbolType.KIDNEY&&(a[P].positionPoints=SuperMapAlgoPlot.Primitives.getSpatialData(a[P].type,a[P].positionPoints)));for(var c=SuperMapAlgoPlot.Primitives.getSpatialData(a[P].type,a[P].positionPoints,a[P].textContent,0,a[P].isCalculate),g=0,S=c.length;g<S;g++)r<c[g].x&&(r=c[g].x),s<c[g].y&&(s=c[g].y),p>c[g].x&&(p=c[g].x),u>c[g].y&&(u=c[g].y)}var h=new SuperMapAlgoPlot.Point(r,s),f=new SuperMapAlgoPlot.Point(p,u),y=(h.y-f.y)/l,A=(h.x-f.x)/l,M=A>y?A:y;100!==this.subSymbols[0].libID||3300!==this.subSymbols[0].code&&3301!==this.subSymbols[0].code&&3302!==this.subSymbols[0].code||(M=2*(h.y-f.y)),100!==this.subSymbols[0].libID||3400!==this.subSymbols[0].code&&3401!==this.subSymbols[0].code&&3402!==this.subSymbols[0].code||(M=h.y-f.y);var b=new SuperMapAlgoPlot.Point(.5*(h.x+f.x),.5*(h.y+f.y));b.x+=i*(h.x-f.x),b.y+=n*(h.y-f.y);for(var d=0,m=a.length;d<m;d++){for(var v=0,O=a[d].positionPoints.length;v<O;v++)a[d].positionPoints[v].x-=b.x,a[d].positionPoints[v].y-=b.y,a[d].positionPoints[v].x/=M,a[d].positionPoints[v].y/=M,SuperMapAlgoPlot.PlottingUtil.rotateAngle(new SuperMapAlgoPlot.Point(0,0),o*Math.PI/180,a[d].positionPoints[v]),a[d].positionPoints[v].x+=e.x,a[d].positionPoints[v].y+=e.y;a[d].type===SuperMapAlgoPlot.SymbolType.TEXTSYMBOL&&(a[d].style.fontSize/=10*M,a[d].style.labelRotation=-o,a[d].style.sizeFixed=!1),a[d].isCalculate=!1,a[d].style.surroundLineType=0,a[d].style.surroundLineLimit=!0,this.components.push(a[d])}return a}}]),e}();SuperMapAlgoPlot.AlgoSymbol26400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25400=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5));for(var i=this.getLinePts(e,this.scaleValues[0]),n=this.getLinePts(e,1.2*this.scaleValues[0]),a=SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt),r=[],s=[],p=0;p<=n.startIndex;p++)r.push(e[p]);if(r.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r),n.endIndex<=e.length){s.push(n.endPt);for(var u=n.endIndex+1;u<=e.length-1;u++)s.push(e[u]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s)}var P=e[0],c=e[1],g=e[e.length-2],S=e[e.length-1],h=.3*a,f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(h,c,P),y=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(h,g,S),A=f.pntLeft,M=y.pntLeft,b=[];b.push(P),b.push(A),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b);var d=[];d.push(S),d.push(M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d);var m=SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,v=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),O=new SuperMapAlgoPlot.Point(.1*a,0),U=new SuperMapAlgoPlot.Point(.5*a,0),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,O,m),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,U,m),_=[];_.push(L),_.push(w);var V={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,_,V);var T=new SuperMapAlgoPlot.Point(.35*a,0),E=SuperMapAlgoPlot.PlottingUtil.circlePoint(T,.2*a,.2*a,135),x=SuperMapAlgoPlot.PlottingUtil.circlePoint(T,.2*a,.2*a,225),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,T,m),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,E,m),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,x,m);(_=[]).push(j),_.push(C),_.push(Y),V={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,_,V);var I=new SuperMapAlgoPlot.Point(-.1*a,0),R=new SuperMapAlgoPlot.Point(-.5*a,-.15*a),B=new SuperMapAlgoPlot.Point(-.5*a,.15*a),N=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,I,m),D=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,R,m),k=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(v,B,m);(_=[]).push(N),_.push(D),_.push(k),_.push(N),V={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,_,V);var z=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,e),F=SuperMapAlgoPlot.PlottingUtil.circlePoint(z.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,m);this.addScalePoint(F,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25000=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.222222),l.scaleValues.push(.5),l.scaleValues.push(.5),l.scaleValues.push(.5)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.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(),l=t[1].clone(),o=SuperMapAlgoPlot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMapAlgoPlot.Point(0,-o*i),a=new SuperMapAlgoPlot.Point(0,o*i),r=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMapAlgoPlot.Point(o*(1-s),-o*r),u=new SuperMapAlgoPlot.Point(o*(1-s),o*r),P=this.scaleValues[2],c=this.scaleValues[4],g=new SuperMapAlgoPlot.Point(o*(1-c),-o*P),S=new SuperMapAlgoPlot.Point(o*(1-c),o*P),h=new SuperMapAlgoPlot.Point(o,0),f=SuperMapAlgoPlot.PlottingUtil.radian(e,l),y=[];y.push(n),y.push(p),y.push(g),y.push(h),y.push(S),y.push(u),y.push(a);for(var A=[],M=0;M<y.length;M++){var b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,y[M],f*SuperMapAlgoPlot.PlottingUtil.RTOD);A.push(b)}for(var d=[],m=A.length-1;m>=0;--m)d.push(A[m]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d),this.scalePoints=[];var v=A[0].clone();v.isScalePoint=!0,v.tag=0,this.scalePoints.push(v);var O=A[1].clone();O.isScalePoint=!0,O.tag=1,this.scalePoints.push(O);var U=A[2].clone();U.isScalePoint=!0,U.tag=2,this.scalePoints.push(U),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o,i=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]),n=l[0].clone(),a=l[1].clone(),r=e.clone();if(0==t){var s=SuperMapAlgoPlot.PlottingUtil.distance(r,n)/i;this.scaleValues[0]=s}else if(1==t){o=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,n,a);var p=SuperMapAlgoPlot.PlottingUtil.distance(o,r)/i;this.scaleValues[1]=p;var u=SuperMapAlgoPlot.PlottingUtil.distance(o,a)/i;this.scaleValues[3]=u}else if(2==t){o=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,n,a);var P=SuperMapAlgoPlot.PlottingUtil.distance(o,r)/i;this.scaleValues[2]=P;var c=SuperMapAlgoPlot.PlottingUtil.distance(o,a)/i;this.scaleValues[4]=c}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25200=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 l=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 6!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.148),l.scaleValues.push(.4),l.scaleValues.push(.312),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}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,SuperMapAlgoPlot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),SuperMapAlgoPlot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var e=new SuperMapAlgoPlot.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(t.splice(0,2),t.unshift(e),this.subSymbols.length>0){var l;if(null==this.subSymbols[0].symbolData)return;l=Math.max(this.subSymbols[0].symbolData.symbolSize.x,this.subSymbols[0].symbolData.symbolSize.y);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=o*this.scaleValues[4],n=o*this.scaleValues[5],a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,t),r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,t),s=SuperMapAlgoPlot.PlottingUtil.radian(r.pts,a.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD+270,p=100*SuperMapAlgoPlot.PlottingUtil.distance(a.pts,r.pts)/l,u=new SuperMapAlgoPlot.Point((r.pts.x+a.pts.x)/2,(a.pts.y+r.pts.y)/2);if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],u,p,s),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone()),r.pts.isScalePoint=!0,r.pts.tag=this.scalePoints.length,this.scalePoints.push(r.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMapAlgoPlot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var o=new SuperMapAlgoPlot.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),i=SuperMapAlgoPlot.PlottingUtil.clonePoints(l);i.splice(0,2),i.unshift(o);var n=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,i),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i);if(3===t&&null==n.pt&&(n.pt=o.clone()),-1==n.index&&4==t)this.scaleValues[t+1]=.01;else{var r=SuperMapAlgoPlot.PlottingUtil.clonePoints(i);r.splice(0,n.index+1),r.unshift(n.pt);var s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(r);a<s&&(s=a),this.scaleValues[t+1]=(a-s)/a,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5)}}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29103=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol29100),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=[];o=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);for(var i=0;i<4;i++){var n=i*(o.length-1)/4,a=new SuperMapAlgoPlot.Point(o[n].x,o[n].y),r=new SuperMapAlgoPlot.Point(o[n+1].x,o[n+1].y),s=new SuperMapAlgoPlot.Point((a.x+r.x)/2,(a.y+r.y)/2),p=180*SuperMapAlgoPlot.PlottingUtil.radian(s,r)/Math.PI,u=e*this.scaleValues[0]/2,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,u,u,p),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,4*u,4*u,p+270),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,u,u,p+180);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[P,c,g],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0})}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol29103=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29101=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol29100),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.25*this.getSubSymbolScaleValue());var l=[];l=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);for(var o=0;o<4;o++){var i=o*(l.length-1)/4,n=new SuperMapAlgoPlot.Point(l[i].x,l[i].y),a=new SuperMapAlgoPlot.Point(l[i+1].x,l[i+1].y),r=new SuperMapAlgoPlot.Point((n.x+a.x)/2,(n.y+a.y)/2),s=SuperMapAlgoPlot.PlottingUtil.radian(r,a)*SuperMapAlgoPlot.PlottingUtil.RTOD,p=this.scaleValues[0]*e/2,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,p,p,s),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,4*p,4*p,s+270),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,p,p,s+180);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u,P,c])}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol29101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29100=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.25*this.getSubSymbolScaleValue());var l=[];l=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);for(var o=0;o<4;o++){var i=Math.floor(o*l.length/4),n=new SuperMapAlgoPlot.Point(l[i].x,l[i].y),a=new SuperMapAlgoPlot.Point(l[i+1].x,l[i+1].y),r=new SuperMapAlgoPlot.Point((n.x+a.x)/2,(n.y+a.y)/2),s=SuperMapAlgoPlot.PlottingUtil.radian(a,r)*SuperMapAlgoPlot.PlottingUtil.RTOD,p=this.scaleValues[0]*e/2,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,p,p,s),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,4*p,4*p,s+270),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,p,p,s+180);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u,P,c],{lineTypeLimit:!0,surroundLineLimit:!0})}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol29100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29000=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=t.length,o=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),i=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,n=[];2==l?(e=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t),n.push.apply(n,e)):3==l&&(e=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,t),n=n.concat(e));var a,r=new SuperMapAlgoPlot.Point(.8*o,.1*o),s=new SuperMapAlgoPlot.Point(1.2*o,.1*o),p=new SuperMapAlgoPlot.Point(1.2*o,.1*-o),u=new SuperMapAlgoPlot.Point(.9*o,.1*-o),P=[];P.push(r),P.push(s),P.push(p),P.push(u);var c=[],g=0;for(g=0;g<4;g++)a=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[0],P[g],i),c.push(a);var S=new SuperMapAlgoPlot.Point(-.8*o,.1*o),h=new SuperMapAlgoPlot.Point(-1.2*o,.1*o),f=new SuperMapAlgoPlot.Point(-1.1*o,.1*-o),y=new SuperMapAlgoPlot.Point(-.8*o,.1*-o);(P=[]).push(S),P.push(h),P.push(f),P.push(y);var A=[];for(g=0;g<4;g++)a=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[0],P[g],i),A.push(a);var M,b=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],t[0],3*o),d=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],2*o),m=[];for(g=0;g<n.length-1;g++){var v=SuperMapAlgoPlot.PlottingUtil.intersectLines(n[g],n[g+1],b,d);v.isIntersectLines&&(M=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(v.intersectPoint,n)).isOnPolyLine&&m.push(v.intersectPoint)}if(!(0>=m.length)&&(M=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(m[0],n)).isOnPolyLine){var O=[];for(g=M.index+1;g<n.length;g++)O.push(n[g]);for(g=0;g<=M.index;g++)O.push(n[g]);var U=[],L=[];SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(c,m[0])?(U.push.apply(U,c),L.push.apply(L,A)):(U.push.apply(U,A),L.push.apply(L,c));var w=[],_=[];for(M=-1,g=0;g<O.length;g++)if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(U,O[g])){if(SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(L,O[g])){M=g;break}w.push(O[g])}if(-1!==M)for(g=M;g<O.length;g++)if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(L,O[g])){if(SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(U,O[g]))break;_.push(O[g])}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,_),this.addLine(w),this.addLine(_),this.finish()}}}},{key:"addLine",value:function(t){for(var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=0;l<t.length-2;l++){var o=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.02*e,t);if(-1!==o.index){var i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*e,t);if(-1!==i.index){var n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.92*e,t);if(-1!==n.index&&(l===o.index||l===o.index+1||l===n.index||l===n.index+1||l===i.index||l===i.index+1)){var a=SuperMapAlgoPlot.PlottingUtil.radian(t[l+1],t[l])*SuperMapAlgoPlot.PlottingUtil.RTOD,r=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[l+1],.02*e,.02*e,a+90);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[t[l+1],r])}}}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol29000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28900=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5)),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);var i=e[0],n=e[1],a=e[e.length-2],r=e[e.length-1],s=l*this.scaleValues[0]*.6,p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,n,i),u=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,a,r),P=p.pntLeft,c=u.pntRight,g=[];g.push(i),g.push(P);for(var S=new SuperMapAlgoPlot.Point((i.x+P.x)/2,(i.y+P.y)/2),h=SuperMapAlgoPlot.PlottingUtil.polylineDistance(g)/2,f=[],y=180*SuperMapAlgoPlot.PlottingUtil.radian(n,i)/Math.PI,A=270+y;A<=360+y;A+=3)f.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(S,h,h,A));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var M=[];M.push(r),M.push(c);var b=[];b.push(r),b.push(c);for(var d=new SuperMapAlgoPlot.Point((r.x+c.x)/2,(r.y+c.y)/2),m=SuperMapAlgoPlot.PlottingUtil.polylineDistance(b)/2,v=[],O=180*SuperMapAlgoPlot.PlottingUtil.radian(r,c)/Math.PI,U=90+O;U<=180+O;U+=3)v.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(d,m,m,U));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol28900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23902=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.125),l.scaleValues.push(90)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l,o,i,n=[];if(2==t.length){e=t[0],l=t[1];var a=SuperMapAlgoPlot.PlottingUtil.distance(e,l);i=180*SuperMapAlgoPlot.PlottingUtil.radian(e,l)/Math.PI,o=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,a,a,i+60),n.push(e),n.push(o),n.push(l)}else n=n.concat(t);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n),n.push(n[0]);var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n),s=this.scaleValues[0],p=this.scaleValues[1],u=this.scaleValues[2],P=this.scaleValues[4],c=r*s;e=n[0],l=n[1],o=n[2];var g,S=r*p,h=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(e,l,o)/Math.PI*u,f=180*SuperMapAlgoPlot.PlottingUtil.radian(e,l)/Math.PI,y=f-h,A=f+h,M=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,S,S,y),b=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,S,S,A);g=SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(n,M)?M:b;var d=r*this.scaleValues[3];i=P,0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],g,d,i-90);var m=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,c,c,f+180);this.addScalePoint(m),this.addScalePoint(g);var v=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,.5*d,.5*d,i);this.addScalePoint(v),this.createArcPts(n,c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i,n,a,r,s,p,u=[];2==l.length?(o=l[0],i=l[1],r=SuperMapAlgoPlot.PlottingUtil.distance(o,i),a=180*SuperMapAlgoPlot.PlottingUtil.radian(o,i)/Math.PI,n=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,r,r,a+60),u.push(o),u.push(i),u.push(n)):u=u.concat(l),o=u[0],i=u[1],n=u[2],u.push(u[0]);var P=SuperMapAlgoPlot.PlottingUtil.polylineDistance(u),c=e;if(0===t)r=SuperMapAlgoPlot.PlottingUtil.distance(c,u[0]),this.scaleValues[0]=r/P;else if(1===t){s=SuperMapAlgoPlot.PlottingUtil.distance(c,u[0])/P,this.scaleValues[1]=s,a=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(o,i,n)/Math.PI,0<=(p=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(o,i,c)/Math.PI/a)&&1>=p&&(this.scaleValues[2]=p)}else if(2===t){s=this.scaleValues[1],p=this.scaleValues[2];var g,S=P*s,h=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(o,i,n)/Math.PI*p,f=180*SuperMapAlgoPlot.PlottingUtil.radian(o,i)/Math.PI,y=f-h,A=f+h,M=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,S,S,y),b=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,S,S,A);g=SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(u,M)?M:b;var d=2*SuperMapAlgoPlot.PlottingUtil.distance(c,g)/P;this.scaleValues[3]=d;var m=180*SuperMapAlgoPlot.PlottingUtil.radian(g,c)/Math.PI;this.scaleValues[4]=m}}}},{key:"ComputeSubSymbolPt",value:function(t,e,l,o){var i,n,a=l[0],r=l[1],s=l[2],p=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(s,a,r)*t,u=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(r,a,s)*e,P=[];if(SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(a,r,o)?((i=[]).push(a),i.push(r),P=SuperMapAlgoPlot.PlottingUtil.paraLine(i,p,!1)):((i=[]).push(a),i.push(r),P=SuperMapAlgoPlot.PlottingUtil.paraLine(i,p,!0)),SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(a,s,o)?((i=[]).push(a),i.push(s),n=SuperMapAlgoPlot.PlottingUtil.paraLine(i,u,!1)):((i=[]).push(a),i.push(s),n=SuperMapAlgoPlot.PlottingUtil.paraLine(i,u,!0)),2>P.length||2>n.length)return o;var c=SuperMapAlgoPlot.PlottingUtil.intersectLines(P[0],P[1],n[0],n[1]);return c.isIntersectLines?c.intersectPoint:o}},{key:"createArcPts",value:function(t,e){for(var l=[],o=[],i=0;i<t.length;i++)o.push(e),l.push([{Start:0,End:360}]);for(var n=0;n<t.length;n++)if(0!==l[n].length&&(0!==l[n][0].Start||0!==l[n][0].End))for(var a=n+1;a<t.length;a++)if(0!==l[a].length&&(0!==l[a][0].Start||0!==l[a][0].End)){var r=SuperMapAlgoPlot.PlottingUtil.distance(t[n],t[a]);if(r<o[n]+o[a])if(r>Math.abs(o[n]-o[a]))for(var s=0;s<2;s++){var p,u,P;0==s?(P=n,p=SuperMapAlgoPlot.PlottingUtil.radian(t[n],t[a])*SuperMapAlgoPlot.PlottingUtil.RTOD,u=Math.acos((r*r+o[n]*o[n]-o[a]*o[a])/(2*r*o[n]))*SuperMapAlgoPlot.PlottingUtil.RTOD):(P=a,p=SuperMapAlgoPlot.PlottingUtil.radian(t[a],t[n])*SuperMapAlgoPlot.PlottingUtil.RTOD,u=Math.acos((r*r+o[a]*o[a]-o[n]*o[n])/(2*r*o[a]))*SuperMapAlgoPlot.PlottingUtil.RTOD);var c=p-u,g=p+u,S=c<0&&g>0||c>360||g>360;c=this.adjustAngle(c),g=this.adjustAngle(g);for(var h=l[P].length-1;h>=0;h--)if(S){if(g>l[P][h].End||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(g,l[P][h].End)){l[P].splice(h,1);continue}if(g>l[P][h].Start&&(l[P][h].Start=g),c<l[P][h].Start||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(c,l[P][h].Start)){l[P].splice(h,1);continue}c<l[P][h].End&&(l[P][h].End=c)}else if(c<l[P][h].Start&&g>l[P][h].End)l[P].splice(h,1);else if(c>l[P][h].Start&&g<l[P][h].End)l[P].push({Start:l[P][h].Start,End:c}),l[P].push({Start:g,End:l[P][h].End}),l[P].splice(h,1);else{if(c>l[P][h].End)continue;if(c>l[P][h].Start&&(l[P][h].End=c),g<l[P][h].Start)continue;g<l[P][h].End&&(l[P][h].Start=g)}}else{if(o[n]<o[a]){l[n][0].Start=0,l[n][0].End=0;break}l[a][0].Start=0,l[a][0].End=0}}for(var f=0;f<t.length;f++)if(0!==l[f].length&&(0!==l[f][0].Start||0!==l[f][0].End))for(var y=l[f].length-1;y>=0;y--){for(var A=this.adjustAngle(l[f][y].Start),M=this.adjustAngle(l[f][y].End);M<A;)M+=360;for(var b=[],d=(M-A)/72,m=A;m<M+d/2;m+=d){var v=t[f].x+o[f]*Math.cos(m*SuperMapAlgoPlot.PlottingUtil.DTOR),O=t[f].y+o[f]*Math.sin(m*SuperMapAlgoPlot.PlottingUtil.DTOR);b.push(new SuperMapAlgoPlot.Point(v,O))}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b)}}},{key:"adjustAngle",value:function(t){for(;t>360;)t-=360;for(;t<0;)t+=360;return t}},{key:"GetCirclePts",value:function(t,e,l,o){var i=180*SuperMapAlgoPlot.PlottingUtil.radian(t,e)/Math.PI,n=180*SuperMapAlgoPlot.PlottingUtil.radian(t,l)/Math.PI,a=i;n>i&&(a=n);for(var r=[],s=a;s<360+a;s+=4)90==s&&(s=91),r.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,o,o,s));return r.push[0],r}},{key:"CreatArc",value:function(t,e,l){for(var o=[],i=[],n=0;n<t.length;n++){var a=t[n];SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(e,a)||SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(l,a)?(i.length>1&&o.push(i),i=[]):i.push(a)}i.length>1&&o.push(i);for(var r=0;r<o.length;r++){var s=o[r];this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s)}}},{key:"GetArcPts3D",value:function(t,e,l){for(var o=[],i=[],n=0;n<t.length;n++){var a=t[n];SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(e,a)||SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(l,a)?(i.length>1&&o.push(i),i=[]):i.push(a)}i.length>1&&o.push(i);for(var r=[],s=0;s<o.length;s++)r=r.concat(o[s]);return r}},{key:"sortPts",value:function(t,e){t=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);for(var l=0;l<e.length;l++)for(var o=e[l],i=180*SuperMapAlgoPlot.PlottingUtil.radian(t,o)/Math.PI,n=0;n<e.length;n++){var a=e[n],r=180*SuperMapAlgoPlot.PlottingUtil.radian(t,a)/Math.PI;if(i>r){var s=new SuperMapAlgoPlot.Point(o.x,o.y);o=new SuperMapAlgoPlot.Point(a.x,a.y),a=new SuperMapAlgoPlot.Point(s.x,s.y),i=r,e[l]=o,e[n]=a}}return e}}]),e}();SuperMapAlgoPlot.AlgoSymbol23902=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23901=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.333333),l.scaleValues.push(.333333),l.scaleValues.push(.125),l.scaleValues.push(90)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=[];if(2==t.length){var o=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),i=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),n=SuperMapAlgoPlot.PlottingUtil.distance(o,i);e=180*SuperMapAlgoPlot.PlottingUtil.radian(o,i)/Math.PI;var a=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,n,n,e+60);l.push(t[0]),l.push(i),l.push(a),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l)}else{this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);for(var r=0;r<t.length;r++)l.push(t[r])}var s=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);l.push(l[0]);var p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(!this.isEdit){var u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.scaleValues[2]=2*u*this.getSubSymbolScaleValue()/p}var P=this.scaleValues[0],c=this.scaleValues[1],g=this.scaleValues[2],S=this.scaleValues[3],h=this.ComputeSubSymbolPt(P,c,l,s),f=p*g,y=h;e=S-90,0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],y,f,e),this.addScalePoint(y);var A=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,f,f,S);this.addScalePoint(A),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i,n,a=[];if(2==l.length){o=l[0],i=l[1];var r=SuperMapAlgoPlot.PlottingUtil.distance(o,i),s=180*SuperMapAlgoPlot.PlottingUtil.radian(o,i)/Math.PI;n=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,r,r,s+60),a.push(o),a.push(i),a.push(n)}else a=a.concat(l);o=a[0],i=a[1],n=a[2];var p=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(a);a.push(a[0]);var u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(a),P=e;if(0==t){var c=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(n,o,i),g=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(i,o,n),S=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(P,o,i)/c,h=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(P,o,n)/g;S>1&&(S=1),h>1&&(h=1),this.scaleValues[0]=S,this.scaleValues[1]=h}else if(1==t){var f=this.scaleValues[0],y=this.scaleValues[1],A=this.ComputeSubSymbolPt(f,y,a,p),M=SuperMapAlgoPlot.PlottingUtil.distance(A,P)/u;this.scaleValues[2]=M;var b=180*SuperMapAlgoPlot.PlottingUtil.radian(A,P)/Math.PI;this.scaleValues[3]=b}}}},{key:"ComputeSubSymbolPt",value:function(t,e,l,o){var i,n,a=l[0],r=l[1],s=l[2],p=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(s,a,r)*t,u=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(r,a,s)*e,P=[];if(SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(a,r,o)?((i=[]).push(a),i.push(r),P=SuperMapAlgoPlot.PlottingUtil.paraLine(i,p,!1)):((i=[]).push(a),i.push(r),P=SuperMapAlgoPlot.PlottingUtil.paraLine(i,p,!0)),SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(a,s,o)?((i=[]).push(a),i.push(s),n=SuperMapAlgoPlot.PlottingUtil.paraLine(i,u,!1)):((i=[]).push(a),i.push(s),n=SuperMapAlgoPlot.PlottingUtil.paraLine(i,u,!0)),2>P.length||2>n.length)return o;var c=SuperMapAlgoPlot.PlottingUtil.intersectLines(P[0],P[1],n[0],n[1]);return c.isIntersectLines?c.intersectPoint:o}}]),e}();SuperMapAlgoPlot.AlgoSymbol23901=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol23800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23500=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{fillLimit:!0,fill:!1,surroundLineFlag:!1});var l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.2||i<=0)&&(i=.2),this.scaleValues[0]=i}var n=this.scaleValues[0],a=this.scaleValues[2],r=this.scaleValues[3],s=o*n,p=new SuperMapAlgoPlot.Point(l.x+o*a,l.y+o*r);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,s,0),this.addScalePoint(p);var u=s,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,u,u,90);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n,a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t)i=(e.x-a.x)/r,this.scaleValues[2]=i,n=(e.y-a.y)/r,this.scaleValues[3]=n;else if(1===t){i=this.scaleValues[2],n=this.scaleValues[3];var s=new SuperMapAlgoPlot.Point(a.x+r*i,a.y+r*n),p=SuperMapAlgoPlot.PlottingUtil.distance(s,e)/r;this.scaleValues[0]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol23500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23400=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e),this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var l=this.scaleValues[0],o=this.scaleValues[1],i=this.scaleValues[2],n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),r=a*i,s=new SuperMapAlgoPlot.Point(n.x+a*l,n.y+a*o);if(this.subSymbols.length>0){if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],s,r,0),this.addScalePoint(s);var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,r,r,0);this.addScalePoint(p)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var o=[];o=3>=l.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i,n,a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t)i=(e.x-a.x)/r,this.scaleValues[0]=i,n=(e.y-a.y)/r,this.scaleValues[1]=n;else if(1===t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(a.x+r*i,a.y+r*n),p=SuperMapAlgoPlot.PlottingUtil.distance(s,e)/r;this.scaleValues[2]=p}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol23400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol22103=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.025)),l}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,SuperMapAlgoPlot.AlgoSymbol22000),e}();SuperMapAlgoPlot.AlgoSymbol22103=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol22000=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.03):1===this.scaleValues.length&&(this.scaleValues[1]=.02),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=.6*this.getSubSymbolScaleValue()}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,r=SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,.8*r,a);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var P=i.endIndex+1;P<=e.length-1;P++)p.push(e[P]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p)}var c=e[0],g=e[1],S=e[e.length-2],h=e[e.length-1],f=l*this.scaleValues[1],y=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(f,g,c),A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(f,S,h),M=y.pntLeft,b=A.pntLeft,d=[];d.push(c),d.push(M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d);var m=[];m.push(h),m.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,m);var v=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,e),O=SuperMapAlgoPlot.PlottingUtil.circlePoint(v.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a);this.addScalePoint(O,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMapAlgoPlot.AlgoSymbol22000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21800=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 l=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===l.scaleValues.length&&l.scaleValues.push(.2),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.2));var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],l=.5*e,o=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),i=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),n=180*SuperMapAlgoPlot.PlottingUtil.radian(o,i)/Math.PI,a=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,e,e,n+90),r=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,e,e,n+270),s=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,l,l,n),p=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,l,l,n),u=[];u.push(p),u.push(r),u.push(a),u.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u);var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,e,e,n+90),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,e,e,n+270),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,l,l,n+180),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,l,l,n+180);(u=[]).push(g),u.push(P),u.push(c),u.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),this.addScalePoint(a),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}}}]),e}();SuperMapAlgoPlot.AlgoSymbol21800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21600=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05)),l.subText="",l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),!(t.length<this.minEditPts)){1==this.scaleValues.length&&this.scaleValues.push(this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[0]=.6*this.getSubSymbolScaleValue(),this.scaleValues[1]=this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);for(var l=0,o=0;o<e.length-1;o++)l+=SuperMapAlgoPlot.PlottingUtil.distance(e[o],e[o+1]);var i=.5*l,n=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,i);if(-1!==n.index){for(var a=n.pt,r=[],s=0,p=0;p<n.index+1;p++)r.push(e[p]),p>0&&(s+=SuperMapAlgoPlot.PlottingUtil.distance(r[p],r[p-1]));var u,P,c=i-s,g=l*this.scaleValues[1],S=[];if(c>=g){u=SuperMapAlgoPlot.PlottingUtil.linePnt(a,e[n.index],g),r.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r),P=SuperMapAlgoPlot.PlottingUtil.linePnt(a,e[n.index+1],g),S.push(P);for(var h=e.length,f=n.index+1;f<h;++f)S.push(e[f]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S)}else{for(var y,A,M=-1,b=r.length-1;b>=0;b--)if(y=new SuperMapAlgoPlot.Point(r[b].x,r[b].y),A=new SuperMapAlgoPlot.Point(a.x,a.y),SuperMapAlgoPlot.PlottingUtil.distance(y,A)>g){M=b;break}if(-1==M)return;r.splice(M+1,r.length-1-M),u=SuperMapAlgoPlot.PlottingUtil.linePnt(a,e[M],g),r.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r);for(var d=-1,m=n.index;m<e.length;m++)if(y=new SuperMapAlgoPlot.Point(e[m].x,e[m].y),A=new SuperMapAlgoPlot.Point(a.x,a.y),SuperMapAlgoPlot.PlottingUtil.distance(y,A)>g){d=m;break}if(-1==d)return;P=SuperMapAlgoPlot.PlottingUtil.linePnt(a,e[d],g),S.push(P);for(var v=d+1;v<e.length;++v)S.push(e[v]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S)}if(!(r.length<2)){for(var O=0,U=0;U<t.length-1;U++)O+=SuperMapAlgoPlot.PlottingUtil.distance(t[U],t[U+1]);var L=O*this.scaleValues[0],w=new SuperMapAlgoPlot.Point(r[0].x,r[0].y),_=new SuperMapAlgoPlot.Point(r[1].x,r[1].y),V=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(L,_,w),T=[];if(T.push(V.pntLeft),T.push(V.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T),!(S.length<2)){var E=new SuperMapAlgoPlot.Point(S[S.length-1].x,S[S.length-1].y),x=new SuperMapAlgoPlot.Point(S[S.length-2].x,S[S.length-2].y),C=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(L,x,E);(T=[]).push(C.pntLeft),T.push(C.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T);var j=u,Y=P,I=180*SuperMapAlgoPlot.PlottingUtil.radian(j,Y)/Math.PI,R=SuperMapAlgoPlot.PlottingUtil.distance(j,Y),B=new SuperMapAlgoPlot.Point((u.x+P.x)/2,(u.y+P.y)/2),N=this.subText;this.addText(N,B,R,I),this.addScalePoint(V.pntLeft),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}}}]),e}();SuperMapAlgoPlot.AlgoSymbol21600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21504=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol21501),o(e,[{key:"addSubSymbols",value:function(t,e,l){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,.8*e,l-90)}}]),e}();SuperMapAlgoPlot.AlgoSymbol21504=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21503=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol21501),o(e,[{key:"addSubSymbols",value:function(t,e,l){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,.8*e,l-90)}}]),e}();SuperMapAlgoPlot.AlgoSymbol21503=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol21502=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}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,SuperMapAlgoPlot.AlgoSymbol21501),e}();SuperMapAlgoPlot.AlgoSymbol21502=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21501=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.02):1===this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue()),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=.5*this.getSubSymbolScaleValue()}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,r=SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt);this.addSubSymbols(n,r,a);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var P=i.endIndex+1;P<=e.length-1;P++)p.push(e[P]);this.addArrow(p,this.scaleValues[1])}var c=l*this.scaleValues[0]*.5,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,c,c,a+90);this.addScalePoint(g,0),this.finish()}}},{key:"addSubSymbols",value:function(t,e,l){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,.8*e,l-180)}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMapAlgoPlot.AlgoSymbol21501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21900=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.05,l.scaleValues[2]=.01,l.scaleValues[3]=.02),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0===this.scaleValues.length?(this.scaleValues=[],this.scaleValues[0]=.05,this.scaleValues[1]=.02,this.scaleValues[2]=.01,this.scaleValues[3]=.02):1===this.scaleValues.length&&(this.scaleValues.push(.02),this.scaleValues.push(.01),this.scaleValues.push(.25*this.getSubSymbolScaleValue())),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[3]=.5*o}for(var i=this.getLinePts(e,this.scaleValues[0]),n=[],a=[],r=0;r<=i.startIndex;r++)n.push(e[r]);if(n.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n),i.endIndex<=e.length){a.push(i.endPt);for(var s=i.endIndex+1;s<=e.length-1;s++)a.push(e[s]);this.addArrow(a,this.scaleValues[this.scaleValues.length-1])}var p,u,P,c,g,S,h,f,y,A,M,b,d,m=i.startPt.clone(),v=i.endPt.clone(),O=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),U=SuperMapAlgoPlot.PlottingUtil.distance(m,v),L=SuperMapAlgoPlot.PlottingUtil.radian(m,v)*SuperMapAlgoPlot.PlottingUtil.RTOD;p=new SuperMapAlgoPlot.Point(0,0),u=new SuperMapAlgoPlot.Point(0,0),P=new SuperMapAlgoPlot.Point(0,0),c=new SuperMapAlgoPlot.Point(0,0),g=new SuperMapAlgoPlot.Point(0,0),S=new SuperMapAlgoPlot.Point(0,0),h=new SuperMapAlgoPlot.Point(0,0),f=new SuperMapAlgoPlot.Point(0,0),y=new SuperMapAlgoPlot.Point(0,0),A=new SuperMapAlgoPlot.Point(0,0),M=new SuperMapAlgoPlot.Point(0,0),b=new SuperMapAlgoPlot.Point(0,0),d=new SuperMapAlgoPlot.Point(0,0),m.x>=v.x?(p.x=.25*U,p.y=.25*-U,u.x=.5*-U,u.y=.25*-U,P.x=.5*-U,P.y=.25*U,c.x=.5*U,c.y=.25*U,g.x=.5*U,g.y=0,S.x=.25*-U,S.y=.125*-U,h.x=0,h.y=.125*U,f.x=0,f.y=.125*-U,y.x=.25*U,y.y=.2*U,A.x=.25*-U,A.y=.25*-U,M.x=.375*-U,M.y=.5*-U,b.x=.02*-U,b.y=.25*-U,d.x=.1*U,d.y=.5*-U):(p.x=.25*U,p.y=.25*U,u.x=.5*-U,u.y=.25*U,P.x=.5*-U,P.y=.25*-U,c.x=.5*U,c.y=.25*-U,g.x=.5*U,g.y=0,S.x=.25*U,S.y=.125*-U,h.x=0,h.y=.125*U,f.x=0,f.y=.125*-U,y.x=.25*-U,y.y=.125*U,A.x=.25*-U,A.y=.25*U,M.x=.375*-U,M.y=.5*U,b.x=.02*U,b.y=.25*U,d.x=.15*U,d.y=.5*U);var w=[],_=[],V=[],T=[],E=[],x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,p,L),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,u,L),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,P,L),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,c,L),I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,g,L),R=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,S,L),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,h,L),N=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,f,L),D=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,y,L),k=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,A,L),z=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,M,L),F=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,b,L),G=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(O,d,L);w.push(x),w.push(C),w.push(j),w.push(Y),w.push(I),_.push(R),_.push(B),_.push(N),_.push(D),V.push(k),V.push(z),T.push(F),T.push(G),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,w,null,!0),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,_,null,!0),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,V,null,!0),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T,null,!0);var W=.3*SuperMapAlgoPlot.PlottingUtil.distance(N,D),J=SuperMapAlgoPlot.PlottingUtil.linePnt(D,N,W),K=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.3*W,D,J);E.push(K.pntLeft),E.push(D),E.push(K.pntRight);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,E,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0);var H=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,e),q=SuperMapAlgoPlot.PlottingUtil.circlePoint(H.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,L+90);this.addScalePoint(q,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMapAlgoPlot.AlgoSymbol21900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21500=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues=[],this.scaleValues.push(.02),this.scaleValues.push(.1),this.scaleValues.push(0)):3===this.scaleValues.length&&this.scaleValues.push(.5*this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!1);if(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addArrow(e,this.scaleValues[this.scaleValues.length-1]),0!==SuperMapAlgoPlot.PlottingUtil.polylineDistance(e)){if(!this.isEdit){var l=this.getSubSymbolScaleValue();this.scaleValues[0]=.5*l,this.scaleValues[this.scaleValues.length-1]=.5*this.getSubSymbolScaleValue()}for(var o=this.scaleValues[0],i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),n=o*i,a=this.scaleValues[1]*i,r=0,s=.01*i,p=s,u=0;p<=i;p+=a,u++){r=p+s;var P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,r);if(-1===P.index)return;var c=[],g=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,e[P.index],P.pt);c.push(new SuperMapAlgoPlot.Point(g.pntLeft.x,g.pntLeft.y)),c.push(new SuperMapAlgoPlot.Point(g.pntRight.x,g.pntRight.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c),0===u?this.addScalePoint(c[0],0):1===u&&this.addScalePoint(P.pt,1)}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=.01*i;if(0===t){var a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,n);if(-1===a.index)return;var r=SuperMapAlgoPlot.PlottingUtil.distance(e,a.pt);this.scaleValues[0]=r/i}else if(1===t){var s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,n);if(-1===s.index)return;var p=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,o);if(-1===p.index)return;for(var u=0,P=s.index+1;P<p.index;P++)u+=SuperMapAlgoPlot.PlottingUtil.distance(o[P],o[P+1]);u+=SuperMapAlgoPlot.PlottingUtil.distance(o[p.index],p.pt),u-=n,this.scaleValues[1]=u/i,this.scaleValues[1]>.93&&(this.scaleValues[1]=.93)}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol21500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21401=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.03),l.scaleValues.push(.4),l.scaleValues.push(0),l.scaleValues.push(.02)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues=[],this.scaleValues.push(.03),this.scaleValues.push(.4),this.scaleValues.push(0)):3===this.scaleValues.length&&this.scaleValues.push(.02);var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!1);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),o=this.scaleValues[1],i=l*(1-o)*.5,n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,e);if(n.bfind){this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue(),this.scaleValues[this.scaleValues.length-1]=.5*this.getSubSymbolScaleValue());var a,r=this.scaleValues[0],s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*r,p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,e[n.index],n.pts),u=this.scaleValues[2];1===u?a=new SuperMapAlgoPlot.Point(p.pntRight.x,p.pntRight.y):0===u&&(a=new SuperMapAlgoPlot.Point(p.pntLeft.x,p.pntLeft.y));var P=[];P.push(a),P.push(n.pts);var c;this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,P,{lineTypeLimit:!0});var g=l*(.5+.5*o),S=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(g,e);if(S.bfind){var h=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,e[S.index],S.pts);1===u?c=new SuperMapAlgoPlot.Point(h.pntRight.x,h.pntRight.y):0===u&&(c=new SuperMapAlgoPlot.Point(h.pntLeft.x,h.pntLeft.y)),this.addArrow(e,this.scaleValues[this.scaleValues.length-1]),this.addScalePoint(c,0);var f=[];f.push(c),f.push(S.pts);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,f,{lineTypeLimit:!0}),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=i*(.5+.5*this.scaleValues[1]),a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,o);if(!a.bfind)return;var r,s=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(1,o[a.index],a.pts),p=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[a.index],o[a.index+1],e);this.scaleValues[2]=p?0:1,r=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,new SuperMapAlgoPlot.Point(s.pntLeft.x,s.pntLeft.y),new SuperMapAlgoPlot.Point(s.pntRight.x,s.pntRight.y));var u=SuperMapAlgoPlot.PlottingUtil.distance(r.projectPoint,new SuperMapAlgoPlot.Point(a.pts.x,a.pts.y));this.scaleValues[0]=u/i}}}]),e}();SuperMapAlgoPlot.AlgoSymbol21401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25201=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=l*this.scaleValues[0],i=e[e.length-1];if(e.length>2){for(var n=-1,a=e.length-2;a>=0;a--)if(o<SuperMapAlgoPlot.PlottingUtil.distance(i,e[a])){n=a;break}e.splice(n+1,e.length-n),e.push(i)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);var r=e[e.length-2],s=e[e.length-1],p=o,u=180*SuperMapAlgoPlot.PlottingUtil.radian(r,s)/Math.PI,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,u+157.5),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,u+202.5),g=[];g.push(P),g.push(i),g.push(c);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0);var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,u);this.addScalePoint(S),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[l.length-1])/o;if(i>.2)return;this.scaleValues[0]=i}}}]),e}();SuperMapAlgoPlot.AlgoSymbol25201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol42500=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.285714),l.scaleValues.push(.285714),l.scaleValues.push(.5),l.scaleValues.push(.333333),l.scaleValues.push(.333333)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.285714),this.scaleValues.push(.285714),this.scaleValues.push(.5),this.scaleValues.push(.333333));var e=t[0].clone(),l=t[1].clone(),o=SuperMapAlgoPlot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMapAlgoPlot.Point(0,-o*i),a=new SuperMapAlgoPlot.Point(0,o*i),r=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMapAlgoPlot.Point(o*(1-s),-o*r),u=new SuperMapAlgoPlot.Point(o*(1-s),o*r),P=this.scaleValues[2],c=this.scaleValues[4],g=new SuperMapAlgoPlot.Point(o*(1-c),-o*P),S=new SuperMapAlgoPlot.Point(o*(1-c),o*P),h=new SuperMapAlgoPlot.Point(o,0),f=SuperMapAlgoPlot.PlottingUtil.radian(e,l)*SuperMapAlgoPlot.PlottingUtil.RTOD,y=[];y.push(a),y.push(u),y.push(S),y.push(h),y.push(g),y.push(p),y.push(n);for(var A=[],M=0;M<y.length;M++){var b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,y[M],f);A.push(b)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);var d,m,v,O=!0;e.x>l.x&&(O=!1);var U,L=(v=.1*o)+(m=.12*o/2);d=1==O?(U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(L,l,e)).pntRight:(U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(L,l,e)).pntLeft;var w,_,V,T,E,x,C,j,Y=[];Y.push(d),Y.push(new SuperMapAlgoPlot.Point(d.x+m,d.y)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,Y),1==O?(w=(U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.85*v,l,e)).pntRight,T=U.pntLeft,_=(U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(v,w,T)).pntRight,V=U.pntLeft):(w=(U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.85*v,l,e)).pntLeft,T=U.pntRight,_=(U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(v,w,T)).pntLeft,V=U.pntRight),(Y=[]).push(w),Y.push(_),Y.push(V),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,Y,{fillLimit:!0,fill:!0,lineTypeLimit:!0}),U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*m,_,V),j=1==O?U.pntRight:U.pntLeft,U=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*m,V,_),x=1==O?U.pntLeft:U.pntRight;var I=SuperMapAlgoPlot.PlottingUtil.intersectLines(w,x,V,_);I.isIntersectLines&&(E=I.intersectPoint,(I=SuperMapAlgoPlot.PlottingUtil.intersectLines(w,j,V,_)).isIntersectLines&&(C=I.intersectPoint,(Y=[]).push(E),Y.push(x),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,Y),(Y=[]).push(C),Y.push(j),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,Y),this.scalePoints=[],this.addScalePoint(A[0]),this.addScalePoint(A[1]),this.addScalePoint(A[2]),this.finish()))}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o,i=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]),n=l[0].clone(),a=l[1].clone(),r=e.clone();if(0==t){var s=SuperMapAlgoPlot.PlottingUtil.distance(r,n)/i;this.scaleValues[0]=s}else if(1==t){o=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,n,a);var p=SuperMapAlgoPlot.PlottingUtil.distance(o,r)/i;this.scaleValues[1]=p;var u=SuperMapAlgoPlot.PlottingUtil.distance(o,a)/i;this.scaleValues[3]=u}else if(2==t){o=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,n,a);var P=SuperMapAlgoPlot.PlottingUtil.distance(o,r)/i;this.scaleValues[2]=P;var c=SuperMapAlgoPlot.PlottingUtil.distance(o,a)/i;this.scaleValues[4]=c}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol42500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26501=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5)),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=180*SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI,r=SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,.8*r,a);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var P=i.endIndex+1;P<=e.length-1;P++)p.push(e[P]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p)}var c=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,e),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(c.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a);this.addScalePoint(g,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMapAlgoPlot.AlgoSymbol26501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol20301=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length!==this.minEditPts&&(this.scaleValues=[],this.scaleValues.push(.2),this.scaleValues.push(0)),this.components.length=0,this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,this.controlPoints);var e,l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),i=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),n=180*SuperMapAlgoPlot.PlottingUtil.radian(o,i)/Math.PI,a=new SuperMapAlgoPlot.Point((o.x+i.x)/2,(o.y+i.y)/2),r=this.scaleValues[0]*l;e=0==this.scaleValues[1]?SuperMapAlgoPlot.PlottingUtil.circlePoint(a,r,r,n+90):SuperMapAlgoPlot.PlottingUtil.circlePoint(a,r,r,n+270);var s={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[a,e]);var p=.02*SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[t.length-1]),u=new SuperMapAlgoPlot.Point((o.x+a.x)/2,(o.y+a.y)/2),P=[u,new SuperMapAlgoPlot.Point(u.x,u.y+p)];this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,P,s,!0);var c=new SuperMapAlgoPlot.Point((i.x+a.x)/2,(i.y+a.y)/2);P=[c,new SuperMapAlgoPlot.Point(c.x,c.y+p)],this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,P,s,!0);var g=new SuperMapAlgoPlot.Point(e.x,e.y);g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=new SuperMapAlgoPlot.Point(l[0].x,l[0].y),i=new SuperMapAlgoPlot.Point(l[1].x,l[1].y),n=SuperMapAlgoPlot.PlottingUtil.distance(o,i);if(0===n)return;var a=new SuperMapAlgoPlot.Point((o.x+i.x)/2,(o.y+i.y)/2);if(0===t){var r=SuperMapAlgoPlot.PlottingUtil.distance(e,a)/n;this.scaleValues[0]=r,SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o,i,e)?this.scaleValues[1]=1:this.scaleValues[1]=0}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol20301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol20300=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 l=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===l.scaleValues.length&&l.scaleValues.push(.1),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){1!==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1)),this.components.length=0,this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,this.controlPoints);var e=this.scaleValues[0],l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=l*e,i=.01*l;o<2*i&&(i=.5*o);for(var n={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},a=0,r=o;r<l-i;r+=o){var s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,t);if(s.bfind){var p=s.pts,u=[];u.push(p);var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,i,i,90);if(u.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,u,n),0===a){var c=new SuperMapAlgoPlot.Point(p.x,p.y);c.isScalePoint=!0,c.tag=0,this.scalePoints.push(c)}a++}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;for(var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=-1,n=0,a=new SuperMapAlgoPlot.Point(0,0),r=0;r<l.length-1;r++){var s,p=[];p.push(l[r]),p.push(l[r+1]);var u=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,l[r],l[r+1]);if(u.isOnline&&(s=u.projectPoint),!u.isOnline&&SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(e,l[r],l[r+1])&&(s=e),void 0===s)return;if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(s,p).isOnPolyLine){var P=SuperMapAlgoPlot.PlottingUtil.distance(e,s);-1===i?(i=r,a=s,n=P):n>P&&(i=r,a=s,n=P)}}if(-1===i||i>l.length-1)return;for(var c=0,g=0;g<i;g++){var S=new SuperMapAlgoPlot.Point(l[g].x,l[g].y),h=new SuperMapAlgoPlot.Point(l[g+1].x,l[g+1].y);c+=SuperMapAlgoPlot.PlottingUtil.distance(S,h)}var f=new SuperMapAlgoPlot.Point(l[i].x,l[i].y);if((c+=SuperMapAlgoPlot.PlottingUtil.distance(f,a))<0||c>o)return;var y=c/o;y>.95?y=.95:y<.1&&(y=.1),this.scaleValues[0]=y}}}]),e}();SuperMapAlgoPlot.AlgoSymbol20300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17806=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol17804),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var e,l,o,i,n,a=this.scaleValues[0],r=this.scaleValues[1],s=this.scaleValues[2],p=0,u=0;if(t.length==this.minEditPts){this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t),l=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),o=new SuperMapAlgoPlot.Point(t[1].x,t[1].y);var P=SuperMapAlgoPlot.PlottingUtil.distance(l,o);p=2*P,e=new SuperMapAlgoPlot.Point(l.x+p*a,l.y+p*r);var c=2*P*s/.28/2;u=c,i=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,c,c,0),(n=[]).push(e.clone()),n.push(i.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,n)}else{this.addCell(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,t),l=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),o=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),i=new SuperMapAlgoPlot.Point(t[2].x,t[2].y),p=SuperMapAlgoPlot.PlottingUtil.distance(l,o)+SuperMapAlgoPlot.PlottingUtil.distance(l,i),e=new SuperMapAlgoPlot.Point(l.x+p*a,l.y+p*r);var g=p*s/.21/2,S=p*s/.38/2;u=g;var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,g,g,0),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,S,S,90);(n=[]).push(e.clone()),n.push(h.clone()),n.push(f.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,n)}this.scalePoints=[];var y=new SuperMapAlgoPlot.Point(e.x+.1*p,e.y);y.isScalePoint=!0,y.tag=0,this.scalePoints.push(y);var A=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,u,u,90);A.isScalePoint=!0,A.tag=1,this.scalePoints.push(A),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l,o,i,n,a=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),r=(a=SuperMapAlgoPlot.PlottingUtil.clearSamePts(a))[0].clone(),s=0;if(0==(s=2==a.length?2*SuperMapAlgoPlot.PlottingUtil.distance(a[0],a[1]):SuperMapAlgoPlot.PlottingUtil.distance(a[0],a[1])+SuperMapAlgoPlot.PlottingUtil.distance(a[0],a[2])))return;if(0==t)n=(i=this.scaleValues[2])*s,l=(e.x-.1*s-r.x)/s,this.scaleValues[0]=l,o=(e.y-r.y)/s,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var p=new SuperMapAlgoPlot.Point(r.x+s*l,r.y+s*o);n=SuperMapAlgoPlot.PlottingUtil.distance(p,e),i=.1,i=2===a.length?.56*n/s:.42*n/s,this.scaleValues[2]=i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17806=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17805=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol17804),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1)),t.length==this.minEditPts?this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t):this.addCell(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,t);var e=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),l=0;if(0!=(l=t.length==this.minEditPts?2*SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]):SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])+SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[2]))){var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMapAlgoPlot.Point(e.x+l*o,e.y+l*i),r=3*(l*n),s=new SuperMapAlgoPlot.Point(-.5*r,.3*r),p=new SuperMapAlgoPlot.Point(-.5*r,-.3*r),u=new SuperMapAlgoPlot.Point(.5*r,-.3*r),P=new SuperMapAlgoPlot.Point(.5*r,.3*r),c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,s,0),g=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,p,0),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,u,0),h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,P,0),f=[];f.push(c.clone()),f.push(g.clone()),f.push(S.clone()),f.push(h.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,f);var y=new SuperMapAlgoPlot.Point(-.3*r,.3*r),A=new SuperMapAlgoPlot.Point(-.3*r,.5*r),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,y,0),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,A,0);(f=[]).push(M.clone()),f.push(b.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var d=new SuperMapAlgoPlot.Point(-.3*r,-.3*r),m=new SuperMapAlgoPlot.Point(-.3*r,-.5*r),v=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,d,0),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,m,0);(f=[]).push(v.clone()),f.push(O.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var U=new SuperMapAlgoPlot.Point(.3*r,.3*r),L=new SuperMapAlgoPlot.Point(.3*r,.5*r),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,U,0),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,L,0);(f=[]).push(w.clone()),f.push(_.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var V=new SuperMapAlgoPlot.Point(.3*r,-.3*r),T=new SuperMapAlgoPlot.Point(.3*r,-.5*r),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,V,0),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,T,0);(f=[]).push(E.clone()),f.push(x.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),this.scalePoints=[];var C=new SuperMapAlgoPlot.Point(a.x+.1*r,a.y);C.isScalePoint=!0,C.tag=0,this.scalePoints.push(C);var j=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,.5*r,.5*r,90);j.isScalePoint=!0,j.tag=1,this.scalePoints.push(j),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17805=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17804=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1)),t.length==this.minEditPts?this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t):this.addCell(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,t);var e=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),l=0;if(0!=(l=t.length==this.minEditPts?2*SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]):SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])+SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[2]))){var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMapAlgoPlot.Point(e.x+l*o,e.y+l*i),r=l*n,s=3*r,p=new SuperMapAlgoPlot.Point(-.5*s,.5*r),u=new SuperMapAlgoPlot.Point(.5*s,.5*r),P=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,p,0),c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,u,0),g=[];g.push(P.clone()),g.push(c.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var S=new SuperMapAlgoPlot.Point(-.5*s,-.5*r),h=new SuperMapAlgoPlot.Point(.5*s,-.5*r),f=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,S,0),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,h,0);(g=[]).push(f.clone()),g.push(y.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var A=new SuperMapAlgoPlot.Point(-.1*s,.5*r),M=new SuperMapAlgoPlot.Point(-.15*s,-.5*r),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,A,0),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,M,0);(g=[]).push(b.clone()),g.push(d.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var m=new SuperMapAlgoPlot.Point(.15*s,.5*r),v=new SuperMapAlgoPlot.Point(.1*s,-.5*r),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,m,0),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,v,0);(g=[]).push(O.clone()),g.push(U.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g),this.scalePoints=[];var L=new SuperMapAlgoPlot.Point(a.x+.1*s,a.y);L.isScalePoint=!0,L.tag=0,this.scalePoints.push(L);var w=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,.5*s,.5*s,90);w.isScalePoint=!0,w.tag=1,this.scalePoints.push(w),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l,o,i,n,a=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),r=(a=SuperMapAlgoPlot.PlottingUtil.clearSamePts(a))[0].clone(),s=0;if(0==(s=2==a.length?2*SuperMapAlgoPlot.PlottingUtil.distance(a[0],a[1]):SuperMapAlgoPlot.PlottingUtil.distance(a[0],a[1])+SuperMapAlgoPlot.PlottingUtil.distance(a[0],a[2])))return;if(0==t)n=(i=this.scaleValues[2])*s,l=(e.x-.1*n-r.x)/s,this.scaleValues[0]=l,o=(e.y-r.y)/s,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var p=new SuperMapAlgoPlot.Point(r.x+s*l,r.y+s*o);i=2*(n=SuperMapAlgoPlot.PlottingUtil.distance(p,e))/s/3,this.scaleValues[2]=i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17804=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17803=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 l=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===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.2)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.2)),2==t.length?this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t):this.addCell(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,t);var e=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),l=0;if(0!=(l=2==t.length?2*SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]):SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])+SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[2]))){var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMapAlgoPlot.Point(e.x+l*o,e.y+l*i),r=l*n,s=new SuperMapAlgoPlot.Point(-.5*r,.25*r),p=new SuperMapAlgoPlot.Point(-.4*r,.125*r),u=new SuperMapAlgoPlot.Point(.4*r,.125*r),P=new SuperMapAlgoPlot.Point(.5*r,.25*r),c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,s,0),g=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,p,0),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,u,0),h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,P,0),f=[];f.push(c.clone()),f.push(g.clone()),f.push(S.clone()),f.push(h.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var y=new SuperMapAlgoPlot.Point(-.5*r,-.25*r),A=new SuperMapAlgoPlot.Point(-.4*r,-.125*r),M=new SuperMapAlgoPlot.Point(.4*r,-.125*r),b=new SuperMapAlgoPlot.Point(.5*r,-.25*r),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,y,0),m=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,A,0),v=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,M,0),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(a,b,0);(f=[]).push(d.clone()),f.push(m.clone()),f.push(v.clone()),f.push(O.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),this.scalePoints=[];var U=new SuperMapAlgoPlot.Point(a.x+.1*r,a.y);U.isScalePoint=!0,U.tag=0,this.scalePoints.push(U);var L=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,.25*r,.25*r,90);L.isScalePoint=!0,L.tag=1,this.scalePoints.push(L),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l,o,i,n,a=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),r=(a=SuperMapAlgoPlot.PlottingUtil.clearSamePts(a))[0].clone(),s=0;if(0==(s=2==a.length?2*SuperMapAlgoPlot.PlottingUtil.distance(a[0],a[1]):SuperMapAlgoPlot.PlottingUtil.distance(a[0],a[1])+SuperMapAlgoPlot.PlottingUtil.distance(a[0],a[2])))return;if(0==t)n=(i=this.scaleValues[2])*s,l=(e.x-.1*n-r.x)/s,this.scaleValues[0]=l,o=(e.y-r.y)/s,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var p=new SuperMapAlgoPlot.Point(r.x+s*l,r.y+s*o);i=4*(n=SuperMapAlgoPlot.PlottingUtil.distance(p,e))/s,this.scaleValues[2]=i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17803=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17802=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol17800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),l=new SuperMapAlgoPlot.Point(t[t.length-1].x,t[t.length-1].y),o=0;2==t.length?this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t):(this.addCell(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,t),o=SuperMapAlgoPlot.PlottingUtil.radian(e,l)*SuperMapAlgoPlot.PlottingUtil.RTOD);var i=SuperMapAlgoPlot.PlottingUtil.distance(e,l),n=[],a=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.15*i,.15*i,o),r=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.08*i,.08*i,o+90),s=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.15*i,.15*i,o+180),p=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.08*i,.08*i,o+270);n.push(a.clone()),n.push(r.clone()),n.push(s.clone()),n.push(p.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n);var u=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.78*i,.78*i,o+180),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o+180);(n=[]).push(u.clone()),n.push(P.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.15*i,.15*i,o+180),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.58*i,.58*i,o+180);(n=[]).push(c.clone()),n.push(g.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.15*i,.15*i,o),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.58*i,.58*i,o);(n=[]).push(S.clone()),n.push(h.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.78*i,.78*i,o),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o);(n=[]).push(f.clone()),n.push(y.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17802=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol17800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),l=new SuperMapAlgoPlot.Point(t[t.length-1].x,t[t.length-1].y),o=0;2==t.length?this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t):(this.addCell(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,t),o=SuperMapAlgoPlot.PlottingUtil.radian(e,l)*SuperMapAlgoPlot.PlottingUtil.RTOD);var i=SuperMapAlgoPlot.PlottingUtil.distance(e,l),n=[],a=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.1*i,.1*i,0);n.push(t[0].clone()),n.push(a.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,n);var r=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.78*i,.78*i,o+180),s=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o+180);(n=[]).push(r.clone()),n.push(s.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.15*i,.15*i,o+180),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.58*i,.58*i,o+180);(n=[]).push(p.clone()),n.push(u.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.15*i,.15*i,o),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.58*i,.58*i,o);(n=[]).push(P.clone()),n.push(c.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.78*i,.78*i,o),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o);(n=[]).push(g.clone()),n.push(S.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),l=new SuperMapAlgoPlot.Point(t[t.length-1].x,t[t.length-1].y),o=0;2==t.length?this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t):(this.addCell(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,t),o=SuperMapAlgoPlot.PlottingUtil.radian(e,l)*SuperMapAlgoPlot.PlottingUtil.RTOD);var i=SuperMapAlgoPlot.PlottingUtil.distance(e,l),n=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.78*i,.78*i,o+180),a=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o+180),r=[];r.push(n.clone()),r.push(a.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r);var s=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.1*i,.1*i,o+180),p=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.58*i,.58*i,o+180);(r=[]).push(s.clone()),r.push(p.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r);var u=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.1*i,.1*i,o),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.58*i,.58*i,o);(r=[]).push(u.clone()),r.push(P.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r);var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,.78*i,.78*i,o),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o);(r=[]).push(c.clone()),r.push(g.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol1770501=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.2),l.scaleValues.push(.3),l.scaleValues.push(.7),l.scaleValues.push(.1),l.scaleValues.push(.5),l.scaleValues.push(1),l.scaleValues.push(.03)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);0===this.scaleValues.length&&(this.scaleValues.push(.02),this.scaleValues.push(.2),this.scaleValues.push(.3),this.scaleValues.push(.7),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.03)),this.isEdit||(this.scaleValues[0]=.2*this.getSubSymbolScaleValue(),this.scaleValues[7]=this.getSubSymbolScaleValue());var l=e*this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=this.scaleValues[7]*i,a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.3125*i),r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,.6875*i),s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,i*this.scaleValues[5]),p=(this.scaleValues[2],this.scaleValues[6],[]),u=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n*this.scaleValues[6],o[s.index],s.pt);p.push(new SuperMapAlgoPlot.Point(u.pntRight.x,u.pntRight.y)),p.push(new SuperMapAlgoPlot.Point(u.pntLeft.x,u.pntLeft.y));var P,c,g=SuperMapAlgoPlot.PlottingUtil.distance(a.pt,r.pt)*this.scaleValues[6];g>(n*=this.scaleValues[6])?(P=SuperMapAlgoPlot.PlottingUtil.paraLine(p,n/2,!0),c=SuperMapAlgoPlot.PlottingUtil.paraLine(p,n/2,!1)):(P=SuperMapAlgoPlot.PlottingUtil.paraLine(p,g/2,!0),c=SuperMapAlgoPlot.PlottingUtil.paraLine(p,g/2,!1));var S=[];S.push(P[0]),S.push(P[P.length-1]),S.push(c[c.length-1]),S.push(c[0]);var h={surroundLineFlag:!1,fillLimit:!0,strokeColor:"#37CECE",fillColorLimit:!0,fillColor:"#37CECE",fill:!0,fillOpacity:.7,lineColorLimit:!0,color:"#37CECE",surroundLineLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,h);var f=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(S);h={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0};var y=SuperMapAlgoPlot.PlottingUtil.paraLine(o,l,!1);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,h);for(var A=i*this.scaleValues[1],M=this.getDashLinePts(o,A),b=0;b<M.length;b++){var d=M[b];d=SuperMapAlgoPlot.PlottingUtil.clearSamePts(d);var m=SuperMapAlgoPlot.PlottingUtil.paraLine(d,l,!0);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,m,h)}this.addScalePoint(f),this.addScalePoint(p[1]),this.finish()}}},{key:"getDashLinePts",value:function(t,e){var l=[],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(e>o)return l;for(var i=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),n=2*parseInt(o/(1.5*e)),a=0;a<n;a++){var r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,e);if(-1!==r.index){if(0==a%2){for(var s=[],p=0;p<r.index+1;p++)s.push(i[p].clone());s.push(r.pt),l.push(s)}var u=[];u.push(r.pt);for(var P=r.index+1;P<i.length;P++)u.push(i[P]);i=(i=[]).concat(u)}}return i.length>0&&l.push(i),l}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);for(var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=0,a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=SuperMapAlgoPlot.PlottingUtil.distance(o[0],e),s=0,p=1;p<o.length;p++){var u=SuperMapAlgoPlot.PlottingUtil.distance(o[p],e);u<r&&(r=u,s=p)}var P=[];for(p=0;p<o.length;p++)p<=s&&P.push(o[p]);var c=SuperMapAlgoPlot.PlottingUtil.polylineDistance(P);if(0===t)if(o.length<=3){if(0===(n=SuperMapAlgoPlot.PlottingUtil.distance(a.pts,e)))return;var g=.5;e.x-a.pts.x<0?((g=-1*n/i+.5)<0&&(g=0),this.scaleValues[5]=g):((g=n/i+.5)>1&&(g=1),this.scaleValues[5]=g)}else this.scaleValues[5]=c/i;else if(1===t){a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i*this.scaleValues[5],o),n=SuperMapAlgoPlot.PlottingUtil.distance(a.pts,e);var S=this.scaleValues[7]*i;this.scaleValues[6]=n/S}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol1770501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol17704=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 l=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 l.subText="急",l}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,SuperMapAlgoPlot.AlgoSymbol17703),e}();SuperMapAlgoPlot.AlgoSymbol17704=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17703=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 l=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 l.subText="加",l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);this.isEdit||(this.scaleValues=[]);var o=[];if(this.scalePoints=[],t.length<3)o.push(new SuperMapAlgoPlot.Point(t[0].x,t[0].y)),o.push(new SuperMapAlgoPlot.Point(t[1].x,t[1].y));else{var i=SuperMapAlgoPlot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=i.scaleValues;for(var n=0;n<i.scalePoints.length;n++)this.addScalePoint(i.scalePoints[n]);o=i.beizerPoints}if(!(o.length<2)){var a=e/2;if(-1!==SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,a).index){var r,s;if(r=2==t.length?0:t.length-1,this.isEdit)s=this.scaleValues[4*r]*e,isNaN(s)&&(s=Math.abs(this.scaleValues[4*r-1]*e));else{var p=.5*this.getSubSymbolScaleValue();s=p*e,this.scaleValues.push(p)}var u=a-s,P=a+s,c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,u);if(-1!==c.index){var g=c.pt;this.addScalePoint(new SuperMapAlgoPlot.Point(g.x,g.y));var S=[];if(0==c.index)S.push(o[0]);else for(var h=0;h<c.index;h++)S.push(o[h]);S.push(g);var f=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,P);if(-1!==f.index){var y=f.pt,A=[];A.push(y);for(var M=f.index+1;M<o.length;M++)A.push(o[M]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);var b=S[S.length-1],d=A[0],m=180*SuperMapAlgoPlot.PlottingUtil.radian(b,d)/Math.PI,v=SuperMapAlgoPlot.PlottingUtil.distance(b,d),O=new SuperMapAlgoPlot.Point((b.x+d.x)/2,(b.y+d.y)/2),U=this.subText;this.addText(U,O,v,m),this.finish()}}}}}}},{key:"computeBeizer",value:function(t,e){var l,o,i,n=[];if(this.scalePoints=[],this.isEdit){(i=[]).push(new SuperMapAlgoPlot.Point(t[0].x,t[0].y)),i.push(new SuperMapAlgoPlot.Point(t[0].x,t[0].y)),l=this.scaleValues[0],o=this.scaleValues[1];var a=t[0].x+e*l,r=t[0].y+e*o;i.push(new SuperMapAlgoPlot.Point(a,r)),this.addScalePoint(new SuperMapAlgoPlot.Point(a,r));for(var s=1;s<t.length-1;s++)i.push(new SuperMapAlgoPlot.Point(t[s].x,t[s].y)),l=this.scaleValues[4*s-2],o=this.scaleValues[4*s-1],a=t[s].x+e*l,r=t[s].y+e*o,i.push(new SuperMapAlgoPlot.Point(a,r)),this.addScalePoint(new SuperMapAlgoPlot.Point(a,r)),l=this.scaleValues[4*s],o=this.scaleValues[4*s+1],a=t[s].x+e*l,r=t[s].y+e*o,i.push(new SuperMapAlgoPlot.Point(a,r)),this.addScalePoint(new SuperMapAlgoPlot.Point(a,r));var p=t.length-1;i.push(new SuperMapAlgoPlot.Point(t[p].x,t[p].y)),l=this.scaleValues[4*p-2],o=this.scaleValues[4*p-1],a=t[p].x+e*l,r=t[p].y+e*o,i.push(new SuperMapAlgoPlot.Point(a,r)),this.addScalePoint(new SuperMapAlgoPlot.Point(a,r)),i.push(new SuperMapAlgoPlot.Point(t[p].x,t[p].y)),n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(i)}else{if(this.scaleValues=[],i=[],(i=SuperMapAlgoPlot.PlottingUtil.getBeizerCtrlPt(t)).length<3)return n;var u=i[2].x-i[0].x,P=i[2].y-i[0].y;l=u/e,o=P/e,this.scaleValues.push(l),this.scaleValues.push(o),this.addScalePoint(new SuperMapAlgoPlot.Point(i[2].x,i[2].y));for(var c=1;c<t.length-1;c++){l=(u=i[3*c+1].x-i[3*c].x)/e,o=(P=i[3*c+1].y-i[3*c].y)/e,this.scaleValues.push(l),this.scaleValues.push(o),this.addScalePoint(new SuperMapAlgoPlot.Point(i[3*c+1].x,i[3*c+1].y));var g=(i[3*c+2].x-i[3*c].x)/e,S=(i[3*c+2].y-i[3*c].y)/e;this.scaleValues.push(g),this.scaleValues.push(S),this.addScalePoint(new SuperMapAlgoPlot.Point(i[3*c+2].x,i[3*c+2].y))}l=(u=i[3*(t.length-1)+1].x-i[3*(t.length-1)].x)/e,o=(P=i[3*(t.length-1)+1].y-i[3*(t.length-1)].y)/e,this.scaleValues.push(l),this.scaleValues.push(o),this.addScalePoint(new SuperMapAlgoPlot.Point(i[3*(t.length-1)+1].x,i[3*(t.length-1)+1].y)),n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(i)}return n}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),t<0||t>2*l.length-2)return;for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);if(2*(l.length-1)==t||2==l.length){for(var n=this.computeBeizer(l,o),a=0,r=0;r<n.length-1;r++)a+=SuperMapAlgoPlot.PlottingUtil.distance(n[r],n[r+1]);var s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,a/2);if(-1===s.index)return;var p=SuperMapAlgoPlot.PlottingUtil.distance(e,s.pt)/o;p>.45&&(p=.45),2==l.length?this.scaleValues[0]=p:this.scaleValues[2*t]=p}else{var u=-1;u=t%2==0?t/2:(t+1)/2;var P=(e.x-l[u].x)/o,c=(e.y-l[u].y)/o;this.scaleValues[2*t]=P,this.scaleValues[2*t+1]=c}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17703=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17700=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 l=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===l.scaleValues.length&&l.scaleValues.push(.02),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);0===this.scaleValues.length&&this.scaleValues.push(.02),this.isEdit||(this.scaleValues[0]=.2*this.getSubSymbolScaleValue());var l=e*this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.paraLine(o,l,!0),n=SuperMapAlgoPlot.PlottingUtil.paraLine(o,l,!1);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i);for(var a={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0},r=this.getDashLinePts(n,5*l),s=0;s<r.length;s++){var p=r[s];this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,a)}this.finish()}}},{key:"getDashLinePts",value:function(t,e){var l=[],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(e>o)return l;for(var i=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),n=2*parseInt(o/(1.5*e)),a=0;a<n;a++){var r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,e);if(-1!==r.index){if(0==a%2){for(var s=[],p=0;p<r.index+1;p++)s.push(i[p].clone());s.push(r.pt),l.push(s)}var u=[];u.push(r.pt);for(var P=r.index+1;P<i.length;P++)u.push(i[P]);i=(i=[]).concat(u)}}return i.length>0&&l.push(i),l}}]),e}();SuperMapAlgoPlot.AlgoSymbol17700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17501=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var l=e[0].x,o=e[0].x,i=e[0].y,n=e[0].y,a=0;a<e.length;a++)l>e[a].x&&(l=e[a].x),o<e[a].x&&(o=e[a].x),i>e[a].y&&(i=e[a].y),n<e[a].y&&(n=e[a].y);var r=new SuperMapAlgoPlot.Point((o+l)/2,(n+i)/2),s=.33*(o-l),p=.1*(n-i),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,s,s,0),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,s,s,180),c=[];c.push(new SuperMapAlgoPlot.Point(u.x,u.y)),c.push(new SuperMapAlgoPlot.Point(P.x,P.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c);var g=new SuperMapAlgoPlot.Point(r.x-3*s/7,r.y+p),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,p,p,60),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,p,p,120);(c=[]).push(new SuperMapAlgoPlot.Point(S.x,S.y)),c.push(new SuperMapAlgoPlot.Point(g.x,g.y)),c.push(new SuperMapAlgoPlot.Point(h.x,h.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c);var f=new SuperMapAlgoPlot.Point(r.x+3*s/7,r.y+p),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,p,p,60),A=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,p,p,120);(c=[]).push(new SuperMapAlgoPlot.Point(y.x,y.y)),c.push(new SuperMapAlgoPlot.Point(f.x,f.y)),c.push(new SuperMapAlgoPlot.Point(A.x,A.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17500=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var l=e[0].x,o=e[0].x,i=e[0].y,n=e[0].y,a=0;a<e.length;a++)l>e[a].x&&(l=e[a].x),o<e[a].x&&(o=e[a].x),i>e[a].y&&(i=e[a].y),n<e[a].y&&(n=e[a].y);var r={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},s=new SuperMapAlgoPlot.Point((o+l)/2,(n+i)/2),p=o-l,u=n-i,P=.1*p,c=.1*u,g=new SuperMapAlgoPlot.Point(s.x,s.y+c),S=new SuperMapAlgoPlot.Point(s.x-P,s.y-c),h=new SuperMapAlgoPlot.Point(s.x+P,s.y-c);P=.03*p,c=.03*u;var f=new SuperMapAlgoPlot.Point(g.x,g.y+c),y=new SuperMapAlgoPlot.Point(g.x-P,g.y-c),A=new SuperMapAlgoPlot.Point(g.x+P,g.y-c),M=[];M.push(new SuperMapAlgoPlot.Point(f.x,f.y)),M.push(new SuperMapAlgoPlot.Point(y.x,y.y)),M.push(new SuperMapAlgoPlot.Point(A.x,A.y)),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,r);var b=new SuperMapAlgoPlot.Point(S.x,S.y+c),d=new SuperMapAlgoPlot.Point(S.x-P,S.y-c),m=new SuperMapAlgoPlot.Point(S.x+P,S.y-c),v=[];v.push(new SuperMapAlgoPlot.Point(b.x,b.y)),v.push(new SuperMapAlgoPlot.Point(d.x,d.y)),v.push(new SuperMapAlgoPlot.Point(m.x,m.y)),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,v,r);var O=new SuperMapAlgoPlot.Point(h.x,h.y+c),U=new SuperMapAlgoPlot.Point(h.x-P,h.y-c),L=new SuperMapAlgoPlot.Point(h.x+P,h.y-c),w=[];w.push(new SuperMapAlgoPlot.Point(O.x,O.y)),w.push(new SuperMapAlgoPlot.Point(U.x,U.y)),w.push(new SuperMapAlgoPlot.Point(L.x,L.y)),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,w,r),this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17401=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var l=e[0].x,o=e[0].x,i=e[0].y,n=e[0].y,a=[],r=0;r<e.length;r++)l>e[r].x&&(l=e[r].x),o<e[r].x&&(o=e[r].x),i>e[r].y&&(i=e[r].y),n<e[r].y&&(n=e[r].y),a.push(e[r]);for(var s=(o-l)/5,p=.15*s,u=[],P=0;P<360;P+=18){var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(new SuperMapAlgoPlot.Point(0,0),p,p,P);u.push(c)}for(var g=0,S=l;S<o;S+=s)for(var h=i;h<n;h+=s){var f=new SuperMapAlgoPlot.Point(S,h);if(SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(a,f))if(0===g){g++;for(var y=[],A=0;A<u.length;A++){var M=new SuperMapAlgoPlot.Point(f.x+u[A].x,f.y+u[A].y);y.push(M)}y.push(y[0]),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,y,{fillColorLimit:!0,fillColor:"#ffff00",surroundLineFlag:!1,fillLimit:!0,fillOpacity:1,lineTypeLimit:!0});var b=[];b.push(y[10]),b.push(new SuperMapAlgoPlot.Point(y[10].x-.5*p,y[10].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b);var d=[];d.push(y[0]),d.push(new SuperMapAlgoPlot.Point(y[0].x+.5*p,y[10].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d)}else 1===g?(g++,null!=this.subSymbols[0]&&this.computeSubSymbol(this.subSymbols[0],f,2*p,0)):(g=0,null!=this.subSymbols[1]&&this.computeSubSymbol(this.subSymbols[1],f,3*p,0))}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17400=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),o=e[0].x,i=e[0].x,n=e[0].y,a=e[0].y,r=[],s=0;s<e.length;s++)o>e[s].x&&(o=e[s].x),i<e[s].x&&(i=e[s].x),n>e[s].y&&(n=e[s].y),a<e[s].y&&(a=e[s].y),r.push(e[s]);for(var p=(i-o)/5,u=.2*p,P=[],c=0;c<360;c+=18){var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(new SuperMapAlgoPlot.Point(0,0),u,u,c);P.push(g)}for(var S=0,h=o;h<i;h+=p)for(var f=n;f<a;f+=p){var y,A=new SuperMapAlgoPlot.Point(h,f);if(SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(r,A))0===S?(S=0,this.subSymbols.length>0&&(y=.015*l,this.computeSubSymbol(this.subSymbols[0],A,y,0)),S++):(S=0,this.subSymbols.length>0&&(y=.022*l,this.computeSubSymbol(this.subSymbols[1],A,y,0)))}this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol17400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16700=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0]*e,i=this.scaleValues[1]*e,n=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),a=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),r=180*SuperMapAlgoPlot.PlottingUtil.radian(n,a)/Math.PI,s=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,o,o,r+90),p=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,i,i,r+90),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,o,o,r+90),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,i,i,r+90),c=[];c.push(p),c.push(s),c.push(u),c.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,SuperMapAlgoPlot.PlottingUtil.clonePoints(c)),(c=[]).push(p),c.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,SuperMapAlgoPlot.PlottingUtil.clonePoints(c)),(c=[]).push(P),c.push(t[1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,SuperMapAlgoPlot.PlottingUtil.clonePoints(c));var g=new SuperMapAlgoPlot.Point(s.x,s.y);g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g);var S=new SuperMapAlgoPlot.Point(p.x,p.y);S.isScalePoint=!0,S.tag=1,this.scalePoints.push(S),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(this.isEdit=!0,!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.distance(l[0],e)/o;if(n<this.scaleValues[1])return;this.scaleValues[0]=n}else if(1==t){var a=SuperMapAlgoPlot.PlottingUtil.distance(l[0],e)/o;if(this.scaleValues[0]<a)return;this.scaleValues[1]=a}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol16700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16203=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l),this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue());for(var o=this.scaleValues[0]*e,i=this.scaleValues[1]*e,n=.01*e,a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),r=0,s={surroundLineFlag:!1,fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0},p=n,u=0;p<=a;p+=i,u++){r=p+n;var P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,r);if(-1===P.index)return;for(var c=SuperMapAlgoPlot.PlottingUtil.radian(P.pt,l[P.index+1])*SuperMapAlgoPlot.PlottingUtil.RTOD,g=this.getSubSymbolPts(o),S=[],h=0,f=g.length;h<f;h++)S.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P.pt,g[h],c));if(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,s),0===u){var y=new SuperMapAlgoPlot.Point((S[0].x+S[1].x)/2,(S[0].y+S[1].y)/2);this.addScalePoint(y,0)}else 1===u&&this.addScalePoint(P.pt,1);this.finish()}}}},{key:"getSubSymbolPts",value:function(t){var e=.5*t,l=[];return l.push(new SuperMapAlgoPlot.Point(.5*e,2*e)),l.push(new SuperMapAlgoPlot.Point(.5*-e,2*e)),l.push(new SuperMapAlgoPlot.Point(.5*-e,-2*e)),l.push(new SuperMapAlgoPlot.Point(.5*e,-2*e)),l}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),i=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);i=SuperMapAlgoPlot.PlottingUtil.clearSamePts(i);var n=.01*o;if(0===t){var a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,n);if(-1===a.index)return;var r=SuperMapAlgoPlot.PlottingUtil.distance(e,a.pt);this.scaleValues[0]=r/o}else if(1===t){var s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,n);if(-1===s.index)return;var p=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,i);if(-1===p.index)return;for(var u=0,P=s.index+1;P<p.index;P++)u+=SuperMapAlgoPlot.PlottingUtil.distance(i[P],i[P+1]);u+=SuperMapAlgoPlot.PlottingUtil.distance(i[p.index],p.pt),u-=n,this.scaleValues[1]=u/o,u>o-o*this.scaleValues[0]-n&&(this.scaleValues[1]=(o-o*this.scaleValues[0]-n)/o)}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol16203=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16202=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o,i,n=this.scaleValues[0]*e;o=SuperMapAlgoPlot.PlottingUtil.paraLine(t,n,!0),i=SuperMapAlgoPlot.PlottingUtil.paraLine(t,n,!1);var a=new SuperMapAlgoPlot.Point(o[0].x,o[0].y);a.isScalePoint=!0,a.tag=0,this.scalePoints.push(a),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i);var r=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),s=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),p=180*SuperMapAlgoPlot.PlottingUtil.radian(r,s)/Math.PI,u=new SuperMapAlgoPlot.Point(.3*e,0),P=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(r,u,p),c=new SuperMapAlgoPlot.Point(0,.4*n),g=new SuperMapAlgoPlot.Point(0,.2*n),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,c,p),h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,g,p),f=[];f.push(S),f.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,f);var y=new SuperMapAlgoPlot.Point(0,.2*n),A=new SuperMapAlgoPlot.Point(0,-.4*n),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,y,p),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,A,p);(f=[]).push(M),f.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var d=new SuperMapAlgoPlot.Point(.2*n,-.2*n),m=new SuperMapAlgoPlot.Point(-.2*n,-.6*n),v=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,d,p),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,m,p);(f=[]).push(v),f.push(O),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var U=new SuperMapAlgoPlot.Point(-.2*n,-.2*n),L=new SuperMapAlgoPlot.Point(.2*n,-.6*n),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,U,p),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,L,p);(f=[]).push(w),f.push(_),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var V=new SuperMapAlgoPlot.Point(.7*e,0),T=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(r,V,p),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(T,c,p),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(T,g,p);(f=[]).push(E),f.push(x),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,f);var C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(T,y,p),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(T,A,p);(f=[]).push(C),f.push(j),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(T,d,p),I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(T,m,p);(f=[]).push(Y),f.push(I),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var R=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(T,U,p),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(T,L,p);(f=[]).push(R),f.push(B),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.distance(l[0],e)/o;this.scaleValues[0]=n}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol16202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16201=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(.01)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues.push(.02),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(.01)):3===this.scaleValues.length&&this.scaleValues.push(.5*this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=this.scaleValues[0]*e,i=SuperMapAlgoPlot.PlottingUtil.paraLine(l,.5*o,!0),n=SuperMapAlgoPlot.PlottingUtil.paraLine(l,.5*o,!1);i=SuperMapAlgoPlot.PlottingUtil.clearSamePts(i),n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);for(var a=e*this.scaleValues[1],r=e*this.scaleValues[3],s=0,p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),u=r,P=0;u<=p-r;u+=a,P++){s=u+r;var c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,s);if(-1!==c.index){var g=new SuperMapAlgoPlot.Point(c.pt.x,c.pt.y+.5*o),S=[];S.push(c.pt),S.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,S),0===P?this.addScalePoint(g):1===P&&this.addScalePoint(c.pt)}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);var n,a=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(a=SuperMapAlgoPlot.PlottingUtil.clearSamePts(a),0==t){n=o*this.scaleValues[3];var r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(a,n);if(-1===r.index)return;var s=2*SuperMapAlgoPlot.PlottingUtil.distance(e,r.pt);this.scaleValues[0]=s/o}else if(1===t){n=o*this.scaleValues[3];var p=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(a,n);if(-1===p.index)return;var u=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,a);if(-1==u.index)return;for(var P=SuperMapAlgoPlot.PlottingUtil.distance(p.pt,a[p.index+1]),c=p.index+1;c<u.index;c++)P+=SuperMapAlgoPlot.PlottingUtil.distance(a[c],a[c+1]);P+=SuperMapAlgoPlot.PlottingUtil.distance(a[u.index],u.pt),this.scaleValues[1]=P/o,this.scaleValues[1]>.9&&(this.scaleValues[1]=.9)}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol16201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16200=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=this.getSubSymbolScaleValue();this.isEdit||(this.scaleValues[0]=.5*o);var i=this.scaleValues[0]*e,n=SuperMapAlgoPlot.PlottingUtil.paraLine(l,.5*i,!0),a=SuperMapAlgoPlot.PlottingUtil.paraLine(l,.5*i,!1);n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n),a=SuperMapAlgoPlot.PlottingUtil.clearSamePts(a),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a);for(var r=e*this.scaleValues[1],s=.5*i,p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),u=s,P=0;u<p;u+=r,P++){var c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,u);if(-1!==c.index){var g=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,l[c.index+1],c.pt),S=[];S.push(g.pntLeft),S.push(g.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S),0===P?this.addScalePoint(g.pntRight,0):1===P&&this.addScalePoint(c.pt,1)}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);var n,a=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(a=SuperMapAlgoPlot.PlottingUtil.clearSamePts(a),0==t){n=.5*(o*this.scaleValues[0]);var r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(a,n);if(-1===r.index)return;var s=SuperMapAlgoPlot.PlottingUtil.distance(e,r.pt);this.scaleValues[0]=s/o}else if(1===t){n=.5*(o*this.scaleValues[0]);var p=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(a,n);if(-1===p.index)return;var u=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,a);if(-1==u.index)return;for(var P=SuperMapAlgoPlot.PlottingUtil.distance(p.pt,a[p.index+1]),c=p.index+1;c<u.index;c++)P+=SuperMapAlgoPlot.PlottingUtil.distance(a[c],a[c+1]);P+=SuperMapAlgoPlot.PlottingUtil.distance(a[u.index],u.pt),this.scaleValues[1]=P/o}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol16200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15900=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(1),l.scaleValues.push(.05)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);for(var l=0,o=0;o<t.length-1;o++)l+=SuperMapAlgoPlot.PlottingUtil.distance(t[o],t[o+1]);var i=l*this.scaleValues[0],n=l*this.scaleValues[2],a=!1;a=0===this.scaleValues[0];for(var r=0,s=0;s<e.length-1;s++)r+=SuperMapAlgoPlot.PlottingUtil.distance(e[s],e[s+1]);if(0!==r){for(var p=0;p<=r;p+=n){var u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,p);if(-1!==u.index){var P=[],c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);a?P.push(c.pntRight):P.push(c.pntLeft);var g=p+n,S=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,g);if(-1!==S.index){var h=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[S.index+1],S.pt);a?P.push(h.pntLeft):P.push(h.pntRight),Math.abs(p)<1e-6&&(this.addScalePoint(P[0],0),this.addScalePoint(S.pt,1)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P)}}}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t){var n=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(1,o[1],o[0]),a=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,n.pntRight,n.pntLeft),r=SuperMapAlgoPlot.PlottingUtil.distance(a.projectPoint,l[0]);this.scaleValues[0]=r/i;var s=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[0],o[1],e);this.scaleValues[1]=s?1:0}else{for(var p,u=-1,P=0,c=o.length-1;P<c;P++){var g=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,o[P],o[P+1]);if(g.isOnline){p=g.projectPoint,u=P;break}}if(-1===u)return;for(var S=[],h=0,f=u;h<=f;h++)S.push(o[h]);S.push(p);var y=SuperMapAlgoPlot.PlottingUtil.polylineDistance(S);this.scaleValues[2]=y/i}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15806=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.06),l.scaleValues.push(1),l.scaleValues.push(.1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(t.length>=this.minEditPts){this.scalePoints=[];var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=l*o,n=.6*i,a=this.scaleValues[2]*o,r=0===this.scaleValues[1],s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0===s)return;for(var p=[],u=0;u<=s;u+=a){var P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,u);if(!(P.index<0)){var c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[P.index+1],P.pt);if(r?p.push(c.pntRight):p.push(c.pntLeft),!((P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,u+.65*a)).index<0||(c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,e[P.index+1],P.pt),r?p.push(c.pntRight):p.push(c.pntLeft),(P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,u+.8*a)).index<0||(p.push(P.pt),(P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,u+.5*a)).index<0||(c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[P.index+1],P.pt),r?p.push(c.pntLeft):p.push(c.pntRight),P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,u+.2*a),p.push(P.pt),(P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,u+.35*a)).index<0||(c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,e[P.index+1],P.pt),r?p.push(c.pntRight):p.push(c.pntLeft),(P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,u+a)).index<0||(c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[P.index+1],P.pt),r?p.push(c.pntRight):p.push(c.pntLeft),!(Math.abs(u)<=1e-6)))))))){this.scalePoints=[];var g=new SuperMapAlgoPlot.Point(p[0].x,p[0].y);g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g),(g=new SuperMapAlgoPlot.Point(P.pt.x,P.pt.y)).isScalePoint=!0,g.tag=1,this.scalePoints.push(g)}}}var S=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(p);SuperMapAlgoPlot.PlottingUtil.clearSamePts(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o,i,n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t){i=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(1,n[1],n[0]),o=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(new SuperMapAlgoPlot.Point(e.x,e.y),i.pntRight,i.pntLeft);var r=SuperMapAlgoPlot.PlottingUtil.distance(o.projectPoint,l[0])/a;this.scaleValues[0]=r;var s=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(n[0],n[1],new SuperMapAlgoPlot.Point(e.x,e.y));this.scaleValues[1]=s?1:0}else{for(var p,u=-1,P=0;P<n.length-1;P++)if((o=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(new SuperMapAlgoPlot.Point(e.x,e.y),n[P],n[P+1])).isOnline){p=o.projectPoint,u=P;break}if(-1===u)return void(this.scaleValues[2]=.05);for(var c=[],g=0;g<=u;g++)c.push(n[g]);c.push(p);var S=SuperMapAlgoPlot.PlottingUtil.polylineDistance(c);this.scaleValues[2]=S/a}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15806=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15805=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s=[],p=0;p<=r;p+=n){var u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(a?s.push(P.pntRight):s.push(P.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var c=new SuperMapAlgoPlot.Point(s[0].x,s[0].y);c.isScalePoint=!0,c.tag=0,this.scalePoints.push(c)}else Math.abs(2*n-p)<=1e-6&&((c=new SuperMapAlgoPlot.Point(u.pt.x,u.pt.y)).isScalePoint=!0,c.tag=1,this.scalePoints.push(c));a=!a}}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s);for(var g=s.length,S=0,h=45*Math.PI/180,f=45*Math.PI/180,y=0;y<g-1;y+=2){var A=[],M=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.3,s[y],s[y+1]);A.push(M);var b=new SuperMapAlgoPlot.Point(s[y].x,s[y].y),d=new SuperMapAlgoPlot.Point(s[y+1].x,s[y+1].y);S=SuperMapAlgoPlot.PlottingUtil.distance(b,d);var m=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.6,s[y],s[y+1]),v=new SuperMapAlgoPlot.Point(m.x,m.y);v=SuperMapAlgoPlot.PlottingUtil.rotateAngle(M,h,m),A.push(v);var O=.15*S;m=SuperMapAlgoPlot.PlottingUtil.linePnt(A[1],A[0],O);var U=new SuperMapAlgoPlot.Point(m.x,m.y);SuperMapAlgoPlot.PlottingUtil.rotateAngle(v,f,U),A.push(U);var L=new SuperMapAlgoPlot.Point(A[1].x-A[0].x+A[2].x,A[1].y-A[0].y+A[2].y);A.push(L),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A)}this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15805=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15804=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.029615),l.scaleValues.push(1),l.scaleValues.push(.12)),l}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,SuperMapAlgoPlot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s=[],p=0;p<=r;p+=n){var u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(a?s.push(P.pntRight):s.push(P.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var c=new SuperMapAlgoPlot.Point(s[0].x,s[0].y);c.isScalePoint=!0,c.tag=0,this.scalePoints.push(c)}else Math.abs(2*n-p)<=1e-6&&((c=new SuperMapAlgoPlot.Point(u.pt.x,u.pt.y)).isScalePoint=!0,c.tag=1,this.scalePoints.push(c));a=!a}}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s);for(var g=s.length,S=0,h=0;h<g-1;++h){var f=new SuperMapAlgoPlot.Point(s[h].x,s[h].y),y=new SuperMapAlgoPlot.Point(s[h+1].x,s[h+1].y);S=.3*SuperMapAlgoPlot.PlottingUtil.distance(f,y);var A=[],M=new SuperMapAlgoPlot.Point(.5*(f.x+y.x),.5*(f.y+y.y)),b=SuperMapAlgoPlot.PlottingUtil.dirAngle(f,y)*SuperMapAlgoPlot.PlottingUtil.RTOD,d=SuperMapAlgoPlot.PlottingUtil.circlePoint(M,S,S,b+90),m=1.5*S,v=SuperMapAlgoPlot.PlottingUtil.circlePoint(d,m,m,b+260),O=SuperMapAlgoPlot.PlottingUtil.circlePoint(d,m,m,b+280);A.push(v),A.push(d),A.push(O),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A)}this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15804=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15803=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s=[],p=0;p<=r;p+=n){var u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(a?s.push(P.pntRight):s.push(P.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var c=new SuperMapAlgoPlot.Point(s[0].x,s[0].y);c.isScalePoint=!0,c.tag=0,this.scalePoints.push(c)}else Math.abs(2*n-p)<=1e-6&&((c=new SuperMapAlgoPlot.Point(u.pt.x,u.pt.y)).isScalePoint=!0,c.tag=1,this.scalePoints.push(c));a=!a}}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s);for(var g=s.length,S=0,h=0;h<g-1;++h){var f=new SuperMapAlgoPlot.Point(s[h].x,s[h].y),y=new SuperMapAlgoPlot.Point(s[h+1].x,s[h+1].y);S=.3*SuperMapAlgoPlot.PlottingUtil.distance(f,y);var A=[],M=[];if(h!==g-2){var b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*S,s[h],s[h+1]);A.push(b.pntLeft),A.push(b.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A)}if(0!==h){var d=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*S,s[h+1],s[h]);M.push(d.pntLeft),M.push(d.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M)}}this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15803=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15802=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s,p=[],u=0;u<=r;u+=n){var P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,u);if(!(P.index<0)){var c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[P.index+1],P.pt);if(a?p.push(c.pntRight):p.push(c.pntLeft),Math.abs(u)<=1e-6){this.scalePoints=[];var g=new SuperMapAlgoPlot.Point(p[0].x,p[0].y);g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g)}else Math.abs(2*n-u)<=1e-6&&((g=new SuperMapAlgoPlot.Point(P.pt.x,P.pt.y)).isScalePoint=!0,g.tag=1,this.scalePoints.push(g));a=!a}}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p);for(var S=p.length,h=0,f=0;f<S-1;++f){var y=new SuperMapAlgoPlot.Point(p[f].x,p[f].y),A=new SuperMapAlgoPlot.Point(p[f+1].x,p[f+1].y);h=.3*SuperMapAlgoPlot.PlottingUtil.distance(y,A);var M=[],b=[],d=[],m=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.35,p[f],p[f+1]);s=new SuperMapAlgoPlot.Point((p[f].x+p[f+1].x)/2,(p[f].y+p[f+1].y)/2);var v=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*h,p[f],s);b.push(v.pntLeft,v.pntRight);var O=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*h,p[f],m);M.push(O.pntLeft,O.pntRight),d.push(new SuperMapAlgoPlot.Point(2*s.x-O.pntLeft.x,2*s.y-O.pntLeft.y)),d.push(new SuperMapAlgoPlot.Point(2*s.x-O.pntRight.x,2*s.y-O.pntRight.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d)}this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15802=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s=new SuperMapAlgoPlot.Point(0,0),p=[],u=0;u<=r;u+=n){var P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,u);if(!(P.index<0)){var c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[P.index+1],P.pt);if(a?p.push(c.pntRight):p.push(c.pntLeft),Math.abs(u)<=1e-6){this.scalePoints=[];var g=new SuperMapAlgoPlot.Point(p[0].x,p[0].y);g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g)}else Math.abs(2*n-u)<=1e-6&&((g=new SuperMapAlgoPlot.Point(P.pt.x,P.pt.y)).isScalePoint=!0,g.tag=1,this.scalePoints.push(g));a=!a}}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p);for(var S=p.length,h=0,f=0;f<S-1;++f){var y=new SuperMapAlgoPlot.Point(p[f].x,p[f].y),A=new SuperMapAlgoPlot.Point(p[f+1].x,p[f+1].y);h=.3*SuperMapAlgoPlot.PlottingUtil.distance(y,A);var M=[],b=[],d=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.35,p[f],p[f+1]);s=new SuperMapAlgoPlot.Point((p[f].x+p[f+1].x)/2,(p[f].y+p[f+1].y)/2);var m=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*h,p[f],d);M.push(m.pntLeft),M.push(m.pntRight),b.push(new SuperMapAlgoPlot.Point(2*s.x-m.pntLeft.x,2*s.y-m.pntLeft.y)),b.push(new SuperMapAlgoPlot.Point(2*s.x-m.pntRight.x,2*s.y-m.pntRight.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b)}this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15800=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.04),l.scaleValues.push(1),l.scaleValues.push(.12)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s=[],p=0;p<=r;p+=n){var u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(a?s.push(P.pntRight):s.push(P.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var c=new SuperMapAlgoPlot.Point(s[0].x,s[0].y);c.isScalePoint=!0,c.tag=0,this.scalePoints.push(c)}else Math.abs(2*n-p)<=1e-6&&((c=new SuperMapAlgoPlot.Point(u.pt.x,u.pt.y)).isScalePoint=!0,c.tag=1,this.scalePoints.push(c));a=!a}}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s);for(var g=s.length,S=0,h=0;h<g-1;++h){var f=new SuperMapAlgoPlot.Point(s[h].x,s[h].y),y=new SuperMapAlgoPlot.Point(s[h+1].x,s[h+1].y);S=.3*SuperMapAlgoPlot.PlottingUtil.distance(f,y);var A=[],M=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.5,s[h],s[h+1]),b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*S,s[h],M);A.push(b.pntLeft),A.push(b.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A)}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t){var n=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(1,o[1],o[0]),a=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,n.pntRight,n.pntLeft),r=SuperMapAlgoPlot.PlottingUtil.distance(a.projectPoint,l[0]);this.scaleValues[0]=r/i;var s=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[0],o[1],e);this.scaleValues[1]=s?1:0}else{for(var p,u=-1,P=0,c=o.length-1;P<c;P++){var g=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,o[P],o[P+1]);if(g.isOnline){p=g.projectPoint,u=P;break}}if(-1===u)return void(this.scaleValues[2]=.05);for(var S=[],h=0,f=u;h<=f;h++)S.push(o[h]);S.push(p);var y=SuperMapAlgoPlot.PlottingUtil.polylineDistance(S)/i;if(y>=1)return;this.scaleValues[2]=y}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15202=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 l=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===l.scaleValues.length&&(l.scaleValues.push(parseFloat(.1732)),l.scaleValues.push(.1),l.scaleValues.push(1)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var e=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),l=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),o=SuperMapAlgoPlot.PlottingUtil.distance(e,l),i=this.scaleValues[0]*o,n=this.scaleValues[1]*o,a=this.scaleValues[2],r=null;if(1===a){var s=SuperMapAlgoPlot.PlottingUtil.linePnt(l,e,o+i);r=new SuperMapAlgoPlot.Point(s.x,s.y)}else s=SuperMapAlgoPlot.PlottingUtil.linePnt(l,e,o-i),r=new SuperMapAlgoPlot.Point(s.x,s.y);var p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*n,t[0],r),u=[];u.push(p.pntRight),u.push(t[0]),u.push(p.pntLeft),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u);var P=[],c=new SuperMapAlgoPlot.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(1===a){var g=new SuperMapAlgoPlot.Point(2*c.x-p.pntLeft.x,2*c.y-p.pntLeft.y);P.push(g),P.push(t[1]);var S=new SuperMapAlgoPlot.Point(2*c.x-p.pntRight.x,2*c.y-p.pntRight.y);P.push(S)}else g=new SuperMapAlgoPlot.Point(2*c.x-p.pntRight.x,2*c.y-p.pntRight.y),P.push(g),P.push(t[1]),S=new SuperMapAlgoPlot.Point(2*c.x-p.pntLeft.x,2*c.y-p.pntLeft.y),P.push(S);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15201=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e),this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(.185)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);for(var l=0,o=0,i=e.length-1;o<i;o++)l+=SuperMapAlgoPlot.PlottingUtil.distance(e[o],e[o+1]);for(var n=0,a=0,r=t.length-1;a<r;a++)n+=SuperMapAlgoPlot.PlottingUtil.distance(t[a],t[a+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<l;c+=u){var g=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(c,e);if(-1===g.index)return void this.finish();var S=c+P,h=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(S,e);if(-1===h.index)return void this.finish();var f=[],y=[];f.push(g.pts);var A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,e[g.index],g.pts);0===p?f.push(new SuperMapAlgoPlot.Point(A.pntLeft.x,A.pntLeft.y)):f.push(new SuperMapAlgoPlot.Point(A.pntRight.x,A.pntRight.y)),y.push(h.pts);var M=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,e[h.index],h.pts);if(0===p?y.push(new SuperMapAlgoPlot.Point(M.pntLeft.x,M.pntLeft.y)):y.push(new SuperMapAlgoPlot.Point(M.pntRight.x,M.pntRight.y)),u===c){this.scalePoints=[];var b=new SuperMapAlgoPlot.Point(f[1].x,f[1].y);b.isScalePoint=!0,b.tag=0,this.scalePoints.push(b),(b=new SuperMapAlgoPlot.Point(f[0].x,f[0].y)).isScalePoint=!0,b.tag=1,this.scalePoints.push(b)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;for(var o=0,i=0,n=l.length-1;i<n;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);var a=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),r=new SuperMapAlgoPlot.Point(e.x,e.y);if(0===t){var s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(a,o*this.scaleValues[2]);if(-1===s.index)return;var p=SuperMapAlgoPlot.PlottingUtil.distance(s.pt,r)/o,u=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(a[0],a[1],e);this.scaleValues[1]=u?1:0,this.scaleValues[0]=p}else if(1===t){for(var P=0,c=-1,g=[],S=0,h=a.length-1;S<h;S++){var f=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,a[S],a[S+1]);if(f.isOnline){var y=SuperMapAlgoPlot.PlottingUtil.distance(f.projectPoint,this.controlPoints[1]);0==P?(P=y,c=S,g=e):y<P&&(P=y,c=S,g=e)}}if(-1==c)return;for(var A=0,M=0,b=c-1;M<b;M++)A+=SuperMapAlgoPlot.PlottingUtil.distance(a[M],a[M+1]);var d=(A+=SuperMapAlgoPlot.PlottingUtil.distance(g,a[c]))/o;d>.7&&(d=.7),this.scaleValues[2]=d}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol13700=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e;if(2===t.length)e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t);else if(3===t.length){var l=new SuperMapAlgoPlot.Point(t[0].x,t[0].y),o=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),i=new SuperMapAlgoPlot.Point(t[2].x,t[2].y),n=SuperMapAlgoPlot.PlottingUtil.distance(o,i);if(0>=n)return;this.scaleValues=[];var a=SuperMapAlgoPlot.PlottingUtil.distance(l,o)/n;this.scaleValues.push(a);var r=180*SuperMapAlgoPlot.PlottingUtil.radian(l,o)/Math.PI;r>90?r-=90:r=270+r,this.scaleValues.push(r*(Math.PI/180));var s=180*SuperMapAlgoPlot.PlottingUtil.radian(l,i)/Math.PI;s>90?s-=90:s=270+s,this.scaleValues.push(s*(Math.PI/180)),e=this.scaleValues[0]*n;var p=this.scaleValues[1]*(180/Math.PI)+90,u=this.scaleValues[2]*(180/Math.PI)+90;p<u&&(p+=360);for(var P,c=[],g=p;g>=u;g-=4)P=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,g),c.push(P);g!=u&&(P=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,u),c.push(P)),this.controlPoints[2]=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c)}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol13700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol12502=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.03)),l}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,SuperMapAlgoPlot.AlgoSymbol12500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.5),this.scaleValues.push(.03));for(var e=0,l=0;l<t.length-1;l++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0];this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());var i=this.scaleValues[1]*e,n=o*e,a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,n);if(-1!==a.index){for(var r,s=a.pt,p=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[s,new SuperMapAlgoPlot.Point(s.x+i,s.y)]),u=0;u<t.length-1;u++){var P,c=t[u];r=t[u+1];var g=SuperMapAlgoPlot.PlottingUtil.distance(s,c),S=SuperMapAlgoPlot.PlottingUtil.distance(s,r);if(!(g<i&&S<i))if(g>i&&S<i||g<i&&S>i){var h;h=g>i?c:r,(P=this.getLineAddCircleIntersectPts(c,r,p)).length>0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[P[0],h])}else{var f=SuperMapAlgoPlot.PlottingUtil.projectPoint(s,c,r);if(SuperMapAlgoPlot.PlottingUtil.distance(s,f)>=i)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[c,r]);else if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(f,c,r)){if((P=this.getLineAddCircleIntersectPts(c,r,p)).length>0){P.unshift(c),P.push(r);for(var y=0;y<P.length-1;y++)this.isLineInCircle(P[y],P[y+1],s,i)||this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[P[y],P[y+1]])}}else this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[c,r])}}var A=0;P&&(A=SuperMapAlgoPlot.PlottingUtil.radian(s,P[P.length-1])*SuperMapAlgoPlot.PlottingUtil.RTOD);var M=[];r=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,-i,-i,A),M.push(r,s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M);var b=SuperMapAlgoPlot.PlottingUtil.radian(r,s)*SuperMapAlgoPlot.PlottingUtil.RTOD,d=[],m=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,.8*i,.8*i,b+170),v=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,.8*i,.8*i,b-170);d.push(m),d.push(v),d.push(s);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,d,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[s,new SuperMapAlgoPlot.Point(s.x+i,s.y)]),this.addScalePoint(s,0),this.addScalePoint(new SuperMapAlgoPlot.Point(s.x+i,s.y),1),this.finish()}}}},{key:"isLineInCircle",value:function(t,e,l,o){var i=new SuperMapAlgoPlot.Point((t.x+e.x)/2,(t.y+e.y)/2);return o>SuperMapAlgoPlot.PlottingUtil.distance(i,l)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,l){var o=l.slice();o[0].x===o[o.length-1].x&&o[0].y===o[o.length-1].y||o.push(o[0]);for(var i,n=[],a=0;a<o.length-1;a++){var r=o[a],s=o[a+1],p=SuperMapAlgoPlot.PlottingUtil.intersectLines(t,e,r,s);p.isIntersectLines&&SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,t,e)&&SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,r,s)&&n.push(p.intersectPoint)}for(var u=0;u<n.length-1;u++)SuperMapAlgoPlot.PlottingUtil.isSamePt(n[u],n[u+1])&&(n.splice(u,1),u--);if(t.x>e.x)for(var P=0;P<n.length&&P!=n.length-1;P++)n[P].x<n[P+1].x&&(i=n[P],n[P]=n[P+1],n[P+1]=i);else if(t.x<e.x)for(var c=0;c<n.length&&c!=n.length-1;c++)n[c].x>n[c+1].x&&(i=n[c],n[c]=n[c+1],n[c+1]=i);else if(t.y>e.y)for(var g=0;g<n.length&&g!=n.length-1;g++)n[g].y<n[g+1].y&&(i=n[g],n[g]=n[g+1],n[g+1]=i);else if(t.y<e.y)for(var S=0;S<n.length&&S!=n.length-1;S++)n[S].y>n[S+1].y&&(i=n[S],n[S]=n[S+1],n[S+1]=i);return n}}]),e}();SuperMapAlgoPlot.AlgoSymbol12502=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol12501=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.03),l.scaleValues.push(.5),l.scaleValues.push(.03)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(!this.isEdit){var e=this.getSubSymbolScaleValue();this.scaleValues[0]=e,this.scaleValues[1]=.5*e,this.scaleValues[3]=.5*e}var l=this.scaleValues[0],o=this.scaleValues[1],i=this.scaleValues[2],n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var a=this.GetCurvePts(t,l,o);if(0!==a.pt.length){var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n)*i,s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,r);if(-1!==s.index){for(var p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[3],u=[],P=0;P<360;P+=12)u.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(s.pt,p,p,P));u.push(u[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u);for(var c=[],g=[],S=0;S<a.pt.length;S++)SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(u,a.pt[S])?g.length>1&&(c.push(g),g=[]):g.push(a.pt[S]);g.length>1&&c.push(g);for(var h=0;h<c.length;h++)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c[h]);var f=new SuperMapAlgoPlot.Point(a.pt[0].x,a.pt[0].y);f.isScalePoint=!0,f.tag=0,this.scalePoints.push(f);var y=new SuperMapAlgoPlot.Point(a.scalePt.x,a.scalePt.y);y.isScalePoint=!0,y.tag=1,this.scalePoints.push(y);var A=new SuperMapAlgoPlot.Point(s.pt.x,s.pt.y);A.isScalePoint=!0,A.tag=2,this.scalePoints.push(A);var M=SuperMapAlgoPlot.PlottingUtil.circlePoint(new SuperMapAlgoPlot.Point(s.pt.x,s.pt.y),p,p,0),b=new SuperMapAlgoPlot.Point(M.x,M.y);b.isScalePoint=!0,b.tag=3,this.scalePoints.push(b),this.finish()}else this.finish()}else this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(null!=e&&!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;if(4>this.scaleValues.length)return;var o,i,n,a,r,s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),p=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),u=new SuperMapAlgoPlot.Point(e.x,e.y);if(0===t){var P=new SuperMapAlgoPlot.Point(l[0].x,l[0].y),c=SuperMapAlgoPlot.PlottingUtil.distance(P,u);i=2*c/s,this.scaleValues[1]=i}else if(1===t)P=new SuperMapAlgoPlot.Point(l[0].x,l[0].y),o=(c=SuperMapAlgoPlot.PlottingUtil.distance(P,u))/s,this.scaleValues[0]=o;else if(2==t){var g=-1,S=0;r=new SuperMapAlgoPlot.Point(0,0),o=this.scaleValues[0],i=this.scaleValues[1];for(var h=0;h<p.length-1;h++){var f=p[h],y=p[h+1],A=SuperMapAlgoPlot.PlottingUtil.projectPoint(u,f,y);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(A,f,y)){var M=SuperMapAlgoPlot.PlottingUtil.distance(u,A);-1==g?(g=h,r=A,S=M):S>M&&(g=h,r=A,S=M)}}if(-1==g||g>p.length-1)return;a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(p);for(var b=[],d=0;d<g;d++)b.push(p[d]);b.push(r);var m=SuperMapAlgoPlot.PlottingUtil.polylineDistance(b);if(m<0||m>a)return;n=m/a,this.scaleValues[2]=n}else if(3===t){o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2];var v=(a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(p))*n;if(-1===(r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(p,v)).index)return;var O=SuperMapAlgoPlot.PlottingUtil.distance(r.pt,e)/s;O>.4&&(O=.4),this.scaleValues[3]=O}}}},{key:"GetCurvePts",value:function(t,e,l){for(var o,i=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i),a=n*e,r=n*l/2,s=[],p=[],u=i[0],P=!1,c=i[0],g=1;g<i.length;g++){var S=i[g],h=SuperMapAlgoPlot.PlottingUtil.distance(u,S);if(!(h<a&&g!==i.length-1)){for(var f,y=parseInt(h/a),A=0;A<y;A++){f=SuperMapAlgoPlot.PlottingUtil.linePnt(u,S,a),P||(o=f,P=!0);var M=this.GetCosPts2D(u,f,a,r);s=p.length>1&&0===A?this.ClearCurvePts2D(c,u,S,p,M,s):s.concat(M),p=(p=[]).concat(M),c=u,u=f}g===i.length-1&&(f=i[i.length-1],M=this.GetCosPts2D(u,f,a,r),s=p.length>1&&M.length>1?this.ClearCurvePts2D(c,u,S,p,M,s):s.concat(M))}}return{pt:s,scalePt:o}}},{key:"GetCosPts2D",value:function(t,e,l,o){for(var i=[],n=SuperMapAlgoPlot.PlottingUtil.distance(t,e),a=l/30,r=0;r<n;r+=a){var s=r*(2*Math.PI/l),p=o*Math.cos(s),u=new SuperMapAlgoPlot.Point(r,p),P=180*SuperMapAlgoPlot.PlottingUtil.radian(t,e)/Math.PI,c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,u,P);i.push(c)}return i}},{key:"ClearCurvePts2D",value:function(t,e,l,o,i,n){for(var a=180*SuperMapAlgoPlot.PlottingUtil.radian(e,l)/Math.PI,r=180*SuperMapAlgoPlot.PlottingUtil.radian(e,t)/Math.PI-a;r<=0;)r+=360;var s=r/2,p=l;p=SuperMapAlgoPlot.PlottingUtil.rotateAngle(e,s*Math.PI/180,p);for(var u=SuperMapAlgoPlot.PlottingUtil.linePnt(e,p,1),P=0,c=0;c<o.length;c++)if(SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(e,u,o[c])){P=c;break}if(0!=P)for(var g=0;g<o.length-P;g++)n.slice(g,n.length-1);for(var S=0;S<i.length;S++)SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(e,u,i[S])&&n.push(i[S]);return n}}]),e}();SuperMapAlgoPlot.AlgoSymbol12501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol12500=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.03)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.5),this.scaleValues.push(.03));var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0];this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());var o=this.scaleValues[1]*e,i=l*e,n=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,i);if(-1!==n.index){for(var a=n.pt,r=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[a,new SuperMapAlgoPlot.Point(a.x+o,a.y)]),s=0;s<t.length-1;s++){var p,u=t[s],P=t[s+1],c=SuperMapAlgoPlot.PlottingUtil.distance(a,u),g=SuperMapAlgoPlot.PlottingUtil.distance(a,P);if(!(c<o&&g<o))if(c>o&&g<o||c<o&&g>o){var S;S=c>o?u:P,(p=this.getLineAddCircleIntersectPts(u,P,r)).length>0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[p[0],S])}else{var h=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,u,P);if(SuperMapAlgoPlot.PlottingUtil.distance(a,h)>=o)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u,P]);else if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(h,u,P)){if((p=this.getLineAddCircleIntersectPts(u,P,r)).length>0){p.unshift(u),p.push(P);for(var f=0;f<p.length-1;f++)this.isLineInCircle(p[f],p[f+1],a,o)||this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[p[f],p[f+1]])}}else this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u,P])}}this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[a,new SuperMapAlgoPlot.Point(a.x+o,a.y)]),this.scalePoints=[];var y=a;y.isScalePoint=!0,y.tag=0,this.scalePoints.push(y);var A=new SuperMapAlgoPlot.Point(a.x+o,a.y);A.isScalePoint=!0,A.tag=1,this.scalePoints.push(A),this.finish()}}}},{key:"isLineInCircle",value:function(t,e,l,o){var i=new SuperMapAlgoPlot.Point((t.x+e.x)/2,(t.y+e.y)/2);return o>SuperMapAlgoPlot.PlottingUtil.distance(i,l)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,l){var o=l.slice();o[0].x===o[o.length-1].x&&o[0].y===o[o.length-1].y||o.push(o[0]);for(var i,n=[],a=0;a<o.length-1;a++){var r=o[a],s=o[a+1],p=SuperMapAlgoPlot.PlottingUtil.intersectLines(t,e,r,s);p.isIntersectLines&&SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,t,e)&&SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,r,s)&&n.push(p.intersectPoint)}for(var u=0;u<n.length-1;u++)SuperMapAlgoPlot.PlottingUtil.isSamePt(n[u],n[u+1])&&(n.splice(u,1),u--);if(t.x>e.x)for(var P=0;P<n.length&&P!=n.length-1;P++)n[P].x<n[P+1].x&&(i=n[P],n[P]=n[P+1],n[P+1]=i);else if(t.x<e.x)for(var c=0;c<n.length&&c!=n.length-1;c++)n[c].x>n[c+1].x&&(i=n[c],n[c]=n[c+1],n[c+1]=i);else if(t.y>e.y)for(var g=0;g<n.length&&g!=n.length-1;g++)n[g].y<n[g+1].y&&(i=n[g],n[g]=n[g+1],n[g+1]=i);else if(t.y<e.y)for(var S=0;S<n.length&&S!=n.length-1;S++)n[S].y>n[S+1].y&&(i=n[S],n[S]=n[S+1],n[S+1]=i);return n}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t){for(var i=0,n=-1,a=null,r=0;r<l.length-1;r++){var s=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,l[r],l[r+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(s.projectPoint,l[r],l[r+1])){var p=SuperMapAlgoPlot.PlottingUtil.distance(s.projectPoint,e);0==i?(i=p,n=r,a=s.projectPoint):p<i&&(i=p,n=r,a=s.projectPoint)}}if(-1==n)return;for(var u=0,P=0;P<n;P++)u+=SuperMapAlgoPlot.PlottingUtil.distance(l[P],l[P+1]);var c=(u+=SuperMapAlgoPlot.PlottingUtil.distance(a,l[n]))/o;c>1&&(c=1),this.scaleValues[0]=c}if(1===t){var g=this.scaleValues[0]*o,S=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,g);if(-1===S.index)return;var h=SuperMapAlgoPlot.PlottingUtil.distance(S.pt,e)/o;h>.4&&(h=.4),this.scaleValues[1]=h}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol12500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27100=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.1,l.scaleValues[1]=.2),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues[0]=.1,this.scaleValues[1]=.2),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e,l,o=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),i=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,n=this.scaleValues[0],a=this.scaleValues[1],r=n*o,s=[];for(e=90;e<=270;e+=3)l=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],r,r,e+i),s.push(l);var p=[];for(e=-90;e<=90;e+=3)l=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],r,r,e+i),p.push(l);var u=o*a,P=new SuperMapAlgoPlot.Point((s[0].x+p[p.length-1].x)/2,(s[0].y+p[p.length-1].y)/2),c=SuperMapAlgoPlot.PlottingUtil.linePnt(s[0],p[p.length-1],.5*(o-1.2*u)),g=SuperMapAlgoPlot.PlottingUtil.linePnt(p[p.length-1],s[0],.5*(o-1.2*u)),S=SuperMapAlgoPlot.PlottingUtil.radian(g,c)*SuperMapAlgoPlot.PlottingUtil.RTOD,h=[];h.push(c),h.push.apply(h,s),h.push.apply(h,p),h.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],P,.9*u,S-90),this.scalePoints=[],this.addScalePoint(s[s.length-1]);var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,u,u,S+90);this.addScalePoint(f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1]);if(0==t){var i=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}else if(1==t){var n=this.scaleValues[0]*o,a=SuperMapAlgoPlot.PlottingUtil.radian(l[0],l[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,r=SuperMapAlgoPlot.PlottingUtil.circlePoint(l[0],n,n,90+a),s=SuperMapAlgoPlot.PlottingUtil.circlePoint(l[1],n,n,90+a),p=new SuperMapAlgoPlot.Point((r.x+s.x)/2,(r.y+s.y)/2),u=SuperMapAlgoPlot.PlottingUtil.distance(p,e)/o;u>=.8&&(u=.8),this.scaleValues[1]=u}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol27100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbol37301=e.AlgoSymbol5033701=e.AlgoSymbol50337=e.AlgoSymbol5033601=e.AlgoSymbol50336=e.AlgoSymbol5033301=e.AlgoSymbol50332=e.AlgoSymbol3002701=e.AlgoSymbol90217=e.AlgoSymbol90215=e.AlgoSymbol90213=e.AlgoSymbol90212=e.AlgoSymbol8020301=e.AlgoSymbol80203=e.AlgoSymbol6030601=e.AlgoSymbol70110=e.AlgoSymbol6031001=e.AlgoSymbol6030501=e.AlgoSymbol6030107=e.AlgoSymbol6030106=e.AlgoSymbol6030105=e.AlgoSymbol6030104=e.AlgoSymbol6030103=e.AlgoSymbol6030102=e.AlgoSymbol6030101=e.AlgoSymbol6012702=e.AlgoSymbol5020802=e.AlgoSymbol5020801=e.AlgoSymbol5035205=e.AlgoSymbol5035203=e.AlgoSymbol5035202=e.AlgoSymbol5035201=e.AlgoSymbol5034801=e.AlgoSymbol5034203=e.AlgoSymbol5034202=e.AlgoSymbol5034201=e.AlgoSymbol5033803=e.AlgoSymbol5033802=e.AlgoSymbol5033502=e.AlgoSymbol5033501=e.AlgoSymbol5033001=e.AlgoSymbol50321=e.AlgoSymbol5032004=e.AlgoSymbol5032003=e.AlgoSymbol5031401=e.AlgoSymbol5030301=e.AlgoSymbol5030107=e.AlgoSymbol5030105=e.AlgoSymbol5030104=e.AlgoSymbol5030103=e.AlgoSymbol5022301=e.AlgoSymbol5022002=e.AlgoSymbol5022001=e.AlgoSymbol5021803=e.AlgoSymbol5010401=e.AlgoSymbol4030802=e.AlgoSymbol4030602=e.AlgoSymbol4030501=e.AlgoSymbol4030401=e.AlgoSymbol4030303=e.AlgoSymbol4030302=e.AlgoSymbol4030301=e.AlgoSymbol3002005=e.AlgoSymbol3002004=e.AlgoSymbol3002003=e.AlgoSymbol3002002=e.AlgoSymbol3002001=e.AlgoSymbol3001302=e.AlgoSymbol3001301=e.AlgoSymbol3001105=e.AlgoSymbol3001104=e.AlgoSymbol3001103=e.AlgoSymbol3001102=void 0,e.AlgoSymbol3001101=e.AlgoSymbol3000809=e.AlgoSymbol3000808=e.AlgoSymbol3000807=e.AlgoSymbol3000806=e.AlgoSymbol3000805=e.AlgoSymbol3000804=e.AlgoSymbol3000803=e.AlgoSymbol3000802=e.AlgoSymbol3000801=e.AlgoSymbol2122301=e.AlgoSymbol2122202=e.AlgoSymbol2122201=e.AlgoSymbol2122101=e.AlgoSymbol2121602=e.AlgoSymbol2121601=e.AlgoSymbol2121507=e.AlgoSymbol2121506=e.AlgoSymbol2121504=e.AlgoSymbol2092101=e.AlgoSymbol2091503=e.AlgoSymbol37300=e.AlgoSymbol37200=e.AlgoSymbol37100=e.AlgoSymbol36800=e.AlgoSymbol34700=e.AlgoSymbol34400=e.AlgoSymbol34300=e.AlgoSymbol60310=e.AlgoSymbol60306=e.AlgoSymbol60305=e.AlgoSymbol60304=e.AlgoSymbol2121505=e.AlgoSymbol60301=e.AlgoSymbol60205=e.AlgoSymbol60203=e.AlgoSymbol6011501=e.AlgoSymbol60115=e.AlgoSymbol60108=e.AlgoSymbol5035501=e.AlgoSymbol50355=e.AlgoSymbol5035401=e.AlgoSymbol50354=e.AlgoSymbol50352=e.AlgoSymbol50344=e.AlgoSymbol5034303=e.AlgoSymbol5034302=e.AlgoSymbol5034301=e.AlgoSymbol50343=e.AlgoSymbol50342=e.AlgoSymbol5034102=e.AlgoSymbol5034101=e.AlgoSymbol50341=e.AlgoSymbol50335=e.AlgoSymbol50331=e.AlgoSymbol50328=e.AlgoSymbol50323=e.AlgoSymbol50318=e.AlgoSymbol50308=e.AlgoSymbol50226=e.AlgoSymbol50225=e.AlgoSymbol50223=e.AlgoSymbol50108=e.AlgoSymbol40305=e.AlgoSymbol40304=e.AlgoSymbol40302=e.AlgoSymbol40104=e.AlgoSymbol30031=e.AlgoSymbol3003001=e.AlgoSymbol30030=e.AlgoSymbol30026=e.AlgoSymbol3002505=e.AlgoSymbol3002504=e.AlgoSymbol3002503=e.AlgoSymbol3002502=e.AlgoSymbol3002501=e.AlgoSymbol30025=e.AlgoSymbol30020=e.AlgoSymbol30014=e.AlgoSymbol30013=e.AlgoSymbol30012=e.AlgoSymbol30011=e.AlgoSymbol30010=e.AlgoSymbol30009=e.AlgoSymbol30008=e.AlgoSymbol21221=e.AlgoSymbol21216=e.AlgoSymbol21207=e.AlgoSymbol1002=e.AlgoSymbol1021=e.GeoTooltipBox=e.AlgoSymbol3020901=e.AlgoSymbol3010304=e.AlgoSymbol3010303=e.AlgoSymbol3010301=e.AlgoSymbol40100=e.AlgoSymbol37700=e.AlgoSymbol35500=e.AlgoSymbol35200=e.AlgoSymbol35000=void 0,e.AlgoSymbol44100=e.AlgoSymbol42200=e.AlgoSymbol41202=e.AlgoSymbol41201=e.AlgoSymbol41200=e.AlgoSymbol41100=e.AlgoSymbol40101=e.AlgoSymbol40900=e.AlgoSymbol36400=e.AlgoSymbol32300=e.AlgoSymbol31401=e.AlgoSymbol31400=e.AlgoSymbol31301=e.AlgoSymbol31300=e.AlgoSymbol30800=e.AlgoSymbol30023=e.AlgoSymbol30201=e.AlgoSymbol30200=e.AlgoSymbol30100=e.AlgoSymbol30002=e.AlgoSymbol30001=e.AlgoSymbol30000=e.AlgoSymbol29800=e.AlgoSymbol28301=e.AlgoSymbol28300=e.AlgoSymbol28200=e.AlgoSymbol28100=e.AlgoSymbol28000=e.AlgoSymbol26601=e.AlgoSymbol26600=e.AlgoSymbol26502=e.AlgoSymbol26500=e.AlgoSymbol26400=e.AlgoSymbol25400=e.AlgoSymbol25000=e.AlgoSymbol25200=e.AlgoSymbol29103=e.AlgoSymbol29101=e.AlgoSymbol29100=e.AlgoSymbol29000=e.AlgoSymbol28900=e.AlgoSymbol23902=e.AlgoSymbol23901=e.AlgoSymbol23800=e.AlgoSymbol23500=e.AlgoSymbol23400=e.AlgoSymbol22103=e.AlgoSymbol22000=e.AlgoSymbol21800=e.AlgoSymbol21600=e.AlgoSymbol21504=e.AlgoSymbol21503=e.AlgoSymbol21502=e.AlgoSymbol21501=e.AlgoSymbol21900=e.AlgoSymbol21500=e.AlgoSymbol21401=e.AlgoSymbol25201=e.AlgoSymbol42500=e.AlgoSymbol26501=e.AlgoSymbol2060202=e.AlgoSymbol2060201=e.AlgoSymbol20301=e.AlgoSymbol20300=e.AlgoSymbol17806=e.AlgoSymbol17805=e.AlgoSymbol17804=e.AlgoSymbol17803=e.AlgoSymbol17802=e.AlgoSymbol17801=e.AlgoSymbol17800=e.AlgoSymbol1770501=e.AlgoSymbol17704=e.AlgoSymbol17703=e.AlgoSymbol17700=e.AlgoSymbol17501=e.AlgoSymbol17500=e.AlgoSymbol17401=e.AlgoSymbol17400=e.AlgoSymbol16700=e.AlgoSymbol16203=e.AlgoSymbol16202=e.AlgoSymbol16201=e.AlgoSymbol16200=e.AlgoSymbol15900=e.AlgoSymbol15806=e.AlgoSymbol15805=e.AlgoSymbol15804=e.AlgoSymbol15803=e.AlgoSymbol15802=e.AlgoSymbol15801=e.AlgoSymbol15800=e.AlgoSymbol15202=e.AlgoSymbol15201=e.AlgoSymbol15200=e.AlgoSymbol13700=e.AlgoSymbol12502=e.AlgoSymbol12501=e.AlgoSymbol12500=e.AlgoSymbol27100=void 0;var o=l(273),i=l(272),n=l(271),a=l(270),r=l(269),s=l(268),p=l(267),u=l(266),P=l(265),c=l(264),g=l(263),S=l(262),h=l(261),f=l(260),y=l(259),A=l(258),M=l(257),b=l(256),d=l(255),m=l(254),v=l(253),O=l(252),U=l(251),L=l(250),w=l(249),_=l(248),V=l(247),T=l(246),E=l(245),x=l(244),C=l(243),j=l(242),Y=l(241),I=l(240),R=l(239),B=l(238),N=l(237),D=l(236),k=l(235),z=l(234),F=l(233),G=l(232),W=l(231),J=l(230),K=l(229),H=l(228),q=l(227),Q=l(226),X=l(225),Z=l(224),$=l(223),tt=l(222),et=l(221),lt=l(220),ot=l(219),it=l(218),nt=l(217),at=l(216),rt=l(215),st=l(214),pt=l(213),ut=l(212),Pt=l(211),ct=l(210),gt=l(209),St=l(208),ht=l(207),ft=l(206),yt=l(205),At=l(204),Mt=l(203),bt=l(202),dt=l(201),mt=l(200),vt=l(199),Ot=l(198),Ut=l(197),Lt=l(196),wt=l(195),_t=l(194),Vt=l(193),Tt=l(192),Et=l(191),xt=l(190),Ct=l(189),jt=l(188),Yt=l(187),It=l(186),Rt=l(185),Bt=l(184),Nt=l(183),Dt=l(182),kt=l(181),zt=l(180),Ft=l(179),Gt=l(178),Wt=l(177),Jt=l(176),Kt=l(175),Ht=l(174),qt=l(173),Qt=l(172),Xt=l(171),Zt=l(170),$t=l(169),te=l(168),ee=l(167),le=l(166),oe=l(165),ie=l(164),ne=l(163),ae=l(162),re=l(161),se=l(160),pe=l(159),ue=l(158),Pe=l(157),ce=l(156),ge=l(155),Se=l(154),he=l(153),fe=l(152),ye=l(151),Ae=l(150),Me=l(149),be=l(148),de=l(147),me=l(146),ve=l(145),Oe=l(144),Ue=l(143),Le=l(142),we=l(141),_e=l(140),Ve=l(139),Te=l(138),Ee=l(137),xe=l(136),Ce=l(135),je=l(134),Ye=l(133),Ie=l(132),Re=l(131),Be=l(130),Ne=l(129),De=l(128),ke=l(127),ze=l(126),Fe=l(125),Ge=l(124),We=l(123),Je=l(122),Ke=l(121),He=l(120),qe=l(119),Qe=l(118),Xe=l(117),Ze=l(116),$e=l(115),tl=l(114),el=l(113),ll=l(111),ol=l(110),il=l(109),nl=l(108),al=l(107),rl=l(106),sl=l(105),pl=l(104),ul=l(103),Pl=l(102),cl=l(101),gl=l(100),Sl=l(99),hl=l(98),fl=l(97),yl=l(96),Al=l(95),Ml=l(94),bl=l(93),dl=l(92),ml=l(91),vl=l(90),Ol=l(89),Ul=l(88),Ll=l(87),wl=l(86),_l=l(85),Vl=l(84),Tl=l(83),El=l(82),xl=l(81),Cl=l(80),jl=l(79),Yl=l(78),Il=l(77),Rl=l(76),Bl=l(75),Nl=l(74),Dl=l(73),kl=l(72),zl=l(71),Fl=l(70),Gl=l(69),Wl=l(68),Jl=l(67),Kl=l(66),Hl=l(65),ql=l(64),Ql=l(63),Xl=l(62),Zl=l(61),$l=l(60),to=l(59),eo=l(58),lo=l(57),oo=l(56),io=l(55),no=l(54),ao=l(53),ro=l(52),so=l(51),po=l(0),uo=l(50),Po=l(49),co=l(48),go=l(47),So=l(46),ho=l(45),fo=l(44),yo=l(43),Ao=l(42),Mo=l(41),bo=l(40),mo=l(39),vo=l(38),Oo=l(37),Uo=l(36),Lo=l(35),wo=l(34),_o=l(33),Vo=l(32),To=l(31),Eo=l(30),xo=l(29),Co=l(28),jo=l(27),Yo=l(26),Io=l(25),Ro=l(24),Bo=l(23),No=l(22),Do=l(21),ko=l(20),zo=l(19),Fo=l(18),Go=l(17),Wo=l(16),Jo=l(15),Ko=l(14),Ho=l(13),qo=l(12),Qo=l(11),Xo=l(10),Zo=l(9),$o=l(8),ti=l(7),ei=l(6),li=l(5),oi=l(4),ii=l(3),ni=l(2),ai=l(1);e.AlgoSymbol27100=o.AlgoSymbol27100,e.AlgoSymbol12500=i.AlgoSymbol12500,e.AlgoSymbol12501=n.AlgoSymbol12501,e.AlgoSymbol12502=a.AlgoSymbol12502,e.AlgoSymbol13700=r.AlgoSymbol13700,e.AlgoSymbol15200=s.AlgoSymbol15200,e.AlgoSymbol15201=p.AlgoSymbol15201,e.AlgoSymbol15202=u.AlgoSymbol15202,e.AlgoSymbol15800=P.AlgoSymbol15800,e.AlgoSymbol15801=c.AlgoSymbol15801,e.AlgoSymbol15802=g.AlgoSymbol15802,e.AlgoSymbol15803=S.AlgoSymbol15803,e.AlgoSymbol15804=h.AlgoSymbol15804,e.AlgoSymbol15805=f.AlgoSymbol15805,e.AlgoSymbol15806=y.AlgoSymbol15806,e.AlgoSymbol15900=A.AlgoSymbol15900,e.AlgoSymbol16200=M.AlgoSymbol16200,e.AlgoSymbol16201=b.AlgoSymbol16201,e.AlgoSymbol16202=d.AlgoSymbol16202,e.AlgoSymbol16203=m.AlgoSymbol16203,e.AlgoSymbol16700=v.AlgoSymbol16700,e.AlgoSymbol17400=O.AlgoSymbol17400,e.AlgoSymbol17401=U.AlgoSymbol17401,e.AlgoSymbol17500=L.AlgoSymbol17500,e.AlgoSymbol17501=w.AlgoSymbol17501,e.AlgoSymbol17700=_.AlgoSymbol17700,e.AlgoSymbol17703=V.AlgoSymbol17703,e.AlgoSymbol17704=T.AlgoSymbol17704,e.AlgoSymbol1770501=E.AlgoSymbol1770501,e.AlgoSymbol17800=x.AlgoSymbol17800,e.AlgoSymbol17801=C.AlgoSymbol17801,e.AlgoSymbol17802=j.AlgoSymbol17802,e.AlgoSymbol17803=Y.AlgoSymbol17803,e.AlgoSymbol17804=I.AlgoSymbol17804,e.AlgoSymbol17805=R.AlgoSymbol17805,e.AlgoSymbol17806=B.AlgoSymbol17806,e.AlgoSymbol20300=N.AlgoSymbol20300,e.AlgoSymbol20301=D.AlgoSymbol20301,e.AlgoSymbol2060201=Pe.AlgoSymbol2060201,e.AlgoSymbol2060202=ce.AlgoSymbol2060202,e.AlgoSymbol26501=k.AlgoSymbol26501,e.AlgoSymbol42500=z.AlgoSymbol42500,e.AlgoSymbol25201=F.AlgoSymbol25201,e.AlgoSymbol21401=G.AlgoSymbol21401,e.AlgoSymbol21500=W.AlgoSymbol21500,e.AlgoSymbol21900=J.AlgoSymbol21900,e.AlgoSymbol21501=K.AlgoSymbol21501,e.AlgoSymbol21502=H.AlgoSymbol21502,e.AlgoSymbol21503=q.AlgoSymbol21503,e.AlgoSymbol21504=Q.AlgoSymbol21504,e.AlgoSymbol21600=X.AlgoSymbol21600,e.AlgoSymbol21800=Z.AlgoSymbol21800,e.AlgoSymbol22000=$.AlgoSymbol22000,e.AlgoSymbol22103=tt.AlgoSymbol22103,e.AlgoSymbol23400=et.AlgoSymbol23400,e.AlgoSymbol23500=lt.AlgoSymbol23500,e.AlgoSymbol23800=ot.AlgoSymbol23800,e.AlgoSymbol23901=it.AlgoSymbol23901,e.AlgoSymbol23902=nt.AlgoSymbol23902,e.AlgoSymbol28900=at.AlgoSymbol28900,e.AlgoSymbol29000=rt.AlgoSymbol29000,e.AlgoSymbol29100=st.AlgoSymbol29100,e.AlgoSymbol29101=pt.AlgoSymbol29101,e.AlgoSymbol29103=ut.AlgoSymbol29103,e.AlgoSymbol25200=Pt.AlgoSymbol25200,e.AlgoSymbol25000=ct.AlgoSymbol25000,e.AlgoSymbol25400=gt.AlgoSymbol25400,e.AlgoSymbol26400=St.AlgoSymbol26400,e.AlgoSymbol26500=ht.AlgoSymbol26500,e.AlgoSymbol26502=ft.AlgoSymbol26502,e.AlgoSymbol26600=yt.AlgoSymbol26600,e.AlgoSymbol26601=At.AlgoSymbol26601,e.AlgoSymbol28000=Mt.AlgoSymbol28000,e.AlgoSymbol28100=bt.AlgoSymbol28100,e.AlgoSymbol28200=dt.AlgoSymbol28200,e.AlgoSymbol28300=mt.AlgoSymbol28300,e.AlgoSymbol28301=vt.AlgoSymbol28301,e.AlgoSymbol29800=Ot.AlgoSymbol29800,e.AlgoSymbol30000=Ut.AlgoSymbol30000,e.AlgoSymbol30001=Lt.AlgoSymbol30001,e.AlgoSymbol30002=wt.AlgoSymbol30002,e.AlgoSymbol30100=_t.AlgoSymbol30100,e.AlgoSymbol30200=Vt.AlgoSymbol30200,e.AlgoSymbol30201=Tt.AlgoSymbol30201,e.AlgoSymbol30023=Oe.AlgoSymbol30023,e.AlgoSymbol30800=Et.AlgoSymbol30800,e.AlgoSymbol31300=xt.AlgoSymbol31300,e.AlgoSymbol31301=Ct.AlgoSymbol31301,e.AlgoSymbol31400=jt.AlgoSymbol31400,e.AlgoSymbol31401=Yt.AlgoSymbol31401,e.AlgoSymbol32300=It.AlgoSymbol32300,e.AlgoSymbol36400=Dt.AlgoSymbol36400,e.AlgoSymbol40900=Wt.AlgoSymbol40900,e.AlgoSymbol40101=Jt.AlgoSymbol40101,e.AlgoSymbol41100=Kt.AlgoSymbol41100,e.AlgoSymbol41200=Ht.AlgoSymbol41200,e.AlgoSymbol41201=qt.AlgoSymbol41201,e.AlgoSymbol41202=Qt.AlgoSymbol41202,e.AlgoSymbol42200=Xt.AlgoSymbol42200,e.AlgoSymbol44100=Zt.AlgoSymbol44100,e.AlgoSymbol35000=$t.AlgoSymbol35000,e.AlgoSymbol35200=te.AlgoSymbol35200,e.AlgoSymbol35500=ee.AlgoSymbol35500,e.AlgoSymbol37700=le.AlgoSymbol37700,e.AlgoSymbol40100=oe.AlgoSymbol40100,e.AlgoSymbol3010301=ie.AlgoSymbol3010301,e.AlgoSymbol3010303=ne.AlgoSymbol3010303,e.AlgoSymbol3010304=ae.AlgoSymbol3010304,e.AlgoSymbol3020901=re.AlgoSymbol3020901,e.GeoTooltipBox=se.GeoTooltipBox,e.AlgoSymbol1021=pe.AlgoSymbol1021,e.AlgoSymbol1002=ue.AlgoSymbol1002,e.AlgoSymbol21207=ge.AlgoSymbol21207,e.AlgoSymbol21216=Se.AlgoSymbol21216,e.AlgoSymbol21221=he.AlgoSymbol21221,e.AlgoSymbol30008=fe.AlgoSymbol30008,e.AlgoSymbol30009=ye.AlgoSymbol30009,e.AlgoSymbol30010=Ae.AlgoSymbol30010,e.AlgoSymbol30011=Me.AlgoSymbol30011,e.AlgoSymbol30012=be.AlgoSymbol30012,e.AlgoSymbol30013=de.AlgoSymbol30013,e.AlgoSymbol30014=me.AlgoSymbol30014,e.AlgoSymbol30020=ve.AlgoSymbol30020,e.AlgoSymbol30025=Ue.AlgoSymbol30025,e.AlgoSymbol3002501=$l.AlgoSymbol3002501,e.AlgoSymbol3002502=to.AlgoSymbol3002502,e.AlgoSymbol3002503=eo.AlgoSymbol3002503,e.AlgoSymbol3002504=lo.AlgoSymbol3002504,e.AlgoSymbol3002505=oo.AlgoSymbol3002505,e.AlgoSymbol30026=Le.AlgoSymbol30026,e.AlgoSymbol30030=we.AlgoSymbol30030,e.AlgoSymbol3003001=_e.AlgoSymbol3003001,e.AlgoSymbol30031=Ve.AlgoSymbol30031,e.AlgoSymbol40104=Te.AlgoSymbol40104,e.AlgoSymbol40302=Ee.AlgoSymbol40302,e.AlgoSymbol40304=xe.AlgoSymbol40304,e.AlgoSymbol40305=Ce.AlgoSymbol40305,e.AlgoSymbol50108=je.AlgoSymbol50108,e.AlgoSymbol50223=Ye.AlgoSymbol50223,e.AlgoSymbol50225=Ie.AlgoSymbol50225,e.AlgoSymbol50226=Re.AlgoSymbol50226,e.AlgoSymbol50308=Be.AlgoSymbol50308,e.AlgoSymbol50318=Ne.AlgoSymbol50318,e.AlgoSymbol50323=De.AlgoSymbol50323,e.AlgoSymbol50328=ke.AlgoSymbol50328,e.AlgoSymbol50331=ze.AlgoSymbol50331,e.AlgoSymbol50335=Fe.AlgoSymbol50335,e.AlgoSymbol50341=Vo.AlgoSymbol50341,e.AlgoSymbol5034101=To.AlgoSymbol5034101,e.AlgoSymbol5034102=Eo.AlgoSymbol5034102,e.AlgoSymbol50342=Je.AlgoSymbol50342,e.AlgoSymbol50343=Ke.AlgoSymbol50343,e.AlgoSymbol5034301=He.AlgoSymbol5034301,e.AlgoSymbol5034302=qe.AlgoSymbol5034302,e.AlgoSymbol5034303=Qe.AlgoSymbol5034303,e.AlgoSymbol50344=Xe.AlgoSymbol50344,e.AlgoSymbol50352=Ze.AlgoSymbol50352,e.AlgoSymbol50354=$e.AlgoSymbol50354,e.AlgoSymbol5035401=tl.AlgoSymbol5035401,e.AlgoSymbol50355=el.AlgoSymbol50355,e.AlgoSymbol5035501=ll.AlgoSymbol5035501,e.AlgoSymbol60108=ol.AlgoSymbol60108,e.AlgoSymbol60115=il.AlgoSymbol60115,e.AlgoSymbol6011501=nl.AlgoSymbol6011501,e.AlgoSymbol60203=rl.AlgoSymbol60203,e.AlgoSymbol60205=sl.AlgoSymbol60205,e.AlgoSymbol60301=pl.AlgoSymbol60301,e.AlgoSymbol2121505=ul.AlgoSymbol2121505,e.AlgoSymbol60304=Pl.AlgoSymbol60304,e.AlgoSymbol60305=cl.AlgoSymbol60305,e.AlgoSymbol60306=gl.AlgoSymbol60306,e.AlgoSymbol60310=Sl.AlgoSymbol60310,e.AlgoSymbol34300=Rt.AlgoSymbol34300,e.AlgoSymbol34400=Bt.AlgoSymbol34400,e.AlgoSymbol34700=Nt.AlgoSymbol34700,e.AlgoSymbol36800=kt.AlgoSymbol36800,e.AlgoSymbol37100=zt.AlgoSymbol37100,e.AlgoSymbol37200=Ft.AlgoSymbol37200,e.AlgoSymbol37300=Gt.AlgoSymbol37300,e.AlgoSymbol2091503=dl.AlgoSymbol2091503,e.AlgoSymbol2092101=ml.AlgoSymbol2092101,e.AlgoSymbol2121504=vl.AlgoSymbol2121504,e.AlgoSymbol2121506=Ol.AlgoSymbol2121506,e.AlgoSymbol2121507=Ul.AlgoSymbol2121507,e.AlgoSymbol2121601=Ll.AlgoSymbol2121601,e.AlgoSymbol2121602=wl.AlgoSymbol2121602,e.AlgoSymbol2122101=_l.AlgoSymbol2122101,e.AlgoSymbol2122201=Vl.AlgoSymbol2122201,e.AlgoSymbol2122202=Tl.AlgoSymbol2122202,e.AlgoSymbol2122301=El.AlgoSymbol2122301,e.AlgoSymbol3000801=xl.AlgoSymbol3000801,e.AlgoSymbol3000802=Cl.AlgoSymbol3000802,e.AlgoSymbol3000803=jl.AlgoSymbol3000803,e.AlgoSymbol3000804=Yl.AlgoSymbol3000804,e.AlgoSymbol3000805=Il.AlgoSymbol3000805,e.AlgoSymbol3000806=Rl.AlgoSymbol3000806,e.AlgoSymbol3000807=Bl.AlgoSymbol3000807,e.AlgoSymbol3000808=Nl.AlgoSymbol3000808,e.AlgoSymbol3000809=Dl.AlgoSymbol3000809,e.AlgoSymbol3001101=kl.AlgoSymbol3001101,e.AlgoSymbol3001102=zl.AlgoSymbol3001102,e.AlgoSymbol3001103=Fl.AlgoSymbol3001103,e.AlgoSymbol3001104=Gl.AlgoSymbol3001104,e.AlgoSymbol3001105=Wl.AlgoSymbol3001105,e.AlgoSymbol3001301=Jl.AlgoSymbol3001301,e.AlgoSymbol3001302=Kl.AlgoSymbol3001302,e.AlgoSymbol3002001=Hl.AlgoSymbol3002001,e.AlgoSymbol3002002=ql.AlgoSymbol3002002,e.AlgoSymbol3002003=Ql.AlgoSymbol3002003,e.AlgoSymbol3002004=Xl.AlgoSymbol3002004,e.AlgoSymbol3002005=Zl.AlgoSymbol3002005,e.AlgoSymbol4030301=io.AlgoSymbol4030301,e.AlgoSymbol4030302=no.AlgoSymbol4030302,e.AlgoSymbol4030303=ao.AlgoSymbol4030303,e.AlgoSymbol4030401=ro.AlgoSymbol4030401,e.AlgoSymbol4030501=so.AlgoSymbol4030501,e.AlgoSymbol4030602=po.AlgoSymbol4030602,e.AlgoSymbol4030802=uo.AlgoSymbol4030802,e.AlgoSymbol5010401=Po.AlgoSymbol5010401,e.AlgoSymbol5021803=co.AlgoSymbol5021803,e.AlgoSymbol5022001=go.AlgoSymbol5022001,e.AlgoSymbol5022002=So.AlgoSymbol5022002,e.AlgoSymbol5022301=ho.AlgoSymbol5022301,e.AlgoSymbol5030103=fo.AlgoSymbol5030103,e.AlgoSymbol5030104=yo.AlgoSymbol5030104,e.AlgoSymbol5030105=Ao.AlgoSymbol5030105,e.AlgoSymbol5030107=Mo.AlgoSymbol5030107,e.AlgoSymbol5030301=bo.AlgoSymbol5030301,e.AlgoSymbol5031401=mo.AlgoSymbol5031401,e.AlgoSymbol5032003=vo.AlgoSymbol5032003,e.AlgoSymbol5032004=Oo.AlgoSymbol5032004,e.AlgoSymbol50321=Uo.AlgoSymbol50321,e.AlgoSymbol5033001=Lo.AlgoSymbol5033001,e.AlgoSymbol5033501=Ge.AlgoSymbol5033501,e.AlgoSymbol5033502=We.AlgoSymbol5033502,e.AlgoSymbol5033802=wo.AlgoSymbol5033802,e.AlgoSymbol5033803=_o.AlgoSymbol5033803,e.AlgoSymbol5034201=xo.AlgoSymbol5034201,e.AlgoSymbol5034202=Co.AlgoSymbol5034202,e.AlgoSymbol5034203=jo.AlgoSymbol5034203,e.AlgoSymbol5034801=Yo.AlgoSymbol5034801,e.AlgoSymbol5035201=Io.AlgoSymbol5035201,e.AlgoSymbol5035202=Ro.AlgoSymbol5035202,e.AlgoSymbol5035203=Bo.AlgoSymbol5035203,e.AlgoSymbol5035205=No.AlgoSymbol5035205,e.AlgoSymbol5020801=Do.AlgoSymbol5020801,e.AlgoSymbol5020802=ko.AlgoSymbol5020802,e.AlgoSymbol6012702=al.AlgoSymbol6012702,e.AlgoSymbol6030101=zo.AlgoSymbol6030101,e.AlgoSymbol6030102=Fo.AlgoSymbol6030102,e.AlgoSymbol6030103=Go.AlgoSymbol6030103,e.AlgoSymbol6030104=Wo.AlgoSymbol6030104,e.AlgoSymbol6030105=Jo.AlgoSymbol6030105,e.AlgoSymbol6030106=Ko.AlgoSymbol6030106,e.AlgoSymbol6030107=Ho.AlgoSymbol6030107,e.AlgoSymbol6030501=qo.AlgoSymbol6030501,e.AlgoSymbol6031001=Qo.AlgoSymbol6031001,e.AlgoSymbol70110=Xo.AlgoSymbol70110,e.AlgoSymbol6030601=Zo.AlgoSymbol6030601,e.AlgoSymbol80203=hl.AlgoSymbol80203,e.AlgoSymbol8020301=fl.AlgoSymbol8020301,e.AlgoSymbol90212=yl.AlgoSymbol90212,e.AlgoSymbol90213=Al.AlgoSymbol90213,e.AlgoSymbol90215=Ml.AlgoSymbol90215,e.AlgoSymbol90217=bl.AlgoSymbol90217,e.AlgoSymbol3002701=$o.AlgoSymbol3002701,e.AlgoSymbol50332=ti.AlgoSymbol50332,e.AlgoSymbol5033301=ei.AlgoSymbol5033301,e.AlgoSymbol50336=li.AlgoSymbol50336,e.AlgoSymbol5033601=oi.AlgoSymbol5033601,e.AlgoSymbol50337=ii.AlgoSymbol50337,e.AlgoSymbol5033701=ni.AlgoSymbol5033701,e.AlgoSymbol37301=ai.AlgoSymbol37301},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WJAlgoSymbolFactory=void 0,l(274);e.WJAlgoSymbolFactory=SuperMapAlgoPlot.WJAlgoSymbolFactory=SuperMapAlgoPlot.WJAlgoSymbolFactory||{};SuperMapAlgoPlot.WJAlgoSymbolFactory.getAlgoSymbol=function(t,e,l){if(123===t)switch(e){case 20602:return new SuperMapAlgoPlot.AlgoSymbol15805(l);case 2060201:return new SuperMapAlgoPlot.AlgoSymbol2060201(l);case 2060202:return new SuperMapAlgoPlot.AlgoSymbol2060202(l);case 20915:return new SuperMapAlgoPlot.AlgoSymbol12500(l);case 2091501:return new SuperMapAlgoPlot.AlgoSymbol12501(l);case 2091502:return new SuperMapAlgoPlot.AlgoSymbol12502(l);case 2091503:return new SuperMapAlgoPlot.AlgoSymbol2091503(l);case 2092101:return new SuperMapAlgoPlot.AlgoSymbol2092101(l);case 21003:return new SuperMapAlgoPlot.AlgoSymbol13700(l);case 21206:return new SuperMapAlgoPlot.AlgoSymbol15200(l);case 2120601:return new SuperMapAlgoPlot.AlgoSymbol15201(l);case 2120602:return new SuperMapAlgoPlot.AlgoSymbol15202(l);case 21207:return new SuperMapAlgoPlot.AlgoSymbol21207(l);case 21212:return new SuperMapAlgoPlot.AlgoSymbol15800(l);case 2121201:return new SuperMapAlgoPlot.AlgoSymbol15801(l);case 2121202:return new SuperMapAlgoPlot.AlgoSymbol15802(l);case 2121203:return new SuperMapAlgoPlot.AlgoSymbol15803(l);case 2121204:return new SuperMapAlgoPlot.AlgoSymbol15804(l);case 2121205:return new SuperMapAlgoPlot.AlgoSymbol15806(l);case 21213:return new SuperMapAlgoPlot.AlgoSymbol15900(l);case 21214:return new SuperMapAlgoPlot.AlgoSymbol16200(l);case 2121401:return new SuperMapAlgoPlot.AlgoSymbol16201(l);case 2121402:return new SuperMapAlgoPlot.AlgoSymbol16202(l);case 2121403:return new SuperMapAlgoPlot.AlgoSymbol16203(l);case 2121404:return new SuperMapAlgoPlot.AlgoSymbol2121504(l);case 2121405:return new SuperMapAlgoPlot.AlgoSymbol2121505(l);case 2121406:return new SuperMapAlgoPlot.AlgoSymbol2121506(l);case 2121407:return new SuperMapAlgoPlot.AlgoSymbol2121507(l);case 21215:return new SuperMapAlgoPlot.AlgoSymbol21216(l);case 2121501:return new SuperMapAlgoPlot.AlgoSymbol2121601(l);case 2121502:return new SuperMapAlgoPlot.AlgoSymbol2121602(l);case 21217:return new SuperMapAlgoPlot.AlgoSymbol16700(l);case 21221:return new SuperMapAlgoPlot.AlgoSymbol17500(l);case 21220:return new SuperMapAlgoPlot.AlgoSymbol17400(l);case 2122001:return new SuperMapAlgoPlot.AlgoSymbol17401(l);case 2122101:return new SuperMapAlgoPlot.AlgoSymbol17501(l);case 21222:return new SuperMapAlgoPlot.AlgoSymbol17700(l);case 2122201:return new SuperMapAlgoPlot.AlgoSymbol2122201(l);case 2122202:return new SuperMapAlgoPlot.AlgoSymbol2122202(l);case 2122203:return new SuperMapAlgoPlot.AlgoSymbol17703(l);case 2122204:return new SuperMapAlgoPlot.AlgoSymbol17704(l);case 2122205:return new SuperMapAlgoPlot.AlgoSymbol1770501(l);case 21223:return new SuperMapAlgoPlot.AlgoSymbol17800(l);case 2122301:return new SuperMapAlgoPlot.AlgoSymbol17801(l);case 2122302:return new SuperMapAlgoPlot.AlgoSymbol17802(l);case 2122303:return new SuperMapAlgoPlot.AlgoSymbol17803(l);case 2122304:return new SuperMapAlgoPlot.AlgoSymbol17804(l);case 2122305:return new SuperMapAlgoPlot.AlgoSymbol17805(l);case 2122306:return new SuperMapAlgoPlot.AlgoSymbol17806(l);case 21605:return new SuperMapAlgoPlot.AlgoSymbol20300(l);case 2160501:return new SuperMapAlgoPlot.AlgoSymbol20301(l);case 30008:return new SuperMapAlgoPlot.AlgoSymbol30008(l);case 3000801:return new SuperMapAlgoPlot.AlgoSymbol3000801(l);case 3000802:return new SuperMapAlgoPlot.AlgoSymbol3000802(l);case 3000803:return new SuperMapAlgoPlot.AlgoSymbol3000803(l);case 3000804:return new SuperMapAlgoPlot.AlgoSymbol3000804(l);case 3000805:return new SuperMapAlgoPlot.AlgoSymbol3000805(l);case 3000806:return new SuperMapAlgoPlot.AlgoSymbol3000806(l);case 3000807:return new SuperMapAlgoPlot.AlgoSymbol3000807(l);case 3000808:return new SuperMapAlgoPlot.AlgoSymbol3000808(l);case 3000809:return new SuperMapAlgoPlot.AlgoSymbol3000809(l);case 30009:return new SuperMapAlgoPlot.AlgoSymbol30009(l);case 30010:return new SuperMapAlgoPlot.AlgoSymbol30010(l);case 30011:return new SuperMapAlgoPlot.AlgoSymbol30011(l);case 3001101:return new SuperMapAlgoPlot.AlgoSymbol3001101(l);case 3001102:return new SuperMapAlgoPlot.AlgoSymbol3001102(l);case 3001103:return new SuperMapAlgoPlot.AlgoSymbol3001103(l);case 3001104:return new SuperMapAlgoPlot.AlgoSymbol3001104(l);case 3001105:return new SuperMapAlgoPlot.AlgoSymbol3001105(l);case 30012:return new SuperMapAlgoPlot.AlgoSymbol30012(l);case 30013:return new SuperMapAlgoPlot.AlgoSymbol30013(l);case 3001301:return new SuperMapAlgoPlot.AlgoSymbol3001301(l);case 3001302:return new SuperMapAlgoPlot.AlgoSymbol3001302(l);case 30014:return new SuperMapAlgoPlot.AlgoSymbol30014(l);case 30018:return new SuperMapAlgoPlot.AlgoSymbol42500(l);case 30023:return new SuperMapAlgoPlot.AlgoSymbol30023(l);case 30024:return new SuperMapAlgoPlot.AlgoSymbol30020(l);case 3002401:return new SuperMapAlgoPlot.AlgoSymbol3002001(l);case 3002402:return new SuperMapAlgoPlot.AlgoSymbol3002002(l);case 3002403:return new SuperMapAlgoPlot.AlgoSymbol3002005(l);case 30025:return new SuperMapAlgoPlot.AlgoSymbol30025(l);case 3002501:return new SuperMapAlgoPlot.AlgoSymbol3002501(l);case 3002502:return new SuperMapAlgoPlot.AlgoSymbol3002502(l);case 3002503:return new SuperMapAlgoPlot.AlgoSymbol3002503(l);case 3002504:return new SuperMapAlgoPlot.AlgoSymbol3002504(l);case 3002505:return new SuperMapAlgoPlot.AlgoSymbol3002505(l);case 30026:return new SuperMapAlgoPlot.AlgoSymbol30026(l);case 30028:return new SuperMapAlgoPlot.AlgoSymbol30030(l);case 3002801:return new SuperMapAlgoPlot.AlgoSymbol3003001(l);case 30029:return new SuperMapAlgoPlot.AlgoSymbol30031(l);case 50106:return new SuperMapAlgoPlot.AlgoSymbol21900(l);case 5010301:return new SuperMapAlgoPlot.AlgoSymbol3010301(l);case 50108:return new SuperMapAlgoPlot.AlgoSymbol50108(l);case 5010303:return new SuperMapAlgoPlot.AlgoSymbol3010303(l);case 5010304:return new SuperMapAlgoPlot.AlgoSymbol3010304(l);case 5010401:return new SuperMapAlgoPlot.AlgoSymbol5010401(l);case 5020801:return new SuperMapAlgoPlot.AlgoSymbol5020801(l);case 5020802:return new SuperMapAlgoPlot.AlgoSymbol5020802(l);case 5021711:return new SuperMapAlgoPlot.AlgoSymbol26502(l);case 5021803:return new SuperMapAlgoPlot.AlgoSymbol5021803(l);case 5022001:return new SuperMapAlgoPlot.AlgoSymbol5022001(l);case 5022002:return new SuperMapAlgoPlot.AlgoSymbol5022002(l);case 50223:return new SuperMapAlgoPlot.AlgoSymbol50223(l);case 5022301:return new SuperMapAlgoPlot.AlgoSymbol5022301(l);case 40301:case 4030101:case 4030102:case 4030103:case 4030104:return new SuperMapAlgoPlot.AlgoSymbol22000(l);case 40302:case 4030201:case 4030202:case 4030203:case 4030204:return new SuperMapAlgoPlot.AlgoSymbol40302(l);case 40303:return new SuperMapAlgoPlot.AlgoSymbol26501(l);case 4030301:return new SuperMapAlgoPlot.AlgoSymbol4030301(l);case 4030302:return new SuperMapAlgoPlot.AlgoSymbol4030302(l);case 4030303:return new SuperMapAlgoPlot.AlgoSymbol4030303(l);case 40304:return new SuperMapAlgoPlot.AlgoSymbol40304(l);case 4030401:return new SuperMapAlgoPlot.AlgoSymbol4030401(l);case 40305:return new SuperMapAlgoPlot.AlgoSymbol40305(l);case 4030501:return new SuperMapAlgoPlot.AlgoSymbol4030501(l);case 4030602:return new SuperMapAlgoPlot.AlgoSymbol4030602(l);case 4030802:case 4031202:return new SuperMapAlgoPlot.AlgoSymbol4030802(l);case 50101:return new SuperMapAlgoPlot.AlgoSymbol25201(l);case 5010101:return new SuperMapAlgoPlot.AlgoSymbol21401(l);case 50102:return new SuperMapAlgoPlot.AlgoSymbol21500(l);case 5010202:return new SuperMapAlgoPlot.AlgoSymbol21502(l);case 5010203:return new SuperMapAlgoPlot.AlgoSymbol21503(l);case 5010204:return new SuperMapAlgoPlot.AlgoSymbol21504(l);case 50103:case 5010302:return new SuperMapAlgoPlot.AlgoSymbol21600(l);case 50104:return new SuperMapAlgoPlot.AlgoSymbol21800(l);case 50107:case 5010701:return new SuperMapAlgoPlot.AlgoSymbol22000(l);case 50208:return new SuperMapAlgoPlot.AlgoSymbol23400(l);case 50209:return new SuperMapAlgoPlot.AlgoSymbol23500(l);case 50210:return new SuperMapAlgoPlot.AlgoSymbol23800(l);case 50212:case 5021101:return new SuperMapAlgoPlot.AlgoSymbol23901(l);case 5021102:return new SuperMapAlgoPlot.AlgoSymbol23902(l);case 50220:return new SuperMapAlgoPlot.AlgoSymbol28900(l);case 50221:return new SuperMapAlgoPlot.AlgoSymbol29000(l);case 50225:return new SuperMapAlgoPlot.AlgoSymbol50225(l);case 50226:return new SuperMapAlgoPlot.AlgoSymbol50226(l);case 50222:return new SuperMapAlgoPlot.AlgoSymbol29101(l);case 5022201:return new SuperMapAlgoPlot.AlgoSymbol29103(l);case 50227:return new SuperMapAlgoPlot.AlgoSymbol35200(l);case 50301:return new SuperMapAlgoPlot.AlgoSymbol1004(l);case 5030101:return new SuperMapAlgoPlot.AlgoSymbol25200(l);case 5030102:return new SuperMapAlgoPlot.AlgoSymbol25201(l);case 50302:return new SuperMapAlgoPlot.AlgoSymbol25000(l);case 50303:return new SuperMapAlgoPlot.AlgoSymbol25400(l);case 5030103:return new SuperMapAlgoPlot.AlgoSymbol5030103(l);case 5030104:return new SuperMapAlgoPlot.AlgoSymbol5030104(l);case 5030105:return new SuperMapAlgoPlot.AlgoSymbol5030105(l);case 5030107:return new SuperMapAlgoPlot.AlgoSymbol5030107(l);case 5030106:return new SuperMapAlgoPlot.AlgoSymbol1021(l);case 5030301:return new SuperMapAlgoPlot.AlgoSymbol5030301(l);case 50308:return new SuperMapAlgoPlot.AlgoSymbol26400(l);case 50309:return new SuperMapAlgoPlot.AlgoSymbol26500(l);case 50310:return new SuperMapAlgoPlot.AlgoSymbol26600(l);case 5031001:return new SuperMapAlgoPlot.AlgoSymbol26601(l);case 50312:return new SuperMapAlgoPlot.AlgoSymbol28000(l);case 50313:return new SuperMapAlgoPlot.AlgoSymbol28100(l);case 50314:return new SuperMapAlgoPlot.AlgoSymbol28200(l);case 5031401:return new SuperMapAlgoPlot.AlgoSymbol5031401(l);case 50315:return new SuperMapAlgoPlot.AlgoSymbol28300(l);case 5031501:return new SuperMapAlgoPlot.AlgoSymbol28301(l);case 50316:return new SuperMapAlgoPlot.AlgoSymbol29800(l);case 50317:return new SuperMapAlgoPlot.AlgoSymbol1006(l);case 5031701:return new SuperMapAlgoPlot.AlgoSymbol1002(l);case 50318:return new SuperMapAlgoPlot.AlgoSymbol50318(l);case 50328:return new SuperMapAlgoPlot.AlgoSymbol50328(l);case 50320:return new SuperMapAlgoPlot.AlgoSymbol30000(l);case 5010201:return new SuperMapAlgoPlot.AlgoSymbol21501(l);case 5032001:case 5032002:case 5032003:return new SuperMapAlgoPlot.AlgoSymbol5032003(l);case 5032004:return new SuperMapAlgoPlot.AlgoSymbol5032004(l);case 50321:case 5032101:case 5032102:return new SuperMapAlgoPlot.AlgoSymbol50321(l);case 50322:return new SuperMapAlgoPlot.AlgoSymbol30200(l);case 50323:return new SuperMapAlgoPlot.AlgoSymbol50323(l);case 5032201:return new SuperMapAlgoPlot.AlgoSymbol30201(l);case 50330:return new SuperMapAlgoPlot.AlgoSymbol30800(l);case 50331:return new SuperMapAlgoPlot.AlgoSymbol50331(l);case 5033001:return new SuperMapAlgoPlot.AlgoSymbol5033001(l);case 50335:return new SuperMapAlgoPlot.AlgoSymbol50335(l);case 5033501:return new SuperMapAlgoPlot.AlgoSymbol5033501(l);case 5033502:return new SuperMapAlgoPlot.AlgoSymbol5033502(l);case 50338:return new SuperMapAlgoPlot.AlgoSymbol31300(l);case 5033801:return new SuperMapAlgoPlot.AlgoSymbol31301(l);case 5033802:return new SuperMapAlgoPlot.AlgoSymbol5033802(l);case 5033803:return new SuperMapAlgoPlot.AlgoSymbol5033803(l);case 50339:return new SuperMapAlgoPlot.AlgoSymbol31400(l);case 5033901:return new SuperMapAlgoPlot.AlgoSymbol31401(l);case 50341:return new SuperMapAlgoPlot.AlgoSymbol50341(l);case 5034101:return new SuperMapAlgoPlot.AlgoSymbol5034101(l);case 5034102:return new SuperMapAlgoPlot.AlgoSymbol5034102(l);case 50342:return new SuperMapAlgoPlot.AlgoSymbol50342(l);case 5034201:return new SuperMapAlgoPlot.AlgoSymbol5034201(l);case 5034202:return new SuperMapAlgoPlot.AlgoSymbol5034202(l);case 5034203:return new SuperMapAlgoPlot.AlgoSymbol5034203(l);case 50343:return new SuperMapAlgoPlot.AlgoSymbol50343(l);case 5034301:return new SuperMapAlgoPlot.AlgoSymbol5034301(l);case 5034302:return new SuperMapAlgoPlot.AlgoSymbol5034302(l);case 5034303:return new SuperMapAlgoPlot.AlgoSymbol5034303(l);case 50344:return new SuperMapAlgoPlot.AlgoSymbol50344(l);case 50348:return new SuperMapAlgoPlot.AlgoSymbol32300(l);case 5034801:return new SuperMapAlgoPlot.AlgoSymbol5034801(l);case 50352:return new SuperMapAlgoPlot.AlgoSymbol50352(l);case 5035201:return new SuperMapAlgoPlot.AlgoSymbol5035201(l);case 5035202:return new SuperMapAlgoPlot.AlgoSymbol5035202(l);case 5035203:return new SuperMapAlgoPlot.AlgoSymbol5035203(l);case 5035204:return new SuperMapAlgoPlot.AlgoSymbol21501(l);case 5035205:return new SuperMapAlgoPlot.AlgoSymbol5035205(l);case 50354:return new SuperMapAlgoPlot.AlgoSymbol50354(l);case 5035401:return new SuperMapAlgoPlot.AlgoSymbol5035401(l);case 50355:return new SuperMapAlgoPlot.AlgoSymbol50355(l);case 5035501:return new SuperMapAlgoPlot.AlgoSymbol5035501(l);case 60104:return new SuperMapAlgoPlot.GeoTooltipBox(l);case 60106:case 6010601:case 6010602:return new SuperMapAlgoPlot.AlgoSymbol26501(l);case 60108:return new SuperMapAlgoPlot.AlgoSymbol60108(l);case 60110:return new SuperMapAlgoPlot.AlgoSymbol34700(l);case 60111:return new SuperMapAlgoPlot.AlgoSymbol22103(l);case 6011101:return new SuperMapAlgoPlot.AlgoSymbol25400(l);case 6011102:return new SuperMapAlgoPlot.AlgoSymbol22103(l);case 60115:return new SuperMapAlgoPlot.AlgoSymbol60115(l);case 6011501:return new SuperMapAlgoPlot.AlgoSymbol6011501(l);case 60117:case 6011701:case 6011702:return new SuperMapAlgoPlot.AlgoSymbol21501(l);case 60127:return new SuperMapAlgoPlot.AlgoSymbol36400(l);case 6012702:return new SuperMapAlgoPlot.AlgoSymbol6012702(l);case 60131:return new SuperMapAlgoPlot.AlgoSymbol35000(l);case 60201:return new SuperMapAlgoPlot.AlgoSymbol60301(l);case 6020101:return new SuperMapAlgoPlot.AlgoSymbol6030101(l);case 6020102:return new SuperMapAlgoPlot.AlgoSymbol6030102(l);case 6020103:return new SuperMapAlgoPlot.AlgoSymbol6030103(l);case 6020104:return new SuperMapAlgoPlot.AlgoSymbol6030104(l);case 6020105:return new SuperMapAlgoPlot.AlgoSymbol6030105(l);case 6020106:return new SuperMapAlgoPlot.AlgoSymbol6030106(l);case 6020107:return new SuperMapAlgoPlot.AlgoSymbol6030107(l);case 60202:return new SuperMapAlgoPlot.AlgoSymbol60305(l);case 6020201:return new SuperMapAlgoPlot.AlgoSymbol6030501(l);case 60203:return new SuperMapAlgoPlot.AlgoSymbol60306(l);case 6020301:return new SuperMapAlgoPlot.AlgoSymbol6030601(l);case 60207:return new SuperMapAlgoPlot.AlgoSymbol60310(l);case 6020701:return new SuperMapAlgoPlot.AlgoSymbol6031001(l);case 70109:return new SuperMapAlgoPlot.AlgoSymbol40900(l);case 70110:return new SuperMapAlgoPlot.AlgoSymbol70110(l);case 70201:return new SuperMapAlgoPlot.AlgoSymbol41100(l);case 70202:return new SuperMapAlgoPlot.AlgoSymbol41200(l);case 7020201:return new SuperMapAlgoPlot.AlgoSymbol41201(l);case 7020202:return new SuperMapAlgoPlot.AlgoSymbol41202(l);case 80202:return new SuperMapAlgoPlot.AlgoSymbol42200(l);case 80203:return new SuperMapAlgoPlot.AlgoSymbol80203(l);case 8020301:return new SuperMapAlgoPlot.AlgoSymbol8020301(l);case 90114:return new SuperMapAlgoPlot.AlgoSymbol34300(l);case 90115:return new SuperMapAlgoPlot.AlgoSymbol34400(l);case 90207:return new SuperMapAlgoPlot.AlgoSymbol35500(l);case 90212:return new SuperMapAlgoPlot.AlgoSymbol90212(l);case 90213:return new SuperMapAlgoPlot.AlgoSymbol90213(l);case 90214:return new SuperMapAlgoPlot.AlgoSymbol36800(l);case 90215:return new SuperMapAlgoPlot.AlgoSymbol90215(l);case 90216:return new SuperMapAlgoPlot.AlgoSymbol37100(l);case 90217:return new SuperMapAlgoPlot.AlgoSymbol90217(l);case 90218:return new SuperMapAlgoPlot.AlgoSymbol37300(l);case 9021801:return new SuperMapAlgoPlot.AlgoSymbol37301(l);case 90305:return new SuperMapAlgoPlot.AlgoSymbol37700(l);case 90404:return new SuperMapAlgoPlot.AlgoSymbol40100(l);case 9040401:return new SuperMapAlgoPlot.AlgoSymbol40101(l);case 90507:return new SuperMapAlgoPlot.AlgoSymbol44100(l);case 30027:return new SuperMapAlgoPlot.AlgoSymbol3002701(l);case 50332:return new SuperMapAlgoPlot.AlgoSymbol50332(l);case 5033301:return new SuperMapAlgoPlot.AlgoSymbol5033301(l);case 50336:return new SuperMapAlgoPlot.AlgoSymbol50336(l);case 5033601:return new SuperMapAlgoPlot.AlgoSymbol5033601(l);case 50337:return new SuperMapAlgoPlot.AlgoSymbol50337(l);case 5033701:return new SuperMapAlgoPlot.AlgoSymbol5033701(l);default:return new SuperMapAlgoPlot.AlgoSymbol(l)}},SuperMapAlgoPlot.WJAlgoSymbolFactory.isAccessServer=function(t,e){if(123!==t)return!0;switch(e){case 20602:case 2060201:case 2060202:case 20915:case 2091501:case 2091502:case 2091503:case 2092101:case 21003:case 21206:case 2120601:case 2120602:case 21207:case 21212:case 2121201:case 2121202:case 2121203:case 2121204:case 2121205:case 21213:case 21214:case 2121401:case 2121402:case 2121403:case 2121404:case 2121405:case 2121406:case 2121407:case 21215:case 2121501:case 2121502:case 21217:case 21220:case 2122001:case 21221:case 2122101:case 21222:case 2122201:case 2122202:case 2122203:case 2122204:case 2122205:case 21223:case 2122301:case 2122302:case 2122303:case 2122304:case 2122305:case 2122306:case 21605:case 2160501:case 30008:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 30009:case 30010:case 30011:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 30012:case 30013:case 3001301:case 3001302:case 30014:case 30018:case 30023:case 30024:case 3002401:case 3002402:case 3002403:case 30025:case 3002501:case 3002502:case 3002503:case 3002504:case 3002505:case 30026:case 30027:case 30028:case 3002801:case 30029:case 40301:case 4030101:case 4030102:case 4030103:case 4030104:case 40302:case 4030201:case 4030202:case 4030203:case 4030204:case 40303:case 4030301:case 4030302:case 4030303:case 40304:case 4030401:case 40305:case 4030501:case 4030602:case 4030802:case 4031202: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 50104:case 5010401:case 50106:case 50107:case 5010701:case 50108:case 50208:case 5020801:case 5020802:case 50209:case 50210:case 5021101:case 5021102:case 50212:case 5021711:case 5021803:case 50220:case 5022001:case 5022002:case 50221:case 50222:case 5022201:case 50223:case 5022301:case 50225:case 50226:case 50227:case 50301:case 5030101:case 5030102:case 5030103:case 5030104:case 5030105:case 5030106:case 5030107:case 50302:case 50303:case 5030301:case 50308:case 50309:case 50310:case 5031001:case 50312:case 50313:case 50314:case 5031401:case 50315:case 5031501:case 50316:case 50317:case 5031701:case 50318:case 50328:case 50320:case 5032001:case 5032002:case 5032003:case 5032004:case 50321:case 5032101:case 5032102:case 50322:case 5032201:case 50323:case 50330:case 5033001:case 50331:case 50335:case 5033501:case 5033502:case 50338:case 5033801:case 5033802:case 5033803:case 50339:case 5033901:case 50341:case 5034101:case 5034102:case 50342:case 5034201:case 5034202:case 5034203:case 50343:case 5034301:case 5034302:case 5034303:case 50344:case 50348:case 5034801:case 50352:case 5035201:case 5035202:case 5035203:case 5035204:case 5035205:case 50354:case 5035401:case 50355:case 5035501:case 60104:case 60106:case 6010601:case 6010602:case 60108:case 60110:case 60111:case 6011101:case 6011102:case 60115:case 6011501:case 60117:case 6011701:case 6011702:case 60127:case 6012702:case 60131:case 60201:case 6020101:case 6020102:case 6020103:case 6020104:case 6020105:case 6020106:case 6020107:case 60202:case 6020201:case 60203:case 6020301:case 60207:case 6020701:case 70109:case 70110:case 70201:case 70202:case 7020201:case 7020202:case 80202:case 80203:case 8020301:case 90114:case 90115:case 90207:case 90212:case 90213:case 90214:case 90215:case 90216:case 90217:case 90218:case 9021801:case 90305:case 90404:case 9040401:case 90507:case 50332:case 5033301:case 50336:case 5033601:case 50337:case 5033701:return!1;default:return!0}},SuperMapAlgoPlot.WJAlgoSymbolFactory.getSymbolWayType=function(t,e){if(123!==t)return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN;switch(e){case 21003:case 21217:case 21220:case 2122001: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 5021711:case 50220:case 50221:case 50225:case 5030102:case 50303:case 5030301:case 50309:case 50320:case 5032001:case 5032002:case 5032003:case 5032004:case 50321:case 5032101:case 5032102:case 50322:case 5032201:case 50330:case 5033001:case 5034203:case 5035201:case 5035204:case 60127:case 60131:case 20915:case 2091502:case 2092101:case 21215:case 2121501:case 2121502:case 21605:case 30010:case 30011:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 30012:case 30026:case 40302:case 4030201:case 4030202:case 4030203:case 4030204:case 50227:case 5035205:case 60201:case 6020101:case 6020102:case 6020103:case 6020104:case 6020105:case 6020106:case 6020107:case 70202:case 7020201:case 7020202:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;case 80203:case 8020301:return SuperMapAlgoPlot.AddPoint_WayType.CURVE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}},SuperMapAlgoPlot.WJAlgoSymbolFactory.getDefaultSubSymbols=function(t,e){var l=[];if(123!==t)return l;switch(e){case 21220:case 2122001:return l.push(new SuperMapAlgoPlot.SubSymbol(123,21219)),l.push(new SuperMapAlgoPlot.SubSymbol(123,2121901)),l;case 2092101:return l.push(new SuperMapAlgoPlot.SubSymbol(123,20921)),l;case 80202:return l.push(new SuperMapAlgoPlot.SubSymbol(123,2170201)),l;case 21221:case 2122101:return l.push(new SuperMapAlgoPlot.SubSymbol(123,21220)),l.push(new SuperMapAlgoPlot.SubSymbol(123,2122001)),l;case 3000801:return l.push(new SuperMapAlgoPlot.SubSymbol(123,3000106)),l;case 50209:return l.push(new SuperMapAlgoPlot.SubSymbol(100,1300)),l;case 3000802:return l.push(new SuperMapAlgoPlot.SubSymbol(123,3000107)),l;case 3000803:return l.push(new SuperMapAlgoPlot.SubSymbol(123,3000108)),l;case 3000804:return l.push(new SuperMapAlgoPlot.SubSymbol(123,20303)),l;case 2121404:case 3000805:case 3000808:case 3001301:case 4030103:case 4030202:case 5020802:case 5010201:case 50108:case 3002501:case 3002502:case 3002503:case 3002504:case 3002505:return l.push(new SuperMapAlgoPlot.SubSymbol(123,21601)),l;case 3000806:return l.push(new SuperMapAlgoPlot.SubSymbol(123,20404)),l;case 3000807:return l.push(new SuperMapAlgoPlot.SubSymbol(123,2010103)),l.push(new SuperMapAlgoPlot.SubSymbol(123,21601)),l;case 3000809:return l.push(new SuperMapAlgoPlot.SubSymbol(123,21601)),l.push(new SuperMapAlgoPlot.SubSymbol(123,30006)),l;case 30010:return l.push(new SuperMapAlgoPlot.SubSymbol(123,10305)),l;case 3001104:case 3001105:return l.push(new SuperMapAlgoPlot.SubSymbol(123,20404)),l;case 30012:return l.push(new SuperMapAlgoPlot.SubSymbol(123,30006)),l;case 3002403:return l.push(new SuperMapAlgoPlot.SubSymbol(123,21305)),l;case 40301:return l.push(new SuperMapAlgoPlot.SubSymbol(123,40201)),l;case 5021803:return l.push(new SuperMapAlgoPlot.SubSymbol(123,50218)),l;case 50225:return l.push(new SuperMapAlgoPlot.SubSymbol(123,10103)),l;case 50226:return l.push(new SuperMapAlgoPlot.SubSymbol(123,10103)),l.push(new SuperMapAlgoPlot.SubSymbol(123,10103)),l;case 5032003:case 5032102:return l.push(new SuperMapAlgoPlot.SubSymbol(123,20304)),l.push(new SuperMapAlgoPlot.SubSymbol(123,20301)),l;case 5030301:case 5022301:case 5033001:case 5034201:case 5034202:case 50342:case 6011102:return l.push(new SuperMapAlgoPlot.SubSymbol(123,10110)),l;case 5033802:return l.push(new SuperMapAlgoPlot.SubSymbol(123,20202)),l;case 5033803:return l.push(new SuperMapAlgoPlot.SubSymbol(123,20203)),l;case 5034203:return l.push(new SuperMapAlgoPlot.SubSymbol(123,2050302)),l;case 50352:return l.push(new SuperMapAlgoPlot.SubSymbol(123,50231)),l;case 5035202:return l.push(new SuperMapAlgoPlot.SubSymbol(123,21226)),l;case 5035205:return l.push(new SuperMapAlgoPlot.SubSymbol(123,2050308)),l;case 4030101:return l.push(new SuperMapAlgoPlot.SubSymbol(123,2030303)),l;case 4030102:case 4030201:return l.push(new SuperMapAlgoPlot.SubSymbol(123,20303)),l;case 4030104:case 4030203:return l.push(new SuperMapAlgoPlot.SubSymbol(123,20401)),l;case 4030204:return l.push(new SuperMapAlgoPlot.SubSymbol(123,10110)),l;case 40302:case 40303:case 4030301:case 4030302:case 4030303:return l.push(new SuperMapAlgoPlot.SubSymbol(123,40201)),l;case 5010202:return l.push(new SuperMapAlgoPlot.SubSymbol(123,2040301)),l;case 5010203:return l.push(new SuperMapAlgoPlot.SubSymbol(123,20501)),l;case 5010204:return l.push(new SuperMapAlgoPlot.SubSymbol(123,20503)),l;case 50107:return l.push(new SuperMapAlgoPlot.SubSymbol(123,10106)),l;case 5010701:return l.push(new SuperMapAlgoPlot.SubSymbol(123,5010503)),l;case 5021101:case 5021102:case 50212:return l.push(new SuperMapAlgoPlot.SubSymbol(123,2020301)),l;case 5021711:return l.push(new SuperMapAlgoPlot.SubSymbol(123,5021707)),l;case 50227:return l.push(new SuperMapAlgoPlot.SubSymbol(123,10103)),l;case 5030101:return l.push(new SuperMapAlgoPlot.SubSymbol(123,2050302)),l;case 50315:return l.push(new SuperMapAlgoPlot.SubSymbol(123,21302)),l;case 5031501:return l.push(new SuperMapAlgoPlot.SubSymbol(123,21302)),l.push(new SuperMapAlgoPlot.SubSymbol(123,21302)),l;case 5032001:case 5032101:return l.push(new SuperMapAlgoPlot.SubSymbol(123,20301)),l.push(new SuperMapAlgoPlot.SubSymbol(123,20301)),l;case 5032002:case 50321:return l.push(new SuperMapAlgoPlot.SubSymbol(123,20304)),l.push(new SuperMapAlgoPlot.SubSymbol(123,20304)),l;case 5035201:return l.push(new SuperMapAlgoPlot.SubSymbol(123,50231)),l;case 5035204:return l.push(new SuperMapAlgoPlot.SubSymbol(123,2040106)),l;case 5035401:return l.push(new SuperMapAlgoPlot.SubSymbol(123,2030111)),l;case 60106:return l.push(new SuperMapAlgoPlot.SubSymbol(123,10302)),l;case 6010601:return l.push(new SuperMapAlgoPlot.SubSymbol(123,1030201)),l;case 6010602:return l.push(new SuperMapAlgoPlot.SubSymbol(123,1030202)),l;case 6012702:return l.push(new SuperMapAlgoPlot.SubSymbol(123,21509)),l;case 60207:return l.push(new SuperMapAlgoPlot.SubSymbol(123,5023103)),l;case 6020701:return l.push(new SuperMapAlgoPlot.SubSymbol(123,2122601)),l.push(new SuperMapAlgoPlot.SubSymbol(123,2122602)),l.push(new SuperMapAlgoPlot.SubSymbol(123,2122603)),l;case 60115:case 6011501:return l.push(new SuperMapAlgoPlot.SubSymbol(123,21504)),l;case 60108:return l.push(new SuperMapAlgoPlot.SubSymbol(123,60107)),l;case 90114:return l.push(new SuperMapAlgoPlot.SubSymbol(100,6202)),l;case 90115:return l.push(new SuperMapAlgoPlot.SubSymbol(123,9010206)),l;case 90305:return l.push(new SuperMapAlgoPlot.SubSymbol(123,50304)),l;case 4030602:return l.push(new SuperMapAlgoPlot.SubSymbol(123,40306)),l;case 4030802:return l.push(new SuperMapAlgoPlot.SubSymbol(123,40308)),l;case 4031202:return l.push(new SuperMapAlgoPlot.SubSymbol(123,40312)),l;case 60111:return l.push(new SuperMapAlgoPlot.SubSymbol(123,90106)),l;case 60117:return l.push(new SuperMapAlgoPlot.SubSymbol(123,21701)),l;case 6011701:return l.push(new SuperMapAlgoPlot.SubSymbol(123,20603)),l;case 6011702:return l.push(new SuperMapAlgoPlot.SubSymbol(123,2170101)),l;case 90216:return l.push(new SuperMapAlgoPlot.SubSymbol(123,9020106)),l;default:return l}},SuperMapAlgoPlot.WJAlgoSymbolFactory.getMinEditPts=function(t,e){if(123!==t)return 0;switch(e){case 20602:case 2060201:case 2060202:case 20915:case 21003:case 21206:case 2120601:case 2120602:case 21207:case 21212:case 2121201:case 2121202:case 2121203:case 2121204:case 2121205:case 21213:case 21214:case 2121401:case 2121402:case 2121403:case 2121404:case 2121405:case 2121406:case 2121407:case 21215:case 21217:case 21221:case 21222:case 2122201:case 2122202:case 2122203:case 2122204:case 2122205:case 21223:case 2122301:case 2122302:case 2122303:case 2122304:case 2122305:case 2122306:case 21605:case 30008:case 30009:case 30010:case 30013:case 30014:case 30018:case 30027:case 30028:case 3002801:case 30029:case 40301:case 40303:case 40304:case 40305:case 50101:case 50102:case 50103:case 50104:case 50106:case 50107:case 50108:case 50208:case 50209:case 50210:case 50212:case 50220:case 50221:case 50222:case 50223:case 50226:case 50302:case 50303:case 50308:case 50309:case 50310:case 50312:case 50313:case 50314:case 50315:case 50318:case 50328:case 50320:case 50321:case 5032101:case 5032102:case 50322:case 50323:case 50330:case 50331:case 50335:case 50338:case 50339:case 50341:case 5034101:case 5034102:case 50342:case 50343:case 5034301:case 5034302:case 5034303:case 50344:case 50348:case 50354:case 5035401:case 50355:case 5035501:case 60106:case 60108:case 60115:case 6011501:case 60127:case 60131:case 60202:case 6020201:case 60203:case 6020301:case 70109:case 70110:case 70201:case 70202:case 80202:case 80203:case 8020301:case 90114:case 90115:case 90207:case 90212:case 90213:case 90214:case 90215:case 90216:case 90217:case 90218:case 9021801:case 90305:case 90404:case 90507:case 2091501:case 2091502:case 2091503:case 2092101:case 2121501:case 2121502:case 21220:case 2122001:case 2122101:case 2160501:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 3001301:case 3001302:case 30025:case 3002501:case 3002502:case 3002503:case 3002504:case 3002505:case 30026:case 4030101:case 4030102:case 4030103:case 4030104:case 4030301:case 4030302:case 4030303:case 4030401:case 4030501:case 4030602:case 4030802:case 4031202:case 5010101:case 5010201:case 5010202:case 5010203:case 5010204:case 5010301:case 5010302:case 5010303:case 5010304:case 5010401:case 5010701:case 5020802:case 5021101:case 5021102:case 5021711:case 5021803:case 5022001:case 5022002:case 5022201:case 5022301:case 5030102:case 5030103:case 5030104:case 5030301:case 5031001:case 5031401:case 5031501:case 5032001:case 5032002:case 5032003:case 5032004:case 5032201:case 5033001:case 5033501:case 5033502:case 5033801:case 5033802:case 5033803:case 5033901:case 5034201:case 5034202:case 5034203:case 5034801:case 5035201:case 5035203:case 5035204:case 6010601:case 6010602:case 60110:case 60111:case 6011101:case 6011102:case 60117:case 6011701:case 6011702:case 6012702:case 7020201:case 7020202:case 9040401:case 50332:case 5033301:case 50336:case 5033601:case 50337:case 5033701:return 2;case 30011:case 30012:case 30024:case 3002401:case 3002402:case 3002403:case 40302:case 50225:case 50227:case 50301:case 50316:case 50317:case 5031701:case 50352:case 60104:case 60201:case 6020101:case 6020102:case 6020103:case 6020104:case 6020105:case 6020106:case 6020107:case 60207:case 6020701:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 30023:case 4030201:case 4030202:case 4030203:case 4030204:case 5020801:case 5030101:case 5030105:case 5030106:case 5030107:case 5035202:case 5035205:return 3;default:return 0}},SuperMapAlgoPlot.WJAlgoSymbolFactory.getMaxEditPts=function(t,e){if(123!==t)return 0;switch(e){case 21217:case 30018:case 30025:case 3002501:case 3002502:case 3002503:case 3002504:case 3002505:case 50104:case 50302:case 50313:case 50335:case 50338:case 50339:case 60202:case 6020201:case 60203:case 6020301:case 70201:case 90114:case 90115:case 90214:case 90216:case 90217:case 90218:case 9021801:case 90507:case 2120602:case 2121402:case 2121404:case 2121405:case 2121406:case 2121407:case 2122201:case 2122202:case 2160501:case 3001301:case 30026:case 4030401:case 5010401:case 5031401:case 5031501:case 5033501:case 5033502:case 5033801:case 5033802:case 5033803:case 5033901:case 50343:case 5034301:case 5034302:case 5034303:case 50344:case 60108:case 60115:case 6011501:case 90207:case 90212:case 90215:case 30027:return 2;case 21003:case 21207:case 21223:case 2122301:case 2122302:case 2122303:case 2122304:case 2122305:case 2122306:case 30023:case 50221:case 50222:case 50331:case 50348:case 60104:case 2021101:case 2021102:case 5021101:case 5021102:case 5022201:case 5034801:case 70110:return 3;case 50312:case 50317:case 5030106:return 4;case 21220:case 2122001:case 21221:case 50225:case 50226:case 50316:case 50320:case 5032004:case 50322:case 50328:case 60127:case 2122101:case 5020801:case 5031701:case 5032001:case 5032002:case 5032003:case 50321:case 5032101:case 5032102:case 5032201:case 80203:case 8020301:case 90213:return 30;case 30024:case 3002401:case 3002402:case 3002403:case 30028:case 3002801:case 30029:case 50227:case 50352:case 60207:case 6020701:case 5022001:case 5022002:case 5030101:case 50341:case 5034101:case 5034102:case 5035202:case 5035203:return 512;case 20915:case 21212:case 2121201:case 2121202:case 2121203:case 2121204:case 2121205:case 21213:case 21214:case 2121401:case 2121403:case 21215:case 21222:case 2122203:case 2122204:case 2122205:case 21605:case 30008:case 30010:case 30011:case 30012:case 40301:case 40302:case 40303:case 50101:case 50102:case 50106:case 50107:case 50108:case 50209:case 50210:case 50220:case 50223:case 50303:case 50309:case 50315:case 50330:case 60201:case 6020101:case 6020102:case 6020103:case 6020104:case 6020105:case 6020106:case 6020107:case 70202:case 80202:case 2091501:case 2091502:case 2091503:case 2121501:case 2121502:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 4030101:case 4030102:case 4030103:case 4030104:case 4030201:case 4030202:case 4030203:case 4030204:case 5010101:case 5010701:case 5020802:case 5022301:case 5030102:case 5030301:case 5035205:case 6010601:case 6010602:case 60110:case 60111:case 6011101:case 6011102:case 60117:case 6011701:case 6011702:case 7020201:case 7020202:case 50212:return 1e3;case 20602:case 2060201:case 2060202:case 21206:case 2120601:case 30009:case 30013:case 30014:case 40304:case 40305:case 50103:case 50208:case 50301:case 50308:case 50310:case 50314:case 50318:case 50323:case 50342:case 60106:case 60131:case 70109:case 90305:case 90404:case 2092101:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 3001302:case 4030301:case 4030302:case 4030303:case 4030501:case 4030602:case 4030802:case 4031202:case 5010201:case 5010202:case 5010203:case 5010204:case 5010301:case 5010302:case 5010303:case 5010304:case 5021711:case 5021803:case 5030103:case 5030104:case 5030105:case 5030107:case 5031001:case 5033001:case 5034201:case 5034202:case 5034203:case 5035201:case 5035204:case 50354:case 5035401:case 50355:case 5035501:case 6012702:case 9040401:case 5033301:case 50336:case 5033601:case 50337:case 5033701:return 9999;case 50332:return 6;default:return 0}},SuperMapAlgoPlot.WJAlgoSymbolFactory.getDefaultStyle=function(t,e){var l={};if(123===t)switch(e){case 50108:case 30012:case 3000801:case 3001101:case 30011:case 30013:case 30010:case 3001104:case 30014:case 30009:case 30008:case 30023:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:l.color=l.strokeColor="#0000ff"}return l},SuperMapAlgoPlot.WJAlgoSymbolFactory.zoomInCalSymbol=function(){return!1}},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WJAlgoSymbolFactory=void 0;var o=l(275);e.WJAlgoSymbolFactory=o.WJAlgoSymbolFactory}]);

/***/ }),
/* 3 */
/***/ (function(module, exports) {

/*!
 * 
 *          iclient-plot-algorithms-yj.(https://iclient.supermap.io)
 *          Copyright© 2000 - 2020 SuperMap Software Co.Ltd
 *          version: v10.1.1
 *         
 */!function(t){var e={};function l(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,l),i.l=!0,i.exports}l.m=t,l.c=e,l.d=function(t,e,o){l.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},l.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l.t=function(t,e){if(1&e&&(t=l(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(l.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)l.d(o,i,function(e){return t[e]}.bind(null,i));return o},l.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return l.d(e,"a",e),e},l.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},l.p="",l(l.s=15)}([function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol610100=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.01)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue(),this.scaleValues[1]=.0625*this.getSubSymbolScaleValue());for(var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=l*this.scaleValues[0],i=l*this.scaleValues[1],n=e[0],r=0,a=1;a<e.length;a++){var p=e[a],u=SuperMapAlgoPlot.PlottingUtil.distance(n,p);switch(r%4){case 0:if(u>=o){var s=SuperMapAlgoPlot.PlottingUtil.findPointInLine(n,p,o);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[n,s]),n=s,r++,a--}break;case 1:case 3:var P=3*i;if(u>P)n=SuperMapAlgoPlot.PlottingUtil.findPointInLine(n,p,P),r++,a--;break;case 2:if(u>2*i){var c=SuperMapAlgoPlot.PlottingUtil.findPointInLine(n,p,2*i);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[new SuperMapAlgoPlot.Point(.5*(n.x+c.x),.5*(n.y+c.y)),c],{fillLimit:!0,fill:!0}),n=c,r++,a--}}}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol610100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol530200=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue(),this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var o=e*this.scaleValues[0],i=this.getLinePts(l,this.scaleValues[0],5/14),n=this.getLinePts(l,this.scaleValues[0],9/14),r=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=180*SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI;this.createSubSymbol(r,o,a);var p=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),u=180*SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)/Math.PI;this.createSubSymbol(p,o,u);var s=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,.5*o,.5*o,u+90);this.addScalePoint(s);for(var P=[],c=[],g=[],S=0;S<=i.startIndex;S++)P.push(l[S]);if(P.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P),i.endIndex<=n.startIndex){c.push(i.endPt);for(var h=i.endIndex+1;h<=n.startIndex;h++)c.push(l[h]);c.push(n.startPt),2===l.length&&SuperMapAlgoPlot.PlottingUtil.distance(l[0],i.endPt)<=SuperMapAlgoPlot.PlottingUtil.distance(l[0],n.startPt)&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c),l.length>2&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c)}g.push(n.endPt);for(var f=n.endIndex+1;f<l.length;f++)g.push(l[f]);this.addArrow(g,this.scaleValues[1]),this.finish()}}},{key:"createSubSymbol",value:function(t,e,l){var o=this.getSubSymbolPts1(e);this.createSubSymbol1(t,e,l,o);var i=this.getSubSymbolPts2(e);this.createSubSymbol2(t,e,l,i)}},{key:"createSubSymbol2",value:function(t,e,l,o){for(var i=[],n=0;n<o.length;n++){var r=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,o[n],l);i.push(r)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i)}},{key:"createSubSymbol1",value:function(t,e,l,o){for(var i=[],n=0;n<o.length;n++){var r=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,o[n],l);i.push(r)}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,i)}},{key:"getSubSymbolPts1",value:function(t){var e=t/2,l=[];return l.push(new SuperMapAlgoPlot.Point(2*e,0)),l.push(new SuperMapAlgoPlot.Point(0,e)),l.push(new SuperMapAlgoPlot.Point(-2*e,0)),l.push(new SuperMapAlgoPlot.Point(0,-e)),l}},{key:"getSubSymbolPts2",value:function(t){var e=t/2,l=[];return l.push(new SuperMapAlgoPlot.Point(-e,e)),l.push(new SuperMapAlgoPlot.Point(e,e)),l}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(9*i/14,o),r=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;r<=.3&&(this.scaleValues[0]=r)}}}]),e}();SuperMapAlgoPlot.AlgoSymbol530200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol530100=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 l=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===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue(l),this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var o=this.getLinePts(e,this.scaleValues[0]),i=new SuperMapAlgoPlot.Point((o.startPt.x+o.endPt.x)/2,(o.startPt.y+o.endPt.y)/2),n=180*SuperMapAlgoPlot.PlottingUtil.radian(o.startPt,o.endPt)/Math.PI,r=SuperMapAlgoPlot.PlottingUtil.distance(o.startPt,o.endPt);if(0<this.subSymbols.length)this.computeSubSymbol(this.subSymbols[0],i,r,n-90);else{var a=new SuperMapAlgoPlot.Point(-.5*r,.25*r),p=new SuperMapAlgoPlot.Point(-.5*r,-.25*r),u=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(i,a,n),s=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(i,p,n);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u,s]);var P=new SuperMapAlgoPlot.Point(-.5*r,.125*r),c=new SuperMapAlgoPlot.Point(.25*r,.125*r),g=new SuperMapAlgoPlot.Point(.5*r,0),S=new SuperMapAlgoPlot.Point(.25*r,-.125*r),h=new SuperMapAlgoPlot.Point(-.5*r,-.125*r),f=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(i,P,n),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(i,c,n),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(i,g,n),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(i,S,n),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(i,h,n);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[f,y,A,M,b])}for(var d=[],m=[],v=0;v<=o.startIndex;v++)d.push(e[v]);if(d.push(o.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d),o.endIndex<=e.length){m.push(o.endPt);for(var O=o.endIndex+1;O<=e.length-1;O++)m.push(e[O]);this.addDovetailArrow(m,this.scaleValues[1])}var U=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,.5*r,.5*r,n+90);this.addScalePoint(U,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMapAlgoPlot.AlgoSymbol530100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol520500=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.01)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue(l),this.scaleValues[1]=.15*this.getSubSymbolScaleValue(l));var o=.5*l,i=180*SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])/Math.PI,n=l*this.scaleValues[0],r=Math.sqrt(n*n+n*n)+n/2,a=o-r,p=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,e).pts,u=this.computeXPts(p,n,e,i),s=[];s.push(new SuperMapAlgoPlot.Point(u[0].x,u[0].y)),s.push(new SuperMapAlgoPlot.Point(u[1].x,u[1].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s);var P=[];P.push(new SuperMapAlgoPlot.Point(u[2].x,u[2].y)),P.push(new SuperMapAlgoPlot.Point(u[3].x,u[3].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var c=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(o,e).pts,g=this.computeXPts(c,n,e,i),S=[];S.push(new SuperMapAlgoPlot.Point(g[0].x,g[0].y)),S.push(new SuperMapAlgoPlot.Point(g[1].x,g[1].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S);var h=[];h.push(new SuperMapAlgoPlot.Point(g[2].x,g[2].y)),h.push(new SuperMapAlgoPlot.Point(g[3].x,g[3].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var f=o+r,y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(f,e).pts,A=this.computeXPts(y,n,e,i),M=[];M.push(new SuperMapAlgoPlot.Point(A[0].x,A[0].y)),M.push(new SuperMapAlgoPlot.Point(A[1].x,A[1].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M);var b=[];b.push(new SuperMapAlgoPlot.Point(A[2].x,A[2].y)),b.push(new SuperMapAlgoPlot.Point(A[3].x,A[3].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b);var d=o-2*r,m=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(d,e);if(m.bfind){for(var v=m.index,O=m.pts,U=[],w=0;w<=v;w++)U.push(e[w]);U.push(O);var L=l*this.scaleValues[1];this.computeDashLines(U,L)}var _=o+2*r,x=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(_,e);if(x.bfind){var V=x.index,Y=x.pts,E=[];if(V<=e.length){E.push(Y);for(var T=V+1;T<=e.length-1;T++)E.push(e[T])}this.computeDashLines(E,L)}var j=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],r,r,90);this.addScalePoint(j,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=.5*SuperMapAlgoPlot.PlottingUtil.distance(l[0],e)/i;n>=.12&&(n=.12),this.scaleValues[0]=n}}},{key:"computeXPts",value:function(t,e,l,o){var i=[],n=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,o+45),r=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,o+225);i.push(n),i.push(r);var a=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,o+135),p=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,o+315);return i.push(a),i.push(p),i}},{key:"computeDashLines",value:function(t,e){for(var l=this.computeDashLine(2*e,2*e,t),o=.5*e,i=0;i<l.length;i++){var n=l[i];if(!((n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n)).length<=1)){var r=new SuperMapAlgoPlot.Point(n[0].x,n[0].y),a=new SuperMapAlgoPlot.Point(n[n.length-1].x,n[n.length-1].y),p=180*SuperMapAlgoPlot.PlottingUtil.radian(r,a)/Math.PI,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,o,o,p+90),s=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,o,o,p+270),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,o,o,p+90),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,o,o,p+270),g=[];g.push(u),g.push(s),g.push(c),g.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,{fillLimit:!0,fill:!0})}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol520500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol520300=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.05):1==this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!1);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[0]=.8*this.getSubSymbolScaleValue(l),this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var o=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,.3*l);if(-1!==o.index){var i=o.pt,n=o.index,r=l*this.scaleValues[0]*.5,a=SuperMapAlgoPlot.PlottingUtil.radian(i,e[n+1])*SuperMapAlgoPlot.PlottingUtil.RTOD,p=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,r,r,a+90),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,r,r,a-90),s=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,i,p),P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,i,u);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s.pntLeft,s.pntRight]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[P.pntLeft,P.pntRight]);var c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,.6*l);if(-1!==c.index){var g=c.pt,S=c.index,h=SuperMapAlgoPlot.PlottingUtil.radian(g,e[S+1])*SuperMapAlgoPlot.PlottingUtil.RTOD,f=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,r,r,h+90),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,r,r,h-90),A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,g,f),M=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,g,y);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[A.pntLeft,A.pntRight]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[M.pntLeft,M.pntRight]),this.addDovetailArrow(e,this.scaleValues[1]),this.addScalePoint(y,0),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.6*i,o);if(!n.bfind)return;var r=2*SuperMapAlgoPlot.PlottingUtil.distance(e,n.pts);this.scaleValues[0]=r/i}}}]),e}();SuperMapAlgoPlot.AlgoSymbol520300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol520200=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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)).apply(this,arguments))}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,SuperMapAlgoPlot.AlgoSymbol520100),o(e,[{key:"computeSubSymbol",value:function(t,e){var l=.5*e,o=[];o.push(t),o.push(new SuperMapAlgoPlot.Point(t.x+l,t.y)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,o);var i=.6*l,n=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,i,i,60),r=new SuperMapAlgoPlot.Point(t.x-.3*l,t.y),a=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,i,i,240),p=new SuperMapAlgoPlot.Point(t.x+.3*l,t.y),u=[];u.push(n),u.push(r),u.push(t),u.push(p),u.push(a),u.push(t),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,u,{fillLimit:!0,fill:!0})}}]),e}();SuperMapAlgoPlot.AlgoSymbol520200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol520100=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.03)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());for(var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=this.scaleValues[1]*e,o=this.scaleValues[0]*e,i=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,o).pt,n=[],r=0;r<t.length;r++){if(r===t.length-1){n.push(t[r]);break}n.push(t[r]);var a=[];if(this.intersectLineAndCircle(t[r],t[r+1],i,l,a))for(var p=0;p<a.length;p++)n.push(a[p])}for(var u=[],s=0;s<n.length;s++){if(s===n.length-1){0!==u.length&&(u.push(n[s]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),u=[]);break}this.isLineInCircle(n[s],n[s+1],i,l)?0!==u.length&&(u.push(n[s]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),u=[]):u.push(n[s])}this.computeSubSymbol(i,2*l),this.addScalePoint(i);var P=new SuperMapAlgoPlot.Point(i.x+l,i.y);SuperMapAlgoPlot.PlottingUtil.rotateAngle(i,30,P),this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t){for(var i=0,n=-1,r=null,a=0;a<l.length-1;a++){var p=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,l[a],l[a+1]);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(p.projectPoint,l[a],l[a+1])){var u=SuperMapAlgoPlot.PlottingUtil.distance(p.projectPoint,e);0===i?(i=u,n=a,r=p.projectPoint):u<i&&(i=u,n=a,r=p.projectPoint)}}if(-1===n)return;for(var s=0,P=0;P<n;P++)s+=SuperMapAlgoPlot.PlottingUtil.distance(l[P],l[P+1]);var c=(s+=SuperMapAlgoPlot.PlottingUtil.distance(r,l[n]))/o;c>1&&(c=1),this.scaleValues[0]=c}if(1===t){var g=this.scaleValues[0]*o,S=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,g);if(-1===S.index)return;var h=SuperMapAlgoPlot.PlottingUtil.distance(S.pt,e)/o;h>.4&&(h=.4),this.scaleValues[1]=h}}}},{key:"intersectLineAndCircle",value:function(t,e,l,o,i){for(var n=!1,r=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[l,new SuperMapAlgoPlot.Point(l.x+o,l.y)]),a=0;a<r.length-1;a++){var p=new SuperMapAlgoPlot.Point(0,0);SuperMapAlgoPlot.PlottingUtil.intersectLineSegs(t,e,r[a],r[a+1],p)&&(n=!0,i.push(p))}if(t.x>e.x){for(var u=0;u<i.length&&u!==i.length-1;u++)if(i[u].x<i[u+1].x){var s=i[u];i[u]=i[u+1],i[u+1]=s}}else if(t.x<e.x){for(var P=0;P<i.length&&P!==i.length-1;P++)if(i[P].x>i[P+1].x){var c=i[P];i[P]=i[P+1],i[P+1]=c}}else if(t.y>e.y){for(var g=0;g<i.length&&g!==i.length-1;g++)if(i[g].y<i[g+1].y){var S=i[g];i[g]=i[g+1],i[g+1]=S}}else if(t.y<e.y)for(var h=0;h<i.length&&h!==i.length-1;h++)if(i[h].y>i[h+1].y){var f=i[h];i[h]=i[h+1],i[h+1]=f}return n}},{key:"isLineInCircle",value:function(t,e,l,o){var i=new SuperMapAlgoPlot.Point((t.x+e.x)/2,(t.y+e.y)/2);return SuperMapAlgoPlot.PlottingUtil.distance(i,l)<o}},{key:"computeSubSymbol",value:function(t,e){var l=.5*e,o=[];o.push(t),o.push(new SuperMapAlgoPlot.Point(t.x+l,t.y)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,o);var i=[];i.push(new SuperMapAlgoPlot.Point(t.x-l,t.y)),i.push(new SuperMapAlgoPlot.Point(t.x+l,t.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i);var n=new SuperMapAlgoPlot.Point(t.x+.75*l,t.y),r=.8*l,a=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,r,r,155),p=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,r,r,205),u=[];u.push(a);var s=r*(Math.cos(25*SuperMapAlgoPlot.PlottingUtil.DTOR)-Math.cos(75*SuperMapAlgoPlot.PlottingUtil.DTOR));u.push(new SuperMapAlgoPlot.Point(n.x-s,n.y)),u.push(p),u.push(n),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,u,{fillLimit:!0,fill:!0})}}]),e}();SuperMapAlgoPlot.AlgoSymbol520100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol510100=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.0375),l.scaleValues.push(.025)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue(l),this.scaleValues[1]=.35*this.getSubSymbolScaleValue());var o=.5*l,i=180*SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])/Math.PI,n=l*this.scaleValues[0],r=Math.sqrt(n*n+n*n)+n/2,a=o-r,p=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,e).pts,u=this.computeXPts(p,n,e,i),s=[];s.push(new SuperMapAlgoPlot.Point(u[0].x,u[0].y)),s.push(new SuperMapAlgoPlot.Point(u[1].x,u[1].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s);var P=[];P.push(new SuperMapAlgoPlot.Point(u[2].x,u[2].y)),P.push(new SuperMapAlgoPlot.Point(u[3].x,u[3].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var c=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(o,e).pts,g=this.computeXPts(c,n,e,i),S=[];S.push(new SuperMapAlgoPlot.Point(g[0].x,g[0].y)),S.push(new SuperMapAlgoPlot.Point(g[1].x,g[1].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S);var h=[];h.push(new SuperMapAlgoPlot.Point(g[2].x,g[2].y)),h.push(new SuperMapAlgoPlot.Point(g[3].x,g[3].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var f=o+r,y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(f,e).pts,A=this.computeXPts(y,n,e,i),M=[];M.push(new SuperMapAlgoPlot.Point(A[0].x,A[0].y)),M.push(new SuperMapAlgoPlot.Point(A[1].x,A[1].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M);var b=[];b.push(new SuperMapAlgoPlot.Point(A[2].x,A[2].y)),b.push(new SuperMapAlgoPlot.Point(A[3].x,A[3].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b);for(var d=o-2*r,m=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(d,e),v=m.index,O=m.pts,U=[],w=0;w<=v;w++)U.push(e[w]);U.push(O),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U);var L=o+2*r,_=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(L,e),x=_.index,V=_.pts,Y=[];if(x<=e.length){Y.push(V);for(var E=x+1;E<=e.length-1;E++)Y.push(e[E])}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,Y);var T=e[0],j=e[1],I=e[e.length-2],C=e[e.length-1],B=l*this.scaleValues[1],N=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(B,j,T),R=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(B,I,C),D=[];D.push(T),D.push(N.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,D);var k=[];k.push(C),k.push(R.pntLeft),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,k);var z=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],r,r,90);this.addScalePoint(z,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=.5*SuperMapAlgoPlot.PlottingUtil.distance(l[0],e)/i;n>=.12&&(n=.12),this.scaleValues[0]=n}}},{key:"computeXPts",value:function(t,e,l,o){var i=[],n=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,o+45),r=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,o+225);i.push(n),i.push(r);var a=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,o+135),p=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,o+315);return i.push(a),i.push(p),i}}]),e}();SuperMapAlgoPlot.AlgoSymbol510100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29101=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol29100),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.25*this.getSubSymbolScaleValue());var l=[];l=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);for(var o=0;o<4;o++){var i=o*(l.length-1)/4,n=new SuperMapAlgoPlot.Point(l[i].x,l[i].y),r=new SuperMapAlgoPlot.Point(l[i+1].x,l[i+1].y),a=new SuperMapAlgoPlot.Point((n.x+r.x)/2,(n.y+r.y)/2),p=SuperMapAlgoPlot.PlottingUtil.radian(a,r)*SuperMapAlgoPlot.PlottingUtil.RTOD,u=this.scaleValues[0]*e/2,s=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,u,u,p),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,4*u,4*u,p+270),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,u,u,p+180);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,P,c])}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol29101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29100=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 l=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===l.scaleValues.length&&l.scaleValues.push(.05),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.25*this.getSubSymbolScaleValue());var l=[];l=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);for(var o=0;o<4;o++){var i=Math.floor(o*l.length/4),n=new SuperMapAlgoPlot.Point(l[i].x,l[i].y),r=new SuperMapAlgoPlot.Point(l[i+1].x,l[i+1].y),a=new SuperMapAlgoPlot.Point((n.x+r.x)/2,(n.y+r.y)/2),p=SuperMapAlgoPlot.PlottingUtil.radian(r,a)*SuperMapAlgoPlot.PlottingUtil.RTOD,u=this.scaleValues[0]*e/2,s=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,u,u,p),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,4*u,4*u,p+270),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,u,u,p+180);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,P,c],{lineTypeLimit:!0,surroundLineLimit:!0})}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol29100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),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 l=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===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(.185)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);for(var l=0,o=0,i=e.length-1;o<i;o++)l+=SuperMapAlgoPlot.PlottingUtil.distance(e[o],e[o+1]);for(var n=0,r=0,a=t.length-1;r<a;r++)n+=SuperMapAlgoPlot.PlottingUtil.distance(t[r],t[r+1]);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());for(var p=this.scaleValues[0]*n,u=this.scaleValues[1],s=this.scaleValues[2]*n,P=.3*s,c=s;c<l;c+=s){var g=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(c,e);if(-1===g.index)return void this.finish();var S=c+P,h=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(S,e);if(-1===h.index)return void this.finish();var f=[],y=[];f.push(g.pts);var A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(p,e[g.index],g.pts);0===u?f.push(new SuperMapAlgoPlot.Point(A.pntLeft.x,A.pntLeft.y)):f.push(new SuperMapAlgoPlot.Point(A.pntRight.x,A.pntRight.y)),y.push(h.pts);var M=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(p,e[h.index],h.pts);if(0===u?y.push(new SuperMapAlgoPlot.Point(M.pntLeft.x,M.pntLeft.y)):y.push(new SuperMapAlgoPlot.Point(M.pntRight.x,M.pntRight.y)),s===c){this.scalePoints=[];var b=new SuperMapAlgoPlot.Point(f[1].x,f[1].y);b.isScalePoint=!0,b.tag=0,this.scalePoints.push(b),(b=new SuperMapAlgoPlot.Point(f[0].x,f[0].y)).isScalePoint=!0,b.tag=1,this.scalePoints.push(b)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;for(var o=0,i=0,n=l.length-1;i<n;i++)o+=SuperMapAlgoPlot.PlottingUtil.distance(l[i],l[i+1]);var r=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),a=new SuperMapAlgoPlot.Point(e.x,e.y);if(0===t){var p=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(r,o*this.scaleValues[2]);if(-1===p.index)return;var u=SuperMapAlgoPlot.PlottingUtil.distance(p.pt,a)/o,s=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(r[0],r[1],e);this.scaleValues[1]=s?1:0,this.scaleValues[0]=u}else if(1===t){for(var P=0,c=-1,g=[],S=0,h=r.length-1;S<h;S++){var f=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,r[S],r[S+1]);if(f.isOnline){var y=SuperMapAlgoPlot.PlottingUtil.distance(f.projectPoint,this.controlPoints[1]);0==P?(P=y,c=S,g=e):y<P&&(P=y,c=S,g=e)}}if(-1==c)return;for(var A=0,M=0,b=c-1;M<b;M++)A+=SuperMapAlgoPlot.PlottingUtil.distance(r[M],r[M+1]);var d=(A+=SuperMapAlgoPlot.PlottingUtil.distance(g,r[c]))/o;d>.7&&(d=.7),this.scaleValues[2]=d}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15804=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.029615),l.scaleValues.push(1),l.scaleValues.push(.12)),l}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,SuperMapAlgoPlot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,r=!1;r=0===this.scaleValues[1];var a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0!==a){for(var p=[],u=0;u<=a;u+=n){var s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,u);if(!(s.index<0)){var P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[s.index+1],s.pt);if(r?p.push(P.pntRight):p.push(P.pntLeft),Math.abs(u)<=1e-6){this.scalePoints=[];var c=new SuperMapAlgoPlot.Point(p[0].x,p[0].y);c.isScalePoint=!0,c.tag=0,this.scalePoints.push(c)}else Math.abs(2*n-u)<=1e-6&&((c=new SuperMapAlgoPlot.Point(s.pt.x,s.pt.y)).isScalePoint=!0,c.tag=1,this.scalePoints.push(c));r=!r}}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p);for(var g=p.length,S=0,h=0;h<g-1;++h){var f=new SuperMapAlgoPlot.Point(p[h].x,p[h].y),y=new SuperMapAlgoPlot.Point(p[h+1].x,p[h+1].y);S=.3*SuperMapAlgoPlot.PlottingUtil.distance(f,y);var A=[],M=new SuperMapAlgoPlot.Point(.5*(f.x+y.x),.5*(f.y+y.y)),b=SuperMapAlgoPlot.PlottingUtil.dirAngle(f,y)*SuperMapAlgoPlot.PlottingUtil.RTOD,d=SuperMapAlgoPlot.PlottingUtil.circlePoint(M,S,S,b+90),m=1.5*S,v=SuperMapAlgoPlot.PlottingUtil.circlePoint(d,m,m,b+260),O=SuperMapAlgoPlot.PlottingUtil.circlePoint(d,m,m,b+280);A.push(v),A.push(d),A.push(O),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A)}this.finish()}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15804=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15800=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 l=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===l.scaleValues.length&&(l.scaleValues.push(.04),l.scaleValues.push(1),l.scaleValues.push(.12)),l}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,SuperMapAlgoPlot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,r=!1;r=0===this.scaleValues[1];var a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0!==a){for(var p=[],u=0;u<=a;u+=n){var s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,u);if(!(s.index<0)){var P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,e[s.index+1],s.pt);if(r?p.push(P.pntRight):p.push(P.pntLeft),Math.abs(u)<=1e-6){this.scalePoints=[];var c=new SuperMapAlgoPlot.Point(p[0].x,p[0].y);c.isScalePoint=!0,c.tag=0,this.scalePoints.push(c)}else Math.abs(2*n-u)<=1e-6&&((c=new SuperMapAlgoPlot.Point(s.pt.x,s.pt.y)).isScalePoint=!0,c.tag=1,this.scalePoints.push(c));r=!r}}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p);for(var g=p.length,S=0,h=0;h<g-1;++h){var f=new SuperMapAlgoPlot.Point(p[h].x,p[h].y),y=new SuperMapAlgoPlot.Point(p[h+1].x,p[h+1].y);S=.3*SuperMapAlgoPlot.PlottingUtil.distance(f,y);var A=[],M=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.5,p[h],p[h+1]),b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*S,p[h],M);A.push(b.pntLeft),A.push(b.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A)}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t){var n=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(1,o[1],o[0]),r=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,n.pntRight,n.pntLeft),a=SuperMapAlgoPlot.PlottingUtil.distance(r.projectPoint,l[0]);this.scaleValues[0]=a/i;var p=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[0],o[1],e);this.scaleValues[1]=p?1:0}else{for(var u,s=-1,P=0,c=o.length-1;P<c;P++){var g=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,o[P],o[P+1]);if(g.isOnline){u=g.projectPoint,s=P;break}}if(-1===s)return void(this.scaleValues[2]=.05);for(var S=[],h=0,f=s;h<=f;h++)S.push(o[h]);S.push(u);var y=SuperMapAlgoPlot.PlottingUtil.polylineDistance(S)/i;if(y>=1)return;this.scaleValues[2]=y}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol15800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbol610100=e.AlgoSymbol530200=e.AlgoSymbol530100=e.AlgoSymbol520500=e.AlgoSymbol520300=e.AlgoSymbol520200=e.AlgoSymbol520100=e.AlgoSymbol510100=e.AlgoSymbol29101=e.AlgoSymbol29100=e.AlgoSymbol15200=e.AlgoSymbol15804=e.AlgoSymbol15800=void 0;var o=l(12),i=l(11),n=l(10),r=l(9),a=l(8),p=l(7),u=l(6),s=l(5),P=l(4),c=l(3),g=l(2),S=l(1),h=l(0);e.AlgoSymbol15800=o.AlgoSymbol15800,e.AlgoSymbol15804=i.AlgoSymbol15804,e.AlgoSymbol15200=n.AlgoSymbol15200,e.AlgoSymbol29100=r.AlgoSymbol29100,e.AlgoSymbol29101=a.AlgoSymbol29101,e.AlgoSymbol510100=p.AlgoSymbol510100,e.AlgoSymbol520100=u.AlgoSymbol520100,e.AlgoSymbol520200=s.AlgoSymbol520200,e.AlgoSymbol520300=P.AlgoSymbol520300,e.AlgoSymbol520500=c.AlgoSymbol520500,e.AlgoSymbol530100=g.AlgoSymbol530100,e.AlgoSymbol530200=S.AlgoSymbol530200,e.AlgoSymbol610100=h.AlgoSymbol610100},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.YJAlgoSymbolFactory=void 0,l(13);e.YJAlgoSymbolFactory=SuperMapAlgoPlot.YJAlgoSymbolFactory=SuperMapAlgoPlot.YJAlgoSymbolFactory||{};SuperMapAlgoPlot.YJAlgoSymbolFactory.getAlgoSymbol=function(t,e,l){if(999!==t)return new SuperMapAlgoPlot.AlgoSymbol(l);switch(e){case 510100:return new SuperMapAlgoPlot.AlgoSymbol510100(l);case 510200:return new SuperMapAlgoPlot.AlgoSymbol15804(l);case 520100:return new SuperMapAlgoPlot.AlgoSymbol520100(l);case 520200:return new SuperMapAlgoPlot.AlgoSymbol520200(l);case 520300:return new SuperMapAlgoPlot.AlgoSymbol520300(l);case 520400:return new SuperMapAlgoPlot.AlgoSymbol15200(l);case 520500:return new SuperMapAlgoPlot.AlgoSymbol520500(l);case 530100:return new SuperMapAlgoPlot.AlgoSymbol530100(l);case 530200:return new SuperMapAlgoPlot.AlgoSymbol530200(l);case 610100:return new SuperMapAlgoPlot.AlgoSymbol610100(l);case 610200:return new SuperMapAlgoPlot.AlgoSymbol29100(l);case 610300:return new SuperMapAlgoPlot.AlgoSymbol29101(l);default:return new SuperMapAlgoPlot.AlgoSymbol(l)}},SuperMapAlgoPlot.YJAlgoSymbolFactory.isAccessServer=function(t,e){if(999!==t)return!0;switch(e){case 510100:case 510200:case 520100:case 520200:case 520300:case 520400:case 520500:case 530100:case 530200:case 610100:case 610200:case 610300:return!1;default:return!0}},SuperMapAlgoPlot.YJAlgoSymbolFactory.getSymbolWayType=function(t,e){if(999===t)switch(e){case 510100:case 510200:case 520100:case 520200:case 520300:case 520400:case 520500:case 530100:case 530200:case 610100:case 610200:case 610300:return SuperMapAlgoPlot.AddPoint_WayType.CURVE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}},SuperMapAlgoPlot.YJAlgoSymbolFactory.getDefaultSubSymbols=function(){return[]},SuperMapAlgoPlot.YJAlgoSymbolFactory.getMinEditPts=function(t,e){if(999!==t)return 0;switch(e){case 510100:case 510200:case 520100:case 520200:case 520300:case 520400:case 520500:case 530100:case 530200:case 610100:case 610200:case 610300:return 2;default:return 0}},SuperMapAlgoPlot.YJAlgoSymbolFactory.getMaxEditPts=function(t,e){if(999!==t)return 0;switch(e){case 510100:case 510200:case 520100:case 520200:case 520300:case 520400:case 520500:case 530100:case 530200:case 610100:return 9999;case 610200:case 610300:return 3;default:return 0}},SuperMapAlgoPlot.YJAlgoSymbolFactory.getDefaultStyle=function(){return{}},SuperMapAlgoPlot.YJAlgoSymbolFactory.zoomInCalSymbol=function(){return!1}},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.YJAlgoSymbolFactory=void 0;var o=l(14);e.YJAlgoSymbolFactory=o.YJAlgoSymbolFactory}]);

/***/ }),
/* 4 */
/***/ (function(module, exports) {

/*!
 * 
 *          iclient-plot-webgl-common.(https://iclient.supermap.io)
 *          Copyright© 2000 - 2020 SuperMap Software Co.Ltd
 *          version: v10.1.1
 *         
 */!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=138)}([function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e.SuperMap=window.SuperMap=window.SuperMap||{}).Widgets=window.SuperMap.Widgets||{}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Util=void 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},i=o(0);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
                                                                                                                                                                                                                                                                               * This program are made available under the terms of the Apache License, Version 2.0
                                                                                                                                                                                                                                                                               * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/o(2);var n,r,a;e.Util=i.SuperMap.Util=i.SuperMap.Util||{};i.SuperMap.Util.extend=function(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},i.SuperMap.Util.copy=function(t,e){var o;if(t=t||{},e)for(var l in t)void 0!==(o=e[l])&&(t[l]=o)},i.SuperMap.Util.reset=function(t){for(var e in t=t||{})if(t.hasOwnProperty(e)){if("object"===l(t[e])&&t[e]instanceof Array){for(var o in t[e])t[e][o].destroy&&t[e][o].destroy();t[e].length=0}else"object"===l(t[e])&&t[e]instanceof Object&&t[e].destroy&&t[e].destroy();t[e]=null}},i.SuperMap.Util.getElement=function(){for(var t=[],e=0,o=arguments.length;e<o;e++){var l=arguments[e];if("string"==typeof l&&(l=document.getElementById(l)),1===arguments.length)return l;t.push(l)}return t},i.SuperMap.Util.isElement=function(t){return!(!t||1!==t.nodeType)},i.SuperMap.Util.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},i.SuperMap.Util.removeItem=function(t,e){for(var o=t.length-1;o>=0;o--)t[o]===e&&t.splice(o,1);return t},i.SuperMap.Util.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},i.SuperMap.Util.modifyDOMElement=function(t,e,o,l,i,n,r,a){e&&(t.id=e),o&&(t.style.left=o.x+"px",t.style.top=o.y+"px"),l&&(t.style.width=l.w+"px",t.style.height=l.h+"px"),i&&(t.style.position=i),n&&(t.style.border=n),r&&(t.style.overflow=r),parseFloat(a)>=0&&parseFloat(a)<1?(t.style.filter="alpha(opacity="+100*a+")",t.style.opacity=a):1===parseFloat(a)&&(t.style.filter="",t.style.opacity="")},i.SuperMap.Util.applyDefaults=function(t,e){t=t||{};var o="function"==typeof window.Event&&e instanceof window.Event;for(var l in e)(void 0===t[l]||!o&&e.hasOwnProperty&&e.hasOwnProperty(l)&&!t.hasOwnProperty(l))&&(t[l]=e[l]);return!o&&e&&e.hasOwnProperty&&e.hasOwnProperty("toString")&&!t.hasOwnProperty("toString")&&(t.toString=e.toString),t},i.SuperMap.Util.getParameterString=function(t){var e=[];for(var o in t){var i=t[o];if(null!=i&&"function"!=typeof i){var n;if("object"===(void 0===i?"undefined":l(i))&&i.constructor===Array){for(var r,a=[],s=0,u=i.length;s<u;s++)r=i[s],a.push(encodeURIComponent(null===r||void 0===r?"":r));n=a.join(",")}else n=encodeURIComponent(i);e.push(encodeURIComponent(o)+"="+n)}}return e.join("&")},i.SuperMap.Util.urlAppend=function(t,e){var o=t;if(e){var l=(t+" ").split(/[?&]/);o+=" "===l.pop()?e:l.length?"&"+e:"?"+e}return o},i.SuperMap.Util.DEFAULT_PRECISION=14,i.SuperMap.Util.toFloat=function(t,e){return null==e&&(e=i.SuperMap.Util.DEFAULT_PRECISION),"number"!=typeof t&&(t=parseFloat(t)),0===e?t:parseFloat(t.toPrecision(e))},i.SuperMap.Util.rad=function(t){return t*Math.PI/180},i.SuperMap.Util.getParameters=function(t){t=null===t||void 0===t?window.location.href:t;var e="";if(i.SuperMap.String.contains(t,"?")){var o=t.indexOf("?")+1,l=i.SuperMap.String.contains(t,"#")?t.indexOf("#"):t.length;e=t.substring(o,l)}for(var n={},r=e.split(/[&;]/),a=0,s=r.length;a<s;++a){var u=r[a].split("=");if(u[0]){var p=u[0];try{p=decodeURIComponent(p)}catch(t){p=unescape(p)}var c=(u[1]||"").replace(/\+/g," ");try{c=decodeURIComponent(c)}catch(t){c=unescape(c)}1==(c=c.split(",")).length&&(c=c[0]),n[p]=c}}return n},i.SuperMap.Util.lastSeqID=0,i.SuperMap.Util.createUniqueID=function(t){return null==t&&(t="id_"),i.SuperMap.Util.lastSeqID+=1,t+i.SuperMap.Util.lastSeqID},i.SuperMap.INCHES_PER_UNIT={inches:1,ft:12,mi:63360,m:39.3701,km:39370.1,dd:4374754,yd:36},i.SuperMap.INCHES_PER_UNIT.in=i.SuperMap.INCHES_PER_UNIT.inches,i.SuperMap.INCHES_PER_UNIT.degrees=i.SuperMap.INCHES_PER_UNIT.dd,i.SuperMap.INCHES_PER_UNIT.nmi=1852*i.SuperMap.INCHES_PER_UNIT.m,i.SuperMap.METERS_PER_INCH=.0254000508001016,i.SuperMap.Util.extend(i.SuperMap.INCHES_PER_UNIT,{Inch:i.SuperMap.INCHES_PER_UNIT.inches,Meter:1/i.SuperMap.METERS_PER_INCH,Foot:.3048006096012192/i.SuperMap.METERS_PER_INCH,IFoot:.3048/i.SuperMap.METERS_PER_INCH,ClarkeFoot:.3047972651151/i.SuperMap.METERS_PER_INCH,SearsFoot:.30479947153867626/i.SuperMap.METERS_PER_INCH,GoldCoastFoot:.3047997101815088/i.SuperMap.METERS_PER_INCH,IInch:.0254/i.SuperMap.METERS_PER_INCH,MicroInch:254e-7/i.SuperMap.METERS_PER_INCH,Mil:2.54e-8/i.SuperMap.METERS_PER_INCH,Centimeter:.01/i.SuperMap.METERS_PER_INCH,Kilometer:1e3/i.SuperMap.METERS_PER_INCH,Yard:.9144018288036576/i.SuperMap.METERS_PER_INCH,SearsYard:.914398414616029/i.SuperMap.METERS_PER_INCH,IndianYard:.9143985307444408/i.SuperMap.METERS_PER_INCH,IndianYd37:.91439523/i.SuperMap.METERS_PER_INCH,IndianYd62:.9143988/i.SuperMap.METERS_PER_INCH,IndianYd75:.9143985/i.SuperMap.METERS_PER_INCH,IndianFoot:.30479951/i.SuperMap.METERS_PER_INCH,IndianFt37:.30479841/i.SuperMap.METERS_PER_INCH,IndianFt62:.3047996/i.SuperMap.METERS_PER_INCH,IndianFt75:.3047995/i.SuperMap.METERS_PER_INCH,Mile:1609.3472186944373/i.SuperMap.METERS_PER_INCH,IYard:.9144/i.SuperMap.METERS_PER_INCH,IMile:1609.344/i.SuperMap.METERS_PER_INCH,NautM:1852/i.SuperMap.METERS_PER_INCH,"Lat-66":110943.31648893273/i.SuperMap.METERS_PER_INCH,"Lat-83":110946.25736872235/i.SuperMap.METERS_PER_INCH,Decimeter:.1/i.SuperMap.METERS_PER_INCH,Millimeter:.001/i.SuperMap.METERS_PER_INCH,Dekameter:10/i.SuperMap.METERS_PER_INCH,Decameter:10/i.SuperMap.METERS_PER_INCH,Hectometer:100/i.SuperMap.METERS_PER_INCH,GermanMeter:1.0000135965/i.SuperMap.METERS_PER_INCH,CaGrid:.999738/i.SuperMap.METERS_PER_INCH,ClarkeChain:20.1166194976/i.SuperMap.METERS_PER_INCH,GunterChain:20.11684023368047/i.SuperMap.METERS_PER_INCH,BenoitChain:20.116782494375872/i.SuperMap.METERS_PER_INCH,SearsChain:20.11676512155/i.SuperMap.METERS_PER_INCH,ClarkeLink:.201166194976/i.SuperMap.METERS_PER_INCH,GunterLink:.2011684023368047/i.SuperMap.METERS_PER_INCH,BenoitLink:.20116782494375873/i.SuperMap.METERS_PER_INCH,SearsLink:.2011676512155/i.SuperMap.METERS_PER_INCH,Rod:5.02921005842012/i.SuperMap.METERS_PER_INCH,IntnlChain:20.1168/i.SuperMap.METERS_PER_INCH,IntnlLink:.201168/i.SuperMap.METERS_PER_INCH,Perch:5.02921005842012/i.SuperMap.METERS_PER_INCH,Pole:5.02921005842012/i.SuperMap.METERS_PER_INCH,Furlong:201.1684023368046/i.SuperMap.METERS_PER_INCH,Rood:3.778266898/i.SuperMap.METERS_PER_INCH,CapeFoot:.3047972615/i.SuperMap.METERS_PER_INCH,Brealey:375/i.SuperMap.METERS_PER_INCH,ModAmFt:.304812252984506/i.SuperMap.METERS_PER_INCH,Fathom:1.8288/i.SuperMap.METERS_PER_INCH,"NautM-UK":1853.184/i.SuperMap.METERS_PER_INCH,"50kilometers":5e4/i.SuperMap.METERS_PER_INCH,"150kilometers":15e4/i.SuperMap.METERS_PER_INCH}),i.SuperMap.Util.extend(i.SuperMap.INCHES_PER_UNIT,{mm:i.SuperMap.INCHES_PER_UNIT.Meter/1e3,cm:i.SuperMap.INCHES_PER_UNIT.Meter/100,dm:100*i.SuperMap.INCHES_PER_UNIT.Meter,km:1e3*i.SuperMap.INCHES_PER_UNIT.Meter,kmi:i.SuperMap.INCHES_PER_UNIT.nmi,fath:i.SuperMap.INCHES_PER_UNIT.Fathom,ch:i.SuperMap.INCHES_PER_UNIT.IntnlChain,link:i.SuperMap.INCHES_PER_UNIT.IntnlLink,"us-in":i.SuperMap.INCHES_PER_UNIT.inches,"us-ft":i.SuperMap.INCHES_PER_UNIT.Foot,"us-yd":i.SuperMap.INCHES_PER_UNIT.Yard,"us-ch":i.SuperMap.INCHES_PER_UNIT.GunterChain,"us-mi":i.SuperMap.INCHES_PER_UNIT.Mile,"ind-yd":i.SuperMap.INCHES_PER_UNIT.IndianYd37,"ind-ft":i.SuperMap.INCHES_PER_UNIT.IndianFt37,"ind-ch":20.11669506/i.SuperMap.METERS_PER_INCH}),i.SuperMap.DOTS_PER_INCH=96,i.SuperMap.Util.normalizeScale=function(t){return t>1?1/t:t},i.SuperMap.Util.getResolutionFromScale=function(t,e){var o;t&&(null==e&&(e="degrees"),o=1/(i.SuperMap.Util.normalizeScale(t)*i.SuperMap.INCHES_PER_UNIT[e]*i.SuperMap.DOTS_PER_INCH));return o},i.SuperMap.Util.getScaleFromResolution=function(t,e){return null==e&&(e="degrees"),t*i.SuperMap.INCHES_PER_UNIT[e]*i.SuperMap.DOTS_PER_INCH},i.SuperMap.IS_GECKO=-1===(n=navigator.userAgent.toLowerCase()).indexOf("webkit")&&-1!==n.indexOf("gecko"),i.SuperMap.Browser=function(){var t,e="",o="",l="pc",i=navigator.userAgent.toLowerCase();return i.indexOf("msie")>-1||i.indexOf("trident")>-1&&i.indexOf("rv")>-1?(e="msie",t=i.match(/msie ([\d.]+)/)||i.match(/rv:([\d.]+)/)):i.indexOf("chrome")>-1?(e="chrome",t=i.match(/chrome\/([\d.]+)/)):i.indexOf("firefox")>-1?(e="firefox",t=i.match(/firefox\/([\d.]+)/)):i.indexOf("opera")>-1?(e="opera",t=i.match(/version\/([\d.]+)/)):i.indexOf("safari")>-1&&(e="safari",t=i.match(/version\/([\d.]+)/)),o=t?t[1]:"",i.indexOf("ipad")>-1||i.indexOf("ipod")>-1||i.indexOf("iphone")>-1?l="apple":i.indexOf("android")>-1&&(o=(t=i.match(/version\/([\d.]+)/))?t[1]:"",l="android"),{name:e,version:o,device:l}}(),i.SuperMap.Util.getBrowser=function(){return i.SuperMap.Browser},i.SuperMap.Util.isSupportCanvas=(r=!0,a=i.SuperMap.Util.getBrowser(),document.createElement("canvas").getContext?("firefox"===a.name&&parseFloat(a.version)<5&&(r=!1),"safari"===a.name&&parseFloat(a.version)<4&&(r=!1),"opera"===a.name&&parseFloat(a.version)<10&&(r=!1),"msie"===a.name&&parseFloat(a.version)<9&&(r=!1)):r=!1,r),i.SuperMap.Util.supportCanvas=function(){return i.SuperMap.Util.isSupportCanvas},i.SuperMap.INCHES_PER_UNIT.degree=i.SuperMap.INCHES_PER_UNIT.dd,i.SuperMap.INCHES_PER_UNIT.meter=i.SuperMap.INCHES_PER_UNIT.m,i.SuperMap.INCHES_PER_UNIT.foot=i.SuperMap.INCHES_PER_UNIT.ft,i.SuperMap.INCHES_PER_UNIT.inch=i.SuperMap.INCHES_PER_UNIT.inches,i.SuperMap.INCHES_PER_UNIT.mile=i.SuperMap.INCHES_PER_UNIT.mi,i.SuperMap.INCHES_PER_UNIT.kilometer=i.SuperMap.INCHES_PER_UNIT.km,i.SuperMap.INCHES_PER_UNIT.yard=i.SuperMap.INCHES_PER_UNIT.yd,i.SuperMap.Util.isInTheSameDomain=function(t){if(!t)return!0;var e=t.indexOf("//"),o=document.location.toString(),l=o.indexOf("//");if(-1===e)return!0;var i,n=i=t.substring(0,e),r=o.substring(l+2);l=r.indexOf("/");var a=r.indexOf(":"),s=r.substring(0,l),u=document.location.protocol;if(-1!==a||(s+=":"+("http:"===u.toLowerCase()?80:443)),u.toLowerCase()!==n.toLowerCase())return!1;var p=(n=t.substring(e+2)).indexOf(":");e=n.indexOf("/");var c,P=n.substring(0,e);return-1!==p?c=n.substring(0,p):(c=n.substring(0,e),P+=":"+("http:"===i.toLowerCase()?80:443)),c===document.domain&&P===s},i.SuperMap.Util.calculateDpi=function(t,e,o,l,i){if(t&&e&&o){var n,r=t.getWidth(),a=t.getHeight(),s=e.w,u=e.h;if(i=i||6378137,"degree"===(l=l||"degrees").toLowerCase()||"degrees"===l.toLowerCase()||"dd"===l.toLowerCase()){var p=r/s,c=a/u;n=254/(p>c?p:c)/o/(2*Math.PI*i/360)/1e4}else{n=254/(r/s)/o/1e4}return n}},i.SuperMap.Util.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("<","&lt;")).replace(">","&gt;")).replace(/%/g,"%25")).replace(/&/g,"%26");case Array:for(var o=[],n=0,r=e.length;n<r;n++)o.push(i.SuperMap.Util.toJSON(e[n]));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 a=[],s=0,u=e.length;s<u;s++)a.push(i.SuperMap.Util.toJSON(e[s]));return"["+a.join(",")+"]"}var p=[];for(var c in e)"function"!=typeof e[c]&&"CLASS_NAME"!==c&&"parent"!==c&&p.push("'"+c+"':"+i.SuperMap.Util.toJSON(e[c]));return p.length>0?"{"+p.join(",")+"}":"{}"}return e.toString()}},i.SuperMap.Util.getResolutionFromScaleDpi=function(t,e,o,l){return l=l||6378137,o=o||"",t>0&&e>0?(t=i.SuperMap.Util.normalizeScale(t),"degree"===o.toLowerCase()||"degrees"===o.toLowerCase()||"dd"===o.toLowerCase()?254/e/t/(2*Math.PI*l/360)/1e4:254/e/t/1e4):-1},i.SuperMap.Util.getScaleFromResolutionDpi=function(t,e,o,l){return l=l||6378137,o=o||"",t>0&&e>0?"degree"===o.toLowerCase()||"degrees"===o.toLowerCase()||"dd"===o.toLowerCase()?254/e/t/(2*Math.PI*l/360)/1e4:254/e/t/1e4:-1},i.SuperMap.Util.transformResult=function(t){return t.responseText&&"string"==typeof t.responseText&&(t=JSON.parse(t.responseText)),t},i.SuperMap.Util.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},i.SuperMap.Util.copyAttributesWithClip=function(t,e,o){if(t=t||{},e)for(var l in e){var i=!1;if(o&&o.length)for(var n=0,r=o.length;n<r;n++)if(l===o[n]){i=!0;break}if(!0!==i){var a=e[l];void 0!==a&&"CLASS_NAME"!==l&&"function"!=typeof a&&(t[l]=a)}}return t},i.SuperMap.Util.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 n in t)t.hasOwnProperty(n)&&(o[n]=i.SuperMap.Util.cloneObject(t[n]));return o}throw new Error("Unable to copy obj! Its type isn't supported.")},i.SuperMap.Util.lineIntersection=function(t,e,o,l){var n,r,a=null,s=(l.x-o.x)*(t.y-o.y)-(l.y-o.y)*(t.x-o.x),u=(e.x-t.x)*(t.y-o.y)-(e.y-t.y)*(t.x-o.x),p=(l.y-o.y)*(e.x-t.x)-(l.x-o.x)*(e.y-t.y);if(0!=p)r=u/p,a=(n=s/p)>=0&&r<=1&&n<=1&&r>=0?new i.SuperMap.Geometry.Point(t.x+n*(e.x-t.x),t.y+n*(e.y-t.y)):"No Intersection";else if(0==s&&0==u){var c=Math.max(t.y,e.y),P=Math.min(t.y,e.y),h=Math.max(t.x,e.x),g=Math.min(t.x,e.x);a=(o.y>=P&&o.y<=c||l.y>=P&&l.y<=c)&&o.x>=g&&o.x<=h||l.x>=g&&l.x<=h?"Coincident":"Parallel"}else a="Parallel";return a},i.SuperMap.Util.getTextBounds=function(t,e,o){document.body.appendChild(o),o.style.width="auto",o.style.height="auto",t.fontSize&&(o.style.fontSize=t.fontSize),t.fontFamily&&(o.style.fontFamily=t.fontFamily),t.fontWeight&&(o.style.fontWeight=t.fontWeight),o.style.position="relative",o.style.visibility="hidden",o.style.display="inline-block",o.innerHTML=e;var l=o.clientWidth,i=o.clientHeight;return document.body.removeChild(o),{textWidth:l,textHeight:i}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayExt=e.FunctionExt=e.NumberExt=e.StringExt=void 0;var l=o(0);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
                                                                                                                                                           * This program are made available under the terms of the Apache License, Version 2.0
                                                                                                                                                           * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
l.SuperMap.inherit=function(t,e){var o,i,n,r=function(){};for(r.prototype=e.prototype,t.prototype=new r,o=2,i=arguments.length;o<i;o++)"function"==typeof(n=arguments[o])&&(n=n.prototype),l.SuperMap.Util.extend(t.prototype,n)},l.SuperMap.mixin=function(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];for(var l=function t(o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var l=0;l<e.length;l++)r(this,new e[l](o))},i=0;i<e.length;i++){var n=e[i];r(l,n),r(l.prototype,n.prototype),r(l.prototype,new n)}return l;function r(t,e){var o=Object.getOwnPropertyNames(e);Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(e)));for(var l=0;l<o.length;l++){var i=o[l];if("constructor"!==i&&"prototype"!==i&&"name"!==i&&"length"!==i){var n=Object.getOwnPropertyDescriptor(e,i);window.ActiveXObject?Object.defineProperty(t,i,n||{}):Object.defineProperty(t,i,n)}}}};e.StringExt=l.SuperMap.String={startsWith:function(t,e){return 0==t.indexOf(e)},contains:function(t,e){return-1!=t.indexOf(e)},trim:function(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},camelize:function(t){for(var e=t.split("-"),o=e[0],l=1,i=e.length;l<i;l++){var n=e[l];o+=n.charAt(0).toUpperCase()+n.substring(1)}return o},format:function(t,e,o){e||(e=window);return t.replace(l.SuperMap.String.tokenRegEx,function(t,l){for(var i,n=l.split(/\.+/),r=0;r<n.length;r++)0==r&&(i=e),i=i[n[r]];return"function"==typeof i&&(i=o?i.apply(null,o):i()),void 0===i?"undefined":i})},tokenRegEx:/\$\{([\w.]+?)\}/g,numberRegEx:/^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/,isNumeric:function(t){return l.SuperMap.String.numberRegEx.test(t)},numericIf:function(t){return l.SuperMap.String.isNumeric(t)?parseFloat(t):t}};var i=e.NumberExt=l.SuperMap.Number={decimalSeparator:".",thousandsSeparator:",",limitSigDigs:function(t,e){var o=0;return e>0&&(o=parseFloat(t.toPrecision(e))),o},format:function(t,e,o,i){e=void 0!==e?e:0,o=void 0!==o?o:l.SuperMap.Number.thousandsSeparator,i=void 0!==i?i:l.SuperMap.Number.decimalSeparator,null!=e&&(t=parseFloat(t.toFixed(e)));var n=t.toString().split(".");1===n.length&&null==e&&(e=0);var r,a=n[0];if(o)for(var s=/(-?[0-9]+)([0-9]{3})/;s.test(a);)a=a.replace(s,"$1"+o+"$2");if(0==e)r=a;else{var u=n.length>1?n[1]:"0";null!=e&&(u+=new Array(e-u.length+1).join("0")),r=a+i+u}return r}};Number.prototype.limitSigDigs||(Number.prototype.limitSigDigs=function(t){return i.limitSigDigs(this,t)});e.FunctionExt=l.SuperMap.Function={bind:function(t,e){var o=Array.prototype.slice.apply(arguments,[2]);return function(){var l=o.concat(Array.prototype.slice.apply(arguments,[0]));return t.apply(e,l)}},bindAsEventListener:function(t,e){return function(o){return t.call(e,o||window.event)}},False:function(){return!1},True:function(){return!0},Void:function(){}},e.ArrayExt=l.SuperMap.Array={filter:function(t,e,o){var l=[];if(Array.prototype.filter)l=t.filter(e,o);else{var i=t.length;if("function"!=typeof e)throw new TypeError;for(var n=0;n<i;n++)if(n in t){var r=t[n];e.call(o,r,n,t)&&l.push(r)}}return l}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicAlgoSymbolFactory=void 0,o(71);o(14),o(13),o(11),o(9),o(8),e.BasicAlgoSymbolFactory=SuperMapAlgoPlot.BasicAlgoSymbolFactory=SuperMapAlgoPlot.BasicAlgoSymbolFactory||{};SuperMapAlgoPlot.BasicAlgoSymbolFactory.getAlgoSymbol=function(t,e,o){if(0===t)switch(e){case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOL:return new SuperMapAlgoPlot.GeoTooltipBox(o);case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOLM:return new SuperMapAlgoPlot.GeoTooltipBoxM(o);case SuperMapAlgoPlot.SymbolType.PATHTEXT:return new SuperMapAlgoPlot.PathText(o);case SuperMapAlgoPlot.SymbolType.ARROWLINE:return new SuperMapAlgoPlot.ArrowLine(o);case SuperMapAlgoPlot.SymbolType.CURVEEIGHT:return new SuperMapAlgoPlot.CurveEight(o);case SuperMapAlgoPlot.SymbolType.RUNWAY:return new SuperMapAlgoPlot.Runway(o);case SuperMapAlgoPlot.SymbolType.CONCENTRICCIRCLE:return new SuperMapAlgoPlot.ConcentricCircle(o);case SuperMapAlgoPlot.SymbolType.COMBINATIONALCIRCLE:return new SuperMapAlgoPlot.CombinationalCircle(o);case SuperMapAlgoPlot.SymbolType.FREECURVE:return new SuperMapAlgoPlot.FreeCurve(o);case SuperMapAlgoPlot.SymbolType.REGULARPOLYGON:return new SuperMapAlgoPlot.RegularPolygon(o);case SuperMapAlgoPlot.SymbolType.BRACESYMBOL:return new SuperMapAlgoPlot.Brace(o);case SuperMapAlgoPlot.SymbolType.TRAPEZOIDSYMBOL:return new SuperMapAlgoPlot.Trapezoid(o);case SuperMapAlgoPlot.SymbolType.SYMBOLTEXTBOX:return new SuperMapAlgoPlot.SymbolTextBox(o);case SuperMapAlgoPlot.SymbolType.NODECHAIN:return new SuperMapAlgoPlot.NodeChain(o);case SuperMapAlgoPlot.SymbolType.LINERELATION:return new SuperMapAlgoPlot.LineRelation(o);case SuperMapAlgoPlot.SymbolType.LINEMARKING:return new SuperMapAlgoPlot.LineMarking(o);case SuperMapAlgoPlot.SymbolType.POLYGONREGION:return new SuperMapAlgoPlot.PolygonRegion(o);case SuperMapAlgoPlot.SymbolType.WIRE:return new SuperMapAlgoPlot.Wire(o);case SuperMapAlgoPlot.SymbolType.LINEARARROW:return new SuperMapAlgoPlot.LinearArrow(o);case SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL:return new SuperMapAlgoPlot.Polybezier(o);case SuperMapAlgoPlot.SymbolType.NEWPIESYMBOL:return new SuperMapAlgoPlot.NewPie(o);case SuperMapAlgoPlot.SymbolType.NEWARCSYMBOL:return new SuperMapAlgoPlot.NewArc(o);case SuperMapAlgoPlot.SymbolType.NEWCHORDSYMBOL:return new SuperMapAlgoPlot.NewChord(o);default:return new SuperMapAlgoPlot.AlgoSymbol(o)}else if(22===t)switch(e){case 1001:return new SuperMapAlgoPlot.AlgoSymbol1001(o);case 1002:return new SuperMapAlgoPlot.AlgoSymbol1002(o);case 1003:return new SuperMapAlgoPlot.AlgoSymbol1003(o);case 1004:return new SuperMapAlgoPlot.AlgoSymbol1004(o);case 1005:return new SuperMapAlgoPlot.AlgoSymbol1005(o);case 1006:return new SuperMapAlgoPlot.AlgoSymbol1006(o);case 1007:return new SuperMapAlgoPlot.AlgoSymbol1007(o);case 1008:return new SuperMapAlgoPlot.AlgoSymbol1008(o);case 1009:return new SuperMapAlgoPlot.AlgoSymbol1009(o);case 1010:return new SuperMapAlgoPlot.AlgoSymbol1010(o);case 1011:return new SuperMapAlgoPlot.AlgoSymbol1011(o);case 1012:return new SuperMapAlgoPlot.AlgoSymbol1012(o);case 1013:return new SuperMapAlgoPlot.AlgoSymbol1013(o);case 1014:return new SuperMapAlgoPlot.AlgoSymbol1014(o);case 1015:return new SuperMapAlgoPlot.AlgoSymbol1015(o);case 1016:return new SuperMapAlgoPlot.AlgoSymbol1016(o);case 1017:return new SuperMapAlgoPlot.AlgoSymbol1017(o);case 1018:return new SuperMapAlgoPlot.AlgoSymbol1018(o);case 1019:return new SuperMapAlgoPlot.AlgoSymbol1019(o);case 1020:return new SuperMapAlgoPlot.AlgoSymbol1020(o);case 1021:return new SuperMapAlgoPlot.AlgoSymbol1021(o);case 1022:return new SuperMapAlgoPlot.AlgoSymbol1022(o);default:return null}else{if(421!==t)return null;switch(e){case 311:return new SuperMapAlgoPlot.AlgoSymbol1004(o);case 315:return new SuperMapAlgoPlot.AlgoSymbol315(o);case 317:return new SuperMapAlgoPlot.AlgoSymbol1006(o);case 318:return new SuperMapAlgoPlot.AlgoSymbol1002(o);case 319:return new SuperMapAlgoPlot.AlgoSymbol15200(o);case 320:return new SuperMapAlgoPlot.AlgoSymbol320(o);case 321:return new SuperMapAlgoPlot.AlgoSymbol321(o);case 322:return new SuperMapAlgoPlot.AlgoSymbol322(o);case 323:return new SuperMapAlgoPlot.AlgoSymbol25701(o);case 324:return new SuperMapAlgoPlot.AlgoSymbol3010106(o);case 325:return new SuperMapAlgoPlot.AlgoSymbol15200(o);case 326:return new SuperMapAlgoPlot.AlgoSymbol326(o);case 327:return new SuperMapAlgoPlot.AlgoSymbol327(o);case 328:return new SuperMapAlgoPlot.AlgoSymbol328(o);case 329:return new SuperMapAlgoPlot.AlgoSymbol329(o);case 330:return new SuperMapAlgoPlot.AlgoSymbol330(o);case 331:return new SuperMapAlgoPlot.AlgoSymbol29101(o);default:return null}}},SuperMapAlgoPlot.BasicAlgoSymbolFactory.getSymbolWayType=function(t,e){if(0===t)switch(e){case SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL:case SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;case SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL:case SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL:return SuperMapAlgoPlot.AddPoint_WayType.CURVE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}else if(22===t)switch(e){case 1005:case 1008:case 1012:case 1014:return SuperMapAlgoPlot.AddPoint_WayType.CURVE;case 1007:case 1009:case 1013:case 1015:case 1017:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}},SuperMapAlgoPlot.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:case 320:case 321:case 322:case 323:case 324:case 325:case 326:case 327:case 328:case 329:case 330:case 331:return!1;default:return!0}},SuperMapAlgoPlot.BasicAlgoSymbolFactory.getDefaultSubSymbols=function(){return[]},SuperMapAlgoPlot.BasicAlgoSymbolFactory.getMinEditPts=function(t,e){if(0===t)switch(e){case SuperMapAlgoPlot.SymbolType.TEXTSYMBOL:case SuperMapAlgoPlot.SymbolType.COMBINATIONALCIRCLE:return 1;case SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL:case SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL:case SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL:case SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL:case SuperMapAlgoPlot.SymbolType.KIDNEY:case SuperMapAlgoPlot.SymbolType.ARROWLINE:case SuperMapAlgoPlot.SymbolType.BRACESYMBOL:case SuperMapAlgoPlot.SymbolType.CURVEEIGHT:case SuperMapAlgoPlot.SymbolType.FREECURVE:case SuperMapAlgoPlot.SymbolType.LINEMARKING:case SuperMapAlgoPlot.SymbolType.LINERELATION:case SuperMapAlgoPlot.SymbolType.NODECHAIN:case SuperMapAlgoPlot.SymbolType.PATHTEXT:case SuperMapAlgoPlot.SymbolType.REGULARPOLYGON:case SuperMapAlgoPlot.SymbolType.RUNWAY:case SuperMapAlgoPlot.SymbolType.SYMBOLTEXTBOX:case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOLM:case SuperMapAlgoPlot.SymbolType.CONCENTRICCIRCLE:case SuperMapAlgoPlot.SymbolType.WIRE:case SuperMapAlgoPlot.SymbolType.LINEARARROW:return 2;case SuperMapAlgoPlot.SymbolType.ARCSYMBOL:case SuperMapAlgoPlot.SymbolType.CHORDSYMBOL:case SuperMapAlgoPlot.SymbolType.PIESYMBOL:case SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL:case SuperMapAlgoPlot.SymbolType.PARALLELOGRAM:case SuperMapAlgoPlot.SymbolType.PARALLELLINE:case SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL:case SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL:case SuperMapAlgoPlot.SymbolType.POLYGONREGION:case SuperMapAlgoPlot.SymbolType.TRAPEZOIDSYMBOL:case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOL:case SuperMapAlgoPlot.SymbolType.NEWARCSYMBOL:case SuperMapAlgoPlot.SymbolType.NEWPIESYMBOL:case SuperMapAlgoPlot.SymbolType.NEWCHORDSYMBOL: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:case 320:case 321:case 324:case 325:case 326:case 327:case 328:case 329:case 330:case 331:return 2;case 311:case 315:case 317:case 318:case 322:case 323:return 3}},SuperMapAlgoPlot.BasicAlgoSymbolFactory.getMaxEditPts=function(t,e){if(0===t)switch(e){case SuperMapAlgoPlot.SymbolType.TEXTSYMBOL:return 1;case SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL:case SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL:case SuperMapAlgoPlot.SymbolType.BRACESYMBOL:case SuperMapAlgoPlot.SymbolType.LINEMARKING:case SuperMapAlgoPlot.SymbolType.LINERELATION:case SuperMapAlgoPlot.SymbolType.RUNWAY:case SuperMapAlgoPlot.SymbolType.SYMBOLTEXTBOX:case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOLM:case SuperMapAlgoPlot.SymbolType.LINEARARROW:return 2;case SuperMapAlgoPlot.SymbolType.ARCSYMBOL:case SuperMapAlgoPlot.SymbolType.CHORDSYMBOL:case SuperMapAlgoPlot.SymbolType.PIESYMBOL:case SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL:case SuperMapAlgoPlot.SymbolType.PARALLELOGRAM:case SuperMapAlgoPlot.SymbolType.KIDNEY:case SuperMapAlgoPlot.SymbolType.CONCENTRICCIRCLE:case SuperMapAlgoPlot.SymbolType.CURVEEIGHT:case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOL:case SuperMapAlgoPlot.SymbolType.TRAPEZOIDSYMBOL:case SuperMapAlgoPlot.SymbolType.NEWARCSYMBOL:case SuperMapAlgoPlot.SymbolType.NEWPIESYMBOL:case SuperMapAlgoPlot.SymbolType.NEWCHORDSYMBOL:return 3;case SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL:case SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL:case SuperMapAlgoPlot.SymbolType.PARALLELLINE:case SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL:case SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL:case SuperMapAlgoPlot.SymbolType.ARROWLINE:case SuperMapAlgoPlot.SymbolType.COMBINATIONALCIRCLE:case SuperMapAlgoPlot.SymbolType.FREECURVE:case SuperMapAlgoPlot.SymbolType.NODECHAIN:case SuperMapAlgoPlot.SymbolType.PATHTEXT:case SuperMapAlgoPlot.SymbolType.POLYGONREGION:case SuperMapAlgoPlot.SymbolType.REGULARPOLYGON:case SuperMapAlgoPlot.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 320:return 2;case 329:case 330:case 331:return 3;case 317:return 4;case 323:return 1e3;case 311:case 315:case 318:case 319:case 321:case 322:case 324:case 325:case 326:case 327:case 328:return 99999}},SuperMapAlgoPlot.BasicAlgoSymbolFactory.getDefaultStyle=function(t,e){var o={};if(421===t)switch(e){case 320:case 321:o.color=o.strokeColor="#000000";break;case 322:o.color=o.strokeColor="#bc744d"}return o},SuperMapAlgoPlot.BasicAlgoSymbolFactory.zoomInCalSymbol=function(){if(22!==libID)return!1;switch(code){case 1012:case 1013:case 1014:case 1015:return!0;default:return!1}},SuperMapAlgoPlot.BasicAlgoSymbolFactory.zoomCalSymbol=function(){return!1},SuperMapAlgoPlot.BasicAlgoSymbolFactory.getSymbolName=function(t,e){var o="";if(0===t)switch(e){case SuperMapAlgoPlot.SymbolType.TEXTSYMBOL:o="文本";break;case SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL:o="圆";break;case SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL:o="矩形";break;case SuperMapAlgoPlot.SymbolType.ARCSYMBOL:o="弧线";break;case SuperMapAlgoPlot.SymbolType.CHORDSYMBOL:o="弓形";break;case SuperMapAlgoPlot.SymbolType.PIESYMBOL:o="扇形";break;case SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL:o="椭圆";break;case SuperMapAlgoPlot.SymbolType.PARALLELOGRAM:o="平行四边形";break;case SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL:o="多边形";break;case SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL:o="折线";break;case SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL:o="贝赛尔曲线";break;case SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL:o="闭合贝塞尔曲线";break;case SuperMapAlgoPlot.SymbolType.PARALLELLINE:o="平行线";break;case SuperMapAlgoPlot.SymbolType.KIDNEY:o="集结地";break;case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOL:o="注记指示框";break;case SuperMapAlgoPlot.SymbolType.ARROWLINE:o="箭头线";break;case SuperMapAlgoPlot.SymbolType.COMBINATIONALCIRCLE:o="组合圆";break;case SuperMapAlgoPlot.SymbolType.CONCENTRICCIRCLE:o="同心圆";break;case SuperMapAlgoPlot.SymbolType.CURVEEIGHT:o="八字形";break;case SuperMapAlgoPlot.SymbolType.FREECURVE:o="自由线";break;case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOLM:o="多角标注框";break;case SuperMapAlgoPlot.SymbolType.LINEMARKING:o="线型标注";break;case SuperMapAlgoPlot.SymbolType.LINERELATION:o="对象间连线";break;case SuperMapAlgoPlot.SymbolType.NODECHAIN:o="节点链";break;case SuperMapAlgoPlot.SymbolType.PATHTEXT:o="沿线注记";break;case SuperMapAlgoPlot.SymbolType.POLYGONREGION:o="多边形区域管理";break;case SuperMapAlgoPlot.SymbolType.RUNWAY:o="跑道线";break;case SuperMapAlgoPlot.SymbolType.SYMBOLTEXTBOX:o="标注框";break;case SuperMapAlgoPlot.SymbolType.REGULARPOLYGON:o="正多边形";break;case SuperMapAlgoPlot.SymbolType.BRACESYMBOL:o="大括号";break;case SuperMapAlgoPlot.SymbolType.TRAPEZOIDSYMBOL:o="梯形";break;case SuperMapAlgoPlot.SymbolType.WIRE:o="铁丝网";break;case SuperMapAlgoPlot.SymbolType.LINEARARROW:o="直线箭头";break;case SuperMapAlgoPlot.SymbolType.NEWPIESYMBOL:o="扇形";break;case SuperMapAlgoPlot.SymbolType.NEWARCSYMBOL:o="弧线";break;case SuperMapAlgoPlot.SymbolType.NEWCHORDSYMBOL:o="弓形"}return o}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Pixel=void 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=o(0);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * This program are made available under the terms of the Apache License, Version 2.0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var n=e.Pixel=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.x=e?parseFloat(e):0,this.y=o?parseFloat(o):0,this.mode=l,this.CLASS_NAME="SuperMap.Pixel",i.SuperMap.Pixel.Mode={LeftTop:"lefttop",RightTop:"righttop",RightBottom:"rightbottom",LeftBottom:"leftbottom"}}return l(t,[{key:"toString",value:function(){return"x="+this.x+",y="+this.y}},{key:"clone",value:function(){return new t(this.x,this.y,this.mode)}},{key:"equals",value:function(t){var e=!1;return null!=t&&(e=this.x==t.x&&this.y==t.y||isNaN(this.x)&&isNaN(this.y)&&isNaN(t.x)&&isNaN(t.y)),e}},{key:"distanceTo",value:function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}},{key:"add",value:function(e,o){if(null==e||null==o)throw new TypeError("Pixel.add cannot receive null values");return new t(this.x+e,this.y+o)}},{key:"offset",value:function(t){var e=this.clone();return t&&(e=this.add(t.x,t.y)),e}},{key:"destroy",value:function(){this.x=null,this.y=null,this.mode=null}}]),t}();i.SuperMap.Pixel=n},function(t,e,o){"use strict";var l,i="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};l=function(){return this}();try{l=l||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":i(window))&&(l=window)}t.exports=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FetchRequest=e.getRequestTimeout=e.setRequestTimeout=e.isCORS=e.setCORS=void 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};
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
                                                                                                                                                                                                                                                                               * This program are made available under the terms of the Apache License, Version 2.0
                                                                                                                                                                                                                                                                               * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/o(136),o(131);var i,n=o(130),r=(i=n)&&i.__esModule?i:{default:i},a=o(0),s=o(1);var u=window.fetch,p=(e.setCORS=a.SuperMap.setCORS=function(t){a.SuperMap.CORS=t},e.isCORS=a.SuperMap.isCORS=function(){return void 0!=a.SuperMap.CORS?a.SuperMap.CORS:window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest}),c=(e.setRequestTimeout=a.SuperMap.setRequestTimeout=function(t){return a.SuperMap.RequestTimeout=t},e.getRequestTimeout=a.SuperMap.getRequestTimeout=function(){return a.SuperMap.RequestTimeout||45e3});e.FetchRequest=a.SuperMap.FetchRequest={commit:function(t,e,o,l){switch(t=t?t.toUpperCase():t){case"GET":return this.get(e,o,l);case"POST":return this.post(e,o,l);case"PUT":return this.put(e,o,l);case"DELETE":return this.delete(e,o,l);default:return this.get(e,o,l)}},supportDirectRequest:function(t,e){return s.Util.isInTheSameDomain(t)||p()||e.proxy},get:function(t,e,o){o=o||{};if(t=this._processUrl(t,o),t=s.Util.urlAppend(t,this._getParameterString(e||{})),!this.supportDirectRequest(t,o)){var l={url:t=t.replace(".json",".jsonp"),data:e};return a.SuperMap.Util.RequestJSONPPromise.GET(l)}return this.urlIsLong(t)?this._postSimulatie("GET",t.substring(0,t.indexOf("?")-1),e,o):this._fetch(t,e,o,"GET")},delete:function(t,e,o){o=o||{};if(t=this._processUrl(t,o),t=s.Util.urlAppend(t,this._getParameterString(e||{})),!this.supportDirectRequest(t,o)){t=t.replace(".json",".jsonp");var l={url:t+="&_method=DELETE",data:e};return a.SuperMap.Util.RequestJSONPPromise.DELETE(l)}return this.urlIsLong(t)?this._postSimulatie("DELETE",t.substring(0,t.indexOf("?")-1),e,o):this._fetch(t,e,o,"DELETE")},post:function(t,e,o){if(o=o||{},!this.supportDirectRequest(t,o)){t=t.replace(".json",".jsonp");var l={url:t+="&_method=POST",data:e};return a.SuperMap.Util.RequestJSONPPromise.POST(l)}return this._fetch(this._processUrl(t,o),e,o,"POST")},put:function(t,e,o){if(o=o||{},t=this._processUrl(t,o),!this.supportDirectRequest(t,o)){t=t.replace(".json",".jsonp");var l={url:t+="&_method=PUT",data:e};return a.SuperMap.Util.RequestJSONPPromise.DELETE(l)}return this._fetch(t,e,o,"PUT")},urlIsLong:function(t){for(var e=0,o=null,l=0,i=t.length;l<i;l++)(o=t.charCodeAt(l))<127?e++:128<=o&&o<=2047?e+=2:2048<=o&&o<=65535&&(e+=3);return!(e<2e3)},_postSimulatie:function(t,e,o,l){return e+=(e.indexOf("?")>-1?"&":"?")+"_method="+t,"string"!=typeof o&&(o=JSON.stringify(o)),this.post(e,o,l)},_processUrl:function(t,e){if(this._isMVTRequest(t))return t;if(-1===t.indexOf(".json")&&!e.withoutFormatSuffix)if(t.indexOf("?")<0)t+=".json";else{var o=t.split("?");2===o.length&&(t=o[0]+".json?"+o[1])}return e&&e.proxy&&("function"==typeof e.proxy?t=e.proxy(t):(t=decodeURIComponent(t),t=e.proxy+encodeURIComponent(t))),t},_fetch:function(t,e,o,l){return(o=o||{}).headers=o.headers||{},o.headers["Content-Type"]||(o.headers["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8"),o.timeout?this._timeout(o.timeout,u(t,{method:l,headers:o.headers,body:"PUT"===l||"POST"===l?e:void 0,credentials:o.withCredentials?"include":"omit",mode:"cors",timeout:c()}).then(function(t){return t})):u(t,{method:l,body:"PUT"===l||"POST"===l?e:void 0,headers:o.headers,credentials:o.withCredentials?"include":"omit",mode:"cors",timeout:c()}).then(function(t){return t})},_fetchJsonp:function(t,e){return e=e||{},(0,r.default)(t,{method:"GET",timeout:e.timeout}).then(function(t){return t})},_timeout:function(t,e){return new Promise(function(o,l){setTimeout(function(){l(new Error("timeout"))},t),e.then(o,l)})},_getParameterString:function(t){var e=[];for(var o in t){var i=t[o];if(null!=i&&"function"!=typeof i){var n;if("object"===(void 0===i?"undefined":l(i))&&i.constructor===Array){for(var r,a=[],s=0,u=i.length;s<u;s++)r=i[s],a.push(encodeURIComponent(null===r||void 0===r?"":r));n="["+a.join(",")+"]"}else n=encodeURIComponent(i);e.push(encodeURIComponent(o)+"="+n)}}return e.join("&")},_isMVTRequest:function(t){return t.indexOf(".mvt")>-1||t.indexOf(".pbf")>-1}};a.SuperMap.Util.RequestJSONPPromise={limitLength:1500,queryKeys:[],queryValues:[],supermap_callbacks:{},addQueryStrings:function(t){for(var e in t){this.queryKeys.push(e),"string"!=typeof t[e]&&(t[e]=a.SuperMap.Util.toJSON(t[e]));var o=encodeURIComponent(t[e]);this.queryValues.push(o)}},issue:function(t){for(var e=this,o=e.getUid(),l=t.url,i=[],n=new Promise(function(t){e.supermap_callbacks[o]=function(l){delete e.supermap_callbacks[o],t(l)}}),r=l,a=0,s=e.queryKeys?e.queryKeys.length:0,u=0;u<s;u++)if(r.length+e.queryKeys[u].length+2>=e.limitLength){if(0==a)return!1;i.push(r),r=l,a=0,u--}else if(r.length+e.queryKeys[u].length+2+e.queryValues[u].length>e.limitLength)for(var p=e.queryValues[u];p.length>0;){var c=e.limitLength-r.length-e.queryKeys[u].length-2;r.indexOf("?")>-1?r+="&":r+="?";var P=p.substring(0,c);"%"===P.substring(c-1,c)?(c-=1,P=p.substring(0,c)):"%"===P.substring(c-2,c-1)&&(c-=2,P=p.substring(0,c)),r+=e.queryKeys[u]+"="+P,p=p.substring(c),P.length>0&&(i.push(r),r=l,a=0)}else a++,r.indexOf("?")>-1?r+="&":r+="?",r+=e.queryKeys[u]+"="+e.queryValues[u];return i.push(r),e.send(i,"SuperMap.Util.RequestJSONPPromise.supermap_callbacks["+o+"]",t&&t.proxy),n},getUid:function(){return 1e3*(new Date).getTime()+Math.floor(1e17*Math.random())},send:function(t,e,o){var l=t.length;if(l>0)for(var i=(new Date).getTime(),n=0;n<l;n++){var a=t[n];a.indexOf("?")>-1?a+="&":a+="?",a+="sectionCount="+l,a+="&sectionIndex="+n,a+="&jsonpUserID="+i,o&&(a=decodeURIComponent(a),a=o+encodeURIComponent(a)),(0,r.default)(a,{jsonpCallbackFunction:e,timeout:3e4})}},GET:function(t){return this.queryKeys.length=0,this.queryValues.length=0,this.addQueryStrings(t.params),this.issue(t)},POST:function(t){return this.queryKeys.length=0,this.queryValues.length=0,this.addQueryStrings({requestEntity:t.data}),this.issue(t)},PUT:function(t){return this.queryKeys.length=0,this.queryValues.length=0,this.addQueryStrings({requestEntity:t.data}),this.issue(t)},DELETE:function(t){return this.queryKeys.length=0,this.queryValues.length=0,this.addQueryStrings({requestEntity:t.data}),this.issue(t)}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbolFactory=void 0,o(3);e.AlgoSymbolFactory=SuperMapAlgoPlot.AlgoSymbolFactory=SuperMapAlgoPlot.AlgoSymbolFactory||{};SuperMapAlgoPlot.AlgoSymbolFactory.getAlgoSymbol=function(t){var e=t.libID,o=t.code;return 0!==e&&22!==e&&421!==e||void 0===SuperMapAlgoPlot.BasicAlgoSymbolFactory?100===e&&void 0!==SuperMapAlgoPlot.JBAlgoSymbolFactory?SuperMapAlgoPlot.JBAlgoSymbolFactory.getAlgoSymbol(e,o,t):123===e&&void 0!==SuperMapAlgoPlot.WJAlgoSymbolFactory?SuperMapAlgoPlot.WJAlgoSymbolFactory.getAlgoSymbol(e,o,t):999===e&&void 0!==SuperMapAlgoPlot.YJAlgoSymbolFactory?SuperMapAlgoPlot.YJAlgoSymbolFactory.getAlgoSymbol(e,o,t):null:SuperMapAlgoPlot.BasicAlgoSymbolFactory.getAlgoSymbol(e,o,t)},SuperMapAlgoPlot.AlgoSymbolFactory.getSymbolWayType=function(t,e){if(0===t)switch(e){case SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL:case SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;case SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL:case SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL:return SuperMapAlgoPlot.AddPoint_WayType.CURVE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}if(22===t)switch(e){case 1005:case 1008:case 1012:case 1014:return SuperMapAlgoPlot.AddPoint_WayType.CURVE;case 1007:case 1009:case 1013:case 1015:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;default:return SuperMapAlgoPlot.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 SuperMapAlgoPlot.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 SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;default:return SuperMapAlgoPlot.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 SuperMapAlgoPlot.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 SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}},SuperMapAlgoPlot.AlgoSymbolFactory.isAccessServer=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMapAlgoPlot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMapAlgoPlot.JBAlgoSymbolFactory?SuperMapAlgoPlot.JBAlgoSymbolFactory.isAccessServer(t,e):123===t&&void 0!==SuperMapAlgoPlot.WJAlgoSymbolFactory?SuperMapAlgoPlot.WJAlgoSymbolFactory.isAccessServer(t,e):999!==t||void 0===SuperMapAlgoPlot.YJAlgoSymbolFactory||SuperMapAlgoPlot.YJAlgoSymbolFactory.isAccessServer(t,e):SuperMapAlgoPlot.BasicAlgoSymbolFactory.isAccessServer(t,e)},SuperMapAlgoPlot.AlgoSymbolFactory.getDefaultSubSymbols=function(t,e){return 100===t&&void 0!==SuperMapAlgoPlot.JBAlgoSymbolFactory?SuperMapAlgoPlot.JBAlgoSymbolFactory.getDefaultSubSymbols(t,e):123===t&&void 0!==SuperMapAlgoPlot.WJAlgoSymbolFactory?SuperMapAlgoPlot.WJAlgoSymbolFactory.getDefaultSubSymbols(t,e):999===t&&void 0!==SuperMapAlgoPlot.YJAlgoSymbolFactory?SuperMapAlgoPlot.YJAlgoSymbolFactory.getDefaultSubSymbols(t,e):[]},SuperMapAlgoPlot.AlgoSymbolFactory.getMinEditPts=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMapAlgoPlot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMapAlgoPlot.JBAlgoSymbolFactory?SuperMapAlgoPlot.JBAlgoSymbolFactory.getMinEditPts(t,e):123===t&&void 0!==SuperMapAlgoPlot.WJAlgoSymbolFactory?SuperMapAlgoPlot.WJAlgoSymbolFactory.getMinEditPts(t,e):999===t&&void 0!==SuperMapAlgoPlot.YJAlgoSymbolFactory?SuperMapAlgoPlot.YJAlgoSymbolFactory.getMinEditPts(t,e):0:SuperMapAlgoPlot.BasicAlgoSymbolFactory.getMinEditPts(t,e)},SuperMapAlgoPlot.AlgoSymbolFactory.getMaxEditPts=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMapAlgoPlot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMapAlgoPlot.JBAlgoSymbolFactory?SuperMapAlgoPlot.JBAlgoSymbolFactory.getMaxEditPts(t,e):123===t&&void 0!==SuperMapAlgoPlot.WJAlgoSymbolFactory?SuperMapAlgoPlot.WJAlgoSymbolFactory.getMaxEditPts(t,e):999===t&&void 0!==SuperMapAlgoPlot.YJAlgoSymbolFactory?SuperMapAlgoPlot.YJAlgoSymbolFactory.getMaxEditPts(t,e):0:SuperMapAlgoPlot.BasicAlgoSymbolFactory.getMaxEditPts(t,e)},SuperMapAlgoPlot.AlgoSymbolFactory.getDefaultStyle=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMapAlgoPlot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMapAlgoPlot.JBAlgoSymbolFactory?SuperMapAlgoPlot.JBAlgoSymbolFactory.getDefaultStyle(t,e):123===t&&void 0!==SuperMapAlgoPlot.WJAlgoSymbolFactory?SuperMapAlgoPlot.WJAlgoSymbolFactory.getDefaultStyle(t,e):999===t&&void 0!==SuperMapAlgoPlot.YJAlgoSymbolFactory?SuperMapAlgoPlot.YJAlgoSymbolFactory.getDefaultStyle(t,e):{}:SuperMapAlgoPlot.BasicAlgoSymbolFactory.getDefaultStyle(t,e)},SuperMapAlgoPlot.AlgoSymbolFactory.getSymbolName=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMapAlgoPlot.BasicAlgoSymbolFactory?"":SuperMapAlgoPlot.BasicAlgoSymbolFactory.getSymbolName(t,e)},SuperMapAlgoPlot.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 2730101:case 3032e3:case 4010800:case 4010801:case 4011100:case 4011101:case 4022100:case 4022101:case 4022102:return!0;default:return!1}},SuperMapAlgoPlot.AlgoSymbolFactory.zoomInCalSymbol=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMapAlgoPlot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMapAlgoPlot.JBAlgoSymbolFactory?SuperMapAlgoPlot.JBAlgoSymbolFactory.zoomInCalSymbol(t,e):123===t&&void 0!==SuperMapAlgoPlot.WJAlgoSymbolFactory?SuperMapAlgoPlot.WJAlgoSymbolFactory.zoomInCalSymbol(t,e):999===t&&void 0!==SuperMapAlgoPlot.YJAlgoSymbolFactory?SuperMapAlgoPlot.YJAlgoSymbolFactory.zoomInCalSymbol(t,e):0:SuperMapAlgoPlot.BasicAlgoSymbolFactory.zoomInCalSymbol(t,e)},SuperMapAlgoPlot.AlgoSymbolFactory.zoomCalSymbol=function(t,e){if((0===t||22===t||421===t)&&void 0!==SuperMapAlgoPlot.BasicAlgoSymbolFactory)return SuperMapAlgoPlot.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===SuperMapAlgoPlot.WJAlgoSymbolFactory)return!1;switch(e){case 50312:case 50313:case 50314:case 50348:return!0;default:return!1}}},SuperMapAlgoPlot.AlgoSymbolFactory.calSurroundLineDir=function(t,e){if(22!==t)return!0;switch(e){case 1018:case 1020:case 1021:return!1;default:return!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.AlgoSymbol329=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}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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.25*this.getSubSymbolScaleValue());var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var o=20*this.getSubSymbolScaleValue(),l=.1*this.getSubSymbolScaleValue(),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);o>.05*i?l=.01*(o=.05*i):o<.005*i&&(o=.005*i);for(var n=SuperMapAlgoPlot.PlottingUtil.makeDottedLine(e,o),r=0;r<n.length;r++)if(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n[r]),r>0){var a=n[r-1][n[r-1].length-1],s=n[r][0],u=SuperMapAlgoPlot.PlottingUtil.midPoint(a,s);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[u,new SuperMapAlgoPlot.Point(u.x+l,u.y)],{lineTypeLimit:!0,surroundLineLimit:!0,fillLimit:!0,fillColorLimit:!1,fill:!0})}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol329=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.AlgoSymbol330=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}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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.25*this.getSubSymbolScaleValue());var o=[];o=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);for(var l=0;l<4;l++){var i=Math.floor(l*o.length/4),n=new SuperMapAlgoPlot.Point(o[i].x,o[i].y),r=new SuperMapAlgoPlot.Point(o[i+1].x,o[i+1].y),a=new SuperMapAlgoPlot.Point((n.x+r.x)/2,(n.y+r.y)/2),s=SuperMapAlgoPlot.PlottingUtil.radian(r,a)*SuperMapAlgoPlot.PlottingUtil.RTOD,u=this.scaleValues[0]*e/2,p=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,u,u,s),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,4*u,4*u,s+270),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,u,u,s+180);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[p,c,P])}this.finish()}}}]),e}();SuperMapAlgoPlot.AlgoSymbol330=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.AlgoSymbol3010102=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[0]=.05,o.scaleValues[1]=.05),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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.05):1===this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue(),this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=e*this.scaleValues[0],i=this.getLinePts(o,this.scaleValues[1],5/14),n=this.getLinePts(o,this.scaleValues[1],9/14),r=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=180*SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI;this.createSubSymbol1(r,l,a);var s=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),u=180*SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)/Math.PI;this.createSubSymbol2(s,l,u);var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,.5*l,.5*l,u+90);this.addScalePoint(p);for(var c=[],P=[],h=[],g=0;g<=i.startIndex;g++)c.push(o[g]);if(c.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c),i.endIndex<=n.startIndex){P.push(i.endPt);for(var y=i.endIndex+1;y<=n.startIndex;y++)P.push(o[y]);P.push(n.startPt),2===o.length&&SuperMapAlgoPlot.PlottingUtil.distance(o[0],i.endPt)<=SuperMapAlgoPlot.PlottingUtil.distance(o[0],n.startPt)&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P),o.length>2&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P)}h.push(n.endPt);for(var f=n.endIndex+1;f<o.length;f++)h.push(o[f]);this.addArrow(h,this.scaleValues[1]),this.finish()}}},{key:"createSubSymbol1",value:function(t,e,o){var l=this.getSubSymbolPts(e);this.createSubSymbol(t,e,o,l)}},{key:"createSubSymbol2",value:function(t,e,o){var l=this.getSubSymbolPts(e);this.createSubSymbol(t,e,o,l)}},{key:"createSubSymbol",value:function(t,e,o,l){for(var i=[],n=0;n<l.length;n++){var r=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,l[n],o);i.push(r)}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,i)}},{key:"getSubSymbolPts",value:function(t){var e=t/2,o=[];return o.push(new SuperMapAlgoPlot.Point(-2*e,0)),o.push(new SuperMapAlgoPlot.Point(0,-e)),o.push(new SuperMapAlgoPlot.Point(2*e,0)),o.push(new SuperMapAlgoPlot.Point(0,e)),o}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(9*i/14,l),r=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;r<=.3&&(this.scaleValues[0]=r)}}}]),e}();SuperMapAlgoPlot.AlgoSymbol3010102=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbol328=void 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}}();o(10);var i=e.AlgoSymbol328=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[0]=.05,o.scaleValues[1]=.05),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,SuperMapAlgoPlot.AlgoSymbol3010102),l(e,[{key:"createSubSymbol1",value:function(t,e,o){for(var l=this.getSubSymbolPts(e),i=0;i<l.length;i++)this.createSubSymbol(t,e,o,l[i])}},{key:"createSubSymbol2",value:function(t,e,o){for(var l=this.getSubSymbolPts(e),i=0;i<l.length;i++)this.createSubSymbol(t,e,o,l[i])}},{key:"createSubSymbol",value:function(t,e,o,l){for(var i=[],n=0;n<l.length;n++){var r=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,l[n],o);i.push(r)}var a=SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL;2===l.length&&(a=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL),this.addCell(a,i)}},{key:"getSubSymbolPts",value:function(t){var e=[],o=t/2,l=[];l.push(new SuperMapAlgoPlot.Point(-2*o,0)),l.push(new SuperMapAlgoPlot.Point(0,-o)),l.push(new SuperMapAlgoPlot.Point(2*o,0)),l.push(new SuperMapAlgoPlot.Point(0,o)),e.push(l);var i=[];return i.push(new SuperMapAlgoPlot.Point(-o,o)),i.push(new SuperMapAlgoPlot.Point(o,o)),e.push(i),e}}]),e}();SuperMapAlgoPlot.AlgoSymbol328=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.AlgoSymbol21501=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(.02)),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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);if(0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.02):1===this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue()),!this.isEdit){var l=this.getDefaultSubSymbolSize()/o;(l>.3||l<=0)&&(l=.3),this.scaleValues[0]=l,this.scaleValues[1]=.5*this.getSubSymbolScaleValue()}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt);this.addSubSymbols(n,a,r);for(var s=[],u=[],p=0;p<=i.startIndex;p++)s.push(e[p]);if(s.push(i.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){u.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)u.push(e[c]);this.addArrow(u,this.scaleValues[1])}var P=o*this.scaleValues[0]*.5,h=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,P,P,r+90);this.addScalePoint(h,0),this.finish()}}},{key:"addSubSymbols",value:function(t,e,o){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,.8*e,o-180)}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*i,l),r=2*SuperMapAlgoPlot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMapAlgoPlot.AlgoSymbol21501=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbol327=void 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}}();o(12);var i=e.AlgoSymbol327=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(.02)),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,SuperMapAlgoPlot.AlgoSymbol21501),l(e,[{key:"addSubSymbols",value:function(t,e,o){var l=new SuperMapAlgoPlot.Point(-.5*e,.25*e),i=new SuperMapAlgoPlot.Point(-.5*e,-.25*e),n=[];n.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,l,o)),n.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,i,o)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);var r=new SuperMapAlgoPlot.Point(-.5*e,.125*e),a=new SuperMapAlgoPlot.Point(.25*e,.125*e),s=new SuperMapAlgoPlot.Point(.5*e,0),u=new SuperMapAlgoPlot.Point(.25*e,-.125*e),p=new SuperMapAlgoPlot.Point(-.5*e,-.125*e),c=[];c.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,r,o)),c.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,a,o)),c.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,s,o)),c.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,u,o)),c.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,p,o)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c)}}]),e}();SuperMapAlgoPlot.AlgoSymbol327=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.AlgoSymbol326=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}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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);0===this.scaleValues.length&&(this.scaleValues[0]=.05),this.isEdit||(this.scaleValues[0]=2*this.getSubSymbolScaleValue());var o=this.getLinePts(e,this.scaleValues[0]),l=new SuperMapAlgoPlot.Point((o.startPt.x+o.endPt.x)/2,(o.startPt.y+o.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(o.startPt,o.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,n=SuperMapAlgoPlot.PlottingUtil.distance(o.startPt,o.endPt);this.addSubSymbols(l,n,i);for(var r=[],a=0;a<=o.startIndex;a++)r.push(e[a]);r.push(o.startPt);for(var s=.1*n,u=SuperMapAlgoPlot.PlottingUtil.makeDottedLine(r,s),p=0;p<u.length;p++)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u[p]);if(o.endIndex<=e.length){var c=[];c.push(o.endPt);for(var P=o.endIndex+1;P<=e.length-1;P++)c.push(e[P]);var h=SuperMapAlgoPlot.PlottingUtil.makeDottedLine(c,s);for(p=0;p<h.length;p++)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h[p])}this.finish()}}},{key:"addSubSymbols",value:function(t,e,o){var l=.1*e,i=new SuperMapAlgoPlot.Point(-l,l),n=new SuperMapAlgoPlot.Point(l,-l),r=[];r.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,i,o)),r.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,n,o)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r);var a=new SuperMapAlgoPlot.Point(-l,-l),s=new SuperMapAlgoPlot.Point(l,l),u=[];u.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,a,o)),u.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,s,o)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u);var p=new SuperMapAlgoPlot.Point(-4*l,l),c=new SuperMapAlgoPlot.Point(-2*l,-l),P=[];P.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,p,o)),P.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,c,o)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var h=new SuperMapAlgoPlot.Point(-4*l,-l),g=new SuperMapAlgoPlot.Point(-2*l,l),y=[];y.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,h,o)),y.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,g,o)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y);var f=new SuperMapAlgoPlot.Point(2*l,l),S=new SuperMapAlgoPlot.Point(4*l,-l),A=[];A.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,f,o)),A.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,S,o)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A);var d=new SuperMapAlgoPlot.Point(2*l,-l),M=new SuperMapAlgoPlot.Point(4*l,l),v=[];v.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,d,o)),v.push(SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t,M,o)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v)}},{key:"computeScaleValues",value:function(t,e){}}]),e}();SuperMapAlgoPlot.AlgoSymbol326=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.AlgoSymbol322=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(.025),o.scaleValues.push(.085)),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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue()),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t),SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[0].x,t[t.length-1].x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[0].y,t[t.length-1].y)||t.push(t[0]);for(var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=this.scaleValues[0]*e,l=-1*SuperMapAlgoPlot.PlottingUtil.innerOutlineDir(t),i=this.scaleValues[1]*e,n=.3*i,r=i;r<e;r+=i){var a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,r);if(-1===a.index)return void this.finish();var s=r+n,u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,s);if(-1===u.index)return void this.finish();var p=[],c=[];p.push(a.pt);var P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,t[a.index],a.pt);1===l?p.push(new SuperMapAlgoPlot.Point(P.pntLeft.x,P.pntLeft.y)):p.push(new SuperMapAlgoPlot.Point(P.pntRight.x,P.pntRight.y)),c.push(u.pt);var h=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,t[u.index],u.pt);if(1===l?c.push(new SuperMapAlgoPlot.Point(h.pntLeft.x,h.pntLeft.y)):c.push(new SuperMapAlgoPlot.Point(h.pntRight.x,h.pntRight.y)),i===r){this.scalePoints=[];var g=new SuperMapAlgoPlot.Point(p[1].x,p[1].y);g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g),(g=new SuperMapAlgoPlot.Point(p[0].x,p[0].y)).isScalePoint=!0,g.tag=1,this.scalePoints.push(g)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;SuperMapAlgoPlot.PlottingUtil.equalFuzzy(o[0].x,o[o.length-1].x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(o[0].y,o[o.length-1].y)||o.push(o[0]);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=new SuperMapAlgoPlot.Point(e.x,e.y);if(0===t){var n=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,l*this.scaleValues[1]);if(-1===n.index)return;var r=SuperMapAlgoPlot.PlottingUtil.distance(n.pt,i)/l;this.scaleValues[0]=r}else if(1===t){for(var a=0,s=-1,u=null,p=0,c=o.length-1;p<c;p++){var P=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,o[p],o[p+1]);if(P.isOnline)if(null==u)s=p,u=P.projectPoint,a=SuperMapAlgoPlot.PlottingUtil.distance(e,u);else{var h=SuperMapAlgoPlot.PlottingUtil.distance(e,u);h<a&&(s=p,u=P.projectPoint,a=h)}}if(-1==s)return;for(var g=0,y=0,f=s-1;y<f;y++)g+=SuperMapAlgoPlot.PlottingUtil.distance(o[y],o[y+1]);var S=(g+=SuperMapAlgoPlot.PlottingUtil.distance(o[s],u))/l;S>.3&&(S=.3),this.scaleValues[1]=S}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol322=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.AlgoSymbol321=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(.02),o.scaleValues.push(.1),o.scaleValues.push(0)),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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=this.getSubSymbolScaleValue();this.isEdit||(this.scaleValues[0]=.5*l);var i=this.scaleValues[0]*e,n=SuperMapAlgoPlot.PlottingUtil.paraLine(o,.5*i,!0),r=SuperMapAlgoPlot.PlottingUtil.paraLine(o,.5*i,!1);n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n),r=SuperMapAlgoPlot.PlottingUtil.clearSamePts(r),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r);for(var a=e*this.scaleValues[1],s=.5*i,u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),p=s,c=0;p<u;p+=a,c++){var P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,p);if(-1!==P.index){var h=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,n[P.index+1],P.pt),g=[];g.push(h.pntRight),g.push(P.pt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var y=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(r,p);if(-1!==y.index){var f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,r[y.index+1],y.pt);(g=[]).push(y.pt),g.push(f.pntLeft),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g),0===c?this.addScalePoint(h.pntRight,0):1===c&&this.addScalePoint(P.pt,1)}}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);for(var l=0,i=0;i<o.length-1;i++)l+=SuperMapAlgoPlot.PlottingUtil.distance(o[i],o[i+1]);var n,r=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);if(r=SuperMapAlgoPlot.PlottingUtil.clearSamePts(r),0==t){n=.5*(l*this.scaleValues[0]);var a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(r,n);if(-1===a.index)return;var s=SuperMapAlgoPlot.PlottingUtil.distance(e,a.pt);this.scaleValues[0]=s/l}else if(1===t){n=.5*(l*this.scaleValues[0]);var u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(r,n);if(-1===u.index)return;var p=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,r);if(-1==p.index)return;for(var c=SuperMapAlgoPlot.PlottingUtil.distance(u.pt,r[u.index+1]),P=u.index+1;P<p.index;P++)c+=SuperMapAlgoPlot.PlottingUtil.distance(r[P],r[P+1]);c+=SuperMapAlgoPlot.PlottingUtil.distance(r[p.index],p.pt),this.scaleValues[1]=c/l}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol321=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.AlgoSymbol320=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}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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,o=0;o<t.length-1;o++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[o],t[o+1]);var l,i,n=this.scaleValues[0]*e,r=t[0],a=t[1],s=180*SuperMapAlgoPlot.PlottingUtil.radian(r,a)/Math.PI;l=SuperMapAlgoPlot.PlottingUtil.paraLine(t,n,!0),i=SuperMapAlgoPlot.PlottingUtil.paraLine(t,n,!1);var u=.15*e,p=SuperMapAlgoPlot.PlottingUtil.circlePoint(l[0],u,u,s+165),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(i[0],u,u,s-165),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(l[l.length-1],u,u,s+15),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(i[i.length-1],u,u,s-15),g=[];g.push(p),g.push(l[0]),g.push(l[l.length-1]),g.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var y=[];y.push(c),y.push(i[0]),y.push(i[i.length-1]),y.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y);var f=new SuperMapAlgoPlot.Point(l[0].x,l[0].y);f.isScalePoint=!0,f.tag=0,this.scalePoints.push(f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);for(var l=0,i=0;i<o.length-1;i++)l+=SuperMapAlgoPlot.PlottingUtil.distance(o[i],o[i+1]);if(0==t){var n=o[0],r=o[1],a=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,n,r),s=SuperMapAlgoPlot.PlottingUtil.distance(e,a);this.scaleValues[0]=s/l}}}}]),e}();SuperMapAlgoPlot.AlgoSymbol320=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.AlgoSymbol25701=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=t[0].x,o=t[0].x,l=0;l<t.length;l++)e>t[l].x&&(e=t[l].x),o<t[l].x&&(o=t[l].x);var i=(o-e)/50;this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var n={surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1},r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),a=10*i;t.push(t[0]);for(var s=!0,u=r.x,p=r.x;s;){s=!1;for(var c,P,h,g,y,f=[],S=new SuperMapAlgoPlot.Point(u,r.y),A=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,10,10,45),d=0;d<t.length-1;d++){var M=SuperMapAlgoPlot.PlottingUtil.intersectLines(S,A,t[d],t[d+1]);M.isIntersectLines&&(P=M.intersectPoint,(h=[]).push(t[d]),h.push(t[d+1]),(c=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(P,h)).isOnPolyLine&&f.push(P))}if(1<f.length){this.sortPts2D(f);for(var v=0;v<f.length-1;v++)y=new SuperMapAlgoPlot.Point((f[v].x+f[v+1].x)/2,(f[v].y+f[v+1].y)/2),SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(t,y)&&((g=[]).push(f[v]),g.push(f[v+1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,n,!0))}f.length>0&&(s=!0),f=[];for(var b=new SuperMapAlgoPlot.Point(p,r.y),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(b,5,5,45),T=0;T<t.length-1;T++)(c=SuperMapAlgoPlot.PlottingUtil.intersectLines(b,m,t[T],t[T+1])).isIntersectLines&&(P=c.intersectPoint,(h=[]).push(t[T]),h.push(t[T+1]),(c=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(P,h)).isOnPolyLine&&f.push(P));if(1<f.length){this.sortPts2D(f);for(var L=0;L<f.length-1;L++)y=new SuperMapAlgoPlot.Point((f[L].x+f[L+1].x)/2,(f[L].y+f[L+1].y)/2),SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(t,y)&&((g=[]).push(f[L]),g.push(f[L+1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,n,!0))}f.length>0&&(s=!0),u-=a,p+=a}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMapAlgoPlot.Point(0,0),o=0;o<t.length;o++)for(var l=0;l<t.length-1-o;l++)SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[l].x,t[l+1].x)?t[l].y>t[l+1].y&&(e=t[l],t[l]=t[l+1],t[l+1]=e):t[l].x>t[l+1].x&&(e=t[l],t[l]=t[l+1],t[l+1]=e);return t}}]),e}();SuperMapAlgoPlot.AlgoSymbol25701=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.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);for(var o=0,l=0,i=e.length-1;l<i;l++)o+=SuperMapAlgoPlot.PlottingUtil.distance(e[l],e[l+1]);for(var n=0,r=0,a=t.length-1;r<a;r++)n+=SuperMapAlgoPlot.PlottingUtil.distance(t[r],t[r+1]);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());for(var s=this.scaleValues[0]*n,u=this.scaleValues[1],p=this.scaleValues[2]*n,c=.3*p,P=p;P<o;P+=p){var h=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(P,e);if(-1===h.index)return void this.finish();var g=P+c,y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(g,e);if(-1===y.index)return void this.finish();var f=[],S=[];f.push(h.pts);var A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,e[h.index],h.pts);0===u?f.push(new SuperMapAlgoPlot.Point(A.pntLeft.x,A.pntLeft.y)):f.push(new SuperMapAlgoPlot.Point(A.pntRight.x,A.pntRight.y)),S.push(y.pts);var d=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,e[y.index],y.pts);if(0===u?S.push(new SuperMapAlgoPlot.Point(d.pntLeft.x,d.pntLeft.y)):S.push(new SuperMapAlgoPlot.Point(d.pntRight.x,d.pntRight.y)),p===P){this.scalePoints=[];var M=new SuperMapAlgoPlot.Point(f[1].x,f[1].y);M.isScalePoint=!0,M.tag=0,this.scalePoints.push(M),(M=new SuperMapAlgoPlot.Point(f[0].x,f[0].y)).isScalePoint=!0,M.tag=1,this.scalePoints.push(M)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;for(var l=0,i=0,n=o.length-1;i<n;i++)l+=SuperMapAlgoPlot.PlottingUtil.distance(o[i],o[i+1]);var r=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o),a=new SuperMapAlgoPlot.Point(e.x,e.y);if(0===t){var s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(r,l*this.scaleValues[2]);if(-1===s.index)return;var u=SuperMapAlgoPlot.PlottingUtil.distance(s.pt,a)/l,p=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(r[0],r[1],e);this.scaleValues[1]=p?1:0,this.scaleValues[0]=u}else if(1===t){for(var c=0,P=-1,h=[],g=0,y=r.length-1;g<y;g++){var f=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,r[g],r[g+1]);if(f.isOnline){var S=SuperMapAlgoPlot.PlottingUtil.distance(f.projectPoint,this.controlPoints[1]);0==c?(c=S,P=g,h=e):S<c&&(c=S,P=g,h=e)}}if(-1==P)return;for(var A=0,d=0,M=P-1;d<M;d++)A+=SuperMapAlgoPlot.PlottingUtil.distance(r[d],r[d+1]);var v=(A+=SuperMapAlgoPlot.PlottingUtil.distance(h,r[P]))/l;v>.7&&(v=.7),this.scaleValues[2]=v}}}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol1004),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMapAlgoPlot.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+=SuperMapAlgoPlot.PlottingUtil.distance(t[o],t[o+1]);SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[0]),a=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],t[0],r+n);l=(this.scaleValues[8],SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,t[1],a));var s,u=e*this.scaleValues[6],p=e*this.scaleValues[7],c=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],r+p);s=(this.scaleValues[9],SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(u,t[0],c));var P=[];P.push(new SuperMapAlgoPlot.Point(l.pntLeft.x,l.pntLeft.y)),P.push(new SuperMapAlgoPlot.Point(t[0].x,t[0].y)),P.push(new SuperMapAlgoPlot.Point(t[1].x,t[1].y)),P.push(new SuperMapAlgoPlot.Point(s.pntRight.x,s.pntRight.y));var h=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(P);h=SuperMapAlgoPlot.PlottingUtil.clearSamePts(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h),this.addScalePoint(l.pntLeft,3),this.addScalePoint(s.pntRight,4)}}},{key:"modifyPoint",value:function(t,o){if(!0===o.isScalePoint){var l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),n=SuperMapAlgoPlot.PlottingUtil.projectPoint(o,l[0],l[1]);if(t<=2&&(SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.distance(o,n)/i,a=SuperMapAlgoPlot.PlottingUtil.distance(n,l[0])/i;this.scaleValues[4]=r,this.scaleValues[5]=a,SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[0],l[1],o)?this.scaleValues[8]=1:this.scaleValues[8]=0}if(4===t){var s=SuperMapAlgoPlot.PlottingUtil.distance(o,n)/i,u=SuperMapAlgoPlot.PlottingUtil.distance(n,l[1])/i;this.scaleValues[6]=s,this.scaleValues[7]=u,SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l[0],l[1],o)?this.scaleValues[9]=1:this.scaleValues[9]=0}}this.calculateParts()}}]),e}();SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),o=e*this.scaleValues[0],l=SuperMapAlgoPlot.PlottingUtil.paraLine(t,o,!0),i=SuperMapAlgoPlot.PlottingUtil.paraLine(t,o,!1),n=SuperMapAlgoPlot.PlottingUtil.findPointInLine(l[0],l[1],.6*e),r=SuperMapAlgoPlot.PlottingUtil.findPointInLine(l[0],l[1],.5*e),a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.1*e,l[0],r).pntLeft;this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[a,n,l[1]],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});var s=SuperMapAlgoPlot.PlottingUtil.findPointInLine(i[0],i[1],.4*e),u=SuperMapAlgoPlot.PlottingUtil.findPointInLine(i[0],i[1],.5*e),p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.1*e,i[0],u).pntRight;this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[p,s,i[0]],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l),this.addCell(SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){var i=SuperMapAlgoPlot.PlottingUtil.distance(o[0],e)/l;this.scaleValues[0]=i}}this.calculateParts()}}]),e}();SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t),this.components.length=0,this.m_scalePoints=[],t.length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<3)){var e=SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o.LeftArowLeftBody[0]),i=SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*l,o.LeftArowLeftBody[0]);if(s.bfind)for(var u=s.index;u<o.LeftArowLeftBody[0].length-1;u++)r.push(o.LeftArowLeftBody[0][u]);var p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o.RightArowLeftBody),c=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.4*p,o.RightArowLeftBody),P=[],h=[];if(c.bfind)for(var g=0;g<=c.index;g++)P.push(o.RightArowLeftBody[g]);var y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*p,o.RightArowLeftBody);if(y.bfind)for(var f=y.index;f<o.RightArowLeftBody.length-1;f++)h.push(o.RightArowLeftBody[f]);var S=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o.RightArowRightBody),A=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.4*S,o.RightArowRightBody),d=[],M=[];if(A.bfind)for(var v=0;v<=A.index;v++)d.push(o.RightArowRightBody[v]);var b=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*S,o.RightArowRightBody);if(b.bfind)for(var m=b.index;m<o.RightArowRightBody.length-1;m++)M.push(o.RightArowRightBody[m]);o.shapePts.length>0&&(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o.shapePts,{strokeWidth:0,weight:0,lineWidthLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o.LeftArowHead,{lineTypeLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o.LeftArowRightBody),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o.RightArowHead,{lineTypeLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M)),this.scalePoints=[];for(var T=0;T<this.m_scalePoints.length;T++)this.m_scalePoints[T].isScalePoint=!0,this.m_scalePoints[T].tag=T,this.scalePoints.push(this.m_scalePoints[T]);this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l,i=SuperMapAlgoPlot.PlottingUtil.operateControlPoints(o),n=new SuperMapAlgoPlot.Point((i[0].x+i[1].x)/2,(i[0].y+i[1].y)/2),r=new SuperMapAlgoPlot.Point((i[2].x+i[3].x)/2,(i[2].y+i[3].y)/2),a=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,n,r);if(a.isOnline){var s=SuperMapAlgoPlot.PlottingUtil.distance(a.projectPoint,n),u=SuperMapAlgoPlot.PlottingUtil.distance(n,r);(l=SuperMapAlgoPlot.PlottingUtil.equalFuzzy(s,0)?this.SV1_MinValue:s/u)>this.SV1_MaxValue&&(l=this.SV1_MaxValue)}else l=SuperMapAlgoPlot.PlottingUtil.distance(a.projectPoint,n)<SuperMapAlgoPlot.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 SuperMapAlgoPlot.Path2D,o=[];o=this.m_bIsAnimation&&4===t.length?SuperMapAlgoPlot.PlottingUtil.clonePoints(t):SuperMapAlgoPlot.PlottingUtil.operateControlPoints(t);var l=this.scaleValues[0],i=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[3]),n=SuperMapAlgoPlot.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),u=new SuperMapAlgoPlot.Point(a,s),p=.5*(o[1].x+o[2].x),c=.5*(o[1].y+o[2].y),P=new SuperMapAlgoPlot.Point(p,c),h=SuperMapAlgoPlot.PlottingUtil.distance(u,P);h<this.MIN_LEN_LeftToRightCenter&&(h=this.MIN_LEN_LeftToRightCenter),u.x=a+i*(a-p)/(h*this.QIANJI_RATE1),u.y=s+i*(s-c)/(h*this.QIANJI_RATE1),P.x=p+n*(p-a)/(h*this.QIANJI_RATE1),P.y=c+n*(c-s)/(h*this.QIANJI_RATE1);var g=new SuperMapAlgoPlot.Point(0,0),y=new SuperMapAlgoPlot.Point(0,0);g.x=a+i*(a-p)/(h*this.QIANJI_RATE2),g.y=s+i*(s-c)/(h*this.QIANJI_RATE2),y.x=p+n*(p-a)/(h*this.QIANJI_RATE2),y.y=c+n*(c-s)/(h*this.QIANJI_RATE2);var f=new SuperMapAlgoPlot.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),S=new SuperMapAlgoPlot.Point((o[2].x+o[3].x)/2,(o[2].y+o[3].y)/2),A=o[3].x-(o[3].x-u.x)*this.SCALE_AT,d=o[3].y-(o[3].y-u.y)*this.SCALE_AT,M=o[2].x-(o[2].x-P.x)*this.SCALE_AT,v=o[2].y-(o[2].y-P.y)*this.SCALE_AT,b=new SuperMapAlgoPlot.Point(0,0),m=new SuperMapAlgoPlot.Point(0,0),T=new SuperMapAlgoPlot.Point(0,0),L=new SuperMapAlgoPlot.Point(0,0);m.x=A-(d-o[3].y)*this.SCALE_ATAJ,m.y=d+(A-o[3].x)*this.SCALE_ATAJ,b.x=A+(d-o[3].y)*this.SCALE_ATAJ,b.y=d-(A-o[3].x)*this.SCALE_ATAJ,L.x=M-(v-o[2].y)*this.SCALE_ATAJ,L.y=v+(M-o[2].x)*this.SCALE_ATAJ,T.x=M+(v-o[2].y)*this.SCALE_ATAJ,T.y=v-(M-o[2].x)*this.SCALE_ATAJ;var O=new SuperMapAlgoPlot.Point(0,0),E=new SuperMapAlgoPlot.Point(0,0),w=new SuperMapAlgoPlot.Point(0,0),x=new SuperMapAlgoPlot.Point(0,0);O.x=3*b.x-2*A-(o[3].x-A)*this.SCALE_ATAE,O.y=3*b.y-2*d-(o[3].y-d)*this.SCALE_ATAE,E.x=3*m.x-2*A-(o[3].x-A)*this.SCALE_ATAE,E.y=3*m.y-2*d-(o[3].y-d)*this.SCALE_ATAE,w.x=3*T.x-2*M-(o[2].x-M)*this.SCALE_ATAE,w.y=3*T.y-2*v-(o[2].y-v)*this.SCALE_ATAE,x.x=3*L.x-2*M-(o[2].x-M)*this.SCALE_ATAE,x.y=3*L.y-2*v-(o[2].y-v)*this.SCALE_ATAE,u.x=a+i*(a-p)/(h*this.QIANJI_RATE4),u.y=s+i*(s-c)/(h*this.QIANJI_RATE4),P.x=p+n*(p-a)/(h*this.QIANJI_RATE4),P.y=c+n*(c-s)/(h*this.QIANJI_RATE4);var C=new SuperMapAlgoPlot.Point(0,0);C.x=o[0].x+(u.x-o[0].x)*this.SCALE_AW,C.y=o[0].y+(u.y-o[0].y)*this.SCALE_AW;var I=new SuperMapAlgoPlot.Point(0,0);I.x=o[1].x+(P.x-o[1].x)*this.SCALE_AW,I.y=o[1].y+(P.y-o[1].y)*this.SCALE_AW;var R=new SuperMapAlgoPlot.Point(0,0);R.x=b.x+(u.x-b.x)*this.SCALE_ATAJctrlSameSide,R.y=b.y+(u.y-b.y)*this.SCALE_ATAJctrlSameSide;var _=new SuperMapAlgoPlot.Point(0,0);_.x=L.x+(P.x-L.x)*this.SCALE_ATAJctrlSameSide,_.y=L.y+(P.y-L.y)*this.SCALE_ATAJctrlSameSide;var U=new SuperMapAlgoPlot.Point(0,0);U.x=m.x+(g.x-m.x)*this.SCALE_ATAJctrlDefSide,U.y=m.y+(g.y-m.y)*this.SCALE_ATAJctrlDefSide;var N=new SuperMapAlgoPlot.Point(0,0);N.x=T.x+(y.x-T.x)*this.SCALE_ATAJctrlDefSide,N.y=T.y+(y.y-T.y)*this.SCALE_ATAJctrlDefSide;var D=new SuperMapAlgoPlot.Point(0,0);D.x=f.x+(S.x-f.x)*l,D.y=f.y+(S.y-f.y)*l,this.m_scalePoints.push(new SuperMapAlgoPlot.Point(D.x,D.y));var B=new SuperMapAlgoPlot.Point(0,0),k=new SuperMapAlgoPlot.Point(0,0);B.x=o[0].x+(o[3].x-o[0].x)*l,B.y=o[0].y+(o[3].y-o[0].y)*l,k.x=o[1].x+(o[2].x-o[1].x)*l,k.y=o[1].y+(o[2].y-o[1].y)*l,B.x=B.x+(D.x-B.x)*this.QIANJI_RATE3,B.y=B.y+(D.y-B.y)*this.QIANJI_RATE3,k.x=k.x+(D.x-k.x)*this.QIANJI_RATE3,k.y=k.y+(D.y-k.y)*this.QIANJI_RATE3;var V=[];V.push(o[0].clone()),V.push(C.clone()),V.push(R.clone()),V.push(b.clone()),e.MoveTo(V[0]),e.CurveTo(V[1],V[2],V[3]);var Y,j=[],F=[],G=[],z=[],W=[],H=[],q=[];for(e.ToSubPathPolygons(q),j.push(q[0]),Y=q[0].length,e.LineTo(O),e.LineTo(o[3]),e.LineTo(E),(V=[]).push(m),V.push(U),V.push(B),V.push(D),e.LineTo(V[0]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)F.push(q[0][Y]);for(Y=q[0].length,e.CurveTo(V[1],V[2],V[3]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)G.push(q[0][Y]);for(Y=q[0].length,(V=[]).push(k),V.push(N),V.push(T),e.CurveTo(V[0],V[1],V[2]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)z.push(q[0][Y]);for(Y=q[0].length,e.LineTo(w),e.LineTo(o[2]),e.LineTo(x),(V=[]).push(L),V.push(_),V.push(I),V.push(r),e.LineTo(V[0]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)W.push(q[0][Y]);for(Y=q[0].length,e.CurveTo(V[1],V[2],V[3]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)H.push(q[0][Y]);return q=[],e.ToSubPathPolygons(q),{shapePts:q[0],LeftArowLeftBody:j,LeftArowHead:F,LeftArowRightBody:G,ArowMidBody:[],RightArowLeftBody:z,RightArowHead:W,RightArowRightBody:H}}}]),e}();SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.distance(e,o),i=this.scaleValues[0],n=new SuperMapAlgoPlot.Point(0,-l*i),r=new SuperMapAlgoPlot.Point(0,l*i),a=this.scaleValues[1],s=this.scaleValues[3],u=new SuperMapAlgoPlot.Point(l*(1-s),-l*a),p=new SuperMapAlgoPlot.Point(l*(1-s),l*a),c=this.scaleValues[2],P=this.scaleValues[4],h=new SuperMapAlgoPlot.Point(l*(1-P),-l*c),g=new SuperMapAlgoPlot.Point(l*(1-P),l*c),y=new SuperMapAlgoPlot.Point(l,0),f=SuperMapAlgoPlot.PlottingUtil.radian(e,o),S=SuperMapAlgoPlot.PlottingUtil.distance(n,u),A=SuperMapAlgoPlot.PlottingUtil.findPointInLine(n,u,.3*S),d=SuperMapAlgoPlot.PlottingUtil.findPointInLine(n,u,.4*S),M=SuperMapAlgoPlot.PlottingUtil.distance(p,r),v=SuperMapAlgoPlot.PlottingUtil.findPointInLine(p,r,.6*M),b=SuperMapAlgoPlot.PlottingUtil.findPointInLine(p,r,.7*M),m=[];m.push(n),m.push(A),m.push(d),m.push(u),m.push(h),m.push(y),m.push(g),m.push(p),m.push(v),m.push(b),m.push(r);for(var T=[],L=0;L<m.length;L++){var O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,m[L],f*SuperMapAlgoPlot.PlottingUtil.RTOD);T.push(O)}for(var E=[],w=T.length-1;w>=0;--w)E.push(T[w]);var x=SuperMapAlgoPlot.PlottingUtil.clonePoints(E);x.push(x[0]),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,x,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[E[0],E[1]]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[E[2],E[3]]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[E[3],E[4],E[5],E[6],E[7]],{lineTypeLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[E[7],E[8]]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[E[9],E[10]]),this.scalePoints=[];var C=T[0].clone();C.isScalePoint=!0,C.tag=0,this.scalePoints.push(C);var I=T[3].clone();I.isScalePoint=!0,I.tag=1,this.scalePoints.push(I);var R=T[4].clone();R.isScalePoint=!0,R.tag=2,this.scalePoints.push(R),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),i=o[0].clone(),n=o[1].clone(),r=e.clone();if(0==t){var a=SuperMapAlgoPlot.PlottingUtil.distance(r,i)/l;this.scaleValues[0]=a}else if(1==t){var s=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,i,n),u=SuperMapAlgoPlot.PlottingUtil.distance(s,r)/l;this.scaleValues[1]=u;var p=SuperMapAlgoPlot.PlottingUtil.distance(s,n)/l;this.scaleValues[3]=p}else if(2==t){var c=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,i,n),P=SuperMapAlgoPlot.PlottingUtil.distance(c,r)/l;this.scaleValues[2]=P;var h=SuperMapAlgoPlot.PlottingUtil.distance(c,n)/l;this.scaleValues[4]=h}}this.calculateParts()}}]),e}();SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.distance(e,o),i=this.scaleValues[0],n=new SuperMapAlgoPlot.Point(0,-l*i),r=new SuperMapAlgoPlot.Point(0,l*i),a=this.scaleValues[1],s=this.scaleValues[3],u=new SuperMapAlgoPlot.Point(l*(1-s),-l*a),p=new SuperMapAlgoPlot.Point(l*(1-s),l*a),c=this.scaleValues[2],P=this.scaleValues[4],h=new SuperMapAlgoPlot.Point(l*(1-P),-l*c),g=new SuperMapAlgoPlot.Point(l*(1-P),l*c),y=new SuperMapAlgoPlot.Point(l,0),f=SuperMapAlgoPlot.PlottingUtil.radian(e,o),S=[];S.push(n),S.push(u),S.push(h),S.push(y),S.push(g),S.push(p),S.push(r),S.push(n);for(var A=[],d=0;d<S.length;d++){var M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,S[d],f*SuperMapAlgoPlot.PlottingUtil.RTOD);A.push(M)}for(var v=[],b=A.length-1;b>=0;--b)v.push(A[b]);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,v,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[v[2],v[1],v[7],v[6]],{surroundLineFlag:!1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[v[6],v[5],v[4],v[3],v[2]],{lineTypeLimit:!0,surroundLineFlag:!1}),this.scalePoints=[];var m=A[0].clone();m.isScalePoint=!0,m.tag=0,this.scalePoints.push(m);var T=A[1].clone();T.isScalePoint=!0,T.tag=1,this.scalePoints.push(T);var L=A[2].clone();L.isScalePoint=!0,L.tag=2,this.scalePoints.push(L),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),i=o[0].clone(),n=o[1].clone(),r=e.clone();if(0==t){var a=SuperMapAlgoPlot.PlottingUtil.distance(r,i)/l;this.scaleValues[0]=a}else if(1==t){var s=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,i,n),u=SuperMapAlgoPlot.PlottingUtil.distance(s,r)/l;this.scaleValues[1]=u;var p=SuperMapAlgoPlot.PlottingUtil.distance(s,n)/l;this.scaleValues[3]=p}else if(2==t){var c=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,i,n),P=SuperMapAlgoPlot.PlottingUtil.distance(c,r)/l;this.scaleValues[2]=P;var h=SuperMapAlgoPlot.PlottingUtil.distance(c,n)/l;this.scaleValues[4]=h}}this.calculateParts()}}]),e}();SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init(),this.applyUse()}},{key:"applyUse",value:function(){var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<3)){var e=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),o=this.arrowMeshs(e),l=SuperMapAlgoPlot.PlottingUtil.clonePoints(o.shapePts);(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).push(l[0]);var i=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o.leftBodyPts),n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o.rightBodyPts),r=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o.arrowHeadPts);if(0!=o.shapePts.length){var a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i),s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.4*a,i),u=[],p=[],c=[];if(s.bfind)for(var P=0;P<=s.index;P++)u.push(i[P]);var h=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.45*a,i),g=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.8*a,i);if(h.bfind&&g.bfind)for(var y=h.index;y<=g.index;y++)p.push(i[y]);var f=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.85*a,i);if(f.bfind)for(var S=f.index;S<i.length;S++)c.push(i[S]);var A=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n),d=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.15*A,n),M=[],v=[],b=[];if(d.bfind)for(var m=0;m<=d.index;m++)M.push(n[m]);var T=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.2*A,n),L=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.55*A,n);if(T.bfind&&L.bfind)for(var O=T.index;O<=L.index;O++)v.push(n[O]);var E=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.6*A,n);if(E.bfind)for(var w=E.index;w<n.length;w++)b.push(n[w]);var x=SuperMapAlgoPlot.PlottingUtil.clonePoints(r);x.splice(0,0,i[i.length-1]),x.push(n[0]),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u,{surroundLineFlag:!1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,{surroundLineFlag:!1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,{surroundLineFlag:!1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M,{surroundLineFlag:!1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,{surroundLineFlag:!1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b,{surroundLineFlag:!1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,x,{surroundLineFlag:!1,lineTypeLimit:!0});var C=this.updateScalePoints(e);if(this.scalePoints=[],3!=C.length)C=[];else for(var I=0;I<C.length;I++)C[I].isScalePoint=!0,C[I].tag=I,this.scalePoints.push(C[I]);this.finish()}else this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.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 u=this.calcScaleValueCount(o.length);if(this.scaleValues.length<u){var p=this.calcDefaultScaleValues(l);i=p[0],n=p[1],r=p[2],a=p[3]}else i=this.scaleValues[0],n=this.scaleValues[1],r=this.scaleValues[2],a=this.scaleValues[3];for(var c=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),P=[],h=0;h<this.scalePoints.length;h++)P.push(this.scalePoints[h].clone());if(0==P.length)return;P[t]=e.clone();var g,y,f=l-1;g=l<=3?new SuperMapAlgoPlot.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2):s[f-1].clone();var S,A,d,M,v,b,m=new SuperMapAlgoPlot.Point(0,0),T=new SuperMapAlgoPlot.Point(0,0),L=new SuperMapAlgoPlot.Point(0,0);SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(0,3,g,s[f],s[f+1],T,L),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(.5,s[l],s[l-1],L,m),y=m.clone();var O=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],y,P[2]);S=O.dLen1,O.dLen2,0==S&&(S=.1),A=S,i=(S/=a+1)/c,1==t?(M=(O=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],y,P[1])).dLen1,r=(v=O.dLen2)/S,a=(M-S)/S):0==t?(S=(O=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],y,P[0])).dLen1,n=(d=O.dLen2)/S,(b=SuperMapAlgoPlot.PlottingUtil.distance(s[l],s[l-1]))<2*S&&(S=.5*b),M=(O=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],y,P[1])).dLen1,r=(v=O.dLen2)/S,(a=(A-S)/S)<.1&&(r=v/(S=A/(1+(a=.1))),n=d/S),i=S/c):2==t&&(i=S/c),d=S*n,(b=SuperMapAlgoPlot.PlottingUtil.distance(s[l],s[l-1]))<2*S&&(d=(S=.5*b)*n,i=S/c),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=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),r=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePts(n,this.scaleValues,SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),a=r.arrowTouLen,s=r.leftBodyPts,u=r.rightBodyPts;if(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(a,0)){var p=[];p.push(s[s.length-1]),p.push(u[u.length-1]);var c=[];c.push(this.scaleValues[2]),c.push(this.scaleValues[3]),c.push(0),c.push(0);for(var P=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePts(n,p,c,a,SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),h=0;h<s.length;h++)e.push(s[h]),o.push(s[h]);for(var g=0;g<P.length;g++)e.push(P[g]),i.push(P[g]);for(var y=u.length-1;y>=0;y--)e.push(u[y]),l.push(u[y])}return{shapePts:e,leftBodyPts:o,rightBodyPts:l,arrowHeadPts:i}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!SuperMapAlgoPlot.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,u=this.genAtPts(e,s,n,a.ArrowTouLen),p=this.calc3rdScalePt(e,s,n,a.ArrowTouLen);return o.push(new SuperMapAlgoPlot.Point(a.LeftBodyPtsTemp[e].x,a.LeftBodyPtsTemp[e].y)),o.push(new SuperMapAlgoPlot.Point(u[2].x,u[2].y)),o.push(new SuperMapAlgoPlot.Point(p.x,p.y)),o}}}},{key:"operateCtrlPts",value:function(t){var e=SuperMapAlgoPlot.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 SuperMapAlgoPlot.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=[],u=[],p=[],c=[],P=e.length;if(P--,o.length<this.calcScaleValueCount(P)){var h=this.calcDefaultScaleValues(P);i=h[0],n=h[1]}else i=o[0],n=o[1];var g=SuperMapAlgoPlot.PlottingUtil.clonePoints(e),y=(g[0].x+g[1].x)/2,f=(g[0].y+g[1].y)/2,S=Math.abs(y-g[2].x),A=Math.abs(f-g[2].y),d=0;if(S>0&&A>0){var M=1/(y-g[2].x),v=-1/(f-g[2].y),b=1*g[2].y/(f-g[2].y)-1*g[2].x/(y-g[2].x);d=Math.abs(M*g[0].x+v*g[0].y+b)/Math.sqrt(M*M+v*v)}else A<=1e-4?d=Math.abs(f-g[1].y):S<=1e-4&&(d=Math.abs(y-g[1].x));var m=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,g[2],new SuperMapAlgoPlot.Point(y,f)),T=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(g[1],g[2],g[0]);T?(r[1]=g[1],a[1]=g[0]):(r[1]=g[0],a[1]=g[1]),g[1]=new SuperMapAlgoPlot.Point((g[0].x+g[1].x)/2,(g[0].y+g[1].y)/2);var L=Math.sqrt((m.pntLeft.x-m.pntRight.x)*(m.pntLeft.x-m.pntRight.x)+(m.pntLeft.y-m.pntRight.y)*(m.pntLeft.y-m.pntRight.y))*this.sv_AtWidthDivAwWidth,O=(l=L*this.sv_AtLenDivAtWidth)*n;SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,0)||(O=(l=t*i)*n);var E,w,x=SuperMapAlgoPlot.PlottingUtil.distance(g[P],g[P-1]),C=2*l;x<C&&(O=(l=x/2)*n),g.push(g[P].clone()),E=0,w=0;var I=0,R=[];for(I=2;I<=P;I++)E+=SuperMapAlgoPlot.PlottingUtil.distance(g[I],g[I-1]);for(E-=l,I=2;I<=P-1;I++)w+=SuperMapAlgoPlot.PlottingUtil.distance(g[I],g[I-1]),R[I]=O+(L-O)*Math.pow((E-w)/E,this.sv_AtScaleParameter);R[P]=O;var _,U,N=new SuperMapAlgoPlot.Point(0,0),D=new SuperMapAlgoPlot.Point(0,0),B=new SuperMapAlgoPlot.Point(0,0);for(I=2;I<=P-1;I++)SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(0,3,g[I-1],g[I],g[I+1],D,B),I==P-1&&SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(.5,g[P],g[P-1],B,N),_=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(R[I],D,g[I]),(T=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(B,D,_.pntRight))?(r[I]=new SuperMapAlgoPlot.Point(_.pntRight.x,_.pntRight.y),a[I]=new SuperMapAlgoPlot.Point(_.pntLeft.x,_.pntLeft.y)):(r[I]=new SuperMapAlgoPlot.Point(_.pntLeft.x,_.pntLeft.y),a[I]=new SuperMapAlgoPlot.Point(_.pntRight.x,_.pntRight.y));for(Math.sqrt(1*(g[P].x-N.x)*(g[P].x-N.x)+1*(g[P].y-N.y)*(g[P].y-N.y))>0&&(g[P]=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(l,g[P],N)),_=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(O,g[P+1],g[P]),(T=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(g[P],g[P+1],_.pntLeft))?(a[P]=new SuperMapAlgoPlot.Point(_.pntLeft.x,_.pntLeft.y),r[P]=new SuperMapAlgoPlot.Point(_.pntRight.x,_.pntRight.y)):(a[P]=new SuperMapAlgoPlot.Point(_.pntRight.x,_.pntRight.y),r[P]=new SuperMapAlgoPlot.Point(_.pntLeft.x,_.pntLeft.y)),I=2;I<P;I++)SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(3,3,r[I-1],r[I],r[I+1],D,B),s[I]=new SuperMapAlgoPlot.Point(D.x,D.y),u[I]=new SuperMapAlgoPlot.Point(B.x,B.y),SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(3,3,a[I-1],a[I],a[I+1],D,B),p[I]=new SuperMapAlgoPlot.Point(D.x,D.y),c[I]=new SuperMapAlgoPlot.Point(B.x,B.y),2==I&&(SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(.5,r[1],r[2],s[2],N),u[I]=new SuperMapAlgoPlot.Point(N.x,N.y),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(.5,a[1],a[2],p[2],N),c[I]=new SuperMapAlgoPlot.Point(N.x,N.y)),I==P-1&&(C=(x=SuperMapAlgoPlot.PlottingUtil.distance(r[P],r[P-1]))/3,(U=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(C,g[P],g[P+1])).x+=r[P].x-g[P].x,U.y+=r[P].y-g[P].y,C=(x=L-O)*Math.pow(C/E,this.sv_AtScaleParameter),_=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(C,r[P],U),s[P]=new SuperMapAlgoPlot.Point(_.pntLeft.x,_.pntLeft.y),C=(x=SuperMapAlgoPlot.PlottingUtil.distance(a[P],a[P-1]))/3,(U=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(C,g[P],g[P+1])).x+=a[P].x-g[P].x,U.y+=a[P].y-g[P].y,C=(x=L-O)*Math.pow(C/E,this.sv_AtScaleParameter),_=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(C,a[P],U),p[P]=new SuperMapAlgoPlot.Point(_.pntRight.x,_.pntRight.y));return{ArrowBodyCenterPts:SuperMapAlgoPlot.PlottingUtil.clonePoints(g),LeftBodyPtsTemp:r,RightBodyPtsTemp:a,LeftBodyPtsLeftCtrlPts:s,LeftBodyPtsRightCtrlPts:u,RightBodyPtsLeftCtrlPts:p,RightBodyPtsRightCtrlPts:c,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=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(r,e[t],e[t+1]);r=l*i;var s=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,e[t+1],a);return n.push(new SuperMapAlgoPlot.Point(s.pntLeft.x,s.pntLeft.y)),n.push(e[t+1]),n.push(new SuperMapAlgoPlot.Point(s.pntRight.x,s.pntRight.y)),n}},{key:"calc3rdScalePt",value:function(t,e,o,l){var i=l*o[3];return SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(i,e[t],e[t+1])}}]),e}();SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length>=this.minEditPts){this.scalePoints=[];var e=SuperMapAlgoPlot.PlottingUtil.clonePoints(t);this.isEdit||(this.scaleValues[0]=1.5*this.getSubSymbolScaleValue());var o=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePts(e,this.scaleValues,SuperMapAlgoPlot.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=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePts(e,r,a,l,SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),u=[];u=(u=u.concat(i)).concat(s);for(var p=n.length-1;p>=0;p--)u.push(n[p]);u.push(u[0]),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,u,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1});for(var c=SuperMapAlgoPlot.PlottingUtil.clonePoints(i),P=[],h=n.length-1;h>=0;h--)P.push(n[h]);P=P.concat(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var g=SuperMapAlgoPlot.PlottingUtil.clonePoints(s);g.push(n[n.length-1]),g.splice(0,0,i[i.length-1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,{lineTypeLimit:!0});var y=new SuperMapAlgoPlot.Point((r[0].x+r[1].x)/2,(r[0].y+r[1].y)/2),f=new SuperMapAlgoPlot.Point(y.x,y.y);f.isScalePoint=!0,f.tag=0,this.scalePoints.push(f);var S=new SuperMapAlgoPlot.Point(i[i.length-1].x,i[i.length-1].y);S.isScalePoint=!0,S.tag=1,this.scalePoints.push(S);var A=new SuperMapAlgoPlot.Point(s[0].x,s[0].y);A.isScalePoint=!0,A.tag=2,this.scalePoints.push(A),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=new SuperMapAlgoPlot.Point(this.scalePoints[0].x,this.scalePoints[0].y),l=new SuperMapAlgoPlot.Point(this.scalePoints[1].x,this.scalePoints[1].y),i=new SuperMapAlgoPlot.Point(this.scalePoints[2].x,this.scalePoints[2].y),n=this.scaleValues[0],r=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);r=SuperMapAlgoPlot.PlottingUtil.clearSamePts(r);var a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(r),s=a*n;if(0==t){var u=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,r[r.length-2],r[r.length-1]),p=u.projectPoint;if(u.isOnline){var c=SuperMapAlgoPlot.PlottingUtil.distance(p,r[r.length-1]);this.scaleValues[0]=c/a}}else if(1==t){var P=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,l,i).projectPoint,h=SuperMapAlgoPlot.PlottingUtil.distance(P,o);this.scaleValues[1]=h/s}else if(2==t){var g=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,r[1],i).projectPoint,y=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(g,o,r[1]),f=y.projectPoint,S=SuperMapAlgoPlot.PlottingUtil.distance(f,o);!1===y.isOnline&&(this.scaleValues[4]=S/s)}}this.calculateParts()}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.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=SuperMapAlgoPlot.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===SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL?o=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,l,this.arrowBodyType,r):this.arrowHeadType===SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE||this.arrowHeadType===SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID?(r=!0,o=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,l,this.arrowBodyType,r)):this.arrowHeadType===SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE?o=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,l,this.arrowBodyType,r):this.arrowHeadType===SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW?(r=!0,o=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,i,this.arrowBodyType,r)):this.arrowHeadType===SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL?(r=!0,o=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,n,this.arrowBodyType,r)):o=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,0,this.arrowBodyType,r);var a=[];this.arrowBodyType===SuperMapAlgoPlot.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,u=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(a,l,this.arrowHeadType);if(o.length>1)if(this.arrowBodyType!==SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o);else for(var p=0,c=o.length-1;p<c;p+=2){var P=SuperMapAlgoPlot.PlottingUtil.distance(o[p+1],o[p]),h=180*SuperMapAlgoPlot.PlottingUtil.radian(o[p+1],o[p])/Math.PI,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[p+1],.3*P,.3*P,h+30),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[p+1],.3*P,.3*P,h+330),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[p],.3*P,.3*P,h+30),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[p],.3*P,.3*P,h+330),A=[];A.push(g,o[p+1],y,S,o[p],f),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,A,e)}s=this.arrowBodyType===SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER?SuperMapAlgoPlot.ArrowToolkit.generateArrowTailShapePtsBySingleLine([o[0],o[1]],l,this.arrowTailType):SuperMapAlgoPlot.ArrowToolkit.generateArrowTailShapePtsBySingleLine([t[0],t[1]],l,this.arrowTailType);var d=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL;this.arrowHeadType!==SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL&&this.arrowHeadType!==SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID&&this.arrowHeadType!==SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE&&this.arrowHeadType!==SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW||(d=SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL),u.length>1&&this.addCell(d,u,e),s.length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s)}}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol1009),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol1008),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol1007),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol1005),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol1004),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<2)){var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(0!==e){var o=e*this.scaleValues[4],l=SuperMapAlgoPlot.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]);SuperMapAlgoPlot.AlgoSymbol1004.prototype.calculateParts.apply(this,arguments);var s=l.pntRight.clone();s.isScalePoint=!0,s.tag=3,this.addScalePoint(s),this.controlPoints=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),this.scaleValues=[];for(var u=0;u<n.length;u++)this.scaleValues.push(n[u])}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=n*this.scaleValues[4],a=SuperMapAlgoPlot.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 u,p,c,P,h,g=o.length,y=this.operateCtrlPts(o);g=y.length,g--;var f=this.calcScaleValueCount(o.length);if(f++,this.scaleValues.length<f){var S=this.calcDefaultScaleValues(g);u=S[0],p=S[1],c=S[2],P=S[3],h=this.sv_arrowTailWidth}else u=this.scaleValues[0],p=this.scaleValues[1],c=this.scaleValues[2],P=this.scaleValues[3],h=this.scaleValues[4];l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);for(var A=[],d=0;d<this.scalePoints.length;d++)A.push(this.scalePoints[d].clone());if(0===A.length)return;A[t]=e.clone();var M,v,b=g-1;M=g<=3?new SuperMapAlgoPlot.Point((y[0].x+y[1].x)/2,(y[0].y+y[1].y)/2):y[b-1].clone();var m,T,L,O,E,w,x=new SuperMapAlgoPlot.Point(0,0),C=new SuperMapAlgoPlot.Point(0,0),I=new SuperMapAlgoPlot.Point(0,0);SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(0,3,M,y[b],y[b+1],C,I),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(.5,y[g],y[g-1],I,x),v=x.clone();var R=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(y[g],v,A[2]);if(m=R.dLen1,R.dLen2,0===m&&(m=.1),T=m,u=(m/=P+1)/l,1===t)O=(R=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(y[g],v,A[1])).dLen1,c=(E=R.dLen2)/m,P=(O-m)/m;else if(0===t)m=(R=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(y[g],v,A[0])).dLen1,p=(L=R.dLen2)/m,(w=SuperMapAlgoPlot.PlottingUtil.distance(y[g],y[g-1]))<2*m&&(m=.5*w),O=(R=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(y[g],v,A[1])).dLen1,c=(E=R.dLen2)/m,(P=(T-m)/m)<.1&&(c=E/(m=T/(1+(P=.1))),p=L/m),u=m/l;else if(2===t)u=m/l;else{h=SuperMapAlgoPlot.PlottingUtil.distance(e,i)/n}L=m*p,(w=SuperMapAlgoPlot.PlottingUtil.distance(y[g],y[g-1]))<2*m&&(L=(m=.5*w)*p,u=m/l),this.scaleValues[0]=u,this.scaleValues[1]=p,this.scaleValues[2]=c,this.scaleValues[3]=P,this.scaleValues[4]=h}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],o=[],l=[],i=[],n=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),r=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePts(n,this.scaleValues,SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),a=r.arrowTouLen,s=r.leftBodyPts,u=r.rightBodyPts;if(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(a,0)){var p=[];p.push(s[s.length-1]),p.push(u[u.length-1]);var c=[];c.push(this.scaleValues[2]),c.push(this.scaleValues[3]),c.push(0),c.push(0);for(var P=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePts(n,p,c,a,SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),h=0;h<s.length;h++)e.push(s[h]),o.push(s[h]);for(var g=0;g<P.length;g++)e.push(P[g]),i.push(P[g]);for(var y=u.length-1;y>=0;y--)e.push(u[y]),l.push(u[y])}return{shapePts:e,leftBodyPts:o,rightBodyPts:l,arrowHeadPts:i}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!SuperMapAlgoPlot.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,u=this.genAtPts(e,s,n,a.ArrowTouLen),p=this.calc3rdScalePt(e,s,n,a.ArrowTouLen);return o.push(new SuperMapAlgoPlot.Point(a.LeftBodyPtsTemp[e].x,a.LeftBodyPtsTemp[e].y)),o.push(new SuperMapAlgoPlot.Point(u[2].x,u[2].y)),o.push(new SuperMapAlgoPlot.Point(p.x,p.y)),o}}}},{key:"operateCtrlPts",value:function(t){var e=SuperMapAlgoPlot.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 SuperMapAlgoPlot.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=[],u=[],p=[],c=[],P=e.length;if(P--,o.length<this.calcScaleValueCount(P)){var h=this.calcDefaultScaleValues(P);i=h[0],n=h[1]}else i=o[0],n=o[1];var g=SuperMapAlgoPlot.PlottingUtil.clonePoints(e),y=(g[0].x+g[1].x)/2,f=(g[0].y+g[1].y)/2,S=Math.abs(y-g[2].x),A=Math.abs(f-g[2].y),d=0;if(S>0&&A>0){var M=1/(y-g[2].x),v=-1/(f-g[2].y),b=1*g[2].y/(f-g[2].y)-1*g[2].x/(y-g[2].x);d=Math.abs(M*g[0].x+v*g[0].y+b)/Math.sqrt(M*M+v*v)}else A<=1e-4?d=Math.abs(f-g[1].y):S<=1e-4&&(d=Math.abs(y-g[1].x));var m=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,g[2],new SuperMapAlgoPlot.Point(y,f)),T=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(g[1],g[2],g[0]);T?(r[1]=g[1],a[1]=g[0]):(r[1]=g[0],a[1]=g[1]),g[1]=new SuperMapAlgoPlot.Point((g[0].x+g[1].x)/2,(g[0].y+g[1].y)/2);var L=Math.sqrt((m.pntLeft.x-m.pntRight.x)*(m.pntLeft.x-m.pntRight.x)+(m.pntLeft.y-m.pntRight.y)*(m.pntLeft.y-m.pntRight.y))*this.sv_AtWidthDivAwWidth,O=(l=L*this.sv_AtLenDivAtWidth)*n;SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,0)||(O=(l=t*i)*n);var E,w,x=SuperMapAlgoPlot.PlottingUtil.distance(g[P],g[P-1]),C=2*l;x<C&&(O=(l=x/2)*n),g.push(g[P].clone()),E=0,w=0;var I=0,R=[];for(I=2;I<=P;I++)E+=SuperMapAlgoPlot.PlottingUtil.distance(g[I],g[I-1]);for(E-=l,I=2;I<=P-1;I++)w+=SuperMapAlgoPlot.PlottingUtil.distance(g[I],g[I-1]),R[I]=O+(L-O)*Math.pow((E-w)/E,this.sv_AtScaleParameter);R[P]=O;var _,U,N=new SuperMapAlgoPlot.Point(0,0),D=new SuperMapAlgoPlot.Point(0,0),B=new SuperMapAlgoPlot.Point(0,0);for(I=2;I<=P-1;I++)SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(0,3,g[I-1],g[I],g[I+1],D,B),I===P-1&&SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(.5,g[P],g[P-1],B,N),_=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(R[I],D,g[I]),(T=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(B,D,_.pntRight))?(r[I]=new SuperMapAlgoPlot.Point(_.pntRight.x,_.pntRight.y),a[I]=new SuperMapAlgoPlot.Point(_.pntLeft.x,_.pntLeft.y)):(r[I]=new SuperMapAlgoPlot.Point(_.pntLeft.x,_.pntLeft.y),a[I]=new SuperMapAlgoPlot.Point(_.pntRight.x,_.pntRight.y));for(Math.sqrt(1*(g[P].x-N.x)*(g[P].x-N.x)+1*(g[P].y-N.y)*(g[P].y-N.y))>0&&(g[P]=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(l,g[P],N)),_=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(O,g[P+1],g[P]),(T=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(g[P],g[P+1],_.pntLeft))?(a[P]=new SuperMapAlgoPlot.Point(_.pntLeft.x,_.pntLeft.y),r[P]=new SuperMapAlgoPlot.Point(_.pntRight.x,_.pntRight.y)):(a[P]=new SuperMapAlgoPlot.Point(_.pntRight.x,_.pntRight.y),r[P]=new SuperMapAlgoPlot.Point(_.pntLeft.x,_.pntLeft.y)),I=2;I<P;I++)SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(3,3,r[I-1],r[I],r[I+1],D,B),s[I]=new SuperMapAlgoPlot.Point(D.x,D.y),u[I]=new SuperMapAlgoPlot.Point(B.x,B.y),SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(3,3,a[I-1],a[I],a[I+1],D,B),p[I]=new SuperMapAlgoPlot.Point(D.x,D.y),c[I]=new SuperMapAlgoPlot.Point(B.x,B.y),2===I&&(SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(.5,r[1],r[2],s[2],N),u[I]=new SuperMapAlgoPlot.Point(N.x,N.y),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(.5,a[1],a[2],p[2],N),c[I]=new SuperMapAlgoPlot.Point(N.x,N.y)),I===P-1&&(C=(x=SuperMapAlgoPlot.PlottingUtil.distance(r[P],r[P-1]))/3,(U=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(C,g[P],g[P+1])).x+=r[P].x-g[P].x,U.y+=r[P].y-g[P].y,C=(x=L-O)*Math.pow(C/E,this.sv_AtScaleParameter),_=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(C,r[P],U),s[P]=new SuperMapAlgoPlot.Point(_.pntLeft.x,_.pntLeft.y),C=(x=SuperMapAlgoPlot.PlottingUtil.distance(a[P],a[P-1]))/3,(U=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(C,g[P],g[P+1])).x+=a[P].x-g[P].x,U.y+=a[P].y-g[P].y,C=(x=L-O)*Math.pow(C/E,this.sv_AtScaleParameter),_=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(C,a[P],U),p[P]=new SuperMapAlgoPlot.Point(_.pntRight.x,_.pntRight.y));return{ArrowBodyCenterPts:SuperMapAlgoPlot.PlottingUtil.clonePoints(g),LeftBodyPtsTemp:r,RightBodyPtsTemp:a,LeftBodyPtsLeftCtrlPts:s,LeftBodyPtsRightCtrlPts:u,RightBodyPtsLeftCtrlPts:p,RightBodyPtsRightCtrlPts:c,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=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(r,e[t],e[t+1]);r=l*i;var s=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,e[t+1],a);return n.push(new SuperMapAlgoPlot.Point(s.pntLeft.x,s.pntLeft.y)),n.push(e[t+1]),n.push(new SuperMapAlgoPlot.Point(s.pntRight.x,s.pntRight.y)),n}},{key:"calc3rdScalePt",value:function(t,e,o,l){var i=l*o[3];return SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(i,e[t],e[t+1])}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=this.arrowMeshs(t);if(SuperMapAlgoPlot.PlottingUtil.clearSamePts(e.shapePts),0!==e.shapePts.length){this.addCell(SuperMapAlgoPlot.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=SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),u=this.operateCtrlPts(o);a=u.length,a--;for(var p=[],c=0;c<this.scalePoints.length;c++)p.push(this.scalePoints[c].clone());if(0===p.length)return;if(p[t]=e.clone(),3===t){var P=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePts(o,this.scaleValues,SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),h=new SuperMapAlgoPlot.Point(.5*(P.leftBodyPts[0].x+P.rightBodyPts[0].x),.5*(P.leftBodyPts[0].y+P.rightBodyPts[0].y)),g=SuperMapAlgoPlot.PlottingUtil.distance(P.leftBodyPts[0],P.rightBodyPts[0]);this.scaleValues[4]=SuperMapAlgoPlot.PlottingUtil.distance(h,e)/g}else{var y,f,S=a-1;y=a<=3?new SuperMapAlgoPlot.Point((u[0].x+u[1].x)/2,(u[0].y+u[1].y)/2):u[S-1].clone();var A,d,M,v,b,m,T=new SuperMapAlgoPlot.Point(0,0),L=new SuperMapAlgoPlot.Point(0,0),O=new SuperMapAlgoPlot.Point(0,0);SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(0,3,y,u[S],u[S+1],L,O),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(.5,u[a],u[a-1],O,T),f=T.clone();var E=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(u[a],f,p[2]);A=E.dLen1,E.dLen2,0===A&&(A=.1),d=A,l=(A/=r+1)/s,1===t?(v=(E=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(u[a],f,p[1])).dLen1,n=(b=E.dLen2)/A,r=(v-A)/A):0===t?(A=(E=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(u[a],f,p[0])).dLen1,i=(M=E.dLen2)/A,(m=SuperMapAlgoPlot.PlottingUtil.distance(u[a],u[a-1]))<2*A&&(A=.5*m),v=(E=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(u[a],f,p[1])).dLen1,n=(b=E.dLen2)/A,(r=(d-A)/A)<.1&&(n=b/(A=d/(1+(r=.1))),i=M/A),l=A/s):2===t&&(l=A/s),M=A*i,(m=SuperMapAlgoPlot.PlottingUtil.distance(u[a],u[a-1]))<2*A&&(M=(A=.5*m)*i,l=A/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=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),s=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePts(a,this.scaleValues,SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),u=s.arrowTouLen,p=s.leftBodyPts,c=s.rightBodyPts;if(a=s.OpectrlPoints,!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(u,0)){var P=[];P.push(p[p.length-1]),P.push(c[c.length-1]);var h=[];h.push(this.scaleValues[2]),h.push(this.scaleValues[3]),h.push(0),h.push(0);var g=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePts(a,P,h,u,SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),y=[];y.push(p[0]),y.push(c[0]);for(var f,S=SuperMapAlgoPlot.ArrowToolkit.generateArrowTailShapePts(t,y,this.scaleValues[4],SuperMapAlgoPlot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL_POLYBODY),A=0;A<p.length;A++)e.push(p[A]),o.push(p[A]);for(var d=0;d<g.length;d++)e.push(g[d]),i.push(g[d]);for(var M=c.length-1;M>=0;M--)e.push(c[M]),l.push(c[M]);for(var v=1;v<S.length;v++)e.push(S[v]),n.push(S[v]);var b=a.length;b-=2;var m=u*this.scaleValues[3];f=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(m,a[b],a[b+1]);var T=new SuperMapAlgoPlot.Point(o[o.length-1].x,o[o.length-1].y);T.isScalePoint=!0,T.tag=0,r.push(T),(T=new SuperMapAlgoPlot.Point(i[0].x,i[0].y)).isScalePoint=!0,T.tag=1,r.push(T),(T=new SuperMapAlgoPlot.Point(f.x,f.y)).isScalePoint=!0,T.tag=2,r.push(T),(T=new SuperMapAlgoPlot.Point(S[1].x,S[1].y)).isScalePoint=!0,T.tag=3,r.push(T)}return{shapePts:e,leftBodyPts:o,rightBodyPts:l,arrowHeadPts:i,arrowTailPts:n,m_scalePoints:r}}},{key:"operateCtrlPts",value:function(t){var e=SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(o,l),n=e[2];e[2]=i,e.push(n)}return e}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=!1;void 0!==t[0].z&&(e=!0),this.scaleValues[0]=this.getSubSymbolScaleValue();var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],l=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,0,SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE,!1),i=[];i.push(l[l.length-1]),i.push(l[l.length-2]);var n=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(i,o,SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE),r=[];r.push(l[0]),r.push(l[1]);var a=SuperMapAlgoPlot.ArrowToolkit.generateArrowTailShapePtsBySingleLine(r,o,SuperMapAlgoPlot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL);if(e){for(var s=t.length,u=[],p=[],c=[],P=0;P<s;++P)u.push({x:t[P].x,y:t[P].y,z:t[P].z});var h,g={x:t[s-1].x,y:t[s-1].y,z:t[s-1].z},y={x:t[s-2].x,y:t[s-2].y,z:t[s-2].z};h=this.ComputeZValue(l[s-1],g,y),u.push({x:l[s-1].x,y:l[s-1].y,z:h});for(var f=0;f<n.length;++f)h=this.ComputeZValue(n[f],g,y),p.push({x:n[f].x,y:n[f].y,z:h});for(var S={x:t[1].x,y:t[1].y,z:t[1].z},A={x:t[0].x,y:t[0].y,z:t[0].z},d=0;d<a.length;++d)h=this.ComputeZValue(a[d],S,A),c.push({x:a[d].x,y:a[d].y,z:h});this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u,{surroundLineFlag:!1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p),0!==c.length&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c)}else{this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l,{surroundLineFlag:!1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n),0!==a.length&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a)}}}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues[0]=this.getSubSymbolScaleValue();var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],o=Math.sqrt(e*e/3),l=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,o,SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER,!0),i=[];i.push(t[t.length-1]),i.push(l[l.length-1]);var n=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(i,e,SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL);l.push(t[t.length-1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l);n.length>0&&this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n,{surroundLineFlag:!1,fillLimit:!0,fill:!0,lineTypeLimit:!0})}}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=!1;void 0!==t[0].z&&(e=!0),this.scaleValues[0]=this.getSubSymbolScaleValue();var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],l=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,o,SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE,!0),i=[];i.push(t[t.length-1]),i.push(l[l.length-1]);var n=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(i,o,SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID);if(e){for(var r=t.length,a=[],s=[],u=0;u<r;++u)a.push({x:l[u].x,y:l[u].y,z:t[u].z});var p={x:t[r-1].x,y:t[r-1].y,z:t[r-1].z},c={x:t[r-2].x,y:t[r-2].y,z:t[r-2].z},P=this.ComputeZValue(l[r-1],p,c);a[r-1].z=P;for(var h=0;h<n.length;++h){var g=this.ComputeZValue(n[h],p,c);s.push({x:n[h].x,y:n[h].y,z:g})}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a);s.length>0&&this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}else{this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l);n.length>0&&this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0})}}}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init(),this.m_scalePoints=[];var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=SuperMapAlgoPlot.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,u=i.LeftArowRightBody,p=i.RightArowLeftBody,c=i.RightArowHead,P=i.RightArowRightBody;if(0==a.length)return!1;var h=[],g=[],y=[];if(3==n.length)a[0].x==n[0].x&&a[0].y==n[0].y?(g.push(n[0]),g.push(n[2]),y.push(n[1]),y.push(n[2])):(g.push(n[1]),g.push(n[2]),y.push(n[0]),y.push(n[2]));else{if(4!=n.length)return!1;a[0].x==n[0].x&&a[0].y==n[0].y?(g.push(n[0]),y.push(n[1])):(g.push(n[1]),y.push(n[0])),s[1].x==n[2].x&&s[1].y==n[2].y?(g.push(n[2]),y.push(n[3])):(g.push(n[3]),y.push(n[2]))}var f=new SuperMapAlgoPlot.Point;f=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(a[a.length-1],{x:g[0].x,y:g[0].y},{x:g[1].x,y:g[1].y}).projectPoint;var S=this.ComputeZValue(f,g[1],g[0]),A=[];this.ComputeHeight(a,A,g[0].z,S),h=h.concat(A);for(var d=0;d<s.length;d++){f=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(s[d],{x:g[0].x,y:g[0].y},{x:g[1].x,y:g[1].y}).projectPoint;var M=this.ComputeZValue(f,g[1],g[0]);h.push({x:s[d].x,y:s[d].y,z:M})}f=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(u[0],{x:g[0].x,y:g[0].y},{x:g[1].x,y:g[1].y}).projectPoint,this.ComputeZValue(f,g[1],g[0]),f=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(u[u.length-1],{x:g[0].x,y:g[0].y},{x:g[1].x,y:g[1].y}).projectPoint;var v=this.ComputeZValue(f,g[1],g[0]);f=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(p[0],{x:y[0].x,y:y[0].y},{x:y[1].x,y:y[1].y}).projectPoint;var b=(this.ComputeZValue(f,y[1],y[0])+v)/2,m=[];this.ComputeHeight(u,m,S,b),h=h.concat(m),f=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(p[p.length-1],{x:y[0].x,y:y[0].y},{x:y[1].x,y:y[1].y}).projectPoint;var T=this.ComputeZValue(f,y[1],y[0]),L=[];this.ComputeHeight(p,L,b,T),h=h.concat(L);for(var O=0;O<c.length;O++){f=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(c[O],{x:y[0].x,y:y[0].y},{x:y[1].x,y:y[1].y}).projectPoint;var E=this.ComputeZValue(f,y[1],y[0]);h.push({x:c[O].x,y:c[O].y,z:E})}f=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(P[0],{x:y[0].x,y:y[0].y},{x:y[1].x,y:y[1].y}).projectPoint;var w=this.ComputeZValue(f,y[1],y[0]),x=[];this.ComputeHeight(P,x,w,y[0].z),(h=h.concat(x)).length>0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,{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 C=0;C<this.m_scalePoints.length;C++)this.m_scalePoints[C].isScalePoint=!0,this.m_scalePoints[C].tag=C,this.addScalePoint(this.m_scalePoints[C]);return!0}var I=i.shapePts;I.length>0&&(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,I,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,I,{surroundLineFlag:!1})),this.scalePoints=[];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])}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o,l=SuperMapAlgoPlot.PlottingUtil.operateControlPoints(this.controlPoints),i=new SuperMapAlgoPlot.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),n=new SuperMapAlgoPlot.Point((l[2].x+l[3].x)/2,(l[2].y+l[3].y)/2),r=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,i,n);if(r.isOnline){var a=SuperMapAlgoPlot.PlottingUtil.distance(r.projectPoint,i),s=SuperMapAlgoPlot.PlottingUtil.distance(i,n);(o=SuperMapAlgoPlot.PlottingUtil.equalFuzzy(a,0)?this.SV1_MinValue:a/s)>this.SV1_MaxValue&&(o=this.SV1_MaxValue)}else o=SuperMapAlgoPlot.PlottingUtil.distance(r.projectPoint,i)<SuperMapAlgoPlot.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 SuperMapAlgoPlot.Path2D,o=[];this.m_bIsAnimation&&4==t.length?o=SuperMapAlgoPlot.PlottingUtil.clonePoints(t):(o=SuperMapAlgoPlot.PlottingUtil.operateControlPoints(t),void 0!==t[0].z&&(o[o.length-1].z=o[o.length-2].z));var l=this.scaleValues[0],i=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[3]),n=SuperMapAlgoPlot.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),u=new SuperMapAlgoPlot.Point(a,s),p=.5*(o[1].x+o[2].x),c=.5*(o[1].y+o[2].y),P=new SuperMapAlgoPlot.Point(p,c),h=SuperMapAlgoPlot.PlottingUtil.distance(u,P);h<this.MIN_LEN_LeftToRightCenter&&(h=this.MIN_LEN_LeftToRightCenter),u.x=a+i*(a-p)/(h*this.QIANJI_RATE1),u.y=s+i*(s-c)/(h*this.QIANJI_RATE1),P.x=p+n*(p-a)/(h*this.QIANJI_RATE1),P.y=c+n*(c-s)/(h*this.QIANJI_RATE1);var g=new SuperMapAlgoPlot.Point(0,0),y=new SuperMapAlgoPlot.Point(0,0);g.x=a+i*(a-p)/(h*this.QIANJI_RATE2),g.y=s+i*(s-c)/(h*this.QIANJI_RATE2),y.x=p+n*(p-a)/(h*this.QIANJI_RATE2),y.y=c+n*(c-s)/(h*this.QIANJI_RATE2);var f=new SuperMapAlgoPlot.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),S=new SuperMapAlgoPlot.Point((o[2].x+o[3].x)/2,(o[2].y+o[3].y)/2),A=o[3].x-(o[3].x-u.x)*this.SCALE_AT,d=o[3].y-(o[3].y-u.y)*this.SCALE_AT,M=o[2].x-(o[2].x-P.x)*this.SCALE_AT,v=o[2].y-(o[2].y-P.y)*this.SCALE_AT,b=new SuperMapAlgoPlot.Point(0,0),m=new SuperMapAlgoPlot.Point(0,0),T=new SuperMapAlgoPlot.Point(0,0),L=new SuperMapAlgoPlot.Point(0,0);m.x=A-(d-o[3].y)*this.SCALE_ATAJ,m.y=d+(A-o[3].x)*this.SCALE_ATAJ,b.x=A+(d-o[3].y)*this.SCALE_ATAJ,b.y=d-(A-o[3].x)*this.SCALE_ATAJ,L.x=M-(v-o[2].y)*this.SCALE_ATAJ,L.y=v+(M-o[2].x)*this.SCALE_ATAJ,T.x=M+(v-o[2].y)*this.SCALE_ATAJ,T.y=v-(M-o[2].x)*this.SCALE_ATAJ;var O=new SuperMapAlgoPlot.Point(0,0),E=new SuperMapAlgoPlot.Point(0,0),w=new SuperMapAlgoPlot.Point(0,0),x=new SuperMapAlgoPlot.Point(0,0);O.x=3*b.x-2*A-(o[3].x-A)*this.SCALE_ATAE,O.y=3*b.y-2*d-(o[3].y-d)*this.SCALE_ATAE,E.x=3*m.x-2*A-(o[3].x-A)*this.SCALE_ATAE,E.y=3*m.y-2*d-(o[3].y-d)*this.SCALE_ATAE,w.x=3*T.x-2*M-(o[2].x-M)*this.SCALE_ATAE,w.y=3*T.y-2*v-(o[2].y-v)*this.SCALE_ATAE,x.x=3*L.x-2*M-(o[2].x-M)*this.SCALE_ATAE,x.y=3*L.y-2*v-(o[2].y-v)*this.SCALE_ATAE,u.x=a+i*(a-p)/(h*this.QIANJI_RATE4),u.y=s+i*(s-c)/(h*this.QIANJI_RATE4),P.x=p+n*(p-a)/(h*this.QIANJI_RATE4),P.y=c+n*(c-s)/(h*this.QIANJI_RATE4);var C=new SuperMapAlgoPlot.Point(0,0);C.x=o[0].x+(u.x-o[0].x)*this.SCALE_AW,C.y=o[0].y+(u.y-o[0].y)*this.SCALE_AW;var I=new SuperMapAlgoPlot.Point(0,0);I.x=o[1].x+(P.x-o[1].x)*this.SCALE_AW,I.y=o[1].y+(P.y-o[1].y)*this.SCALE_AW;var R=new SuperMapAlgoPlot.Point(0,0);R.x=b.x+(u.x-b.x)*this.SCALE_ATAJctrlSameSide,R.y=b.y+(u.y-b.y)*this.SCALE_ATAJctrlSameSide;var _=new SuperMapAlgoPlot.Point(0,0);_.x=L.x+(P.x-L.x)*this.SCALE_ATAJctrlSameSide,_.y=L.y+(P.y-L.y)*this.SCALE_ATAJctrlSameSide;var U=new SuperMapAlgoPlot.Point(0,0);U.x=m.x+(g.x-m.x)*this.SCALE_ATAJctrlDefSide,U.y=m.y+(g.y-m.y)*this.SCALE_ATAJctrlDefSide;var N=new SuperMapAlgoPlot.Point(0,0);N.x=T.x+(y.x-T.x)*this.SCALE_ATAJctrlDefSide,N.y=T.y+(y.y-T.y)*this.SCALE_ATAJctrlDefSide;var D=new SuperMapAlgoPlot.Point(0,0);D.x=f.x+(S.x-f.x)*l,D.y=f.y+(S.y-f.y)*l,this.m_scalePoints.push(new SuperMapAlgoPlot.Point(D.x,D.y));var B=new SuperMapAlgoPlot.Point(0,0),k=new SuperMapAlgoPlot.Point(0,0);B.x=o[0].x+(o[3].x-o[0].x)*l,B.y=o[0].y+(o[3].y-o[0].y)*l,k.x=o[1].x+(o[2].x-o[1].x)*l,k.y=o[1].y+(o[2].y-o[1].y)*l,B.x=B.x+(D.x-B.x)*this.QIANJI_RATE3,B.y=B.y+(D.y-B.y)*this.QIANJI_RATE3,k.x=k.x+(D.x-k.x)*this.QIANJI_RATE3,k.y=k.y+(D.y-k.y)*this.QIANJI_RATE3;var V=[];V.push(o[0].clone()),V.push(C.clone()),V.push(R.clone()),V.push(b.clone()),e.MoveTo(V[0]),e.CurveTo(V[1],V[2],V[3]);var Y,j,F=[],G=[],z=[],W=[],H=[],q=[];for(e.ToSubPathPolygons(q),Y=q[0],j=q[0].length,e.LineTo(O),e.LineTo(o[3]),e.LineTo(E),(V=[]).push(m),V.push(U),V.push(B),V.push(D),e.LineTo(V[0]),q=[],e.ToSubPathPolygons(q);j<q[0].length;j++)F.push(q[0][j]);for(j=q[0].length,e.CurveTo(V[1],V[2],V[3]),q=[],e.ToSubPathPolygons(q);j<q[0].length;j++)G.push(q[0][j]);for(j=q[0].length,(V=[]).push(k),V.push(N),V.push(T),e.CurveTo(V[0],V[1],V[2]),q=[],e.ToSubPathPolygons(q);j<q[0].length;j++)z.push(q[0][j]);for(j=q[0].length,e.LineTo(w),e.LineTo(o[2]),e.LineTo(x),(V=[]).push(L),V.push(_),V.push(I),V.push(r),e.LineTo(V[0]),q=[],e.ToSubPathPolygons(q);j<q[0].length;j++)W.push(q[0][j]);for(j=q[0].length,e.CurveTo(V[1],V[2],V[3]),q=[],e.ToSubPathPolygons(q);j<q[0].length;j++)H.push(q[0][j]);return q=[],e.ToSubPathPolygons(q),{shapePts:q[0],LeftArowLeftBody:Y,LeftArowHead:F,LeftArowRightBody:G,RightArowLeftBody:z,RightArowHead:W,RightArowRightBody:H}}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues[0]=this.getSubSymbolScaleValue();var e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],o=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,e,SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER,!1),l=[];l.push(o[o.length-1]),l.push(o[o.length-2]);var i=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(l,e,SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o),i.length>0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i)}}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init(),this.applyUse()}},{key:"applyUse",value:function(){var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=this.arrowMeshs(t);SuperMapAlgoPlot.PlottingUtil.clearSamePts(e.shapePts);var o=SuperMapAlgoPlot.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,u=[],p=0;p<s.length;p++)u.push({x:s[p].x,y:s[p].y,z:0});if(0==s.length)return!1;var c=this.updateScalePoints(t),P=[],h={x:(o[0].x+o[1].x)/2,y:(o[0].y+o[1].y)/2},g={x:(n[n.length-1].x+r[0].x)/2,y:(n[n.length-1].y+r[0].y)/2},y=this.ComputeZValue(g,o[l-1],o[l-2]),f=0,S=0;n[0].x==o[0].x&&n[0].y==o[0].y?(f=o[0].z,S=o[1].z):(f=o[1].z,S=o[0].z),P.push({x:h.x,y:h.y,z:f});for(var A=2;A<l-1;A++)P.push(o[A]);P.push({x:g.x,y:g.y,z:y});var d=[];this.ComputeBeizerZValueByDis(P,n,d),(P=[]).push({x:g.x,y:g.y,z:y});for(var M=l-2;M>=2;M--)P.push(o[M]);P.push({x:h.x,y:h.y,z:S});var v=[];this.ComputeBeizerZValueByDis(P,r,v);for(var b=[],m=0;m<a.length;m++){var T=this.ComputeZValue(a[m],o[l-1],o[l-2]);b.push({x:a[m].x,y:a[m].y,z:T})}if(d.length>0&&v.length>0&&b.length>0){u=(u=(u=(u=[]).concat(d)).concat(b)).concat(v),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u,{surroundLineFlag:!1});for(var L=[],O=0;O<c.length;O++){var E=this.ComputeZValue(c[O],o[l-1],o[l-2]),w=new SuperMapAlgoPlot.Point(c[O].x,c[O].y);w.z=E,L.push(w)}3!=c.length?this.scalePoints=[]:this.scalePoints=this.scalePoints.concat(L)}}else{if(0==e.shapePts.length)return;if(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.shapePts,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e.shapePts,{surroundLineFlag:!1}),c=this.updateScalePoints(t),this.scalePoints=[],3!=c.length)c=[];else for(var x=0;x<c.length;x++)c[x].isScalePoint=!0,c[x].tag=x,this.addScalePoint(c[x])}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.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 u=this.calcScaleValueCount(o.length);if(this.scaleValues.length<u){var p=this.calcDefaultScaleValues(l);i=p[0],n=p[1],r=p[2],a=p[3]}else i=this.scaleValues[0],n=this.scaleValues[1],r=this.scaleValues[2],a=this.scaleValues[3];for(var c=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),P=[],h=0;h<this.scalePoints.length;h++)P.push(this.scalePoints[h].clone());if(0==P.length)return;P[t]=e.clone();var g,y,f=l-1;g=l<=3?new SuperMapAlgoPlot.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2):s[f-1].clone();var S,A,d,M,v,b,m=new SuperMapAlgoPlot.Point(0,0),T=new SuperMapAlgoPlot.Point(0,0),L=new SuperMapAlgoPlot.Point(0,0);SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(0,3,g,s[f],s[f+1],T,L),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(.5,s[l],s[l-1],L,m),y=m.clone();var O=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],y,P[2]);S=O.dLen1,O.dLen2,0==S&&(S=.1),A=S,i=(S/=a+1)/c,1==t?(M=(O=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],y,P[1])).dLen1,r=(v=O.dLen2)/S,a=(M-S)/S):0==t?(S=(O=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],y,P[0])).dLen1,n=(d=O.dLen2)/S,(b=SuperMapAlgoPlot.PlottingUtil.distance(s[l],s[l-1]))<2*S&&(S=.5*b),M=(O=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],y,P[1])).dLen1,r=(v=O.dLen2)/S,(a=(A-S)/S)<.1&&(r=v/(S=A/(1+(a=.1))),n=d/S),i=S/c):2==t&&(i=S/c),d=S*n,(b=SuperMapAlgoPlot.PlottingUtil.distance(s[l],s[l-1]))<2*S&&(d=(S=.5*b)*n,i=S/c),this.scaleValues[0]=i,this.scaleValues[1]=n,this.scaleValues[2]=r,this.scaleValues[3]=a}}},{key:"arrowMeshs",value:function(t){var e=[],o=[],l=[],i=[],n=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),r=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePts(n,this.scaleValues,SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),a=r.arrowTouLen,s=r.leftBodyPts,u=r.rightBodyPts;if(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(a,0)){var p=[];p.push(s[s.length-1]),p.push(u[u.length-1]);var c=[];c.push(this.scaleValues[2]),c.push(this.scaleValues[3]),c.push(0),c.push(0);for(var P=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePts(n,p,c,a,SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),h=0;h<s.length;h++)e.push(s[h]),o.push(s[h]);for(var g=0;g<P.length;g++)e.push(P[g]),i.push(P[g]);for(var y=u.length-1;y>=0;y--)e.push(u[y]),l.push(u[y])}return{shapePts:e,leftBodyPts:o,rightBodyPts:l,arrowHeadPts:i}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!SuperMapAlgoPlot.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,u=this.genAtPts(e,s,n,a.ArrowTouLen),p=this.calc3rdScalePt(e,s,n,a.ArrowTouLen);return o.push(new SuperMapAlgoPlot.Point(a.LeftBodyPtsTemp[e].x,a.LeftBodyPtsTemp[e].y)),o.push(new SuperMapAlgoPlot.Point(u[2].x,u[2].y)),o.push(new SuperMapAlgoPlot.Point(p.x,p.y)),o}}}},{key:"operateCtrlPts",value:function(t){var e=SuperMapAlgoPlot.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 SuperMapAlgoPlot.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=[],u=[],p=[],c=[],P=e.length;if(P--,o.length<this.calcScaleValueCount(P)){var h=this.calcDefaultScaleValues(P);i=h[0],n=h[1]}else i=o[0],n=o[1];var g=SuperMapAlgoPlot.PlottingUtil.clonePoints(e),y=(g[0].x+g[1].x)/2,f=(g[0].y+g[1].y)/2,S=Math.abs(y-g[2].x),A=Math.abs(f-g[2].y),d=0;if(S>0&&A>0){var M=1/(y-g[2].x),v=-1/(f-g[2].y),b=1*g[2].y/(f-g[2].y)-1*g[2].x/(y-g[2].x);d=Math.abs(M*g[0].x+v*g[0].y+b)/Math.sqrt(M*M+v*v)}else A<=1e-4?d=Math.abs(f-g[1].y):S<=1e-4&&(d=Math.abs(y-g[1].x));var m=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,g[2],new SuperMapAlgoPlot.Point(y,f)),T=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(g[1],g[2],g[0]);T?(r[1]=g[1],a[1]=g[0]):(r[1]=g[0],a[1]=g[1]),g[1]=new SuperMapAlgoPlot.Point((g[0].x+g[1].x)/2,(g[0].y+g[1].y)/2);var L=Math.sqrt((m.pntLeft.x-m.pntRight.x)*(m.pntLeft.x-m.pntRight.x)+(m.pntLeft.y-m.pntRight.y)*(m.pntLeft.y-m.pntRight.y))*this.sv_AtWidthDivAwWidth,O=(l=L*this.sv_AtLenDivAtWidth)*n;SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,0)||(O=(l=t*i)*n);var E,w,x=SuperMapAlgoPlot.PlottingUtil.distance(g[P],g[P-1]),C=2*l;x<C&&(O=(l=x/2)*n),g.push(g[P].clone()),E=0,w=0;var I=0,R=[];for(I=2;I<=P;I++)E+=SuperMapAlgoPlot.PlottingUtil.distance(g[I],g[I-1]);for(E-=l,I=2;I<=P-1;I++)w+=SuperMapAlgoPlot.PlottingUtil.distance(g[I],g[I-1]),R[I]=O+(L-O)*Math.pow((E-w)/E,this.sv_AtScaleParameter);R[P]=O;var _,U,N=new SuperMapAlgoPlot.Point(0,0),D=new SuperMapAlgoPlot.Point(0,0),B=new SuperMapAlgoPlot.Point(0,0);for(I=2;I<=P-1;I++)SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(0,3,g[I-1],g[I],g[I+1],D,B),I==P-1&&SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(.5,g[P],g[P-1],B,N),_=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(R[I],D,g[I]),(T=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(B,D,_.pntRight))?(r[I]=new SuperMapAlgoPlot.Point(_.pntRight.x,_.pntRight.y),a[I]=new SuperMapAlgoPlot.Point(_.pntLeft.x,_.pntLeft.y)):(r[I]=new SuperMapAlgoPlot.Point(_.pntLeft.x,_.pntLeft.y),a[I]=new SuperMapAlgoPlot.Point(_.pntRight.x,_.pntRight.y));for(Math.sqrt(1*(g[P].x-N.x)*(g[P].x-N.x)+1*(g[P].y-N.y)*(g[P].y-N.y))>0&&(g[P]=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(l,g[P],N)),_=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(O,g[P+1],g[P]),(T=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(g[P],g[P+1],_.pntLeft))?(a[P]=new SuperMapAlgoPlot.Point(_.pntLeft.x,_.pntLeft.y),r[P]=new SuperMapAlgoPlot.Point(_.pntRight.x,_.pntRight.y)):(a[P]=new SuperMapAlgoPlot.Point(_.pntRight.x,_.pntRight.y),r[P]=new SuperMapAlgoPlot.Point(_.pntLeft.x,_.pntLeft.y)),I=2;I<P;I++)SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(3,3,r[I-1],r[I],r[I+1],D,B),s[I]=new SuperMapAlgoPlot.Point(D.x,D.y),u[I]=new SuperMapAlgoPlot.Point(B.x,B.y),SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(3,3,a[I-1],a[I],a[I+1],D,B),p[I]=new SuperMapAlgoPlot.Point(D.x,D.y),c[I]=new SuperMapAlgoPlot.Point(B.x,B.y),2==I&&(SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(.5,r[1],r[2],s[2],N),u[I]=new SuperMapAlgoPlot.Point(N.x,N.y),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(.5,a[1],a[2],p[2],N),c[I]=new SuperMapAlgoPlot.Point(N.x,N.y)),I==P-1&&(C=(x=SuperMapAlgoPlot.PlottingUtil.distance(r[P],r[P-1]))/3,(U=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(C,g[P],g[P+1])).x+=r[P].x-g[P].x,U.y+=r[P].y-g[P].y,C=(x=L-O)*Math.pow(C/E,this.sv_AtScaleParameter),_=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(C,r[P],U),s[P]=new SuperMapAlgoPlot.Point(_.pntLeft.x,_.pntLeft.y),C=(x=SuperMapAlgoPlot.PlottingUtil.distance(a[P],a[P-1]))/3,(U=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(C,g[P],g[P+1])).x+=a[P].x-g[P].x,U.y+=a[P].y-g[P].y,C=(x=L-O)*Math.pow(C/E,this.sv_AtScaleParameter),_=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(C,a[P],U),p[P]=new SuperMapAlgoPlot.Point(_.pntRight.x,_.pntRight.y));return{ArrowBodyCenterPts:SuperMapAlgoPlot.PlottingUtil.clonePoints(g),LeftBodyPtsTemp:r,RightBodyPtsTemp:a,LeftBodyPtsLeftCtrlPts:s,LeftBodyPtsRightCtrlPts:u,RightBodyPtsLeftCtrlPts:p,RightBodyPtsRightCtrlPts:c,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=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(r,e[t],e[t+1]);r=l*i;var s=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,e[t+1],a);return n.push(new SuperMapAlgoPlot.Point(s.pntLeft.x,s.pntLeft.y)),n.push(e[t+1]),n.push(new SuperMapAlgoPlot.Point(s.pntRight.x,s.pntRight.y)),n}},{key:"calc3rdScalePt",value:function(t,e,o,l){var i=l*o[3];return SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(i,e[t],e[t+1])}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),e=(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length;if(e>=this.minEditPts){if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.controlPoints[0].x,this.controlPoints[1].x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.controlPoints[0].y,this.controlPoints[1].y))return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),l=!1;void 0!==o[0].z&&(l=!0);var i=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePts(t,this.scaleValues,SuperMapAlgoPlot.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 u=[];u.push(this.scaleValues[3]),u.push(this.scaleValues[4]),u.push(0),u.push(0);var p=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePts(t,s,u,n,SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),c=[];c=(c=c.concat(r)).concat(p);for(var P=a.length-1;P>=0;P--)c.push(a[P]);if(c.push(r[0]),l){for(var h=[],g={x:o[1].x,y:o[1].y,z:o[1].z},y={x:o[0].x,y:o[0].y,z:o[0].z},f=0;f<c.length;f++){var S=this.ComputeZValue(c[f],g,y);h.push({x:c[f].x,y:c[f].y,z:S})}var A=new SuperMapAlgoPlot.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),d=new SuperMapAlgoPlot.Point(A.x,A.y);d.isScalePoint=!0,d.tag=0,this.addScalePoint(d);var M=new SuperMapAlgoPlot.Point(r[r.length-1].x,r[r.length-1].y);M.isScalePoint=!0,M.tag=1,this.addScalePoint(M);var v=new SuperMapAlgoPlot.Point(p[0].x,p[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},m={x:o[e-2].x,y:o[e-2].y,z:o[e-2].z},T=[],L=0;L<this.scalePoints.length;L++){var O={x:this.scalePoints[L].x,y:this.scalePoints[L].y},E=this.ComputeZValue(O,b,m);T.push({x:O.x,y:O.y,z:E})}this.scalePoints=T,this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,h)}else{var w=new SuperMapAlgoPlot.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),x=new SuperMapAlgoPlot.Point(w.x,w.y);x.isScalePoint=!0,x.tag=0,this.addScalePoint(x);var C=new SuperMapAlgoPlot.Point(r[r.length-1].x,r[r.length-1].y);C.isScalePoint=!0,C.tag=1,this.addScalePoint(C);var I=new SuperMapAlgoPlot.Point(p[0].x,p[0].y);I.isScalePoint=!0,I.tag=2,this.addScalePoint(I),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,c)}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=new SuperMapAlgoPlot.Point(this.scalePoints[0].x,this.scalePoints[0].y),l=new SuperMapAlgoPlot.Point(this.scalePoints[1].x,this.scalePoints[1].y),i=new SuperMapAlgoPlot.Point(this.scalePoints[2].x,this.scalePoints[2].y),n=this.scaleValues[0],r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints),a=r*n;if(0==t){var s=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[0],this.controlPoints[1]),u=s.projectPoint;if(s.isOnline){var p=SuperMapAlgoPlot.PlottingUtil.distance(u,this.controlPoints[1]);this.scaleValues[0]=p/r}}else if(1==t){var c=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,l,i).projectPoint,P=SuperMapAlgoPlot.PlottingUtil.distance(c,o),h=a*this.scaleValues[1];this.scaleValues[1]=P/a,this.scaleValues[2]=(a*this.scaleValues[2]+P-h)/a}else if(2==t){var g=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[1],i).projectPoint,y=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(g,o,this.controlPoints[1]),f=y.projectPoint,S=SuperMapAlgoPlot.PlottingUtil.distance(f,o);!0===y.inOnline?this.scaleValues[4]=-S/a:this.scaleValues[4]=S/a}}this.calculateParts()}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init(),this.m_scalePoints=[];var t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(this.controlPoints);if((t=SuperMapAlgoPlot.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 u=this.arrowMeshs(e);SuperMapAlgoPlot.PlottingUtil.clearSamePts(u.shapePts);var p=!1;if(void 0!==t[0].z&&(p=!0),p){var c=this.operateCtrlPts3D(t),P=u.arrLeftPts2D,h=u.arrRightPts2D,g=u.arrHeadPts2D;if(l!=P.length&&l!=h.length&&l!=g.length)return!1;for(var y=[],f=0;f<l;f++){for(var S=[],A=3*f;A<3*(f+1)&&A<c.length;A++)S.push(c[A]);y.push(S)}for(var d=[],M=[],v=[],b=0;b<l;b++)if(!(2>y[b].length)){for(var m=P[b][P[b].length-1],T=h[b][0],L=new SuperMapAlgoPlot.Point(.5*(m.x+T.x),.5*(m.y+T.y)),O=y[b][y[b].length-1],E=y[b][y[b].length-2],w=this.ComputeZValue(L,O,E),x={x:L.x,y:L.y,z:w},C=[],I=[],R=0;R<y[b].length-1;R++)if(0==b)I.push(y[b][R]);else{var _={x:y[b][R].x,y:y[b][R].y,z:.5*(y[b][R].z+y[b-1][R].z)};I.push(_)}I.push(x),this.ComputeBeizerZValueByDis(I,P[b],C),d.push(C),C=[];var U=[];U.push(x);for(var N=y[b].length-2;N>=0;N--)if(b==l-1)U.push(y[b][N]);else{var D={x:y[b][N].x,y:y[b][N].y,z:.5*(y[b][N].z+y[b+1][N].z)};U.push(D)}this.ComputeBeizerZValueByDis(U,h[b],C),M.push(C),C=[];for(var B=g[b],k=0;k<B.length;k++){var V=this.ComputeZValue(B[k],O,E);C.push({x:B[k].x,y:B[k].y,z:V})}v.push(C)}for(var Y=[],j=0;j<l;j++)Y=(Y=(Y=Y.concat(d[j])).concat(v[j])).concat(M[j]);return SuperMapAlgoPlot.PlottingUtil.clearSamePts(Y),u.shapePts.length>0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,Y,{surroundLineFlag:!1}),this.scalePoints=this.scalePoints.concat(this.m_scalePoints),!0}u.shapePts.length>0&&(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,u.shapePts,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u.shapePts,{surroundLineFlag:!1})),this.scalePoints=[];for(var F=0;F<this.m_scalePoints.length;F++)this.m_scalePoints[F].isScalePoint=!0,this.m_scalePoints[F].tag=F,this.addScalePoint(this.m_scalePoints[F])}}},{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=SuperMapAlgoPlot.PlottingUtil.polylineDistance(r),u=new SuperMapAlgoPlot.Point(0,0),p=new SuperMapAlgoPlot.Point(0,0),c=new SuperMapAlgoPlot.Point(0,0);SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,r[0],r[1],r[2],u,p),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,r[2],r[1],p,c),n=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(r[2],c,e).dLen1/(this.SV4_DefaultAELenDividedByATLen+1)/s}else{var P=[],h=[],g=(t-i)*this.MIN_PTCOUNT_PERARROW;P[0]=o[g],P[1]=o[g+1],P[2]=o[g+2];var y=(t-i+1)*this.MIN_PTCOUNT_PERARROW;h[0]=o[y],h[1]=o[y+1],h[2]=o[y+2];var f=new SuperMapAlgoPlot.Point(0,0),S=new SuperMapAlgoPlot.Point(0,0),A=new SuperMapAlgoPlot.Point(0,0);f.x=.5*(P[2].x+h[2].x),S.x=.5*(P[1].x+h[1].x),A.x=.5*(P[0].x+h[0].x),f.y=.5*(P[2].y+h[2].y),S.y=.5*(P[1].y+h[1].y),A.y=.5*(P[0].y+h[0].y);var d=SuperMapAlgoPlot.PlottingUtil.distance(f,S),M=SuperMapAlgoPlot.PlottingUtil.distance(A,S),v=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(f,S,e),b=v.dLen1;n=b<d?b/(d+M):((b=(v=SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen(S,A,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 SuperMapAlgoPlot.Path2D,n=t.length,r=Math.floor(n/this.MIN_PTCOUNT_PERARROW),a=this.generateAWWidth(r,t),s=[],u=[],p=0,c=0,P=0,h=[];for(c=0,P=0;c<r;c++,P+=this.MIN_PTCOUNT_PERARROW){h[0]=t[P],h[1]=t[P+1],h[2]=t[P+2],p=this.scaleValues[c];var g=this.generateArrowBodyPts(h,a[c],p);p=g.dATLenDivABLen,s[c]=g.arrowBodyPts,u.push(p)}var y=[],f=0,S=0,A=0,d=[],M=[];for(c=0;c<r-1;c++,S+=this.MIN_PTCOUNT_PERARROW){A=S+this.MIN_PTCOUNT_PERARROW,d[0]=t[S],d[1]=t[S+1],d[2]=t[S+2],M[0]=t[A],M[1]=t[A+1],M[2]=t[A+2],f=this.scaleValues[r+c];var v=this.generateAYPts(d,s[c],M,s[c+1],f);y.push(v.arrowLeftYaoPts),y.push(v.arrowRightYaoPts)}var b=[],m=s[0],T=[],L=0,O=[];i.MoveTo(m[0]),i.CurveTo(m[1],m[2],m[3]),i.CurveTo(m[4],m[5],m[6]),i.ToSubPathPolygons(T),e.push(T[0]),L=T[0].length;for(var E=7;E<10;E++)i.LineTo(m[E]);for(T=[],i.ToSubPathPolygons(T);L<T[0].length;L++)O.push(T[0][L]);for(l.push(O),b.push(m[0]),b.push(t[0]),c=1,P=this.MIN_PTCOUNT_PERARROW;c<r;c++,P+=this.MIN_PTCOUNT_PERARROW){var w=s[c],x=c+c-2,C=y[x];for(i.LineTo(C[0]),i.CurveTo(C[1],C[2],C[3]),T=[],O=[],i.ToSubPathPolygons(T);L<T[0].length;L++)O.push(T[0][L]);o.push(O);var I=y[x+1];for(i.CurveTo(I[1],I[2],I[3]),T=[],O=[],i.ToSubPathPolygons(T);L<T[0].length;L++)O.push(T[0][L]);e.push(O);for(var R=7;R<10;R++)i.LineTo(w[R]);for(T=[],O=[],i.ToSubPathPolygons(T);L<T[0].length;L++)O.push(T[0][L]);l.push(O),b.push(t[P].clone())}var _=s[r-1];for(i.LineTo(_[10]),i.CurveTo(_[11],_[12],_[13]),i.CurveTo(_[14],_[15],_[16]),T=[],O=[],i.ToSubPathPolygons(T);L<T[0].length;L++)O.push(T[0][L]);o.push(O),b.push(_[16]);var U=[];return i.ToSubPathPolygons(U),{shapePts:U[0],arrLeftPts2D:e,arrRightPts2D:o,arrHeadPts2D:l}}},{key:"operateCtrlPts",value:function(t){var e=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),o=e.length,l=Math.floor(o/this.MIN_PTCOUNT_PERARROW),i=o%this.MIN_PTCOUNT_PERARROW,n=new SuperMapAlgoPlot.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 u=s*this.MIN_PTCOUNT_PERARROW,p=0;p<u;p+=this.MIN_PTCOUNT_PERARROW){if(!SuperMapAlgoPlot.PlottingUtil.isRight(e[p+3],e[p+1],e[p+2])){var c=e[p];e[p]=e[p+3],e[p+3]=c,c=e[p+1],e[p+1]=e[p+4],e[p+4]=c,c=e[p+2],e[p+2]=e[p+5],e[p+5]=c}}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,u=0;u<s;u+=3){if(!SuperMapAlgoPlot.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:"generateAWWidth",value:function(t,e){var o=[];if(t>0)if(1==t)o.push(0);else{var l=SuperMapAlgoPlot.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*(SuperMapAlgoPlot.PlottingUtil.distance(e[n-this.MIN_PTCOUNT_PERARROW],e[n])+SuperMapAlgoPlot.PlottingUtil.distance(e[n],e[n+this.MIN_PTCOUNT_PERARROW])),o.push(l)}l=SuperMapAlgoPlot.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=[],u=[],p=t.length-1;if(p<2)return{dATLenDivABLen:o=0,arrowBodyPts:l};var c=o,P=this.SV2_DefaultAJWidDiviedByATLen,h=this.SV3_DefaultAEWidDividedByATLen,g=this.SV4_DefaultAELenDividedByATLen,y=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),f=SuperMapAlgoPlot.PlottingUtil.polylineDistance(y),S=0==e?f*this.ATL_DIV_ABL_1:(f+e)*this.ATL_DIV_ABL,A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(S,y[1],y[0]);i[1]=A.pntLeft.clone(),n[1]=A.pntRight.clone();var d=0;d=SuperMapAlgoPlot.PlottingUtil.equalFuzzy(c,0,1e-14)?S*this.ATL_DIV_AWW:f*c;var M=SuperMapAlgoPlot.PlottingUtil.distance(y[1],y[2]);d+d>M&&(d=.5*M);var v=d*P;y.push(y[p].clone());var b,m=0;b=f-d;var T=[],L=0;for(L=2;L<=p;L++)m+=SuperMapAlgoPlot.PlottingUtil.distance(y[L-1],y[L-2]),SuperMapAlgoPlot.PlottingUtil.equalFuzzy(b,0,1e-14)?T[L]=0:SuperMapAlgoPlot.PlottingUtil.equalFuzzy(b-m,0,1e-14)?T[L]=v:T[L]=v+(S-v)*Math.pow((b-m)/b,this.SV_ATScaleParameter);T[p+1]=v;var O=new SuperMapAlgoPlot.Point(0,0),E=new SuperMapAlgoPlot.Point(0,0),w=new SuperMapAlgoPlot.Point(0,0);for(L=2;L<=p;L++){SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,y[L-2],y[L-1],y[L],E,w),p==L&&SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,y[p],y[p-1],w,O);var x=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(T[L],E,y[L-1]);n[L]=x.pntLeft,i[L]=x.pntRight}var C,I,R=O.clone();if(SuperMapAlgoPlot.PlottingUtil.distance(y[p],R)>0){var _=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(d,y[p],O);y[p]=_.clone()}for(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(v,y[p+1],y[p]),i[p+1]=A.pntLeft,n[p+1]=A.pntRight,L=2;L<=p;L++)SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,i[L-1],i[L],i[L+1],E,w),r[L]=E.clone(),a[L]=w.clone(),SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,n[L-1],n[L],n[L+1],E,w),s[L]=E.clone(),u[L]=w.clone();SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,i[1],i[2],r[2],O),a[1]=O.clone(),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,n[1],n[2],s[2],O),u[1]=O.clone();I=SuperMapAlgoPlot.PlottingUtil.distance(i[p+1],i[p])*(1/3),(C=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(I,y[p],y[p+1])).x+=i[p+1].x-y[p].x,C.y+=i[p+1].y-y[p].y,I=(S-v)*Math.pow(I/b,this.SV_ATScaleParameter+.3),A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(I,i[p+1],C),r[p+1]=A.pntLeft.clone(),I=SuperMapAlgoPlot.PlottingUtil.distance(n[p+1],n[p])*(1/3),(C=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(I,y[p],y[p+1])).x+=n[p+1].x-y[p].x,C.y+=n[p+1].y-y[p].y,I=(S-v)*Math.pow(I/b,this.SV_ATScaleParameter+.3),A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(I,n[p+1],C),s[p+1]=A.pntRight.clone();var U=[],N=d*g,D=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(N,y[p],y[p+1]);this.m_scalePoints.push(D.clone()),N=d*h,A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(N,y[p+1],D),U.push(A.pntRight),U.push(y[p+1]),U.push(A.pntLeft);var B=[];for(B.push(i[p+1]),L=p;L>=1;L--)B.push(r[L+1]),B.push(a[L]),B.push(i[L]);var k=[];for(L=1;L<=p;L++)k.push(n[L]),k.push(u[L]),k.push(s[L+1]);k.push(n[p+1]),l.push.apply(l,k),l.push.apply(l,U),l.push.apply(l,B),o=d/f;var V=[];for(L=B.length-1;L>=0;L--)V.push(B[L]);return{dATLenDivABLen:o,arrowBodyPts:l}}},{key:"generateAYPts",value:function(t,e,o,l,i){var n=new SuperMapAlgoPlot.Point(.5*(t[2].x+o[2].x),.5*(t[2].y+o[2].y)),r=new SuperMapAlgoPlot.Point(.5*(t[1].x+o[1].x),.5*(t[1].y+o[1].y)),a=new SuperMapAlgoPlot.Point(.5*(t[0].x+o[0].x),.5*(t[0].y+o[0].y)),s=SuperMapAlgoPlot.PlottingUtil.distance(n,r),u=SuperMapAlgoPlot.PlottingUtil.distance(a,r),p=i*(s+u),c=new SuperMapAlgoPlot.Point(0,0),P=new SuperMapAlgoPlot.Point(0,0),h=new SuperMapAlgoPlot.Point(0,0);if(p>s){p=s+u-p,c=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(p,a,r);var g=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[0]),y=SuperMapAlgoPlot.PlottingUtil.distance(o[1],o[0]);g=g*p/u,P=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(g,t[0],t[1]),y=y*p/u,h=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(y,o[0],o[1])}else{c=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(p,n,r);var f=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[2]),S=SuperMapAlgoPlot.PlottingUtil.distance(o[1],o[2]);f=f*p/s,P=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(f,t[2],t[1]),S=S*p/s,h=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(S,o[2],o[1])}this.m_scalePoints.push(c.clone());var A=this.SV_ArrowWoCtrl*SuperMapAlgoPlot.PlottingUtil.distance(c,P),d=this.SV_ArrowWoCtrl*SuperMapAlgoPlot.PlottingUtil.distance(c,h),M=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(A,c,P),v=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(d,c,h),b=e[11].clone(),m=e[10].clone(),T=l[5].clone(),L=l[6].clone(),O=SuperMapAlgoPlot.PlottingUtil.intersectLines(m,b,c,P),E=SuperMapAlgoPlot.PlottingUtil.distance(O.intersectPoint,m),w=SuperMapAlgoPlot.PlottingUtil.distance(m,c);E=E>w?this.SV_AJCtrl*w:this.SV_AJCtrl*E;var x=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(E,m,b);b=x.clone(),e[11]=x.clone(),O=SuperMapAlgoPlot.PlottingUtil.intersectLines(L,T,c,h),E=(E=SuperMapAlgoPlot.PlottingUtil.distance(O.intersectPoint,L))>(w=SuperMapAlgoPlot.PlottingUtil.distance(L,c))?this.SV_AJCtrl*w:this.SV_AJCtrl*E,T=(x=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(E,L,T)).clone(),l[5]=x.clone();var C=[];C.push(m),C.push(b),C.push(M),C.push(c);var I=[];return I.push(c),I.push(v),I.push(T),I.push(L),{arrowLeftYaoPts:C,arrowRightYaoPts:I}}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),e=(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length;if(e>=this.minEditPts){this.scalePoints=[];var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),l=!1;void 0!==o[0].z&&(l=!0);var i=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePts(t,this.scaleValues,SuperMapAlgoPlot.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 u=[];u.push(this.scaleValues[3]),u.push(this.scaleValues[4]),u.push(this.scaleValues[0]),u.push(this.scaleValues[1]);var p=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePts(t,s,u,n,SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),c=[];if(l){for(var P=[],h=[],g=[],y=0;y<e-1;y++)h.push({x:r[y].x,y:r[y].y,z:o[y].z}),g.push({x:a[y].x,y:a[y].y,z:o[y].z});var f={x:o[e-2].x,y:o[e-2].y,z:o[e-2].z},S={x:o[e-1].x,y:o[e-1].y,z:o[e-1].z},A=this.ComputeZValue(r[e-1],S,f);h.push({x:r[e-1].x,y:r[e-1].y,z:A});var d=this.ComputeZValue(a[e-1],S,f);g.push({x:a[e-1].x,y:a[e-1].y,z:d});for(var M=0;M<p.length;M++){var v=this.ComputeZValue(p[M],S,f);P.push({x:p[M].x,y:p[M].y,z:v})}c=(c=c.concat(h)).concat(P);for(var b=g.length-1;b>=0;b--)c.push(g[b]);var m=new SuperMapAlgoPlot.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),T=new SuperMapAlgoPlot.Point(m.x,m.y);T.isScalePoint=!0,T.tag=0,this.addScalePoint(T);var L=new SuperMapAlgoPlot.Point(r[r.length-1].x,r[r.length-1].y);L.isScalePoint=!0,L.tag=1,this.addScalePoint(L);var O=new SuperMapAlgoPlot.Point(p[0].x,p[0].y);O.isScalePoint=!0,O.tag=2,this.addScalePoint(O);for(var E=0;E<this.scalePoints.length;E++){var w=new SuperMapAlgoPlot.Point(this.scalePoints[E].x,this.scalePoints[E].y);this.scalePoints[E].z=this.ComputeZValue(w,S,f)}}else{c=(c=c.concat(r)).concat(p);for(var x=a.length-1;x>=0;x--)c.push(a[x]);var C=new SuperMapAlgoPlot.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),I=new SuperMapAlgoPlot.Point(C.x,C.y);I.isScalePoint=!0,I.tag=0,this.addScalePoint(I);var R=new SuperMapAlgoPlot.Point(r[r.length-1].x,r[r.length-1].y);R.isScalePoint=!0,R.tag=1,this.addScalePoint(R);var _=new SuperMapAlgoPlot.Point(p[0].x,p[0].y);_.isScalePoint=!0,_.tag=2,this.addScalePoint(_)}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,c,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=new SuperMapAlgoPlot.Point(this.scalePoints[0].x,this.scalePoints[0].y),l=new SuperMapAlgoPlot.Point(this.scalePoints[1].x,this.scalePoints[1].y),i=new SuperMapAlgoPlot.Point(this.scalePoints[2].x,this.scalePoints[2].y),n=this.scaleValues[0],r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints),a=r*n;if(0==t){var s=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[this.controlPoints.length-2],this.controlPoints[this.controlPoints.length-1]),u=s.projectPoint;if(s.isOnline){var p=SuperMapAlgoPlot.PlottingUtil.distance(u,this.controlPoints[this.controlPoints.length-1]);this.scaleValues[0]=p/r}}else if(1==t){var c=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,l,i).projectPoint,P=SuperMapAlgoPlot.PlottingUtil.distance(c,o);this.scaleValues[1]=P/a}else if(2==t){var h=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[1],i).projectPoint,g=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(h,o,this.controlPoints[1]),y=g.projectPoint,f=SuperMapAlgoPlot.PlottingUtil.distance(y,o);!0===g.inOnline?this.scaleValues[4]=-f/a:this.scaleValues[4]=f/a}}this.calculateParts()}}]),e}();SuperMapAlgoPlot.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.NewChord=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="SuperMapAlgoPlot.NewChord",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,SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length>=this.minEditPts){var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),o=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1]),l=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[2]),i=SuperMapAlgoPlot.Primitives.getArcCircleSpatialData(t[0],e,l,o);0!==i.length&&this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,i)}}}]),e}();SuperMapAlgoPlot.NewChord=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.NewArc=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="SuperMapAlgoPlot.NewArc",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,SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length>=this.minEditPts){var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),o=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[2]),l=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1]),i=SuperMapAlgoPlot.Primitives.getArcCircleSpatialData(t[0],e,o,l);0!==i.length&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i)}}}]),e}();SuperMapAlgoPlot.NewArc=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.NewPie=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="SuperMapAlgoPlot.NewPie",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,SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length>=this.minEditPts){var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),o=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[2]),l=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1]),i=[];i.push(t[0]),(i=i.concat(SuperMapAlgoPlot.Primitives.getArcCircleSpatialData(t[0],e,o,l))).push(t[0]),0!==i.length&&this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,i)}}}]),e}();SuperMapAlgoPlot.NewPie=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.Polybezier=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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 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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues=[]),this.scalePoints=[];var e=[];if(t.length<3)e.push(t[0]),e.push(t[1]);else{var o=SuperMapAlgoPlot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=o.scaleValues;for(var l=0;l<o.scalePoints.length;l++)this.addScalePoint(o.scalePoints[l]);e=o.beizerPoints}SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),e.length<=0||(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e),this.finish())}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,0)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0))return;var r=-1;r=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var a=(e.x-o[r].x)/i,s=(e.y-o[r].y)/i;this.scaleValues[2*t]=a,this.scaleValues[2*t+1]=s}}}]),e}();SuperMapAlgoPlot.Polybezier=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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){if(this.init(),!(null==this.controlPoints||this.controlPoints.length<this.minEditPts)){var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(this.scalePoints=[],this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t),!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.scaleValues[0],0)&&!SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.findPointInLine(t[0],t[1],l),r=SuperMapAlgoPlot.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),SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.scaleValues[2],0))this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,a,{fillLimit:!0,fill:!0}),this.addScalePoint(n,1);else if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.scaleValues[2],1))this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a),this.addScalePoint(t[0],1);else{var s=l*this.scaleValues[2],u=SuperMapAlgoPlot.PlottingUtil.findPointInLine(n,t[0],s);a.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,a,{fillLimit:!0,fill:!0}),this.addScalePoint(u,1)}}if(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.scaleValues[3],0)&&!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.scaleValues[4],0)){var p=this.scaleValues[3]*(this.style.weight||this.style.strokeWidth),c=this.scaleValues[4]*(this.style.weight||this.style.strokeWidth),P=this.getLonLatDistanceFromPixel(p),h=this.getLonLatDistanceFromPixel(c),g=SuperMapAlgoPlot.PlottingUtil.findPointInLine(t[1],t[0],P),y=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(h,t[0],g),f=[];if(f.push(y.pntLeft),f.push(t[1]),f.push(y.pntRight),this.addScalePoint(y.pntLeft,2),SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.scaleValues[5],0))this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,f,{fillLimit:!0,fill:!0}),this.addScalePoint(g,3);else if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.scaleValues[5],1))this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),this.addScalePoint(t[1],3);else{var S=P*this.scaleValues[5],A=SuperMapAlgoPlot.PlottingUtil.findPointInLine(g,t[1],S);f.push(A),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,f,{fillLimit:!0,fill:!0}),this.addScalePoint(A,3)}}this.finish()}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),0===t){var l=SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.findPointInLine(o[0],o[1],n),s=SuperMapAlgoPlot.PlottingUtil.findPointInLine(a,o[0],r);n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],l.projectPoint),i=this.getPixelDistanceFromLonLat(n),this.scaleValues[0]=i/(this.style.weight||this.style.strokeWidth);var u=SuperMapAlgoPlot.PlottingUtil.distance(e,l.projectPoint),p=this.getPixelDistanceFromLonLat(u);this.scaleValues[1]=p/(this.style.weight||this.style.strokeWidth),r=SuperMapAlgoPlot.PlottingUtil.distance(s,l.projectPoint),this.scaleValues[2]=r/n}}else if(1===t){var c=this.scaleValues[0]*(this.style.weight||this.style.strokeWidth),P=this.getLonLatDistanceFromPixel(c),h=SuperMapAlgoPlot.PlottingUtil.findPointInLine(o[0],o[1],P),g=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,h,o[0]);if(g.isOnline){var y=SuperMapAlgoPlot.PlottingUtil.distance(h,g.projectPoint);this.scaleValues[2]=y/P,this.scaleValues[2]<0?this.scaleValues[2]=0:this.scaleValues[2]>1&&(this.scaleValues[2]=1)}}else if(2===t){var f=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,o[0],o[1]);if(f.isOnline){var S=this.scaleValues[3]*(this.style.weight||this.style.strokeWidth),A=this.getLonLatDistanceFromPixel(S),d=A*this.scaleValues[5],M=SuperMapAlgoPlot.PlottingUtil.findPointInLine(o[1],o[0],A),v=SuperMapAlgoPlot.PlottingUtil.findPointInLine(M,o[1],d);A=SuperMapAlgoPlot.PlottingUtil.distance(o[1],f.projectPoint),S=this.getPixelDistanceFromLonLat(A),this.scaleValues[3]=S/(this.style.weight||this.style.strokeWidth);var b=SuperMapAlgoPlot.PlottingUtil.distance(e,f.projectPoint),m=this.getPixelDistanceFromLonLat(b);this.scaleValues[4]=m/(this.style.weight||this.style.strokeWidth),d=SuperMapAlgoPlot.PlottingUtil.distance(v,f.projectPoint),this.scaleValues[5]=d/A}}else if(3===t){var T=this.scaleValues[3]*(this.style.weight||this.style.strokeWidth),L=this.getLonLatDistanceFromPixel(T),O=SuperMapAlgoPlot.PlottingUtil.findPointInLine(o[1],o[0],L),E=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,O,o[1]);if(E.isOnline){var w=SuperMapAlgoPlot.PlottingUtil.distance(O,E.projectPoint);this.scaleValues[5]=w/L,this.scaleValues[5]<0?this.scaleValues[5]=0:this.scaleValues[5]>1&&(this.scaleValues[5]=1)}}}this.calculateParts()}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[0]=2*this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e);for(var l=o*this.scaleValues[0],i=o*this.scaleValues[0]/2,n=SuperMapAlgoPlot.PlottingUtil.clonePoints(e),r=parseInt((o-i)/l),a=0;a<=r&&!(i+l*a>o);a++){var s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,i+l*a);if(-1!==s.index){var u=new SuperMapAlgoPlot.Point(s.pt.x,s.pt.y),p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(l/2,e[s.index],u);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[p.pntLeft,p.pntRight])}}this.finish()}}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(null!=(t=SuperMapAlgoPlot.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=[SuperMapAlgoPlot.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=-SuperMapAlgoPlot.PlottingUtil.radian(l,i)/Math.PI*180;var n=this.scaleValues[0]*SuperMapAlgoPlot.PlottingUtil.distance(l,i);e=[SuperMapAlgoPlot.PlottingUtil.findPoint(l,i,n,0)]}this.addCell(34,e,o,this.textContent);var r=new SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.distance(e,this.controlPoints[0]),i=1;i<this.controlPoints.length;i++){var n=SuperMapAlgoPlot.PlottingUtil.distance(e,this.controlPoints[i]);n<l&&(l=n,o=i)}var r=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);(r=SuperMapAlgoPlot.PlottingUtil.clearSamePts(r)).push(r[0].clone());var a=SuperMapAlgoPlot.PlottingUtil.computePointToLineMinDis(e,r);if(-1===a.minDis)this.scaleValues[1]=o+1,this.offsetX=0,this.offsetY=0;else{var s=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,r[a.index],r[a.index+1]),u=SuperMapAlgoPlot.PlottingUtil.distance(e,s),p=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(this.controlPoints),c=SuperMapAlgoPlot.PlottingUtil.distance(e,p);if(c<u&&c<l)this.scaleValues[1]=0,this.scaleValues[0]=0;else if(l<u&&l<c)this.scaleValues[1]=o+1,this.scaleValues[0]=0;else if(u<l&&u<c){this.scaleValues[1]=a.index+1;var P=null,h=null;this.scaleValues[1]===this.controlPoints.length?(P=this.controlPoints[this.controlPoints.length-1],h=this.controlPoints[0]):(P=this.controlPoints[this.scaleValues[1]-1],h=this.controlPoints[this.scaleValues[1]]);var g=SuperMapAlgoPlot.PlottingUtil.distance(s,P),y=SuperMapAlgoPlot.PlottingUtil.distance(P,h);this.scaleValues[0]=g/y}}}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}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);null!==e&&e.length>=this.minEditPts&&this.computeLine(e)}},{key:"computeLine",value:function(t){this.components.length=0;var e=t[0],o=t[t.length-1];this.subSectionCount<=1&&(this.subSectionCount=10);var l=SuperMapAlgoPlot.PlottingUtil.distance(e,o)/(2*this.subSectionCount-1);if(this.lineRelationType===SuperMapAlgoPlot.LineRelationType.SOLID)this.addCell(24,t,{surroundLineFlag:!1});else if(this.lineRelationType===SuperMapAlgoPlot.LineRelationType.DASH)for(var i=0;i<this.subSectionCount;i++){var n=SuperMapAlgoPlot.PlottingUtil.findPoint(e,o,2*i*l,0),r=SuperMapAlgoPlot.PlottingUtil.findPoint(e,o,(2*i+1)*l,0);this.addCell(24,[n,r],{surroundLineFlag:!1})}else if(this.lineRelationType===SuperMapAlgoPlot.LineRelationType.ARROW)for(var a=0;a<this.subSectionCount;a++){var s=SuperMapAlgoPlot.PlottingUtil.findPoint(e,o,2*a*l,0),u=SuperMapAlgoPlot.PlottingUtil.findPoint(e,o,(2*a+1)*l,0),p=SuperMapAlgoPlot.PlottingUtil.findPoint(u,s,l,60),c=SuperMapAlgoPlot.PlottingUtil.findPoint(u,s,l,-60);this.addCell(24,[p,u,c],{surroundLineFlag:!1})}}}]),e}();SuperMapAlgoPlot.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:SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),this.controlPoints=SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(e,i)),n.push(new SuperMapAlgoPlot.Point(e,o)),n.push(new SuperMapAlgoPlot.Point(l,o)),n.push(new SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(this.scaleValues[1],this.scaleValues[2]);if(this.textBoxType===SuperMapAlgoPlot.TextBoxType.RECTBOX||this.textBoxType===SuperMapAlgoPlot.TextBoxType.LINEBOX){var s=[];switch(r){case 0:this.addScalePoint(a);break;case 1:this.addScalePoint(a),s.push(new SuperMapAlgoPlot.Point(e,o-(o-i)*t)),s.push(a);break;case 2:this.addScalePoint(a),s.push(new SuperMapAlgoPlot.Point(l-(l-e)*t,o)),s.push(a);break;case 3:this.addScalePoint(a),s.push(new SuperMapAlgoPlot.Point(l,o-(o-i)*t)),s.push(a);break;case 4:this.addScalePoint(a),s.push(new SuperMapAlgoPlot.Point(l-(l-e)*t,i)),s.push(a)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s)}if(0!==n.length&&this.textBoxType===SuperMapAlgoPlot.TextBoxType.RECTBOX)this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n);else if(0!==n.length&&this.textBoxType===SuperMapAlgoPlot.TextBoxType.LINEBOX){var u=[];switch(r){case 0:break;case 1:u=(u=u.concat(n[0])).concat(n[1]);break;case 2:u=(u=u.concat(n[1])).concat(n[2]);break;case 3:u=(u=u.concat(n[2])).concat(n[3]);break;case 4:u=(u=u.concat(n[3])).concat(n[0])}0!==u.length?this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u):this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,this.controlPoints)}this.islocationCircle&&this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[a,new SuperMapAlgoPlot.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(SuperMapAlgoPlot.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}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.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?SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(this.controlPoints):SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),this.relLineText===SuperMapAlgoPlot.RelLineText.ONBOTHLINE){this.relLineText=SuperMapAlgoPlot.RelLineText.ONRIGHTLINE;var e=this.getTextPathPts(t,!1);this.computeText(e,this.textContent[0],t),this.relLineText=SuperMapAlgoPlot.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=SuperMapAlgoPlot.RelLineText.ONBOTHLINE,this.showPathLine=o}else{var i=[];i=this.relLineText===SuperMapAlgoPlot.RelLineText.ONRIGHTLINE?this.getTextPathPts(t,!1):this.relLineText===SuperMapAlgoPlot.RelLineText.ONLEFTLINE?this.getTextPathPts(t,!0):t,this.computeText(i,this.textContent[0],t)}this.finish()}}},{key:"getTextPathPts",value:function(t,e){t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t);var o=this.getLonLatDistanceFromPixel(this.textToLineDistance);if(0>=o)return SuperMapAlgoPlot.PlottingUtil.clonePoints(t);var l=SuperMapAlgoPlot.PlottingUtil.paraLine(t,o,e);return SuperMapAlgoPlot.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+=SuperMapAlgoPlot.PlottingUtil.distance(i[a],i[a+1]);var s={index:-1,pt:i[0]},u=0,p=0,c=0,P=180/Math.PI,h=this.getTextBounds(this.style,e),g="lm";g=this.relLineText===SuperMapAlgoPlot.RelLineText.ONLINE?"lm":this.relLineText===SuperMapAlgoPlot.RelLineText.ONLEFTLINE?"lb":"lt",(u=(r-h.getWidth())/2)<=0&&(u=0);for(var y=[],f=0;f<l;f++){var S=this.getTextBounds(this.style,e.charAt(f));y.push(new SuperMap.Bounds(0,-h.getHeight(),S.getWidth(),0))}for(var A,d=!1,M=!1,v=0,b=0,m=[];p<=u&&c<n-1;)c++,p+=SuperMapAlgoPlot.PlottingUtil.distance(i[c-1],i[c]);var T=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,u),L=SuperMapAlgoPlot.PlottingUtil.radian(i[c-1],i[c])*P;L>180&&(L-=360),L<-180&&(L+=360),L>90&&L<=180?(v=-180,d=!0,M=!0):L>-180&&L<-90&&(v=180,d=!0,M=!0),!0,0!=v?this.relLineText===SuperMapAlgoPlot.RelLineText.ONLINE||(g=this.relLineText===SuperMapAlgoPlot.RelLineText.ONLEFTLINE?"lt":"lb"):this.relLineText===SuperMapAlgoPlot.RelLineText.ONLINE||(g=this.relLineText===SuperMapAlgoPlot.RelLineText.ONLEFTLINE?"lb":"lt");for(var O=0;O<l&&!(u>r);O++){var E=O;for(M&&(E=l-O-1),b=(A=y[E]).getWidth(),d&&(u+=b);p<=u&&c<n-1;)c++,p+=SuperMapAlgoPlot.PlottingUtil.distance(i[c-1],i[c]);var w=(L=SuperMapAlgoPlot.PlottingUtil.radian(i[c-1],i[c])*P)+v;if((s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,u)).index<0)break;A.add(s.pt.x,s.pt.y);var x=e.charAt(E),C={};C.type=SuperMapAlgoPlot.SymbolType.TEXTSYMBOL,C.textContent=x,C.positionPoints=[s.pt],C.style={surroundLineFlag:!1,labelAlign:g,labelRotation:-w},m.push(C),d||(u+=b)}var I=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,u);if(this.showPathLine){if(this.relLineText===SuperMapAlgoPlot.RelLineText.ONLINE&&this.isAvoid){if(T.index>=0){for(var R=[],_=0;_<=T.index;_++)R.push(o[_]);R.push(T.pt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,R)}if(I.index>=0){var U=[];U.push(I.pt);for(var N=I.index+1;N<o.length;N++)U.push(o[N]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U)}}else this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o);this.showPathLineArrow&&this.addArrow(o)}for(var D=0;D<m.length;D++)this.components.push(m[D])}}},{key:"addArrow",value:function(t){if(t.length<2)return t;var e=SuperMapAlgoPlot.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<SuperMapAlgoPlot.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(!(SuperMapAlgoPlot.PlottingUtil.distance(n,r)<e)){var s=SuperMapAlgoPlot.PlottingUtil.radian(n,r)*SuperMapAlgoPlot.PlottingUtil.RTOD,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,a,a,s+157.5),p=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,a,a,s+202.5);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[u,t[t.length-1],p],{surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0,fill:!0})}}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.distance(t,e)/2,l=180*SuperMapAlgoPlot.PlottingUtil.radian(t,e)/Math.PI,i=new SuperMapAlgoPlot.Point((t.x+e.x)/2,(t.y+e.y)/2),n=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,o,o,l+90),r=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,3*o,3*o,l+90);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[n,new SuperMapAlgoPlot.Point(n.x+o,n.y)]),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[r,new SuperMapAlgoPlot.Point(r.x+o,r.y)])}else{var a=this.controlPoints[0].clone(),s=this.controlPoints[1].clone(),u=this.controlPoints[2].clone(),p=0;p=SuperMapAlgoPlot.PlottingUtil.isRight(u,a,s)?180*SuperMapAlgoPlot.PlottingUtil.radian(s,a)/Math.PI+90:180*SuperMapAlgoPlot.PlottingUtil.radian(a,s)/Math.PI+90;var c=SuperMapAlgoPlot.PlottingUtil.distance(a,s)/2,P=new SuperMapAlgoPlot.Point((a.x+s.x)/2,(a.y+s.y)/2),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,c,c,p),g=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(u,a,s);if(g<=4*c){var y=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,3*c,3*c,p);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[h,new SuperMapAlgoPlot.Point(h.x+c,h.y)]),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[y,new SuperMapAlgoPlot.Point(y.x+c,y.y)])}else{for(var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,g-c,g-c,p),S=180*Math.acos(c/(g-2*c))/Math.PI,A=p-S,d=p-180+S,M=p-180-S+360,v=[],b=p+S-360;b<=A;b+=4){var m=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,c,c,b);v.push(m)}var T=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,c,c,A);v.push(T);for(var L=[],O=d;O<M;O+=4){var E=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,c,c,O);L.push(E)}var w=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,c,c,M);L.push(w);var x=[];x=x.concat(v);for(var C=L.length-1;C>=0;C--)x.push(L[C]);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,x)}}}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.distance(t,e),l=this.scaleValues[0]*o,i=SuperMapAlgoPlot.PlottingUtil.parallel(this.controlPoints,l/2),n=SuperMapAlgoPlot.PlottingUtil.parallel(this.controlPoints,-l/2),r=180*SuperMapAlgoPlot.PlottingUtil.radian(t,e)/Math.PI,a=[],s=r+90;s<=r+270;s+=10){var u=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,l/2,l/2,s);a.push(u)}for(var p=[],c=r-90;c<=r+90;c+=10){var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,l/2,l/2,c);p.push(P)}var h=[];(h=(h=(h=(h=h.concat(a)).concat(n)).concat(p)).concat(i)).push(h[0]),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,h);var g=new SuperMapAlgoPlot.Point(a[0].x,a[0].y);this.addScalePoint(g)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint&&0==t){var o=SuperMapAlgoPlot.PlottingUtil.distance(e,this.controlPoints[0]),l=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]);this.scaleValues[0]=2*o/l}this.calculateParts()}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t),this.isEdit||(this.scaleValues[1]=.25*this.getSubSymbolScaleValue());var e=SuperMapAlgoPlot.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 SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(t[0].x,t[0].y+o);this.addScalePoint(r);var a=SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(t[i].x,t[i].y+e),r=this.getCirclePts(n,o);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,r,l)}}},{key:"getCirclePts",value:function(t,e){for(var o=[],l=0;l<=360;l+=12){var i=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,l);o.push(i)}return o}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t)this.scaleValues[0]=(e.y-o[0].y)/l;else if(1===t){var i=l*this.scaleValues[0],n=new SuperMapAlgoPlot.Point(o[0].x,o[0].y+i),r=SuperMapAlgoPlot.PlottingUtil.distance(e,n);this.scaleValues[1]=r/l}}this.calculateParts()}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.computeBeizerPoints(this.isEdit,this.controlPoints,this.scaleValues);n.scalePoints=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n.scalePoints),n.scaleValues=SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.clonePoints(n.beizerPoints)}this.addCell(SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(2>o.length)return;var l=SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(0,0),n=0,r=0,a=0,s=2*Math.PI;i=t[0],o.push(i);for(var u=!1,p=!1,c=!1,P=1;P<l;P++)if(r=Math.sqrt((t[P].y-i.y)*(t[P].y-i.y)+(t[P].x-i.x)*(t[P].x-i.x)),SuperMapAlgoPlot.PlottingUtil.equalFuzzy(0,r))u&&(i=t[P-1],P--,o.push(i),a=0,s=2*Math.PI,u=!1,p=!1,c=!1);else{var h=(t[P].x-i.x)/r,g=(t[P].y-i.y)/r;if(n=g>0||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(0,g)?Math.acos(h):2*Math.PI-Math.acos(h),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||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(0,n-a)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(0,n-s)){var y=Math.atan(e/r);p?a<n-y&&(a=n-y):(p=!0,a=n-y),c?s>n+y&&(s=n+y):(c=!0,s=n+y),u=!0}else i=t[P-1],P--,o.push(i),a=0,s=2*Math.PI,u=!1,p=!1,c=!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;SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i[0].x,i[n-1].x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i[0].y,i[n-1].y);){if((n-=1)<=0)return o;r=!0}var a,s,u=[];for(a=0;a<n;a++)u.push(0);for(u[0]=1,u[n-1]=1,s=0,a=1;a<n-1;a++)if(SuperMapAlgoPlot.PlottingUtil.distance(i[s],i[a])>1e-10&&SuperMapAlgoPlot.PlottingUtil.distance(i[s],i[a+1])>1e-10){var p=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(i[a],i[s],i[a+1])/Math.PI;p>e&&p<180-e&&(u[a]=1,s++)}var c=0;for(a=0;a<n;a++)1==u[a]&&c++;if(c>0){for(r&&c++,o=[],s=0,a=0;a<n;a++)1==u[a]&&(o[s++]=i[a]);return r&&(o[s]=o[0]),o}return o}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){if(this.init(),this.controlPoints=SuperMapAlgoPlot.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=SuperMapAlgoPlot.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=SuperMapAlgoPlot.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,u;0==r?(u=l,a=SuperMapAlgoPlot.PlottingUtil.radian(o[l],o[i])*SuperMapAlgoPlot.PlottingUtil.RTOD,s=Math.acos((n*n+this.scaleValues[l]*this.scaleValues[l]-this.scaleValues[i]*this.scaleValues[i])/(2*n*this.scaleValues[l]))*SuperMapAlgoPlot.PlottingUtil.RTOD):(u=i,a=SuperMapAlgoPlot.PlottingUtil.radian(o[i],o[l])*SuperMapAlgoPlot.PlottingUtil.RTOD,s=Math.acos((n*n+this.scaleValues[i]*this.scaleValues[i]-this.scaleValues[l]*this.scaleValues[l])/(2*n*this.scaleValues[i]))*SuperMapAlgoPlot.PlottingUtil.RTOD);var p=a-s,c=a+s,P=p<0&&c>0||p>360||c>360;p=this.adjustAngle(p),c=this.adjustAngle(c);for(var h=this.angleRange[u].length-1;h>=0;h--)if(P){if(c>this.angleRange[u][h].End||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(c,this.angleRange[u][h].End)){this.angleRange[u].splice(h,1);continue}if(c>this.angleRange[u][h].Start&&(this.angleRange[u][h].Start=c),p<this.angleRange[u][h].Start||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(p,this.angleRange[u][h].Start)){this.angleRange[u].splice(h,1);continue}p<this.angleRange[u][h].End&&(this.angleRange[u][h].End=p)}else if(p<this.angleRange[u][h].Start&&c>this.angleRange[u][h].End)this.angleRange[u].splice(h,1);else if(p>this.angleRange[u][h].Start&&c<this.angleRange[u][h].End)this.angleRange[u].push({Start:this.angleRange[u][h].Start,End:p}),this.angleRange[u].push({Start:c,End:this.angleRange[u][h].End}),this.angleRange[u].splice(h,1);else{if(p>this.angleRange[u][h].End)continue;if(p>this.angleRange[u][h].Start&&(this.angleRange[u][h].End=p),c<this.angleRange[u][h].Start)continue;c<this.angleRange[u][h].End&&(this.angleRange[u][h].Start=c)}}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 g=[],y=0;y<o.length;y++)if(0!==this.angleRange[y].length&&(0!==this.angleRange[y][0].Start||0!==this.angleRange[y][0].End))for(var f=this.angleRange[y].length-1;f>=0;f--){for(var S=this.adjustAngle(this.angleRange[y][f].Start),A=this.adjustAngle(this.angleRange[y][f].End);A<S;)A+=360;if(A-S==360)this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[o[y],new SuperMapAlgoPlot.Point(o[y].x,o[y].y+this.scaleValues[y])]);else{for(var d=[],M=(A-S)/72,v=S;v<A+M/2;v+=M){var b=o[y].x+this.scaleValues[y]*Math.cos(v*SuperMapAlgoPlot.PlottingUtil.DTOR),m=o[y].y+this.scaleValues[y]*Math.sin(v*SuperMapAlgoPlot.PlottingUtil.DTOR);d.push(new SuperMapAlgoPlot.Point(b,m))}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d),g.push(d)}}for(var T=[];0!==g.length;){var L=g[0];g.splice(0,1),void 0!==(L=this.generatePolygon(g,L))&&T.push(L)}for(var O=[],E=0;E<T.length;E++)O.push(T[E]);for(var w=O.length-1;w>=0;w--)for(var x=0;x<O[w].length;x++){for(var C in O)if(parseInt(C)!==w){var I=O[C];if(SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(I,O[w][x])){var R=w,_=parseInt(C);O[_].push(O[_][0]),O[R].push(O[R][0]),O[_]=O[_].concat(O[R]),O.splice(R,1);break}}if(!isNaN(R)&&!isNaN(_))break}for(var U=0;U<O.length;U++){var N={type:SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,positionPoints:O[U],style:{surroundLineFlag:!1,lineWidthLimit:!0,weight:0,strokeWidth:0}};this.components.splice(0,0,N)}for(var D=0;D<o.length;D++){var B=new SuperMapAlgoPlot.Point(o[D].x+this.scaleValues[D],o[D].y);B.isScalePoint=!0,B.tag=D,this.addScalePoint(B)}}}},{key:"generatePolygon",value:function(t,e){if(0===t.length||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(e[0].x,e[e.length-1].x,1e-7)&&SuperMapAlgoPlot.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(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[i][0].x,l.x,1e-7)&&SuperMapAlgoPlot.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(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[i][t[i].length-1].x,l.x,1e-7)&&SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=SuperMapAlgoPlot.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}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!(null==(t=SuperMapAlgoPlot.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;SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.scaleValues[1],this.scaleValues[0])&&(this.scaleValues[1]+=360);for(var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),o=SuperMapAlgoPlot.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),u=t[0].y+e*Math.sin(a*n),p=t[0].x+o*Math.cos(a*n),c=t[0].y+o*Math.sin(a*n);l.push(new SuperMapAlgoPlot.Point(s,u)),i.push(new SuperMapAlgoPlot.Point(p,c))}for(var P=[],h=0;h<l.length;h++)P.push(l[h]);for(var g=i.length-1;g>=0;g--)P.push(i[g]);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,P,{surroundLineFlag:!1,lineWidthLimit:!0,weight:0,strokeWidth:0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i);var y=t[0].x+e/2*Math.cos(this.scaleValues[0]*n),f=t[0].y+e/2*Math.sin(this.scaleValues[0]*n),S=t[0].x+o/2*Math.cos(this.scaleValues[1]*n),A=t[0].y+o/2*Math.sin(this.scaleValues[1]*n),d=new SuperMapAlgoPlot.Point(y,f);d.isScalePoint=!0,d.tag=0,this.addScalePoint(d);var M=new SuperMapAlgoPlot.Point(S,A);M.isScalePoint=!0,M.tag=1,this.addScalePoint(M)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){for(var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=180*SuperMapAlgoPlot.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}();SuperMapAlgoPlot.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:SuperMapAlgoPlot.TextBoxType.WITHTIPBOX,0===o.scaleValues.length&&(o.scaleValues.push(.126),o.scaleValues.push(0),o.scaleValues.push(0)),o.CLASS_NAME="SuperMapAlgoPlot.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,SuperMapAlgoPlot.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,u=4;if(this.roundBox){var p=Math.max(e,l),c=Math.min(e,l),P=Math.max(o,i),h=Math.min(o,i),g=.1*Math.min(Math.abs(e-l),Math.abs(o-i)),y=new SuperMapAlgoPlot.Point(c+g,h+g),f=new SuperMapAlgoPlot.Point(c+g,P-g),S=new SuperMapAlgoPlot.Point(p-g,P-g),A=new SuperMapAlgoPlot.Point(p-g,h+g),d=this.calculateArc(y,g,3*Math.PI/2,Math.PI,-1,180),M=this.calculateArc(f,g,Math.PI,Math.PI/2,-1,180),v=this.calculateArc(S,g,Math.PI/2,0,-1,180),b=this.calculateArc(A,g,2*Math.PI,3*Math.PI/2,-1,180);r=d.length,a=d.length+M.length,s=d.length+M.length+v.length,u=d.length+M.length+v.length+b.length,n=d.concat(M,v,b)}else n.push(new SuperMapAlgoPlot.Point(e,i)),n.push(new SuperMapAlgoPlot.Point(e,o)),n.push(new SuperMapAlgoPlot.Point(l,o)),n.push(new SuperMapAlgoPlot.Point(l,i));this.isEdit||(this.scaleValues[1]=e+.1*(l-e),this.scaleValues[2]=i+-.3*(o-i));var m=new SuperMapAlgoPlot.Point(this.scaleValues[1],this.scaleValues[2]),T=this.getAction(this.scaleValues[1],this.scaleValues[2],e,o,l,i);if(this.textBoxType===SuperMapAlgoPlot.TextBoxType.WITHTIPBOX)switch(this.addScalePoint(m,0),T){case 0:break;case 1:this.addScalePoint(new SuperMapAlgoPlot.Point(e,o-(o-i)*t)),n.splice(r,0,new SuperMapAlgoPlot.Point(e,o-(o-i)*t)),n.splice(r,0,m),n.splice(r,0,new SuperMapAlgoPlot.Point(e,i+(o-i)*t));break;case 2:this.addScalePoint(new SuperMapAlgoPlot.Point(l-(l-e)*t,o)),n.splice(a,0,new SuperMapAlgoPlot.Point(l-(l-e)*t,o)),n.splice(a,0,m),n.splice(a,0,new SuperMapAlgoPlot.Point(e+(l-e)*t,o));break;case 3:this.addScalePoint(new SuperMapAlgoPlot.Point(l,o-(o-i)*t)),n.splice(s,0,new SuperMapAlgoPlot.Point(l,i+(o-i)*t)),n.splice(s,0,m),n.splice(s,0,new SuperMapAlgoPlot.Point(l,o-(o-i)*t));break;case 4:this.addScalePoint(new SuperMapAlgoPlot.Point(l-(l-e)*t,i)),n.splice(u,0,new SuperMapAlgoPlot.Point(e+(l-e)*t,i)),n.splice(u,0,m),n.splice(u,0,new SuperMapAlgoPlot.Point(l-(l-e)*t,i))}if(0!==n.length)if(this.textBoxType===SuperMapAlgoPlot.TextBoxType.NONEBOX){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n,{surroundLineFlag:!1,weight:0,lineWidthLimit:!0})}else this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n)}else this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.addCell(SuperMapAlgoPlot.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 u=(l-n)/(i-o),p=.25;switch(r<o?a>l?Math.abs((a-l)/(r-o))>u?2:1:a<n&&Math.abs((a-n)/(r-o))>u?4:1:r>i?a>l?Math.abs((a-l)/(r-i))>u?2:3:a<n&&Math.abs((a-n)/(r-i))>u?4:3:a>l?2:a<n?4:0){case 1:case 3:var c=s.y+(e.y-s.y);c>l&&(c=l),c<(l+n)/2&&(c=(l+n)/2),p=1-2*(l-c)/(l-n);break;case 2:case 4:var P=s.x+(e.x-s.x);P>i&&(P=i),P<(o+i)/2&&(P=(o+i)/2),p=1-2*(i-P)/(i-o)}p<0&&(p=0),p>1&&(p=1),this.scaleValues[0]=p}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),u=[],p=o,c=0;c<s;c+=r){var P=new SuperMapAlgoPlot.Point(Math.cos(p)*e+t.x,Math.sin(p)*e+t.y);u.push(P),p=(p=(p+=a)<0?p+2*Math.PI:p)>2*Math.PI?p-2*Math.PI:p}return u}},{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}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(e,i)),n.push(new SuperMapAlgoPlot.Point(e,o)),n.push(new SuperMapAlgoPlot.Point(l,o)),n.push(new SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(this.scaleValues[2*s],this.scaleValues[2*s+1]));for(var u,p,c,P,h=a.length,g=[],y=[],f=[],S=[],A=[],d=0;d<r.length;d++)0===r[d]&&g.push(a[d]),1===r[d]&&y.push(a[d]),2===r[d]&&f.push(a[d]),3===r[d]&&S.push(a[d]),4===r[d]&&A.push(a[d]);var M=r.slice();M.sort();var v=new SuperMapAlgoPlot.Point(0,0);if(M[0]===M[M.length-1]&&0!==M[0]){var b=[];switch(M[0]){case 0:break;case 1:u=1/(2*y.length+1);for(var m=new SuperMapAlgoPlot.Point,T=0;T<2*y.length;T++)m=new SuperMapAlgoPlot.Point(e,i+(o-i)*u*(T+1)),b.unshift(m);break;case 2:p=1/(2*f.length+1);for(var L=new SuperMapAlgoPlot.Point,O=0;O<2*f.length;O++)L=new SuperMapAlgoPlot.Point(e+(l-e)*p*(O+1),o),b.unshift(L);break;case 3:c=1/(2*S.length+1);for(var E=new SuperMapAlgoPlot.Point,w=0;w<2*S.length;w++)E=new SuperMapAlgoPlot.Point(l,i+(o-i)*c*(w+1)),b.push(E);break;case 4:P=1/(2*A.length+1);for(var x=new SuperMapAlgoPlot.Point,C=0;C<2*A.length;C++)x=new SuperMapAlgoPlot.Point(e+(l-e)*P*(C+1),i),b.push(x)}for(var I=0;I<h;I++)for(var R=0;R<h;R++){var _=SuperMapAlgoPlot.PlottingUtil.intersectLineSegs(b[2*I+1],a[I],b[2*R],a[R],v);if(_&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v.x,b[2*I+1].x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v.y,b[2*I+1].y)&&(_=!1),_){var U=a[R].clone();a[R]=a[I],a[I]=U}}for(var N=0;N<h;N++)n.splice(M[0],0,b[2*N]),n.splice(M[0],0,a[N]),n.splice(M[0],0,b[2*N+1])}else{for(var D,B,k=[],V=[],Y=[],j=[],F=0;F<r.length;F++)switch(r[F]){case 0:break;case 1:u=1/(2*y.length+1);for(var G=0;G<2*y.length;G++){var z=new SuperMapAlgoPlot.Point(e,i+(o-i)*u*(G+1));k.unshift(z)}for(var W=0;W<y.length;W++)for(var H=1;H<y.length;H++)(D=SuperMapAlgoPlot.PlottingUtil.intersectLineSegs(k[2*W+1],y[W],k[2*H],y[H],v))&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v.x,k[2*W+1].x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v.y,k[2*W+1].y)&&(D=!1),D&&(B=y[H].clone(),y[H]=y[W],y[W]=B);break;case 2:p=1/(2*f.length+1);for(var q=0;q<2*f.length;q++){var X=new SuperMapAlgoPlot.Point(e+(l-e)*p*(q+1),o);V.unshift(X)}for(var J=0;J<f.length;J++)for(var K=1;K<f.length;K++)(D=SuperMapAlgoPlot.PlottingUtil.intersectLineSegs(V[2*J+1],f[J],V[2*K],f[K],v))&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v.x,V[2*J+1].x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v.y,V[2*J+1].y)&&(D=!1),D&&(B=f[K].clone(),f[K]=f[J],f[J]=B);break;case 3:c=1/(2*S.length+1);for(var Q=0;Q<2*S.length;Q++){var Z=new SuperMapAlgoPlot.Point(l,i+(o-i)*c*(Q+1));Y.push(Z)}for(var $=0;$<S.length;$++)for(var tt=1;tt<S.length;tt++)(D=SuperMapAlgoPlot.PlottingUtil.intersectLineSegs(Y[2*$+1],S[$],Y[2*tt],S[tt],v))&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v.x,Y[2*$+1].x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v.y,Y[2*$+1].y)&&(D=!1),D&&(B=S[tt].clone(),S[tt]=S[$],S[$]=B);break;case 4:P=1/(2*A.length+1);for(var et=0;et<2*A.length;et++){var ot=new SuperMapAlgoPlot.Point(e+(l-e)*P*(et+1),i);j.push(ot)}for(var lt=0;lt<A.length;lt++)for(var it=1;it<A.length;it++)(D=SuperMapAlgoPlot.PlottingUtil.intersectLineSegs(j[2*lt+1],A[lt],j[2*it],A[it],v))&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v.x,j[2*lt+1].x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v.y,j[2*lt+1].y)&&(D=!1),D&&(B=A[it].clone(),A[it]=A[lt],A[lt]=B)}for(var nt=0;nt<A.length;nt++)n.splice(4,0,j[2*nt]),n.splice(4,0,A[nt]),n.splice(4,0,j[2*nt+1]);for(var rt=0;rt<S.length;rt++)n.splice(3,0,Y[2*rt]),n.splice(3,0,S[rt]),n.splice(3,0,Y[2*rt+1]);for(var at=0;at<f.length;at++)n.splice(2,0,V[2*at]),n.splice(2,0,f[at]),n.splice(2,0,V[2*at+1]);for(var st=0;st<y.length;st++)n.splice(1,0,k[2*st]),n.splice(1,0,y[st]),n.splice(1,0,k[2*st+1])}for(var ut=0;ut<a.length;ut++)this.addScalePoint(a[ut],ut)}this.addCell(SuperMapAlgoPlot.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}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.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 u=[];switch(u.push(new SuperMapAlgoPlot.Point(e,i)),u.push(new SuperMapAlgoPlot.Point(e,o)),u.push(new SuperMapAlgoPlot.Point(l,o)),u.push(new SuperMapAlgoPlot.Point(l,i)),a){case 0:break;case 1:this.addScalePoint(new SuperMapAlgoPlot.Point(e,o-(o-i)*t)),u.splice(a,0,new SuperMapAlgoPlot.Point(e,o-(o-i)*t)),u.splice(a,0,this.controlPoints[2].clone()),u.splice(a,0,new SuperMapAlgoPlot.Point(e,i+(o-i)*t));break;case 2:this.addScalePoint(new SuperMapAlgoPlot.Point(l-(l-e)*t,o)),u.splice(a,0,new SuperMapAlgoPlot.Point(l-(l-e)*t,o)),u.splice(a,0,this.controlPoints[2].clone()),u.splice(a,0,new SuperMapAlgoPlot.Point(e+(l-e)*t,o));break;case 3:this.addScalePoint(new SuperMapAlgoPlot.Point(l,o-(o-i)*t)),u.splice(a,0,new SuperMapAlgoPlot.Point(l,i+(o-i)*t)),u.splice(a,0,this.controlPoints[2].clone()),u.splice(a,0,new SuperMapAlgoPlot.Point(l,o-(o-i)*t));break;case 4:this.addScalePoint(new SuperMapAlgoPlot.Point(l-(l-e)*t,i)),u.splice(a,0,new SuperMapAlgoPlot.Point(e+(l-e)*t,i)),u.splice(a,0,this.controlPoints[2].clone()),u.splice(a,0,new SuperMapAlgoPlot.Point(l-(l-e)*t,i))}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,u),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 u=(l-n)/(i-o),p=.25;switch(r<o?a>l?Math.abs((a-l)/(r-o))>u?2:1:a<n&&Math.abs((a-n)/(r-o))>u?4:1:r>i?a>l?Math.abs((a-l)/(r-i))>u?2:3:a<n&&Math.abs((a-n)/(r-i))>u?4:3:a>l?2:a<n?4:0){case 1:case 3:var c=s.y+(e.y-s.y);c>l&&(c=l),c<(l+n)/2&&(c=(l+n)/2),p=1-2*(l-c)/(l-n);break;case 2:case 4:var P=s.x+(e.x-s.x);P>i&&(P=i),P<(o+i)/2&&(P=(o+i)/2),p=1-2*(i-P)/(i-o)}p<0&&(p=0),p>1&&(p=1),this.scaleValues[0]=p}this.calculateParts()}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(0,0);this.GetPointsByTrapezoid(1,i,l,o,n),e.push(o),e.push(l),e.push(i),e.push(n);var r=SuperMapAlgoPlot.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(SuperMapAlgoPlot.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,u=l.x,p=l.y,c=0,P=0,h=0,g=0;if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(Math.abs(r-s),0))c=n+a-u,P=p;else if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(Math.abs(n-a),0))c=u,P=r+s-p;else{var y=1*(r-s)/(n-a),f=p-y*u;P=y*(c=((s+r)/2+(n+a)/(2*y)-f)/(y+1/y))+f,c=2*c-u,P=2*P-p}var S=Math.sqrt(1*(n-a)*(n-a)+1*(r-s)*(r-s)),A=Math.sqrt(1*(n-c)*(n-c)+1*(r-P)*(r-P));S>0?(h=n+(a-n)*A/S,g=r+(s-r)*A/S):(h=n,g=r);var d=h+(c-h)*t,M=g+(P-g)*t;i.x=d,i.y=M}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],o=t[1],l=SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(l*i,l*i),a=new SuperMapAlgoPlot.Point(l*(.5-n/2),0),s=new SuperMapAlgoPlot.Point(.5*l,-l*n),u=new SuperMapAlgoPlot.Point(l*(.5+n/2),0),p=new SuperMapAlgoPlot.Point(l*(1-i),l*i),c=[],P=180*Math.PI/180,h=270*Math.PI/180,g=3*Math.PI/180,y=P;y<=h;y+=g){var f=new SuperMapAlgoPlot.Point(r.x+l*i,r.y);f=SuperMapAlgoPlot.PlottingUtil.rotateAngle(r,y,f),c.push(f)}c.push(a),c.push(s),c.push(u),P=270*Math.PI/180,h=360*Math.PI/180;for(var S=P;S<=h;S+=g){var A=new SuperMapAlgoPlot.Point(p.x+l*i,p.y);A=SuperMapAlgoPlot.PlottingUtil.rotateAngle(p,S,A),c.push(A)}for(var d=SuperMapAlgoPlot.PlottingUtil.radian(e,o),M=[],v=0;v<c.length;v++){var b=new SuperMapAlgoPlot.Point(c[v].x+e.x,c[v].y+e.y);b=SuperMapAlgoPlot.PlottingUtil.rotateAngle(e,d,b),M.push(b)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M),this.scalePoints=[];var m=new SuperMapAlgoPlot.Point(l*i,0),T=new SuperMapAlgoPlot.Point(m.x+e.x,m.y+e.y);(T=SuperMapAlgoPlot.PlottingUtil.rotateAngle(e,d,T)).isScalePoint=!0,T.tag=0,this.addScalePoint(T);var L=new SuperMapAlgoPlot.Point(s.x+e.x,s.y+e.y);SuperMapAlgoPlot.PlottingUtil.rotateAngle(e,d,L),L.isScalePoint=!0,L.tag=1,this.addScalePoint(L)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==t){var i=SuperMapAlgoPlot.PlottingUtil.distance(o[0],e)/l;i>0&&i<.4&&(this.scaleValues[0]=i)}else if(1==t){var n=new SuperMapAlgoPlot.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),r=SuperMapAlgoPlot.PlottingUtil.distance(e,n)/l;0<r&&.2>r&&(this.scaleValues[1]=r)}}this.calculateParts()}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){if(this.init(),!(this.controlPoints.length<this.minEditPts)){var t=SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(this.controlPoints[this.controlPoints.length-1].x,this.controlPoints[this.controlPoints.length-1].y);SuperMapAlgoPlot.PlottingUtil.rotateAngle(this.controlPoints[0],o,i),this.scaleValues[0]=SuperMapAlgoPlot.PlottingUtil.distance(t[0],this.calculateMidPt(l,i))/SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[t.length-1])}var n=[],r=this.controlPoints[this.controlPoints.length-1].clone();n.push(r.clone()),r=SuperMapAlgoPlot.PlottingUtil.rotateAngle(this.controlPoints[0],o/2,r);var a=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(this.scaleValues[0],this.controlPoints[0],r);n.push(a);for(var s=1;s<e;s++)r=SuperMapAlgoPlot.PlottingUtil.rotateAngle(this.controlPoints[0],o/2,r),n.push(r.clone()),r=SuperMapAlgoPlot.PlottingUtil.rotateAngle(this.controlPoints[0],o/2,r),a=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(this.scaleValues[0],this.controlPoints[0],r),n.push(a);var u=n[1];this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n,{surroundLineFlag:!1,fill:!1}),this.addScalePoint(u),this.finish()}}},{key:"calculateMidPt",value:function(t,e){return new SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[this.controlPoints.length-1]),l=this.scalePoints[0],i=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,this.controlPoints[0],l),n=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[0],i);this.scaleValues[0]=n/o}this.calculateParts()}}]),e}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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,SuperMapAlgoPlot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){if(this.init(),!(null==this.controlPoints||this.controlPoints.length<this.minEditPts)){var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t);var e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var o=SuperMapAlgoPlot.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?SuperMapAlgoPlot.PlottingUtil.radian(e[e.length-1],e[e.length-2]):SuperMapAlgoPlot.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),u=new SuperMapAlgoPlot.Point(a,s),p=l+n,c=e[e.length-1].x+i*Math.cos(p),P=e[e.length-1].y+i*Math.sin(p),h=new SuperMapAlgoPlot.Point(c,P),g=[];g.push(u),g.push(e[e.length-1].clone()),g.push(h);var y={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0},f=SuperMapAlgoPlot.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),u=new SuperMapAlgoPlot.Point(a,s),p=f+n,c=e[0].x+i*Math.cos(p),P=e[0].y+i*Math.sin(p),h=new SuperMapAlgoPlot.Point(c,P);var S=[];S.push(u),S.push(e[0].clone()),S.push(h);var A=this.scaleValues[1]===SuperMapAlgoPlot.ArrowLineType.DOUBLELINE?SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL:SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,d=this.scaleValues[2]===SuperMapAlgoPlot.ArrowLineType.DOUBLELINE?SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL:SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL;this.scaleValues[1]===SuperMapAlgoPlot.ArrowLineType.DOUBLELINE?this.addCell(A,S,y):this.scaleValues[1]===SuperMapAlgoPlot.ArrowLineType.TRIANGLESOLID&&this.addCell(A,S,y),this.scaleValues[2]===SuperMapAlgoPlot.ArrowLineType.DOUBLELINE?this.addCell(d,g,y):this.scaleValues[2]===SuperMapAlgoPlot.ArrowLineType.TRIANGLESOLID&&this.addCell(d,g,y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e),this.finish()}}}]),e}();SuperMapAlgoPlot.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:SuperMapAlgoPlot.AlgoSymbolFactory.getMaxEditPts(e.libID,e.code),this.minEditPts=e.minEditPts?e.minEditPts:SuperMapAlgoPlot.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:SuperMapAlgoPlot.AlgoSymbolFactory.getDefaultSubSymbols(e.libID,e.code),this.polylineConnectLocationPoint=!!e.polylineConnectLocationPoint&&e.polylineConnectLocationPoint,this.style=e.style?e.style:SuperMapAlgoPlot.PlottingUtil.copyAttributes(this.style,SuperMapAlgoPlot.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 SuperMapAlgoPlot.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=null,this.style=null}},{key:"init",value:function(){if(this.components.length=0,this.scalePoints.length=0,this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),this.maxEditPts<this.controlPoints.length&&this.symbolType!==SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.clearSamePts(this.controlPoints);if(t=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),this.controlPoints.length>=this.minEditPts){var e={textContent:this.textContent,type:this.symbolType,surroundLineFlag:!1,positionPoints:t,style:{}};if(e.type===SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL&&e.positionPoints.push(e.positionPoints[0]),this.symbolType===SuperMapAlgoPlot.SymbolType.PARALLELLINE){if(this.controlPoints&&this.controlPoints.length>=3){var o=!1;void 0!==this.controlPoints[0].z&&(o=!0);var l=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]);SuperMapAlgoPlot.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=SuperMapAlgoPlot.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(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r)}}else this.components.push(e)}}},{key:"modifyPoint",value:function(t,e){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 SuperMapAlgoPlot.Point(l.lng,l.lat),o=new SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(l.lon,l.lat),o=new SuperMapAlgoPlot.Point(i.lon,i.lat)}return SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(l.x,l.y),o=new SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(l.x,l.y),o=new SuperMapAlgoPlot.Point(i.x,i.y)}return SuperMapAlgoPlot.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="";var r=0,a={};SuperMap.Util.copyAttributes(a,this.style),a.fontSize<12&&(a.fontSize=12);for(var s=0;s<n.length;s++){r++;var u=n[s],p=SuperMapAlgoPlot.PlottingUtil.getTextWidth(a,u),c=this.getPixelFromLonLat(t,e),P=this.getPixelFromLonLat(o,l),h=parseFloat(Math.abs(P.x-c.x)),g=parseFloat(Math.abs(c.y-P.y)),y=0;if(a.weight?y=parseFloat(a.fontSize)+2*a.weight+.2*parseFloat(a.fontSize)+r:this.style.strokeWidth&&(y=parseFloat(a.fontSize)+2*a.strokeWidth+.2*parseFloat(a.fontSize)+r),y>g)break;if(p>=h){var f=u.split("");u="";for(var S="",A=f.length,d=0;d<A;d++){if(S+=f[d],SuperMapAlgoPlot.PlottingUtil.getTextWidth(a,S)>=h){var M=f[d];if(f[d]="\n",r++,a.weight?y=parseFloat(a.fontSize)*r+r+2*a.weight+.2*parseFloat(a.fontSize):this.style.strokeWidth&&(y=parseFloat(a.fontSize)*r+r+2*a.strokeWidth+.2*parseFloat(a.fontSize)),!(y<g)){0===i.length?i=u:(i+="\n",i+=u);break}f[d]+=M,S=M}u+=f[d],d===A-1&&(0===i.length?i=u:(i+="\n",i+=u))}}else 0===i.length?i=u:(i+="\n",i+=u)}if(0!==i.length){var v=a.labelAlign,b=0,m=0;"l"===v[0]?b=t:"r"===v[0]?b=o:"c"===v[0]&&(b=(t+o)/2),"t"===v[1]?m=e:"b"===v[1]?m=l:"m"===v[1]&&(m=(e+l)/2);var T=new SuperMapAlgoPlot.Point(b,m),L={};L.positionPoints=[T],L.type=SuperMapAlgoPlot.SymbolType.TEXTSYMBOL,L.textContent=i,L.style={surroundLineFlag:!1,labelAlign:v},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=SuperMapAlgoPlot.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,void 0===i?n.style.fontColor="#000000":(n.style.fontColor=i,n.style.fontColorLimit=!0),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=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i*(o-e),t),r=SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(i<=0)return[];for(var n,r=o[0],a=1,s=0,u=!0,p=!0;s<i;){var c,P=[];P.push(r),s+=t;var h=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,o);if(c=h.index,n=h.pts,!(u=h.bfind))break;if(a<c)for(var g=a;g<c;g++)P.push(o[g]);P.push(n),l.push(P),s+=e;var y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,o);if(c=y.index,r=y.pts,a=c+1,!(p=y.bfind))break}if(!u){var f=[];f.push(r);for(var S=a;S<o.length;S++)f.push(o[S]);2===f.length&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(SuperMapAlgoPlot.PlottingUtil.distance(f[0],f[1]),0)||l.push(f)}if(!p){var A=o[o.length-1],d=SuperMapAlgoPlot.PlottingUtil.distance(n,A);if(d*=.01,!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(d,0)){var M=SuperMapAlgoPlot.PlottingUtil.linePnt(A,n,d),v=[];v.push(M),v.push(A),l.push(v)}}return l}},{key:"addArrow",value:function(t,e){if(t.length<2)return t;var o,l=SuperMapAlgoPlot.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,u=t.length-2;u>=0;u--)if(o<SuperMapAlgoPlot.PlottingUtil.distance(r,t[u])){s=u;break}t.splice(s+1,t.length-s),t.push(r)}if(t.length>1){SuperMapAlgoPlot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>a&&(n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,[t[t.length-1],t[t.length-2]])).bfind&&(t.splice(t.length-1,1),t.push(n.pts)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var p=t[t.length-1],c=r,P=o;if(void 0===p)return t;var h=SuperMapAlgoPlot.PlottingUtil.radian(p,c)*SuperMapAlgoPlot.PlottingUtil.RTOD,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,P,P,h+157.5),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,P,P,h+202.5),f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[g,r,y],f)}else this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i)}},{key:"addArrowWithOutLine",value:function(t,e){if(t.length<2)return t;var o,l=SuperMapAlgoPlot.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,u=t.length-2;u>=0;u--)if(o<SuperMapAlgoPlot.PlottingUtil.distance(r,t[u])){s=u;break}t.splice(s+1,t.length-s),t.push(r)}if(t.length>1){SuperMapAlgoPlot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>a&&(n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,[t[t.length-1],t[t.length-2]])).bfind&&(t.splice(t.length-1,1),t.push(n.pts));var p=t[t.length-1],c=r,P=o;if(void 0===p)return t;var h=SuperMapAlgoPlot.PlottingUtil.radian(p,c)*SuperMapAlgoPlot.PlottingUtil.RTOD,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,P,P,h+157.5),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,P,P,h+202.5),f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[g,r,y],f)}else this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i)}},{key:"addDovetailArrow",value:function(t,e){if(t.length<2)return t;var o,l=SuperMapAlgoPlot.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<SuperMapAlgoPlot.PlottingUtil.distance(i,t[r])){n=r;break}t.splice(n+1,t.length-n),t.push(i)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var a=t[t.length-2],s=t[t.length-1],u=o;if(void 0===a)return t;if(!(SuperMapAlgoPlot.PlottingUtil.distance(a,s)<o)){var p=SuperMapAlgoPlot.PlottingUtil.radian(a,s)*SuperMapAlgoPlot.PlottingUtil.RTOD,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,u,u,p+157.5),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,u,u,p+202.5),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,.5*u,.5*u,p+180),g=[];g.push(c),g.push(t[t.length-1]),g.push(P),g.push(h);var y={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,y)}}},{key:"getDefaultSubSymbolSize",value:function(){var t=0;if(this.map){var e=this.getLonLatFromPixel(0,0),o=this.getLonLatFromPixel(this.subSymbolDefaultPixelSize,0),l=new SuperMapAlgoPlot.Point(e.lon,e.lat),i=new SuperMapAlgoPlot.Point(o.lon,o.lat);t=SuperMapAlgoPlot.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+=SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);this.symbolType===SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOL&&(t.splice(1,0,new SuperMapAlgoPlot.Point(this.controlPoints[1].x,this.controlPoints[0].y)),t.push(new SuperMapAlgoPlot.Point(this.controlPoints[0].x,this.controlPoints[1].y)),t.push(new SuperMapAlgoPlot.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&&!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t,0)?t:SuperMapAlgoPlot.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=SuperMapAlgoPlot.AnalysisSymbol.analysisSymbolCells(t.symbolData,!0),a=[],s=0,u=0,p=0,c=0,P=0;P<r.length;P++){null!=r[P].polybezierClose?(r[P].type===SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL||r[P].type===SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL?(r[P].type===SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL&&(r[P].positionPoints=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(r[P].positionPoints)),r[P].isClosed&&r[P].positionPoints[0]!==r[P].positionPoints[symbolCell.positionPoints.length-1]&&r[P].positionPoints.push(r[P].positionPoints[0])):r[P].type===SuperMapAlgoPlot.SymbolType.KIDNEY&&(r[P].positionPoints=SuperMapAlgoPlot.Primitives.getSpatialData(r[P].type,r[P].positionPoints)),a=r[P].positionPoints):a=SuperMapAlgoPlot.Primitives.getSpatialData(r[P].type,r[P].positionPoints,r[P].textContent,0,r[P].isCalculate);for(var h=0,g=a.length;h<g;h++)s<a[h].x&&(s=a[h].x),u<a[h].y&&(u=a[h].y),p>a[h].x&&(p=a[h].x),c>a[h].y&&(c=a[h].y)}var y=new SuperMapAlgoPlot.Point(s,u),f=new SuperMapAlgoPlot.Point(p,c),S=(y.y-f.y)/o,A=(y.x-f.x)/o,d=A>S?A:S,M=new SuperMapAlgoPlot.Point(.5*(y.x+f.x),.5*(y.y+f.y));M.x+=i*(y.x-f.x),M.y+=n*(y.y-f.y);for(var v=0,b=r.length;v<b;v++){for(var m=0,T=r[v].positionPoints.length;m<T;m++)r[v].positionPoints[m].x-=M.x,r[v].positionPoints[m].y-=M.y,r[v].positionPoints[m].x/=d,r[v].positionPoints[m].y/=d,SuperMapAlgoPlot.PlottingUtil.rotateAngle(new SuperMapAlgoPlot.Point(0,0),l*Math.PI/180,r[v].positionPoints[m]),r[v].positionPoints[m].x+=e.x,r[v].positionPoints[m].y+=e.y;r[v].type===SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(t,e,o),i=new SuperMapAlgoPlot.Point(l.projectPoint.x,l.projectPoint.y),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o),r=SuperMapAlgoPlot.PlottingUtil.distance(e,t),a=SuperMapAlgoPlot.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=SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0==n)return!1;var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),a=[];a.push(l[0]);for(var s=-1,u=0,p=e[0],c=1;c<l.length;c++){a.push(l[c]);var P=SuperMapAlgoPlot.PlottingUtil.polylineDistance(a)/n,h=r*P,g=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(h,e),y=g.index,f=g.pts;if(g.bfind){for(var S=t[c-1].z,A=t[c].z,d=r*(P-u),M=0,v=++s;v<=y;v++){var b=S+(A-S)*((M+=v==s?SuperMapAlgoPlot.PlottingUtil.distance(p,e[v]):SuperMapAlgoPlot.PlottingUtil.distance(e[v-1],e[v]))/d);o.push({x:e[v].x,y:e[v].y,z:b})}s=y}u=P,p=f}for(var m=s+1;m<e.length;m++)o.push({x:e[m].x,y:e[m].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=SuperMapAlgoPlot.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)*SuperMapAlgoPlot.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 u=0;u<t.length;u++)e.push({x:t[u].x,y:t[u].y,z:o})}}]),t}();SuperMapAlgoPlot.AlgoSymbol=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.ArrowToolkit=SuperMapAlgoPlot.ArrowToolkit=SuperMapAlgoPlot.ArrowToolkit||{};SuperMapAlgoPlot.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},SuperMapAlgoPlot.ArrowToolkit.ArrowTailType={ARROWTAIL_NONE:0,ARROWTAIL_LINE:1,ARROWTAIL_CURVE:2,ARROWTAIL_COATTAIL:3,ARROWTAIL_COATTAIL_POLYBODY:4},SuperMapAlgoPlot.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},SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType={ARROWBODY_POLYLINE:0,ARROWBODY_POLYBEZIER:1,ARROWBODY_COATTAIL:5,ARROWBODY_PARALLEL:2,ARROWBODY_TRAPEZOID:3,ARROWBODY_MULTIPOLYBEZIER:4},SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.parallel(t,e),o.rightParallelPts=SuperMapAlgoPlot.PlottingUtil.parallel(t,-e),o)},SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.rotate(t[i],0,1,n),l.leftParallelPts.push(SuperMapAlgoPlot.PlottingUtil.findPointInLine(t[i],n,e)),n=t[i],n=SuperMapAlgoPlot.PlottingUtil.rotate(t[i+1],0,-1,n),l.leftParallelPts.push(SuperMapAlgoPlot.PlottingUtil.findPointInLine(t[i+1],n,o)),n=t[i+1],n=SuperMapAlgoPlot.PlottingUtil.rotate(t[i],0,-1,n),l.rightParallelPts.push(SuperMapAlgoPlot.PlottingUtil.findPointInLine(t[i],n,e)),n=t[i],n=SuperMapAlgoPlot.PlottingUtil.rotate(t[i+1],0,1,n),l.rightParallelPts.push(SuperMapAlgoPlot.PlottingUtil.findPointInLine(t[i+1],n,o))}return l},SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePts=function(t,e,o){var l={};switch(o){case SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL:case SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_TRAPEZOID:var i=e[0],n=e[1],r=e[2],a=SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,0);if(!a&&t.length>2){var s=t.length;t.splice(2,s-2)}var u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);l.arrowTouLen=u*i;for(var p=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,u-l.arrowTouLen).pt,c=[],P=l.arrowTouLen*r,h=l.arrowTouLen*n,g=t.length-1,y=0;y<g;y++)c.push(t[y]);c.push(p);var f={leftParallelPts:[],rightParallelPts:[]};f=!0===a?SuperMapAlgoPlot.ArrowToolkit.parallel(c,h):SuperMapAlgoPlot.ArrowToolkit.trapezoid(c,P,h);var S=t[t.length-1];t[t.length-1]=p,t.push(S);l.leftBodyPts=f.leftParallelPts,l.rightBodyPts=f.rightParallelPts,l.OpectrlPoints=null;break;case SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER:var A=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(0==A)return;var d=SuperMapAlgoPlot.ArrowToolkit.OperateCtrlPts(t),M=d.length;M--;var v=SuperMapAlgoPlot.ArrowToolkit.generateMultiBezier(d,M,e,A);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},SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePts=function(t,e,o,l,i){var n=[];switch(i){case SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR:case SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR:var r=o[0],a=o[1],s=0,u=0;3==o.length&&(s=o[2]),4==o.length&&(s=o[2],u=o[3]);var p=0;if(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(s,0)&&!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(u,0)){var c=SuperMapAlgoPlot.PlottingUtil.clonePoints(t);c.splice(c.length-1,1),p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(c)*s*u}var P=new SuperMapAlgoPlot.Point((e[0].x+e[1].x)/2,(e[0].y+e[1].y)/2);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(a,0)){var h=l*r,g=t[t.length-1];return g=SuperMapAlgoPlot.PlottingUtil.rotate(P,0,1,g),n.push(SuperMapAlgoPlot.PlottingUtil.findPointInLine(P,g,h)),n.push(t[t.length-1]),g=t[t.length-1],g=SuperMapAlgoPlot.PlottingUtil.rotate(P,0,-1,g),n.push(SuperMapAlgoPlot.PlottingUtil.findPointInLine(P,g,h)),n}var y=l*a,f=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(y,P,t[t.length-1]);y=l*r,y+=p;var S=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(y,t[t.length-1],f),A=S.pntLeft,d=S.pntRight,M=t[t.length-1];return n.push(d),n.push(M),n.push(A),n}},SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine=function(t,e,o,l){var i=[];if(2>t.length)return i;var n,r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),a=SuperMapAlgoPlot.PlottingUtil.equalFuzzy(e,0);switch(o){case SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE:i=i.concat(t),l&&!a&&SuperMapAlgoPlot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>e&&(n=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,r-e),i.splice(i.length-1,1),i.push(n.pt));break;case SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER:if(2==t.length)i=i.concat(t),l&&!a&&SuperMapAlgoPlot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>e&&(n=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,r-e),i.splice(i.length-1,1),i.push(n.pt));else{var s=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);if(a)i=i.concat(s);else{var u=s[s.length-1];if(!a&&(e<SuperMapAlgoPlot.PlottingUtil.distance(t[t.length-1],t[t.length-2])||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(SuperMapAlgoPlot.PlottingUtil.distance(t[t.length-1],t[t.length-2]),e,1e-7))){for(var p=s.length-1;p>1;p--){if(!(e>SuperMapAlgoPlot.PlottingUtil.distance(u,s[p]))){var c=SuperMapAlgoPlot.PlottingUtil.findPoint(u,s[p],e,0);s.push(c),i=s;break}s.splice(p,1)}l||i.push(u)}else i=i.concat(s)}}break;case SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL:var P=e;if(P>r)return i;for(var h,g,y=Math.ceil(r/(1.4*P)),f=0,S=[],A=0;A<y;A++)h=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(P*f,t),g=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(P*(f+1),t),h.bfind&&g.bfind&&(S.push(h.pts),S.push(g.pts)),f=1.4*(A+1);i=S}return i},SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine=function(t,e,o){var l=[];if(2>t.length)return l;switch(o){case SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE:var i=t[0],n=t[1],r=SuperMapAlgoPlot.PlottingUtil.distance(i,n);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,e,1e-7)||r>e){var a=SuperMapAlgoPlot.PlottingUtil.findPoint(i,n,e,0),s=e*Math.tan(.125*Math.PI),u=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,t[0],a);l.push(u.pntLeft),l.push(t[0]),l.push(u.pntRight)}break;case SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE:break;case SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID:var p=t[0],c=t[1],P=SuperMapAlgoPlot.PlottingUtil.distance(p,c);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(P,e,1e-7)||P>e){var h=e*Math.tan(.125*Math.PI),g=SuperMapAlgoPlot.PlottingUtil.findPoint(p,c,e,0),y=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(h,t[0],g);l.push(y.pntLeft),l.push(p),l.push(y.pntRight),l.push(y.pntLeft)}break;case SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL:var f=t[0],S=2*Math.sqrt(e*e/3),A=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(S/2,A,1e-7)||A>S/2){var d=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],S,20),M=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],S,-20),v=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],S/2,0);l.push(f),l.push(d),l.push(v),l.push(M),l.push(f)}break;case SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW:var b=[],m=t[0],T=2*Math.sqrt(e*e/3),L=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(T/1.4,L,1e-7)||L>T/1.4){var O=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],T,20),E=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],T,-20),w=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],T/1.4,0);b.push(m),b.push(O),b.push(w),b.push(E),b.push(m);var x=new SuperMapAlgoPlot.Point((b[0].x+b[1].x)/2,(b[0].y+b[1].y)/2),C=new SuperMapAlgoPlot.Point((b[3].x+b[4].x)/2,(b[3].y+b[4].y)/2),I=new SuperMapAlgoPlot.Point((x.x+C.x)/2,(x.y+C.y)/2),R=.75*SuperMapAlgoPlot.PlottingUtil.distance(x,C)/2,_=SuperMapAlgoPlot.PlottingUtil.findPointInLine(I,x,R),U=SuperMapAlgoPlot.PlottingUtil.findPointInLine(I,C,R);l.push(b[0]),l.push(_),l.push(b[1]),l.push(b[2]),l.push(b[3]),l.push(U),l.push(b[4])}}return l},SuperMapAlgoPlot.ArrowToolkit.generateArrowTailShapePts=function(t,e,o,l){for(var i=e.length,n=[],r=0,a=0;a<t.length-1;a++)r+=SuperMapAlgoPlot.PlottingUtil.distance(t[a],t[a+1]);var s=r*o;switch(l){case SuperMapAlgoPlot.ArrowToolkit.ArrowTailType.ARROWTAIL_NONE:break;case SuperMapAlgoPlot.ArrowToolkit.ArrowTailType.ARROWTAIL_LINE:var u=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],s,90),p=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],s,-90);n.push(u),n.push(p);break;case SuperMapAlgoPlot.ArrowToolkit.ArrowTailType.ARROWTAIL_CURVE:var c=new SuperMapAlgoPlot.Point(.5*(e[0].x+e[i-1].x),.5*(e[0].y+e[i-1].y)),P=SuperMapAlgoPlot.PlottingUtil.distance(e[0],e[i-1]),h=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(P*o,c,t[t.length-1]),g=new SuperMapAlgoPlot.Point(0,0),y=new SuperMapAlgoPlot.Point(0,0);SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(SuperMapAlgoPlot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_1,SuperMapAlgoPlot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_2,e[0],h,e[i-1],g,y);var f=new SuperMapAlgoPlot.Point(0,0);SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(SuperMapAlgoPlot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_3,e[0],h,g,f);var S=new SuperMapAlgoPlot.Point(0,0);SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(SuperMapAlgoPlot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_3,e[i-1],h,y,S);break;case SuperMapAlgoPlot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL:var A=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],s,157.5),d=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],s,-157.5);n.push(A),n.push(t[0]),n.push(d);break;case SuperMapAlgoPlot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL_POLYBODY:var M=new SuperMapAlgoPlot.Point(.5*(e[0].x+e[i-1].x),.5*(e[0].y+e[i-1].y)),v=SuperMapAlgoPlot.PlottingUtil.distance(e[0],e[i-1]),b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(v*o,e[0],M);n.push(e[i-1]),n.push(b.pntLeft),n.push(e[0])}return n},SuperMapAlgoPlot.ArrowToolkit.generateArrowTailShapePtsBySingleLine=function(t,e,o){var l=[];switch(o){case SuperMapAlgoPlot.ArrowToolkit.ArrowTailType.ARROWTAIL_NONE:break;case SuperMapAlgoPlot.ArrowToolkit.ArrowTailType.ARROWTAIL_LINE:var i=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],e,90),n=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],e,-90);l.push(i),l.push(n);break;case SuperMapAlgoPlot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL:var r=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],e,157.5),a=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],e,-157.5);l.push(r),l.push(t[0]),l.push(a)}return l},SuperMapAlgoPlot.ArrowToolkit.OperateCtrlPts=function(t){var e=SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(o,l),n=e[2].clone();e[2]=i,e.push(n)}return e},SuperMapAlgoPlot.ArrowToolkit.generateMultiBezier=function(t,e,o,l){var i=0,n=[],r=[],a=[],s=[],u=[],p=[],c=o[0],P=o[1],h=(t[0].x+t[1].x)/2,g=(t[0].y+t[1].y)/2,y=Math.abs(h-t[2].x),f=Math.abs(g-t[2].y),S=0;if(y>0&&f>0){var A=1/(h-t[2].x),d=-1/(g-t[2].y),M=1*t[2].y/(g-t[2].y)-1*t[2].x/(h-t[2].x);S=Math.abs(A*t[0].x+d*t[0].y+M)/Math.sqrt(A*A+d*d)}else f<=1e-4?S=Math.abs(g-t[1].y):y<=1e-4&&(S=Math.abs(h-t[1].x));var v=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(S,t[2],new SuperMapAlgoPlot.Point(h,g)),b=SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);var m=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))*SuperMapAlgoPlot.ArrowToolkit.ConstValue.sv_AtWidthDivAwWidth,T=(i=m*SuperMapAlgoPlot.ArrowToolkit.ConstValue.sv_AtLenDivAtWidth)*P;SuperMapAlgoPlot.PlottingUtil.equalFuzzy(c,0)||(T=(i=l*c)*P);var L,O,E=SuperMapAlgoPlot.PlottingUtil.distance(t[e],t[e-1]),w=2*i;E<w&&(T=(i=E/2)*P),t.push(t[e]),L=0,O=0;var x=0,C=[];for(x=2;x<=e;x++)L+=SuperMapAlgoPlot.PlottingUtil.distance(t[x],t[x-1]);for(L-=i,x=2;x<=e-1;x++)O+=SuperMapAlgoPlot.PlottingUtil.distance(t[x],t[x-1]),C[x]=T+(m-T)*Math.pow((L-O)/L,SuperMapAlgoPlot.ArrowToolkit.ConstValue.sv_AtScaleParameter);C[e]=T;var I,R,_=new SuperMapAlgoPlot.Point(0,0),U=new SuperMapAlgoPlot.Point(0,0),N=new SuperMapAlgoPlot.Point(0,0);for(x=2;x<=e-1;x++)SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(0,3,t[x-1],t[x],t[x+1],U,N),x==e-1&&SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(.5,t[e],t[e-1],N,_),I=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(C[x],U,t[x]),(b=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(N,U,I.pntRight))?(n[x]=new SuperMapAlgoPlot.Point(I.pntRight.x,I.pntRight.y),r[x]=new SuperMapAlgoPlot.Point(I.pntLeft.x,I.pntLeft.y)):(n[x]=new SuperMapAlgoPlot.Point(I.pntLeft.x,I.pntLeft.y),r[x]=new SuperMapAlgoPlot.Point(I.pntRight.x,I.pntRight.y));for(Math.sqrt(1*(t[e].x-_.x)*(t[e].x-_.x)+1*(t[e].y-_.y)*(t[e].y-_.y))>0&&(t[e]=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(i,t[e],_)),I=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(T,t[e+1],t[e]),(b=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(t[e],t[e+1],I.pntLeft))?(r[e]=new SuperMapAlgoPlot.Point(I.pntLeft.x,I.pntLeft.y),n[e]=new SuperMapAlgoPlot.Point(I.pntRight.x,I.pntRight.y)):(r[e]=new SuperMapAlgoPlot.Point(I.pntRight.x,I.pntRight.y),n[e]=new SuperMapAlgoPlot.Point(I.pntLeft.x,I.pntLeft.y)),x=2;x<e;x++)SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(3,3,n[x-1],n[x],n[x+1],U,N),a[x]=new SuperMapAlgoPlot.Point(U.x,U.y),s[x]=new SuperMapAlgoPlot.Point(N.x,N.y),SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(3,3,r[x-1],r[x],r[x+1],U,N),u[x]=new SuperMapAlgoPlot.Point(U.x,U.y),p[x]=new SuperMapAlgoPlot.Point(N.x,N.y),2==x&&(SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(.5,n[1],n[2],a[2],_),s[1]=new SuperMapAlgoPlot.Point(_.x,_.y),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(.5,r[1],r[2],u[2],_),p[1]=new SuperMapAlgoPlot.Point(_.x,_.y)),x==e-1&&(w=(E=SuperMapAlgoPlot.PlottingUtil.distance(n[e],n[e-1]))/3,(R=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(w,t[e],t[e+1])).x+=n[e].x-t[e].x,R.y+=n[e].y-t[e].y,w=(E=m-T)*Math.pow(w/L,SuperMapAlgoPlot.ArrowToolkit.ConstValue.sv_AtScaleParameter),I=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(w,n[e],R),a[e]=new SuperMapAlgoPlot.Point(I.pntLeft.x,I.pntLeft.y),w=(E=SuperMapAlgoPlot.PlottingUtil.distance(r[e],r[e-1]))/3,(R=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(w,t[e],t[e+1])).x+=r[e].x-t[e].x,R.y+=r[e].y-t[e].y,w=(E=m-T)*Math.pow(w/L,SuperMapAlgoPlot.ArrowToolkit.ConstValue.sv_AtScaleParameter),I=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(w,r[e],R),u[e]=new SuperMapAlgoPlot.Point(I.pntRight.x,I.pntRight.y));return{arrowTouLen:i,leftBodyPts:SuperMapAlgoPlot.ArrowToolkit.genArrowBody(e,n,a,s),rightBodyPts:SuperMapAlgoPlot.ArrowToolkit.genArrowBody(e,r,u,p)}},SuperMapAlgoPlot.ArrowToolkit.genArrowBody=function(t,e,o,l){var i=new SuperMapAlgoPlot.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="SuperMapAlgoPlot.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 SuperMapAlgoPlot.Element(t.GetX(),t.GetY(),SuperMapAlgoPlot.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}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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 SuperMapAlgoPlot.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 SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.m_x,t.m_x,1e-10)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.m_y,t.m_y,1e-10)&&this.m_type==t.m_type}},{key:"clone",value:function(){return new SuperMapAlgoPlot.Path2D.Element(this.m_x,this.m_y,this.m_type)}}]),t}();SuperMapAlgoPlot.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="SuperMapAlgoPlot.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 SuperMapAlgoPlot.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 SuperMapAlgoPlot.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 SuperMapAlgoPlot.Element(t.x,t.y,2),n=new SuperMapAlgoPlot.Element(e.x,e.y,3),r=new SuperMapAlgoPlot.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 SuperMapAlgoPlot.Element(t.x,t.y,2),n=new SuperMapAlgoPlot.Element(e.x,e.y,3),r=new SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(e,o));break;case 1:e=a.GetX(),o=a.GetY(),i.push(new SuperMapAlgoPlot.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(),u=l.elements[r-1].GetY(),p=a.GetX(),c=a.GetY(),P=l.elements[r+1].GetX(),h=l.elements[r+1].GetY(),g=l.elements[r+2].GetX(),y=l.elements[r+2].GetY(),f=0;f<=1;f+=.03125){var S=f*f,A=S*f,d=1-3*f+3*S-A,M=3*(f-2*S+A),v=3*(S-A),b=A;i.push(new SuperMapAlgoPlot.Point(d*s+M*p+v*P+b*g,d*u+M*c+v*h+b*y))}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 SuperMapAlgoPlot.Path2DData,e=new SuperMapAlgoPlot.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 SuperMapAlgoPlot.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}();SuperMapAlgoPlot.Path2D=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbol322=e.AlgoSymbol321=e.AlgoSymbol320=e.AlgoSymbol25701=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.NewChord=e.NewArc=e.NewPie=e.Polybezier=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(70),i=o(69),n=o(68),r=o(67),a=o(66),s=o(65),u=o(64),p=o(63),c=o(62),P=o(61),h=o(60),g=o(59),y=o(58),f=o(57),S=o(56),A=o(55),d=o(54),M=o(53),v=o(52),b=o(51),m=o(50),T=o(49),L=o(48),O=o(47),E=o(46),w=o(45),x=o(44),C=o(43),I=o(42),R=o(41),_=o(40),U=o(39),N=o(38),D=o(37),B=o(36),k=o(35),V=o(34),Y=o(33),j=o(32),F=o(31),G=o(30),z=o(29),W=o(28),H=o(27),q=o(26),X=o(25),J=o(24),K=o(23),Q=o(22),Z=o(21),$=o(20),tt=o(19),et=o(18),ot=o(17),lt=o(16),it=o(15);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=u.RegularPolygon,e.Brace=p.Brace,e.Trapezoid=c.Trapezoid,e.GeoTooltipBox=P.GeoTooltipBox,e.GeoTooltipBoxM=h.GeoTooltipBoxM,e.SymbolTextBox=g.SymbolTextBox,e.ConcentricCircle=y.ConcentricCircle,e.CombinationalCircle=f.CombinationalCircle,e.FreeCurve=S.FreeCurve,e.NodeChain=A.NodeChain,e.Runway=d.Runway,e.CurveEight=M.CurveEight,e.PathText=v.PathText,e.LineMarking=b.LineMarking,e.LineRelation=m.LineRelation,e.PolygonRegion=T.PolygonRegion,e.Wire=L.Wire,e.LinearArrow=O.LinearArrow,e.Polybezier=E.Polybezier,e.NewPie=w.NewPie,e.NewArc=x.NewArc,e.NewChord=C.NewChord,e.AlgoSymbol1001=I.AlgoSymbol1001,e.AlgoSymbol1002=R.AlgoSymbol1002,e.AlgoSymbol1003=_.AlgoSymbol1003,e.AlgoSymbol1004=U.AlgoSymbol1004,e.AlgoSymbol1005=N.AlgoSymbol1005,e.AlgoSymbol1006=D.AlgoSymbol1006,e.AlgoSymbol1007=B.AlgoSymbol1007,e.AlgoSymbol1008=k.AlgoSymbol1008,e.AlgoSymbol1009=V.AlgoSymbol1009,e.AlgoSymbol1010=Y.AlgoSymbol1010,e.AlgoSymbol1011=j.AlgoSymbol1011,e.AlgoSymbol1012=F.AlgoSymbol1012,e.AlgoSymbol1013=G.AlgoSymbol1013,e.AlgoSymbol1014=z.AlgoSymbol1014,e.AlgoSymbol1015=W.AlgoSymbol1015,e.AlgoSymbol1016=H.AlgoSymbol1016,e.AlgoSymbol1017=q.AlgoSymbol1017,e.AlgoSymbol1018=X.AlgoSymbol1018,e.AlgoSymbol1019=J.AlgoSymbol1019,e.AlgoSymbol1020=K.AlgoSymbol1020,e.AlgoSymbol1021=Q.AlgoSymbol1021,e.AlgoSymbol1022=Z.AlgoSymbol1022,e.AlgoSymbol315=$.AlgoSymbol315,e.AlgoSymbol15200=tt.AlgoSymbol15200,e.AlgoSymbol25701=et.AlgoSymbol25701,e.AlgoSymbol320=ot.AlgoSymbol320,e.AlgoSymbol321=lt.AlgoSymbol321,e.AlgoSymbol322=it.AlgoSymbol322},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbolFactory=e.BasicAlgoSymbolFactory=void 0;var l=o(3),i=o(7);e.BasicAlgoSymbolFactory=l.BasicAlgoSymbolFactory,e.AlgoSymbolFactory=i.AlgoSymbolFactory},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.AddPoint_WayType=SuperMapAlgoPlot.AddPoint_WayType={UNKNOWN:0,POLYLINE:1,CURVE:2}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.RouteNodePrimitives=SuperMapAlgoPlot.RouteNodePrimitives=SuperMapAlgoPlot.RouteNodePrimitives||{};SuperMapAlgoPlot.RouteNodePrimitives={initialize:function(){},rendezvousPoint:function(){var t=[],e=new Object;e.type=SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(0,0)),e.positionPoints.push(new SuperMapAlgoPlot.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMapAlgoPlot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMapAlgoPlot.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=SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(0,0)),e.positionPoints.push(new SuperMapAlgoPlot.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMapAlgoPlot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMapAlgoPlot.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=SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(0,0)),e.positionPoints.push(new SuperMapAlgoPlot.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMapAlgoPlot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(0,0),i=new SuperMapAlgoPlot.Point(0,30);t||(t=90);var n=new Object;n.type=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n.positionPoints=[];for(var r=t+10;r<170+t;r+=10){var a=SuperMapAlgoPlot.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],u=n.positionPoints[n.positionPoints.length-2],p=SuperMapAlgoPlot.PlottingUtil.findPoint(s,u,9,22.5),c=SuperMapAlgoPlot.PlottingUtil.findPoint(s,u,9,-22.5),P=new Object;P.type=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P.positionPoints=[],P.positionPoints.push(p),P.positionPoints.push(s.clone()),P.positionPoints.push(c),P.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(P);var h=new Object;h.type=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h.positionPoints=[];for(var g=190+t;g<350+t;g+=10){var y=SuperMapAlgoPlot.PlottingUtil.findPoint(l,i,30,g);h.positionPoints.push(y)}h.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(h);var f=h.positionPoints[h.positionPoints.length-1],S=h.positionPoints[h.positionPoints.length-2],A=SuperMapAlgoPlot.PlottingUtil.findPoint(f,S,9,22.5),d=SuperMapAlgoPlot.PlottingUtil.findPoint(f,S,9,-22.5),M=new Object;M.type=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M.positionPoints=[],M.positionPoints.push(A),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 m=e*(Math.PI/180);SuperMapAlgoPlot.PlottingUtil.rotateAngle(l,m,o[v].positionPoints[b])}return o},standbyPoint_Inner:function(){var t=[],e=new Object;e.type=SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(-20,0)),e.positionPoints.push(new SuperMapAlgoPlot.Point(20,10)),e.positionPoints.push(new SuperMapAlgoPlot.Point(20,-10)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e);var o=new Object;o.type=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMapAlgoPlot.Point(-5,0)),o.positionPoints.push(new SuperMapAlgoPlot.Point(17,0)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(o);var l=new Object;return l.type=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l.positionPoints=[],l.positionPoints.push(new SuperMapAlgoPlot.Point(-2,1.5)),l.positionPoints.push(new SuperMapAlgoPlot.Point(-5,0)),l.positionPoints.push(new SuperMapAlgoPlot.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=SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(0,0)),e.positionPoints.push(new SuperMapAlgoPlot.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMapAlgoPlot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMapAlgoPlot.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=SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(-15,25)),e.positionPoints.push(new SuperMapAlgoPlot.Point(15,25)),e.positionPoints.push(new SuperMapAlgoPlot.Point(15,-25)),e.positionPoints.push(new SuperMapAlgoPlot.Point(0,-35)),e.positionPoints.push(new SuperMapAlgoPlot.Point(-15,-25)),e.positionPoints.push(new SuperMapAlgoPlot.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=SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(-30,30)),e.positionPoints.push(new SuperMapAlgoPlot.Point(30,30)),e.positionPoints.push(new SuperMapAlgoPlot.Point(30,-30)),e.positionPoints.push(new SuperMapAlgoPlot.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=SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(0,30)),e.positionPoints.push(new SuperMapAlgoPlot.Point(30,0)),e.positionPoints.push(new SuperMapAlgoPlot.Point(0,-30)),e.positionPoints.push(new SuperMapAlgoPlot.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=SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(0,30)),e.positionPoints.push(new SuperMapAlgoPlot.Point(20,-30)),e.positionPoints.push(new SuperMapAlgoPlot.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=SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(0,0)),e.positionPoints.push(new SuperMapAlgoPlot.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=SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(0,-30)),e.positionPoints.push(new SuperMapAlgoPlot.Point(20,30)),e.positionPoints.push(new SuperMapAlgoPlot.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=SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(0,30)),e.positionPoints.push(new SuperMapAlgoPlot.Point(30,-30)),e.positionPoints.push(new SuperMapAlgoPlot.Point(-30,-30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},eightSpiralPoint:function(){var t=[],e=new Object;e.type=SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(30,0)),e.positionPoints.push(new SuperMapAlgoPlot.Point(0,0)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMapAlgoPlot.Point(-30,0)),o.positionPoints.push(new SuperMapAlgoPlot.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=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(-30,20)),e.positionPoints.push(new SuperMapAlgoPlot.Point(30,20)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;o.type=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMapAlgoPlot.Point(30,-20)),o.positionPoints.push(new SuperMapAlgoPlot.Point(-30,-20)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var l=new Object;l.type=SuperMapAlgoPlot.SymbolType.ARCSYMBOL,l.positionPoints=[],l.positionPoints.push(new SuperMapAlgoPlot.Point(-30,20)),l.positionPoints.push(new SuperMapAlgoPlot.Point(-50,0)),l.positionPoints.push(new SuperMapAlgoPlot.Point(-30,-20)),l.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var i=new Object;return i.type=SuperMapAlgoPlot.SymbolType.ARCSYMBOL,i.positionPoints=[],i.positionPoints.push(new SuperMapAlgoPlot.Point(30,20)),i.positionPoints.push(new SuperMapAlgoPlot.Point(50,0)),i.positionPoints.push(new SuperMapAlgoPlot.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=SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(0,0)),e.positionPoints.push(new SuperMapAlgoPlot.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMapAlgoPlot.Point(0,20)),o.positionPoints.push(new SuperMapAlgoPlot.Point(20,-20)),o.positionPoints.push(new SuperMapAlgoPlot.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=SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(0,0)),e.positionPoints.push(new SuperMapAlgoPlot.Point(0,30)),e.style={surroundLineFlag:!1,fontSize:14};var o=new Object;return o.type=SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMapAlgoPlot.Point(-15,15)),o.positionPoints.push(new SuperMapAlgoPlot.Point(15,15)),o.positionPoints.push(new SuperMapAlgoPlot.Point(15,-15)),o.positionPoints.push(new SuperMapAlgoPlot.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 SuperMapAlgoPlot.RouteNodeType.RENDEZVOUS:return this.rendezvousPoint();case SuperMapAlgoPlot.RouteNodeType.EXPANDING:return this.expandingPoint();case SuperMapAlgoPlot.RouteNodeType.VOLLEY:return this.volleyPoint();case SuperMapAlgoPlot.RouteNodeType.STANDBY:return e?this.standbyPoint_Inner():this.standbyPoint_Outer(null,o);case SuperMapAlgoPlot.RouteNodeType.SUPPLY:return this.supplyPoint();case SuperMapAlgoPlot.RouteNodeType.TAKEOFF:return this.takeoffPoint();case SuperMapAlgoPlot.RouteNodeType.INITIAL:return this.initialPoint();case SuperMapAlgoPlot.RouteNodeType.VISUALINITAL:return this.visualInitalPoint();case SuperMapAlgoPlot.RouteNodeType.LANCH:case SuperMapAlgoPlot.RouteNodeType.WEAPONLAUNCH:return this.lanchPoint();case SuperMapAlgoPlot.RouteNodeType.TURNING:case SuperMapAlgoPlot.RouteNodeType.COMMONROUTE:return this.turningPoint();case SuperMapAlgoPlot.RouteNodeType.AIMING:return this.aimingPoint();case SuperMapAlgoPlot.RouteNodeType.TARGET:return this.targetPoint();case SuperMapAlgoPlot.RouteNodeType.ATTACK:return this.attackPoint();case SuperMapAlgoPlot.RouteNodeType.SUPPRESS:return this.suppressPoint();case SuperMapAlgoPlot.RouteNodeType.EIGHTSPIRAL:return this.eightSpiralPoint();case SuperMapAlgoPlot.RouteNodeType.HAPPYVALLEY:return this.happyValleyPoint();default:return[]}},getRouteNodeNameByType:function(t){switch(t){case SuperMapAlgoPlot.RouteNodeType.RENDEZVOUS:return"会合点";case SuperMapAlgoPlot.RouteNodeType.EXPANDING:return"展开点";case SuperMapAlgoPlot.RouteNodeType.VOLLEY:return"齐射点";case SuperMapAlgoPlot.RouteNodeType.STANDBY:return"待机点";case SuperMapAlgoPlot.RouteNodeType.SUPPLY:return"补给点";case SuperMapAlgoPlot.RouteNodeType.TAKEOFF:return"起飞点";case SuperMapAlgoPlot.RouteNodeType.INITIAL:return"初始点";case SuperMapAlgoPlot.RouteNodeType.VISUALINITAL:return"可视化初始点";case SuperMapAlgoPlot.RouteNodeType.LANCH:return"发射点";case SuperMapAlgoPlot.RouteNodeType.WEAPONLAUNCH:return"武器发射点";case SuperMapAlgoPlot.RouteNodeType.TURNING:return"转弯点";case SuperMapAlgoPlot.RouteNodeType.COMMONROUTE:return"普通航路点";case SuperMapAlgoPlot.RouteNodeType.AIMING:return"目标瞄准点";case SuperMapAlgoPlot.RouteNodeType.TARGET:return"目标点";case SuperMapAlgoPlot.RouteNodeType.ATTACK:return"攻击点";case SuperMapAlgoPlot.RouteNodeType.SUPPRESS:return"压制点";case SuperMapAlgoPlot.RouteNodeType.EIGHTSPIRAL:return"八字盘旋点";case SuperMapAlgoPlot.RouteNodeType.HAPPYVALLEY:return"跑马圈点";default:return""}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.Primitives=SuperMapAlgoPlot.Primitives=SuperMapAlgoPlot.Primitives||{};SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);SuperMapAlgoPlot.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=SuperMapAlgoPlot.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,SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),o}},bezier:function(t,e){if(t){var o=[];return o=e?SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t):t,SuperMapAlgoPlot.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?SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t):t,SuperMapAlgoPlot.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 SuperMapAlgoPlot.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 SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(o.x,e.y),o.clone(),new SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])),(!i||null==i)&&t&&t.length>=3){var n=SuperMapAlgoPlot.PlottingUtil.projectPoint(t[2],t[0],t[1]);i=SuperMapAlgoPlot.PlottingUtil.distance(n,t[2])}}else i=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[2]),l=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);if(e&&null!=e?e*=Math.PI/180:e=SuperMapAlgoPlot.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 u=Math.sin(e),p=Math.cos(e);t[2].x>t[1].x?(t[2].x=t[0].x-i*u,t[2].y=t[0].y+i*p):(t[2].x=t[0].x+i*u,t[2].y=t[0].y-i*p)}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,u=Math.sin(l)*e,p=Math.cos(l)*o,c=Math.sin(l)*o,P=this.calcEllipseRadian(i,e,o),h=this.calcEllipseRadian(n,e,o);h-P<1e-5&&(h+=2*Math.PI);var g=Math.round(Math.abs((h-P)/r)+1);if(g<2)return a;for(var y=0;y<g-1;P+=r,y++){y===g-2&&(P=n);var f=t.x+s*Math.cos(P)-c*Math.sin(P),S=t.y+u*Math.cos(P)+p*Math.sin(P);a.push(new SuperMapAlgoPlot.Point(f,S))}return 0>a.length&&(a[a.length-1].x=t.x+s*Math.cos(h)-c*Math.sin(h),a[a.length-1].y=t.y+u*Math.cos(h)+p*Math.sin(h)),a},getArcCircleSpatialData:function(t,e,o,l){for(var i=[];l<o;)l+=2*Math.PI;for(;l>o+2*Math.PI;)o+=2*Math.PI;l-o<1e-10&&(l+=2*Math.PI);for(var n=(l-o)/50,r=o;r<l;r+=n){var a=t.x+e*Math.cos(r),s=t.y+e*Math.sin(r);i.push(new SuperMapAlgoPlot.Point(a,s))}var u=t.x+e*Math.cos(l),p=t.y+e*Math.sin(l);return i.push(new SuperMapAlgoPlot.Point(u,p)),i},getArcInfo:function(t,e,o){var l={};l.pntCenter=new SuperMapAlgoPlot.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 u={},p={};u.x=(e.x+t.x)/2,u.y=(e.y+t.y)/2,p.x=(e.x+o.x)/2,p.y=(e.y+o.y)/2;var c=n/i,P=1;Math.abs(c)<1e-9?(l.pntCenter.x=u.x,Math.abs(o.x-e.x<1e-9)?l.pntCenter.y=p.y:l.pntCenter.y=-(o.x-e.x)/(o.y-e.y)*(l.pntCenter.x-p.x)+p.y):Math.abs(o.x-e.x)<1e-9?(l.pntCenter.y=p.y,l.pntCenter.x=-c*(l.pntCenter.y-u.y)+u.x):(P=(o.y-e.y)/(o.x-e.x),l.pntCenter.x=(c*P*(u.y-p.y)+P*u.x-c*p.x)/(P-c),l.pntCenter.y=(p.x-u.x+P*p.y-c*u.y)/(P-c))}var h=Math.atan2(t.y-l.pntCenter.y,t.x-l.pntCenter.x),g=Math.atan2(o.y-l.pntCenter.y,o.x-l.pntCenter.x);if(SuperMapAlgoPlot.PlottingUtil.isCounterClockwise(t,e,o)){for(;h>=2*Math.PI;)h-=2*Math.PI;for(;h<0;)h+=2*Math.PI;for(;g>2*Math.PI;)g-=2*Math.PI;for(;g<h;)g+=2*Math.PI}else{for(;g>=2*Math.PI;)g-=2*Math.PI;for(;g<0;)g+=2*Math.PI;for(;h>2*Math.PI;)h-=2*Math.PI;for(;g>h;)h+=2*Math.PI;var y=h;h=g,g=y}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*g/Math.PI,l.dStartAngle=180*h/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=SuperMapAlgoPlot.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]),(SuperMapAlgoPlot.PlottingUtil.isSamePt(t[0],t[2])||SuperMapAlgoPlot.PlottingUtil.isSamePt(t[1],t[2]))&&(e.push(t[0]),e.push(t[1])),SuperMapAlgoPlot.PlottingUtil.isSamePt(t[0],t[1]))return e.push(t[0]),void e.push(t[2]);o=this.reNormalizeKidneyCtrlPoints(o);var n=new SuperMapAlgoPlot.Point(0,0),r=new SuperMapAlgoPlot.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 u=this.GetPtsByTriangle(2,0,o[0],o[1],o[2]);e.push(u.pr),e.push(o[2]),e.push(u.pl);var p=this.GetPtsByTriangle(4,1,o[1],o[2],o[0]);return e.push(p.pr),e.push(o[0]),e.push(p.pl),e}e.push(t[0])}},calcProtudeC3:function(t,e){var o,l=new SuperMapAlgoPlot.Point(0,0);return l.x=.5*(t.x+e.x),l.y=.5*(t.y+e.y),o=SuperMapAlgoPlot.PlottingUtil.distance(e,t)/2.7,this.GetPointsOfNormal(o,t,l).pt3},GetPointsOfNormal:function(t,e,o){var l,i=new SuperMapAlgoPlot.Point(0,0),n=new SuperMapAlgoPlot.Point(0,0),r=new SuperMapAlgoPlot.Point(0,0);return 0==(l=SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(0,0)),e.push(new SuperMapAlgoPlot.Point(0,0)),e.push(new SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.distance(a,r),i=SuperMapAlgoPlot.PlottingUtil.distance(s,a),n=SuperMapAlgoPlot.PlottingUtil.distance(r,s),i>=l&&i>=n){var u=r.clone();r=s.clone(),s=u.clone()}else if(n>=l&&n>=i){var p=s.clone();s=a.clone(),a=p.clone()}if(!SuperMapAlgoPlot.PlottingUtil.isRight(s,r,a)){var c=r.clone();r=a.clone(),a=c.clone()}e[0]=r,e[1]=a,e[2]=s}return e},GetPtsByTriangle:function(t,e,o,l,i){var n=new SuperMapAlgoPlot.Point(0,0),r=0,a=0;return r=SuperMapAlgoPlot.PlottingUtil.distance(i,o),a=SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.distance(l,e)/t;var n=this.GetPointsOfNormal(i,o,l);return SuperMapAlgoPlot.PlottingUtil.distance(e,n.pt4)>=(i=SuperMapAlgoPlot.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,u=o.x,p=o.y,c=l.x,P=l.y;if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,a,1e-10)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,s,1e-10)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(u,c,1e-10)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(p,P,1e-10))i.push(new SuperMapAlgoPlot.Point(n,r)),i.push(new SuperMapAlgoPlot.Point(u,p));else for(var h=0;h<=1;h+=.03125){var g,y,f,S,A=h*h,d=A*h;g=1-3*h+3*A-d,y=3*(h-2*A+d),f=3*(A-d),S=d;var M=new SuperMapAlgoPlot.Point(g*n+y*a+f*u+S*c,g*r+y*s+f*p+S*P);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=SuperMapAlgoPlot.PlottingUtil=SuperMapAlgoPlot.PlottingUtil||{};SuperMapAlgoPlot.PlottingUtil.DEFAULT_PRECISION=14,SuperMapAlgoPlot.PlottingUtil.DPI=96,SuperMapAlgoPlot.PlottingUtil.RTOD=57.29577951308232,SuperMapAlgoPlot.PlottingUtil.DTOR=.017453292519943295,SuperMapAlgoPlot.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},SuperMapAlgoPlot.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("")},SuperMapAlgoPlot.PlottingUtil.cloneObject=function(t){return JSON.parse(JSON.stringify(t))},SuperMapAlgoPlot.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+")"},SuperMapAlgoPlot.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},SuperMapAlgoPlot.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},SuperMapAlgoPlot.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}},SuperMapAlgoPlot.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},SuperMapAlgoPlot.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"},SuperMapAlgoPlot.PlottingUtil.trim=function(t){return null==t?"":t.replace(/(^\s*)|(\s*$)/g,"")},SuperMapAlgoPlot.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},SuperMapAlgoPlot.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},SuperMapAlgoPlot.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("<","&lt;")).replace(">","&gt;")).replace(/%/g,"%2525")).replace(/&/g,"%26");case Array:for(var o=[],i=0,n=e.length;i<n;i++)o.push(SuperMapAlgoPlot.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(SuperMapAlgoPlot.PlottingUtil.toJSON(e[a]));return"["+r.join(",")+"]"}var u=[];for(var p in e)"function"!=typeof e[p]&&"CLASS_NAME"!==p&&"parent"!==p&&u.push('"'+p+'":'+SuperMapAlgoPlot.PlottingUtil.toJSON(e[p]));return u.length>0?"{"+u.join(",")+"}":"{}"}return e.toString()}},SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.copyAttributes(e.style,t.style)),o.feature=e,o.calculateParts()}return e},SuperMapAlgoPlot.PlottingUtil.getSurroundLinePts=function(t,e){for(var o=[],l=[],i=0;i<t.length-1;i++){var n,r,a=[];if(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[i].x,t[i+1].x)||!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[i].y,t[i+1].y)){a.push(t[i]),a.push(t[i+1]);var s=SuperMapAlgoPlot.PlottingUtil.parallel(a,e);if(n=s[0],r=s[1],0!=o.length){var u=SuperMapAlgoPlot.PlottingUtil.intersectLines(n,r,o[0],o[1]);if(u.isIntersectLines){var p=u.intersectPoint,c=SuperMapAlgoPlot.PlottingUtil.distance(n,r);SuperMapAlgoPlot.PlottingUtil.distance(p,r)>2*c?l.push(r):(l[l.length-1]=p,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 P=SuperMapAlgoPlot.PlottingUtil.intersectLines(l[0],l[1],l[l.length-2],l[l.length-1]);if(P.isIntersectLines){var h=P.intersectPoint;l[l.length-1]=h,l[0]=h}}return l},SuperMapAlgoPlot.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},SuperMapAlgoPlot.PlottingUtil.getDataFromServer=function(t,e,o,i,n,r,a,s){var u=void 0;if(void 0!==r&&(u=r),"undefined"!=typeof SuperMap&&void 0!==SuperMap.GetSymbolInfoService){var p=new SuperMap.GetSymbolInfoService(t);p.events.on({processCompleted:a,processFailed:s,scope:u});var c=new SuperMap.GetSymbolInfoParameters;c.libID=e,c.code=o,n&&SuperMapAlgoPlot.PlottingUtil.extend(c,n),i&&null!=i&&(SuperMapAlgoPlot.PlottingUtil.isArray(i)||(i=[i]),c.inputPoints=i),p.processAsync(c)}else if(void 0!==("undefined"==typeof SuperMap?"undefined":l(SuperMap))&&void 0!==l(SuperMap.REST)&&void 0!==l(SuperMap.REST.GetSymbolInfoService)){var P=new SuperMap.REST.GetSymbolInfoService(t);P.events.on({processCompleted:a,processFailed:s,scope:u});var h=new SuperMap.REST.GetSymbolInfoParameters;if(h.libID=e,h.code=o,n&&SuperMapAlgoPlot.PlottingUtil.extend(h,n),i&&null!=i&&(SuperMapAlgoPlot.PlottingUtil.isArray(i)||(i=[i]),h.inputPoints=i),n&&n.credential){var g=n.credential;P.processAsync(h,g)}else P.processAsync(h)}},SuperMapAlgoPlot.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},SuperMapAlgoPlot.PlottingUtil.isNear=function(t,e){return e||(e=SuperMapAlgoPlot.PlottingUtil.TORLERANCE_STATIC),t<e&&t>-e},SuperMapAlgoPlot.PlottingUtil.equalFuzzy=function(t,e,o){return o||(o=1e-18),Math.abs(t-e)<=o},SuperMapAlgoPlot.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,u=n*s-a*r;if(SuperMapAlgoPlot.PlottingUtil.isNear(u))return i;var p=(n*(t.y-o.y)-r*(t.x-o.x))/u,c=new SuperMapAlgoPlot.Point(0,0);return c.x=p*a+o.x,c.y=p*s+o.y,i.isIntersectLines=!0,i.intersectPoint=c,i},SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(0,0),n=0;n<l.length-1;n++)if(SuperMapAlgoPlot.PlottingUtil.intersectLineSegs(e,o,l[n],l[n+1],i))return i;return null}function i(t,e){if(0===t.length||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(e[0].x,e[e.length-1].x,.5)&&SuperMapAlgoPlot.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(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[l][0].x,o.x,.5)&&SuperMapAlgoPlot.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(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[l][t[l].length-1].x,o.x,.5)&&SuperMapAlgoPlot.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(SuperMapAlgoPlot.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 u=[],p=0;p<t.length;p++){var c=[],P=[],h=-1,g=-1,y=a.slice();y.splice(p,1);for(var f={},S=0;S<t[p].length;S++)if(o(y,t[p][S],f)){if(0!==P.length){var A=l(a[f.index],t[p][S-1],t[p][S]);A&&A!==t[p][S-1]&&A!==t[p][S]&&P.push(A),c.push(P),P=[]}}else{if(0===S&&(h=c.length),S===t[p].length-1&&(g=c.length),0===P.length&&void 0!==f.index){var d=l(a[f.index],t[p][S-1],t[p][S]);d&&d!==t[p][S-1]&&d!==t[p][S]&&P.push(d)}P.push(t[p][S].clone())}if(0!==P.length&&c.push(P),h<c.length&&g<c.length&&h!==g){for(var M=0;M<c[h].length;M++)c[g].push(c[h][M]);c.splice(h,1)}u=u.concat(c)}for(var v=[];0!==u.length;){var b=u[0];u.splice(0,1);var m=i(u,b);void 0!==m&&(b=m),b.length>2&&v.push(b)}return v},SuperMapAlgoPlot.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},SuperMapAlgoPlot.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},SuperMapAlgoPlot.PlottingUtil.findBisectorPoint=function(t,e,o,l){var i=SuperMapAlgoPlot.PlottingUtil.radian(e,t),n=(i+SuperMapAlgoPlot.PlottingUtil.radian(e,o))/2,r=Math.cos(n-i+Math.PI/2),a=l;SuperMapAlgoPlot.PlottingUtil.isNear(r,.15)||(a=l/r);var s=e.x+a*Math.cos(n),u=e.y+a*Math.sin(n);return new SuperMapAlgoPlot.Point(s,u)},SuperMapAlgoPlot.PlottingUtil.findPoint=function(t,e,o,l){if(t===e||Math.abs(o)<1e-18)return t;var i=SuperMapAlgoPlot.PlottingUtil.radian(t,e)+l*Math.PI/180,n=t.x+o*Math.cos(i),r=t.y+o*Math.sin(i);return new SuperMapAlgoPlot.Point(n,r)},SuperMapAlgoPlot.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))},SuperMapAlgoPlot.PlottingUtil.isCross=function(t,e,o,l){var i=new SuperMapAlgoPlot.Point(0,0);return!(!SuperMapAlgoPlot.PlottingUtil.intersectLineSegs(t,e,o,l,i)||i==t||i===e||i===o||i==l)},SuperMapAlgoPlot.PlottingUtil.intersectLineSegs=function(t,e,o,l,i){if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.x,e.x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.y,e.y))return i.x=t.x,i.y=t.y,!1;if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(o.x,l.x)&&SuperMapAlgoPlot.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,u=l.x-o.x,p=l.y-o.y,c=t.x-o.x,P=t.y-o.y,h=a*p-u*s,g=h;if(Math.abs(a)>1e-18&&Math.abs(u)>1e-18&&(g/=a*u),Math.abs(g)<1e-18)return t===o?(i.x=t.x,i.y=t.y,!SuperMapAlgoPlot.PlottingUtil.isSameQuadrant(t,e,o,l)):e===l?(i.x=e.x,i.y=e.y,!SuperMapAlgoPlot.PlottingUtil.isSameQuadrant(t,e,o,l)):t===l?(i.x=t.x,i.y=t.y,SuperMapAlgoPlot.PlottingUtil.isSameQuadrant(t,e,o,l)):e===o&&(i.x=e.x,i.y=e.y,SuperMapAlgoPlot.PlottingUtil.isSameQuadrant(t,e,o,l));var y=(a*P-s*c)/h,f=(u*P-p*c)/h;return!(y<0&&(Math.abs(y*u)>1e-16||Math.abs(y*p)>1e-16))&&(!(y>1&&(Math.abs((y-1)*u)>1e-16||Math.abs((y-1)*p)>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(y)<1e-18?(i.x=o.x,i.y=o.y,!0):Math.abs(y-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):!(y<0&&(Math.abs(y*u)>1e-16||Math.abs(y*p)>1e-16))&&(!(y>1&&(Math.abs((y-1)*u)>1e-16||Math.abs((y-1)*p)>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=y*u+o.x,i.y=y*p+o.y,!0))))))))},SuperMapAlgoPlot.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]=SuperMapAlgoPlot.PlottingUtil.findBisectorPoint(t[t.length-2],t[0],t[1],e),o[t.length-1]=o[0]):(o[0]=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],e,90),o[t.length-1]=SuperMapAlgoPlot.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 u=SuperMapAlgoPlot.PlottingUtil.findBisectorPoint(n,r,a,e);SuperMapAlgoPlot.PlottingUtil.isCross(n,o[s-1],r,u)&&(u=o[s-1]),o[s]=u}else{for(var p=s;p<l-1;){if(t[p]!==t[p+1]){a=t[p+1];break}p++}if(p<l-1){var c=SuperMapAlgoPlot.PlottingUtil.FindBisectorPoint(n,r,a,e);for(SuperMapAlgoPlot.PlottingUtil.isCross(n,o[s-1],r,c)&&(c=o[s-1]);s<p;)o[s]=c,s++;s=p-1}}return o},SuperMapAlgoPlot.PlottingUtil.distance=function(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))},SuperMapAlgoPlot.PlottingUtil.projectPoint=function(t,e,o){if(e===o)return e;var l=new SuperMapAlgoPlot.Point(0,0),i=o.x-e.x,n=e.y-o.y,r=i*i,a=n*n,s=i*n,u=i*i+n*n;return l.x=(s*(e.y-t.y)+e.x*a+t.x*r)/u,l.y=(s*(e.x-t.x)+e.y*r+t.y*a)/u,l},SuperMapAlgoPlot.PlottingUtil.pointToLineDis=function(t,e,o){var l=SuperMapAlgoPlot.PlottingUtil.projectPoint(t,e,o);return SuperMapAlgoPlot.PlottingUtil.distance(t,l)},SuperMapAlgoPlot.PlottingUtil.pointToPloyLineDis=function(t,e,o){if(e===o)return SuperMapAlgoPlot.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,u=(a-t.x)*(a-t.x)+(s-t.y)*(s-t.y);return Math.sqrt(u)},SuperMapAlgoPlot.PlottingUtil.isCounterClockwise=function(t,e,o){return(o.x-e.x)*(t.y-e.y)-(t.x-e.x)*(o.y-e.y)>0},SuperMapAlgoPlot.PlottingUtil.clearSamePts=function(t){for(var e=t.length,o=0;o<e-1;)SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[o].x,t[o+1].x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[o].y,t[o+1].y)?(t.splice(o,1),e--):o++;return t},SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(0,0),e[n+2]=new SuperMapAlgoPlot.Point(0,0),i++;for(var r=1;r<o-1;r++)SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(8,3,t[r-1],t[r],t[r+1],e[3*r+1],e[3*r+2]);SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(.6,e[0],e[3],e[4],e[2]),SuperMapAlgoPlot.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},SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt=function(t,e){var o=t.slice();!0===e&&o.push(o[0]);var l=SuperMapAlgoPlot.PlottingUtil.getBeizerCtrlPt(o);return SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(l)},SuperMapAlgoPlot.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,u=t[i+4].x,p=t[i+4].y,c=t[i+3].x,P=t[i+3].y;if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,a,1e-10)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,s,1e-10)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(u,c,1e-10)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(p,P,1e-10))o.push(new SuperMapAlgoPlot.Point(n,r)),o.push(new SuperMapAlgoPlot.Point(u,p));else for(var h=0;h<=1;h+=.03125){var g,y,f,S,A=h*h,d=A*h;g=1-3*h+3*A-d,y=3*(h-2*A+d),f=3*(A-d),S=d;var M=new SuperMapAlgoPlot.Point(g*n+y*a+f*u+S*c,g*r+y*s+f*p+S*P);o.push(M)}}return o},SuperMapAlgoPlot.PlottingUtil.computeBeizerPoints0=function(t,e,o){var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),i=[],n=[],r=[];if(t){n.push(e[0]);var a=o[0],s=o[1],u=e[0].x+l*a,p=e[0].y+l*s;n.push(new SuperMapAlgoPlot.Point(u,p)),i.push(new SuperMapAlgoPlot.Point(u,p));for(var c=1;c<e.length-1;c++){var P=o[4*c-2],h=o[4*c-1],g=e[c].x+l*P,y=e[c].y+l*h;n.push(new SuperMapAlgoPlot.Point(g,y)),i.push(new SuperMapAlgoPlot.Point(g,y)),n.push(new SuperMapAlgoPlot.Point(e[c].x,e[c].y)),P=o[4*c],h=o[4*c+1],g=e[c].x+l*P,y=e[c].y+l*h,n.push(new SuperMapAlgoPlot.Point(g,y)),i.push(new SuperMapAlgoPlot.Point(g,y))}var f=e.length-1;a=o[4*f-2],s=o[4*f-1],u=e[f].x+l*a,p=e[f].y+l*s,n.push(new SuperMapAlgoPlot.Point(u,p)),i.push(new SuperMapAlgoPlot.Point(u,p)),n.push(new SuperMapAlgoPlot.Point(e[f].x,e[f].y)),n.push(new SuperMapAlgoPlot.Point(e[f].x,e[f].y)),n.push(new SuperMapAlgoPlot.Point(e[f].x,e[f].y)),r=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(n)}else{o=[];var S=(n=SuperMapAlgoPlot.PlottingUtil.getBeizerCtrlPt(e))[1].x-n[0].x,A=n[1].y-n[0].y,d=S/l,M=A/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,m=(n[3*v-1].y-n[3*v].y)/l;o.push(b),o.push(m),i.push(n[3*v-1]);var T=(n[3*v+1].x-n[3*v].x)/l,L=(n[3*v+1].y-n[3*v].y)/l;o.push(T),o.push(L),i.push(n[3*v+1])}d=(S=n[3*(e.length-1)-1].x-n[3*(e.length-1)].x)/l,M=(A=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=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(n)}return{scalePoints:i,scaleValues:o,beizerPoints:r}},SuperMapAlgoPlot.PlottingUtil.computeBeizerPoints=function(t,e,o){var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),i=[],n=[],r=[];if(t){n.push(new SuperMapAlgoPlot.Point(e[0].x,e[0].y)),n.push(new SuperMapAlgoPlot.Point(e[0].x,e[0].y));var a=o[0],s=o[1],u=e[0].x+l*a,p=e[0].y+l*s;n.push(new SuperMapAlgoPlot.Point(u,p)),i.push(new SuperMapAlgoPlot.Point(u,p));for(var c=1;c<e.length-1;c++){n.push(new SuperMapAlgoPlot.Point(e[c].x,e[c].y));var P=o[4*c-2],h=o[4*c-1],g=e[c].x+l*P,y=e[c].y+l*h;n.push(new SuperMapAlgoPlot.Point(g,y)),i.push(new SuperMapAlgoPlot.Point(g,y)),P=o[4*c],h=o[4*c+1],g=e[c].x+l*P,y=e[c].y+l*h,n.push(new SuperMapAlgoPlot.Point(g,y)),i.push(new SuperMapAlgoPlot.Point(g,y))}var f=e.length-1;n.push(new SuperMapAlgoPlot.Point(e[f].x,e[f].y)),a=o[4*f-2],s=o[4*f-1],u=e[f].x+l*a,p=e[f].y+l*s,n.push(new SuperMapAlgoPlot.Point(u,p)),i.push(new SuperMapAlgoPlot.Point(u,p)),n.push(new SuperMapAlgoPlot.Point(e[f].x,e[f].y)),r=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(n)}else{o=[];var S=(n=SuperMapAlgoPlot.PlottingUtil.getBeizerCtrlPt(e))[2].x-n[0].x,A=n[2].y-n[0].y,d=S/l,M=A/l;o.push(d),o.push(M),i.push(n[2]);for(var v=1;v<e.length-1;v++){var b=(n[3*v+1].x-n[3*v].x)/l,m=(n[3*v+1].y-n[3*v].y)/l;o.push(b),o.push(m),i.push(n[3*v+1]);var T=(n[3*v+2].x-n[3*v].x)/l,L=(n[3*v+2].y-n[3*v].y)/l;o.push(T),o.push(L),i.push(n[3*v+2])}d=(S=n[3*(e.length-1)+1].x-n[3*(e.length-1)].x)/l,M=(A=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=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(n)}return{scalePoints:i,scaleValues:o,beizerPoints:r}},SuperMapAlgoPlot.PlottingUtil.getTrianglePoints=function(t,e,o,l,i,n,r){var a=o.x,s=o.y,u=l.x,p=l.y,c=i.x,P=i.y;SuperMapAlgoPlot.PlottingUtil.getPointsByTriangle(t,e,a,s,u,p,c,P,n,r)},SuperMapAlgoPlot.PlottingUtil.getPointsByTriangle=function(t,e,o,l,i,n,r,a,s,u){var p=i+(r-o),c=n+(a-l),P=0,h=0;if(o==r)P=o,h=c;else if(l==a)P=p,h=l;else{var g=1*(a-l)/(r-o),y=l-o*g;h=g*(P=(c+p/g-y)/(g+1/g))+y}var f=Math.sqrt(1*(i-p)*(i-p)+1*(n-c)*(n-c)),S=Math.sqrt(1*(o-i)*(o-i)+1*(l-n)*(l-n)),A=Math.sqrt(1*(i-r)*(i-r)+1*(n-a)*(n-a)),d=0;p=P+(p-P)*(d=S+A?1+(A-S)*t/(A+S):1),c=h+(c-h)*d,0==f&&(f=1),s.x=i+(i-p)*S/(e*f),s.y=n+(n-c)*S/(e*f),u.x=i+(p-i)*A/(e*f),u.y=n+(c-n)*A/(e*f)},SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints=function(t,e,o,l,i){var n=e.x,r=e.y,a=o.x,s=o.y,u=l.x,p=l.y;return SuperMapAlgoPlot.PlottingUtil.getPointsByTrapezoid(t,n,r,a,s,u,p,i)},SuperMapAlgoPlot.PlottingUtil.getPointsByTrapezoid=function(t,e,o,l,i,n,r,a){var s=0,u=0,p=0,c=0;if(0==Math.abs(o-i))s=e+l-n,u=r;else if(0==Math.abs(e-l))s=n,u=o+i-r;else{var P=1*(o-i)/(e-l),h=r-P*n;u=P*(s=((i+o)/2+(e+l)/(2*P)-h)/(P+1/P))+h,s=2*s-n,u=2*u-r}var g=Math.sqrt(1*(e-l)*(e-l)+1*(o-i)*(o-i)),y=Math.sqrt(1*(e-s)*(e-s)+1*(o-u)*(o-u));return g>0?(p=e+(l-e)*y/g,c=o+(i-o)*y/g):(p=e,c=o),a.x=p+(s-p)*t,a.y=c+(u-c)*t,a},SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine=function(t,e,o){if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.x,e.x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.y,e.y)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.x,o.x)&&SuperMapAlgoPlot.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!!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(a,-1,.1)},SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(t,e[i],e[i+1])){l=i;break}return{isOnPolyLine:o,index:l}},SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.projectPoint(t,n,r);if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(a,n,r)){var s=SuperMapAlgoPlot.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}},SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(r,a)},SuperMapAlgoPlot.PlottingUtil.operateControlPoints=function(t){var e=t,o=e.length;if(3==o){var l=new SuperMapAlgoPlot.Point(0,0);SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(1,t[0],t[1],t[2],l),e.push(l)}if(o>4&&(e.splice(4,o-4),o=e.length),SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(t[0],t[1],e[2])){var i=e[0];e[0]=e[1],e[1]=i}if(!SuperMapAlgoPlot.PlottingUtil.pointIsRightToVerticle(e[0],e[1],e[2])){var n=e[2];e[2]=e[3],e[3]=n}return e},SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine=function(t,e,o){return(e.x-t.x)*(o.y-t.y)-(o.x-t.x)*(e.y-t.y)<0},SuperMapAlgoPlot.PlottingUtil.pointIsRightToVerticle=function(t,e,o){var l=new SuperMapAlgoPlot.Point(.5*(e.x+t.x),.5*(e.y+t.y)),i=new SuperMapAlgoPlot.Point(e.x-t.x,e.y-t.y),n=new SuperMapAlgoPlot.Point(o.x-l.x,o.y-l.y);return i.x*n.x+i.y*n.y>0},SuperMapAlgoPlot.PlottingUtil.linePnt=function(t,e,o){var l=SuperMapAlgoPlot.PlottingUtil.distance(t,e);if(0==l)return t;var i=o/l;return SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(i,t,e)},SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio=function(t,e,o){var l=new SuperMapAlgoPlot.Point(0,0);return l.x=e.x+(o.x-e.x)*t,l.y=e.y+(o.y-e.y)*t,l},SuperMapAlgoPlot.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},SuperMapAlgoPlot.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},SuperMapAlgoPlot.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+=SuperMapAlgoPlot.PlottingUtil.distance(t[l],t[l+1]))>e||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(o,e)){var i=o-e,n=t[l+1],r=t[l],a=i/SuperMapAlgoPlot.PlottingUtil.distance(n,r),s=new SuperMapAlgoPlot.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}},SuperMapAlgoPlot.PlottingUtil.polylineDistance=function(t){if(0===t.length)return 0;for(var e=0,o=0;o<t.length-1;o++)e+=SuperMapAlgoPlot.PlottingUtil.distance(t[o],t[o+1]);return e},SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(r,a)},SuperMapAlgoPlot.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,u=0;return 0==a?(s=l,u=i):(s=l+(n-l)*t/a,u=i+(r-i)*t/a),new SuperMapAlgoPlot.Point(s,u)},SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale=function(t,e,o){var l=e.x,i=e.y,n=o.x,r=o.y,a=0,s=0,u=Math.sqrt(1*(l-n)*(l-n)+1*(i-r)*(i-r));return 0===u?(a=l,s=i):(a=l+(l-n)*t/u,s=i+(i-r)*t/u),new SuperMapAlgoPlot.Point(a,s)},SuperMapAlgoPlot.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,u=0;0==a?(u=0,s=t):(s=t*(l-n)/a,u=t*(i-r)/a);var p=-u+n,c=+s+r,P=+u+n,h=-s+r;return{pntLeft:new SuperMapAlgoPlot.Point(P,h),pntRight:new SuperMapAlgoPlot.Point(p,c)}},SuperMapAlgoPlot.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 u=new SuperMapAlgoPlot.Point(0,0);return SuperMapAlgoPlot.PlottingUtil.equalFuzzy(l-1.7976931348623157e308,0)?(u.x=t.x,u.y=e.y):SuperMapAlgoPlot.PlottingUtil.equalFuzzy(l,0)?(u.x=e.x,u.y=t.y):(u.x=(l*(e.y-t.y)+l*l*t.x+e.x)/(l*l+1),u.y=t.y+l*(u.x-t.x)),{isOnline:1===r,projectPoint:u}},SuperMapAlgoPlot.PlottingUtil.coordinateTrans=function(t,e,o){var l=SuperMapAlgoPlot.PlottingUtil.distance(new SuperMapAlgoPlot.Point(0,0),e),i=SuperMapAlgoPlot.PlottingUtil.radian(new SuperMapAlgoPlot.Point(0,0),e)+o*Math.PI/180,n=l*Math.cos(i)+t.x,r=l*Math.sin(i)+t.y;return new SuperMapAlgoPlot.Point(n,r)},SuperMapAlgoPlot.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,u=0;s>=1?(s=1,u=0):u=Math.sqrt(1-s*s),l=a*s,i=a*u}return{dLen1:l,dLen2:i}},SuperMapAlgoPlot.PlottingUtil.paraLine=function(t,e,o){var l=[];if(2>t.length)return l;if(o){var i=t[1].clone();i=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[0],Math.PI/2,i),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],i,e));for(var n=1;n<t.length-1;n++)if(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[n].x,t[n+1].x)||!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[n].y,t[n+1].y)){for(var r=SuperMapAlgoPlot.PlottingUtil.radian(t[n],t[n+1]),a=SuperMapAlgoPlot.PlottingUtil.radian(t[n],t[n-1])-r;a<0;)a+=2*Math.PI;var s=a/2,u=void 0;u=s>Math.PI/2?s-Math.PI/2:Math.PI/2-s;var p=e/Math.cos(u);i=t[n+1].clone(),i=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[n],s,i),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(t[n],i,p))}i=t[t.length-2].clone(),i=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[t.length-1],-1*Math.PI/2,i),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(t[t.length-1],i,e))}else{var c=t[1].clone();c=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[0],-Math.PI/2,c),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],c,e));for(var P=1;P<t.length-1;P++)if(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[P].x,t[P+1].x)||!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t[P].y,t[P+1].y)){for(var h=SuperMapAlgoPlot.PlottingUtil.radian(t[P],t[P+1]),g=SuperMapAlgoPlot.PlottingUtil.radian(t[P],t[P-1])-h;g<0;)g+=2*Math.PI;var y=Math.PI-g/2,f=void 0;f=y>Math.PI/2?y-Math.PI/2:Math.PI/2-y;var S=e/Math.cos(f);c=t[P-1].clone(),c=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[P],y,c),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(t[P],c,S))}c=t[t.length-2].clone(),c=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[t.length-1],Math.PI/2,c),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(t[t.length-1],c,e))}return l},SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(i,n)},SuperMapAlgoPlot.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 SuperMapAlgoPlot.Point(e/t.length,o/t.length)},SuperMapAlgoPlot.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},SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(t,e[o],e[o+1]);if(l.isOnline)return{index:o,pt:l.projectPoint}}return{index:-1,pt:null}},SuperMapAlgoPlot.PlottingUtil.isPloyClockwise=function(t){var e=SuperMapAlgoPlot.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}},SuperMapAlgoPlot.PlottingUtil.isSamePt=function(t,e){return!(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.x,e.x)||!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.y,e.y))},SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance=function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,t);return{index:o.index,pts:o.pt,bfind:-1!==o.index}},SuperMapAlgoPlot.PlottingUtil.ptInBounds=function(t,e){return t.x>e.left&&t.x<e.right&&t.y<e.top&&t.y>e.bottom},SuperMapAlgoPlot.PlottingUtil.InnerAngle=function(t,e,o){if(t==e||t==o)return 0;var l=SuperMapAlgoPlot.PlottingUtil.distance(t,e),i=SuperMapAlgoPlot.PlottingUtil.distance(t,o),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o),r=(l*l+i*i-n*n)/(2*l*i);return r>1&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,1)?r=1:r<1&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,-1)&&(r=-1),Math.acos(r)},SuperMapAlgoPlot.PlottingUtil.plumbLineLen=function(t,e,o){return SuperMapAlgoPlot.PlottingUtil.distance(t,e)*Math.sin(SuperMapAlgoPlot.PlottingUtil.InnerAngle(e,t,o))},SuperMapAlgoPlot.PlottingUtil.paraPolygon=function(t,e,o){var l=[],i=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),n=i.length;if(n<2)return l;var r=new SuperMapAlgoPlot.Point(0,0);if(o){if(n<3)r=i[1].clone(),SuperMapAlgoPlot.PlottingUtil.rotateAngle(i[0],Math.PI,r),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(i[0],r,e));else{for(var a=SuperMapAlgoPlot.PlottingUtil.radian(i[0],i[1]),s=SuperMapAlgoPlot.PlottingUtil.radian(i[0],i[i.length-1])-a;s<0;)s+=2*Math.PI;var u=s/2,p=void 0;p=u>Math.PI/2?u-Math.PI/2:Math.PI/2-u;var c=e/Math.cos(p);r=i[1].clone(),r=SuperMapAlgoPlot.PlottingUtil.rotateAngle(i[0],u,r),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(i[0],r,c))}for(var P=1;P<n-1;P++){for(var h=SuperMapAlgoPlot.PlottingUtil.radian(i[P],i[P+1]),g=SuperMapAlgoPlot.PlottingUtil.radian(i[P],i[P-1])-h;g<0;)g+=2*Math.PI;var y=g/2,f=void 0;f=y>Math.PI/2?y-Math.PI/2:Math.PI/2-y;var S=e/Math.cos(f);r=i[P+1].clone(),r=SuperMapAlgoPlot.PlottingUtil.rotateAngle(i[P],y,r),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(i[P],r,S))}if(n<3)r=i[n-2].clone(),SuperMapAlgoPlot.PlottingUtil.rotateAngle(i[n-1],0,r),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(i[n-1],r,e));else{for(var A=SuperMapAlgoPlot.PlottingUtil.radian(i[n-1],i[0]),d=SuperMapAlgoPlot.PlottingUtil.radian(i[n-1],i[n-2])-A;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=SuperMapAlgoPlot.PlottingUtil.rotateAngle(i[n-1],M,r),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(i[n-1],r,b))}}else{if(n<3){var m=i[1].clone();SuperMapAlgoPlot.PlottingUtil.rotateAngle(i[0],0,m),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(i[0],m,e))}else{for(var T=SuperMapAlgoPlot.PlottingUtil.radian(i[0],i[1]),L=SuperMapAlgoPlot.PlottingUtil.radian(i[0],i[n-1])-T;L<0;)L+=2*Math.PI;var O=Math.PI-L/2,E=void 0;E=O>Math.PI/2?O-Math.PI/2:Math.PI/2-O;var w=e/Math.cos(E);r=i[n-1].clone(),r=SuperMapAlgoPlot.PlottingUtil.rotateAngle(i[0],O,r),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(i[0],r,w))}for(var x=1;x<n-1;x++){for(var C=SuperMapAlgoPlot.PlottingUtil.radian(i[x],i[x+1]),I=SuperMapAlgoPlot.PlottingUtil.radian(i[x],i[x-1])-C;I<0;)I+=2*Math.PI;var R=Math.PI-I/2,_=void 0;_=R>Math.PI/2?R-Math.PI/2:Math.PI/2-R;var U=e/Math.cos(_);r=i[x-1].clone(),r=SuperMapAlgoPlot.PlottingUtil.rotateAngle(i[x],R,r),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(i[x],r,U))}if(n<3)r=i[n-2].clone(),SuperMapAlgoPlot.PlottingUtil.rotateAngle(i[n-1],Math.PI,r),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(i[n-1],r,e));else{for(var N=SuperMapAlgoPlot.PlottingUtil.radian(i[n-1],i[0]),D=SuperMapAlgoPlot.PlottingUtil.radian(i[n-1],i[n-2])-N;D<0;)D+=2*Math.PI;var B=Math.PI-D/2,k=void 0;k=B>Math.PI/2?B-Math.PI/2:Math.PI/2-B;var V=e/Math.cos(k);r=i[n-2].clone(),r=SuperMapAlgoPlot.PlottingUtil.rotateAngle(i[n-1],B,r),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(i[n-1],r,V))}}return l},SuperMapAlgoPlot.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 SuperMapAlgoPlot.PlottingUtil.distance(new SuperMapAlgoPlot.Point(e,l),new SuperMapAlgoPlot.Point(o,i))},SuperMapAlgoPlot.PlottingUtil.clonePoints=function(t){var e=[];if(void 0===t||null===t)return e;if(SuperMapAlgoPlot.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},SuperMapAlgoPlot.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},SuperMapAlgoPlot.PlottingUtil.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},SuperMapAlgoPlot.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},SuperMapAlgoPlot.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},SuperMapAlgoPlot.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]=SuperMapAlgoPlot.PlottingUtil.cloneObject(t[i]));return o}throw new Error("Unable to copy obj! Its type isn't supported.")},SuperMapAlgoPlot.PlottingUtil.rad=function(t){return t*Math.PI/180},SuperMapAlgoPlot.PlottingUtil.deg=function(t){return 180*t/Math.PI},SuperMapAlgoPlot.PlottingUtil.VincentyConstants={a:6378137,b:6356752.3142,f:1/298.257223563},SuperMapAlgoPlot.PlottingUtil.distVincenty=function(t,e){var o,l,i,n=SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.rad(e.lng-t.lng),l=Math.atan((1-s)*Math.tan(SuperMapAlgoPlot.PlottingUtil.rad(t.lat))),i=Math.atan((1-s)*Math.tan(SuperMapAlgoPlot.PlottingUtil.rad(e.lat)))):(o=SuperMapAlgoPlot.PlottingUtil.rad(e.lon-t.lon),l=Math.atan((1-s)*Math.tan(SuperMapAlgoPlot.PlottingUtil.rad(t.lat))),i=Math.atan((1-s)*Math.tan(SuperMapAlgoPlot.PlottingUtil.rad(e.lat))));for(var u=Math.sin(l),p=Math.cos(l),c=Math.sin(i),P=Math.cos(i),h=o,g=2*Math.PI,y=20;Math.abs(h-g)>1e-12&&--y>0;){var f=Math.sin(h),S=Math.cos(h),A=Math.sqrt(P*f*(P*f)+(p*c-u*P*S)*(p*c-u*P*S));if(0==A)return 0;var d=u*c+p*P*S,M=Math.atan2(A,d),v=Math.asin(p*P*f/A),b=Math.cos(v)*Math.cos(v),m=d-2*u*c/b,T=s/16*b*(4+s*(4-3*b));g=h,h=o+(1-T)*s*Math.sin(v)*(M+T*A*(m+T*d*(2*m*m-1)))}if(0==y)return NaN;var O=b*(r*r-a*a)/(a*a),E=O/1024*(256+O*(O*(74-47*O)-128));return(a*(1+O/16384*(4096+O*(O*(320-175*O)-768)))*(M-E*A*(m+E/4*(d*(2*m*m-1)-E/6*m*(4*A*A-3)*(4*m*m-3))))).toFixed(3)/1e3},SuperMapAlgoPlot.PlottingUtil.destinationVincenty=function(t,e,o){var l,i,n=SuperMapAlgoPlot.PlottingUtil,r=n.VincentyConstants,a=r.a,s=r.b,u=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 p=o,c=n.rad(e),P=Math.sin(c),h=Math.cos(c),g=(1-u)*Math.tan(n.rad(i)),y=1/Math.sqrt(1+g*g),f=g*y,S=Math.atan2(g,h),A=y*P,d=1-A*A,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)),m=p/(s*v),T=2*Math.PI;Math.abs(m-T)>1e-12;){var O=Math.cos(2*S+m),E=Math.sin(m),w=Math.cos(m);T=m,m=p/(s*v)+b*E*(O+b/4*(w*(2*O*O-1)-b/6*O*(4*E*E-3)*(4*O*O-3)))}var x=f*E-y*w*h,C=Math.atan2(f*w+y*E*h,(1-u)*Math.sqrt(A*A+x*x)),I=u/16*d*(4+u*(4-3*d)),R=Math.atan2(E*P,y*w-f*E*h)-(1-I)*u*A*(m+I*E*(O+I*w*(2*O*O-1)));return"undefined"!=typeof L&&void 0!==L.LatLng&&t instanceof L.LatLng?L.latLng(n.deg(C),l+n.deg(R)):new SuperMap.LonLat(l+n.deg(R),n.deg(C))},SuperMapAlgoPlot.PlottingUtil.midPoint=function(t,e){var o=new SuperMapAlgoPlot.Point(0,0);return o.x=.5*(t.x+e.x),o.y=.5*(t.y+e.y),o},SuperMapAlgoPlot.PlottingUtil.makeDottedLine=function(t,e){for(var o,l,i=[],n=e,r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),a=e,s=t[0].clone(),u=1,p=0,c=!0,P=!0;p<r;){var h;(l=[]).push(s),p+=n;var g=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(p,t);if(h=g.index,o=g.pts,!(c=g.bfind))break;if(u<h)for(var y=u;y<h;y++)l.push(t[y]);l.push(o),i.push(l),p+=a;var f=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(p,t);if(h=f.index,s=f.pts,u=h+1,!(P=f.bfind))break}if(!c){(l=[]).push(s);for(var S=u;S<t.length;S++)l.push(t[S]);2===l.length&&0===SuperMapAlgoPlot.PlottingUtil.distance(l[0],l[1])||i.push(l)}if(!P){var A=t[t.length-1],d=SuperMapAlgoPlot.PlottingUtil.distance(o,A);if(d*=.01,!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(d,0)){var M=SuperMapAlgoPlot.PlottingUtil.linePnt(A,o,d);(l=[]).push(M),l.push(A),i.push(l)}}return i}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.AnalysisSymbol=SuperMapAlgoPlot.AnalysisSymbol=SuperMapAlgoPlot.AnalysisSymbol||{};SuperMapAlgoPlot.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},SuperMapAlgoPlot.AnalysisSymbol.analysisDotBasicInfo=function(t){var e=SuperMapAlgoPlot.PlottingUtil.DPI,o=new Object;o.anchorPoint=new SuperMapAlgoPlot.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},SuperMapAlgoPlot.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 SuperMapAlgoPlot.SubSymbol(t.libID,t.subSymbols[l]));if(t.scalePoints){o.scalePoints=[];for(var i=0;i<t.scalePoints.length;i++){var n=new SuperMapAlgoPlot.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},SuperMapAlgoPlot.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!==SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL){var n=new Object,r=SuperMapAlgoPlot.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 SuperMapAlgoPlot.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(SuperMapAlgoPlot.AnalysisSymbol.analysisInnerCell(l[i],e))}return o},SuperMapAlgoPlot.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=SuperMapAlgoPlot.AnalysisSymbol.getStyle(t,e),null!=t.positionPoints)for(var l=t.positionPoints,i=0;i<l.length;i++){var n=new SuperMapAlgoPlot.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===SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL){var r=o.positionPoints[0],a=o.positionPoints[1],s=r.clone(),u=new SuperMapAlgoPlot.Point(a.x,r.y),p=a.clone(),c=new SuperMapAlgoPlot.Point(r.x,a.y);o.positionPoints=[],o.positionPoints.push(s),o.positionPoints.push(u),o.positionPoints.push(p),o.positionPoints.push(c),o.type=SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL}o.type===SuperMapAlgoPlot.SymbolType.TEXTSYMBOL&&(o.style.fontSizeLimit=!0)}return o},SuperMapAlgoPlot.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":9===t?"lm":10===t?"cm":11===t?"rm":"lt"}var i=SuperMapAlgoPlot.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.fontSize=Math.ceil(t.textStyle2D.fontHeight*i/25.4)),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},SuperMapAlgoPlot.AnalysisSymbol.setStyle=function(t,e,o){var l=SuperMapAlgoPlot.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=SuperMapAlgoPlot.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=SuperMapAlgoPlot.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=SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.colorStringToRGB(t.color):t.strokeColor&&(e.style.lineColor=SuperMapAlgoPlot.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?e.textStyle2D.fontHeight=25.4*t.fontSize/l: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=SuperMapAlgoPlot.PlottingUtil.colorStringToRGB(t.fontColor):e.textStyle&&null!=e.textStyle&&(e.textStyle.foreColor=SuperMapAlgoPlot.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=SuperMapAlgoPlot.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=SuperMapAlgoPlot.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=9:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=9):"cm"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=10:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=10):"rm"===t.labelAlign&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=11:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=11))),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},SuperMapAlgoPlot.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)},SuperMapAlgoPlot.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))},SuperMapAlgoPlot.AnalysisSymbol.setSymbolData=function(t,e,o){null==e&&(e={}),e.hasOwnProperty("type")||(0!=t.libID||t.code!=SuperMap.Plot.SymbolType.GROUPOBJECT&&t.code!=SuperMap.Plot.SymbolType.FLAGGROUP?e.type="GRAPHICOBJECT":e.type="GraphicCollection"),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 u={};o?SuperMapAlgoPlot.AnalysisSymbol.setStyle(t.avoidRegions[s].style,u,o):SuperMapAlgoPlot.AnalysisSymbol.setStyle(t.avoidRegions[s].feature.style,u,o),e.avoidRegions.push([t.avoidRegions[s].getSymbolData(),u])}if(!0===o?SuperMapAlgoPlot.AnalysisSymbol.setStyle(t.style,e,o):null!=t.feature&&SuperMapAlgoPlot.AnalysisSymbol.setStyle(t.feature.style,e),t.symbolType===SuperMapAlgoPlot.SymbolType.AIRROUTE||t.symbolType===SuperMapAlgoPlot.SymbolType.NAVYROUTE||t.symbolType===SuperMapAlgoPlot.SymbolType.MISSILEROUTE){for(var p in e.routeNodes=[],t.routeNodes)e.routeNodes.push(t.routeNodes[p].setSymbolData());e.arrRoutePts=t.arrRoutePts,o||SuperMapAlgoPlot.AnalysisSymbol.setStyle(t.lineStyle,e)}else if(t.symbolType===SuperMapAlgoPlot.SymbolType.GROUPOBJECT||t.symbolType===SuperMapAlgoPlot.SymbolType.FLAGGROUP||t.symbolType===SuperMapAlgoPlot.SymbolType.NAVYDEPLOYMENT||t.symbolType===SuperMapAlgoPlot.SymbolType.AIRDEPLOYMENT){if(e.subAssociatedUuids=t.subAssociatedUuids,e.geometries=[],o)for(var c=0;c<t.subObjects.length;c++)e.geometries.push(t.subObjects[c].getSymbolData());else for(var P=0;P<t.components.length;P++)e.geometries.push(t.components[P].geometry.getSymbolData());0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.FLAGGROUP?e.ratios=t.ratio:0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.AIRDEPLOYMENT?(e.colNum=t.colNum,e.speceDis=t.speceDis,e.isShowTooltip=t.isShowTooltip):0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.NAVYDEPLOYMENT&&(e.colNum=t.colNum,e.speceDis=t.speceDis)}else if(0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.SYMBOLTEXT){var h=[];for(var g in t.symbolTexts)h.push(t.symbolTexts[g].setSymbolData());e.symbolTexts=h,e.addFrame=t.addFrame}else if(0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.SYMBOLTEXT1)e.space=t.space,e.offsetX=t.offsetX,e.offsetY=t.offsetY;else if(0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.TRAJECTORY)e.trajectoryType=t.trajectoryType,e.trajectoryLength=t.trajectoryLength,e.showTrackingLine=t.showTrackingLine,e.showTrackingPoint=t.showTrackingPoint,e.trackingPointRadius=t.trackingPointRadius,e.saveTrackingPoint=t.saveTrackingPoint;else if(0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.SATELLITE){if(e.hasOwnProperty("scaleValues"))for(var y=0;y<t.scaleValues.length;y++)e.scaleValues.length>y?e.scaleValues[y]=t.scaleValues[y]:e.scaleValues.push(t.scaleValues[y]);else e.scaleValues=[],e.scaleValues=t.scaleValues;e.visible=t.visible,e.orbitPoints=t.orbitPoints}else if(0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.SATELLITETIMEWINDOWS)e.timeWindows=t.timeWindows;else{var f=void 0;f=!0===o?L.Util.latLngsToSuperMapPoints(t.getLatLngs()):t.controlPoints,e.localePoints=[];var S=f.length;t.symbolType===SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL&&(S=3);for(var A=0;A<S;A++)e.localePoints.push({x:f[A].x,y:f[A].y,z:0});if(0===t.libID&&t.symbolType===SuperMapAlgoPlot.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===SuperMapAlgoPlot.SymbolType.PICTURE){if(e.path=t.path,e.symbolTexts=[],null!=t.symbolTexts&&0!=t.symbolTexts.length)for(var d=0;d<t.symbolTexts.length;d++)e.symbolTexts.push(t.symbolTexts[d].setSymbolData());if(e.bloodVolumes=[],null!=t.bloodVolumes&&0!=t.bloodVolumes.length)for(var M=0;M<t.bloodVolumes.length;M++)e.bloodVolumes.push(t.bloodVolumes[M].setSymbolData());null!=t.trajectory&&(e.trajectory=t.trajectory.setSymbolData()),null!=e.antoRotation&&(t.antoRotation=e.antoRotation)}else if(t.symbolType===SuperMapAlgoPlot.SymbolType.DOTSYMBOL){e.surroundLineType=t.surroundLineType,e.symbolRank=t.symbolRank,e.negativeImage=t.negativeImage,e.space=25.4*t.space*10/SuperMapAlgoPlot.PlottingUtil.DPI,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 v=25.4*t.symbolSize.w*10/SuperMapAlgoPlot.PlottingUtil.DPI,b=25.4*t.symbolSize.h*10/SuperMapAlgoPlot.PlottingUtil.DPI;e.symbolSize={x:v,y:b};var m=25.4*t.symbolSizeInLib.w*10/SuperMapAlgoPlot.PlottingUtil.DPI,T=25.4*t.symbolSizeInLib.h*10/SuperMapAlgoPlot.PlottingUtil.DPI;if(e.symbolSizeInLib={x:m,y:T},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,e.symbolTexts=[],null!=t.symbolTexts&&0!=t.symbolTexts.length)for(var O=0;O<t.symbolTexts.length;O++)e.symbolTexts.push(t.symbolTexts[O].setSymbolData());if(e.bloodVolumes=[],null!=t.bloodVolumes&&0!=t.bloodVolumes.length)for(var E=0;E<t.bloodVolumes.length;E++)e.bloodVolumes.push(t.bloodVolumes[E].setSymbolData());if(e.pictureFrames=[],null!=t.pictureFrames&&0!=t.pictureFrames.length)for(var w=0;w<t.pictureFrames.length;w++)e.pictureFrames.push(t.pictureFrames[w].setSymbolData());null!=t.trajectory&&(e.trajectory=t.trajectory.setSymbolData()),null!=e.antoRotation&&(t.antoRotation=e.antoRotation)}else{if(e.surroundLineType=t.surroundLineType,e.hasOwnProperty("scaleValues"))for(var x=0;x<t.scaleValues.length;x++)e.scaleValues.length>x?e.scaleValues[x]=t.scaleValues[x]:e.scaleValues.push(t.scaleValues[x]);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===SuperMapAlgoPlot.SymbolType.ALGOSYMBOL?(e.arrowHeadType=t.arrowHeadType,e.arrowBodyType=t.arrowBodyType,e.arrowTailType=t.arrowTailType):0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.ARROWLINE?e.arrowAngle=t.arrowAngle:0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.COMBINATIONALCIRCLE?e.defaultRadius=t.defaultRadius:0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.CONCENTRICCIRCLE||(0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.LINEMARKING?(e.islocationCircle=t.islocationCircle,e.textBoxType=t.textBoxType):0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.SYMBOLTEXTBOX?(e.roundBox=t.roundBox,e.textBoxType=t.textBoxType):0===t.libID&&t.symbolType===SuperMapAlgoPlot.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===SuperMapAlgoPlot.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},SuperMapAlgoPlot.AnalysisSymbol.parseSymbolData=function(t,e,o){if(null!=e){if(null!=e.isEdit&&(t.isEdit=e.isEdit),e.hasOwnProperty("version")&&(t.version=e.version),e.hasOwnProperty("libID")&&(t.libID=parseInt(e.libID)),e.hasOwnProperty("code")&&(t.code=parseInt(e.code)),e.hasOwnProperty("algoMaxEditPts")&&(t.maxEditPts=parseInt(e.algoMaxEditPts)),e.hasOwnProperty("algoMinEditPts")&&(t.minEditPts=parseInt(e.algoMinEditPts)),e.hasOwnProperty("symbolType")&&(t.symbolType=parseInt(e.symbolType)),e.hasOwnProperty("symbolName")&&(t.symbolName=e.symbolName),e.hasOwnProperty("textContent")&&(t.textContent=e.textContent),null!=e.dScale?t.dScale=e.dScale:void 0!==e.scale2D&&(t.dScale=e.scale2D.x),null!=e.dRotate?t.dRotate=e.dRotate:void 0!==e.rotate2D&&(t.dRotate=e.rotate2D.x),null!=e.resolution&&(t.resolution=e.resolution),null!=e.uuid&&(t.uuid=e.uuid),null!=e.associatedUuid&&(t.associatedUuid=e.associatedUuid),null!=e.textDisplay&&(t.textDisplay=e.textDisplay),null!=e.annotationPosition&&(o?t.annotationPosition=e.annotationPosition:t.textPosition=e.annotationPosition),null!=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 SuperMapAlgoPlot.SubSymbol(r,a,s))}}}if(e.avoidRegions&&0!==e.avoidRegions.length)for(var u=0;u<e.avoidRegions.length;u++){var p={libID:0,code:SuperMapAlgoPlot.SymbolType.AVOIDREGION,map:t.map,symbolData:e.avoidRegions[u][0]},c=null;if(o)(c=L.supermap.plotting.avoidRegion(0,SuperMapAlgoPlot.SymbolType.AVOIDREGION,[],p)).style=SuperMapAlgoPlot.AnalysisSymbol.getStyle(t.symbolData.avoidRegions[u][1],!0);else{c=new SuperMap.Geometry.AvoidRegion(p);var P=new SuperMap.Feature.Vector(c);P.style=SuperMapAlgoPlot.AnalysisSymbol.getStyle(e.avoidRegions[u][1],o),c.feature=P,c.calculateParts()}t.avoidRegions.push(c)}if(!0===o&&(t.style=SuperMapAlgoPlot.AnalysisSymbol.getStyle(e,!0)),t.symbolType===SuperMapAlgoPlot.SymbolType.AIRROUTE||t.symbolType===SuperMapAlgoPlot.SymbolType.NAVYROUTE||t.symbolType===SuperMapAlgoPlot.SymbolType.MISSILEROUTE){for(var h in t.routeNodes=[],e.routeNodes){var g=new SuperMapAlgoPlot.RouteNode;t.routeNodes.push(g.parseSymbolData(e.routeNodes[h]))}t.arrRoutePts=[];for(var y=0;y<e.arrRoutePts.length;y++){for(var f=[],S=0;S<e.arrRoutePts[y].length;S++)e.arrRoutePts[y][S].hasOwnProperty("lat")&&e.arrRoutePts[y][S].hasOwnProperty("lng")?f.push(new SuperMapAlgoPlot.Point(e.arrRoutePts[y][S].lng,e.arrRoutePts[y][S].lat)):void 0===e.arrRoutePts[y][S].x&&void 0===e.arrRoutePts[y][S].y||f.push(new SuperMapAlgoPlot.Point(e.arrRoutePts[y][S].x,e.arrRoutePts[y][S].y));o&&(f=L.Util.superMapPointsToLatLngs(f)),t.arrRoutePts.push(f)}o||(t.lineStyle=SuperMapAlgoPlot.AnalysisSymbol.getStyle(e,!1))}else if(t.symbolType===SuperMapAlgoPlot.SymbolType.GROUPOBJECT||t.symbolType===SuperMapAlgoPlot.SymbolType.FLAGGROUP||t.symbolType===SuperMapAlgoPlot.SymbolType.NAVYDEPLOYMENT||t.symbolType===SuperMapAlgoPlot.SymbolType.AIRDEPLOYMENT){if(null!=e.subAssociatedUuids&&(t.subAssociatedUuids=e.subAssociatedUuids),null!=e.geometries)if(o){for(var A=[],d=0;d<e.geometries.length;d++){var M=e.geometries[d];M.uuid=SuperMapAlgoPlot.PlottingUtil.generateUuid();var v=L.supermap.plotting.PlottingObject.createSymbol(M.libID,M.code,null,{symbolData:M});A.push(v)}t.subObjects=A}else for(var b=0;b<e.geometries.length;b++){var m=e.geometries[b],T=SuperMap.Geometry.PlottingGeometry.createFeature(m.libID,m.code,null,{symbolData:m,map:t.map});T.geometry.ownGroupObj=t,t.components.push(T)}else if(o){A=[];for(var O=0;O<e.subFeatures.length;O++){var E=e.subFeatures[O];E.uuid=SuperMapAlgoPlot.PlottingUtil.generateUuid();var w=L.supermap.plotting.PlottingObject.createSymbol(E.libID,E.code,null,{symbolData:E});A.push(w)}t.subObjects=A}else for(var x=0;x<e.subFeatures.length;x++){var C=e.subFeatures[x],I=SuperMap.Geometry.PlottingGeometry.createFeature(C.libID,C.code,null,{symbolData:C,map:t.map});I.geometry.ownGroupObj=t,t.components.push(I)}0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.FLAGGROUP&&(null!=e.ratios?t.ratios=e.ratios:null!=e.ratio&&(t.ratios=e.ratio)),0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.AIRDEPLOYMENT&&(t.colNum=e.colNum,t.speceDis=e.speceDis,t.isShowTooltip=e.isShowTooltip),0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.NAVYDEPLOYMENT&&(t.colNum=e.colNum,t.speceDis=e.speceDis)}else if(0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.SYMBOLTEXT){t.addFrame=e.addFrame,t.symbolTexts=[];for(var R=0,_=e.symbolTexts.length;R<_;R++){var U=new SuperMapAlgoPlot.SymbolText;U.parseSymbolData(e.symbolTexts[R]),t.symbolTexts.push(U)}}else if(0===t.libID&&t.symbolType===SuperMapAlgoPlot.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===SuperMapAlgoPlot.SymbolType.TRAJECTORY)void 0!==e.trajectoryType&&(t.trajectoryType=e.trajectoryType),void 0!==e.trajectoryLength&&(t.trajectoryLength=e.trajectoryLength),void 0!==e.showTrackingLine&&(t.showTrackingLine=e.showTrackingLine),void 0!==e.showTrackingPoint&&(t.showTrackingPoint=e.showTrackingPoint),void 0!==e.trackingPointRadius&&(t.trackingPointRadius=e.trackingPointRadius),void 0!==e.saveTrackingPoint&&(t.saveTrackingPoint=e.saveTrackingPoint);else if(0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.SATELLITE){if(e.scaleValues&&0!==e.scaleValues.length){t.scaleValues=[];for(var N=0;N<e.scaleValues.length;N++)t.scaleValues.push(e.scaleValues[N])}if(e.subSymbol&&(t.subSymbols=[e.subSymbol]),t.visible=e.visible,e.orbitPoints){t.orbitPoints=[];for(var D=0;D<e.orbitPoints.length;D++)t.orbitPoints.push(new SuperMapAlgoPlot.OrbitPoint(e.orbitPoints[D].x,e.orbitPoints[D].y,e.orbitPoints[D].z,e.orbitPoints[D].number,e.orbitPoints[D].time))}}else if(0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.SATELLITETIMEWINDOWS){t.timeWindows=e.timeWindows;for(var B=0;B<t.timeWindows.length;B++)"Time"!==e.type&&"Number"!==e.type||(t.timeWindows[B].type=e.type)}else{if(e.localePoints){t.controlPoints=[];for(var k=0;k<e.localePoints.length;k++)t.controlPoints.push(new SuperMapAlgoPlot.Point(e.localePoints[k].x,e.localePoints[k].y));!0===o&&(t.latLngs=L.Util.superMapPointsToLatLngs(t.controlPoints),delete t.controlPoints)}if(0===t.libID&&t.symbolType===SuperMapAlgoPlot.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===SuperMapAlgoPlot.SymbolType.PICTURE){if(t.path=e.path,null!=e.symbolTexts&&0!==e.symbolTexts.length){t.symbolTexts=[];for(var V=0;V<e.symbolTexts.length;V++){var Y=new SuperMapAlgoPlot.SymbolText;Y.parseSymbolData(e.symbolTexts[V]),t.symbolTexts.push(Y)}}if(null!=e.bloodVolumes&&0!==e.bloodVolumes.length){t.bloodVolumes=[];for(var j=0;j<e.bloodVolumes.length;j++){var F=new SuperMapAlgoPlot.BloodVolume;F.parseSymbolData(e.bloodVolumes[j]),t.bloodVolumes.push(F)}}if(null!=e.trajectory){var G=new SuperMapAlgoPlot.Trajectory;G.parseSymbolData(e.trajectory),t.trajectory=G}null!=e.antoRotation&&(t.antoRotation=e.antoRotation)}else if(t.symbolType===SuperMapAlgoPlot.SymbolType.DOTSYMBOL){t.surroundLineType=e.surroundLineType,t.symbolRank=e.symbolRank,t.negativeImage=e.negativeImage;var z=SuperMapAlgoPlot.AnalysisSymbol.analysisDotBasicInfo(e);if(t.anchorPoint=z.anchorPoint,t.symbolSizeInLib=z.symbolSizeInLib,t.middleMarkBounds=z.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*SuperMapAlgoPlot.PlottingUtil.DPI/25.4/10),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 W={x:0,y:0};-1===e.symbolSize.x&&-1===e.symbolSize.x?(W.x=e.symbolSizeInLib.x*SuperMapAlgoPlot.PlottingUtil.DPI/25.4/10,W.y=e.symbolSizeInLib.y*SuperMapAlgoPlot.PlottingUtil.DPI/25.4/10):(W.x=e.symbolSize.x*SuperMapAlgoPlot.PlottingUtil.DPI/25.4/10,W.y=e.symbolSize.y*SuperMapAlgoPlot.PlottingUtil.DPI/25.4/10),t.setSymbolSize(W.x,W.y)}if(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),null!=e.symbolTexts&&0!==e.symbolTexts.length){t.symbolTexts=[];for(var H=0;H<e.symbolTexts.length;H++){var q=new SuperMapAlgoPlot.SymbolText;q.parseSymbolData(e.symbolTexts[H]),t.symbolTexts.push(q)}}if(null!=e.bloodVolumes&&0!==e.bloodVolumes.length){t.bloodVolumes=[];for(var X=0;X<e.bloodVolumes.length;X++){var J=new SuperMapAlgoPlot.BloodVolume;J.parseSymbolData(e.bloodVolumes[X]),t.bloodVolumes.push(J)}}if(null!=e.pictureFrames&&0!==e.pictureFrames.length){t.pictureFrames=[];for(var K=0;K<e.pictureFrames.length;K++){var Q=new SuperMapAlgoPlot.PictureFrame;Q.parseSymbolData(e.pictureFrames[K]),t.pictureFrames.push(Q)}}if(null!=e.trajectory){var Z=new SuperMapAlgoPlot.Trajectory;Z.parseSymbolData(e.trajectory),t.trajectory=Z}null!=e.antoRotation&&(t.antoRotation=e.antoRotation)}else{if(t.surroundLineType=e.surroundLineType,e.scaleValues&&0!==e.scaleValues.length){t.scaleValues=[];for(var $=0;$<e.scaleValues.length;$++)t.scaleValues.push(e.scaleValues[$])}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===SuperMapAlgoPlot.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===SuperMapAlgoPlot.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===SuperMapAlgoPlot.SymbolType.COMBINATIONALCIRCLE){if(e.radius&&0!==e.radius.length&&0===t.scaleValues.length)for(var tt=0;tt<e.radius.length;tt++)t.scaleValues.push(e.radius[tt])}else if(0===t.libID&&t.symbolType===SuperMapAlgoPlot.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===SuperMapAlgoPlot.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===SuperMapAlgoPlot.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===SuperMapAlgoPlot.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===SuperMapAlgoPlot.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===SuperMapAlgoPlot.SymbolType.ARCREGION){if(o){if(t.centerPoint=L.latLng(e.centerPoint.y,e.centerPoint.x),t.symbolData.circlePts){for(var et=[],ot=0;ot<e.circlePts.length;ot++)et.push(new SuperMapAlgoPlot.Point(e.circlePts[ot].x,e.circlePts[ot].y));0!==et.length&&(t.circlePts=et)}t.spatialAnalystUrl=e.spatialAnalystUrl}else t.centerPoint=new SuperMapAlgoPlot.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===SuperMapAlgoPlot.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});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}}();
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
 * This program are made available under the terms of the Apache License, Version 2.0
 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
var i=e.Point=function(){function t(e,o,l,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x=parseFloat(e),this.y=parseFloat(o),this.tag=i||0==i?parseFloat(i):null,this.type=l||"Point",this.CLASS_NAME="SuperMapAlgoPlot"}return l(t,[{key:"clone",value:function(e){return null==e&&(e=new t(this.x,this.y)),SuperMap.Util.applyDefaults(e,this),e}},{key:"calculateBounds",value:function(){this.bounds=new Bounds(this.x,this.y,this.x,this.y)}},{key:"equals",value:function(t){var e=!1;return null!=t&&(e=this.x===t.x&&this.y===t.y||isNaN(this.x)&&isNaN(this.y)&&isNaN(t.x)&&isNaN(t.y)),e}},{key:"move",value:function(t,e){this.x=this.x+t,this.y=this.y+e,this.clearBounds()}},{key:"toShortString",value:function(){return this.x+", "+this.y}},{key:"destroy",value:function(){this.x=null,this.y=null,this.tag=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}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getVertices",value:function(t){return[this]}}]),t}();SuperMapAlgoPlot.Point=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AddPoint_WayType=e.RouteNodePrimitives=e.Primitives=e.PlottingUtil=e.AnalysisSymbol=e.Point=void 0;var l=o(78),i=o(77),n=o(76),r=o(75),a=o(74),s=o(73);e.Point=l.Point,e.AnalysisSymbol=i.AnalysisSymbol,e.PlottingUtil=n.PlottingUtil,e.Primitives=r.Primitives,e.RouteNodePrimitives=a.RouteNodePrimitives,e.AddPoint_WayType=s.AddPoint_WayType},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.CalculateSVGGradient=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.feature=e}return l(t,[{key:"destroy",value:function(){this.feature=null}},{key:"createGradient",value:function(){var t=!1;this.feature.layer._renderer._container.defs||(this.feature.layer._renderer._container.defs=L.SVG.create("defs"),t=!0);var e=null;"LINEAR"===this.feature.style.fillGradientMode&&(e=document.getElementById("linearGradient_"+this.feature.uuid)),"RADIAL"===this.feature.style.fillGradientMode&&(e=document.getElementById("radialGradient_"+this.feature.uuid));var o=this.createGradientDirection();for("LINEAR"===this.feature.style.fillGradientMode?((e=null===e?L.SVG.create("linearGradient"):e).setAttributeNS(null,"x1",o.x1),e.setAttributeNS(null,"y1",o.y1),e.setAttributeNS(null,"x2",o.x2),e.setAttributeNS(null,"y2",o.y2)):"RADIAL"===this.feature.style.fillGradientMode&&((e=null===e?L.SVG.create("radialGradient"):e).setAttributeNS(null,"cx",o.cx),e.setAttributeNS(null,"cy",o.cy),e.setAttributeNS(null,"fx",o.fx),e.setAttributeNS(null,"fy",o.fy),e.setAttributeNS(null,"r",o.r));e.hasChildNodes();)e.removeChild(e.firstChild);for(var l=0,i=o.colors.length;l<i;l++){var n=L.SVG.create("stop");n.setAttributeNS(null,"offset",o.colors[l].offset),n.setAttributeNS(null,"style","stop-color:"+SuperMap.Plot.PlottingUtil.colorRGBA(o.colors[l].color,o.colors[l].opacity)),e.appendChild(n)}return 0===e.id.length&&e.setAttributeNS(null,"id",e.tagName+"_"+this.feature.uuid),this.feature.layer._renderer._container.defs.appendChild(e),t&&this.feature.layer._renderer._container.appendChild(this.feature.layer._renderer._container.defs),e.id}},{key:"createTextureFill",value:function(t){var e=!1;this.feature.layer._renderer._container.defs||(this.feature.layer._renderer._container.defs=L.SVG.create("defs"),e=!0);var o=document.getElementById("patternFill_"+this.feature.uuid);function l(t){var e="";return 2===t.fillID?e="rotate(-45)":3===t.fillID||6===t.fillID?e="rotate(0)":4===t.fillID||5===t.fillID?e="rotate(45)":7===t.fillID&&(e="rotate(90)"),e}function i(t,e,o){var l=L.SVG.create("path");l.setAttributeNS(null,"d",t),l.setAttributeNS(null,"stroke",o.color),l.setAttributeNS(null,"stroke-width","2"),l.setAttributeNS(null,"stroke-linecap","square"),l.setAttributeNS(null,"stroke-opacity",o.opacity),e.appendChild(l)}function n(t,e,o){var l=L.SVG.create("polygon");l.setAttributeNS(null,"points",t),l.setAttributeNS(null,"fill",o.color),l.setAttributeNS(null,"fill-opacity",o.opacity),e.appendChild(l)}return o?(o.setAttributeNS(null,"patternTransform",l(t[0]).toString()),3===t[0].fillID||6===t[0].fillID||7===t[0].fillID?(o.setAttributeNS(null,"width",7.3),o.setAttributeNS(null,"height",7.3),o.childNodes[0].setAttributeNS(null,"points","0 0 0 7.3 7.3 7.3 7.3 0"),o.childNodes[1].setAttributeNS(null,"d","M 7.3 0 L 0 0")):(o.setAttributeNS(null,"width",5.4),o.setAttributeNS(null,"height",5.4),o.childNodes[0].setAttributeNS(null,"points","0 0 0 5.4 5.4 5.4 5.4 0"),o.childNodes[1].setAttributeNS(null,"d","M 5.4 0 L 0 0")),o.childNodes[0].setAttributeNS(null,"fill",t[1].color),o.childNodes[0].setAttributeNS(null,"fill-opacity",t[1].opacity),o.childNodes[1].setAttributeNS(null,"stroke",t[0].color),o.childNodes[1].setAttributeNS(null,"stroke-opacity",t[0].opacity),3===t[0].fillID||4===t[0].fillID?(o.childNodes[2]&&(o.childNodes[2].setAttributeNS(null,"stroke",t[0].color),o.childNodes[2].setAttributeNS(null,"stroke-opacity",t[0].opacity)),3===t[0].fillID?null===o&&i("M 0 7.3 L 0 0",o,t[0]):4===t[0].fillID&&null===o&&i("M 0 5.4 L 0 0",o,t[0])):o.childNodes[2]&&o.removeChild(o.childNodes[2]),0===o.id.length&&o.setAttributeNS(null,"id","patternFill_"+this.feature.uuid),o.id):((o=null===o?L.SVG.create("pattern"):o).setAttributeNS(null,"x",0),o.setAttributeNS(null,"y",0),3===t[0].fillID||6===t[0].fillID||7===t[0].fillID?(o.setAttributeNS(null,"width",7.3),o.setAttributeNS(null,"height",7.3)):(o.setAttributeNS(null,"width",5.4),o.setAttributeNS(null,"height",5.4)),o.setAttributeNS(null,"patternUnits","userSpaceOnUse"),o.setAttributeNS(null,"patternTransform",l(t[0]).toString()),3===t[0].fillID||6===t[0].fillID||7===t[0].fillID?(n("0 0 0 7.3 7.3 7.3 7.3 0",o,t[1]),i("M 7.3 0 L 0 0",o,t[0])):(n("0 0 0 5.4 5.4 5.4 5.4 0",o,t[1]),i("M 5.4 0 L 0 0",o,t[0])),4===t[0].fillID?i("M 0 5.4 L 0 0",o,t[0]):3===t[0].fillID&&i("M 0 7.3 L 0 0",o,t[0]),this.feature.layer._renderer._container.defs.appendChild(o),e&&this.feature.layer._renderer._container.appendChild(this.feature.layer._renderer._container.defs),0===o.id.length&&o.setAttributeNS(null,"id","patternFill_"+this.feature.uuid),o.id)}},{key:"createFillMode",value:function(t){if(void 0!==this.feature.style.fillSymbolID)if(t.fill=this.feature.style.fill,t.fillSymbolID=this.feature.style.fillSymbolID,0===this.feature.style.fillSymbolID||1===this.feature.style.fillSymbolID||!0===this.feature.style.fill||!1===this.feature.style.fill)0===this.feature.style.fillSymbolID?t.fill=!0:1===this.feature.style.fillSymbolID&&(t.fill=!1),t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity;else if(this.feature.style.fillColor!==this.feature.style.fillBackColor||this.feature.style.fillBackOpacity>0&&this.feature.style.fillBackOpacity<1){var e=[];e.push({fillID:this.feature.style.fillSymbolID,color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity},{fillID:this.feature.style.fillSymbolID,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillBackOpacity}),this.feature._map.getRenderer(this.feature.layer)instanceof L.SVG?(t.fillOpacity=1,t.fillColor="url(#"+this.createTextureFill(e)+")",t.fill=t.fillColor):new SuperMap.Plot.CalculateCanvasGradient(this.feature,this.feature.getBounds()).createTextureFill(e)}else t.fill=!0,t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity;else t.fill=this.feature.style.fill,t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity}},{key:"createGradientDirection",value:function(){var t=[];if("LINEAR"===this.feature.style.fillGradientMode){if(null!==this.feature.style.fillCenterOffsetX&&void 0!==this.feature.style.fillCenterOffsetX&&(0===this.feature.style.fillAngle||180===this.feature.style.fillAngle?(t.push({offset:0,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity}),t.push({offset:this.feature.style.fillCenterOffsetX,color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity}),t.push({offset:1,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity})):90===this.feature.style.fillAngle||270===this.feature.style.fillAngle?(t.push({offset:0,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity}),t.push({offset:this.feature.style.fillCenterOffsetY,color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity}),t.push({offset:1,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity})):(t.push({offset:0,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity}),t.push({offset:this.feature.style.fillCenterOffsetX/2*(Math.sqrt(2)/2)*Math.abs(Math.sin(this.feature.style.fillAngle*Math.PI/180)),color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity}),t.push({offset:1,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity}))),this.feature.style.fillAngle>=360&&(this.feature.style.fillAngle=0),0===this.feature.style.fillAngle)return{x1:0,y1:0,x2:1,y2:0,colors:t};if(90===this.feature.style.fillAngle)return{x1:0,y1:1,x2:0,y2:0,colors:t};if(180===this.feature.style.fillAngle)return{x1:1,y1:0,x2:0,y2:0,colors:t};if(270===this.feature.style.fillAngle)return{x1:0,y1:0,x2:0,y2:1,colors:t};if(0<this.feature.style.fillAngle&&this.feature.style.fillAngle<=45)return{x1:0,y1:1,x2:1,y2:(1-Math.tan(this.feature.style.fillAngle*Math.PI/180))/2,colors:t};if(45<this.feature.style.fillAngle&&this.feature.style.fillAngle<90)return{x1:0,y1:1,x2:(1-Math.tan((this.feature.style.fillAngle-45)*Math.PI/180))/2,y2:0,colors:t};if(90<this.feature.style.fillAngle&&this.feature.style.fillAngle<=135)return{x1:1,y1:1,x2:Math.tan((this.feature.style.fillAngle-90)*Math.PI/180)/2,y2:0,colors:t};if(135<this.feature.style.fillAngle&&this.feature.style.fillAngle<180)return{x1:1,y1:1,x2:0,y2:Math.tan((this.feature.style.fillAngle-135)*Math.PI/180)/2,colors:t};if(180<this.feature.style.fillAngle&&this.feature.style.fillAngle<=225)return{x1:1,y1:0,x2:0,y2:Math.tan((this.feature.style.fillAngle-180)*Math.PI/180)/2,colors:t};if(225<this.feature.style.fillAngle&&this.feature.style.fillAngle<270)return{x1:1,y1:0,x2:Math.tan((this.feature.style.fillAngle-225)*Math.PI/180)/2,y2:0,colors:t};if(270<this.feature.style.fillAngle&&this.feature.style.fillAngle<=315)return{x1:0,y1:0,x2:1-Math.tan((this.feature.style.fillAngle-270)*Math.PI/180)/2,y2:1,colors:t};if(315<this.feature.style.fillAngle&&this.feature.style.fillAngle<360)return{x1:0,y1:0,x2:1,y2:Math.tan((this.feature.style.fillAngle-315)*Math.PI/180)/2,colors:t}}else if("RADIAL"===this.feature.style.fillGradientMode)if(null!==this.feature.style.fillCenterOffsetX&&void 0!==this.feature.style.fillCenterOffsetX&&null!==this.feature.style.fillCenterOffsetY&&void 0!==this.feature.style.fillCenterOffsetY&&(t.push({offset:0,color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity}),this.feature.style.fillColor,this.feature.style.fillBackColor,t.push({offset:1,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity})),this.feature.style.fillCenterOffsetX<=.5&&this.feature.style.fillCenterOffsetX>=0||this.feature.style.fillCenterOffsetX<=0&&this.feature.style.fillCenterOffsetX>=-1){if(this.feature.style.fillCenterOffsetY>=0&&this.feature.style.fillCenterOffsetY<=.5||this.feature.style.fillCenterOffsetY>=-.5&&this.feature.style.fillCenterOffsetY<=0)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:.5*Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.5&&this.feature.style.fillCenterOffsetY<=.8||this.feature.style.fillCenterOffsetY>=-.8&&this.feature.style.fillCenterOffsetY<=-.5)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:.8*Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.8&&this.feature.style.fillCenterOffsetY<=1||this.feature.style.fillCenterOffsetY>=-1&&this.feature.style.fillCenterOffsetY<=-.8)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:Math.sqrt(2),colors:t}}else if(this.feature.style.fillCenterOffsetX<=.8&&this.feature.style.fillCenterOffsetX>.5||this.feature.style.fillCenterOffsetX<=-.5&&this.feature.style.fillCenterOffsetX>=-.8){if(this.feature.style.fillCenterOffsetY>=0&&this.feature.style.fillCenterOffsetY<=.5||this.feature.style.fillCenterOffsetY>=-.5&&this.feature.style.fillCenterOffsetY<=0)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:.8*Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.5&&this.feature.style.fillCenterOffsetY<=.8||this.feature.style.fillCenterOffsetY>=-.8&&this.feature.style.fillCenterOffsetY<=-.5)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:.8*Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.8&&this.feature.style.fillCenterOffsetY<=1||this.feature.style.fillCenterOffsetY>=-1&&this.feature.style.fillCenterOffsetY<=-.8)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:Math.sqrt(2),colors:t}}else if(this.feature.style.fillCenterOffsetX<=1&&this.feature.style.fillCenterOffsetX>.8||this.feature.style.fillCenterOffsetX<=-.8&&this.feature.style.fillCenterOffsetX>=-1){if(this.feature.style.fillCenterOffsetY>=0&&this.feature.style.fillCenterOffsetY<=.5||this.feature.style.fillCenterOffsetY>=-.5&&this.feature.style.fillCenterOffsetY<=0)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.5&&this.feature.style.fillCenterOffsetY<=.8||this.feature.style.fillCenterOffsetY>=-.8&&this.feature.style.fillCenterOffsetY<=-.5)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.8&&this.feature.style.fillCenterOffsetY<=1||this.feature.style.fillCenterOffsetY>=-1&&this.feature.style.fillCenterOffsetY<=-.8)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:Math.sqrt(2),colors:t}}}}]),t}();SuperMap.Plot.CalculateSVGGradient=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.CalculateCanvasGradient=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.feature=e,this._bounds=o}return l(t,[{key:"destroy",value:function(){this.feature=null}},{key:"getContext",value:function(){return this.feature._map.getRenderer(this.feature.layer)._ctx}},{key:"calculateObjectByBounds",value:function(){var t=this.feature._map.latLngToLayerPoint(L.latLng(this._bounds.getNorth(),this._bounds.getWest())),e=this.feature._map.latLngToLayerPoint(L.latLng(this._bounds.getSouth(),this._bounds.getEast())),o=this.feature._map.latLngToLayerPoint(L.latLng(this._bounds.getCenter()));if(t.x!==e.x||t.y!==e.y){var l=Math.max(t.x,e.x),i=Math.max(t.y,e.y),n=Math.min(t.x,e.x),r=Math.min(t.y,e.y);return{ptMinX:n,ptMinY:r,width:Math.abs(l-n),height:Math.abs(i-r),center:o,r:Math.abs(t.x-e.x)>Math.abs(e.y-e.y)?Math.abs(t.x-e.x):Math.abs(t.y-e.y)}}}},{key:"createGradient",value:function(){var t=null;if(this.getContext()instanceof CanvasRenderingContext2D){var e=this.calculateObjectByBounds();if("LINEAR"===this.feature.style.fillGradientMode){var o=this.getGradientDirection(this.feature.style.fillAngle);if(t=this.getContext().createLinearGradient(e.ptMinX+e.width*o.x1,e.ptMinY+e.height*o.y1,e.ptMinX+e.width*o.x2,e.ptMinY+e.height*o.y2),0===this.feature.style.fillCenterOffsetX&&0===this.feature.style.fillCenterOffsetY)t.addColorStop(0,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillColor,this.feature.style.fillOpacity)),t.addColorStop(1,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillBackColor,this.feature.style.fillOpacity));else{var l=this.feature.style.fillAngle;0===l||180===l||90===l||270===l?(t.addColorStop(0,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillBackColor,this.feature.style.fillOpacity)),0!==l&&180!==l||t.addColorStop(this.feature.style.fillCenterOffsetX,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillColor,this.feature.style.fillOpacity)),90!==l&&270!==l||t.addColorStop(this.feature.style.fillCenterOffsetY,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillColor,this.feature.style.fillOpacity)),t.addColorStop(1,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillBackColor,this.feature.style.fillOpacity))):(t.addColorStop(0,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillBackColor,this.feature.style.fillOpacity)),t.addColorStop(this.feature.style.fillCenterOffsetX>=this.feature.style.fillCenterOffsetY?this.feature.style.fillCenterOffsetX:this.feature.style.fillCenterOffsetY*Math.cos(this.feature.style.fillAngle*Math.PI/180),SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillColor,this.feature.style.fillOpacity)),t.addColorStop(1,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillBackColor,this.feature.style.fillOpacity)))}}if("RADIAL"===this.feature.style.fillGradientMode){var i=this.feature.style.fillCenterOffsetX*e.r,n=this.feature.style.fillCenterOffsetY*e.r,r=e.r/Math.sqrt(2)+Math.abs(i)>e.r/Math.sqrt(2)+Math.abs(n)?e.r/Math.sqrt(2)+Math.abs(i):e.r/Math.sqrt(2)+Math.abs(n);(t=this.getContext().createRadialGradient(e.center.x+i,e.center.y-n,0,e.center.x+i,e.center.y-n,r)).addColorStop(0,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillColor,this.feature.style.fillOpacity)),this.feature.style.fillColor,this.feature.style.fillBackColor,t.addColorStop(1,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillBackColor,this.feature.style.fillOpacity))}return t}}},{key:"createTextureFill",value:function(t){if(0!==t.length){var e=document.createElement("canvas");document.body.appendChild(e);var o=e.getContext("2d");e.width=8,e.height=8;var l=e.width,i=e.height,n=SuperMap.Plot.PlottingUtil.colorStringToRGB(t[0].color);o.strokeStyle="rgba("+n.red+","+n.green+","+n.blue+","+t[0].opacity+")",o.lineWidth=1;var r=SuperMap.Plot.PlottingUtil.colorStringToRGB(t[1].color);switch(o.fillStyle="rgba("+r.red+","+r.green+","+r.blue+","+t[1].opacity+")",o.fillRect(0,0,e.width,e.height),o.beginPath(),t[0].fillID){case 0:case 1:break;case 2:o.moveTo(0,i),o.lineTo(l,0);break;case 3:o.moveTo(0,0),o.lineTo(l,0),o.moveTo(0,0),o.lineTo(0,i);break;case 4:o.moveTo(0,i),o.lineTo(l,0),o.moveTo(0,0),o.lineTo(l,i);break;case 5:o.moveTo(0,0),o.lineTo(l,i);break;case 6:o.moveTo(0,0),o.lineTo(l,0);break;case 7:o.moveTo(0,0),o.lineTo(0,i)}o.closePath(),o.stroke(),o.fill();var a=o.createPattern(e,"repeat");return document.body.removeChild(e),a}}},{key:"createFillMode",value:function(t){if(void 0!==this.feature.style.fillSymbolID)if(t.fill=this.feature.style.fill,t.fillSymbolID=this.feature.style.fillSymbolID,0===this.feature.style.fillSymbolID||1===this.feature.style.fillSymbolID||!0===this.feature.style.fill||!1===this.feature.style.fill)0===this.feature.style.fillSymbolID?t.fill=!0:1===this.feature.style.fillSymbolID&&(t.fill=!1),t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity;else if(this.feature.style.fillColor!==this.feature.style.fillBackColor||this.feature.style.fillBackOpacity>0&&this.feature.style.fillBackOpacity<1){var e=[];e.push({fillID:this.feature.style.fillSymbolID,color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity},{fillID:this.feature.style.fillSymbolID,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillBackOpacity}),t.fill=!0,t.fillColor=this.createTextureFill(e),t.fillOpacity=this.feature.style.fillColor}else t.fill=!0,t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity;else t.fill=this.feature.style.fill,t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity}},{key:"getGradientDirection",value:function(t){var e=function(t){return{x:Math.cos(t),y:Math.sin(t)}},o=function(t){return t*Math.PI/180},l=e(o(180-t%360)),i=e(o(360-t%360)),n=Math.pow(2,-52);return(l.x<=0||Math.abs(l.x)<=n)&&(l.x=0),(l.y<=0||Math.abs(l.y)<=n)&&(l.y=0),(i.x<=0||Math.abs(i.x)<=n)&&(i.x=0),(i.y<=0||Math.abs(i.y)<=n)&&(i.y=0),{x1:l.x,y1:l.y,x2:i.x,y2:i.y}}}]),t}();SuperMap.Plot.CalculateCanvasGradient=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CalculateSVGGradient=e.CalculateCanvasGradient=void 0;var l=o(81),i=o(80);e.CalculateCanvasGradient=l.CalculateCanvasGradient,e.CalculateSVGGradient=i.CalculateSVGGradient},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=e.TransactionInfo=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.layer=e.layer?e.layer:null,this.feature=e.feature?e.feature:null,this.uuid=e.uuid?e.uuid:null,this.functionName=e.functionName?e.functionName:null,this.undoParams=e.undoParams?e.undoParams:null,this.redoParams=e.redoParams?e.redoParams:null,this.propertyName=e.propertyName?e.propertyName:null,this.undoValue=e.undoValue?e.undoValue:null,this.redoValue=e.redoValue?e.redoValue:null,this.CLASS_NAME="SuperMap.Plot.TransactionInfo"};SuperMap.Plot.TransactionInfo=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.Transaction=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.transType=e.transType?e.transType:SuperMap.Plot.TransactionType.EDIT,this.transInfos=[],this.CLASS_NAME="SuperMap.Plot.Transaction"}return l(t,[{key:"destroy",value:function(){this.transInfos=null,this.transType=null}}]),t}();SuperMap.Plot.Transaction=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.TowardNode=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.routeNodeId=e.routeNodeId?e.routeNodeId:null,this.relLineText=e.relLineText?e.relLineText:SuperMap.Plot.RelLineText.ONLEFTLINE,this.index=e.index?e.index:0,this.textContent=e.textContent?e.textContent:null,this.offsetX=e.offsetX?e.offsetX:null,this.offsetY=e.offsetY?e.offsetY:null,this.style=e.style?e.style:{fontSize:12,fontFamily:"Microsoft YaHei"},this.CLASS_NAME="SuperMap.Plot.TowardNode"}return l(t,[{key:"destroy",value:function(){this.routeNodeId=null,this.relLineText=null,this.textContent=null,this.style=null}},{key:"clone",value:function(){return new t({routeNodeId:this.routeNodeId,relLineText:this.relLineText,textContent:this.textContent,style:SuperMap.Util.cloneObject(this.style)})}},{key:"parseSymbolData",value:function(t){return this.routeNodeId=t.routeNodeId,this.relLineText=t.relLineText,this.index=t.index,this.textContent=t.textContent,this.offsetX=t.offsetX,this.offsetY=t.offsetY,this.style=SuperMap.Plot.AnalysisSymbol.getStyle(t,!0),this}},{key:"setSymbolData",value:function(){var t={};return t.routeNodeId=this.routeNodeId,t.relLineText=this.relLineText,t.index=this.index,t.textContent=this.textContent,t.offsetX=this.offsetX,t.offsetY=this.offsetY,SuperMap.Util.applyDefaults(this.style,L.supermap.plotting.PlottingObject.prototype._defaultStyle),SuperMap.Plot.AnalysisSymbol.setStyle(this.style,t,!0),t}}]),t}();SuperMap.Plot.TowardNode=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.TimeWindowParameter=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.startOrbitPoint=e,this.endOrbitPoint=o,this.type=l,this.CLASS_NAME="SuperMap.Plot.TimeWindowParameter"}return l(t,[{key:"destroy",value:function(){this.startOrbitPoint=null,this.endOrbitPoint=null,this.type=null}}]),t}();SuperMap.Plot.TimeWindowParameter=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.Trajectory=function(){function t(e,o,l,i,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=n||{},this.latlngs=[],this.trajectoryLength=e,null==this.trajectoryLength&&(this.trajectoryLength=15),this.showTrackingLine=o,null==this.showTrackingLine&&(this.showTrackingLine=!0),this.showTrackingPoint=l,null==this.showTrackingPoint&&(this.showTrackingPoint=!1),this.saveTrackingPoint=null!=n.saveTrackingPoint&&n.saveTrackingPoint,this.trackingPointStyle=null!=n.trackingPointStyle?n.trackingPointStyle:0,this.trackingPointRadius=null!=n.trackingPointRadius?n.trackingPointRadius:2,this.style={color:"#ff0000",opacity:1,weight:1},null!=i&&(this.style=SuperMap.Util.copyAttributes(this.style,i)),this.CLASS_NAME="SuperMap.Plot.Trajectory"}return l(t,[{key:"addLatLng",value:function(t){this.latlngs.length>0&&SuperMap.Plot.PlottingUtil.equalFuzzy(t.lat,this.latlngs[this.latlngs.length-1].lat)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t.lng,this.latlngs[this.latlngs.length-1].lng)||(!1===this.saveTrackingPoint&&-1!==this.trajectoryLength&&this.trajectoryLength>0?this.latlngs.length<this.trajectoryLength?this.latlngs.push(L.latLng(t.lat,t.lng)):(this.latlngs.splice(0,this.latlngs.length-this.trajectoryLength+1),this.latlngs.push(L.latLng(t.lat,t.lng))):-1!==this.trajectoryLength&&!0!==this.saveTrackingPoint||this.latlngs.push(L.latLng(t.lat,t.lng)))}},{key:"getDisplayLatLngs",value:function(t){var e=[];if("none"===this.style.display)return e;var o=[],l=0;this.trajectoryLength>0&&this.latlngs.length>this.trajectoryLength&&(l+=this.latlngs.length-this.trajectoryLength);for(var i=l;i<this.latlngs.length&&!t.contains(this.latlngs[i]);i++)if(!0===this.showTrackingLine&&i!==this.latlngs.length-1){0===o.length&&(o.push(t.getNorthWest()),o.push(t.getNorthEast()),o.push(t.getSouthEast()),o.push(t.getSouthWest()),o.push(t.getNorthWest()));for(var n=!1,r=0;r<o.length-1;r++)if(SuperMap.Plot.PlottingUtil.isCross(this.latlngs[i],this.latlngs[i+1],o[r],o[r+1])){n=!0;break}if(n)break}var a=l;for(i>l&&(a=i),i=a;i<this.latlngs.length;i++)e.push(this.latlngs[i]);return e}},{key:"generateUuidKey",value:function(){return this.trackingPointStyle.toString()+"_"+this.trackingPointRadius.toString()+"_"+this.style.color+"_"+this.style.weight.toString()}},{key:"destroy",value:function(){this.latlngs.length=0,this.trajectoryLength=null,this.showTrackingLine=null,this.showTrackingPoint=null,this.saveTrackingPoint=null,this.style=null}},{key:"clone",value:function(){var t={saveTrackingPoint:this.saveTrackingPoint},e={};return e=SuperMap.Util.copyAttributes(e,this.style),new SuperMap.Plot.Trajectory(this.trajectoryLength,this.showTrackingLine,this.showTrackingPoint,e,t)}},{key:"setSymbolData",value:function(){var t={};return t.trajectoryLength=this.trajectoryLength,t.showTrackingLine=this.showTrackingLine,t.showTrackingPoint=this.showTrackingPoint,t.saveTrackingPoint=this.saveTrackingPoint,SuperMap.Plot.AnalysisSymbol.setStyle(this.style,t,!0),t}},{key:"parseSymbolData",value:function(t){return this.trajectoryLength=t.trajectoryLength,this.showTrackingLine=t.showTrackingLine,this.showTrackingPoint=t.showTrackingPoint,this.saveTrackingPoint=t.saveTrackingPoint,SuperMap.Plot.AnalysisSymbol.getStyle(symbolTextData,!0),this}}]),t}();SuperMap.Plot.Trajectory=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.PictureFrame=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),l=l||{},this.path=e,this.position=o,void 0!==this.position&&null!==this.position||(this.position=SuperMap.Plot.Position.TOP),this.offsetX=l.offsetX?l.offsetX:0,this.offsetY=l.offsetY?l.offsetY:0,this.width=l.width?l.width:32,this.height=l.height?l.height:32,this.CLASS_NAME="SuperMap.Plot.PictureFrame"}return l(t,[{key:"destroy",value:function(){this.path=null,this.position=null,this.offsetX=null,this.offsetY=null,this.width=null,this.height=null}},{key:"clone",value:function(){var t={offsetX:this.offsetX,offsetY:this.offsetY,width:this.width,height:this.height};return new SuperMap.Plot.PictureFrame(this.path,this.position,t)}},{key:"setSymbolData",value:function(){var t={};return t.path=this.path,t.position=this.position,t.offsetX=this.offsetX,t.offsetY=this.offsetY,t.width=this.width,t.height=this.height,t}},{key:"parseSymbolData",value:function(t){return this.path=t.path,this.position=t.position,null!=t.offsetX&&(this.offsetX=t.offsetX),null!=t.offsetY&&(this.offsetY=t.offsetY),null!=t.width&&(this.width=t.width),null!=t.height&&(this.height=t.height),this}}]),t}();SuperMap.Plot.PictureFrame=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.BloodVolume=function(){function t(e,o,l,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i=i||{},this.volume=e,this.position=o,void 0!==this.position&&null!==this.position||(this.position=SuperMap.Plot.Position.TOP),this.offsetX=i.offsetX?i.offsetX:0,this.offsetY=i.offsetY?i.offsetY:0,this.width=i.width?i.width:null,this.height=i.height?i.height:null,this.style={display:"display",color:"#808080",opacity:1,weight:4,remainingVolumeColor:"#00ff00",remainingVolumeOpacity:.8,consumeVolumeColor:"#000000",consumeVolumeOpacity:.8},null!=l&&(this.style=SuperMap.Util.copyAttributes(this.style,l)),this.CLASS_NAME="SuperMap.Plot.BloodVolume"}return l(t,[{key:"destroy",value:function(){this.volume=null,this.position=null,this.offsetX=null,this.offsetY=null,this.width=null,this.height=null,this.style=null}},{key:"clone",value:function(){var t={offsetX:this.offsetX,offsetY:this.offsetY,width:this.width,height:this.height},e={};return e=SuperMap.Util.copyAttributes(e,this.style),new SuperMap.Plot.BloodVolume(this.volume,this.position,e,t)}},{key:"setSymbolData",value:function(){var t={};return t.volume=this.volume,t.position=this.position,t.offsetX=this.offsetX,t.offsetY=this.offsetY,t.width=this.width,t.height=this.height,null!=this.style&&(t.style={},null!=this.style.display&&(t.style.display=this.style.display),null!=this.style.color&&(t.style.color=this.style.color),null!=this.style.opacity&&(t.style.opacity=this.style.opacity),null!=this.style.weight&&(t.style.weight=this.style.weight),null!=this.style.remainingVolumeColor&&(t.style.remainingVolumeColor=this.style.remainingVolumeColor),null!=this.style.remainingVolumeOpacity&&(t.style.remainingVolumeOpacity=this.style.remainingVolumeOpacity),null!=this.style.consumeVolumeColor&&(t.style.consumeVolumeColor=this.style.consumeVolumeColor),this.style.consumeVolumeOpacity&&(t.style.consumeVolumeOpacity=this.style.consumeVolumeOpacity)),t}},{key:"parseSymbolData",value:function(t){return this.volume=t.volume,this.position=t.position,this.offsetX=t.offsetX,this.offsetY=t.offsetY,null!=t.width&&(this.width=t.width),null!=t.height&&(this.height=t.height),null!=t.style&&(null==this.style&&(this.style={}),null!=t.style.display&&(this.style.display=t.style.display),null!=t.style.color&&(this.style.color=t.style.color),null!=t.style.opacity&&(this.style.opacity=t.style.opacity),null!=t.style.weight&&(this.style.weight=t.style.weight),null!=t.style.remainingVolumeColor&&(this.style.remainingVolumeColor=t.style.remainingVolumeColor),null!=t.style.remainingVolumeOpacity&&(this.style.remainingVolumeOpacity=t.style.remainingVolumeOpacity),null!=t.style.consumeVolumeColor&&(this.style.consumeVolumeColor=t.style.consumeVolumeColor),t.style.consumeVolumeOpacity&&(this.style.consumeVolumeOpacity=t.style.consumeVolumeOpacity)),this}}]),t}();SuperMap.Plot.BloodVolume=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.SymbolText=function(){function t(e,o,l,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i=i||{},this.textContent=e,this.textPosition=o,void 0!==this.textPosition&&null!==this.textPosition||(this.textPosition=0),this.offsetX=i.offsetX?i.offsetX:0,this.offsetY=i.offsetY?i.offsetY:0,this.border=null!=i.border&&i.border,this.showRelationLine=null==i.showRelationLine||i.showRelationLine,this.paddingX=i.paddingX?i.paddingX:0,this.paddingY=i.paddingY?i.paddingY:0,this.style={display:"display",color:"#ff0000",lineSymbolID:0,opacity:"1.00",weight:2,lineCap:"square",lineJoin:"square",surroundLineColor:"#ffff00",surroundLineColorOpacity:"1.00",surroundLineWidth:4,fillSymbolID:1,fillColor:"#ff0000",fillOpacity:"0.31",fillBackColor:"#ff0000",fillBackOpacity:"1.00",fillGradientMode:"NONE",fontColor:"#000000",fontFamily:"Microsoft YaHei",fontSize:"12",fontStroke:!1,fontStrokeColor:"#ff0000",fontStrokeWidth:"2px",fontBackground:!1,fontBackgroundColor:"#ff0000",fontShadow:!1,fontShadowColor:"#ff0000",fontShadowOffsetX:0,fontShadowOffsetY:0,fontSpace:0,fontPercent:100,sizeFixed:!0,labelAlign:"lt",labelRotation:-0,labelXOffset:0,labelYOffset:0,fillAngle:0,fillCenterOffsetX:0,fillCenterOffsetY:0},null!=l&&(this.style=SuperMap.Util.copyAttributes(this.style,l)),this.lineStyle={color:"#ff0000",lineSymbolID:0,opacity:1,weight:2},null!=i.lineStyle&&(this.lineStyle=SuperMap.Util.copyAttributes(this.lineStyle,i.lineStyle)),this.CLASS_NAME="SuperMap.Plot.SymbolText"}return l(t,[{key:"destroy",value:function(){this.textContent=null,this.textPosition=null,this.offsetX=null,this.offsetY=null,this.border=null,this.paddingX=null,this.paddingY=null,this.showRelationLine=null,this.style=null,this.lineStyle=null}},{key:"clone",value:function(){var t={offsetX:this.offsetX,offsetY:this.offsetY,border:this.border,paddingX:this.paddingX,paddingY:this.paddingY,showRelationLine:this.showRelationLine},e={};e=SuperMap.Util.copyAttributes(e,this.style);var o=new SuperMap.Plot.SymbolText(this.textContent,this.textPosition,e,t),l={};return l=SuperMap.Util.copyAttributes(l,this.lineStyle),o.lineStyle=l,o}},{key:"setSymbolData",value:function(){var t={};return t.textContent=this.textContent,t.textPosition=this.textPosition,t.offsetX=this.offsetX,t.offsetY=this.offsetY,t.border=this.border,t.paddingX=this.paddingX,t.paddingY=this.paddingY,t.showRelationLine=this.showRelationLine,null!=this.lineStyle&&(t.lineStyle={},null!=this.lineStyle.color&&(t.lineStyle.color=this.lineStyle.color),null!=this.lineStyle.lineSymbolID&&(t.lineStyle.lineSymbolID=this.lineStyle.lineSymbolID),null!=this.lineStyle.dashArray&&(t.lineStyle.dashArray=this.lineStyle.dashArray),null!=this.lineStyle.opacity&&(t.lineStyle.opacity=this.lineStyle.opacity),null!=this.lineStyle.weight&&(t.lineStyle.weight=this.lineStyle.weight)),SuperMap.Plot.AnalysisSymbol.setStyle(this.style,t,!0),t}},{key:"parseSymbolData",value:function(t){return this.textContent=t.textContent,this.textPosition=t.textPosition,this.offsetX=t.offsetX,this.offsetY=t.offsetY,null!=t.border&&(this.border=t.border),null!=t.paddingX&&(this.paddingX=t.paddingX),null!=t.paddingY&&(this.paddingY=t.paddingY),null!=t.showRelationLine&&(this.showRelationLine=t.showRelationLine),null!=t.lineStyle&&(null==this.lineStyle&&(this.lineStyle=null),null!=t.lineStyle.color&&(this.lineStyle.color=t.lineStyle.color),null!=t.lineStyle.lineSymbolID&&(this.lineStyle.lineSymbolID=t.lineStyle.lineSymbolID),null!=t.lineStyle.dashArray&&(this.lineStyle.dashArray=t.lineStyle.dashArray),null!=t.lineStyle.opacity&&(this.lineStyle.opacity=t.lineStyle.opacity),null!=t.lineStyle.weight&&(this.lineStyle.weight=t.lineStyle.weight)),SuperMap.Plot.AnalysisSymbol.getStyle(t,!0),this}}]),t}();SuperMap.Plot.SymbolText=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.SubSymbol=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),l=l||{},this.libID=e,this.code=o,this.symbolData=l.symbolData?l.symbolData:null,this.textContent=l.textContent?l.textContent:null,this.totalNum=l.totalNum?l.totalNum:null,this.CLASS_NAME="SuperMap.Plot.SubSymbol"}return l(t,[{key:"destroy",value:function(){this.libID=null,this.code=null,this.symbolData=null,this.totalNum=null}},{key:"clone",value:function(){var t=new SuperMap.Plot.SubSymbol(this.libID,this.code);return t.symbolData={},t.symbolData=SuperMap.Util.copyAttributes(t.symbolData,this.symbolData),t.textContent=this.textContent,t.totalNum=this.totalNum,t}}]),t}();SuperMap.Plot.SubSymbol=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.SMLInfoStruct=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e&&(this.SMLName=e.SMLName,this.SMLDesc=e.SMLDesc,this.SMLSeclevel=e.SMLSeclevel,this.SMLDepat=e.SMLDepat,this.SMLAuthor=e.SMLAuthor,this.SMLTime=e.SMLTime),this.CLASS_NAME="SuperMap.Plot.SMLInfoStruct"}return l(t,[{key:"destroy",value:function(){this.SMLName="",this.SMLDesc="",this.SMLAuthor="",this.SMLSeclevel="",this.SMLDepat="",this.SMLTime=""}},{key:"fromJSON",value:function(t){this.SMLName=t.SMLName,this.SMLDesc=t.SMLDesc,this.SMLSeclevel=t.SMLSeclevel,this.SMLDepat=t.SMLDepat,this.SMLAuthor=t.SMLAuthor,this.SMLTime=t.SMLTime}},{key:"toJSON",value:function(){return'{"SMLName":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLName)+',"SMLDesc":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLDesc)+',"SMLSeclevel":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLSeclevel)+',"SMLDepat":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLDepat)+',"SMLAuthor":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLAuthor)+',"SMLTime":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLTime)+"}"}}]),t}();SuperMap.Plot.SMLInfoStruct=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.SitDataStruct=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.smlInfo=e.smlInfo?e.smlInfo:null,this.mapInfo=e.mapInfo?e.mapInfo:null,this.layerDatas=e.layerDatas?e.layerDatas:null,this.CLASS_NAME="SuperMap.Plot.SitDataStruct"}return l(t,[{key:"destroy",value:function(){this.smlInfo=null,this.mapInfo=null,this.layerDatas=null}}]),t}();SuperMap.Plot.SitDataStruct=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.RouteNode=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.id=e.id?e.id:SuperMap.Plot.PlottingUtil.generateUuid(),this.x=e.x?e.x:null,this.y=e.y?e.y:null,this.z=e.z?e.z:null,this.type=e.type?e.type:null,this.name=e.name?e.name:null,this.rotate=e.rotate?e.rotate:0,this.towardNodes=e.towardNodes?e.towardNodes:[],this.style=e.style?e.style:{},0===Object.keys(this.style).length&&(this.style=SuperMap.Util.cloneObject(L.supermap.plotting.PlottingObject.prototype._defaultStyle)),this.CLASS_NAME="SuperMap.Plot.RouteNode"}return l(t,[{key:"destroy",value:function(){this.type=null,this.position=null,this.name=null,this.id=null,this.rotate=null,this.towardNodes&&null!==this.towardNodes||(this.towardNodes=null);for(var t=0;t<this.towardNodes.length;t++)this.towardNodes[t].destroy();this.towardNodes=null}},{key:"clone",value:function(){var e=new t({id:this.id,type:this.type,name:this.name,rotate:this.rotate,towardNodes:this.towardNodes});return e.positionPoint=this.positionPoint.clone(),e.style={},e.style=SuperMap.Util.copyAttributes(e.style,this.style),e}},{key:"parseSymbolData",value:function(t){for(var e in this.id=t.id,this.type=t.type,this.name=t.name,this.rotate=t.rotate,t.positionPoint?(this.x=t.positionPoint.x,this.y=t.positionPoint.y,this.z=t.positionPoint.z):(this.x=t.x,this.y=t.y,this.z=t.z),this.style=SuperMap.Plot.AnalysisSymbol.getStyle(t,!0),t.towardNodes){var o=new SuperMap.Plot.TowardNode;this.towardNodes.push(o.parseSymbolData(t.towardNodes[e]))}return this}},{key:"setSymbolData",value:function(){var t={};for(var e in t.id=this.id,t.type=this.type,t.name=this.name,t.rotate=this.rotate,t.x=this.x,t.y=this.y,t.z=this.z,SuperMap.Plot.AnalysisSymbol.setStyle(this.style,t,!0),t.towardNodes=[],this.towardNodes)t.towardNodes.push(this.towardNodes[e].setSymbolData());return t}}]),t}();SuperMap.Plot.RouteNode=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.Property=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e&&(this.key=e),o&&(this.value=o),this.CLASS_NAME="SuperMap.Plot.Property"}return l(t,[{key:"setKey",value:function(t){this.key=t}},{key:"getKey",value:function(){return this.key}},{key:"setValue",value:function(t){this.value=t}},{key:"getValue",value:function(){return this.value}},{key:"destroy",value:function(){this.key=null,this.value=null}},{key:"clone",value:function(){return new SuperMap.Plot.Property(this.key,this.value)}}]),t}();SuperMap.Plot.Property=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.OrbitPoint=function(){function t(e,o,l,i,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x=parseFloat(e),this.y=parseFloat(o),(l||0==l)&&(this.z=parseFloat(l)),i&&(this.number=i),n&&(this.time=n),this.CLASS_NAME="SuperMap.Plot.OrbitPoint"}return l(t,[{key:"destroy",value:function(){this.x=null,this.y=null,this.z=null,this.index=null,this.time=null}},{key:"clone",value:function(t){return null==t&&(t=new SuperMap.Plot.OrbitPoint(this.x,this.y,this.z)),SuperMap.Util.applyDefaults(t,this),t}}]),t}();SuperMap.Plot.OrbitPoint=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.MapInfoStruct=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.zoom=e.zoom?e.zoom:null,this.centerX=e.centerX?e.centerX:null,this.centerY=e.centerY?e.centerY:null,this.CLASS_NAME="SuperMap.Plot.MapInfoStruct"}return l(t,[{key:"destroy",value:function(){this.zoom=null,this.centerX=null,this.centerY=null}},{key:"fromJSON",value:function(t){void 0!==t.zoom&&(this.zoom=t.zoom),void 0!==t.centerX&&(this.centerX=t.centerX),void 0!==t.centerY&&(this.centerY=t.centerY)}},{key:"toJSON",value:function(){return'{"zoom":'+SuperMap.Plot.PlottingUtil.toJSON(this.zoom)+',"centerX":'+SuperMap.Plot.PlottingUtil.toJSON(this.centerX)+',"centerY":'+SuperMap.Plot.PlottingUtil.toJSON(this.centerY)+"}"}}]),t}();SuperMap.Plot.MapInfoStruct=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.LayerDataStruct=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.layerName=e.layerName?e.layerName:null,this.spatialAnalystUrl=e.spatialAnalystUrl?e.spatialAnalystUrl:null,this.useCanvas2=!!e.useCanvas2&&e.useCanvas2,this.useCanvas=!!e.useCanvas&&e.useCanvas,this.features=e.features?e.features:null,this.CLASS_NAME="SuperMap.Plot.LayerDataStruct"}return l(t,[{key:"destroy",value:function(){this.layerName=null,this.spatialAnalystUrl=null,this.useCanvas2=null,this.useCanvas=null,this.features=null}},{key:"toJSON",value:function(){for(var t=[],e=0;e<this.features.length;e++)t.push(this.features[e].getSymbolData());return'{"layerName":'+SuperMap.Plot.PlottingUtil.toJSON(this.layerName)+', "spatialAnalystUrl":'+SuperMap.Plot.PlottingUtil.toJSON(this.spatialAnalystUrl)+', "useCanvas2":'+SuperMap.Plot.PlottingUtil.toJSON(this.useCanvas2)+', "useCanvas":'+SuperMap.Plot.PlottingUtil.toJSON(this.useCanvas)+', "isEditable":'+SuperMap.Plot.PlottingUtil.toJSON(this.isEditable)+', "isLocked":'+SuperMap.Plot.PlottingUtil.toJSON(this.isLocked)+', "visibility":'+SuperMap.Plot.PlottingUtil.toJSON(this.visibility)+',"features":'+SuperMap.Plot.PlottingUtil.toJSON(t)+"}"}}]),t}();SuperMap.Plot.LayerDataStruct=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.ExtendProperty=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.properties=e.properties?e.properties:[],this.CLASS_NAME="SuperMap.Plot.ExtendProperty"}return l(t,[{key:"addProperty",value:function(t,e){var o=this.findProperty(t);return null==o?this.properties.push(new SuperMap.Plot.Property(t,e)):o.setValue(e),!0}},{key:"deleteProperty",value:function(t){for(var e=0;e<this.properties.length;e++)if(this.properties[e].key===t)return this.properties.slice(e,1),!0;return!1}},{key:"findProperty",value:function(t){for(var e=0;e<this.properties.length;e++)if(this.properties[e].key===t)return this.properties[e];return null}},{key:"getPropertyValue",value:function(t){for(var e=0;e<this.properties.length;e++)if(this.properties[e].key===t)return this.properties[e].value;return null}},{key:"getPropertyByIndex",value:function(t){return t<this.properties.length?this.properties[t]:null}},{key:"getPropertyCount",value:function(){return this.properties.length}},{key:"destroy",value:function(){this.properties=null}}]),t}();SuperMap.Plot.ExtendProperty=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.DefaultStyle=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.lineColor=e.lineColor?e.lineColor:"#ff0000",this.lineWidth=e.lineWidth?e.lineWidth:2,this.lineType=e.lineType?e.lineType:0,this.lineOpacity=e.lineOpacity?e.lineOpacity:1,this.lineCap=e.lineCap?e.lineCap:"round",this.flagTextSize=e.flagTextSize?e.flagTextSize:60,this.maxScale=e.maxScale?e.maxScale:5,this.minScale=e.minScale?e.minScale:1,this.dotSymbolSize=e.dotSymbolSize?e.dotSymbolSize:40,this.dotTextSpace=e.dotTextSpace?e.dotTextSpace:7,this.scaleByMap=!!e.scaleByMap&&e.scaleByMap,this.fillColor=e.fillColor?e.fillColor:"#ff0000",this.fillOpacity=e.fillOpacity?e.fillOpacity:.31,this.fontColor=e.fontColor?e.fontColor:"#000000",this.fontOpacity=e.fontOpacity?e.fontOpacity:1,this.fontStroke=!!e.fontStroke&&e.fontStroke,this.fontStrokeColor=e.fontStrokeColor?e.fontStrokeColor:"#ff0000",this.fontStrokeWidth=e.fontStrokeWidth?e.fontStrokeWidth:"2px",this.fontBackground=!!e.fontBackground&&e.fontBackground,this.fontBackgroundColor=e.fontBackgroundColor?e.fontBackgroundColor:"#ff0000",this.fontShadow=!!e.fontShadow&&e.fontShadow,this.fontShadowColor=e.fontShadowColor?e.fontShadowColor:"#ff0000",this.fontShadowOffsetX=e.fontShadowOffsetX?e.fontShadowOffsetX:0,this.fontShadowOffsetY=e.fontShadowOffsetY?e.fontShadowOffsetY:0,this.fontSize=e.fontSize?e.fontSize:14,this.fontSpace=e.fontSpace?e.fontSpace:0,this.fontPercent=e.fontPercent?e.fontPercent:100,this.fontFamily=e.fontFamily?e.fontFamily:"微软雅黑",this.fontWeight=e.fontWeight?e.fontWeight:"bold",this.fontStyle=e.fontStyle?e.fontStyle:"",this.surroundLineType=e.surroundLineType?e.surroundLineType:0,this.surroundLineColor=e.surroundLineColor?e.surroundLineColor:"#ffff00",this.surroundLineWidth=e.surroundLineWidth?e.surroundLineWidth:4,this.surroundLineColorOpacity=e.surroundLineColorOpacity?e.surroundLineColorOpacity:1,this.fontStyle=e.fontStyle?e.fontStyle:"",this.fillBackColor=e.fillBackColor?e.fillBackColor:"#ff0000",this.fillBackOpacity=e.fillBackOpacity?e.fillBackOpacity:1,this.fillGradientMode=e.fillGradientMode?e.fillGradientMode:"NONE",this.fillCenterOffsetX=e.fillCenterOffsetX?e.fillCenterOffsetX:0,this.fillCenterOffsetY=e.fillCenterOffsetY?e.fillCenterOffsetY:0,this.fillAngle=e.fillAngle?e.fillAngle:0,this.fillSymbolID=e.fillSymbolID?e.fillSymbolID:1,this.defaultFlag=!!e.defaultFlag&&e.defaultFlag,this.CLASS_NAME="SuperMap.Plot.DefaultStyle",this.parserConfiguration()}return l(t,[{key:"parserConfiguration",value:function(){"undefined"!=typeof DefaultStyleConfiguration&&("undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.flagTextSize&&(this.flagTextSize=parseFloat(DefaultStyleConfiguration.flagTextSize)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.maxScale&&(this.maxScale=parseFloat(DefaultStyleConfiguration.maxScale)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.minScale&&(this.minScale=parseFloat(DefaultStyleConfiguration.minScale)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.dotSymbolSize&&(this.dotSymbolSize=parseFloat(DefaultStyleConfiguration.dotSymbolSize)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.dotTextSpace&&(this.dotTextSpace=parseFloat(DefaultStyleConfiguration.dotTextSpace)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.scaleByMap&&(this.scaleByMap=DefaultStyleConfiguration.scaleByMap),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.strokeWidth&&(this.lineWidth=parseFloat(DefaultStyleConfiguration.strokeWidth)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.strokeColor&&(this.lineColor=DefaultStyleConfiguration.strokeColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.strokeOpacity&&(this.lineOpacity=parseFloat(DefaultStyleConfiguration.strokeOpacity)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.strokeDashstyle&&(this.lineType=DefaultStyleConfiguration.strokeDashstyle),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.strokeLinecap&&(this.lineCap=DefaultStyleConfiguration.strokeLinecap),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillColor&&(this.fillColor=DefaultStyleConfiguration.fillColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillOpacity&&(this.fillOpacity=parseFloat(DefaultStyleConfiguration.fillOpacity)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontColor&&(this.fontColor=DefaultStyleConfiguration.fontColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontOpacity&&(this.fontOpacity=parseFloat(DefaultStyleConfiguration.fontOpacity)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontStroke&&(this.fontStroke=DefaultStyleConfiguration.fontStroke),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontStrokeColor&&(this.fontStrokeColor=DefaultStyleConfiguration.fontStrokeColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontStrokeWidth&&(this.fontStrokeWidth=parseFloat(DefaultStyleConfiguration.fontStrokeWidth)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontBackground&&(this.fontBackground=DefaultStyleConfiguration.fontBackground),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontBackgroundColor&&(this.fontBackgroundColor=DefaultStyleConfiguration.fontBackgroundColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontShadow&&(this.fontShadow=DefaultStyleConfiguration.fontShadow),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontShadowColor&&(this.fontShadowColor=DefaultStyleConfiguration.fontShadowColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontShadowOffsetX&&(this.fontShadowOffsetX=DefaultStyleConfiguration.fontShadowOffsetX),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontShadowOffsetY&&(this.fontShadowOffsetY=DefaultStyleConfiguration.fontShadowOffsetY),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontSpace&&(this.fontSpace=parseInt(DefaultStyleConfiguration.fontSpace)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontPercent&&(this.fontPercent=parseFloat(DefaultStyleConfiguration.fontPercent)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontSize&&(this.fontSize=parseFloat(DefaultStyleConfiguration.fontSize)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontFamily&&(this.fontFamily=DefaultStyleConfiguration.fontFamily),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontWeight&&(this.fontWeight=DefaultStyleConfiguration.fontWeight),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontStyle&&(this.fontStyle=DefaultStyleConfiguration.fontStyle),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.surroundLineType&&(this.surroundLineType=parseFloat(DefaultStyleConfiguration.surroundLineType)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.surroundLineColor&&(this.surroundLineColor=DefaultStyleConfiguration.surroundLineColor),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.surroundLineWidth&&(this.surroundLineWidth=parseFloat(DefaultStyleConfiguration.surroundLineWidth)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.surroundLineColorOpacity&&(this.surroundLineColorOpacity=parseFloat(DefaultStyleConfiguration.surroundLineColorOpacity)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillBackColor&&(this.fillBackColor=DefaultStyleConfiguration.fillBackColor),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillBackOpacity&&(this.fillBackOpacity=parseFloat(DefaultStyleConfiguration.fillBackOpacity)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillGradientMode&&(this.fillGradientMode=DefaultStyleConfiguration.fillGradientMode),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillAngle&&(this.fillAngle=parseFloat(DefaultStyleConfiguration.fillAngle)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillCenterOffsetX&&(this.fillCenterOffsetX=parseFloat(DefaultStyleConfiguration.fillCenterOffsetX)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillCenterOffsetY&&(this.fillCenterOffsetY=parseFloat(DefaultStyleConfiguration.fillCenterOffsetY)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillSymbolID&&(this.fillSymbolID=parseFloat(DefaultStyleConfiguration.fillSymbolID)))}},{key:"destroy",value:function(){this.lineColor=null,this.lineWidth=null,this.dotSymbolSize=null,this.lineType=null,this.defaultFlag=null,this.flagTextSize=null,this.maxScale=null,this.minScale=null,this.dotTextSpace=null,this.scaleByMap=null,this.lineOpacity=null,this.lineCap=null,this.fillColor=null,this.fillOpacity=null,this.fontColor=null,this.fontOpacity=null,this.fontSize=null,this.fontFamily=null,this.fontWeight=null,this.fontStyle=null,this.fontPercent=null,this.fontSpace=null,this.surroundLineType=null,this.surroundLineColor=null,this.surroundLineWidth=null,this.surroundLineColorOpacity=null,this.fillBackColor=null,this.fillBackOpacity=null,this.fillGradientMode=null,this.fillAngle=null,this.fillCenterOffsetX=null,this.fillCenterOffsetY=null,this.fillSymbolID=null}}]),t}();SuperMap.Plot.DefaultStyle=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TransactionInfo=e.Transaction=e.TowardNode=e.TimeWindowParameter=e.Trajectory=e.PictureFrame=e.BloodVolume=e.SymbolText=e.SubSymbol=e.SMLInfoStruct=e.SitDataStruct=e.RouteNode=e.Property=e.OrbitPoint=e.MapInfoStruct=e.LayerDataStruct=e.ExtendProperty=e.DefaultStyle=void 0;var l=o(100),i=o(99),n=o(98),r=o(97),a=o(96),s=o(95),u=o(94),p=o(93),c=o(92),P=o(91),h=o(90),g=o(89),y=o(88),f=o(87),S=o(86),A=o(85),d=o(84),M=o(83);e.DefaultStyle=l.DefaultStyle,e.ExtendProperty=i.ExtendProperty,e.LayerDataStruct=n.LayerDataStruct,e.MapInfoStruct=r.MapInfoStruct,e.OrbitPoint=a.OrbitPoint,e.Property=s.Property,e.RouteNode=u.RouteNode,e.SitDataStruct=p.SitDataStruct,e.SMLInfoStruct=c.SMLInfoStruct,e.SubSymbol=P.SubSymbol,e.SymbolText=h.SymbolText,e.BloodVolume=g.BloodVolume,e.PictureFrame=y.PictureFrame,e.Trajectory=f.Trajectory,e.TimeWindowParameter=S.TimeWindowParameter,e.TowardNode=A.TowardNode,e.Transaction=d.Transaction,e.TransactionInfo=M.TransactionInfo},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.GetSymbolInfoService=function(t){function e(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o=o||{};var l,i=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,o)),n=i;return l=n.url.substr(n.url.length-1,1),n.url+="/"==l?"graphicObject.json?":"/graphicObject.json?",i.CLASS_NAME="SuperMap.GetSymbolInfoService",i}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.PlotCommonServiceBase),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:"processAsync",value:function(t){if(t){var e,o=this;e=SuperMap.GetSymbolInfoParameters.toUrlParameters(t),o.url+=e,t.dynamicToken&&(o.url+="&dynamicToken="+t.dynamicToken),"MSIE"===SuperMap.Browser.name.toUpperCase()&&(o.url=encodeURI(o.url)),o.request({method:"GET",params:null,scope:o,success:o.myServiceProcessCompleted,failure:o.serviceProcessFailed})}}},{key:"myServiceProcessCompleted",value:function(t){null!=(t=SuperMap.Util.transformResult(t))&&null!=t.textStyle2D&&null!=t.textStyle2D.fontHeight&&(t.textStyle2D.fontHeight=3),this.events.triggerEvent("processCompleted",{result:t})}}]),e}();SuperMap.GetSymbolInfoService=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.GetSymbolInfoParameters=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.libID=e.libID,this.code=e.code,this.inputPoints=e.inputPoints?e.inputPoints:null,this.symbolRank=e.symbolRank?e.symbolRank:0,this.negativeImage=!!e.negativeImage&&e.negativeImage,this.surroundLineType=e.surroundLineType?e.surroundLineType:0,this.subSymbols=e.subSymbols?e.subSymbols:null,this.scaleValues=e.scaleValues?e.scaleValues:null,this.scalePoints=e.scalePoints?e.scalePoints:null,this.newScalePoint=e.newScalePoint?e.newScalePoint:null,this.newScalePointIndex=e.newScalePointIndex?e.newScalePointIndex:0,this.CLASS_NAME="SuperMap.GetSymbolInfoParameters"}return l(t,[{key:"destroy",value:function(){var t=this;t.libID=null,t.code=null,t.inputPoints=null,t.symbolRank=null,t.negativeImage=null,t.surroundLineType=null,t.subSymbols=null,t.scaleValues=null,t.scalePoints=null,t.newScalePoint=null,t.newScalePointIndex=null}}],[{key:"toUrlParameters",value:function(t){if(t&&null!==t.libID&&null!==t.code){var e="libID="+encodeURIComponent(t.libID)+"&code="+encodeURIComponent(t.code);if(t.inputPoints&&null!==t.inputPoints&&0!==t.inputPoints.length){for(var o="[",l=0;l<t.inputPoints.length;l++)l===t.inputPoints.length-1?o+='{"x":'+t.inputPoints[l].x+', "y":'+t.inputPoints[l].y+"}]":o+='{"x":'+t.inputPoints[l].x+', "y":'+t.inputPoints[l].y+"},";e+="&inputPoints="+encodeURIComponent(o)}if(t.scalePoints&&null!==t.scalePoints&&0!==t.scalePoints.length){for(var i="[",n=0;n<t.scalePoints.length;n++)n===t.scalePoints.length-1?i+='{"x":'+t.scalePoints[n].x+', "y":'+t.scalePoints[n].y+"}]":i+='{"x":'+t.scalePoints[n].x+', "y":'+t.scalePoints[n].y+"},";e+="&scalePoints="+encodeURIComponent(i)}if(t.scaleValues&&null!==t.scaleValues&&0!==t.scaleValues.length){for(var r="[",a=0;a<t.scaleValues.length;a++)a===t.scaleValues.length-1?r+=t.scaleValues[a]+"]":r+=t.scaleValues[a]+",";e+="&scaleValues="+encodeURIComponent(r)}if(t.subSymbols&&null!==t.subSymbols&&0!==t.subSymbols.length){for(var s="[",u=0;u<t.subSymbols.length;u++)u===t.subSymbols.length-1?s+=t.subSymbols[u].code+"]":s+=t.subSymbols[u].code+",";e+="&subSymbols="+encodeURIComponent(s)}return t.newScalePoint&&null!==t.newScalePoint&&(e+="&newScalePoint="+encodeURIComponent('{"x":'+t.newScalePoint.x+', "y":'+t.newScalePoint.y+"}")),t.newScalePointIndex&&null!==t.newScalePointIndex&&(e+="&newScalePointIndex="+encodeURIComponent(t.newScalePointIndex)),t.symbolRank&&null!==t.symbolRank&&(e+="&symbolRank="+encodeURIComponent(t.symbolRank)),t.negativeImage&&null!==t.negativeImage&&(e+="&negativeImage="+encodeURIComponent(t.negativeImage)),t.surroundLineType&&null!==t.surroundLineType&&(e+="&surroundLineType="+encodeURIComponent(t.surroundLineType)),e}}}]),t}();SuperMap.GetSymbolInfoParameters=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.GetSMLInfosService=function(t){function e(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=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,o));(o=o||{})&&SuperMap.Util.extend(l,o);var i,n=l;return n.events=new SuperMap.Events(n,null,n.EVENT_TYPES,!0),n.eventListeners instanceof Object&&n.events.on(n.eventListeners),i=n.url.substr(n.url.length-1,1),n.url+="/"==i?"smlInfos":"/smlInfos",n.url+=".json",l.CLASS_NAME="SuperMap.GetSMLInfosService",l}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.PlotCommonServiceBase),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:"processAsync",value:function(t){if(t){var e=this;e.url+=SuperMap.GetSMLInfosParameters.toUrlParameters(t),e.request({method:"GET",data:null,scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}}}]),e}();SuperMap.GetSMLInfosService=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.GetSMLInfosParameters=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.start=e.start,this.count=e.count?e.count:null,this.CLASS_NAME="SuperMap.GetSMLInfosParameters"}return l(t,[{key:"destroy",value:function(){this.start=null,this.count=null}}],[{key:"toUrlParameters",value:function(t){if(t){var e="";return null!==t.start&&(e="?start="+encodeURIComponent(t.start)),!t.count||null===t.count&&0===t.count||(e+="&count="+encodeURIComponent(t.count)),e}}}]),t}();SuperMap.GetSMLInfosParameters=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.GetLibInfoService=function(t){function e(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=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,o));(o=o||{})&&SuperMap.Util.extend(l,o);var i,n=l;return i=n.url.substr(n.url.length-1,1),n.url+="/"==i?"symbolLibs/":"/symbolLibs/",l.CLASS_NAME="SuperMap.GetLibInfoService",l}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.PlotCommonServiceBase),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:"processAsync",value:function(t){var e=this;t&&null!==t.libID&&(e.libID=t.libID),e.url+=e.libID,e.url+=".json",e.request({method:"GET",data:null,scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}}]),e}();SuperMap.GetLibInfoService=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.GetLibInfoParameter=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.libID=e.libID,this.CLASS_NAME="SuperMap.GetLibInfoParameter"}return l(t,[{key:"destroy",value:function(){this.libID=null}}]),t}();SuperMap.GetLibInfoParameter=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.GetLibIDsService=function(t){function e(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=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,o));(o=o||{})&&SuperMap.Util.extend(l,o);var i,n=l;return i=n.url.substr(n.url.length-1,1),n.url+="/"==i?"symbolLibs.json?":"/symbolLibs.json?",l.CLASS_NAME="SuperMap.GetLibIDsService",l}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.PlotCommonServiceBase),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:"processAsync",value:function(){this.request({method:"GET",data:null,scope:this,success:this.serviceProcessCompleted,failure:this.serviceProcessFailed})}}]),e}();SuperMap.GetLibIDsService=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.EditSmlFileService=function(t){function e(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=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,o));(o=o||{})&&SuperMap.Util.extend(l,o);var i=l;return i.events=new SuperMap.Events(i,null,i.EVENT_TYPES,!0),i.eventListeners instanceof Object&&i.events.on(i.eventListeners),l.CLASS_NAME="SuperMap.EditSmlFileService",l}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.PlotCommonServiceBase),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:"processAsync",value:function(t){if(t){var e=this,o=t.method,l=e.url.substr(e.url.length-1,1);e.url+="/"==l?"smlInfos/":"/smlInfos/",e.url+=t.smlFileName+".json",e.url+="?isCover="+t.isCover;var i=null;t.method&&"POST"===t.method&&(i=SuperMap.EditSmlFileParameters.toJsonParameters(t)),e.request({method:o,data:i,scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}}}]),e}();SuperMap.EditSmlFileService=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.EditSmlFileParameters=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.method=e.method?e.method:"POST",this.sitData=e.sitData?e.sitData:null,this.smlFileName=e.smlFileName?e.smlFileName:"",this.isCover=!!e.isCover&&e.isCover,this.CLASS_NAME="SuperMap.EditSmlFileParameters"}return l(t,[{key:"destroy",value:function(){this.method="POST",this.sitData=null,this.isCover=!1,this.smlFileName=""}}],[{key:"toJsonParameters",value:function(t){if(t)return SuperMap.Plot.PlottingUtil.toJSON(t.sitData)}}]),t}();SuperMap.EditSmlFileParameters=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.PlotCommonServiceBase=function(t){function e(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=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,o));return l.CLASS_NAME="SuperMap.PlotCommonServiceBase",l}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.CommonServiceBase),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:"_commit",value:function(t){"POST"!==t.method&&"PUT"!==t.method||(t.params&&(t.url=SuperMap.Util.urlAppend(t.url,SuperMap.Util.getParameterString(t.params||{}))),t.params=t.data),SuperMap.FetchRequest.commit(t.method,t.url,t.params,{headers:t.headers,withCredentials:t.withCredentials,crossOrigin:t.crossOrigin,timeout:t.async?0:null,proxy:t.proxy}).then(function(t){return t.text()}).then(function(e){var o=(new SuperMap.Format.JSON).read(e);(o||(o={error:e}),o.error)?(t.scope?SuperMap.Function.bind(t.failure,t.scope):t.failure)(o.error):(o.succeed=void 0==o.succeed||o.succeed,(t.scope?SuperMap.Function.bind(t.success,t.scope):t.success)(o))})}}]),e}();SuperMap.PlotCommonServiceBase=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GetSymbolInfoService=e.GetSymbolInfoParameters=e.GetSMLInfosService=e.GetSMLInfosParameters=e.GetLibInfoService=e.GetLibInfoParameter=e.GetLibIDsService=e.EditSmlFileService=e.EditSmlFileParameters=e.PlotCommonServiceBase=void 0;var l=o(111),i=o(110),n=o(109),r=o(108),a=o(107),s=o(106),u=o(105),p=o(104),c=o(103),P=o(102);e.PlotCommonServiceBase=l.PlotCommonServiceBase,e.EditSmlFileParameters=i.EditSmlFileParameters,e.EditSmlFileService=n.EditSmlFileService,e.GetLibIDsService=r.GetLibIDsService,e.GetLibInfoParameter=a.GetLibInfoParameter,e.GetLibInfoService=s.GetLibInfoService,e.GetSMLInfosParameters=u.GetSMLInfosParameters,e.GetSMLInfosService=p.GetSMLInfosService,e.GetSymbolInfoParameters=c.GetSymbolInfoParameters,e.GetSymbolInfoService=P.GetSymbolInfoService},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=SuperMap.Plot.GOAnimationType={ANIMATION_UNKNOWN:-1,ANIMATION_WAY:0,ANIMATION_BLINK:1,ANIMATION_ATTRIBUTE:2,ANIMATION_SHOW:3,ANIMATION_ROTATE:4,ANIMATION_SCALE:5,ANIMATION_GROW:6};e.GOAnimationType=l;var i=SuperMap.Plot.BlinkAnimationBlinkStyle={Blink_Frequency:0,Blink_Number:1};e.BlinkAnimationBlinkStyle=i;var n=SuperMap.Plot.BlinkAnimationReplaceStyle={Replace_NoColor:0,Replace_Color:1};e.BlinkAnimationReplaceStyle=n;var r=SuperMap.Plot.RotateDirection={ClockWise:0,AntiClockWise:1};e.RotateDirection=r;var a=SuperMap.Plot.WayPathType={POLYLINE:0,CURVE:1};e.WayPathType=a;var s=SuperMap.Plot.GOAnimationState={UNKNOWN:0,PLAYING:1,PAUSE:2,STOP:3,RESET:4};e.GOAnimationState=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GOAnimationState=e.WayPathType=e.RotateDirection=e.BlinkAnimationReplaceStyle=e.BlinkAnimationBlinkStyle=e.GOAnimationType=void 0;var l=o(113);e.GOAnimationType=l.GOAnimationType,e.BlinkAnimationBlinkStyle=l.BlinkAnimationBlinkStyle,e.BlinkAnimationReplaceStyle=l.BlinkAnimationReplaceStyle,e.RotateDirection=l.RotateDirection,e.WayPathType=l.WayPathType,e.GOAnimationState=l.GOAnimationState},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.Event=SuperMap.Plot.Event=SuperMap.Plot.Event||{};SuperMap.Plot.Event.beforefeatureadded="beforefeatureadded",SuperMap.Plot.Event.featureadded="featureadded",SuperMap.Plot.Event.beforefeaturesselected="beforefeaturesselected",SuperMap.Plot.Event.featuresselected="featuresselected",SuperMap.Plot.Event.beforefeaturesunselected="beforefeaturesunselected",SuperMap.Plot.Event.featuresunselected="featuresunselected",SuperMap.Plot.Event.beforefeaturesmodified="beforefeaturesmodified",SuperMap.Plot.Event.featuresmodified="featuresmodified",SuperMap.Plot.Event.beforefeaturesremoved="beforefeaturesremoved",SuperMap.Plot.Event.featuresremoved="featuresremoved",SuperMap.Plot.Event.beforefeaturesadded="beforefeaturesadded",SuperMap.Plot.Event.featuresadded="featuresadded",SuperMap.Plot.Event.movingtargetsselected="featuresselected",SuperMap.Plot.Event.movingtargetsunselected="featuresunselected",SuperMap.Plot.Event.movingtargetcontextmenu="featurecontextmenu",SuperMap.Plot.Event.initializecompleted="initializecompleted",SuperMap.Plot.Event.cachecompleted="cachecompleted",SuperMap.Plot.Event.reseteditmarkersvalues="reseteditmarkersvalues",SuperMap.Plot.Event.reseteditmarkers="reseteditmarkers"},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var l=o(115);e.Event=l.Event},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=SuperMap.Plot.ArrowTailType={ARROWTAIL_NONE:0,ARROWTAIL_LINE:1,ARROWTAIL_CURVE:2,ARROWTAIL_COATTAIL:3,ARROWTAIL_COATTAIL_POLYBODY:4};e.ArrowTailType=l;var i=SuperMap.Plot.ArrowHeadType={ARROWHEAD_POLYLINE:0,ARROWHEAD_TRIANGLE:1,ARROWHEAD_COATTAIL:2,ARROWHEAD_TRIANGLE_SOLID:3,ARROWHEAD_WITH_EAR:4,ARROWHEAD_WITHOUT_EAR:5,ARROWHEAD_COATTAIL_HOLLOW:6};e.ArrowHeadType=i;var n=SuperMap.Plot.ArrowBodyType={ARROWBODY_POLYLINE:0,ARROWBODY_POLYBEZIER:1,ARROWBODY_PARALLEL:2,ARROWBODY_TRAPEZOID:3,ARROWBODY_MULTIPOLYBEZIER:4,ARROWBODY_COATTAIL:5};e.ArrowBodyType=n;var r=SuperMap.Plot.SymbolType={DOTSYMBOL:1,ALGOSYMBOL:2,TEXTSYMBOL:34,ELLIPSESYMBOL:31,CIRCLESYMBOL:29,RECTANGLESYMBOL:26,ARBITRARYPOLYGONSYMBOL:32,POLYLINESYMBOL:24,PARALLELOGRAM:28,ARCSYMBOL:44,NEWARCSYMBOL:4401,REGULARPOLYGON:410,CHORDSYMBOL:370,NEWCHORDSYMBOL:3701,PIESYMBOL:380,NEWPIESYMBOL:3801,KIDNEY:390,POLYBEZIERSYMBOL:590,PARALLELLINE:48,BRACESYMBOL:400,ANNOFRAMESYMBOL:320,ANNOFRAMESYMBOLM:321,TRAPEZOIDSYMBOL:350,POLYBEZIERCLOSESYMBOL:360,GROUPOBJECT:1e3,LINERELATION:1001,INTERFERENCEBEAM:1002,POLYGONREGION:1003,ARCREGION:1004,AIRROUTE:1005,NAVYROUTE:1006,MISSILEROUTE:1007,NAVYDEPLOYMENT:1008,AIRDEPLOYMENT:1009,SATELLITE:1010,SATELLITETIMEWINDOWS:1011,SYMBOLTEXT:1012,RUNWAY:1013,CURVEEIGHT:1014,ROUTENODE:1015,ARROWLINE:1016,PATHTEXT:1017,LITERATESIGN:1018,CONCENTRICCIRCLE:1019,FLAGGROUP:1020,SYMBOLTEXT1:1021,COMBINATIONALCIRCLE:1022,FREECURVE:1023,SYMBOLTEXTBOX:1024,NODECHAIN:1025,LINEMARKING:1026,AVOIDREGION:1027,WIRE:1028,LINEARARROW:1029,PICTURE:3e3};e.SymbolType=r;var a=SuperMap.Plot.LineRelationType={SOLID:0,DASH:1,ARROW:2};e.LineRelationType=a;var s=SuperMap.Plot.AlgoSurroundLineType={NONE:0,INNER:1,OUT:2,ALL:3};e.AlgoSurroundLineType=s;var u=SuperMap.Plot.RouteNodeType={RENDEZVOUS:"RENDEZVOUS",EXPANDING:"EXPANDING",VOLLEY:"VOLLEY",STANDBY:"STANDBY",SUPPLY:"SUPPLY",TAKEOFF:"TAKEOFF",INITIAL:"INITIAL",VISUALINITAL:"VISUALINITAL",LANCH:"LANCH",TURNING:"TURNING",AIMING:"AIMING",COMMONROUTE:"COMMONROUTE",WEAPONLAUNCH:"WEAPONLAUNCH",TARGET:"TARGET",ATTACK:"ATTACK",SUPPRESS:"SUPPRESS",EIGHTSPIRAL:"EIGHTSPIRAL",HAPPYVALLEY:"HAPPYVALLEY"};e.RouteNodeType=u;var p=SuperMap.Plot.RelLineText={ONLINE:0,ONLEFTLINE:1,ONRIGHTLINE:2,ONBOTHLINE:3};e.RelLineText=p;var c=SuperMap.Plot.RadiusLineType={NONE:0,SOLID:1,ARROW:2};e.RadiusLineType=c;var P=SuperMap.Plot.Position={TOP:4,BOTTOM:5,LEFT:6,RIGHT:7};e.Position=P;var h=SuperMap.Plot.AnnoPosition={LEFTTOP:0,LEFTBOTTOM:1,RIGHTTOP:2,RIGHTBOTTOM:3,TOP:4,BOTTOM:5,LEFT:6,RIGHT:7,MIDDLE:8,ANCHOR:9};e.AnnoPosition=h;var g=SuperMap.Plot.ArrowLineType={DOUBLELINE:0,TRIANGLESOLID:1,NONE:2};e.ArrowLineType=g;var y=SuperMap.Plot.TextBoxType={WITHTIPBOX:0,RECTBOX:1,LINEBOX:2,NONEBOX:3};e.TextBoxType=y;var f=SuperMap.Plot.PositionOffsetType={LINE:0,GRADIENTLINE:1};e.PositionOffsetType=f;var S=SuperMap.Plot.AlignType={LEFT:0,RIGHT:1,UP:2,DOWN:3,VERTICALCENTER:4,HORIZONTALCENTER:5};e.AlignType=S;var A=SuperMap.Plot.EditMode={ADDCONTROLPOINT:0,EDITCONTROLPOINT:1,EDITCIRCUMRECTANGLE:2,REMOVECONTROLPOINT:3};e.EditMode=A,SuperMap.Plot.EqualLargeType={WIDTH:0,HEIGHT:1,SAME:2},SuperMap.Plot.UniformDistributionType={LEVEL:0,VERTICAL:1};var d=SuperMap.Plot.TransactionType={CREATE:0,EDIT:1,REMOVE:2};e.TransactionType=d},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=e.SuperMap=window.SuperMap=window.SuperMap||{};e.Plot=l.Plot=l.Plot||{},e.SuperMapAlgoPlot=window.SuperMapAlgoPlot=l.Plot||{}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CalculateSVGGradient=e.CalculateCanvasGradient=e.TransactionInfo=e.Transaction=e.TowardNode=e.TimeWindowParameter=e.PictureFrame=e.BloodVolume=e.SymbolText=e.SubSymbol=e.SMLInfoStruct=e.SitDataStruct=e.RouteNode=e.Property=e.OrbitPoint=e.MapInfoStruct=e.LayerDataStruct=e.ExtendProperty=e.DefaultStyle=e.GetSymbolInfoService=e.GetSymbolInfoParameters=e.GetSMLInfosService=e.GetSMLInfosParameters=e.GetLibInfoService=e.GetLibInfoParameter=e.GetLibIDsService=e.EditSmlFileService=e.EditSmlFileParameters=e.PlotCommonServiceBase=e.GOAnimationType=e.Event=e.EditMode=e.AlignType=e.PositionOffsetType=e.TextBoxType=e.ArrowLineType=e.AnnoPosition=e.RadiusLineType=e.RelLineText=e.RouteNodeType=e.AlgoSurroundLineType=e.LineRelationType=e.SymbolType=e.Plot=void 0;var l=o(118),i=o(117),n=o(116),r=o(114),a=o(112),s=o(101),u=o(82);e.Plot=l.Plot,e.SymbolType=i.SymbolType,e.LineRelationType=i.LineRelationType,e.AlgoSurroundLineType=i.AlgoSurroundLineType,e.RouteNodeType=i.RouteNodeType,e.RelLineText=i.RelLineText,e.RadiusLineType=i.RadiusLineType,e.AnnoPosition=i.AnnoPosition,e.ArrowLineType=i.ArrowLineType,e.TextBoxType=i.TextBoxType,e.PositionOffsetType=i.PositionOffsetType,e.AlignType=i.AlignType,e.EditMode=i.EditMode,e.Event=n.Event,e.GOAnimationType=r.GOAnimationType,e.PlotCommonServiceBase=a.PlotCommonServiceBase,e.EditSmlFileParameters=a.EditSmlFileParameters,e.EditSmlFileService=a.EditSmlFileService,e.GetLibIDsService=a.GetLibIDsService,e.GetLibInfoParameter=a.GetLibInfoParameter,e.GetLibInfoService=a.GetLibInfoService,e.GetSMLInfosParameters=a.GetSMLInfosParameters,e.GetSMLInfosService=a.GetSMLInfosService,e.GetSymbolInfoParameters=a.GetSymbolInfoParameters,e.GetSymbolInfoService=a.GetSymbolInfoService,e.DefaultStyle=s.DefaultStyle,e.ExtendProperty=s.ExtendProperty,e.LayerDataStruct=s.LayerDataStruct,e.MapInfoStruct=s.MapInfoStruct,e.OrbitPoint=s.OrbitPoint,e.Property=s.Property,e.RouteNode=s.RouteNode,e.SitDataStruct=s.SitDataStruct,e.SMLInfoStruct=s.SMLInfoStruct,e.SubSymbol=s.SubSymbol,e.SymbolText=s.SymbolText,e.BloodVolume=s.BloodVolume,e.PictureFrame=s.PictureFrame,e.TimeWindowParameter=s.TimeWindowParameter,e.TowardNode=s.TowardNode,e.Transaction=s.Transaction,e.TransactionInfo=s.TransactionInfo,e.CalculateCanvasGradient=u.CalculateCanvasGradient,e.CalculateSVGGradient=u.CalculateSVGGradient},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LonLat=void 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=o(1);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * This program are made available under the terms of the Apache License, Version 2.0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/e.LonLat=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i.Util.isArray(e)&&(o=e[1],e=e[0]),this.lon=e?i.Util.toFloat(e):0,this.lat=o?i.Util.toFloat(o):0,this.CLASS_NAME="SuperMap.LonLat"}return l(t,[{key:"toString",value:function(){return"lon="+this.lon+",lat="+this.lat}},{key:"toShortString",value:function(){return this.lon+","+this.lat}},{key:"clone",value:function(){return new t(this.lon,this.lat)}},{key:"add",value:function(e,o){if(null==e||null==o)throw new TypeError("LonLat.add cannot receive null values");return new t(this.lon+i.Util.toFloat(e),this.lat+i.Util.toFloat(o))}},{key:"equals",value:function(t){var e=!1;return null!=t&&(e=this.lon===t.lon&&this.lat===t.lat||isNaN(this.lon)&&isNaN(this.lat)&&isNaN(t.lon)&&isNaN(t.lat)),e}},{key:"wrapDateLine",value:function(t){var e=this.clone();if(t){for(;e.lon<t.left;)e.lon+=t.getWidth();for(;e.lon>t.right;)e.lon-=t.getWidth()}return e}},{key:"destroy",value:function(){this.lon=null,this.lat=null}}],[{key:"fromString",value:function(e){var o=e.split(",");return new t(o[0],o[1])}},{key:"fromArray",value:function(e){var o=i.Util.isArray(e);return new t(o&&e[0],o&&e[1])}}]),t}()},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Size=void 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=o(0);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * This program are made available under the terms of the Apache License, Version 2.0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var n=e.Size=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.w=e?parseFloat(e):0,this.h=e?parseFloat(o):0,this.CLASS_NAME="SuperMap.Size"}return l(t,[{key:"toString",value:function(){return"w="+this.w+",h="+this.h}},{key:"clone",value:function(){return new t(this.w,this.h)}},{key:"equals",value:function(t){var e=!1;return null!=t&&(e=this.w===t.w&&this.h===t.h||isNaN(this.w)&&isNaN(this.h)&&isNaN(t.w)&&isNaN(t.h)),e}},{key:"destroy",value:function(){this.w=null,this.h=null}}]),t}();i.SuperMap.Size=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Bounds=void 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=o(0),n=o(121),r=o(4),a=o(120),s=o(1);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * This program are made available under the terms of the Apache License, Version 2.0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var u=e.Bounds=function(){function t(e,o,l,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),s.Util.isArray(e)&&(i=e[3],l=e[2],o=e[1],e=e[0]),this.left=null!=e?s.Util.toFloat(e):this.left,this.bottom=null!=o?s.Util.toFloat(o):this.bottom,this.right=null!=l?s.Util.toFloat(l):this.right,this.top=null!=i?s.Util.toFloat(i):this.top,this.centerLonLat=null,this.CLASS_NAME="SuperMap.Bounds"}return l(t,[{key:"clone",value:function(){return new t(this.left,this.bottom,this.right,this.top)}},{key:"equals",value:function(t){var e=!1;return null!=t&&(e=this.left===t.left&&this.right===t.right&&this.top===t.top&&this.bottom===t.bottom),e}},{key:"toString",value:function(){return[this.left,this.bottom,this.right,this.top].join(",")}},{key:"toArray",value:function(t){return!0===t?[this.bottom,this.left,this.top,this.right]:[this.left,this.bottom,this.right,this.top]}},{key:"toBBOX",value:function(t,e){null==t&&(t=6);var o=Math.pow(10,t),l=Math.round(this.left*o)/o,i=Math.round(this.bottom*o)/o,n=Math.round(this.right*o)/o,r=Math.round(this.top*o)/o;return!0===e?i+","+l+","+r+","+n:l+","+i+","+n+","+r}},{key:"getWidth",value:function(){return this.right-this.left}},{key:"getHeight",value:function(){return this.top-this.bottom}},{key:"getSize",value:function(){return new n.Size(this.getWidth(),this.getHeight())}},{key:"getCenterPixel",value:function(){return new r.Pixel((this.left+this.right)/2,(this.bottom+this.top)/2)}},{key:"getCenterLonLat",value:function(){return this.centerLonLat||(this.centerLonLat=new a.LonLat((this.left+this.right)/2,(this.bottom+this.top)/2)),this.centerLonLat}},{key:"scale",value:function(e,o){var l,i;return e=e||1,null==o&&(o=this.getCenterLonLat()),"SuperMap.LonLat"===o.CLASS_NAME?(l=o.lon,i=o.lat):(l=o.x,i=o.y),new t((this.left-l)*e+l,(this.bottom-i)*e+i,(this.right-l)*e+l,(this.top-i)*e+i)}},{key:"add",value:function(e,o){if(null==e||null==o)throw new TypeError("Bounds.add cannot receive null values");return new t(this.left+e,this.bottom+o,this.right+e,this.top+o)}},{key:"extend",value:function(e){var o=null;if(e){switch(e.CLASS_NAME){case"SuperMap.LonLat":o=new t(e.lon,e.lat,e.lon,e.lat);break;case"SuperMap.Geometry.Point":o=new t(e.x,e.y,e.x,e.y);break;case"SuperMap.Bounds":o=e}o&&(this.centerLonLat=null,(null==this.left||o.left<this.left)&&(this.left=o.left),(null==this.bottom||o.bottom<this.bottom)&&(this.bottom=o.bottom),(null==this.right||o.right>this.right)&&(this.right=o.right),(null==this.top||o.top>this.top)&&(this.top=o.top))}}},{key:"containsLonLat",value:function(t,e){"boolean"==typeof e&&(e={inclusive:e}),e=e||{};var o=this.contains(t.lon,t.lat,e.inclusive),l=e.worldBounds;if(l&&!o){var i=l.getWidth(),n=(l.left+l.right)/2,r=Math.round((t.lon-n)/i);o=this.containsLonLat({lon:t.lon-r*i,lat:t.lat},{inclusive:e.inclusive})}return o}},{key:"containsPixel",value:function(t,e){return this.contains(t.x,t.y,e)}},{key:"contains",value:function(t,e,o){if(null==o&&(o=!0),null==t||null==e)return!1;t=s.Util.toFloat(t),e=s.Util.toFloat(e);var l=!1;return l=o?t>=this.left&&t<=this.right&&e>=this.bottom&&e<=this.top:t>this.left&&t<this.right&&e>this.bottom&&e<this.top,l}},{key:"intersectsBounds",value:function(t,e){if("boolean"==typeof e&&(e={inclusive:e}),(e=e||{}).worldBounds){var o=this.wrapDateLine(e.worldBounds);t=t.wrapDateLine(e.worldBounds)}else o=this;null==e.inclusive&&(e.inclusive=!0);var l=!1,i=o.left===t.right||o.right===t.left||o.top===t.bottom||o.bottom===t.top;if(e.inclusive||!i){var n=t.bottom>=o.bottom&&t.bottom<=o.top||o.bottom>=t.bottom&&o.bottom<=t.top,r=t.top>=o.bottom&&t.top<=o.top||o.top>t.bottom&&o.top<t.top,a=t.left>=o.left&&t.left<=o.right||o.left>=t.left&&o.left<=t.right,s=t.right>=o.left&&t.right<=o.right||o.right>=t.left&&o.right<=t.right;l=(n||r)&&(a||s)}if(e.worldBounds&&!l){var u=e.worldBounds,p=u.getWidth(),c=!u.containsBounds(o),P=!u.containsBounds(t);c&&!P?(t=t.add(-p,0),l=o.intersectsBounds(t,{inclusive:e.inclusive})):P&&!c&&(o=o.add(-p,0),l=t.intersectsBounds(o,{inclusive:e.inclusive}))}return l}},{key:"containsBounds",value:function(t,e,o){null==e&&(e=!1),null==o&&(o=!0);var l=this.contains(t.left,t.bottom,o),i=this.contains(t.right,t.bottom,o),n=this.contains(t.left,t.top,o),r=this.contains(t.right,t.top,o);return e?l||i||n||r:l&&i&&n&&r}},{key:"determineQuadrant",value:function(t){var e="",o=this.getCenterLonLat();return e+=t.lat<o.lat?"b":"t",e+=t.lon<o.lon?"l":"r"}},{key:"wrapDateLine",value:function(t,e){var o=(e=e||{}).leftTolerance||0,l=e.rightTolerance||0,i=this.clone();if(t){for(var n=t.getWidth();i.left<t.left&&i.right-l<=t.left;)i=i.add(n,0);for(;i.left+o>=t.right&&i.right>t.right;)i=i.add(-n,0);var r=i.left+o;r<t.right&&r>t.left&&i.right-l>t.right&&(i=i.add(-n,0))}return i}},{key:"toServerJSONObject",value:function(){return{rightTop:{x:this.right,y:this.top},leftBottom:{x:this.left,y:this.bottom},left:this.left,right:this.right,top:this.top,bottom:this.bottom}}},{key:"destroy",value:function(){this.left=null,this.right=null,this.top=null,this.bottom=null,this.centerLonLat=null}}],[{key:"fromString",value:function(e,o){var l=e.split(",");return t.fromArray(l,o)}},{key:"fromArray",value:function(e,o){return!0===o?new t(e[1],e[0],e[3],e[2]):new t(e[0],e[1],e[2],e[3])}},{key:"fromSize",value:function(e){return new t(0,e.h,e.w,0)}},{key:"oppositeQuadrant",value:function(t){var e="";return e+="t"===t.charAt(0)?"b":"t",e+="l"===t.charAt(1)?"r":"l"}}]),t}();i.SuperMap.Bounds=u},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Format=void 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=o(0),n=o(1);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * This program are made available under the terms of the Apache License, Version 2.0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var r=e.Format=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=null,this.keepData=!1,n.Util.extend(this,e),this.options=e,this.CLASS_NAME="SuperMap.Format"}return l(t,[{key:"destroy",value:function(){}},{key:"read",value:function(t){}},{key:"write",value:function(t){}}]),t}();i.SuperMap.Format=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSONFormat=void 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},i=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}}(),n=o(0),r=o(123);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                * This program are made available under the terms of the Apache License, Version 2.0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
var a=e.JSONFormat=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.indent="    ",o.space=" ",o.newline="\n",o.level=0,o.pretty=!1,o.nativeJSON=!(!window.JSON||"function"!=typeof JSON.parse||"function"!=typeof JSON.stringify),o.CLASS_NAME="SuperMap.Format.JSON",o.serialize={object:function(t){if(null==t)return"null";if(t.constructor===Date)return this.serialize.date.apply(this,[t]);if(t.constructor===Array)return this.serialize.array.apply(this,[t]);var e,o,l,i=["{"];this.level+=1;var n=!1;for(e in t)t.hasOwnProperty(e)&&(o=this.write.apply(this,[e,this.pretty]),l=this.write.apply(this,[t[e],this.pretty]),null!=o&&null!=l&&(n&&i.push(","),i.push(this.writeNewline(),this.writeIndent(),o,":",this.writeSpace(),l),n=!0));return this.level-=1,i.push(this.writeNewline(),this.writeIndent(),"}"),i.join("")},array:function(t){var e,o=["["];this.level+=1;for(var l=0,i=t.length;l<i;++l)null!=(e=this.write.apply(this,[t[l],this.pretty]))&&(l>0&&o.push(","),o.push(this.writeNewline(),this.writeIndent(),e));return this.level-=1,o.push(this.writeNewline(),this.writeIndent(),"]"),o.join("")},string:function(t){var e={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return/["\\\x00-\x1f]/.test(t)?'"'+t.replace(/([\x00-\x1f\\"])/g,function(t,o){var l=e[o];return l||(l=o.charCodeAt(),"\\u00"+Math.floor(l/16).toString(16)+(l%16).toString(16))})+'"':'"'+t+'"'},number:function(t){return isFinite(t)?String(t):"null"},boolean:function(t){return String(t)},date:function(t){function e(t){return t<10?"0"+t:t}return'"'+t.getFullYear()+"-"+e(t.getMonth()+1)+"-"+e(t.getDate())+"T"+e(t.getHours())+":"+e(t.getMinutes())+":"+e(t.getSeconds())+'"'}},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,r.Format),i(e,[{key:"read",value:function(t,e){var o;if(this.nativeJSON)try{o=JSON.parse(t,e)}catch(t){}return this.keepData&&(this.data=o),o}},{key:"write",value:function(t,e){this.pretty=!!e;var o=null,i=void 0===t?"undefined":l(t);if(this.serialize[i])try{o=!this.pretty&&this.nativeJSON?JSON.stringify(t):this.serialize[i].apply(this,[t])}catch(t){}return o}},{key:"writeIndent",value:function(){var t=[];if(this.pretty)for(var e=0;e<this.level;++e)t.push(this.indent);return t.join("")}},{key:"writeNewline",value:function(){return this.pretty?this.newline:""}},{key:"writeSpace",value:function(){return this.pretty?this.space:""}}]),e}();n.SuperMap.Format.JSON=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GetFeatureMode=e.AggregationQueryBuilderType=e.AggregationType=e.TopologyValidatorRule=e.SummaryType=e.StatisticAnalystMode=e.AnalystSizeUnit=e.AnalystAreaUnit=e.ClipAnalystMode=e.ChartType=e.ClientType=e.Exponent=e.VariogramMode=e.InterpolationAlgorithmType=e.SearchMode=e.PixelFormat=e.StatisticMode=e.UGCLayerType=e.LayerType=e.ColorSpaceType=e.GridType=e.TransferPreference=e.TransferTactic=e.EditType=e.DataReturnMode=e.SurfaceAnalystMethod=e.SmoothMethod=e.OutputType=e.OverlayOperationType=e.BufferEndType=e.TurnType=e.SupplyCenterType=e.SideType=e.DirectionType=e.LabelOverLengthMode=e.LabelBackShape=e.AlongLineDirection=e.FillGradientMode=e.TextAlignment=e.ColorGradientType=e.ThemeType=e.RangeMode=e.GraduatedMode=e.GraphAxesTextDisplayMode=e.ThemeGraphType=e.ThemeGraphTextFormat=e.EngineType=e.BufferRadiusUnit=e.Unit=e.MeasureMode=e.SpatialRelationType=e.SpatialQueryMode=e.JoinType=e.QueryOption=e.GeometryType=e.ServerType=e.DataFormat=void 0;var l=o(0),i=l.SuperMap.DataFormat={GEOJSON:"GEOJSON",ISERVER:"ISERVER"};
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
    * This program are made available under the terms of the Apache License, Version 2.0
    * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
e.DataFormat=i;var n=l.SuperMap.ServerType={ISERVER:"ISERVER",IPORTAL:"IPORTAL",ONLINE:"ONLINE"};e.ServerType=n;var r=l.SuperMap.GeometryType={LINE:"LINE",LINEM:"LINEM",POINT:"POINT",REGION:"REGION",ELLIPSE:"ELLIPSE",CIRCLE:"CIRCLE",TEXT:"TEXT",RECTANGLE:"RECTANGLE",UNKNOWN:"UNKNOWN"};e.GeometryType=r;var a=l.SuperMap.QueryOption={ATTRIBUTE:"ATTRIBUTE",ATTRIBUTEANDGEOMETRY:"ATTRIBUTEANDGEOMETRY",GEOMETRY:"GEOMETRY"};e.QueryOption=a;var s=l.SuperMap.JoinType={INNERJOIN:"INNERJOIN",LEFTJOIN:"LEFTJOIN"};e.JoinType=s;var u=l.SuperMap.SpatialQueryMode={CONTAIN:"CONTAIN",CROSS:"CROSS",DISJOINT:"DISJOINT",IDENTITY:"IDENTITY",INTERSECT:"INTERSECT",NONE:"NONE",OVERLAP:"OVERLAP",TOUCH:"TOUCH",WITHIN:"WITHIN"};e.SpatialQueryMode=u;var p=l.SuperMap.SpatialRelationType={CONTAIN:"CONTAIN",INTERSECT:"INTERSECT",WITHIN:"WITHIN"};e.SpatialRelationType=p;var c=l.SuperMap.MeasureMode={DISTANCE:"DISTANCE",AREA:"AREA"};e.MeasureMode=c;var P=l.SuperMap.Unit={METER:"METER",KILOMETER:"KILOMETER",MILE:"MILE",YARD:"YARD",DEGREE:"DEGREE",MILLIMETER:"MILLIMETER",CENTIMETER:"CENTIMETER",INCH:"INCH",DECIMETER:"DECIMETER",FOOT:"FOOT",SECOND:"SECOND",MINUTE:"MINUTE",RADIAN:"RADIAN"};e.Unit=P;var h=l.SuperMap.BufferRadiusUnit={CENTIMETER:"CENTIMETER",DECIMETER:"DECIMETER",FOOT:"FOOT",INCH:"INCH",KILOMETER:"KILOMETER",METER:"METER",MILE:"MILE",MILLIMETER:"MILLIMETER",YARD:"YARD"};e.BufferRadiusUnit=h;var g=l.SuperMap.EngineType={IMAGEPLUGINS:"IMAGEPLUGINS",OGC:"OGC",ORACLEPLUS:"ORACLEPLUS",SDBPLUS:"SDBPLUS",SQLPLUS:"SQLPLUS",UDB:"UDB"};e.EngineType=g;var y=l.SuperMap.ThemeGraphTextFormat={CAPTION:"CAPTION",CAPTION_PERCENT:"CAPTION_PERCENT",CAPTION_VALUE:"CAPTION_VALUE",PERCENT:"PERCENT",VALUE:"VALUE"};e.ThemeGraphTextFormat=y;var f=l.SuperMap.ThemeGraphType={AREA:"AREA",BAR:"BAR",BAR3D:"BAR3D",LINE:"LINE",PIE:"PIE",PIE3D:"PIE3D",POINT:"POINT",RING:"RING",ROSE:"ROSE",ROSE3D:"ROSE3D",STACK_BAR:"STACK_BAR",STACK_BAR3D:"STACK_BAR3D",STEP:"STEP"};e.ThemeGraphType=f;var S=l.SuperMap.GraphAxesTextDisplayMode={ALL:"ALL",NONE:"NONE",YAXES:"YAXES"};e.GraphAxesTextDisplayMode=S;var A=l.SuperMap.GraduatedMode={CONSTANT:"CONSTANT",LOGARITHM:"LOGARITHM",SQUAREROOT:"SQUAREROOT"};e.GraduatedMode=A;var d=l.SuperMap.RangeMode={CUSTOMINTERVAL:"CUSTOMINTERVAL",EQUALINTERVAL:"EQUALINTERVAL",LOGARITHM:"LOGARITHM",QUANTILE:"QUANTILE",SQUAREROOT:"SQUAREROOT",STDDEVIATION:"STDDEVIATION"};e.RangeMode=d;var M=l.SuperMap.ThemeType={DOTDENSITY:"DOTDENSITY",GRADUATEDSYMBOL:"GRADUATEDSYMBOL",GRAPH:"GRAPH",LABEL:"LABEL",RANGE:"RANGE",UNIQUE:"UNIQUE"};e.ThemeType=M;var v=l.SuperMap.ColorGradientType={BLACK_WHITE:"BLACKWHITE",BLUE_BLACK:"BLUEBLACK",BLUE_RED:"BLUERED",BLUE_WHITE:"BLUEWHITE",CYAN_BLACK:"CYANBLACK",CYAN_BLUE:"CYANBLUE",CYAN_GREEN:"CYANGREEN",CYAN_WHITE:"CYANWHITE",GREEN_BLACK:"GREENBLACK",GREEN_BLUE:"GREENBLUE",GREEN_ORANGE_VIOLET:"GREENORANGEVIOLET",GREEN_RED:"GREENRED",GREEN_WHITE:"GREENWHITE",PINK_BLACK:"PINKBLACK",PINK_BLUE:"PINKBLUE",PINK_RED:"PINKRED",PINK_WHITE:"PINKWHITE",RAIN_BOW:"RAINBOW",RED_BLACK:"REDBLACK",RED_WHITE:"REDWHITE",SPECTRUM:"SPECTRUM",TERRAIN:"TERRAIN",YELLOW_BLACK:"YELLOWBLACK",YELLOW_BLUE:"YELLOWBLUE",YELLOW_GREEN:"YELLOWGREEN",YELLOW_RED:"YELLOWRED",YELLOW_WHITE:"YELLOWWHITE"};e.ColorGradientType=v;var b=l.SuperMap.TextAlignment={TOPLEFT:"TOPLEFT",TOPCENTER:"TOPCENTER",TOPRIGHT:"TOPRIGHT",BASELINELEFT:"BASELINELEFT",BASELINECENTER:"BASELINECENTER",BASELINERIGHT:"BASELINERIGHT",BOTTOMLEFT:"BOTTOMLEFT",BOTTOMCENTER:"BOTTOMCENTER",BOTTOMRIGHT:"BOTTOMRIGHT",MIDDLELEFT:"MIDDLELEFT",MIDDLECENTER:"MIDDLECENTER",MIDDLERIGHT:"MIDDLERIGHT"};e.TextAlignment=b;var m=l.SuperMap.FillGradientMode={NONE:"NONE",LINEAR:"LINEAR",RADIAL:"RADIAL",CONICAL:"CONICAL",SQUARE:"SQUARE"};e.FillGradientMode=m;var T=l.SuperMap.AlongLineDirection={NORMAL:"ALONG_LINE_NORMAL",LB_TO_RT:"LEFT_BOTTOM_TO_RIGHT_TOP",LT_TO_RB:"LEFT_TOP_TO_RIGHT_BOTTOM",RB_TO_LT:"RIGHT_BOTTOM_TO_LEFT_TOP",RT_TO_LB:"RIGHT_TOP_TO_LEFT_BOTTOM"};e.AlongLineDirection=T;var L=l.SuperMap.LabelBackShape={DIAMOND:"DIAMOND",ELLIPSE:"ELLIPSE",MARKER:"MARKER",NONE:"NONE",RECT:"RECT",ROUNDRECT:"ROUNDRECT",TRIANGLE:"TRIANGLE"};e.LabelBackShape=L;var O=l.SuperMap.LabelOverLengthMode={NEWLINE:"NEWLINE",NONE:"NONE",OMIT:"OMIT"};e.LabelOverLengthMode=O;var E=l.SuperMap.DirectionType={EAST:"EAST",NONE:"NONE",NORTH:"NORTH",SOURTH:"SOURTH",WEST:"WEST"};e.DirectionType=E;var w=l.SuperMap.SideType={LEFT:"LEFT",MIDDLE:"MIDDLE",NONE:"NONE",RIGHT:"RIGHT"};e.SideType=w;var x=l.SuperMap.SupplyCenterType={FIXEDCENTER:"FIXEDCENTER",NULL:"NULL",OPTIONALCENTER:"OPTIONALCENTER"};e.SupplyCenterType=x;var C=l.SuperMap.TurnType={AHEAD:"AHEAD",BACK:"BACK",END:"END",LEFT:"LEFT",NONE:"NONE",RIGHT:"RIGHT"};e.TurnType=C;var I=l.SuperMap.BufferEndType={FLAT:"FLAT",ROUND:"ROUND"};e.BufferEndType=I;var R=l.SuperMap.OverlayOperationType={CLIP:"CLIP",ERASE:"ERASE",IDENTITY:"IDENTITY",INTERSECT:"INTERSECT",UNION:"UNION",UPDATE:"UPDATE",XOR:"XOR"};e.OverlayOperationType=R;var _=l.SuperMap.OutputType={INDEXEDHDFS:"INDEXEDHDFS",UDB:"UDB",MONGODB:"MONGODB",PG:"PG"};e.OutputType=_;var U=l.SuperMap.SmoothMethod={BSPLINE:"BSPLINE",POLISH:"POLISH"};e.SmoothMethod=U;var N=l.SuperMap.SurfaceAnalystMethod={ISOLINE:"ISOLINE",ISOREGION:"ISOREGION"};e.SurfaceAnalystMethod=N;var D=l.SuperMap.DataReturnMode={DATASET_AND_RECORDSET:"DATASET_AND_RECORDSET",DATASET_ONLY:"DATASET_ONLY",RECORDSET_ONLY:"RECORDSET_ONLY"};e.DataReturnMode=D;var B=l.SuperMap.EditType={ADD:"add",UPDATE:"update",DELETE:"delete"};e.EditType=B;var k=l.SuperMap.TransferTactic={LESS_TIME:"LESS_TIME",LESS_TRANSFER:"LESS_TRANSFER",LESS_WALK:"LESS_WALK",MIN_DISTANCE:"MIN_DISTANCE"};e.TransferTactic=k;var V=l.SuperMap.TransferPreference={BUS:"BUS",SUBWAY:"SUBWAY",NO_SUBWAY:"NO_SUBWAY",NONE:"NONE"};e.TransferPreference=V;var Y=l.SuperMap.GridType={CROSS:"CROSS",GRID:"GRID",POINT:"POINT"};e.GridType=Y;var j=l.SuperMap.ColorSpaceType={CMYK:"CMYK",RGB:"RGB"};e.ColorSpaceType=j;var F=l.SuperMap.LayerType={UGC:"UGC",WMS:"WMS",WFS:"WFS",CUSTOM:"CUSTOM"};e.LayerType=F;var G=l.SuperMap.UGCLayerType={THEME:"THEME",VECTOR:"VECTOR",GRID:"GRID",IMAGE:"IMAGE"};e.UGCLayerType=G;var z=l.SuperMap.StatisticMode={AVERAGE:"AVERAGE",MAX:"MAX",MIN:"MIN",STDDEVIATION:"STDDEVIATION",SUM:"SUM",VARIANCE:"VARIANCE"};e.StatisticMode=z;var W=l.SuperMap.PixelFormat={BIT16:"BIT16",BIT32:"BIT32",BIT64:"BIT64",SINGLE:"SINGLE",DOUBLE:"DOUBLE",UBIT1:"UBIT1",UBIT4:"UBIT4",UBIT8:"UBIT8",UBIT24:"UBIT24",UBIT32:"UBIT32"};e.PixelFormat=W;var H=l.SuperMap.SearchMode={KDTREE_FIXED_COUNT:"KDTREE_FIXED_COUNT",KDTREE_FIXED_RADIUS:"KDTREE_FIXED_RADIUS",NONE:"NONE",QUADTREE:"QUADTREE"};e.SearchMode=H;var q=l.SuperMap.InterpolationAlgorithmType={KRIGING:"KRIGING",SimpleKriging:"SimpleKriging",UniversalKriging:"UniversalKriging"};e.InterpolationAlgorithmType=q;var X=l.SuperMap.VariogramMode={EXPONENTIAL:"EXPONENTIAL",GAUSSIAN:"GAUSSIAN",SPHERICAL:"SPHERICAL"};e.VariogramMode=X;var J=l.SuperMap.Exponent={EXP1:"EXP1",EXP2:"EXP2"};e.Exponent=J;var K=l.SuperMap.ClientType={IP:"IP",REFERER:"Referer",REQUESTIP:"RequestIP",NONE:"NONE",SERVER:"SERVER",WEB:"WEB"};e.ClientType=K;var Q=l.SuperMap.ChartType={BAR:"Bar",BAR3D:"Bar3D",CIRCLE:"Circle",PIE:"Pie",POINT:"Point",LINE:"Line",RING:"Ring"};e.ChartType=Q;var Z=l.SuperMap.ClipAnalystMode={CLIP:"clip",INTERSECT:"intersect"};e.ClipAnalystMode=Z;var $=l.SuperMap.AnalystAreaUnit={SQUAREMETER:"SquareMeter",SQUAREKILOMETER:"SquareKiloMeter",HECTARE:"Hectare",ARE:"Are",ACRE:"Acre",SQUAREFOOT:"SquareFoot",SQUAREYARD:"SquareYard",SQUAREMILE:"SquareMile"};e.AnalystAreaUnit=$;var tt=l.SuperMap.AnalystSizeUnit={METER:"Meter",KILOMETER:"Kilometer",YARD:"Yard",FOOT:"Foot",MILE:"Mile"};e.AnalystSizeUnit=tt;var et=l.SuperMap.StatisticAnalystMode={MAX:"max",MIN:"min",AVERAGE:"average",SUM:"sum",VARIANCE:"variance",STDDEVIATION:"stdDeviation"};e.StatisticAnalystMode=et;var ot=l.SuperMap.SummaryType={SUMMARYMESH:"SUMMARYMESH",SUMMARYREGION:"SUMMARYREGION"};e.SummaryType=ot;var lt=l.SuperMap.TopologyValidatorRule={REGIONNOOVERLAP:"REGIONNOOVERLAP",REGIONNOOVERLAPWITH:"REGIONNOOVERLAPWITH",REGIONCONTAINEDBYREGION:"REGIONCONTAINEDBYREGION",REGIONCOVEREDBYREGION:"REGIONCOVEREDBYREGION",LINENOOVERLAP:"LINENOOVERLAP",LINENOOVERLAPWITH:"LINENOOVERLAPWITH",POINTNOIDENTICAL:"POINTNOIDENTICAL"};e.TopologyValidatorRule=lt;var it=l.SuperMap.AggregationType={GEOHASH_GRID:"geohash_grid",FILTER:"filter"};e.AggregationType=it;var nt=l.SuperMap.AggregationQueryBuilderType={GEO_BOUNDING_BOX:"geo_bounding_box"};e.AggregationQueryBuilderType=nt;var rt=l.SuperMap.GetFeatureMode={BOUNDS:"BOUNDS",BUFFER:"BUFFER",ID:"ID",SPATIAL:"SPATIAL",SQL:"SQL"};e.GetFeatureMode=rt},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SecurityManager=void 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=o(0),n=o(1),r=o(6);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * This program are made available under the terms of the Apache License, Version 2.0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var a=e.SecurityManager=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return l(t,null,[{key:"generateToken",value:function(t,e){var o=this.servers[t];if(o)return r.FetchRequest.post(o.tokenServiceUrl,JSON.stringify(e.toJSON())).then(function(t){return t.text()})}},{key:"registerServers",value:function(t){this.servers=this.servers||{},n.Util.isArray(t)||(t=[t]);for(var e=0;e<t.length;e++){var o=t[e];this.servers[o.server]=o}}},{key:"registerToken",value:function(t,e){if(this.tokens=this.tokens||{},t&&e){var o=this._getTokenStorageKey(t);this.tokens[o]=e}}},{key:"registerKey",value:function(t,e){if(this.keys=this.keys||{},t&&!(t.length<1)&&e){t=n.Util.isArray(t)?t:[t];for(var o=0;o<t.length;o++){var l=this._getUrlRestString(t[0])||t[0];this.keys[l]=e}}}},{key:"getServerInfo",value:function(t){return this.servers=this.servers||{},this.servers[t]}},{key:"getToken",value:function(t){if(t){this.tokens=this.tokens||{};var e=this._getTokenStorageKey(t);return this.tokens[e]}}},{key:"getKey",value:function(t){this.keys=this.keys||{};var e=this._getUrlRestString(t)||t;return this.keys[e]}},{key:"loginiServer",value:function(t,e,o,l){t+="/"===t.substr(t.length-1,1)?"services/security/login.json":"/services/security/login.json";var i={username:e&&e.toString(),password:o&&o.toString(),rememberme:l};i=JSON.stringify(i);return r.FetchRequest.post(t,i,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}).then(function(t){return t.json()})}},{key:"logoutiServer",value:function(t){t+="/"===t.substr(t.length-1,1)?"services/security/logout":"/services/security/logout";return r.FetchRequest.get(t,"",{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withoutFormatSuffix:!0}).then(function(){return!0}).catch(function(){return!1})}},{key:"loginOnline",value:function(e,o){var l=t.SSO+"/login?service="+e;this._open(l,o)}},{key:"loginiPortal",value:function(t,e,o){t+="/"===t.substr(t.length-1,1)?"web/login.json":"/web/login.json";var l={username:e&&e.toString(),password:o&&o.toString()};l=JSON.stringify(l);return r.FetchRequest.post(t,l,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withCredentials:!0}).then(function(t){return t.json()})}},{key:"logoutiPortal",value:function(t){t+="/"===t.substr(t.length-1,1)?"services/security/logout":"/services/security/logout";return r.FetchRequest.get(t,"",{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withCredentials:!0,withoutFormatSuffix:!0}).then(function(){return!0}).catch(function(){return!1})}},{key:"loginManager",value:function(t,e,o){if(n.Util.isInTheSameDomain(t)){var l="/"===t.substr(t.length-1,1)?t+"icloud/security/tokens.json":t+"/icloud/security/tokens.json",i=e||{},a={username:i.userName&&i.userName.toString(),password:i.password&&i.password.toString()};a=JSON.stringify(a);var s=this;return r.FetchRequest.post(l,a,{headers:{Accept:"*/*","Content-Type":"application/json"}}).then(function(t){t.text().then(function(t){return s.imanagerToken=t,t})})}var u=!o||o.isNewTab;this._open(t,u)}},{key:"destroyAllCredentials",value:function(){this.keys=null,this.tokens=null,this.servers=null}},{key:"destroyToken",value:function(t){if(t){var e=this._getTokenStorageKey(t);this.tokens=this.tokens||{},this.tokens[e]&&delete this.tokens[e]}}},{key:"destroyKey",value:function(t){if(t){this.keys=this.keys||{};var e=this._getUrlRestString(t)||t;this.keys[e]&&delete this.keys[e]}}},{key:"_open",value:function(t,e){e=null==e||e;var o=window.screen.availWidth/2-this.INNER_WINDOW_WIDTH/2,l=window.screen.availHeight/2-this.INNER_WINDOW_HEIGHT/2,i="height="+this.INNER_WINDOW_HEIGHT+", width="+this.INNER_WINDOW_WIDTH+",top="+l+", left="+o+",toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no";e?window.open(t,"login"):window.open(t,"login",i)}},{key:"_getTokenStorageKey",value:function(t){var e=t.match(/(.*?):\/\/([^\/]+)/i);return e?e[0]:t}},{key:"_getUrlRestString",value:function(t){if(!t)return t;var e=t.match(/http:\/\/(.*\/rest)/i);return e?e[0]:t}}]),t}();a.INNER_WINDOW_WIDTH=600,a.INNER_WINDOW_HEIGHT=600,a.SSO="https://sso.supermap.com",a.ONLINE="http://www.supermapol.com",i.SuperMap.SecurityManager=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Credential=void 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=o(0);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * This program are made available under the terms of the Apache License, Version 2.0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var n=e.Credential=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.value=e||"",this.name=o||"token",this.CLASS_NAME="SuperMap.Credential"}return l(t,[{key:"getUrlParameters",value:function(){return this.name+"="+this.value}},{key:"getValue",value:function(){return this.value}},{key:"destroy",value:function(){this.value=null,this.name=null}}]),t}();n.CREDENTIAL=null,i.SuperMap.Credential=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var l=o(0),i=o(1),n=e.Event=l.SuperMap.Event={observers:!1,KEY_SPACE:32,KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,element:function(t){return t.target||t.srcElement},isSingleTouch:function(t){return t.touches&&1===t.touches.length},isMultiTouch:function(t){return t.touches&&t.touches.length>1},isLeftClick:function(t){return t.which&&1===t.which||t.button&&1===t.button},isRightClick:function(t){return t.which&&3===t.which||t.button&&2===t.button},stop:function(t,e){e||(t.preventDefault?t.preventDefault():t.returnValue=!1),t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},findElement:function(t,e){for(var o=l.SuperMap.Event.element(t);o.parentNode&&(!o.tagName||o.tagName.toUpperCase()!=e.toUpperCase());)o=o.parentNode;return o},observe:function(t,e,o,l){var n=i.Util.getElement(t);if(l=l||!1,"keypress"===e&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||n.attachEvent)&&(e="keydown"),this.observers||(this.observers={}),!n._eventCacheID){var r="eventCacheID_";n.id&&(r=n.id+"_"+r),n._eventCacheID=i.Util.createUniqueID(r)}var a=n._eventCacheID;this.observers[a]||(this.observers[a]=[]),this.observers[a].push({element:n,name:e,observer:o,useCapture:l}),n.addEventListener?n.addEventListener(e,o,l):n.attachEvent&&n.attachEvent("on"+e,o)},stopObservingElement:function(t){var e=i.Util.getElement(t)._eventCacheID;this._removeElementObservers(l.SuperMap.Event.observers[e])},_removeElementObservers:function(t){if(t)for(var e=t.length-1;e>=0;e--){var o=t[e],i=new Array(o.element,o.name,o.observer,o.useCapture);l.SuperMap.Event.stopObserving.apply(this,i)}},stopObserving:function(t,e,o,n){n=n||!1;var r=i.Util.getElement(t),a=r._eventCacheID;"keypress"===e&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||r.detachEvent)&&(e="keydown");var s=!1,u=l.SuperMap.Event.observers[a];if(u)for(var p=0;!s&&p<u.length;){var c=u[p];if(c.name===e&&c.observer===o&&c.useCapture===n){u.splice(p,1),0==u.length&&delete l.SuperMap.Event.observers[a],s=!0;break}p++}return s&&(r.removeEventListener?r.removeEventListener(e,o,n):r&&r.detachEvent&&r.detachEvent("on"+e,o)),s},unloadCache:function(){if(l.SuperMap.Event&&l.SuperMap.Event.observers){for(var t in l.SuperMap.Event.observers){var e=l.SuperMap.Event.observers[t];l.SuperMap.Event._removeElementObservers.apply(this,[e])}l.SuperMap.Event.observers=!1}},CLASS_NAME:"SuperMap.Event"};l.SuperMap.Event=n,l.SuperMap.Event.observe(window,"unload",l.SuperMap.Event.unloadCache,!1)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Events=void 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},i=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}}(),n=o(0),r=o(4),a=o(128),s=o(2),u=o(1);var p=e.Events=function(){function t(e,o,l,i,n){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.BROWSER_EVENTS=["mouseover","mouseout","mousedown","mouseup","mousemove","click","dblclick","rightclick","dblrightclick","resize","focus","blur","touchstart","touchmove","touchend","keydown","MSPointerDown","MSPointerUp","pointerdown","pointerup","MSGestureStart","MSGestureChange","MSGestureEnd","contextmenu"],this.listeners={},this.object=e,this.element=null,this.eventTypes=[],this.eventHandler=null,this.fallThrough=i,this.includeXY=!1,this.extensions={},this.extensionCount={},this.clearMouseListener=null,u.Util.extend(this,n),null!=l)for(var r=0,a=l.length;r<a;r++)this.addEventType(l[r]);null!=o&&this.attachToElement(o),this.CLASS_NAME="SuperMap.Events"}return i(t,[{key:"destroy",value:function(){for(var t in this.extensions)"boolean"!=typeof this.extensions[t]&&this.extensions[t].destroy();this.extensions=null,this.element&&(a.Event.stopObservingElement(this.element),this.element.hasScrollEvent&&a.Event.stopObserving(window,"scroll",this.clearMouseListener)),this.element=null,this.listeners=null,this.object=null,this.eventTypes=null,this.fallThrough=null,this.eventHandler=null}},{key:"addEventType",value:function(t){this.listeners[t]||(this.eventTypes.push(t),this.listeners[t]=[])}},{key:"attachToElement",value:function(t){this.element?a.Event.stopObservingElement(this.element):(this.eventHandler=s.FunctionExt.bindAsEventListener(this.handleBrowserEvent,this),this.clearMouseListener=s.FunctionExt.bind(this.clearMouseCache,this)),this.element=t;for(var e=0,o=this.BROWSER_EVENTS.length;e<o;e++){var l=this.BROWSER_EVENTS[e];this.addEventType(l),a.Event.observe(t,l,this.eventHandler)}a.Event.observe(t,"dragstart",a.Event.stop)}},{key:"on",value:function(t){for(var e in t)"scope"!==e&&t.hasOwnProperty(e)&&this.register(e,t.scope,t[e])}},{key:"register",value:function(e,o,i,n){if(e in t&&!this.extensions[e]&&(this.extensions[e]=new t[e](this)),null!=i&&-1!==u.Util.indexOf(this.eventTypes,e)){null==o&&(o=this.object);var r=this.listeners[e];r||(r=[],this.listeners[e]=r,this.extensionCount[e]=0);var a={obj:o,func:i};n?(r.splice(this.extensionCount[e],0,a),"object"===(void 0===n?"undefined":l(n))&&n.extension&&this.extensionCount[e]++):r.push(a)}}},{key:"registerPriority",value:function(t,e,o){this.register(t,e,o,!0)}},{key:"un",value:function(t){for(var e in t)"scope"!==e&&t.hasOwnProperty(e)&&this.unregister(e,t.scope,t[e])}},{key:"unregister",value:function(t,e,o){null==e&&(e=this.object);var l=this.listeners[t];if(null!=l)for(var i=0,n=l.length;i<n;i++)if(l[i].obj===e&&l[i].func===o){l.splice(i,1);break}}},{key:"remove",value:function(t){null!=this.listeners[t]&&(this.listeners[t]=[])}},{key:"triggerEvent",value:function(t,e){var o=this.listeners[t];if(o&&0!=o.length){var l;null==e&&(e={}),e.object=this.object,e.element=this.element,e.type||(e.type=t);for(var i=0,n=(o=o.slice()).length;i<n;i++){var r=o[i];if(void 0!=(l=r.func.apply(r.obj,[e]))&&0==l)break}return this.fallThrough||a.Event.stop(e,!0),l}}},{key:"handleBrowserEvent",value:function(t){var e=t.type,o=this.listeners[e];if(o&&0!=o.length){var l=t.touches;if(l&&l[0]){for(var i,n=0,r=0,a=l.length,s=0;s<a;++s)n+=(i=l[s]).clientX,r+=i.clientY;t.clientX=n/a,t.clientY=r/a}this.includeXY&&(t.xy=this.getMousePosition(t)),this.triggerEvent(e,t)}}},{key:"clearMouseCache",value:function(){this.element.scrolls=null,this.element.lefttop=null;var t=document.body;t&&(0==t.scrollTop&&0==t.scrollLeft||!navigator.userAgent.match(/iPhone/i))&&(this.element.offsets=null)}},{key:"getMousePosition",value:function(t){if(this.includeXY?this.element.hasScrollEvent||(a.Event.observe(window,"scroll",this.clearMouseListener),this.element.hasScrollEvent=!0):this.clearMouseCache(),!this.element.scrolls){var e=u.Util.getViewportElement();this.element.scrolls=[e.scrollLeft,e.scrollTop]}return this.element.lefttop||(this.element.lefttop=[document.documentElement.clientLeft||0,document.documentElement.clientTop||0]),this.element.offsets||(this.element.offsets=u.Util.pagePosition(this.element)),new r.Pixel(t.clientX+this.element.scrolls[0]-this.element.offsets[0]-this.element.lefttop[0],t.clientY+this.element.scrolls[1]-this.element.offsets[1]-this.element.lefttop[1])}}]),t}();n.SuperMap.Events=p,n.SuperMap.Events.prototype.BROWSER_EVENTS=["mouseover","mouseout","mousedown","mouseup","mousemove","click","dblclick","rightclick","dblrightclick","resize","focus","blur","touchstart","touchmove","touchend","keydown","MSPointerDown","MSPointerUp","pointerdown","pointerup","MSGestureStart","MSGestureChange","MSGestureEnd","contextmenu"]},function(t,e,o){"use strict";var l,i,n;i=[e,t],void 0===(n="function"==typeof(l=function(t,e){var o={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function l(t){try{delete window[t]}catch(e){window[t]=void 0}}function i(t){var e=document.getElementById(t);document.getElementsByTagName("head")[0].removeChild(e)}e.exports=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=t,r=e.timeout||o.timeout,a=e.jsonpCallback||o.jsonpCallback,s=void 0;return new Promise(function(o,u){var p=e.jsonpCallbackFunction||"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random()),c=a+"_"+p;window[p]=function(t){o({ok:!0,json:function(){return Promise.resolve(t)}}),s&&clearTimeout(s),i(c),l(p)},n+=-1===n.indexOf("?")?"?":"&";var P=document.createElement("script");P.setAttribute("src",""+n+a+"="+p),P.id=c,document.getElementsByTagName("head")[0].appendChild(P),s=setTimeout(function(){u(new Error("JSONP request to "+t+" timed out")),l(p),i(c)},r)})}})?l.apply(e,i):l)||(t.exports=n)},function(t,e,o){"use strict";!function(e){if(e.__disableNativeFetch||!e.fetch){a.prototype.append=function(t,e){t=n(t),e=r(e);var o=this.map[t];o||(o=[],this.map[t]=o),o.push(e)},a.prototype.delete=function(t){delete this.map[n(t)]},a.prototype.get=function(t){var e=this.map[n(t)];return e?e[0]:null},a.prototype.getAll=function(t){return this.map[n(t)]||[]},a.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},a.prototype.set=function(t,e){this.map[n(t)]=[r(e)]},a.prototype.forEach=function(t,e){Object.getOwnPropertyNames(this.map).forEach(function(o){this.map[o].forEach(function(l){t.call(e,l,o,this)},this)},this)};var o={blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e},l=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];P.prototype.clone=function(){return new P(this)},c.call(P.prototype),c.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new a(this.headers),url:this.url})},g.error=function(){var t=new g(null,{status:0,statusText:""});return t.type="error",t};var i=[301,302,303,307,308];g.redirect=function(t,e){if(-1===i.indexOf(e))throw new RangeError("Invalid status code");return new g(null,{status:e,headers:{location:t}})},e.Headers=a,e.Request=P,e.Response=g,e.fetch=function(t,e){return new Promise(function(l,i){var n;n=P.prototype.isPrototypeOf(t)&&!e?t:new P(t,e);var r=new XMLHttpRequest;var s=!1;function u(){if(4===r.readyState){var t=1223===r.status?204:r.status;if(t<100||t>599){if(s)return;return s=!0,void i(new TypeError("Network request failed"))}var e={status:t,statusText:r.statusText,headers:function(t){var e=new a;return t.getAllResponseHeaders().trim().split("\n").forEach(function(t){var o=t.trim().split(":"),l=o.shift().trim(),i=o.join(":").trim();e.append(l,i)}),e}(r),url:"responseURL"in r?r.responseURL:/^X-Request-URL:/m.test(r.getAllResponseHeaders())?r.getResponseHeader("X-Request-URL"):void 0},o="response"in r?r.response:r.responseText;s||(s=!0,l(new g(o,e)))}}r.onreadystatechange=u,r.onload=u,r.onerror=function(){s||(s=!0,i(new TypeError("Network request failed")))},r.open(n.method,n.url,!0);try{"include"===n.credentials&&("withCredentials"in r?r.withCredentials=!0:console&&console.warn&&console.warn("withCredentials is not supported, you can ignore this warning"))}catch(t){console&&console.warn&&console.warn("set withCredentials error:"+t)}"responseType"in r&&o.blob&&(r.responseType="blob"),n.headers.forEach(function(t,e){r.setRequestHeader(e,t)}),r.send(void 0===n._bodyInit?null:n._bodyInit)})},e.fetch.polyfill=!0,void 0!==t&&t.exports&&(t.exports=e.fetch)}function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function r(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){this.map={},t instanceof a?t.forEach(function(t,e){this.append(e,t)},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function s(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function u(t){return new Promise(function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}})}function p(t){var e=new FileReader;return e.readAsArrayBuffer(t),u(e)}function c(){return this.bodyUsed=!1,this._initBody=function(t,e){if(this._bodyInit=t,"string"==typeof t)this._bodyText=t;else if(o.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t,this._options=e;else if(o.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(t){if(!o.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t))throw new Error("unsupported BodyInit type")}else this._bodyText=""},o.blob?(this.blob=function(){var t=s(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(p)},this.text=function(){var t,e,o,l,i,n,r,a=s(this);if(a)return a;if(this._bodyBlob)return t=this._bodyBlob,e=this._options,o=new FileReader,l=e.headers.map["content-type"]?e.headers.map["content-type"].toString():"",i=/charset\=[0-9a-zA-Z\-\_]*;?/,n=t.type.match(i)||l.match(i),r=[t],n&&r.push(n[0].replace(/^charset\=/,"").replace(/;$/,"")),o.readAsText.apply(o,r),u(o);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var t=s(this);return t||Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(h)}),this.json=function(){return this.text().then(JSON.parse)},this}function P(t,e){var o,i,n=(e=e||{}).body;if(P.prototype.isPrototypeOf(t)){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new a(t.headers)),this.method=t.method,this.mode=t.mode,n||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=t;if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new a(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),l.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n,e)}function h(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var o=t.split("="),l=o.shift().replace(/\+/g," "),i=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(l),decodeURIComponent(i))}}),e}function g(t,e){e||(e={}),this._initBody(t,e),this.type="default",this.status=e.status,this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText,this.headers=e.headers instanceof a?e.headers:new a(e.headers),this.url=e.url||""}}("undefined"!=typeof self?self:void 0)},function(t,e,o){"use strict";var l,i,n=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(l===setTimeout)return setTimeout(t,0);if((l===r||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}!function(){try{l="function"==typeof setTimeout?setTimeout:r}catch(t){l=r}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var u,p=[],c=!1,P=-1;function h(){c&&u&&(c=!1,u.length?p=u.concat(p):P=-1,p.length&&g())}function g(){if(!c){var t=s(h);c=!0;for(var e=p.length;e;){for(u=p,p=[];++P<e;)u&&u[P].run();P=-1,e=p.length}u=null,c=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function y(t,e){this.fun=t,this.array=e}function f(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var o=1;o<arguments.length;o++)e[o-1]=arguments[o];p.push(new y(t,e)),1!==p.length||c||s(g)},y.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=f,n.addListener=f,n.once=f,n.off=f,n.removeListener=f,n.removeAllListeners=f,n.emit=f,n.prependListener=f,n.prependOnceListener=f,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},function(t,e,o){"use strict";(function(t,e){!function(t,o){if(!t.setImmediate){var l,i,n,r,a,s=1,u={},p=!1,c=t.document,P=Object.getPrototypeOf&&Object.getPrototypeOf(t);P=P&&P.setTimeout?P:t,"[object process]"==={}.toString.call(t.process)?l=function(t){e.nextTick(function(){g(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,o=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=o,e}}()?t.MessageChannel?((n=new MessageChannel).port1.onmessage=function(t){g(t.data)},l=function(t){n.port2.postMessage(t)}):c&&"onreadystatechange"in c.createElement("script")?(i=c.documentElement,l=function(t){var e=c.createElement("script");e.onreadystatechange=function(){g(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):l=function(t){setTimeout(g,0,t)}:(r="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(r)&&g(+e.data.slice(r.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),l=function(e){t.postMessage(r+e,"*")}),P.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),o=0;o<e.length;o++)e[o]=arguments[o+1];var i={callback:t,args:e};return u[s]=i,l(s),s++},P.clearImmediate=h}function h(t){delete u[t]}function g(t){if(p)setTimeout(g,0,t);else{var e=u[t];if(e){p=!0;try{!function(t){var e=t.callback,l=t.args;switch(l.length){case 0:e();break;case 1:e(l[0]);break;case 2:e(l[0],l[1]);break;case 3:e(l[0],l[1],l[2]);break;default:e.apply(o,l)}}(e)}finally{h(t),p=!1}}}}}("undefined"==typeof self?void 0===t?void 0:t:self)}).call(this,o(5),o(132))},function(t,e,o){"use strict";(function(t){var l=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function n(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new n(i.call(setTimeout,l,arguments),clearTimeout)},e.setInterval=function(){return new n(i.call(setInterval,l,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(l,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},o(133),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||void 0,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||void 0}).call(this,o(5))},function(t,e,o){"use strict";(function(e){var o="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};!function(l){var i=setTimeout;function n(){}function r(t){if("object"!==o(this))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(t,this)}function a(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,r._immediateFn(function(){var o=1===t._state?e.onFulfilled:e.onRejected;if(null!==o){var l;try{l=o(t._value)}catch(t){return void u(e.promise,t)}s(e.promise,l)}else(1===t._state?s:u)(e.promise,t._value)})):t._deferreds.push(e)}function s(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===(void 0===e?"undefined":o(e))||"function"==typeof e)){var l=e.then;if(e instanceof r)return t._state=3,t._value=e,void p(t);if("function"==typeof l)return void c((i=l,n=e,function(){i.apply(n,arguments)}),t)}t._state=1,t._value=e,p(t)}catch(e){u(t,e)}var i,n}function u(t,e){t._state=2,t._value=e,p(t)}function p(t){2===t._state&&0===t._deferreds.length&&r._immediateFn(function(){t._handled||r._unhandledRejectionFn(t._value)});for(var e=0,o=t._deferreds.length;e<o;e++)a(t,t._deferreds[e]);t._deferreds=null}function c(t,e){var o=!1;try{t(function(t){o||(o=!0,s(e,t))},function(t){o||(o=!0,u(e,t))})}catch(t){if(o)return;o=!0,u(e,t)}}r.prototype.catch=function(t){return this.then(null,t)},r.prototype.then=function(t,e){var o=new this.constructor(n);return a(this,new function(t,e,o){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=o}(t,e,o)),o},r.all=function(t){var e=Array.prototype.slice.call(t);return new r(function(t,l){if(0===e.length)return t([]);var i=e.length;function n(r,a){try{if(a&&("object"===(void 0===a?"undefined":o(a))||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(t){n(r,t)},l)}e[r]=a,0==--i&&t(e)}catch(t){l(t)}}for(var r=0;r<e.length;r++)n(r,e[r])})},r.resolve=function(t){return t&&"object"===(void 0===t?"undefined":o(t))&&t.constructor===r?t:new r(function(e){e(t)})},r.reject=function(t){return new r(function(e,o){o(t)})},r.race=function(t){return new r(function(e,o){for(var l=0,i=t.length;l<i;l++)t[l].then(e,o)})},r._immediateFn="function"==typeof e&&function(t){e(t)}||function(t){i(t,0)},r._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},r._setImmediateFn=function(t){r._immediateFn=t},r._setUnhandledRejectionFn=function(t){r._unhandledRejectionFn=t},void 0!==t&&t.exports?t.exports=r:l.Promise||(l.Promise=r)}(void 0)}).call(this,o(134).setImmediate)},function(t,e,o){"use strict";var l,i=o(135),n=(l=i)&&l.__esModule?l:{default:l};window.Promise=n.default},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CommonServiceBase=void 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=o(0),n=o(6),r=o(129),a=o(127),s=o(126),u=o(1),p=o(125),c=o(124),P=o(2);
/* Copyright© 2000 - 2020 SuperMap Software Co.Ltd. All rights reserved.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * This program are made available under the terms of the Apache License, Version 2.0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var h=e.CommonServiceBase=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var l=this;this.EVENT_TYPES=["processCompleted","processFailed"],this.events=null,this.eventListeners=null,this.url=null,this.urls=null,this.proxy=null,this.serverType=null,this.index=null,this.length=null,this.options=null,this.totalTimes=null,this.POLLING_TIMES=3,this._processSuccess=null,this._processFailed=null,this.isInTheSameDomain=null,this.withCredentials=!1,u.Util.isArray(e)?(l.urls=e,l.length=e.length,l.totalTimes=l.length,1===l.length?l.url=e[0]:(l.index=parseInt(Math.random()*l.length),l.url=e[l.index])):(l.totalTimes=1,l.url=e),u.Util.isArray(e)&&!l.isServiceSupportPolling()&&(l.url=e[0],l.totalTimes=1),l.serverType=l.serverType||p.ServerType.ISERVER,o=o||{},this.crossOrigin=o.crossOrigin,this.headers=o.headers,u.Util.extend(this,o),l.isInTheSameDomain=u.Util.isInTheSameDomain(l.url),l.events=new r.Events(l,null,l.EVENT_TYPES,!0),l.eventListeners instanceof Object&&l.events.on(l.eventListeners),this.CLASS_NAME="SuperMap.CommonServiceBase"}return l(t,[{key:"destroy",value:function(){var t=this;u.Util.isArray(t.urls)&&(t.urls=null,t.index=null,t.length=null,t.totalTimes=null),t.url=null,t.options=null,t._processSuccess=null,t._processFailed=null,t.isInTheSameDomain=null,t.EVENT_TYPES=null,t.events&&(t.events.destroy(),t.events=null),t.eventListeners&&(t.eventListeners=null)}},{key:"request",value:function(t){var e=this;t.url=t.url||e.url,t.proxy=t.proxy||e.proxy,t.withCredentials=void 0!=t.withCredentials?t.withCredentials:e.withCredentials,t.crossOrigin=void 0!=t.crossOrigin?t.crossOrigin:e.crossOrigin,t.headers=t.headers||e.headers,t.isInTheSameDomain=e.isInTheSameDomain;var o=this.getCredential(t.url);o&&(t.url=u.Util.urlAppend(t.url,o.getUrlParameters())),e.calculatePollingTimes(),e._processSuccess=t.success,e._processFailed=t.failure,t.scope=e,t.success=e.getUrlCompleted,t.failure=e.getUrlFailed,e.options=t,e._commit(e.options)}},{key:"getCredential",value:function(t){var e=t,o=void 0,l=void 0;switch(this.serverType){case p.ServerType.IPORTAL:(o=(l=s.SecurityManager.getToken(e))?new a.Credential(l,"token"):null)||(o=(l=s.SecurityManager.getKey(e))?new a.Credential(l,"key"):null);break;case p.ServerType.ONLINE:o=(l=s.SecurityManager.getKey(e))?new a.Credential(l,"key"):null;break;default:o=(l=s.SecurityManager.getToken(e))?new a.Credential(l,"token"):null}return o}},{key:"getUrlCompleted",value:function(t){this._processSuccess(t)}},{key:"getUrlFailed",value:function(t){this.totalTimes>0?(this.totalTimes--,this.ajaxPolling()):this._processFailed(t)}},{key:"ajaxPolling",value:function(){var t=this,e=t.options.url,o=/^http:\/\/([a-z]{9}|(\d+\.){3}\d+):\d{0,4}/;t.index=parseInt(Math.random()*t.length),t.url=t.urls[t.index],e=e.replace(o,o.exec(t.url)[0]),t.options.url=e,t.options.isInTheSameDomain=u.Util.isInTheSameDomain(e),t._commit(t.options)}},{key:"calculatePollingTimes",value:function(){var t=this;t.times?t.totalTimes>t.POLLING_TIMES?t.times>t.POLLING_TIMES?t.totalTimes=t.POLLING_TIMES:t.totalTimes=t.times:t.times<t.totalTimes&&(t.totalTimes=t.times):t.totalTimes>t.POLLING_TIMES&&(t.totalTimes=t.POLLING_TIMES),t.totalTimes--}},{key:"isServiceSupportPolling",value:function(){return!("SuperMap.REST.ThemeService"===this.CLASS_NAME||"SuperMap.REST.EditFeaturesService"===this.CLASS_NAME)}},{key:"serviceProcessCompleted",value:function(t){t=u.Util.transformResult(t),this.events.triggerEvent("processCompleted",{result:t})}},{key:"serviceProcessFailed",value:function(t){var e=(t=u.Util.transformResult(t)).error||t;this.events.triggerEvent("processFailed",{error:e})}},{key:"_commit",value:function(t){"POST"!==t.method&&"PUT"!==t.method||(t.params&&(t.url=u.Util.urlAppend(t.url,u.Util.getParameterString(t.params||{}))),t.params=t.data),n.FetchRequest.commit(t.method,t.url,t.params,{headers:t.headers,withCredentials:t.withCredentials,crossOrigin:t.crossOrigin,timeout:t.async?0:null,proxy:t.proxy}).then(function(t){return t.text?t.text():t.json?t.json():t}).then(function(e){var o=e;("string"==typeof e&&(o=(new c.JSONFormat).read(e)),(!o||o.error||o.code>=300&&304!==o.code)&&(o=o&&o.error?{error:o.error}:{error:o}),o.error)?(t.scope?P.FunctionExt.bind(t.failure,t.scope):t.failure)(o):(o.succeed=void 0==o.succeed||o.succeed,(t.scope?P.FunctionExt.bind(t.success,t.scope):t.success)(o))}).catch(function(e){(t.scope?P.FunctionExt.bind(t.failure,t.scope):t.failure)(e)})}}]),t}();i.SuperMap.CommonServiceBase=h},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbolFactory=e.BasicAlgoSymbolFactory=e.AddPoint_WayType=e.Primitives=e.PlottingUtil=e.RouteNodePrimitives=e.AnalysisSymbol=e.TowardNode=e.TimeWindowParameter=e.SymbolText=e.SubSymbol=e.SMLInfoStruct=e.SitDataStruct=e.RouteNode=e.Property=e.OrbitPoint=e.MapInfoStruct=e.LayerDataStruct=e.ExtendProperty=e.DefaultStyle=e.GetSymbolInfoService=e.GetSymbolInfoParameters=e.GetSMLInfosService=e.GetSMLInfosParameters=e.GetLibInfoService=e.GetLibInfoParameter=e.GetLibIDsService=e.EditSmlFileService=e.EditSmlFileParameters=e.PlotCommonServiceBase=e.GOAnimationType=e.Event=e.EditMode=e.AlignType=e.PositionOffsetType=e.TextBoxType=e.ArrowLineType=e.AnnoPosition=e.RadiusLineType=e.RelLineText=e.RouteNodeType=e.AlgoSurroundLineType=e.LineRelationType=e.SymbolType=e.Plot=e.Bounds=e.CommonServiceBase=void 0;var l=o(137),i=o(122),n=o(119),r=o(79),a=o(72);e.CommonServiceBase=l.CommonServiceBase,e.Bounds=i.Bounds,e.Plot=n.Plot,e.SymbolType=n.SymbolType,e.LineRelationType=n.LineRelationType,e.AlgoSurroundLineType=n.AlgoSurroundLineType,e.RouteNodeType=n.RouteNodeType,e.RelLineText=n.RelLineText,e.RadiusLineType=n.RadiusLineType,e.AnnoPosition=n.AnnoPosition,e.ArrowLineType=n.ArrowLineType,e.TextBoxType=n.TextBoxType,e.PositionOffsetType=n.PositionOffsetType,e.AlignType=n.AlignType,e.EditMode=n.EditMode,e.Event=n.Event,e.GOAnimationType=n.GOAnimationType,e.PlotCommonServiceBase=n.PlotCommonServiceBase,e.EditSmlFileParameters=n.EditSmlFileParameters,e.EditSmlFileService=n.EditSmlFileService,e.GetLibIDsService=n.GetLibIDsService,e.GetLibInfoParameter=n.GetLibInfoParameter,e.GetLibInfoService=n.GetLibInfoService,e.GetSMLInfosParameters=n.GetSMLInfosParameters,e.GetSMLInfosService=n.GetSMLInfosService,e.GetSymbolInfoParameters=n.GetSymbolInfoParameters,e.GetSymbolInfoService=n.GetSymbolInfoService,e.DefaultStyle=n.DefaultStyle,e.ExtendProperty=n.ExtendProperty,e.LayerDataStruct=n.LayerDataStruct,e.MapInfoStruct=n.MapInfoStruct,e.OrbitPoint=n.OrbitPoint,e.Property=n.Property,e.RouteNode=n.RouteNode,e.SitDataStruct=n.SitDataStruct,e.SMLInfoStruct=n.SMLInfoStruct,e.SubSymbol=n.SubSymbol,e.SymbolText=n.SymbolText,e.TimeWindowParameter=n.TimeWindowParameter,e.TowardNode=n.TowardNode,e.AnalysisSymbol=r.AnalysisSymbol,e.RouteNodePrimitives=r.RouteNodePrimitives,e.PlottingUtil=r.PlottingUtil,e.Primitives=r.Primitives,e.AddPoint_WayType=r.AddPoint_WayType,e.BasicAlgoSymbolFactory=a.BasicAlgoSymbolFactory,e.AlgoSymbolFactory=a.AlgoSymbolFactory}]);

/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(4);
__webpack_require__(1);
__webpack_require__(2);
__webpack_require__(3);
__webpack_require__(0);



/***/ })
/******/ ]);