UNPKG

awv3

Version:
2,015 lines (2,014 loc) 827 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": "_keys", "range": [ 125, 130 ], "loc": { "start": { "line": 1, "column": 125 }, "end": { "line": 1, "column": 130 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 131, 138 ], "loc": { "start": { "line": 1, "column": 131 }, "end": { "line": 1, "column": 138 } } }, "arguments": [ { "type": "Literal", "value": "babel-runtime/core-js/object/keys", "raw": "\"babel-runtime/core-js/object/keys\"", "range": [ 139, 174 ], "loc": { "start": { "line": 1, "column": 139 }, "end": { "line": 1, "column": 174 } } } ], "range": [ 131, 175 ], "loc": { "start": { "line": 1, "column": 131 }, "end": { "line": 1, "column": 175 } } }, "range": [ 125, 175 ], "loc": { "start": { "line": 1, "column": 125 }, "end": { "line": 1, "column": 175 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_keys2", "range": [ 176, 182 ], "loc": { "start": { "line": 1, "column": 176 }, "end": { "line": 1, "column": 182 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 183, 205 ], "loc": { "start": { "line": 1, "column": 183 }, "end": { "line": 1, "column": 205 } } }, "arguments": [ { "type": "Identifier", "name": "_keys", "range": [ 206, 211 ], "loc": { "start": { "line": 1, "column": 206 }, "end": { "line": 1, "column": 211 } } } ], "range": [ 183, 212 ], "loc": { "start": { "line": 1, "column": 183 }, "end": { "line": 1, "column": 212 } } }, "range": [ 176, 212 ], "loc": { "start": { "line": 1, "column": 176 }, "end": { "line": 1, "column": 212 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_defineProperty2", "range": [ 213, 229 ], "loc": { "start": { "line": 1, "column": 213 }, "end": { "line": 1, "column": 229 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 230, 237 ], "loc": { "start": { "line": 1, "column": 230 }, "end": { "line": 1, "column": 237 } } }, "arguments": [ { "type": "Literal", "value": "babel-runtime/helpers/defineProperty", "raw": "\"babel-runtime/helpers/defineProperty\"", "range": [ 238, 276 ], "loc": { "start": { "line": 1, "column": 238 }, "end": { "line": 1, "column": 276 } } } ], "range": [ 230, 277 ], "loc": { "start": { "line": 1, "column": 230 }, "end": { "line": 1, "column": 277 } } }, "range": [ 213, 277 ], "loc": { "start": { "line": 1, "column": 213 }, "end": { "line": 1, "column": 277 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_defineProperty3", "range": [ 278, 294 ], "loc": { "start": { "line": 1, "column": 278 }, "end": { "line": 1, "column": 294 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 295, 317 ], "loc": { "start": { "line": 1, "column": 295 }, "end": { "line": 1, "column": 317 } } }, "arguments": [ { "type": "Identifier", "name": "_defineProperty2", "range": [ 318, 334 ], "loc": { "start": { "line": 1, "column": 318 }, "end": { "line": 1, "column": 334 } } } ], "range": [ 295, 335 ], "loc": { "start": { "line": 1, "column": 295 }, "end": { "line": 1, "column": 335 } } }, "range": [ 278, 335 ], "loc": { "start": { "line": 1, "column": 278 }, "end": { "line": 1, "column": 335 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_toConsumableArray2", "range": [ 336, 355 ], "loc": { "start": { "line": 1, "column": 336 }, "end": { "line": 1, "column": 355 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 356, 363 ], "loc": { "start": { "line": 1, "column": 356 }, "end": { "line": 1, "column": 363 } } }, "arguments": [ { "type": "Literal", "value": "babel-runtime/helpers/toConsumableArray", "raw": "\"babel-runtime/helpers/toConsumableArray\"", "range": [ 364, 405 ], "loc": { "start": { "line": 1, "column": 364 }, "end": { "line": 1, "column": 405 } } } ], "range": [ 356, 406 ], "loc": { "start": { "line": 1, "column": 356 }, "end": { "line": 1, "column": 406 } } }, "range": [ 336, 406 ], "loc": { "start": { "line": 1, "column": 336 }, "end": { "line": 1, "column": 406 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_toConsumableArray3", "range": [ 407, 426 ], "loc": { "start": { "line": 1, "column": 407 }, "end": { "line": 1, "column": 426 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 427, 449 ], "loc": { "start": { "line": 1, "column": 427 }, "end": { "line": 1, "column": 449 } } }, "arguments": [ { "type": "Identifier", "name": "_toConsumableArray2", "range": [ 450, 469 ], "loc": { "start": { "line": 1, "column": 450 }, "end": { "line": 1, "column": 469 } } } ], "range": [ 427, 470 ], "loc": { "start": { "line": 1, "column": 427 }, "end": { "line": 1, "column": 470 } } }, "range": [ 407, 470 ], "loc": { "start": { "line": 1, "column": 407 }, "end": { "line": 1, "column": 470 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_extends5", "range": [ 471, 480 ], "loc": { "start": { "line": 1, "column": 471 }, "end": { "line": 1, "column": 480 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 481, 488 ], "loc": { "start": { "line": 1, "column": 481 }, "end": { "line": 1, "column": 488 } } }, "arguments": [ { "type": "Literal", "value": "babel-runtime/helpers/extends", "raw": "\"babel-runtime/helpers/extends\"", "range": [ 489, 520 ], "loc": { "start": { "line": 1, "column": 489 }, "end": { "line": 1, "column": 520 } } } ], "range": [ 481, 521 ], "loc": { "start": { "line": 1, "column": 481 }, "end": { "line": 1, "column": 521 } } }, "range": [ 471, 521 ], "loc": { "start": { "line": 1, "column": 471 }, "end": { "line": 1, "column": 521 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_extends6", "range": [ 522, 531 ], "loc": { "start": { "line": 1, "column": 522 }, "end": { "line": 1, "column": 531 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 532, 554 ], "loc": { "start": { "line": 1, "column": 532 }, "end": { "line": 1, "column": 554 } } }, "arguments": [ { "type": "Identifier", "name": "_extends5", "range": [ 555, 564 ], "loc": { "start": { "line": 1, "column": 555 }, "end": { "line": 1, "column": 564 } } } ], "range": [ 532, 565 ], "loc": { "start": { "line": 1, "column": 532 }, "end": { "line": 1, "column": 565 } } }, "range": [ 522, 565 ], "loc": { "start": { "line": 1, "column": 522 }, "end": { "line": 1, "column": 565 } } } ], "kind": "var", "range": [ 121, 566 ], "loc": { "start": { "line": 1, "column": 121 }, "end": { "line": 1, "column": 566 } } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 575, 597 ], "loc": { "start": { "line": 1, "column": 575 }, "end": { "line": 1, "column": 597 } } }, "params": [ { "type": "Identifier", "name": "obj", "range": [ 598, 601 ], "loc": { "start": { "line": 1, "column": 598 }, "end": { "line": 1, "column": 601 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "ConditionalExpression", "test": { "type": "LogicalExpression", "operator": "&&", "left": { "type": "Identifier", "name": "obj", "range": [ 610, 613 ], "loc": { "start": { "line": 1, "column": 610 }, "end": { "line": 1, "column": 613 } } }, "right": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "obj", "range": [ 615, 618 ], "loc": { "start": { "line": 1, "column": 615 }, "end": { "line": 1, "column": 618 } } }, "property": { "type": "Identifier", "name": "__esModule", "range": [ 619, 629 ], "loc": { "start": { "line": 1, "column": 619 }, "end": { "line": 1, "column": 629 } } }, "range": [ 615, 629 ], "loc": { "start": { "line": 1, "column": 615 }, "end": { "line": 1, "column": 629 } } }, "range": [ 610, 629 ], "loc": { "start": { "line": 1, "column": 610 }, "end": { "line": 1, "column": 629 } } }, "consequent": { "type": "Identifier", "name": "obj", "range": [ 630, 633 ], "loc": { "start": { "line": 1, "column": 630 }, "end": { "line": 1, "column": 633 } } }, "alternate": { "type": "ObjectExpression", "properties": [ { "type": "Property", "key": { "type": "Identifier", "name": "default", "range": [ 635, 642 ], "loc": { "start": { "line": 1, "column": 635 }, "end": { "line": 1, "column": 642 } } }, "value": { "type": "Identifier", "name": "obj", "range": [ 643, 646 ], "loc": { "start": { "line": 1, "column": 643 }, "end": { "line": 1, "column": 646 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 635, 646 ], "loc": { "start": { "line": 1, "column": 635 }, "end": { "line": 1, "column": 646 } } } ], "range": [ 634, 647 ], "loc": { "start": { "line": 1, "column": 634 }, "end": { "line": 1, "column": 647 } } }, "range": [ 610, 647 ], "loc": { "start": { "line": 1, "column": 610 }, "end": { "line": 1, "column": 647 } } }, "range": [ 603, 647 ], "loc": { "start": { "line": 1, "column": 603 }, "end": { "line": 1, "column": 647 } } } ], "range": [ 602, 648 ], "loc": { "start": { "line": 1, "column": 602 }, "end": { "line": 1, "column": 648 } } }, "generator": false, "expression": false, "range": [ 566, 648 ], "loc": { "start": { "line": 1, "column": 566 }, "end": { "line": 1, "column": 648 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "types", "range": [ 652, 657 ], "loc": { "start": { "line": 1, "column": 652 }, "end": { "line": 1, "column": 657 } } }, "init": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "exports", "range": [ 658, 665 ], "loc": { "start": { "line": 1, "column": 658 }, "end": { "line": 1, "column": 665 } } }, "property": { "type": "Identifier", "name": "types", "range": [ 666, 671 ], "loc": { "start": { "line": 1, "column": 666 }, "end": { "line": 1, "column": 671 } } }, "range": [ 658, 671 ], "loc": { "start": { "line": 1, "column": 658 }, "end": { "line": 1, "column": 671 } } }, "right": { "type": "ObjectExpression", "properties": [ { "type": "Property", "key": { "type": "Identifier", "name": "register", "range": [ 673, 681 ], "loc": { "start": { "line": 1, "column": 673 }, "end": { "line": 1, "column": 681 } } }, "value": { "type": "Literal", "value": "PLUGIN_REGISTER", "raw": "\"PLUGIN_REGISTER\"", "range": [ 682, 699 ], "loc": { "start": { "line": 1, "column": 682 }, "end": { "line": 1, "column": 699 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 673, 699 ], "loc": { "start": { "line": 1, "column": 673 }, "end": { "line": 1, "column": 699 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "unregister", "range": [ 700, 710 ], "loc": { "start": { "line": 1, "column": 700 }, "end": { "line": 1, "column": 710 } } }, "value": { "type": "Literal", "value": "PLUGIN_UNREGISTER", "raw": "\"PLUGIN_UNREGISTER\"", "range": [ 711, 730 ], "loc": { "start": { "line": 1, "column": 711 }, "end": { "line": 1, "column": 730 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 700, 730 ], "loc": { "start": { "line": 1, "column": 700 }, "end": { "line": 1, "column": 730 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "destroy", "range": [ 731, 738 ], "loc": { "start": { "line": 1, "column": 731 }, "end": { "line": 1, "column": 738 } } }, "value": { "type": "Literal", "value": "PLUGIN_DESTROY", "raw": "\"PLUGIN_DESTROY\"", "range": [ 739, 755 ], "loc": { "start": { "line": 1, "column": 739 }, "end": { "line": 1, "column": 755 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 731, 755 ], "loc": { "start": { "line": 1, "column": 731 }, "end": { "line": 1, "column": 755 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "enable", "range": [ 756, 762 ], "loc": { "start": { "line": 1, "column": 756 }, "end": { "line": 1, "column": 762 } } }, "value": { "type": "Literal", "value": "PLUGIN_ENABLE", "raw": "\"PLUGIN_ENABLE\"", "range": [ 763, 778 ], "loc": { "start": { "line": 1, "column": 763 }, "end": { "line": 1, "column": 778 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 756, 778 ], "loc": { "start": { "line": 1, "column": 756 }, "end": { "line": 1, "column": 778 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "toggle", "range": [ 779, 785 ], "loc": { "start": { "line": 1, "column": 779 }, "end": { "line": 1, "column": 785 } } }, "value": { "type": "Literal", "value": "PLUGIN_TOGGLE", "raw": "\"PLUGIN_TOGGLE\"", "range": [ 786, 801 ], "loc": { "start": { "line": 1, "column": 786 }, "end": { "line": 1, "column": 801 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 779, 801 ], "loc": { "start": { "line": 1, "column": 779 }, "end": { "line": 1, "column": 801 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "activate", "range": [ 802, 810 ], "loc": { "start": { "line": 1, "column": 802 }, "end": { "line": 1, "column": 810 } } }, "value": { "type": "Literal", "value": "PLUGIN_ACTIVATE", "raw": "\"PLUGIN_ACTIVATE\"", "range": [ 811, 828 ], "loc": { "start": { "line": 1, "column": 811 }, "end": { "line": 1, "column": 828 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 802, 828 ], "loc": { "start": { "line": 1, "column": 802 }, "end": { "line": 1, "column": 828 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "collapse", "range": [ 829, 837 ], "loc": { "start": { "line": 1,