Agriculture-front-end/public/Cesium/ThirdParty/Workers/PlotAlgo/PlotAlgoInclude.js

431 lines
2.4 MiB
JavaScript
Raw Normal View History

2023-09-11 21:56:39 +08:00
/******/ (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(SuperMapAl
/***/ }),
/* 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
/***/ }),
/* 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.lengt
/***/ }),
/* 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.degre
/* 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.COMBIN
/* 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=
/* 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.fil
/* 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=!
/* 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
/* 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",valu
/* 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)
/* 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:
/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(4);
__webpack_require__(1);
__webpack_require__(2);
__webpack_require__(3);
__webpack_require__(0);
/***/ })
/******/ ]);