{
  "type": "Program",
  "start": 0,
  "end": 1248,
  "loc": {
    "start": {
      "line": 1,
      "column": 0
    },
    "end": {
      "line": 40,
      "column": 0
    }
  },
  "sourceType": "module",
  "body": [
    {
      "type": "ImportDeclaration",
      "start": 43,
      "end": 67,
      "loc": {
        "start": {
          "line": 2,
          "column": 0
        },
        "end": {
          "line": 2,
          "column": 24
        }
      },
      "specifiers": [],
      "source": {
        "type": "Literal",
        "start": 50,
        "end": 66,
        "loc": {
          "start": {
            "line": 2,
            "column": 7
          },
          "end": {
            "line": 2,
            "column": 23
          }
        },
        "value": "babel/polyfill",
        "rawValue": "babel/polyfill",
        "raw": "'babel/polyfill'",
        "leadingComments": null
      },
      "leadingComments": [
        {
          "type": "CommentLine",
          "value": " FIXME Remove when updating to Babel 6.0",
          "start": 0,
          "end": 42,
          "loc": {
            "start": {
              "line": 1,
              "column": 0
            },
            "end": {
              "line": 1,
              "column": 42
            }
          },
          "range": [
            0,
            42
          ]
        }
      ]
    },
    {
      "type": "ImportDeclaration",
      "start": 69,
      "end": 130,
      "loc": {
        "start": {
          "line": 4,
          "column": 0
        },
        "end": {
          "line": 4,
          "column": 61
        }
      },
      "specifiers": [
        {
          "type": "ImportDefaultSpecifier",
          "start": 76,
          "end": 85,
          "loc": {
            "start": {
              "line": 4,
              "column": 7
            },
            "end": {
              "line": 4,
              "column": 16
            }
          },
          "local": {
            "type": "Identifier",
            "start": 76,
            "end": 85,
            "loc": {
              "start": {
                "line": 4,
                "column": 7
              },
              "end": {
                "line": 4,
                "column": 16
              }
            },
            "name": "readStats"
          }
        }
      ],
      "importKind": "value",
      "source": {
        "type": "Literal",
        "start": 91,
        "end": 129,
        "loc": {
          "start": {
            "line": 4,
            "column": 22
          },
          "end": {
            "line": 4,
            "column": 60
          }
        },
        "value": "roc-web-react/lib/helpers/read-stats",
        "rawValue": "roc-web-react/lib/helpers/read-stats",
        "raw": "'roc-web-react/lib/helpers/read-stats'"
      }
    },
    {
      "type": "ImportDeclaration",
      "start": 131,
      "end": 161,
      "loc": {
        "start": {
          "line": 5,
          "column": 0
        },
        "end": {
          "line": 5,
          "column": 30
        }
      },
      "specifiers": [
        {
          "type": "ImportDefaultSpecifier",
          "start": 138,
          "end": 144,
          "loc": {
            "start": {
              "line": 5,
              "column": 7
            },
            "end": {
              "line": 5,
              "column": 13
            }
          },
          "local": {
            "type": "Identifier",
            "start": 138,
            "end": 144,
            "loc": {
              "start": {
                "line": 5,
                "column": 7
              },
              "end": {
                "line": 5,
                "column": 13
              }
            },
            "name": "routes"
          }
        }
      ],
      "importKind": "value",
      "source": {
        "type": "Literal",
        "start": 150,
        "end": 160,
        "loc": {
          "start": {
            "line": 5,
            "column": 19
          },
          "end": {
            "line": 5,
            "column": 29
          }
        },
        "value": "./router",
        "rawValue": "./router",
        "raw": "'./router'"
      },
      "trailingComments": [
        {
          "type": "Block",
          "value": "*\n * Enhances a server instance with React support.\n *\n * Extends the options object from _roc-web_. See {@link rocServerOptions} for what the new options are.\n *\n * @example\n * import { createServer } from 'roc-web/app';\n * import { useReact } from 'roc-web-react/app/server';\n *\n * const server = useReact(createServer)({\n *     serve: 'files',\n *     createRoutes: routes,\n *     createStore: store,\n *     stats: './stats.json'\n * });\n\n * server.start();\n *\n * @param {function} createServer - A createServer function to wrap and add extra functionallity to\n * @returns {function} Returns a new createServer that can be used to create server instances that can manage React\n * applications\n ",
          "start": 163,
          "end": 862,
          "loc": {
            "start": {
              "line": 7,
              "column": 0
            },
            "end": {
              "line": 28,
              "column": 3
            }
          },
          "range": [
            163,
            862
          ]
        }
      ]
    },
    {
      "type": "ExportDefaultDeclaration",
      "start": 863,
      "end": 1247,
      "loc": {
        "start": {
          "line": 29,
          "column": 0
        },
        "end": {
          "line": 39,
          "column": 1
        }
      },
      "declaration": {
        "type": "FunctionDeclaration",
        "start": 878,
        "end": 1247,
        "loc": {
          "start": {
            "line": 29,
            "column": 15
          },
          "end": {
            "line": 39,
            "column": 1
          }
        },
        "id": {
          "type": "Identifier",
          "start": 887,
          "end": 895,
          "loc": {
            "start": {
              "line": 29,
              "column": 24
            },
            "end": {
              "line": 29,
              "column": 32
            }
          },
          "name": "useReact",
          "leadingComments": null
        },
        "generator": false,
        "expression": false,
        "async": false,
        "params": [
          {
            "type": "Identifier",
            "start": 896,
            "end": 908,
            "loc": {
              "start": {
                "line": 29,
                "column": 33
              },
              "end": {
                "line": 29,
                "column": 45
              }
            },
            "name": "createServer"
          }
        ],
        "body": {
          "type": "BlockStatement",
          "start": 910,
          "end": 1247,
          "loc": {
            "start": {
              "line": 29,
              "column": 47
            },
            "end": {
              "line": 39,
              "column": 1
            }
          },
          "body": [
            {
              "type": "ReturnStatement",
              "start": 916,
              "end": 1245,
              "loc": {
                "start": {
                  "line": 30,
                  "column": 4
                },
                "end": {
                  "line": 38,
                  "column": 6
                }
              },
              "argument": {
                "type": "FunctionExpression",
                "start": 923,
                "end": 1244,
                "loc": {
                  "start": {
                    "line": 30,
                    "column": 11
                  },
                  "end": {
                    "line": 38,
                    "column": 5
                  }
                },
                "id": null,
                "generator": false,
                "expression": false,
                "async": false,
                "params": [
                  {
                    "type": "AssignmentPattern",
                    "start": 932,
                    "end": 944,
                    "loc": {
                      "start": {
                        "line": 30,
                        "column": 20
                      },
                      "end": {
                        "line": 30,
                        "column": 32
                      }
                    },
                    "operator": "=",
                    "left": {
                      "type": "Identifier",
                      "start": 932,
                      "end": 939,
                      "loc": {
                        "start": {
                          "line": 30,
                          "column": 20
                        },
                        "end": {
                          "line": 30,
                          "column": 27
                        }
                      },
                      "name": "options"
                    },
                    "right": {
                      "type": "ObjectExpression",
                      "start": 942,
                      "end": 944,
                      "loc": {
                        "start": {
                          "line": 30,
                          "column": 30
                        },
                        "end": {
                          "line": 30,
                          "column": 32
                        }
                      },
                      "properties": []
                    }
                  },
                  {
                    "type": "AssignmentPattern",
                    "start": 946,
                    "end": 972,
                    "loc": {
                      "start": {
                        "line": 30,
                        "column": 34
                      },
                      "end": {
                        "line": 30,
                        "column": 60
                      }
                    },
                    "operator": "=",
                    "left": {
                      "type": "Identifier",
                      "start": 946,
                      "end": 967,
                      "loc": {
                        "start": {
                          "line": 30,
                          "column": 34
                        },
                        "end": {
                          "line": 30,
                          "column": 55
                        }
                      },
                      "name": "beforeUserMiddlewares"
                    },
                    "right": {
                      "type": "ArrayExpression",
                      "start": 970,
                      "end": 972,
                      "loc": {
                        "start": {
                          "line": 30,
                          "column": 58
                        },
                        "end": {
                          "line": 30,
                          "column": 60
                        }
                      },
                      "elements": []
                    }
                  }
                ],
                "body": {
                  "type": "BlockStatement",
                  "start": 974,
                  "end": 1244,
                  "loc": {
                    "start": {
                      "line": 30,
                      "column": 62
                    },
                    "end": {
                      "line": 38,
                      "column": 5
                    }
                  },
                  "body": [
                    {
                      "type": "VariableDeclaration",
                      "start": 984,
                      "end": 1055,
                      "loc": {
                        "start": {
                          "line": 31,
                          "column": 8
                        },
                        "end": {
                          "line": 31,
                          "column": 79
                        }
                      },
                      "declarations": [
                        {
                          "type": "VariableDeclarator",
                          "start": 990,
                          "end": 1054,
                          "loc": {
                            "start": {
                              "line": 31,
                              "column": 14
                            },
                            "end": {
                              "line": 31,
                              "column": 78
                            }
                          },
                          "id": {
                            "type": "ObjectPattern",
                            "start": 990,
                            "end": 1044,
                            "loc": {
                              "start": {
                                "line": 31,
                                "column": 14
                              },
                              "end": {
                                "line": 31,
                                "column": 68
                              }
                            },
                            "properties": [
                              {
                                "type": "Property",
                                "start": 992,
                                "end": 997,
                                "loc": {
                                  "start": {
                                    "line": 31,
                                    "column": 16
                                  },
                                  "end": {
                                    "line": 31,
                                    "column": 21
                                  }
                                },
                                "method": false,
                                "shorthand": true,
                                "computed": false,
                                "key": {
                                  "type": "Identifier",
                                  "start": 992,
                                  "end": 997,
                                  "loc": {
                                    "start": {
                                      "line": 31,
                                      "column": 16
                                    },
                                    "end": {
                                      "line": 31,
                                      "column": 21
                                    }
                                  },
                                  "name": "stats"
                                },
                                "kind": "init",
                                "value": {
                                  "type": "Identifier",
                                  "start": 992,
                                  "end": 997,
                                  "loc": {
                                    "start": {
                                      "line": 31,
                                      "column": 16
                                    },
                                    "end": {
                                      "line": 31,
                                      "column": 21
                                    }
                                  },
                                  "name": "stats"
                                }
                              },
                              {
                                "type": "Property",
                                "start": 999,
                                "end": 1011,
                                "loc": {
                                  "start": {
                                    "line": 31,
                                    "column": 23
                                  },
                                  "end": {
                                    "line": 31,
                                    "column": 35
                                  }
                                },
                                "method": false,
                                "shorthand": true,
                                "computed": false,
                                "key": {
                                  "type": "Identifier",
                                  "start": 999,
                                  "end": 1011,
                                  "loc": {
                                    "start": {
                                      "line": 31,
                                      "column": 23
                                    },
                                    "end": {
                                      "line": 31,
                                      "column": 35
                                    }
                                  },
                                  "name": "createRoutes"
                                },
                                "kind": "init",
                                "value": {
                                  "type": "Identifier",
                                  "start": 999,
                                  "end": 1011,
                                  "loc": {
                                    "start": {
                                      "line": 31,
                                      "column": 23
                                    },
                                    "end": {
                                      "line": 31,
                                      "column": 35
                                    }
                                  },
                                  "name": "createRoutes"
                                }
                              },
                              {
                                "type": "Property",
                                "start": 1013,
                                "end": 1024,
                                "loc": {
                                  "start": {
                                    "line": 31,
                                    "column": 37
                                  },
                                  "end": {
                                    "line": 31,
                                    "column": 48
                                  }
                                },
                                "method": false,
                                "shorthand": true,
                                "computed": false,
                                "key": {
                                  "type": "Identifier",
                                  "start": 1013,
                                  "end": 1024,
                                  "loc": {
                                    "start": {
                                      "line": 31,
                                      "column": 37
                                    },
                                    "end": {
                                      "line": 31,
                                      "column": 48
                                    }
                                  },
                                  "name": "createStore"
                                },
                                "kind": "init",
                                "value": {
                                  "type": "Identifier",
                                  "start": 1013,
                                  "end": 1024,
                                  "loc": {
                                    "start": {
                                      "line": 31,
                                      "column": 37
                                    },
                                    "end": {
                                      "line": 31,
                                      "column": 48
                                    }
                                  },
                                  "name": "createStore"
                                }
                              },
                              {
                                "type": "SpreadProperty",
                                "start": 1026,
                                "end": 1042,
                                "loc": {
                                  "start": {
                                    "line": 31,
                                    "column": 50
                                  },
                                  "end": {
                                    "line": 31,
                                    "column": 66
                                  }
                                },
                                "argument": {
                                  "type": "Identifier",
                                  "start": 1029,
                                  "end": 1042,
                                  "loc": {
                                    "start": {
                                      "line": 31,
                                      "column": 53
                                    },
                                    "end": {
                                      "line": 31,
                                      "column": 66
                                    }
                                  },
                                  "name": "serverOptions"
                                }
                              }
                            ]
                          },
                          "init": {
                            "type": "Identifier",
                            "start": 1047,
                            "end": 1054,
                            "loc": {
                              "start": {
                                "line": 31,
                                "column": 71
                              },
                              "end": {
                                "line": 31,
                                "column": 78
                              }
                            },
                            "name": "options"
                          }
                        }
                      ],
                      "kind": "const"
                    },
                    {
                      "type": "ReturnStatement",
                      "start": 1065,
                      "end": 1238,
                      "loc": {
                        "start": {
                          "line": 33,
                          "column": 8
                        },
                        "end": {
                          "line": 37,
                          "column": 13
                        }
                      },
                      "argument": {
                        "type": "CallExpression",
                        "start": 1072,
                        "end": 1237,
                        "loc": {
                          "start": {
                            "line": 33,
                            "column": 15
                          },
                          "end": {
                            "line": 37,
                            "column": 12
                          }
                        },
                        "callee": {
                          "type": "Identifier",
                          "start": 1072,
                          "end": 1084,
                          "loc": {
                            "start": {
                              "line": 33,
                              "column": 15
                            },
                            "end": {
                              "line": 33,
                              "column": 27
                            }
                          },
                          "name": "createServer"
                        },
                        "arguments": [
                          {
                            "type": "Identifier",
                            "start": 1085,
                            "end": 1098,
                            "loc": {
                              "start": {
                                "line": 33,
                                "column": 28
                              },
                              "end": {
                                "line": 33,
                                "column": 41
                              }
                            },
                            "name": "serverOptions"
                          },
                          {
                            "type": "CallExpression",
                            "start": 1100,
                            "end": 1236,
                            "loc": {
                              "start": {
                                "line": 33,
                                "column": 43
                              },
                              "end": {
                                "line": 37,
                                "column": 11
                              }
                            },
                            "callee": {
                              "type": "MemberExpression",
                              "start": 1100,
                              "end": 1128,
                              "loc": {
                                "start": {
                                  "line": 33,
                                  "column": 43
                                },
                                "end": {
                                  "line": 33,
                                  "column": 71
                                }
                              },
                              "object": {
                                "type": "Identifier",
                                "start": 1100,
                                "end": 1121,
                                "loc": {
                                  "start": {
                                    "line": 33,
                                    "column": 43
                                  },
                                  "end": {
                                    "line": 33,
                                    "column": 64
                                  }
                                },
                                "name": "beforeUserMiddlewares"
                              },
                              "property": {
                                "type": "Identifier",
                                "start": 1122,
                                "end": 1128,
                                "loc": {
                                  "start": {
                                    "line": 33,
                                    "column": 65
                                  },
                                  "end": {
                                    "line": 33,
                                    "column": 71
                                  }
                                },
                                "name": "concat"
                              },
                              "computed": false
                            },
                            "arguments": [
                              {
                                "type": "CallExpression",
                                "start": 1129,
                                "end": 1235,
                                "loc": {
                                  "start": {
                                    "line": 33,
                                    "column": 72
                                  },
                                  "end": {
                                    "line": 37,
                                    "column": 10
                                  }
                                },
                                "callee": {
                                  "type": "Identifier",
                                  "start": 1129,
                                  "end": 1135,
                                  "loc": {
                                    "start": {
                                      "line": 33,
                                      "column": 72
                                    },
                                    "end": {
                                      "line": 33,
                                      "column": 78
                                    }
                                  },
                                  "name": "routes"
                                },
                                "arguments": [
                                  {
                                    "type": "ObjectExpression",
                                    "start": 1136,
                                    "end": 1234,
                                    "loc": {
                                      "start": {
                                        "line": 33,
                                        "column": 79
                                      },
                                      "end": {
                                        "line": 37,
                                        "column": 9
                                      }
                                    },
                                    "properties": [
                                      {
                                        "type": "Property",
                                        "start": 1150,
                                        "end": 1162,
                                        "loc": {
                                          "start": {
                                            "line": 34,
                                            "column": 12
                                          },
                                          "end": {
                                            "line": 34,
                                            "column": 24
                                          }
                                        },
                                        "method": false,
                                        "shorthand": true,
                                        "computed": false,
                                        "key": {
                                          "type": "Identifier",
                                          "start": 1150,
                                          "end": 1162,
                                          "loc": {
                                            "start": {
                                              "line": 34,
                                              "column": 12
                                            },
                                            "end": {
                                              "line": 34,
                                              "column": 24
                                            }
                                          },
                                          "name": "createRoutes"
                                        },
                                        "kind": "init",
                                        "value": {
                                          "type": "Identifier",
                                          "start": 1150,
                                          "end": 1162,
                                          "loc": {
                                            "start": {
                                              "line": 34,
                                              "column": 12
                                            },
                                            "end": {
                                              "line": 34,
                                              "column": 24
                                            }
                                          },
                                          "name": "createRoutes"
                                        }
                                      },
                                      {
                                        "type": "Property",
                                        "start": 1176,
                                        "end": 1187,
                                        "loc": {
                                          "start": {
                                            "line": 35,
                                            "column": 12
                                          },
                                          "end": {
                                            "line": 35,
                                            "column": 23
                                          }
                                        },
                                        "method": false,
                                        "shorthand": true,
                                        "computed": false,
                                        "key": {
                                          "type": "Identifier",
                                          "start": 1176,
                                          "end": 1187,
                                          "loc": {
                                            "start": {
                                              "line": 35,
                                              "column": 12
                                            },
                                            "end": {
                                              "line": 35,
                                              "column": 23
                                            }
                                          },
                                          "name": "createStore"
                                        },
                                        "kind": "init",
                                        "value": {
                                          "type": "Identifier",
                                          "start": 1176,
                                          "end": 1187,
                                          "loc": {
                                            "start": {
                                              "line": 35,
                                              "column": 12
                                            },
                                            "end": {
                                              "line": 35,
                                              "column": 23
                                            }
                                          },
                                          "name": "createStore"
                                        }
                                      },
                                      {
                                        "type": "Property",
                                        "start": 1201,
                                        "end": 1224,
                                        "loc": {
                                          "start": {
                                            "line": 36,
                                            "column": 12
                                          },
                                          "end": {
                                            "line": 36,
                                            "column": 35
                                          }
                                        },
                                        "method": false,
                                        "shorthand": false,
                                        "computed": false,
                                        "key": {
                                          "type": "Identifier",
                                          "start": 1201,
                                          "end": 1206,
                                          "loc": {
                                            "start": {
                                              "line": 36,
                                              "column": 12
                                            },
                                            "end": {
                                              "line": 36,
                                              "column": 17
                                            }
                                          },
                                          "name": "stats"
                                        },
                                        "value": {
                                          "type": "CallExpression",
                                          "start": 1208,
                                          "end": 1224,
                                          "loc": {
                                            "start": {
                                              "line": 36,
                                              "column": 19
                                            },
                                            "end": {
                                              "line": 36,
                                              "column": 35
                                            }
                                          },
                                          "callee": {
                                            "type": "Identifier",
                                            "start": 1208,
                                            "end": 1217,
                                            "loc": {
                                              "start": {
                                                "line": 36,
                                                "column": 19
                                              },
                                              "end": {
                                                "line": 36,
                                                "column": 28
                                              }
                                            },
                                            "name": "readStats"
                                          },
                                          "arguments": [
                                            {
                                              "type": "Identifier",
                                              "start": 1218,
                                              "end": 1223,
                                              "loc": {
                                                "start": {
                                                  "line": 36,
                                                  "column": 29
                                                },
                                                "end": {
                                                  "line": 36,
                                                  "column": 34
                                                }
                                              },
                                              "name": "stats"
                                            }
                                          ]
                                        },
                                        "kind": "init"
                                      }
                                    ]
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    }
                  ]
                }
              }
            }
          ]
        },
        "leadingComments": [
          {
            "type": "Block",
            "value": "*\n * Enhances a server instance with React support.\n *\n * Extends the options object from _roc-web_. See {@link rocServerOptions} for what the new options are.\n *\n * @example\n * import { createServer } from 'roc-web/app';\n * import { useReact } from 'roc-web-react/app/server';\n *\n * const server = useReact(createServer)({\n *     serve: 'files',\n *     createRoutes: routes,\n *     createStore: store,\n *     stats: './stats.json'\n * });\n\n * server.start();\n *\n * @param {function} createServer - A createServer function to wrap and add extra functionallity to\n * @returns {function} Returns a new createServer that can be used to create server instances that can manage React\n * applications\n ",
            "start": 163,
            "end": 862,
            "loc": {
              "start": {
                "line": 7,
                "column": 0
              },
              "end": {
                "line": 28,
                "column": 3
              }
            },
            "range": [
              163,
              862
            ]
          }
        ],
        "trailingComments": []
      },
      "leadingComments": [
        {
          "type": "Block",
          "value": "*\n * Enhances a server instance with React support.\n *\n * Extends the options object from _roc-web_. See {@link rocServerOptions} for what the new options are.\n *\n * @example\n * import { createServer } from 'roc-web/app';\n * import { useReact } from 'roc-web-react/app/server';\n *\n * const server = useReact(createServer)({\n *     serve: 'files',\n *     createRoutes: routes,\n *     createStore: store,\n *     stats: './stats.json'\n * });\n\n * server.start();\n *\n * @param {function} createServer - A createServer function to wrap and add extra functionallity to\n * @returns {function} Returns a new createServer that can be used to create server instances that can manage React\n * applications\n ",
          "start": 163,
          "end": 862,
          "loc": {
            "start": {
              "line": 7,
              "column": 0
            },
            "end": {
              "line": 28,
              "column": 3
            }
          },
          "range": [
            163,
            862
          ]
        }
      ]
    }
  ]
}