UNPKG

awv3

Version:
1,868 lines 167 kB
{ "type": "Program", "body": [ { "type": "ExpressionStatement", "expression": { "type": "Literal", "value": "use strict", "raw": "\"use strict\"", "range": [ 0, 12 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 12 } } }, "range": [ 0, 13 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 13 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Object", "range": [ 13, 19 ], "loc": { "start": { "line": 1, "column": 13 }, "end": { "line": 1, "column": 19 } } }, "property": { "type": "Identifier", "name": "defineProperty", "range": [ 20, 34 ], "loc": { "start": { "line": 1, "column": 20 }, "end": { "line": 1, "column": 34 } } }, "range": [ 13, 34 ], "loc": { "start": { "line": 1, "column": 13 }, "end": { "line": 1, "column": 34 } } }, "arguments": [ { "type": "Identifier", "name": "exports", "range": [ 35, 42 ], "loc": { "start": { "line": 1, "column": 35 }, "end": { "line": 1, "column": 42 } } }, { "type": "Literal", "value": "__esModule", "raw": "\"__esModule\"", "range": [ 43, 55 ], "loc": { "start": { "line": 1, "column": 43 }, "end": { "line": 1, "column": 55 } } }, { "type": "ObjectExpression", "properties": [ { "type": "Property", "key": { "type": "Identifier", "name": "value", "range": [ 57, 62 ], "loc": { "start": { "line": 1, "column": 57 }, "end": { "line": 1, "column": 62 } } }, "value": { "type": "UnaryExpression", "operator": "!", "argument": { "type": "Literal", "value": 0, "raw": "0", "range": [ 64, 65 ], "loc": { "start": { "line": 1, "column": 64 }, "end": { "line": 1, "column": 65 } } }, "prefix": true, "range": [ 63, 65 ], "loc": { "start": { "line": 1, "column": 63 }, "end": { "line": 1, "column": 65 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 57, 65 ], "loc": { "start": { "line": 1, "column": 57 }, "end": { "line": 1, "column": 65 } } } ], "range": [ 56, 66 ], "loc": { "start": { "line": 1, "column": 56 }, "end": { "line": 1, "column": 66 } } } ], "range": [ 13, 67 ], "loc": { "start": { "line": 1, "column": 13 }, "end": { "line": 1, "column": 67 } } }, "range": [ 13, 68 ], "loc": { "start": { "line": 1, "column": 13 }, "end": { "line": 1, "column": 68 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "exports", "range": [ 68, 75 ], "loc": { "start": { "line": 1, "column": 68 }, "end": { "line": 1, "column": 75 } } }, "property": { "type": "Identifier", "name": "reducer", "range": [ 76, 83 ], "loc": { "start": { "line": 1, "column": 76 }, "end": { "line": 1, "column": 83 } } }, "range": [ 68, 83 ], "loc": { "start": { "line": 1, "column": 68 }, "end": { "line": 1, "column": 83 } } }, "right": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "exports", "range": [ 84, 91 ], "loc": { "start": { "line": 1, "column": 84 }, "end": { "line": 1, "column": 91 } } }, "property": { "type": "Identifier", "name": "actions", "range": [ 92, 99 ], "loc": { "start": { "line": 1, "column": 92 }, "end": { "line": 1, "column": 99 } } }, "range": [ 84, 99 ], "loc": { "start": { "line": 1, "column": 84 }, "end": { "line": 1, "column": 99 } } }, "right": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "exports", "range": [ 100, 107 ], "loc": { "start": { "line": 1, "column": 100 }, "end": { "line": 1, "column": 107 } } }, "property": { "type": "Identifier", "name": "types", "range": [ 108, 113 ], "loc": { "start": { "line": 1, "column": 108 }, "end": { "line": 1, "column": 113 } } }, "range": [ 100, 113 ], "loc": { "start": { "line": 1, "column": 100 }, "end": { "line": 1, "column": 113 } } }, "right": { "type": "UnaryExpression", "operator": "void", "argument": { "type": "Literal", "value": 0, "raw": "0", "range": [ 119, 120 ], "loc": { "start": { "line": 1, "column": 119 }, "end": { "line": 1, "column": 120 } } }, "prefix": true, "range": [ 114, 120 ], "loc": { "start": { "line": 1, "column": 114 }, "end": { "line": 1, "column": 120 } } }, "range": [ 100, 120 ], "loc": { "start": { "line": 1, "column": 100 }, "end": { "line": 1, "column": 120 } } }, "range": [ 84, 120 ], "loc": { "start": { "line": 1, "column": 84 }, "end": { "line": 1, "column": 120 } } }, "range": [ 68, 120 ], "loc": { "start": { "line": 1, "column": 68 }, "end": { "line": 1, "column": 120 } } }, "range": [ 68, 121 ], "loc": { "start": { "line": 1, "column": 68 }, "end": { "line": 1, "column": 121 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_defineProperty2", "range": [ 125, 141 ], "loc": { "start": { "line": 1, "column": 125 }, "end": { "line": 1, "column": 141 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 142, 149 ], "loc": { "start": { "line": 1, "column": 142 }, "end": { "line": 1, "column": 149 } } }, "arguments": [ { "type": "Literal", "value": "babel-runtime/helpers/defineProperty", "raw": "\"babel-runtime/helpers/defineProperty\"", "range": [ 150, 188 ], "loc": { "start": { "line": 1, "column": 150 }, "end": { "line": 1, "column": 188 } } } ], "range": [ 142, 189 ], "loc": { "start": { "line": 1, "column": 142 }, "end": { "line": 1, "column": 189 } } }, "range": [ 125, 189 ], "loc": { "start": { "line": 1, "column": 125 }, "end": { "line": 1, "column": 189 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_defineProperty3", "range": [ 190, 206 ], "loc": { "start": { "line": 1, "column": 190 }, "end": { "line": 1, "column": 206 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 207, 229 ], "loc": { "start": { "line": 1, "column": 207 }, "end": { "line": 1, "column": 229 } } }, "arguments": [ { "type": "Identifier", "name": "_defineProperty2", "range": [ 230, 246 ], "loc": { "start": { "line": 1, "column": 230 }, "end": { "line": 1, "column": 246 } } } ], "range": [ 207, 247 ], "loc": { "start": { "line": 1, "column": 207 }, "end": { "line": 1, "column": 247 } } }, "range": [ 190, 247 ], "loc": { "start": { "line": 1, "column": 190 }, "end": { "line": 1, "column": 247 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_extends3", "range": [ 248, 257 ], "loc": { "start": { "line": 1, "column": 248 }, "end": { "line": 1, "column": 257 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 258, 265 ], "loc": { "start": { "line": 1, "column": 258 }, "end": { "line": 1, "column": 265 } } }, "arguments": [ { "type": "Literal", "value": "babel-runtime/helpers/extends", "raw": "\"babel-runtime/helpers/extends\"", "range": [ 266, 297 ], "loc": { "start": { "line": 1, "column": 266 }, "end": { "line": 1, "column": 297 } } } ], "range": [ 258, 298 ], "loc": { "start": { "line": 1, "column": 258 }, "end": { "line": 1, "column": 298 } } }, "range": [ 248, 298 ], "loc": { "start": { "line": 1, "column": 248 }, "end": { "line": 1, "column": 298 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_extends4", "range": [ 299, 308 ], "loc": { "start": { "line": 1, "column": 299 }, "end": { "line": 1, "column": 308 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 309, 331 ], "loc": { "start": { "line": 1, "column": 309 }, "end": { "line": 1, "column": 331 } } }, "arguments": [ { "type": "Identifier", "name": "_extends3", "range": [ 332, 341 ], "loc": { "start": { "line": 1, "column": 332 }, "end": { "line": 1, "column": 341 } } } ], "range": [ 309, 342 ], "loc": { "start": { "line": 1, "column": 309 }, "end": { "line": 1, "column": 342 } } }, "range": [ 299, 342 ], "loc": { "start": { "line": 1, "column": 299 }, "end": { "line": 1, "column": 342 } } } ], "kind": "var", "range": [ 121, 343 ], "loc": { "start": { "line": 1, "column": 121 }, "end": { "line": 1, "column": 343 } } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 352, 374 ], "loc": { "start": { "line": 1, "column": 352 }, "end": { "line": 1, "column": 374 } } }, "params": [ { "type": "Identifier", "name": "obj", "range": [ 375, 378 ], "loc": { "start": { "line": 1, "column": 375 }, "end": { "line": 1, "column": 378 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "ConditionalExpression", "test": { "type": "LogicalExpression", "operator": "&&", "left": { "type": "Identifier", "name": "obj", "range": [ 387, 390 ], "loc": { "start": { "line": 1, "column": 387 }, "end": { "line": 1, "column": 390 } } }, "right": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "obj", "range": [ 392, 395 ], "loc": { "start": { "line": 1, "column": 392 }, "end": { "line": 1, "column": 395 } } }, "property": { "type": "Identifier", "name": "__esModule", "range": [ 396, 406 ], "loc": { "start": { "line": 1, "column": 396 }, "end": { "line": 1, "column": 406 } } }, "range": [ 392, 406 ], "loc": { "start": { "line": 1, "column": 392 }, "end": { "line": 1, "column": 406 } } }, "range": [ 387, 406 ], "loc": { "start": { "line": 1, "column": 387 }, "end": { "line": 1, "column": 406 } } }, "consequent": { "type": "Identifier", "name": "obj", "range": [ 407, 410 ], "loc": { "start": { "line": 1, "column": 407 }, "end": { "line": 1, "column": 410 } } }, "alternate": { "type": "ObjectExpression", "properties": [ { "type": "Property", "key": { "type": "Identifier", "name": "default", "range": [ 412, 419 ], "loc": { "start": { "line": 1, "column": 412 }, "end": { "line": 1, "column": 419 } } }, "value": { "type": "Identifier", "name": "obj", "range": [ 420, 423 ], "loc": { "start": { "line": 1, "column": 420 }, "end": { "line": 1, "column": 423 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 412, 423 ], "loc": { "start": { "line": 1, "column": 412 }, "end": { "line": 1, "column": 423 } } } ], "range": [ 411, 424 ], "loc": { "start": { "line": 1, "column": 411 }, "end": { "line": 1, "column": 424 } } }, "range": [ 387, 424 ], "loc": { "start": { "line": 1, "column": 387 }, "end": { "line": 1, "column": 424 } } }, "range": [ 380, 424 ], "loc": { "start": { "line": 1, "column": 380 }, "end": { "line": 1, "column": 424 } } } ], "range": [ 379, 425 ], "loc": { "start": { "line": 1, "column": 379 }, "end": { "line": 1, "column": 425 } } }, "generator": false, "expression": false, "range": [ 343, 425 ], "loc": { "start": { "line": 1, "column": 343 }, "end": { "line": 1, "column": 425 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "types", "range": [ 429, 434 ], "loc": { "start": { "line": 1, "column": 429 }, "end": { "line": 1, "column": 434 } } }, "init": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "exports", "range": [ 435, 442 ], "loc": { "start": { "line": 1, "column": 435 }, "end": { "line": 1, "column": 442 } } }, "property": { "type": "Identifier", "name": "types", "range": [ 443, 448 ], "loc": { "start": { "line": 1, "column": 443 }, "end": { "line": 1, "column": 448 } } }, "range": [ 435, 448 ], "loc": { "start": { "line": 1, "column": 435 }, "end": { "line": 1, "column": 448 } } }, "right": { "type": "ObjectExpression", "properties": [ { "type": "Property", "key": { "type": "Identifier", "name": "register", "range": [ 450, 458 ], "loc": { "start": { "line": 1, "column": 450 }, "end": { "line": 1, "column": 458 } } }, "value": { "type": "Literal", "value": "RESOURCE_REGISTER", "raw": "\"RESOURCE_REGISTER\"", "range": [ 459, 478 ], "loc": { "start": { "line": 1, "column": 459 }, "end": { "line": 1, "column": 478 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 450, 478 ], "loc": { "start": { "line": 1, "column": 450 }, "end": { "line": 1, "column": 478 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "registerMap", "range": [ 479, 490 ], "loc": { "start": { "line": 1, "column": 479 }, "end": { "line": 1, "column": 490 } } }, "value": { "type": "Literal", "value": "RESOURCE_REGISTER_MAP", "raw": "\"RESOURCE_REGISTER_MAP\"", "range": [ 491, 514 ], "loc": { "start": { "line": 1, "column": 491 }, "end": { "line": 1, "column": 514 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 479, 514 ], "loc": { "start": { "line": 1, "column": 479 }, "end": { "line": 1, "column": 514 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "unregister", "range": [ 515, 525 ], "loc": { "start": { "line": 1, "column": 515 }, "end": { "line": 1, "column": 525 } } }, "value": { "type": "Literal", "value": "RESOURCE_UNREGISTER", "raw": "\"RESOURCE_UNREGISTER\"", "range": [ 526, 547 ], "loc": { "start": { "line": 1, "column": 526 }, "end": { "line": 1, "column": 547 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 515, 547 ], "loc": { "start": { "line": 1, "column": 515 }, "end": { "line": 1, "column": 547 } } } ], "range": [ 449, 548 ], "loc": { "start": { "line": 1, "column": 449 }, "end": { "line": 1, "column": 548 } } }, "range": [ 435, 548 ], "loc": { "start": { "line": 1, "column": 435 }, "end": { "line": 1, "column": 548 } } }, "range": [ 429, 548 ], "loc": { "start": { "line": 1, "column": 429 }, "end": { "line": 1, "column": 548 } } } ], "kind": "var", "range": [ 425, 549 ], "loc": { "start": { "line": 1, "column": 425 }, "end": { "line": 1, "column": 549 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "actions", "range": [ 553, 560 ], "loc": { "start": { "line": 1, "column": 553 }, "end": { "line": 1, "column": 560 } } }, "init": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "exports", "range": [ 561, 568 ], "loc": { "start": { "line": 1, "column": 561 }, "end": { "line": 1, "column": 568 } } }, "property": { "type": "Identifier", "name": "actions", "range": [ 569, 576 ], "loc": { "start": { "line": 1, "column": 569 }, "end": { "line": 1, "column": 576 } } }, "range": [ 561, 576 ], "loc": { "start": { "line": 1, "column": 561 }, "end": { "line": 1, "column": 576 } } }, "right": { "type": "ObjectExpression", "properties": [ { "type": "Property", "key": { "type": "Identifier", "name": "register", "range": [ 578, 586 ], "loc": { "start": { "line": 1, "column": 578 }, "end": { "line": 1, "column": 586 } } }, "value": { "type": "FunctionExpression", "id": { "type": "Identifier", "name": "register", "range": [ 596, 604 ], "loc": { "start": { "line": 1, "column": 596 }, "end": { "line": 1, "column": 604 } } }, "params": [ { "type": "Identifier", "name": "a", "range": [ 605, 606 ], "loc": { "start": { "line": 1, "column": 605 }, "end": { "line": 1, "column": 606 } } }, { "type": "Identifier", "name": "b", "range": [ 607, 608 ], "loc": { "start": { "line": 1, "column": 607 }, "end": { "line": 1, "column": 608 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "ObjectExpression", "properties": [ { "type": "Property", "key": { "type": "Identifier", "name": "type", "range": [ 617, 621 ], "loc": { "start": { "line": 1, "column": 617 }, "end": { "line": 1, "column": 621 } } }, "value": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "types", "range": [ 622, 627 ], "loc": { "start": { "line": 1, "column": 622 }, "end": { "line": 1, "column": 627 } } }, "property": { "type": "Identifier", "name": "register", "range": [ 628, 636 ], "loc": { "start": { "line": 1, "column": 628 }, "end": { "line": 1, "column": 636 } } }, "range": [ 622, 636 ], "loc": { "start": { "line": 1, "column": 622 }, "end": { "line": 1, "column": 636 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 617, 636 ], "loc": { "start": { "line": 1, "column": 617 }, "end": { "line": 1, "column": 636 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "payload", "range": [ 637, 644 ], "loc": { "start": { "line": 1, "column": 637 }, "end": { "line": 1, "column": 644 } } }, "value": { "type": "ObjectExpression", "properties": [ { "type": "Property", "key": { "type": "Identifier", "name": "data", "range": [ 646, 650 ], "loc": { "start": { "line": 1, "column": 646 }, "end": { "line": 1, "column": 650 } } }, "value": { "type": "Identifier", "name": "b", "range": [ 651, 652 ], "loc": { "start": { "line": 1, "column": 651 }, "end": { "line": 1, "column": 652 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 646, 652 ], "loc": { "start": { "line": 1, "column": 646 }, "end": { "line": 1, "column": 65