{"ast":null,"code":"export * from './types';\n\nconst dividePoints = (points, keyword) => {\n  if (!keyword) {\n    return [[], points];\n  }\n\n  const matched = [];\n  const missing = [];\n  points.forEach(point => {\n    if (point.name.includes(keyword)) {\n      matched.push(point);\n      return;\n    }\n\n    missing.push(point);\n  });\n  return [matched, missing];\n};\n\nconst combineLabel = (points, labels, visibility) => points.map((value, i) => {\n  const name = labels[i] || '';\n  return {\n    name,\n    showing: !!visibility,\n    value\n  };\n});\n\nexport const divide = ({\n  points,\n  keyword,\n  labels,\n  visibility\n}) => dividePoints(combineLabel(points, labels, visibility), keyword);","map":null,"metadata":{},"sourceType":"module"}