skypager-project
Version:
skypager project framework
1,918 lines (1,897 loc) • 178 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 = 122);
/******/ })
/************************************************************************/
/******/ ({
/***/ 122:
/***/ function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(31);
/***/ },
/***/ 31:
/***/ function(module, exports) {
module.exports = {
"path": "/Users/jonathan/Skypager/packages/skypager-project/src/config/stringify.js",
"ast": {
"type": "File",
"start": 0,
"end": 935,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 45,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 935,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 45,
"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": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_stringify"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"value": "babel-runtime/core-js/json/stringify",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
]
}
}
]
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_stringify2"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault"
},
"arguments": [
{
"type": "Identifier",
"name": "_stringify"
}
]
}
}
]
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_keys"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"value": "babel-runtime/core-js/object/keys",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
]
}
}
]
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_keys2"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault"
},
"arguments": [
{
"type": "Identifier",
"name": "_keys"
}
]
}
}
]
},
{
"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": "Identifier",
"start": 105,
"end": 114,
"loc": {
"start": {
"line": 5,
"column": 24
},
"end": {
"line": 5,
"column": 33
},
"identifierName": "stringify"
},
"name": "stringify",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
}
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_lodash"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"value": "lodash",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
]
}
}
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 39
}
}
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_Expression"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"value": "./Expression",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
]
}
}
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 38
}
}
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_Expression2"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault"
},
"arguments": [
{
"type": "Identifier",
"name": "_Expression"
}
]
}
}
]
},
{
"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": "FunctionDeclaration",
"start": 96,
"end": 934,
"loc": {
"start": {
"line": 5,
"column": 15
},
"end": {
"line": 44,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 105,
"end": 114,
"loc": {
"start": {
"line": 5,
"column": 24
},
"end": {
"line": 5,
"column": 33
},
"identifierName": "stringify"
},
"name": "stringify",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 115,
"end": 120,
"loc": {
"start": {
"line": 5,
"column": 34
},
"end": {
"line": 5,
"column": 39
},
"identifierName": "value"
},
"name": "value"
}
],
"body": {
"type": "BlockStatement",
"start": 122,
"end": 934,
"loc": {
"start": {
"line": 5,
"column": 41
},
"end": {
"line": 44,
"column": 1
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 126,
"end": 150,
"loc": {
"start": {
"line": 6,
"column": 2
},
"end": {
"line": 6,
"column": 26
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 132,
"end": 149,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 25
}
},
"id": {
"type": "Identifier",
"start": 132,
"end": 144,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 20
},
"identifierName": "replacements"
},
"name": "replacements"
},
"init": {
"type": "ArrayExpression",
"start": 147,
"end": 149,
"loc": {
"start": {
"line": 6,
"column": 23
},
"end": {
"line": 6,
"column": 25
}
},
"elements": []
}
}
],
"kind": "var"
},
{
"type": "VariableDeclaration",
"start": 154,
"end": 252,
"loc": {
"start": {
"line": 8,
"column": 2
},
"end": {
"line": 10,
"column": 3
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 160,
"end": 252,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 10,
"column": 3
}
},
"id": {
"type": "Identifier",
"start": 160,
"end": 167,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 15
},
"identifierName": "replace"
},
"name": "replace"
},
"init": {
"type": "FunctionExpression",
"start": 170,
"end": 252,
"loc": {
"start": {
"line": 8,
"column": 18
},
"end": {
"line": 10,
"column": 3
}
},
"id": {
"type": "Identifier",
"start": 160,
"end": 167,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 15
},
"identifierName": "replace"
},
"name": "replace"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 171,
"end": 182,
"loc": {
"start": {
"line": 8,
"column": 19
},
"end": {
"line": 8,
"column": 30
},
"identifierName": "replacement"
},
"name": "replacement"
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "StringLiteral",
"value": "__REPLACEMENT_"
},
"right": {
"type": "BinaryExpression",
"start": 210,
"end": 244,
"loc": {
"start": {
"line": 9,
"column": 21
},
"end": {
"line": 9,
"column": 55
}
},
"left": {
"type": "CallExpression",
"start": 210,
"end": 240,
"loc": {
"start": {
"line": 9,
"column": 21
},
"end": {
"line": 9,
"column": 51
}
},
"callee": {
"type": "MemberExpression",
"start": 210,
"end": 227,
"loc": {
"start": {
"line": 9,
"column": 21
},
"end": {
"line": 9,
"column": 38
}
},
"object": {
"type": "Identifier",
"start": 210,
"end": 222,
"loc": {
"start": {
"line": 9,
"column": 21
},
"end": {
"line": 9,
"column": 33
},
"identifierName": "replacements"
},
"name": "replacements"
},
"property": {
"type": "Identifier",
"start": 223,
"end": 227,
"loc": {
"start": {
"line": 9,
"column": 34
},
"end": {
"line": 9,
"column": 38
},
"identifierName": "push"
},
"name": "push"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 228,
"end": 239,
"loc": {
"start": {
"line": 9,
"column": 39
},
"end": {
"line": 9,
"column": 50
},
"identifierName": "replacement"
},
"name": "replacement"
}
]
},
"operator": "-",
"right": {
"type": "NumericLiteral",
"start": 243,
"end": 244,
"loc": {
"start": {
"line": 9,
"column": 54
},
"end": {
"line": 9,
"column": 55
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
}
},
"right": {
"type": "StringLiteral",
"value": "__"
},
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
}
],
"directives": []
},
"shadow": true
}
}
],
"kind": "var"
},
{
"type": "VariableDeclaration",
"start": 256,
"end": 394,
"loc": {
"start": {
"line": 12,
"column": 2
},
"end": {
"line": 16,
"column": 9
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 262,
"end": 393,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 16,
"column": 8
}
},
"id": {
"type": "Identifier",
"start": 262,
"end": 266,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 12
},
"identifierName": "sort"
},
"name": "sort"
},
"init": {
"type": "FunctionExpression",
"start": 269,
"end": 393,
"loc": {
"start": {
"line": 12,
"column": 15
},
"end": {
"line": 16,
"column": 8
}
},
"id": {
"type": "Identifier",
"start": 262,
"end": 266,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 12
},
"identifierName": "sort"
},
"name": "sort"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 270,
"end": 276,
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 22
},
"identifierName": "object"
},
"name": "object"
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"start": 281,
"end": 393,
"loc": {
"start": {
"line": 12,
"column": 27
},
"end": {
"line": 16,
"column": 8
}
},
"callee": {
"type": "MemberExpression",
"start": 281,
"end": 314,
"loc": {
"start": {
"line": 12,
"column": 27
},
"end": {
"line": 12,
"column": 60
}
},
"object": {
"type": "CallExpression",
"start": 281,
"end": 307,
"loc": {
"start": {
"line": 12,
"column": 27
},
"end": {
"line": 12,
"column": 53
}
},
"callee": {
"type": "MemberExpression",
"start": 281,
"end": 305,
"loc": {
"start": {
"line": 12,
"column": 27
},
"end": {
"line": 12,
"column": 51
}
},
"object": {
"type": "CallExpression",
"start": 281,
"end": 300,
"loc": {
"start": {
"line": 12,
"column": 27
},
"end": {
"line": 12,
"column": 46
}
},
"callee": {
"type": "SequenceExpression",
"expressions": [
{
"type": "NumericLiteral",
"value": 0
},
{
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "_keys2"
},
"property": {
"type": "Identifier",
"name": "default"
},
"computed": false
}
],
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"arguments": [
{
"type": "Identifier",
"start": 293,
"end": 299,
"loc": {
"start": {
"line": 12,
"column": 39
},
"end": {
"line": 12,
"column": 45
},
"identifierName": "object"
},
"name": "object"
}
]
},
"property": {
"type": "Identifier",
"start": 301,
"end": 305,
"loc": {
"start": {
"line": 12,
"column": 47
},
"end": {
"line": 12,
"column": 51
},
"identifierName": "sort"
},
"name": "sort"
},
"computed": false
},
"arguments": []
},
"property": {
"type": "Identifier",
"start": 308,
"end": 314,
"loc": {
"start": {
"line": 12,
"column": 54
},
"end": {
"line": 12,
"column": 60
},
"identifierName": "reduce"
},
"name": "reduce"
},
"computed": false
},
"arguments": [
{
"type": "FunctionExpression",
"start": 315,
"end": 388,
"loc": {
"start": {
"line": 12,
"column": 61
},
"end": {
"line": 16,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 316,
"end": 322,
"loc": {
"start": {
"line": 12,
"column": 62
},
"end": {
"line": 12,
"column": 68
},
"identifierName": "sorted"
},
"name": "sorted"
},
{
"type": "Identifier",
"start": 324,
"end": 327,
"loc": {
"start": {
"line": 12,
"column": 70
},
"end": {
"line": 12,
"column": 73
},
"identifierName": "key"
},
"name": "key"
}
],
"body": {
"type": "BlockStatement",
"start": 332,
"end": 388,
"loc": {
"start": {
"line": 12,
"column": 78
},
"end": {
"line": 16,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 338,
"end": 364,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 30
}
},
"expression": {
"type": "AssignmentExpression",
"start": 338,
"end": 363,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 29
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 338,
"end": 349,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 15
}
},
"object": {
"type": "Identifier",
"start": 338,
"end": 344,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 10
},
"identifierName": "sorted"
},
"name": "sorted"
},
"property": {
"type": "Identifier",
"start": 345,
"end": 348,
"loc": {
"start": {
"line": 13,
"column": 11
},
"end": {
"line": 13,
"column": 14
},
"identifierName": "key"
},
"name": "key"
},
"computed": true
},
"right": {
"type": "MemberExpression",
"start": 352,
"end": 363,
"loc": {
"start": {
"line": 13,
"column": 18
},
"end": {
"line": 13,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 352,
"end": 358,
"loc": {
"start": {
"line": 13,
"column": 18
},
"end": {
"line": 13,
"column": 24
},
"identifierName": "object"
},
"name": "object"
},
"property": {
"type": "Identifier",
"start": 359,
"end": 362,
"loc": {
"start": {
"line": 13,
"column": 25
},
"end": {
"line": 13,
"column": 28
},
"identifierName": "key"
},
"name": "key"
},
"computed": true
}
}
},
{
"type": "ReturnStatement",
"start": 370,
"end": 384,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 18
}
},
"argument": {
"type": "Identifier",
"start": 377,
"end": 383,
"loc": {
"start": {
"line": 15,
"column": 11
},
"end": {
"line": 15,
"column": 17
},
"identifierName": "sorted"
},
"name": "sorted"
}
}
],
"directives": []
},
"shadow": true
},
{
"type": "ObjectExpression",
"start": 390,
"end": 392,
"loc": {
"start": {
"line": 16,
"column": 5
},
"end": {
"line": 16,
"column": 7
}
},
"properties": []
}
]
}
}
],
"directives": []
},
"shadow": true
}
}
],
"kind": "var"
},
{
"type": "VariableDeclaration",
"start": 398,
"end": 623,
"loc": {
"start": {
"line": 18,
"column": 2
},
"end": {
"line": 28,
"column": 4
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 404,
"end": 622,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 28,
"column": 3
}
},
"id": {
"type": "Identifier",
"start": 404,
"end": 412,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 16
},
"identifierName": "replacer"
},
"name": "replacer"
},
"init": {
"type": "FunctionExpression",
"start": 415,
"end": 622,
"loc": {
"start": {
"line": 18,
"column": 19
},
"end": {
"line": 28,
"column": 3
}
},
"id": {
"type": "Identifier",
"start": 404,
"end": 412,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 16
},
"identifierName": "replacer"
},
"name": "replacer"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 416,
"end": 419,
"loc": {
"start": {
"line": 18,
"column": 20
},
"end": {
"line": 18,
"column": 23
},
"identifierName": "key"
},
"name": "key"
},
{
"type": "Identifier",
"start": 421,
"end": 426,
"loc": {
"start": {
"line": 18,
"column": 25
},
"end": {
"line": 18,
"column": 30
},
"identifierName": "value"
},
"name": "value"
}
],
"body": {
"type": "BlockStatement",
"start": 431,
"end": 622,
"loc": {
"start": {
"line": 18,
"column": 35
},
"end": {
"line": 28,
"column": 3
}
},
"body": [
{
"type": "IfStatement",
"start": 437,
"end": 517,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 21,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 441,
"end": 468,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 35
}
},
"left": {
"type": "Identifier",
"start": 441,
"end": 446,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 13
},
"identifierName": "value"
},
"name": "value"
},
"operator": "instanceof",
"right": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "_Expression2"
},
"property": {
"type": "Identifier",
"name": "default"
},
"computed": false,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
},
"consequent": {
"type": "BlockStatement",
"start": 470,
"end": 517,
"loc": {
"start": {
"line": 19,
"column": 37
},
"end": {
"line": 21,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 478,
"end": 511,
"loc": {
"start": {
"line": 20,
"column": 6
},
"end": {
"line": 20,
"column": 39
}
},
"argument": {
"type": "CallExpression",
"start": 485,
"end": 510,
"loc": {
"start": {
"line": 20,
"column": 13
},
"end": {
"line": 20,
"column": 38
}
},
"callee": {
"type": "Identifier",
"start": 485,
"end": 492,
"loc": {
"start": {
"line": 20,
"column": 13
},
"end": {
"line": 20,
"column": 20
},
"identifierName": "replace"
},
"name": "replace"
},
"arguments": [
{
"type": "CallExpression",
"start": 493,
"end": 509,
"loc": {
"start": {
"line": 20,
"column": 21
},
"end": {
"line": 20,
"column": 37
}
},
"callee": {
"type": "MemberExpression",
"start": 493,
"end": 507,
"loc": {
"start": {
"line": 20,
"column": 21
},
"end": {
"line": 20,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 493,
"end": 498,
"loc": {
"start": {
"line": 20,
"column": 21
},
"end": {
"line": 20,
"column": 26
},
"identifierName": "value"
},
"name": "value"
},
"property": {
"type": "Identifier",
"start": 499,
"end": 507,
"loc": {
"start": {
"line": 20,
"column": 27
},
"end": {
"line": 20,
"column": 35
},
"identifierName": "toString"
},
"name": "toString"
},
"computed": false
},
"arguments": []
}
]
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "IfStatement",
"start": 523,
"end": 599,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 25,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 527,
"end": 550,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 31
}
},
"left": {
"type": "Identifier",
"start": 527,
"end": 532,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 13
},
"identifierName": "value"
},
"name": "value"
},
"operator": "instanceof",
"right": {
"type": "Identifier",
"start": 544,
"end": 550,
"loc": {
"start": {
"line": 23,
"column": 25
},
"end": {
"line": 23,
"column": 31
},
"identifierName": "RegExp"
},
"name": "RegExp"
}
},
"consequent": {
"type": "BlockStatement",
"start": 552,
"end": 599,
"loc": {
"start": {
"line": 23,
"column": 33
},
"end": {
"line": 25,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 560,
"end": 593,
"loc": {
"start": {
"line": 24,
"column": 6
},
"end": {
"line": 24,
"column": 39
}
},
"argument": {
"type": "CallExpression",
"start": 567,
"end": 592,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 38
}
},
"callee": {
"type": "Identifier",
"start": 567,
"end": 574,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 20
},
"identifierName": "replace"
},
"name": "replace"
},
"arguments": [
{
"type": "CallExpression",
"start": 575,
"end": 591,
"loc": {
"start": {
"line": 24,
"column": 21
},
"end": {
"line": 24,
"column": 37
}
},
"callee": {
"type": "MemberExpression",
"start": 575,
"end": 589,
"loc": {
"start": {
"line": 24,
"column": 21
},
"end": {
"line": 24,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 575,
"end": 580,
"loc": {
"start": {
"line": 24,
"column": 21
},
"end": {
"line": 24,
"column": 26
},
"identifierName": "value"
},
"name": "value"
},
"property": {
"type": "Identifier",
"start": 581,
"end": 589,
"loc": {
"start": {
"line": 24,
"column": 27
},
"end": {
"line": 24,
"column":