UNPKG

awv3

Version:
1,344 lines (1,343 loc) 283 kB
{ "type": "Program", "start": 0, "end": 2396, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 90, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 36, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 36 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 7, "end": 13, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 13 } }, "local": { "type": "Identifier", "start": 7, "end": 13, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 13 } }, "name": "Plugin" } } ], "importKind": "value", "source": { "type": "Literal", "start": 19, "end": 35, "loc": { "start": { "line": 1, "column": 19 }, "end": { "line": 1, "column": 35 } }, "value": "../plugin/base", "rawValue": "../plugin/base", "raw": "'../plugin/base'" } }, { "type": "ExportDefaultDeclaration", "start": 38, "end": 2395, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 89, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 53, "end": 2395, "loc": { "start": { "line": 3, "column": 15 }, "end": { "line": 89, "column": 1 } }, "id": { "type": "Identifier", "start": 59, "end": 70, "loc": { "start": { "line": 3, "column": 21 }, "end": { "line": 3, "column": 32 } }, "name": "Integration" }, "superClass": null, "body": { "type": "ClassBody", "start": 71, "end": 2395, "loc": { "start": { "line": 3, "column": 33 }, "end": { "line": 89, "column": 1 } }, "body": [ { "type": "MethodDefinition", "start": 77, "end": 839, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 27, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 77, "end": 88, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 15 } }, "name": "constructor" }, "static": false, "kind": "constructor", "value": { "type": "FunctionExpression", "start": 88, "end": 839, "loc": { "start": { "line": 4, "column": 15 }, "end": { "line": 27, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 89, "end": 96, "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 23 } }, "name": "options" } ], "body": { "type": "BlockStatement", "start": 98, "end": 839, "loc": { "start": { "line": 4, "column": 25 }, "end": { "line": 27, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 109, "end": 365, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 12, "column": 10 } }, "expression": { "type": "AssignmentExpression", "start": 109, "end": 364, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 12, "column": 9 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 109, "end": 121, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 20 } }, "object": { "type": "ThisExpression", "start": 109, "end": 113, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 12 } } }, "property": { "type": "Identifier", "start": 114, "end": 121, "loc": { "start": { "line": 6, "column": 13 }, "end": { "line": 6, "column": 20 } }, "name": "options" }, "computed": false }, "right": { "type": "ObjectExpression", "start": 124, "end": 364, "loc": { "start": { "line": 6, "column": 23 }, "end": { "line": 12, "column": 9 } }, "properties": [ { "type": "Property", "start": 138, "end": 153, "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 27 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 138, "end": 142, "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 16 } }, "name": "view" }, "value": { "type": "Identifier", "start": 144, "end": 153, "loc": { "start": { "line": 7, "column": 18 }, "end": { "line": 7, "column": 27 } }, "name": "undefined" }, "kind": "init" }, { "type": "Property", "start": 167, "end": 184, "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 29 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 167, "end": 173, "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 18 } }, "name": "socket" }, "value": { "type": "Identifier", "start": 175, "end": 184, "loc": { "start": { "line": 8, "column": 20 }, "end": { "line": 8, "column": 29 } }, "name": "undefined" }, "kind": "init" }, { "type": "Property", "start": 198, "end": 211, "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 25 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 198, "end": 205, "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 19 } }, "name": "enabled" }, "value": { "type": "Literal", "start": 207, "end": 211, "loc": { "start": { "line": 9, "column": 21 }, "end": { "line": 9, "column": 25 } }, "value": true, "rawValue": true, "raw": "true" }, "kind": "init" }, { "type": "Property", "start": 225, "end": 330, "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 117 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 225, "end": 230, "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 17 } }, "name": "style" }, "value": { "type": "Literal", "start": 232, "end": 330, "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 10, "column": 117 } }, "value": "position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; display: none;", "rawValue": "position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; display: none;", "raw": "'position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; display: none;'" }, "kind": "init" }, { "type": "SpreadProperty", "start": 344, "end": 354, "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 22 } }, "argument": { "type": "Identifier", "start": 347, "end": 354, "loc": { "start": { "line": 11, "column": 15 }, "end": { "line": 11, "column": 22 } }, "name": "options" } } ] } } }, { "type": "IfStatement", "start": 375, "end": 490, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 15, "column": 89 } }, "test": { "type": "UnaryExpression", "start": 379, "end": 399, "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 32 } }, "operator": "!", "prefix": true, "argument": { "type": "UnaryExpression", "start": 380, "end": 399, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 32 } }, "operator": "!", "prefix": true, "argument": { "type": "UnaryExpression", "start": 381, "end": 399, "loc": { "start": { "line": 14, "column": 14 }, "end": { "line": 14, "column": 32 } }, "operator": "!", "prefix": true, "argument": { "type": "MemberExpression", "start": 382, "end": 399, "loc": { "start": { "line": 14, "column": 15 }, "end": { "line": 14, "column": 32 } }, "object": { "type": "MemberExpression", "start": 382, "end": 394, "loc": { "start": { "line": 14, "column": 15 }, "end": { "line": 14, "column": 27 } }, "object": { "type": "ThisExpression", "start": 382, "end": 386, "loc": { "start": { "line": 14, "column": 15 }, "end": { "line": 14, "column": 19 } } }, "property": { "type": "Identifier", "start": 387, "end": 394, "loc": { "start": { "line": 14, "column": 20 }, "end": { "line": 14, "column": 27 } }, "name": "options" }, "computed": false }, "property": { "type": "Identifier", "start": 395, "end": 399, "loc": { "start": { "line": 14, "column": 28 }, "end": { "line": 14, "column": 32 } }, "name": "view" }, "computed": false } } } }, "consequent": { "type": "ThrowStatement", "start": 413, "end": 490, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 89 } }, "argument": { "type": "Literal", "start": 419, "end": 488, "loc": { "start": { "line": 15, "column": 18 }, "end": { "line": 15, "column": 87 } }, "value": "Integration needs a view passed in: new Integration({ view: ... })!", "rawValue": "Integration needs a view passed in: new Integration({ view: ... })!", "raw": "\"Integration needs a view passed in: new Integration({ view: ... })!\"", "parenthesizedExpression": true } }, "alternate": null }, { "type": "ExpressionStatement", "start": 500, "end": 518, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 26 } }, "expression": { "type": "AssignmentExpression", "start": 500, "end": 517, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 25 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 500, "end": 512, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 20 } }, "object": { "type": "ThisExpression", "start": 500, "end": 504, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 12 } } }, "property": { "type": "Identifier", "start": 505, "end": 512, "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 20 } }, "name": "plugins" }, "computed": false }, "right": { "type": "ObjectExpression", "start": 515, "end": 517, "loc": { "start": { "line": 17, "column": 23 }, "end": { "line": 17, "column": 25 } }, "properties": [] } } }, { "type": "ExpressionStatement", "start": 527, "end": 557, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 38 } }, "expression": { "type": "AssignmentExpression", "start": 527, "end": 556, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 37 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 527, "end": 536, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 17 } }, "object": { "type": "ThisExpression", "start": 527, "end": 531, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 12 } } }, "property": { "type": "Identifier", "start": 532, "end": 536, "loc": { "start": { "line": 18, "column": 13 }, "end": { "line": 18, "column": 17 } }, "name": "view" }, "computed": false }, "right": { "type": "MemberExpression", "start": 539, "end": 556, "loc": { "start": { "line": 18, "column": 20 }, "end": { "line": 18, "column": 37 } }, "object": { "type": "MemberExpression", "start": 539, "end": 551, "loc": { "start": { "line": 18, "column": 20 }, "end": { "line": 18, "column": 32 } }, "object": { "type": "ThisExpression", "start": 539, "end": 543, "loc": { "start": { "line": 18, "column": 20 }, "end": { "line": 18, "column": 24 } } }, "property": { "type": "Identifier", "start": 544, "end": 551, "loc": { "start": { "line": 18, "column": 25 }, "end": { "line": 18, "column": 32 } }, "name": "options" }, "computed": false }, "property": { "type": "Identifier", "start": 552, "end": 556, "loc": { "start": { "line": 18, "column": 33 }, "end": { "line": 18, "column": 37 } }, "name": "view" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 566, "end": 597, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 39 } }, "expression": { "type": "AssignmentExpression", "start": 566, "end": 596, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 38 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 566, "end": 577, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 19 } }, "object": { "type": "ThisExpression", "start": 566, "end": 570, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 12 } } }, "property": { "type": "Identifier", "start": 571, "end": 577, "loc": { "start": { "line": 19, "column": 13 }, "end": { "line": 19, "column": 19 } }, "name": "canvas" }, "computed": false }, "right": { "type": "MemberExpression", "start": 580, "end": 596, "loc": { "start": { "line": 19, "column": 22 }, "end": { "line": 19, "column": 38 } }, "object": { "type": "MemberExpression", "start": 580, "end": 589, "loc": { "start": { "line": 19, "column": 22 }, "end": { "line": 19, "column": 31 } }, "object": { "type": "ThisExpression", "start": 580, "end": 584, "loc": { "start": { "line": 19, "column": 22 }, "end": { "line": 19, "column": 26 } } }, "property": { "type": "Identifier", "start": 585, "end": 589, "loc": { "start": { "line": 19, "column": 27 }, "end": { "line": 19, "column": 31 } }, "name": "view" }, "computed": false }, "property": { "type": "Identifier", "start": 590, "end": 596, "loc": { "start": { "line": 19, "column": 32 }, "end": { "line": 19, "column": 38 } }, "name": "canvas" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 607, "end": 648, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 49 } }, "expression": { "type": "AssignmentExpression", "start": 607, "end": 647, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 48 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 607, "end": 615, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 16 } }, "object": { "type": "ThisExpression", "start": 607, "end": 611, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 12 } } }, "property": { "type": "Identifier", "start": 612, "end": 615, "loc": { "start": { "line": 21, "column": 13 }, "end": { "line": 21, "column": 16 } }, "name": "dom" }, "computed": false }, "right": { "type": "CallExpression", "start": 618, "end": 647, "loc": { "start": { "line": 21, "column": 19 }, "end": { "line": 21, "column": 48 } }, "callee": { "type": "MemberExpression", "start": 618, "end": 640, "loc": { "start": { "line": 21, "column": 19 }, "end": { "line": 21, "column": 41 } }, "object": { "type": "Identifier", "start": 618, "end": 626, "loc": { "start": { "line": 21, "column": 19 }, "end": { "line": 21, "column": 27 } }, "name": "document" }, "property": { "type": "Identifier", "start": 627, "end": 640, "loc": { "start": { "line": 21, "column": 28 }, "end": { "line": 21, "column": 41 } }, "name": "createElement" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 641, "end": 646, "loc": { "start": { "line": 21, "column": 42 }, "end": { "line": 21, "column": 47 } }, "value": "div", "rawValue": "div", "raw": "'div'" } ] } } }, { "type": "ExpressionStatement", "start": 657, "end": 701, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 52 } }, "expression": { "type": "AssignmentExpression", "start": 657, "end": 700, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 51 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 657, "end": 679,