UNPKG

awv3

Version:
1,287 lines (1,286 loc) 979 kB
{ "type": "File", "start": 0, "end": 4428, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 133, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 4428, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 133, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ExportDefaultDeclaration", "start": 0, "end": 4427, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 132, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 15, "end": 4427, "loc": { "start": { "line": 1, "column": 15 }, "end": { "line": 132, "column": 1 } }, "id": { "type": "Identifier", "start": 21, "end": 26, "loc": { "start": { "line": 1, "column": 21 }, "end": { "line": 1, "column": 26 }, "identifierName": "Stats" }, "name": "Stats" }, "superClass": null, "body": { "type": "ClassBody", "start": 27, "end": 4427, "loc": { "start": { "line": 1, "column": 27 }, "end": { "line": 132, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 33, "end": 1260, "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 34, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 33, "end": 44, "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 15 }, "identifierName": "constructor" }, "name": "constructor" }, "static": false, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 47, "end": 1260, "loc": { "start": { "line": 2, "column": 18 }, "end": { "line": 34, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 57, "end": 71, "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 3, "column": 22 } }, "expression": { "type": "AssignmentExpression", "start": 57, "end": 70, "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 3, "column": 21 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 57, "end": 66, "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 3, "column": 17 } }, "object": { "type": "ThisExpression", "start": 57, "end": 61, "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 3, "column": 12 } } }, "property": { "type": "Identifier", "start": 62, "end": 66, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 17 }, "identifierName": "mode" }, "name": "mode" }, "computed": false }, "right": { "type": "NumericLiteral", "start": 69, "end": 70, "loc": { "start": { "line": 3, "column": 20 }, "end": { "line": 3, "column": 21 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } }, { "type": "ExpressionStatement", "start": 80, "end": 125, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 53 } }, "expression": { "type": "AssignmentExpression", "start": 80, "end": 124, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 52 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 80, "end": 94, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 22 } }, "object": { "type": "ThisExpression", "start": 80, "end": 84, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 12 } } }, "property": { "type": "Identifier", "start": 85, "end": 94, "loc": { "start": { "line": 4, "column": 13 }, "end": { "line": 4, "column": 22 }, "identifierName": "beginTime" }, "name": "beginTime" }, "computed": false }, "right": { "type": "CallExpression", "start": 97, "end": 124, "loc": { "start": { "line": 4, "column": 25 }, "end": { "line": 4, "column": 52 } }, "callee": { "type": "MemberExpression", "start": 97, "end": 122, "loc": { "start": { "line": 4, "column": 25 }, "end": { "line": 4, "column": 50 } }, "object": { "type": "LogicalExpression", "start": 98, "end": 117, "loc": { "start": { "line": 4, "column": 26 }, "end": { "line": 4, "column": 45 } }, "left": { "type": "Identifier", "start": 98, "end": 109, "loc": { "start": { "line": 4, "column": 26 }, "end": { "line": 4, "column": 37 }, "identifierName": "performance" }, "name": "performance" }, "operator": "||", "right": { "type": "Identifier", "start": 113, "end": 117, "loc": { "start": { "line": 4, "column": 41 }, "end": { "line": 4, "column": 45 }, "identifierName": "Date" }, "name": "Date" }, "extra": { "parenthesized": true, "parenStart": 97 } }, "property": { "type": "Identifier", "start": 119, "end": 122, "loc": { "start": { "line": 4, "column": 47 }, "end": { "line": 4, "column": 50 }, "identifierName": "now" }, "name": "now" }, "computed": false }, "arguments": [] } } }, { "type": "ExpressionStatement", "start": 134, "end": 165, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 39 } }, "expression": { "type": "AssignmentExpression", "start": 134, "end": 164, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 38 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 134, "end": 147, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 21 } }, "object": { "type": "ThisExpression", "start": 134, "end": 138, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 12 } } }, "property": { "type": "Identifier", "start": 139, "end": 147, "loc": { "start": { "line": 5, "column": 13 }, "end": { "line": 5, "column": 21 }, "identifierName": "prevTime" }, "name": "prevTime" }, "computed": false }, "right": { "type": "MemberExpression", "start": 150, "end": 164, "loc": { "start": { "line": 5, "column": 24 }, "end": { "line": 5, "column": 38 } }, "object": { "type": "ThisExpression", "start": 150, "end": 154, "loc": { "start": { "line": 5, "column": 24 }, "end": { "line": 5, "column": 28 } } }, "property": { "type": "Identifier", "start": 155, "end": 164, "loc": { "start": { "line": 5, "column": 29 }, "end": { "line": 5, "column": 38 }, "identifierName": "beginTime" }, "name": "beginTime" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 174, "end": 190, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 24 } }, "expression": { "type": "AssignmentExpression", "start": 174, "end": 189, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 23 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 174, "end": 185, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 19 } }, "object": { "type": "ThisExpression", "start": 174, "end": 178, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 12 } } }, "property": { "type": "Identifier", "start": 179, "end": 185, "loc": { "start": { "line": 6, "column": 13 }, "end": { "line": 6, "column": 19 }, "identifierName": "frames" }, "name": "frames" }, "computed": false }, "right": { "type": "NumericLiteral", "start": 188, "end": 189, "loc": { "start": { "line": 6, "column": 22 }, "end": { "line": 6, "column": 23 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } }, { "type": "ExpressionStatement", "start": 199, "end": 240, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 49 } }, "expression": { "type": "AssignmentExpression", "start": 199, "end": 239, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 48 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 199, "end": 207, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 16 } }, "object": { "type": "ThisExpression", "start": 199, "end": 203, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 12 } } }, "property": { "type": "Identifier", "start": 204, "end": 207, "loc": { "start": { "line": 7, "column": 13 }, "end": { "line": 7, "column": 16 }, "identifierName": "dom" }, "name": "dom" }, "computed": false }, "right": { "type": "CallExpression", "start": 210, "end": 239, "loc": { "start": { "line": 7, "column": 19 }, "end": { "line": 7, "column": 48 } }, "callee": { "type": "MemberExpression", "start": 210, "end": 232, "loc": { "start": { "line": 7, "column": 19 }, "end": { "line": 7, "column": 41 } }, "object": { "type": "Identifier", "start": 210, "end": 218, "loc": { "start": { "line": 7, "column": 19 }, "end": { "line": 7, "column": 27 }, "identifierName": "document" }, "name": "document" }, "property": { "type": "Identifier", "start": 219, "end": 232, "loc": { "start": { "line": 7, "column": 28 }, "end": { "line": 7, "column": 41 }, "identifierName": "createElement" }, "name": "createElement" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 233, "end": 238, "loc": { "start": { "line": 7, "column": 42 }, "end": { "line": 7, "column": 47 } }, "extra": { "rawValue": "div", "raw": "'div'" }, "value": "div" } ] } } }, { "type": "ExpressionStatement", "start": 249, "end": 385, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 144 } }, "expression": { "type": "AssignmentExpression", "start": 249, "end": 384, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 143 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 249, "end": 271, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 30 } }, "object": { "type": "MemberExpression", "start": 249, "end": 263, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 22 } }, "object": { "type": "MemberExpression", "start": 249, "end": 257, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 16 } }, "object": { "type": "ThisExpression", "start": 249, "end": 253, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 12 } } }, "property": { "type": "Identifier", "start": 254, "end": 257, "loc": { "start": { "line": 8, "column": 13 }, "end": { "line": 8, "column": 16 }, "identifierName": "dom" }, "name": "dom" }, "computed": false }, "property": { "type": "Identifier", "start": 258, "end": 263, "loc": { "start": { "line": 8, "column": 17 }, "end": { "line": 8, "column": 22 }, "identifierName": "style" }, "name": "style" }, "computed": false }, "property": { "type": "Identifier", "start": 264, "end": 271, "loc": { "start": { "line": 8, "column": 23 }, "end": { "line": 8, "column": 30 }, "identifierName": "cssText" }, "name": "cssText" }, "computed": false }, "right": { "type": "StringLiteral", "start": 274, "end": 384, "loc": { "start": { "line": 8, "column": 33 }, "end": { "line": 8, "column": 143 } }, "extra": { "rawValue": "position:absolute;top:10px;left:10px;cursor:pointer;opacity:0.9;z-index:10000;transform: translate3d(0,0,0);", "raw": "'position:absolute;top:10px;left:10px;cursor:pointer;opacity:0.9;z-index:10000;transform: translate3d(0,0,0);'" }, "value": "position:absolute;top:10px;left:10px;cursor:pointer;opacity:0.9;z-index:10000;transform: translate3d(0,0,0);" } } }, { "type": "ExpressionStatement", "start": 394, "end": 530, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 12, "column": 10 } }, "expression": { "type": "AssignmentExpression", "start": 394, "end": 529, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 12, "column": 9 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 394, "end": 407, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 21 } }, "object": { "type": "ThisExpression", "start": 394, "end": 398, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 12 } } }, "property": { "type": "Identifier", "start": 399, "end": 407, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 21 }, "identifierName": "callback" }, "name": "callback" }, "computed": false }, "right": { "type": "ArrowFunctionExpression", "start": 410, "end": 529, "loc": { "start": { "line": 9, "column": 24 }, "end": { "line": 12, "column": 9 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 410, "end": 415, "loc": { "start": { "line": 9, "column": 24 }, "end": { "line": 9, "column": 29 }, "identifierName": "event" }, "name": "event" } ], "body": { "type": "BlockStatement", "start": 419, "end": 529, "loc": { "start": { "line": 9, "column": 33 }, "end": { "line": 12, "column": 9 } }, "body": [ { "type": "ExpressionStatement", "start": 433, "end": 456, "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 35 } }, "expression": { "type": "CallExpression", "start": 433, "end": 455, "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 34 } }, "callee": { "type": "MemberExpression", "start": 433, "end": 453, "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 32 } }, "object": { "type": "Identifier", "start": 433, "end": 438, "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 17 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 439, "end": 453, "loc": { "start": { "line": 10, "column": 18 }, "end": { "line": 10, "column": 32 }, "identifierName": "preventDefault" }, "name": "preventDefault" }, "computed": false }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 469, "end": 519, "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 62 } }, "expression": { "type": "CallExpression", "start": 469, "end": 518, "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 61 } }, "callee": { "type": "Identifier", "start": 469, "end": 478, "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 21 }, "identifierName": "showPanel" }, "name": "showPanel" }, "arguments": [ { "type": "BinaryExpression", "start": 479, "end": 517, "loc": { "start": { "line": 11, "column": 22 }, "end": { "line": 11, "column": 60 } }, "left": { "type": "UpdateExpression", "start": 479, "end": 490, "loc": { "start": { "line": 11, "column": 22 }, "end": { "line": 11, "column": 33 } }, "operator": "++", "prefix": true, "argument": { "type": "MemberExpression", "start": 481, "end": 490, "loc": { "start": { "line": 11, "column": 24 }, "end": { "line": 11, "column": 33 } }, "object": { "type": "ThisExpression", "start": 481,