skypager-project
Version:
skypager project framework
1,977 lines (1,956 loc) • 273 kB
JavaScript
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/ // identity function for calling harmory imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/ // define getter function for harmory exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "/";
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 173);
/******/ })
/************************************************************************/
/******/ ({
/***/ 173:
/***/ function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(82);
/***/ },
/***/ 82:
/***/ function(module, exports) {
module.exports = {
"path": "/Users/jonathan/Skypager/packages/skypager-project/src/transformers/rehype.js",
"ast": {
"type": "File",
"start": 0,
"end": 1396,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 58,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 1396,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 58,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "Object"
},
"property": {
"type": "Identifier",
"name": "defineProperty"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"name": "exports"
},
{
"type": "StringLiteral",
"extra": {
"rawValue": "__esModule",
"raw": "\"__esModule\""
},
"value": "__esModule"
},
{
"type": "ObjectExpression",
"properties": [
{
"type": "ObjectProperty",
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"name": "value"
},
"value": {
"type": "BooleanLiteral",
"value": true
}
}
]
}
]
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "exports"
},
"property": {
"type": "Identifier",
"name": "profiles",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": false
},
"right": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "exports"
},
"property": {
"type": "Identifier",
"name": "nestedSections",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": false
},
"right": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "exports"
},
"property": {
"type": "Identifier",
"name": "rehype",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": false
},
"right": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "exports"
},
"property": {
"type": "Identifier",
"name": "applyTo",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": false
},
"right": {
"type": "Identifier",
"name": "undefined",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
}
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_markdown"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"value": "./markdown",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
]
}
}
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 35
}
}
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_remarkRehype"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"value": "remark-rehype",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
]
}
}
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 42
}
}
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_remarkRehype2"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault"
},
"arguments": [
{
"type": "Identifier",
"name": "_remarkRehype"
}
]
}
}
]
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_rehypeStringify"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"value": "rehype-stringify",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
]
}
}
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 40
}
}
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_rehypeStringify2"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault"
},
"arguments": [
{
"type": "Identifier",
"name": "_rehypeStringify"
}
]
}
}
]
},
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "_interopRequireDefault"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"name": "obj"
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "ConditionalExpression",
"test": {
"type": "LogicalExpression",
"left": {
"type": "Identifier",
"name": "obj"
},
"operator": "&&",
"right": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "obj"
},
"property": {
"type": "Identifier",
"name": "__esModule"
},
"computed": false
}
},
"consequent": {
"type": "Identifier",
"name": "obj"
},
"alternate": {
"type": "ObjectExpression",
"properties": [
{
"type": "ObjectProperty",
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"name": "default"
},
"value": {
"type": "Identifier",
"name": "obj"
}
}
]
}
}
}
],
"directives": []
},
"extra": {
"parenthesized": true,
"parenStart": 3
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "exports"
},
"property": {
"type": "Identifier",
"name": "default",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": false
},
"right": {
"type": "FunctionExpression",
"start": 136,
"end": 269,
"loc": {
"start": {
"line": 5,
"column": 15
},
"end": {
"line": 8,
"column": 1
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 168,
"end": 269,
"loc": {
"start": {
"line": 5,
"column": 47
},
"end": {
"line": 8,
"column": 1
}
},
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"start": 137,
"end": 144,
"loc": {
"start": {
"line": 5,
"column": 16
},
"end": {
"line": 5,
"column": 23
},
"identifierName": "options"
},
"name": "options",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"init": {
"type": "ConditionalExpression",
"test": {
"type": "LogicalExpression",
"left": {
"type": "BinaryExpression",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "arguments",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"property": {
"type": "Identifier",
"name": "length"
},
"computed": false
},
"operator": ">",
"right": {
"type": "NumericLiteral",
"value": 0,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "arguments",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"property": {
"type": "NumericLiteral",
"value": 0,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": true
},
"operator": "!==",
"right": {
"type": "Identifier",
"name": "undefined"
}
}
},
"consequent": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "arguments",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"property": {
"type": "NumericLiteral",
"value": 0,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": true
},
"alternate": {
"type": "ObjectExpression",
"start": 147,
"end": 149,
"loc": {
"start": {
"line": 5,
"column": 26
},
"end": {
"line": 5,
"column": 28
}
},
"properties": [],
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
}
}
],
"kind": "var"
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"start": 151,
"end": 158,
"loc": {
"start": {
"line": 5,
"column": 30
},
"end": {
"line": 5,
"column": 37
},
"identifierName": "context"
},
"name": "context",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"init": {
"type": "ConditionalExpression",
"test": {
"type": "LogicalExpression",
"left": {
"type": "BinaryExpression",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "arguments",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"property": {
"type": "Identifier",
"name": "length"
},
"computed": false
},
"operator": ">",
"right": {
"type": "NumericLiteral",
"value": 1,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "arguments",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"property": {
"type": "NumericLiteral",
"value": 1,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": true
},
"operator": "!==",
"right": {
"type": "Identifier",
"name": "undefined"
}
}
},
"consequent": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "arguments",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"property": {
"type": "NumericLiteral",
"value": 1,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": true
},
"alternate": {
"type": "ObjectExpression",
"start": 161,
"end": 163,
"loc": {
"start": {
"line": 5,
"column": 40
},
"end": {
"line": 5,
"column": 42
}
},
"properties": [],
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
}
}
],
"kind": "var"
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_options$profile"
},
"init": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"start": 204,
"end": 211,
"loc": {
"start": {
"line": 6,
"column": 34
},
"end": {
"line": 6,
"column": 41
},
"identifierName": "options"
},
"name": "options"
},
"property": {
"type": "Identifier",
"start": 180,
"end": 187,
"loc": {
"start": {
"line": 6,
"column": 10
},
"end": {
"line": 6,
"column": 17
},
"identifierName": "profile"
},
"name": "profile"
},
"computed": false
}
}
],
"leadingComments": []
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"start": 180,
"end": 187,
"loc": {
"start": {
"line": 6,
"column": 10
},
"end": {
"line": 6,
"column": 17
},
"identifierName": "profile"
},
"name": "profile"
},
"init": {
"type": "ConditionalExpression",
"test": {
"type": "BinaryExpression",
"operator": "===",
"left": {
"type": "Identifier",
"name": "_options$profile"
},
"right": {
"type": "Identifier",
"name": "undefined"
}
},
"consequent": {
"type": "StringLiteral",
"start": 190,
"end": 199,
"loc": {
"start": {
"line": 6,
"column": 20
},
"end": {
"line": 6,
"column": 29
}
},
"extra": {
"rawValue": "default",
"raw": "'default'"
},
"value": "default"
},
"alternate": {
"type": "Identifier",
"name": "_options$profile"
}
}
}
],
"trailingComments": []
},
{
"type": "ReturnStatement",
"start": 214,
"end": 267,
"loc": {
"start": {
"line": 7,
"column": 2
},
"end": {
"line": 7,
"column": 55
}
},
"argument": {
"type": "CallExpression",
"start": 221,
"end": 267,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 55
}
},
"callee": {
"type": "LogicalExpression",
"start": 222,
"end": 257,
"loc": {
"start": {
"line": 7,
"column": 10
},
"end": {
"line": 7,
"column": 45
}
},
"left": {
"type": "MemberExpression",
"start": 222,
"end": 239,
"loc": {
"start": {
"line": 7,
"column": 10
},
"end": {
"line": 7,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 222,
"end": 230,
"loc": {
"start": {
"line": 7,
"column": 10
},
"end": {
"line": 7,
"column": 18
},
"identifierName": "profiles"
},
"name": "profiles"
},
"property": {
"type": "Identifier",
"start": 231,
"end": 238,
"loc": {
"start": {
"line": 7,
"column": 19
},
"end": {
"line": 7,
"column": 26
},
"identifierName": "profile"
},
"name": "profile"
},
"computed": true
},
"operator": "||",
"right": {
"type": "Identifier",
"start": 243,
"end": 257,
"loc": {
"start": {
"line": 7,
"column": 31
},
"end": {
"line": 7,
"column": 45
},
"identifierName": "nestedSections"
},
"name": "nestedSections"
},
"extra": {
"parenthesized": true,
"parenStart": 221
}
},
"arguments": [
{
"type": "Identifier",
"start": 259,
"end": 266,
"loc": {
"start": {
"line": 7,
"column": 47
},
"end": {
"line": 7,
"column": 54
},
"identifierName": "options"
},
"name": "options"
}
]
}
}
],
"directives": []
},
"shadow": true,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
},
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
{
"type": "VariableDeclaration",
"start": 278,
"end": 425,
"loc": {
"start": {
"line": 10,
"column": 7
},
"end": {
"line": 13,
"column": 1
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 284,
"end": 425,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 13,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 284,
"end": 291,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 20
},
"identifierName": "applyTo"
},
"name": "applyTo",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"init": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "exports"
},
"property": {
"type": "Identifier",
"start": 284,
"end": 291,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 20
},
"identifierName": "applyTo"
},
"name": "applyTo",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": false
},
"right": {
"type": "FunctionExpression",
"start": 294,
"end": 425,
"loc": {
"start": {
"line": 10,
"column": 23
},
"end": {
"line": 13,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 284,
"end": 291,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 20
},
"identifierName": "applyTo"
},
"name": "applyTo",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 295,
"end": 300,
"loc": {
"start": {
"line": 10,
"column": 24
},
"end": {
"line": 10,
"column": 29
},
"identifierName": "input"
},
"name": "input"
},
{
"type": "Identifier",
"start": 302,
"end": 309,
"loc": {
"start": {
"line": 10,
"column": 31
},
"end": {
"line": 10,
"column": 38
},
"identifierName": "options"
},
"name": "options"
}
],
"body": {
"type": "BlockStatement",
"start": 314,
"end": 425,
"loc": {
"start": {
"line": 10,
"column": 43
},
"end": {
"line": 13,
"column": 1
}
},
"body": [
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_options$method"
},
"init": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"start": 366,
"end": 373,
"loc": {
"start": {
"line": 11,
"column": 50
},
"end": {
"line": 11,
"column": 57
},
"identifierName": "options"
},
"name": "options"
},
"property": {
"type": "Identifier",
"start": 326,
"end": 332,
"loc": {
"start": {
"line": 11,
"column": 10
},
"end": {
"line": 11,
"column": 16
},
"identifierName": "method"
},
"name": "method"
},
"computed": false
}
}
],
"leadingComments": []
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"start": 326,
"end": 332,
"loc": {
"start": {
"line": 11,
"column": 10
},
"end": {
"line": 11,
"column": 16
},
"identifierName": "method"
},
"name": "method"
},
"init": {
"type": "ConditionalExpression",
"test": {
"type": "BinaryExpression",
"operator": "===",
"left": {
"type": "Identifier",
"name": "_options$method"
},
"right": {
"type": "Identifier",
"name": "undefined"
}
},
"consequent": {
"type": "StringLiteral",
"start": 335,
"end": 342,
"loc": {
"start": {
"line": 11,
"column": 19
},
"end": {
"line": 11,
"column": 26
}
},
"extra": {
"rawValue": "parse",
"raw": "'parse'"
},
"value": "parse"
},
"alternate": {
"type": "Identifier",
"name": "_options$method"
}
}
}
]
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_options$parser"
},
"init": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"start": 366,
"end": 373,
"loc": {
"start": {
"line": 11,
"column": 50
},
"end": {
"line": 11,
"column": 57
},
"identifierName": "options"
},
"name": "options"
},
"property": {
"type": "Identifier",
"start": 344,
"end": 350,
"loc": {
"start": {
"line": 11,
"column": 28
},
"end": {
"line": 11,
"column": 34
},
"identifierName": "parser"
},
"name": "parser"
},
"computed": false
}
}
]
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"start": 344,
"end": 350,
"loc": {
"start": {
"line": 11,
"column": 28
},
"end": {
"line": 11,
"column": 34
},
"identifierName": "parser"
},
"name": "parser"
},
"init": {
"type": "ConditionalExpression",
"test": {
"type": "BinaryExpression",
"operator": "===",
"left": {
"type": "Identifier",
"name": "_options$parser"
},
"right": {
"type": "Identifier",
"name": "undefined"
}
},
"consequent": {
"type": "StringLiteral",
"start": 353,
"end": 361,
"loc": {
"start": {
"line": 11,
"column": 37
},
"end": {
"line": 11,
"column": 45
}
},
"extra": {
"rawValue": "nested",
"raw": "'nested'"
},
"value": "nested"
},
"alternate": {
"type": "Identifier",
"name": "_options$parser"
}
}
}
],
"trailingComments": []
},
{
"type": "ReturnStatement",
"start": 376,
"end": 423,
"loc": {
"start": {
"line": 12,
"column": 2
},
"end": {
"line": 12,
"column": 49
}
},
"argument": {
"type": "CallExpression",
"start": 383,
"end": 423,
"loc": {
"start": {
"line": 12,
"column": 9
},
"end": {
"line": 12,
"column": 49
}
},
"callee": {
"type": "MemberExpression",
"start": 383,
"end": 416,
"loc": {
"start": {
"line": 12,
"column": 9
},
"end": {
"line": 12,
"column": 42
}
},
"object": {
"type": "CallExpression",
"start": 383,
"end": 408,
"loc": {
"start": {
"line": 12,
"column": 9
},
"end": {
"line": 12,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 383,
"end": 399,
"loc": {
"start": {
"line": 12,
"column": 9
},
"end": {
"line": 12,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 383,
"end": 391,
"loc": {
"start": {
"line": 12,
"column": 9
},
"end": {
"line": 12,
"column": 17
},
"identifierName": "profiles"
},
"name": "profiles"
},
"property": {
"type": "Identifier",
"start": 392,
"end": 398,
"loc": {
"start": {
"line": 12,
"column": 18
},
"end": {
"line": 12,
"column": 24
},
"identifierName": "parser"
},
"name": "parser"
},
"computed": true
},
"arguments": [
{
"type": "Identifier",
"start": 400,
"end": 407,
"loc": {
"start": {
"line": 12,
"column": 26
},
"end": {
"line": 12,
"column": 33
},
"identifierName": "options"
},
"name": "options"
}
]
},
"property": {
"type": "Identifier",
"start": 409,
"end": 415,
"loc": {
"start": {
"line": 12,
"column": 35
},
"end": {
"line": 12,
"column": 41
},
"identifierName": "method"
},
"name": "method"
},
"computed": true
},
"arguments": [
{
"type": "Identifier",
"start": 417,
"end": 422,
"loc": {
"start": {
"line": 12,
"column": 43
},
"end": {
"line": 12,
"column": 48
},
"identifierName": "input"
},
"name": "input"
}
]
}
}
],
"directives": []
},
"shadow": true
},
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
}
],
"kind": "var",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
{
"type": "VariableDeclaration",
"start": 434,
"end": 529,
"loc": {
"start": {
"line": 15,
"column": 7
},
"end": {
"line": 18,
"column": 19
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 440,
"end": 529,
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 18,
"column": 19
}
},
"id": {
"type": "Identifier",
"start": 440,
"end": 446,
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 15,
"column": 19
},
"identifierName": "rehype"
},
"name": "rehype",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"init": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "exports"
},
"property": {
"type": "Identifier",
"start": 440,
"end": 446,
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 15,
"column": 19
},
"identifierName": "rehype"
},
"name": "rehype",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": false
},
"right": {
"type": "FunctionExpression",
"start": 449,
"end": 529,
"loc": {
"start": {
"line": 15,
"column": 22
},
"end": {
"line": 18,
"column": 19
}
},
"id": {
"type": "Identifier",
"start": 440,
"end": 446,
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 15,
"column": 19
},
"identifierName": "rehype"
},
"name": "rehype",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"start": 450,
"end": 457,
"loc": {
"start": {
"line": 15,
"column": 23
},
"end": {
"line": 15,
"column": 30
},
"identifierName": "options"
},
"name": "options",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"init": {
"type": "ConditionalExpression",
"test": {
"type": "LogicalExpression",
"left": {
"type": "BinaryExpression",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "arguments",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"property": {
"type": "Identifier",
"name": "length"
},
"computed": false
},
"operator": ">",
"right": {
"type": "NumericLiteral",
"value": 0,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "arguments",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"property": {
"type": "NumericLiteral",
"value": 0,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": true
},
"operator": "!==",
"right": {
"type": "Identifier",
"name": "undefined"
}
}
},
"consequent": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "arguments",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"property": {
"type": "NumericLiteral",
"value": 0,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": true
},
"alternate": {
"type": "ObjectExpression",
"start": 460,
"end": 462,
"loc": {
"start": {
"line": 15,
"column": 33
},
"end": {
"line": 15,
"column": 35
}
},
"properties": [],
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
}
}
],
"kind": "var"
},
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"start": 469,
"end": 529,
"loc": {
"start": {
"line": 16,
"column": 2
},
"end": {
"line": 18,
"column": 19
}
},
"callee": {
"type": "MemberExpression",
"start": 469,
"end": 518,
"loc": {
"start": {
"line": 16,
"column": 2
},
"end": {
"line": 18,
"column": 8
}
},
"object": {
"type": "CallExpression",
"start": 469,
"end": 509,
"loc": {
"start": {
"line": 16,
"column": 2
},
"end": {
"line": 17,
"column": 24
}
},
"callee": {
"type": "MemberExpression",
"start": 469,
"end": 493,
"loc": {
"start": {
"line": 16,
"column": 2
},
"end": {
"line": 17,
"column": 8
}
},
"object": {
"type": "CallExpression",
"start": 469,
"end": 484,
"loc": {
"start": {
"line": 16,
"column": 2
},
"end": {
"line": 16,
"column": 17
}
},
"callee": {
"type": "