module.exports =
/******/ (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;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__webpack_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__webpack_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __webpack_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__webpack_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// 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 = "lib/mapboxgl/";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 580);
/******/ })
/************************************************************************/
/******/ ({

/***/ 0:
/***/ (function(module, exports) {

module.exports = require("@babel/runtime/helpers/interopRequireDefault");

/***/ }),

/***/ 1:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
/* globals __VUE_SSR_CONTEXT__ */

// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.

function normalizeComponent(
  scriptExports,
  render,
  staticRenderFns,
  functionalTemplate,
  injectStyles,
  scopeId,
  moduleIdentifier /* server only */,
  shadowMode /* vue-cli only */
) {
  // Vue.extend constructor export interop
  var options =
    typeof scriptExports === 'function' ? scriptExports.options : scriptExports

  // render functions
  if (render) {
    options.render = render
    options.staticRenderFns = staticRenderFns
    options._compiled = true
  }

  // functional template
  if (functionalTemplate) {
    options.functional = true
  }

  // scopedId
  if (scopeId) {
    options._scopeId = 'data-v-' + scopeId
  }

  var hook
  if (moduleIdentifier) {
    // server build
    hook = function (context) {
      // 2.3 injection
      context =
        context || // cached call
        (this.$vnode && this.$vnode.ssrContext) || // stateful
        (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
      // 2.2 with runInNewContext: true
      if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
        context = __VUE_SSR_CONTEXT__
      }
      // inject component styles
      if (injectStyles) {
        injectStyles.call(this, context)
      }
      // register component module identifier for async chunk inferrence
      if (context && context._registeredComponents) {
        context._registeredComponents.add(moduleIdentifier)
      }
    }
    // used by ssr in case component is cached and beforeCreate
    // never gets called
    options._ssrRegister = hook
  } else if (injectStyles) {
    hook = shadowMode
      ? function () {
          injectStyles.call(
            this,
            (options.functional ? this.parent : this).$root.$options.shadowRoot
          )
        }
      : injectStyles
  }

  if (hook) {
    if (options.functional) {
      // for template-only hot-reload because in that case the render fn doesn't
      // go through the normalizer
      options._injectStyles = hook
      // register for functional component in vue file
      var originalRender = options.render
      options.render = function renderWithStyleInjection(h, context) {
        hook.call(context)
        return originalRender(h, context)
      }
    } else {
      // inject component registration as beforeCreate hook
      var existing = options.beforeCreate
      options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
    }
  }

  return {
    exports: scriptExports,
    options: options
  }
}


/***/ }),

/***/ 104:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/_mixin/ThirdService.js");

/***/ }),

/***/ 16:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/_lang/index.js");

/***/ }),

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

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/init.js");

/***/ }),

/***/ 204:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_LiquidFill_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(205);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_LiquidFill_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_LiquidFill_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_LiquidFill_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_LiquidFill_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_LiquidFill_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 205:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(0);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _echarts = _interopRequireDefault(__webpack_require__(81));
var _Theme = _interopRequireDefault(__webpack_require__(4));
__webpack_require__(582);
var _Timer = _interopRequireDefault(__webpack_require__(37));
var _ThirdService = _interopRequireDefault(__webpack_require__(104));
var _resizeDetector = __webpack_require__(29);
var _lodash = _interopRequireDefault(__webpack_require__(25));
var _util = __webpack_require__(82);
//
//
//
var _default = exports.default = {
  name: 'SmLiquidFill',
  mixins: [_Theme.default, _Timer.default, _ThirdService.default],
  props: {
    // 百分比的值
    value: {
      type: [Number, String],
      default: 0
    },
    formatter: {
      type: [Function, String]
    },
    // 波浪数
    waveCount: {
      type: Number,
      default: 1
    },
    // 字体
    fontSize: {
      type: [Number, String]
    },
    // 波浪颜色
    waveColor: {
      type: String
    },
    // 边框颜色
    borderColor: {
      type: String
    },
    // 数字在波浪外的颜色
    labelColor: {
      type: String,
      default: '#626c91'
    },
    // 背景色
    backgroundColor: {
      type: String
    },
    // 数字在波浪内的颜色
    insideLabelColor: {
      type: String,
      default: '#fff'
    },
    // 是否开启波浪动画
    waveAnimation: {
      type: Boolean,
      default: false
    }
  },
  data: function data() {
    return {
      waveColorData: '',
      labelColorData: '',
      insideLabelColorData: '',
      borderColorData: '',
      backgroundColorData: '',
      finalValue: this.value
    };
  },
  computed: {
    // 根据波浪数渲染数据
    calcData: function calcData() {
      var data = [];
      var formatValue = isNaN(+this.finalValue) ? 0 : +this.finalValue;
      for (var i = 0; i < this.waveCount; i++) {
        data.push((0, _util.strip)(formatValue - i * 0.05));
      }
      return data;
    }
  },
  watch: {
    waveColor: function waveColor(val) {
      this.waveColorData = val;
      this.updateChart();
    },
    labelColor: function labelColor(val) {
      this.labelColorData = val;
      this.updateChart();
    },
    insideLabelColor: function insideLabelColor(val) {
      this.insideLabelColorData = val;
      this.updateChart();
    },
    borderColor: function borderColor(val) {
      this.borderColorData = val;
      this.updateChart();
    },
    backgroundColor: function backgroundColor(val) {
      this.backgroundColorData = val;
      this.updateChart();
    },
    formatter: function formatter() {
      this.updateChart();
    },
    finalValue: function finalValue() {
      this.updateChart();
    },
    fontSize: function fontSize() {
      this.updateChart();
    },
    waveCount: function waveCount() {
      this.updateChart();
    },
    waveAnimation: function waveAnimation() {
      this.updateChart();
    },
    value: function value(val) {
      this.finalValue = val;
    }
  },
  mounted: function mounted() {
    var _this = this;
    this.waveColorData = this.waveColor || this.getColor(0);
    this.labelColorData = this.labelColor || this.getTextColor;
    this.insideLabelColorData = this.insideLabelColor || this.getTextColor;
    this.borderColorData = this.borderColor || this.waveColorData;
    this.backgroundColorData = this.backgroundColor || this.getBackground;
    this._initAutoResize();
    this.$nextTick(function () {
      _this.initializeChart();
    });
  },
  beforeDestroy: function beforeDestroy() {
    this.restService && this.restService.remove('getdatasucceeded');
    (0, _resizeDetector.removeListener)(this.$el, this.__resizeHandler);
  },
  methods: {
    resize: function resize() {
      this.chart && this.chart.resize();
    },
    initializeChart: function initializeChart() {
      var _this2 = this;
      this.chart = _echarts.default.init(this.$refs.chart);
      this.updateChart();
      this.$on('theme-style-changed', function () {
        _this2.waveColorData = _this2.getColor(0);
        _this2.labelColorData = _this2.getTextColor;
        _this2.insideLabelColorData = _this2.getTextColor;
        _this2.borderColorData = _this2.getColor(0);
        _this2.backgroundColorData = _this2.getBackground;
        _this2.updateChart();
      });
    },
    _initAutoResize: function _initAutoResize() {
      var _this3 = this;
      this.__resizeHandler = (0, _lodash.default)(function () {
        _this3.resize();
      }, 100, {
        leading: true
      });
      // @ts-ignore
      (0, _resizeDetector.addListener)(this.$el, this.__resizeHandler);
    },
    updateChart: function updateChart() {
      var options = {
        series: [{
          color: [this.waveColorData],
          type: 'liquidFill',
          waveAnimation: this.waveAnimation,
          animation: false,
          radius: '95%',
          data: this.calcData,
          label: {
            fontSize: parseFloat(this.fontSize),
            color: this.labelColorData,
            insideColor: this.insideLabelColorData
          },
          backgroundStyle: {
            color: this.backgroundColorData || 'rgba(0, 0, 0, 0)'
          },
          itemStyle: {
            shadowColor: '#fff'
          },
          outline: {
            borderDistance: 3,
            itemStyle: {
              borderColor: this.borderColorData,
              borderWidth: 3,
              shadowBlur: 0,
              shadowColor: '#fff'
            }
          }
        }]
      };
      if (this.formatter) {
        options.series[0].label.formatter = this.formatter;
      }
      this.chart && this.chart.setOption(options);
    },
    timing: function timing() {
      this.getData();
    }
  }
};

/***/ }),

/***/ 25:
/***/ (function(module, exports) {

module.exports = require("lodash.debounce");

/***/ }),

/***/ 29:
/***/ (function(module, exports) {

module.exports = require("resize-detector");

/***/ }),

/***/ 37:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/_mixin/Timer.js");

/***/ }),

/***/ 38:
/***/ (function(module, exports) {

module.exports = require("@turf/center");

/***/ }),

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

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/_mixin/Theme.js");

/***/ }),

/***/ 434:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ render; });
__webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ staticRenderFns; });

// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/common/liquid-fill/LiquidFill.vue?vue&type=template&id=6339529a&
var render = function () {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  return _c("div", {
    ref: "chart",
    staticClass: "sm-component-liquidfill",
    style: [_vm.background && _vm.getBackgroundStyle],
    attrs: { id: "chart" },
  })
}
var staticRenderFns = []
render._withStripped = true


// CONCATENATED MODULE: ./src/common/liquid-fill/LiquidFill.vue?vue&type=template&id=6339529a&


/***/ }),

/***/ 49:
/***/ (function(module, exports) {

module.exports = require("colorcolor");

/***/ }),

/***/ 50:
/***/ (function(module, exports) {

module.exports = require("tinycolor2");

/***/ }),

/***/ 580:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(0);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _LiquidFill = _interopRequireDefault(__webpack_require__(581));
var _init = _interopRequireDefault(__webpack_require__(2));
_LiquidFill.default.install = function (Vue, opts) {
  (0, _init.default)(Vue, opts);
  Vue.component(_LiquidFill.default.options ? _LiquidFill.default.options.name : _LiquidFill.default.name, _LiquidFill.default);
};
var _default = exports.default = _LiquidFill.default;

/***/ }),

/***/ 581:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _LiquidFill_vue_vue_type_template_id_6339529a___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(434);
/* harmony import */ var _LiquidFill_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(204);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _LiquidFill_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _LiquidFill_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);





/* normalize component */

var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _LiquidFill_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  _LiquidFill_vue_vue_type_template_id_6339529a___WEBPACK_IMPORTED_MODULE_0__[/* render */ "a"],
  _LiquidFill_vue_vue_type_template_id_6339529a___WEBPACK_IMPORTED_MODULE_0__[/* staticRenderFns */ "b"],
  false,
  null,
  null,
  null
  
)

/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 582:
/***/ (function(module, exports) {

module.exports = require("echarts-liquidfill");

/***/ }),

/***/ 81:
/***/ (function(module, exports) {

module.exports = require("echarts");

/***/ }),

/***/ 82:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(0);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.clearNumberComma = clearNumberComma;
exports.filterInvalidData = filterInvalidData;
exports.getColorWithOpacity = getColorWithOpacity;
exports.getDarkenColor = getDarkenColor;
exports.getDataType = getDataType;
exports.getDateTime = getDateTime;
exports.getDerivedColorsByTextColor = getDerivedColorsByTextColor;
exports.getFeatureCenter = getFeatureCenter;
exports.getValueCaseInsensitive = getValueCaseInsensitive;
exports.handleDataParentRes = handleDataParentRes;
exports.handleWithCredentials = handleWithCredentials;
exports.hexToRgba = hexToRgba;
exports.isDate = isDate;
exports.isMatchUrl = isMatchUrl;
exports.isNumber = isNumber;
exports.isTransparent = isTransparent;
exports.isXField = isXField;
exports.isYField = isYField;
exports.numberEqual = numberEqual;
exports.objectWithoutProperties = objectWithoutProperties;
exports.parseUrl = parseUrl;
exports.reservedDecimal = reservedDecimal;
exports.setPopupArrowStyle = setPopupArrowStyle;
exports.strip = strip;
exports.urlAppend = urlAppend;
var _index = __webpack_require__(16);
var _colorcolor = _interopRequireDefault(__webpack_require__(49));
var _center = _interopRequireDefault(__webpack_require__(38));
var _omit = _interopRequireDefault(__webpack_require__(83));
var _tinycolor = _interopRequireDefault(__webpack_require__(50));
// 获取当前时间返回置顶格式

function getDateTime(timeType) {
  return (0, _index.geti18n)().d(new Date(), timeType.replace(/\+/g, '_'));
}
// hex -> rgba
function hexToRgba(hex, opacity) {
  return 'rgba(' + parseInt('0x' + hex.slice(1, 3)) + ',' + parseInt('0x' + hex.slice(3, 5)) + ',' + parseInt('0x' + hex.slice(5, 7)) + ',' + opacity + ')';
}
function isTransparent(color) {
  var rgba = (0, _colorcolor.default)(color, 'rgba');
  return +rgba.match(/(\d(\.\d+)?)+/g)[3] === 0;
}
// 保留指定位数的小数
function reservedDecimal(val, precise) {
  return Number(val).toFixed(precise);
}
// 清除数字（字符串型的）的逗号
function clearNumberComma(num) {
  if (num.replace) {
    num = num.replace(/,/g, '');
  }
  return num;
}
/**
 * 判断是否地理X坐标
 * @param data
 */
function isXField(data) {
  var lowerdata = data.toLowerCase();
  return lowerdata === 'x' || lowerdata === 'smx' || lowerdata === 'jd' || lowerdata === '经度' || lowerdata === '东经' || lowerdata === 'longitude' || lowerdata === 'lot' || lowerdata === 'lon' || lowerdata === 'long' || lowerdata === 'lng' || lowerdata === 'x坐标';
}

/**
 * 判断是否地理Y坐标
 * @param data
 */
function isYField(data) {
  var lowerdata = data.toLowerCase();
  return lowerdata === 'y' || lowerdata === 'smy' || lowerdata === 'wd' || lowerdata === '纬度' || lowerdata === '北纬' || lowerdata === 'latitude' || lowerdata === 'lat' || lowerdata === 'y坐标';
}
function getColorWithOpacity(color, opacity, isStack) {
  if (isStack === void 0) {
    isStack = true;
  }
  if (!color) {
    return color;
  }
  var originColor = (0, _tinycolor.default)(color);
  var originOpacity = originColor.getAlpha();
  if (isStack) {
    originColor.setAlpha(originOpacity * opacity);
  } else {
    originColor.setAlpha(opacity);
  }
  var nextColor = originColor.toRgbString();
  return nextColor;
}
function getDerivedColorsByTextColor(textColor, opacity) {
  if (!textColor) {
    return textColor;
  }
  if (textColor.includes('var')) {
    return "var(--alpha" + opacity * 100 + ")";
  }
  var baseTextColorOpacity = 0.65;
  var originTextColor = (0, _tinycolor.default)(textColor);
  var originOpacity = originTextColor.getAlpha();
  originTextColor.setAlpha(originOpacity * opacity / baseTextColorOpacity);
  var derivedColor = originTextColor.toRgbString();
  return derivedColor;
}
function parseUrl(url) {
  var urlRe = /^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;
  return url.match(urlRe);
}
function getDataType(data) {
  return Object.prototype.toString.call(data);
}

// 判断输入的地址是否符合地址格式
function isMatchUrl(str) {
  var reg = new RegExp('(https?|http|file|ftp)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]');
  return reg.test(str);
}
// 判断是否为日期
function isDate(data) {
  var reg = /((^((1[8-9]\d{2})|([2-9]\d{3}))([-\/\._])(10|12|0?[13578])([-\/\._])(3[01]|[12][0-9]|0?[1-9])$)|(^((1[8-9]\d{2})|([2-9]\d{3}))([-\/\._])(11|0?[469])([-\/\._])(30|[12][0-9]|0?[1-9])$)|(^((1[8-9]\d{2})|([2-9]\d{3}))([-\/\._])(0?2)([-\/\._])(2[0-8]|1[0-9]|0?[1-9])$)|(^([2468][048]00)([-\/\._])(0?2)([-\/\._])(29)$)|(^([3579][26]00)([-\/\._])(0?2)([-\/\._])(29)$)|(^([1][89][0][48])([-\/\._])(0?2)([-\/\._])(29)$)|(^([2-9][0-9][0][48])([-\/\._])(0?2)([-\/\._])(29)$)|(^([1][89][2468][048])([-\/\._])(0?2)([-\/\._])(29)$)|(^([2-9][0-9][2468][048])([-\/\._])(0?2)([-\/\._])(29)$)|(^([1][89][13579][26])([-\/\._])(0?2)([-\/\._])(29)$)|(^([2-9][0-9][13579][26])([-\/\._])(0?2)([-\/\._])(29)$))/gi;
  return reg.test(data);
}

// 判断是否为数值
function isNumber(data) {
  var mdata = Number(data);
  if (mdata === 0) {
    return true;
  }
  return !isNaN(mdata);
}
function getFeatureCenter(feature) {
  var coordinates = ((feature || {}).geometry || {}).coordinates;
  var hasCoordinates = coordinates && !!coordinates.length;
  if (!hasCoordinates) {
    return;
  }
  var featureType = feature.geometry.type;
  var center;
  if (featureType === 'LineString') {
    center = coordinates[parseInt(coordinates.length / 2)];
  } else if (featureType === 'MultiLineString') {
    var coord = coordinates[parseInt(coordinates.length / 2)];
    center = coord[parseInt(coord.length / 2)];
  } else {
    center = (0, _center.default)(feature).geometry.coordinates;
  }
  return center;
}
function getValueCaseInsensitive(properties, searchKey) {
  var isObj = getDataType(properties) === '[object Object]';
  if (!searchKey || !isObj) {
    return '';
  }
  var lowerSearchKey = searchKey.toLocaleLowerCase();
  for (var key in properties) {
    if (key.toLocaleLowerCase() === lowerSearchKey) {
      return properties[key];
    }
  }
  return '';
}
function filterInvalidData(datasetOptions, features) {
  var xFields = datasetOptions.map(function (item) {
    return item.xField;
  });
  var yFields = datasetOptions.map(function (item) {
    return item.yField;
  });
  var nextFeatures = features.filter(function (feature) {
    var matchXField = xFields.find(function (item) {
      return Object.prototype.hasOwnProperty.call(feature.properties, item);
    });
    var matchYField = yFields.find(function (item) {
      return ![undefined, null, ''].includes(feature.properties[item]);
    });
    return !!(matchXField && matchYField);
  });
  return nextFeatures;
}
function handleWithCredentials(url, iportalServiceProxyUrl, defaultValue) {
  if (defaultValue === void 0) {
    defaultValue = false;
  }
  if (!iportalServiceProxyUrl) {
    return defaultValue;
  }
  return url.indexOf(iportalServiceProxyUrl) >= 0 || defaultValue;
}
function handleDataParentRes(url, parentResId, parentResType) {
  if (parentResType === void 0) {
    parentResType = 'DATA';
  }
  if (!parentResId) {
    return url;
  }
  return urlAppend(url, "parentResType=" + parentResType + "&parentResId=" + parentResId);
}
function urlAppend(url, paramStr) {
  var newUrl = url;
  if (paramStr) {
    if (paramStr.indexOf('?') === 0) {
      paramStr = paramStr.substring(1);
    }
    var parts = (url + ' ').split(/[?&]/);
    newUrl += parts.pop() === ' ' ? paramStr : parts.length ? '&' + paramStr : '?' + paramStr;
  }
  return newUrl;
}
function objectWithoutProperties(obj, omitKeys) {
  if (omitKeys === void 0) {
    omitKeys = [];
  }
  return (0, _omit.default)(obj, omitKeys);
}
function getDarkenColor(color, amount) {
  return (0, _tinycolor.default)(color).darken(amount).toString();
}
var ARROW_POSITION_MAP = {
  top: 'Bottom',
  bottom: 'Top',
  left: 'Right',
  right: 'Left'
};
function setPopupArrowStyle(color) {
  var popup = document.querySelectorAll('.sm-mapboxgl-tabel-popup');
  if (popup) {
    popup.forEach(function (item) {
      var position = item.className.replace(/.+mapboxgl-popup-anchor-([a-z]+)/, '$1');
      if (ARROW_POSITION_MAP[position]) {
        var popupArrow = item.querySelector('.mapboxgl-popup-tip');
        if (popupArrow) {
          popupArrow.style["border" + ARROW_POSITION_MAP[position] + "Color"] = color;
        }
      }
    });
  }
}
function strip(num, precision) {
  if (precision === void 0) {
    precision = 12;
  }
  if (typeof num === 'number') {
    return +parseFloat(num.toPrecision(precision));
  }
}
function numberEqual(num1, num2, precision) {
  if (precision === void 0) {
    precision = 10E-6;
  }
  return Math.abs(+num1 - +num2) <= precision;
}

/***/ }),

/***/ 83:
/***/ (function(module, exports) {

module.exports = require("omit.js");

/***/ })

/******/ });