Liferay.Loader.define("commerce-dashboard-web$d3-hierarchy@1.1.8/src/hierarchy/count", ['module', 'exports', 'require'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    function count(node) {
      var sum = 0,
          children = node.children,
          i = children && children.length;
      if (!i) sum = 1;else while (--i >= 0) sum += children[i].value;
      node.value = sum;
    }

    export default function () {
      return this.eachAfter(count);
    }
  }
});
//# sourceMappingURL=count.js.map