text: /*!
   * name: next-legend-list
   * url: https://github.com/afeiship/next-legend-list
   * version: 1.0.0
   * date: 2019-09-21T09:03:10.465Z
   * license: MIT
   */
  function _getRawLegendList(e){var t=[],r="";if(!e.hasOwnProperty("legend")||!e.hasOwnProperty("series"))return[];if(e.hasOwnProperty("color")&&Array.isArray(e.color)&&(r=e.color),Array.isArray(e.legend))e.legend[0]&&e.legend[0].hasOwnProperty("data")&&(t=_getRawNameColorList(e.legend[0].data,r));else{if(!e.legend.hasOwnProperty("data"))return[];t=_getRawNameColorList(e.legend.data,r)}return t=_getRawType(e.series,t)}function _getMiaotuLegendList(e){if(!e.chartOption)return[];var t=e.chartOption;if(!t.seriesList)return[];var r=[];return t.seriesList.forEach(function(e){!1!==e.show&&r.push({type:e.chartType,name:e.name,color:e.color})}),r}function _getRawNameColorList(e,t){return e.map(function(e,r){var o="";return o="object"==typeof e?e.name:e,{name:o,color:t&&t[r]?t[r]:""}})}function _getRawType(e,t){return e.forEach(function(e){"line"!=e.type&&"bar"!=e.type&&"map"!=e.type&&"scatter"!=e.type||t.forEach(function(t){t.name===e.name&&(t.type=e.type,t.color=e.color?e.color:e.itemStyle&&e.itemStyle.color?e.itemStyle.color:t.color)}),"pie"==e.type&&e.data.forEach(function(e){t.forEach(function(t){e.name==t.name&&(t.type="pie",t.color=e.itemStyle&&e.itemStyle.color?e.itemStyle.color:t.color)})}),e.type,e.type,e.type,e.type,e.type}),t}!function(){var e=e||this||window||Function("return this")(),t=e.nx||require("next-js-core2");t.legendList=function(e){return"raw"===e.format?_getRawLegendList(e):_getMiaotuLegendList(e)},"undefined"!=typeof module&&module.exports&&(module.exports=t.legendList)}();