UNPKG

skypager-project

Version:
1,966 lines (1,944 loc) 634 kB
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 = 143); /******/ }) /************************************************************************/ /******/ ({ /***/ 143: /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(52); /***/ }, /***/ 52: /***/ function(module, exports) { module.exports = { "path": "/Users/jonathan/Skypager/packages/skypager-project/src/helper.js", "ast": { "type": "File", "start": 0, "end": 3003, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 113, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 3003, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 113, "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": "attach", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "name": "Helper", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "name": "requireContext", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "Identifier", "name": "undefined", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "trailingComments": [], "leadingComments": [], "innerComments": [] } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_extends2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/helpers/extends", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_extends3" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_extends2" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_classCallCheck2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/helpers/classCallCheck", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_classCallCheck3" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_classCallCheck2" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_createClass2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/helpers/createClass", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_createClass3" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_createClass2" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_class" }, "init": null }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_temp" }, "init": null } ] }, { "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": 27 } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_lodash2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_lodash" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_skypagerRegistry" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "skypager-registry", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 62 } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_skypagerUtil" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "skypager-util", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 79 } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_emitter" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "./utils/emitter", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 43 } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_emitter2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_emitter" } ] } } ] }, { "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": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 224, "end": 232, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 16 }, "identifierName": "camelize" }, "name": "camelize" }, "init": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_skypagerUtil" }, "property": { "type": "Identifier", "start": 120, "end": 127, "name": "strings" }, "computed": false, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "Identifier", "start": 224, "end": 232, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 16 }, "identifierName": "camelize" }, "name": "camelize" }, "computed": false } } ], "leadingComments": [] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 234, "end": 244, "loc": { "start": { "line": 6, "column": 18 }, "end": { "line": 6, "column": 28 }, "identifierName": "underscore" }, "name": "underscore" }, "init": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_skypagerUtil" }, "property": { "type": "Identifier", "start": 120, "end": 127, "name": "strings" }, "computed": false, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "Identifier", "start": 234, "end": 244, "loc": { "start": { "line": 6, "column": 18 }, "end": { "line": 6, "column": 28 }, "identifierName": "underscore" }, "name": "underscore" }, "computed": false } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 246, "end": 257, "loc": { "start": { "line": 6, "column": 30 }, "end": { "line": 6, "column": 41 }, "identifierName": "singularize" }, "name": "singularize" }, "init": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_skypagerUtil" }, "property": { "type": "Identifier", "start": 120, "end": 127, "name": "strings" }, "computed": false, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "Identifier", "start": 246, "end": 257, "loc": { "start": { "line": 6, "column": 30 }, "end": { "line": 6, "column": 41 }, "identifierName": "singularize" }, "name": "singularize" }, "computed": false } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 259, "end": 268, "loc": { "start": { "line": 6, "column": 43 }, "end": { "line": 6, "column": 52 }, "identifierName": "pluralize" }, "name": "pluralize" }, "init": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_skypagerUtil" }, "property": { "type": "Identifier", "start": 120, "end": 127, "name": "strings" }, "computed": false, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "Identifier", "start": 259, "end": 268, "loc": { "start": { "line": 6, "column": 43 }, "end": { "line": 6, "column": 52 }, "identifierName": "pluralize" }, "name": "pluralize" }, "computed": false } } ], "trailingComments": [] }, { "type": "ExpressionStatement", "start": 282, "end": 442, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 10, "column": 2 } }, "expression": { "type": "CallExpression", "start": 282, "end": 442, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 10, "column": 2 } }, "callee": { "type": "MemberExpression", "start": 282, "end": 296, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 14 } }, "object": { "type": "Identifier", "start": 282, "end": 289, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 7 }, "identifierName": "require" }, "name": "require" }, "property": { "type": "Identifier", "start": 290, "end": 296, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 14 }, "identifierName": "ensure" }, "name": "ensure" }, "computed": false }, "arguments": [ { "type": "ArrayExpression", "start": 297, "end": 299, "loc": { "start": { "line": 8, "column": 15 }, "end": { "line": 8, "column": 17 } }, "elements": [] }, { "type": "FunctionExpression", "start": 301, "end": 441, "loc": { "start": { "line": 8, "column": 19 }, "end": { "line": 10, "column": 1 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 307, "end": 441, "loc": { "start": { "line": 8, "column": 25 }, "end": { "line": 10, "column": 1 } }, "body": [ { "type": "ExpressionStatement", "start": 311, "end": 439, "loc": { "start": { "line": 9, "column": 2 }, "end": { "line": 9, "column": 130 } }, "expression": { "type": "AssignmentExpression", "start": 311, "end": 439, "loc": { "start": { "line": 9, "column": 2 }, "end": { "line": 9, "column": 130 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 311, "end": 325, "loc": { "start": { "line": 9, "column": 2 }, "end": { "line": 9, "column": 16 } }, "object": { "type": "Identifier", "start": 311, "end": 317, "loc": { "start": { "line": 9, "column": 2 }, "end": { "line": 9, "column": 8 }, "identifierName": "Helper" }, "name": "Helper" }, "property": { "type": "Identifier", "start": 318, "end": 325, "loc": { "start": { "line": 9, "column": 9 }, "end": { "line": 9, "column": 16 }, "identifierName": "modules" }, "name": "modules" }, "computed": false }, "right": { "type": "NewExpression", "start": 328, "end": 439, "loc": { "start": { "line": 9, "column": 19 }, "end": { "line": 9, "column": 130 } }, "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_skypagerRegistry" }, "property": { "type": "Identifier", "start": 37, "end": 44, "name": "Context" }, "computed": false, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "StringLiteral", "start": 348, "end": 357, "loc": { "start": { "line": 9, "column": 39 }, "end": { "line": 9, "column": 48 } }, "extra": { "rawValue": "helpers", "raw": "'helpers'" }, "value": "helpers" }, { "type": "ObjectExpression", "start": 359, "end": 438, "loc": { "start": { "line": 9, "column": 50 }, "end": { "line": 9, "column": 129 } }, "properties": [ { "type": "ObjectProperty", "start": 361, "end": 436, "loc": { "start": { "line": 9, "column": 52 }, "end": { "line": 9, "column": 127 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 361, "end": 368, "loc": { "start": { "line": 9, "column": 52 }, "end": { "line": 9, "column": 59 }, "identifierName": "context" }, "name": "context" }, "value": { "type": "CallExpression", "start": 370, "end": 436, "loc": { "start": { "line": 9, "column": 61 }, "end": { "line": 9, "column": 127 } }, "callee": { "type": "MemberExpression", "start": 370, "end": 385, "loc": { "start": { "line": 9, "column": 61 }, "end": { "line": 9, "column": 76 } }, "object": { "type": "Identifier", "start": 370, "end": 377, "loc": { "start": { "line": 9, "column": 61 }, "end": { "line": 9, "column": 68 }, "identifierName": "require" }, "name": "require" }, "property": { "type": "Identifier", "start": 378, "end": 385, "loc": { "start": { "line": 9, "column": 69 }, "end": { "line": 9, "column": 76 }, "identifierName": "context" }, "name": "context" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 386, "end": 397, "loc": { "start": { "line": 9, "column": 77 }, "end": { "line": 9, "column": 88 } }, "extra": { "rawValue": "./helpers", "raw": "'./helpers'" }, "value": "./helpers" }, { "type": "BooleanLiteral", "start": 399, "end": 404, "loc": { "start": { "line": 9, "column": 90 }, "end": { "line": 9, "column": 95 } }, "value": false }, { "type": "RegExpLiteral", "start": 406, "end": 435, "loc": { "start": { "line": 9, "column": 97 }, "end": { "line": 9, "column": 126 } }, "extra": { "raw": "/((?!spec).{4}|^.{0,3})\\.js$/" }, "pattern": "((?!spec).{4}|^.{0,3})\\.js$", "flags": "" } ] } } ] } ] } } } ], "directives": [] }, "shadow": true } ] } }, { "type": "VariableDeclaration", "start": 451, "end": 540, "loc": { "start": { "line": 12, "column": 7 }, "end": { "line": 12, "column": 96 } }, "declarations": [ { "type": "VariableDeclarator", "start": 457, "end": 540, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 96 } }, "id": { "type": "Identifier", "start": 457, "end": 471, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 27 }, "identifierName": "requireContext" }, "name": "requireContext", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "init": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "start": 457, "end": 471, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 27 }, "identifierName": "requireContext" }, "name": "requireContext", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "CallExpression", "start": 474, "end": 540, "loc": { "start": { "line": 12, "column": 30 }, "end": { "line": 12, "column": 96 } }, "callee": { "type": "MemberExpression", "start": 474, "end": 489, "loc": { "start": { "line": 12, "column": 30 }, "end": { "line": 12, "column": 45 } }, "object": { "type": "Identifier", "start": 474, "end": 481, "loc": { "start": { "line": 12, "column": 30 }, "end": { "line": 12, "column": 37 }, "identifierName": "require" }, "name": "require" }, "property": { "type": "Identifier", "start": 482, "end": 489, "loc": { "start": { "line": 12, "column": 38 }, "end": { "line": 12, "column": 45 }, "identifierName": "context" }, "name": "context" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 490, "end": 501, "loc": { "start": { "line": 12, "column": 46 }, "end": { "line": 12, "column": 57 } }, "extra": { "rawValue": "./helpers", "raw": "'./helpers'" }, "value": "./helpers" }, { "type": "BooleanLiteral", "start": 503, "end": 508, "loc": { "start": { "line": 12, "column": 59 }, "end": { "line": 12, "column": 64 } }, "value": false }, { "type": "RegExpLiteral", "start": 510, "end": 539, "loc": { "start": { "line": 12, "column": 66 }, "end": { "line": 12, "column": 95 } }, "extra": { "raw": "/((?!spec).{4}|^.{0,3})\\.js$/" }, "pattern": "((?!spec).{4}|^.{0,3})\\.js$", "flags": "" } ] }, "trailingComments": [], "leadingComments": [], "innerComments": [] } } ], "kind": "var", "trailingComments": [], "leadingComments": [], "innerComments": [] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 555, "end": 561, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 19 }, "identifierName": "Helper" }, "name": "Helper", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "init": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "start": 555, "end": 561, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 19 }, "identifierName": "Helper" }, "name": "Helper", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "SequenceExpression", "expressions": [ { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "_temp" }, "right": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "_class" }, "right": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_createClass3" }, "property": { "type": "Identifier", "name": "default" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "Identifier", "name": "Helper" }, { "type": "NullLiteral" }, { "type": "ArrayExpression", "elements": [ { "type": "ObjectExpression", "properties": [ { "type": "ObjectProperty", "key": { "type": "Identifier", "name": "key" }, "value": { "type": "StringLiteral", "value": "cacheable" }, "computed": false, "shorthand": false, "decorators": null }, { "type": "ObjectProperty", "key": { "type": "Identifier", "name": "value" }, "value": { "type": "FunctionExpression", "id": { "type": "Identifier", "name": "cacheable" }, "params": [], "body": { "type": "BlockStatement", "start": 628, "end": 673, "loc": { "start": { "line": 17, "column": 35 }, "end": { "line": 19, "column": 3 } }, "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 612, "end": 619, "loc": { "start": { "line": 17, "column": 19 }, "end": { "line": 17, "column": 26 }, "identifierName": "setting" }, "name": "setting", "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": "BooleanLiteral", "start": 622, "end": 626, "loc": { "start": { "line": 17, "column": 29 }, "end": { "line": 17, "column": 33 } }, "value": true, "trailingComments": [], "leadingComments": [], "innerComments": [] } } } ], "kind": "var" }, { "type": "ReturnStatement", "start": 634, "end": 669, "loc": { "start": { "line": 18, "column": 4 }, "end": { "line": 18, "column": 39 } }, "argument": { "type": "AssignmentExpression", "start": 641, "end": 669, "loc": { "start": { "line": 18, "column": 11 }, "end": { "line": 18, "column": 39 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 641, "end": 657, "loc": { "start": { "line": 18, "column": 11 }, "end": { "line": 18, "column": 27 } }, "object": { "type": "ThisExpression", "start": 641, "end": 645, "loc": {