{
  "type": "Program",
  "start": 0,
  "end": 338,
  "loc": {
    "start": {
      "line": 1,
      "column": 0
    },
    "end": {
      "line": 12,
      "column": 0
    }
  },
  "sourceType": "module",
  "body": [
    {
      "type": "ExportDefaultDeclaration",
      "start": 141,
      "end": 336,
      "loc": {
        "start": {
          "line": 5,
          "column": 0
        },
        "end": {
          "line": 11,
          "column": 1
        }
      },
      "declaration": {
        "type": "FunctionDeclaration",
        "start": 156,
        "end": 336,
        "loc": {
          "start": {
            "line": 5,
            "column": 15
          },
          "end": {
            "line": 11,
            "column": 1
          }
        },
        "id": null,
        "generator": false,
        "expression": false,
        "async": false,
        "params": [
          {
            "type": "AssignmentPattern",
            "start": 165,
            "end": 184,
            "loc": {
              "start": {
                "line": 5,
                "column": 24
              },
              "end": {
                "line": 5,
                "column": 43
              }
            },
            "left": {
              "type": "ObjectPattern",
              "start": 165,
              "end": 179,
              "loc": {
                "start": {
                  "line": 5,
                  "column": 24
                },
                "end": {
                  "line": 5,
                  "column": 38
                }
              },
              "properties": [
                {
                  "type": "Property",
                  "start": 167,
                  "end": 171,
                  "loc": {
                    "start": {
                      "line": 5,
                      "column": 26
                    },
                    "end": {
                      "line": 5,
                      "column": 30
                    }
                  },
                  "method": false,
                  "shorthand": true,
                  "computed": false,
                  "key": {
                    "type": "Identifier",
                    "start": 167,
                    "end": 171,
                    "loc": {
                      "start": {
                        "line": 5,
                        "column": 26
                      },
                      "end": {
                        "line": 5,
                        "column": 30
                      }
                    },
                    "name": "name",
                    "leadingComments": null
                  },
                  "kind": "init",
                  "value": {
                    "type": "Identifier",
                    "start": 167,
                    "end": 171,
                    "loc": {
                      "start": {
                        "line": 5,
                        "column": 26
                      },
                      "end": {
                        "line": 5,
                        "column": 30
                      }
                    },
                    "name": "name",
                    "leadingComments": [
                      {
                        "type": "Block",
                        "value": "*\n * Log an event with Flamsteed\n * @param  {Object|String} data An object containing data to log, or a string description of an event\n ",
                        "start": 0,
                        "end": 140,
                        "loc": {
                          "start": {
                            "line": 1,
                            "column": 0
                          },
                          "end": {
                            "line": 4,
                            "column": 3
                          }
                        },
                        "range": [
                          0,
                          140
                        ]
                      }
                    ]
                  },
                  "leadingComments": null
                },
                {
                  "type": "Property",
                  "start": 173,
                  "end": 177,
                  "loc": {
                    "start": {
                      "line": 5,
                      "column": 32
                    },
                    "end": {
                      "line": 5,
                      "column": 36
                    }
                  },
                  "method": false,
                  "shorthand": true,
                  "computed": false,
                  "key": {
                    "type": "Identifier",
                    "start": 173,
                    "end": 177,
                    "loc": {
                      "start": {
                        "line": 5,
                        "column": 32
                      },
                      "end": {
                        "line": 5,
                        "column": 36
                      }
                    },
                    "name": "data"
                  },
                  "kind": "init",
                  "value": {
                    "type": "Identifier",
                    "start": 173,
                    "end": 177,
                    "loc": {
                      "start": {
                        "line": 5,
                        "column": 32
                      },
                      "end": {
                        "line": 5,
                        "column": 36
                      }
                    },
                    "name": "data"
                  }
                }
              ],
              "leadingComments": null
            },
            "right": {
              "type": "ObjectExpression",
              "start": 182,
              "end": 184,
              "loc": {
                "start": {
                  "line": 5,
                  "column": 41
                },
                "end": {
                  "line": 5,
                  "column": 43
                }
              },
              "properties": []
            },
            "leadingComments": null
          }
        ],
        "body": {
          "type": "BlockStatement",
          "start": 186,
          "end": 336,
          "loc": {
            "start": {
              "line": 5,
              "column": 45
            },
            "end": {
              "line": 11,
              "column": 1
            }
          },
          "body": [
            {
              "type": "IfStatement",
              "start": 190,
              "end": 334,
              "loc": {
                "start": {
                  "line": 6,
                  "column": 2
                },
                "end": {
                  "line": 10,
                  "column": 3
                }
              },
              "test": {
                "type": "MemberExpression",
                "start": 194,
                "end": 206,
                "loc": {
                  "start": {
                    "line": 6,
                    "column": 6
                  },
                  "end": {
                    "line": 6,
                    "column": 18
                  }
                },
                "object": {
                  "type": "MemberExpression",
                  "start": 194,
                  "end": 203,
                  "loc": {
                    "start": {
                      "line": 6,
                      "column": 6
                    },
                    "end": {
                      "line": 6,
                      "column": 15
                    }
                  },
                  "object": {
                    "type": "Identifier",
                    "start": 194,
                    "end": 200,
                    "loc": {
                      "start": {
                        "line": 6,
                        "column": 6
                      },
                      "end": {
                        "line": 6,
                        "column": 12
                      }
                    },
                    "name": "window"
                  },
                  "property": {
                    "type": "Identifier",
                    "start": 201,
                    "end": 203,
                    "loc": {
                      "start": {
                        "line": 6,
                        "column": 13
                      },
                      "end": {
                        "line": 6,
                        "column": 15
                      }
                    },
                    "name": "lp"
                  },
                  "computed": false
                },
                "property": {
                  "type": "Identifier",
                  "start": 204,
                  "end": 206,
                  "loc": {
                    "start": {
                      "line": 6,
                      "column": 16
                    },
                    "end": {
                      "line": 6,
                      "column": 18
                    }
                  },
                  "name": "fs"
                },
                "computed": false
              },
              "consequent": {
                "type": "BlockStatement",
                "start": 208,
                "end": 334,
                "loc": {
                  "start": {
                    "line": 6,
                    "column": 20
                  },
                  "end": {
                    "line": 10,
                    "column": 3
                  }
                },
                "body": [
                  {
                    "type": "ExpressionStatement",
                    "start": 214,
                    "end": 330,
                    "loc": {
                      "start": {
                        "line": 7,
                        "column": 4
                      },
                      "end": {
                        "line": 9,
                        "column": 7
                      }
                    },
                    "expression": {
                      "type": "CallExpression",
                      "start": 214,
                      "end": 329,
                      "loc": {
                        "start": {
                          "line": 7,
                          "column": 4
                        },
                        "end": {
                          "line": 9,
                          "column": 6
                        }
                      },
                      "callee": {
                        "type": "MemberExpression",
                        "start": 214,
                        "end": 230,
                        "loc": {
                          "start": {
                            "line": 7,
                            "column": 4
                          },
                          "end": {
                            "line": 7,
                            "column": 20
                          }
                        },
                        "object": {
                          "type": "MemberExpression",
                          "start": 214,
                          "end": 226,
                          "loc": {
                            "start": {
                              "line": 7,
                              "column": 4
                            },
                            "end": {
                              "line": 7,
                              "column": 16
                            }
                          },
                          "object": {
                            "type": "MemberExpression",
                            "start": 214,
                            "end": 223,
                            "loc": {
                              "start": {
                                "line": 7,
                                "column": 4
                              },
                              "end": {
                                "line": 7,
                                "column": 13
                              }
                            },
                            "object": {
                              "type": "Identifier",
                              "start": 214,
                              "end": 220,
                              "loc": {
                                "start": {
                                  "line": 7,
                                  "column": 4
                                },
                                "end": {
                                  "line": 7,
                                  "column": 10
                                }
                              },
                              "name": "window"
                            },
                            "property": {
                              "type": "Identifier",
                              "start": 221,
                              "end": 223,
                              "loc": {
                                "start": {
                                  "line": 7,
                                  "column": 11
                                },
                                "end": {
                                  "line": 7,
                                  "column": 13
                                }
                              },
                              "name": "lp"
                            },
                            "computed": false
                          },
                          "property": {
                            "type": "Identifier",
                            "start": 224,
                            "end": 226,
                            "loc": {
                              "start": {
                                "line": 7,
                                "column": 14
                              },
                              "end": {
                                "line": 7,
                                "column": 16
                              }
                            },
                            "name": "fs"
                          },
                          "computed": false
                        },
                        "property": {
                          "type": "Identifier",
                          "start": 227,
                          "end": 230,
                          "loc": {
                            "start": {
                              "line": 7,
                              "column": 17
                            },
                            "end": {
                              "line": 7,
                              "column": 20
                            }
                          },
                          "name": "log"
                        },
                        "computed": false
                      },
                      "arguments": [
                        {
                          "type": "ObjectExpression",
                          "start": 231,
                          "end": 328,
                          "loc": {
                            "start": {
                              "line": 7,
                              "column": 21
                            },
                            "end": {
                              "line": 9,
                              "column": 5
                            }
                          },
                          "properties": [
                            {
                              "type": "Property",
                              "start": 239,
                              "end": 322,
                              "loc": {
                                "start": {
                                  "line": 8,
                                  "column": 6
                                },
                                "end": {
                                  "line": 8,
                                  "column": 89
                                }
                              },
                              "method": false,
                              "shorthand": false,
                              "computed": false,
                              "key": {
                                "type": "Identifier",
                                "start": 239,
                                "end": 240,
                                "loc": {
                                  "start": {
                                    "line": 8,
                                    "column": 6
                                  },
                                  "end": {
                                    "line": 8,
                                    "column": 7
                                  }
                                },
                                "name": "d"
                              },
                              "value": {
                                "type": "ConditionalExpression",
                                "start": 242,
                                "end": 322,
                                "loc": {
                                  "start": {
                                    "line": 8,
                                    "column": 9
                                  },
                                  "end": {
                                    "line": 8,
                                    "column": 89
                                  }
                                },
                                "test": {
                                  "type": "BinaryExpression",
                                  "start": 242,
                                  "end": 274,
                                  "loc": {
                                    "start": {
                                      "line": 8,
                                      "column": 9
                                    },
                                    "end": {
                                      "line": 8,
                                      "column": 41
                                    }
                                  },
                                  "left": {
                                    "type": "UnaryExpression",
                                    "start": 242,
                                    "end": 261,
                                    "loc": {
                                      "start": {
                                        "line": 8,
                                        "column": 9
                                      },
                                      "end": {
                                        "line": 8,
                                        "column": 28
                                      }
                                    },
                                    "operator": "typeof",
                                    "prefix": true,
                                    "argument": {
                                      "type": "MemberExpression",
                                      "start": 249,
                                      "end": 261,
                                      "loc": {
                                        "start": {
                                          "line": 8,
                                          "column": 16
                                        },
                                        "end": {
                                          "line": 8,
                                          "column": 28
                                        }
                                      },
                                      "object": {
                                        "type": "Identifier",
                                        "start": 249,
                                        "end": 258,
                                        "loc": {
                                          "start": {
                                            "line": 8,
                                            "column": 16
                                          },
                                          "end": {
                                            "line": 8,
                                            "column": 25
                                          }
                                        },
                                        "name": "arguments"
                                      },
                                      "property": {
                                        "type": "Literal",
                                        "start": 259,
                                        "end": 260,
                                        "loc": {
                                          "start": {
                                            "line": 8,
                                            "column": 26
                                          },
                                          "end": {
                                            "line": 8,
                                            "column": 27
                                          }
                                        },
                                        "value": 0,
                                        "rawValue": 0,
                                        "raw": "0"
                                      },
                                      "computed": true
                                    }
                                  },
                                  "operator": "===",
                                  "right": {
                                    "type": "Literal",
                                    "start": 266,
                                    "end": 274,
                                    "loc": {
                                      "start": {
                                        "line": 8,
                                        "column": 33
                                      },
                                      "end": {
                                        "line": 8,
                                        "column": 41
                                      }
                                    },
                                    "value": "string",
                                    "rawValue": "string",
                                    "raw": "\"string\""
                                  }
                                },
                                "consequent": {
                                  "type": "MemberExpression",
                                  "start": 277,
                                  "end": 289,
                                  "loc": {
                                    "start": {
                                      "line": 8,
                                      "column": 44
                                    },
                                    "end": {
                                      "line": 8,
                                      "column": 56
                                    }
                                  },
                                  "object": {
                                    "type": "Identifier",
                                    "start": 277,
                                    "end": 286,
                                    "loc": {
                                      "start": {
                                        "line": 8,
                                        "column": 44
                                      },
                                      "end": {
                                        "line": 8,
                                        "column": 53
                                      }
                                    },
                                    "name": "arguments"
                                  },
                                  "property": {
                                    "type": "Literal",
                                    "start": 287,
                                    "end": 288,
                                    "loc": {
                                      "start": {
                                        "line": 8,
                                        "column": 54
                                      },
                                      "end": {
                                        "line": 8,
                                        "column": 55
                                      }
                                    },
                                    "value": 0,
                                    "rawValue": 0,
                                    "raw": "0"
                                  },
                                  "computed": true
                                },
                                "alternate": {
                                  "type": "CallExpression",
                                  "start": 292,
                                  "end": 322,
                                  "loc": {
                                    "start": {
                                      "line": 8,
                                      "column": 59
                                    },
                                    "end": {
                                      "line": 8,
                                      "column": 89
                                    }
                                  },
                                  "callee": {
                                    "type": "MemberExpression",
                                    "start": 292,
                                    "end": 306,
                                    "loc": {
                                      "start": {
                                        "line": 8,
                                        "column": 59
                                      },
                                      "end": {
                                        "line": 8,
                                        "column": 73
                                      }
                                    },
                                    "object": {
                                      "type": "Identifier",
                                      "start": 292,
                                      "end": 296,
                                      "loc": {
                                        "start": {
                                          "line": 8,
                                          "column": 59
                                        },
                                        "end": {
                                          "line": 8,
                                          "column": 63
                                        }
                                      },
                                      "name": "JSON"
                                    },
                                    "property": {
                                      "type": "Identifier",
                                      "start": 297,
                                      "end": 306,
                                      "loc": {
                                        "start": {
                                          "line": 8,
                                          "column": 64
                                        },
                                        "end": {
                                          "line": 8,
                                          "column": 73
                                        }
                                      },
                                      "name": "stringify"
                                    },
                                    "computed": false
                                  },
                                  "arguments": [
                                    {
                                      "type": "ObjectExpression",
                                      "start": 307,
                                      "end": 321,
                                      "loc": {
                                        "start": {
                                          "line": 8,
                                          "column": 74
                                        },
                                        "end": {
                                          "line": 8,
                                          "column": 88
                                        }
                                      },
                                      "properties": [
                                        {
                                          "type": "Property",
                                          "start": 309,
                                          "end": 313,
                                          "loc": {
                                            "start": {
                                              "line": 8,
                                              "column": 76
                                            },
                                            "end": {
                                              "line": 8,
                                              "column": 80
                                            }
                                          },
                                          "method": false,
                                          "shorthand": true,
                                          "computed": false,
                                          "key": {
                                            "type": "Identifier",
                                            "start": 309,
                                            "end": 313,
                                            "loc": {
                                              "start": {
                                                "line": 8,
                                                "column": 76
                                              },
                                              "end": {
                                                "line": 8,
                                                "column": 80
                                              }
                                            },
                                            "name": "name"
                                          },
                                          "kind": "init",
                                          "value": {
                                            "type": "Identifier",
                                            "start": 309,
                                            "end": 313,
                                            "loc": {
                                              "start": {
                                                "line": 8,
                                                "column": 76
                                              },
                                              "end": {
                                                "line": 8,
                                                "column": 80
                                              }
                                            },
                                            "name": "name"
                                          }
                                        },
                                        {
                                          "type": "Property",
                                          "start": 315,
                                          "end": 319,
                                          "loc": {
                                            "start": {
                                              "line": 8,
                                              "column": 82
                                            },
                                            "end": {
                                              "line": 8,
                                              "column": 86
                                            }
                                          },
                                          "method": false,
                                          "shorthand": true,
                                          "computed": false,
                                          "key": {
                                            "type": "Identifier",
                                            "start": 315,
                                            "end": 319,
                                            "loc": {
                                              "start": {
                                                "line": 8,
                                                "column": 82
                                              },
                                              "end": {
                                                "line": 8,
                                                "column": 86
                                              }
                                            },
                                            "name": "data"
                                          },
                                          "kind": "init",
                                          "value": {
                                            "type": "Identifier",
                                            "start": 315,
                                            "end": 319,
                                            "loc": {
                                              "start": {
                                                "line": 8,
                                                "column": 82
                                              },
                                              "end": {
                                                "line": 8,
                                                "column": 86
                                              }
                                            },
                                            "name": "data"
                                          }
                                        }
                                      ]
                                    }
                                  ]
                                }
                              },
                              "kind": "init"
                            }
                          ]
                        }
                      ]
                    }
                  }
                ]
              },
              "alternate": null
            }
          ]
        },
        "leadingComments": [
          {
            "type": "Block",
            "value": "*\n * Log an event with Flamsteed\n * @param  {Object|String} data An object containing data to log, or a string description of an event\n ",
            "start": 0,
            "end": 140,
            "loc": {
              "start": {
                "line": 1,
                "column": 0
              },
              "end": {
                "line": 4,
                "column": 3
              }
            },
            "range": [
              0,
              140
            ]
          }
        ],
        "trailingComments": []
      },
      "leadingComments": [
        {
          "type": "Block",
          "value": "*\n * Log an event with Flamsteed\n * @param  {Object|String} data An object containing data to log, or a string description of an event\n ",
          "start": 0,
          "end": 140,
          "loc": {
            "start": {
              "line": 1,
              "column": 0
            },
            "end": {
              "line": 4,
              "column": 3
            }
          },
          "range": [
            0,
            140
          ]
        }
      ]
    },
    {
      "type": "EmptyStatement",
      "start": 336,
      "end": 337,
      "loc": {
        "start": {
          "line": 11,
          "column": 1
        },
        "end": {
          "line": 11,
          "column": 2
        }
      }
    }
  ]
}