UNPKG

awv3

Version:
1,411 lines (1,410 loc) 308 kB
{ "type": "Program", "start": 0, "end": 2801, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 111, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ExportNamedDeclaration", "start": 0, "end": 227, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 7, "column": 1 } }, "declaration": { "type": "FunctionDeclaration", "start": 7, "end": 227, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 7, "column": 1 } }, "id": { "type": "Identifier", "start": 16, "end": 20, "loc": { "start": { "line": 1, "column": 16 }, "end": { "line": 1, "column": 20 } }, "name": "guid" }, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 23, "end": 227, "loc": { "start": { "line": 1, "column": 23 }, "end": { "line": 7, "column": 1 } }, "body": [ { "type": "ReturnStatement", "start": 29, "end": 225, "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 6, "column": 7 } }, "argument": { "type": "CallExpression", "start": 36, "end": 224, "loc": { "start": { "line": 2, "column": 11 }, "end": { "line": 6, "column": 6 } }, "callee": { "type": "MemberExpression", "start": 36, "end": 82, "loc": { "start": { "line": 2, "column": 11 }, "end": { "line": 2, "column": 57 } }, "object": { "type": "Literal", "start": 36, "end": 74, "loc": { "start": { "line": 2, "column": 11 }, "end": { "line": 2, "column": 49 } }, "value": "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx", "rawValue": "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx", "raw": "'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'" }, "property": { "type": "Identifier", "start": 75, "end": 82, "loc": { "start": { "line": 2, "column": 50 }, "end": { "line": 2, "column": 57 } }, "name": "replace" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 83, "end": 90, "loc": { "start": { "line": 2, "column": 58 }, "end": { "line": 2, "column": 65 } }, "value": {}, "rawValue": {}, "raw": "/[xy]/g", "regex": { "pattern": "[xy]", "flags": "g" } }, { "type": "ArrowFunctionExpression", "start": 92, "end": 223, "loc": { "start": { "line": 2, "column": 67 }, "end": { "line": 6, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 92, "end": 93, "loc": { "start": { "line": 2, "column": 67 }, "end": { "line": 2, "column": 68 } }, "name": "c" } ], "body": { "type": "BlockStatement", "start": 97, "end": 223, "loc": { "start": { "line": 2, "column": 72 }, "end": { "line": 6, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 107, "end": 186, "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 4, "column": 47 } }, "declarations": [ { "type": "VariableDeclarator", "start": 111, "end": 137, "loc": { "start": { "line": 3, "column": 12 }, "end": { "line": 3, "column": 38 } }, "id": { "type": "Identifier", "start": 111, "end": 112, "loc": { "start": { "line": 3, "column": 12 }, "end": { "line": 3, "column": 13 } }, "name": "r" }, "init": { "type": "BinaryExpression", "start": 115, "end": 137, "loc": { "start": { "line": 3, "column": 16 }, "end": { "line": 3, "column": 38 } }, "left": { "type": "BinaryExpression", "start": 115, "end": 133, "loc": { "start": { "line": 3, "column": 16 }, "end": { "line": 3, "column": 34 } }, "left": { "type": "CallExpression", "start": 115, "end": 128, "loc": { "start": { "line": 3, "column": 16 }, "end": { "line": 3, "column": 29 } }, "callee": { "type": "MemberExpression", "start": 115, "end": 126, "loc": { "start": { "line": 3, "column": 16 }, "end": { "line": 3, "column": 27 } }, "object": { "type": "Identifier", "start": 115, "end": 119, "loc": { "start": { "line": 3, "column": 16 }, "end": { "line": 3, "column": 20 } }, "name": "Math" }, "property": { "type": "Identifier", "start": 120, "end": 126, "loc": { "start": { "line": 3, "column": 21 }, "end": { "line": 3, "column": 27 } }, "name": "random" }, "computed": false }, "arguments": [] }, "operator": "*", "right": { "type": "Literal", "start": 131, "end": 133, "loc": { "start": { "line": 3, "column": 32 }, "end": { "line": 3, "column": 34 } }, "value": 16, "rawValue": 16, "raw": "16" } }, "operator": "|", "right": { "type": "Literal", "start": 136, "end": 137, "loc": { "start": { "line": 3, "column": 37 }, "end": { "line": 3, "column": 38 } }, "value": 0, "rawValue": 0, "raw": "0" } } }, { "type": "VariableDeclarator", "start": 151, "end": 185, "loc": { "start": { "line": 4, "column": 12 }, "end": { "line": 4, "column": 46 } }, "id": { "type": "Identifier", "start": 151, "end": 152, "loc": { "start": { "line": 4, "column": 12 }, "end": { "line": 4, "column": 13 } }, "name": "v" }, "init": { "type": "ConditionalExpression", "start": 155, "end": 185, "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 46 } }, "test": { "type": "BinaryExpression", "start": 155, "end": 163, "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 24 } }, "left": { "type": "Identifier", "start": 155, "end": 156, "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 17 } }, "name": "c" }, "operator": "==", "right": { "type": "Literal", "start": 160, "end": 163, "loc": { "start": { "line": 4, "column": 21 }, "end": { "line": 4, "column": 24 } }, "value": "x", "rawValue": "x", "raw": "'x'" } }, "consequent": { "type": "Identifier", "start": 166, "end": 167, "loc": { "start": { "line": 4, "column": 27 }, "end": { "line": 4, "column": 28 } }, "name": "r" }, "alternate": { "type": "BinaryExpression", "start": 171, "end": 184, "loc": { "start": { "line": 4, "column": 32 }, "end": { "line": 4, "column": 45 } }, "left": { "type": "BinaryExpression", "start": 171, "end": 178, "loc": { "start": { "line": 4, "column": 32 }, "end": { "line": 4, "column": 39 } }, "left": { "type": "Identifier", "start": 171, "end": 172, "loc": { "start": { "line": 4, "column": 32 }, "end": { "line": 4, "column": 33 } }, "name": "r" }, "operator": "&", "right": { "type": "Literal", "start": 175, "end": 178, "loc": { "start": { "line": 4, "column": 36 }, "end": { "line": 4, "column": 39 } }, "value": 3, "rawValue": 3, "raw": "0x3" } }, "operator": "|", "right": { "type": "Literal", "start": 181, "end": 184, "loc": { "start": { "line": 4, "column": 42 }, "end": { "line": 4, "column": 45 } }, "value": 8, "rawValue": 8, "raw": "0x8" }, "parenthesizedExpression": true } } } ], "kind": "var" }, { "type": "ReturnStatement", "start": 195, "end": 217, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 30 } }, "argument": { "type": "CallExpression", "start": 202, "end": 216, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 5, "column": 29 } }, "callee": { "type": "MemberExpression", "start": 202, "end": 212, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 5, "column": 25 } }, "object": { "type": "Identifier", "start": 202, "end": 203, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 5, "column": 16 } }, "name": "v" }, "property": { "type": "Identifier", "start": 204, "end": 212, "loc": { "start": { "line": 5, "column": 17 }, "end": { "line": 5, "column": 25 } }, "name": "toString" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 213, "end": 215, "loc": { "start": { "line": 5, "column": 26 }, "end": { "line": 5, "column": 28 } }, "value": 16, "rawValue": 16, "raw": "16" } ] } } ] } } ] } } ] }, "leadingComments": [], "trailingComments": [] }, "specifiers": [], "source": null }, { "type": "ExportNamedDeclaration", "start": 229, "end": 567, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 18, "column": 1 } }, "declaration": { "type": "FunctionDeclaration", "start": 236, "end": 567, "loc": { "start": { "line": 9, "column": 7 }, "end": { "line": 18, "column": 1 } }, "id": { "type": "Identifier", "start": 245, "end": 248, "loc": { "start": { "line": 9, "column": 16 }, "end": { "line": 9, "column": 19 } }, "name": "url" }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 249, "end": 254, "loc": { "start": { "line": 9, "column": 20 }, "end": { "line": 9, "column": 25 } }, "name": "param" } ], "body": { "type": "BlockStatement", "start": 256, "end": 567, "loc": { "start": { "line": 9, "column": 27 }, "end": { "line": 18, "column": 1 } }, "body": [ { "type": "VariableDeclaration", "start": 262, "end": 358, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 11, "column": 44 } }, "declarations": [ { "type": "VariableDeclarator", "start": 266, "end": 312, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 54 } }, "id": { "type": "Identifier", "start": 266, "end": 274, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 16 } }, "name": "sPageURL" }, "init": { "type": "CallExpression", "start": 277, "end": 312, "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 10, "column": 54 } }, "callee": { "type": "MemberExpression", "start": 277, "end": 309, "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 10, "column": 51 } }, "object": { "type": "MemberExpression", "start": 277, "end": 299, "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 10, "column": 41 } }, "object": { "type": "MemberExpression", "start": 277, "end": 292, "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 10, "column": 34 } }, "object": { "type": "Identifier", "start": 277, "end": 283, "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 10, "column": 25 } }, "name": "window" }, "property": { "type": "Identifier", "start": 284, "end": 292, "loc": { "start": { "line": 10, "column": 26 }, "end": { "line": 10, "column": 34 } }, "name": "location" }, "computed": false }, "property": { "type": "Identifier", "start": 293, "end": 299, "loc": { "start": { "line": 10, "column": 35 }, "end": { "line": 10, "column": 41 } }, "name": "search" }, "computed": false }, "property": { "type": "Identifier", "start": 300, "end": 309, "loc": { "start": { "line": 10, "column": 42 }, "end": { "line": 10, "column": 51 } }, "name": "substring" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 310, "end": 311, "loc": { "start": { "line": 10, "column": 52 }, "end": { "line": 10, "column": 53 } }, "value": 1, "rawValue": 1, "raw": "1" } ] } }, { "type": "VariableDeclarator", "start": 322, "end": 357, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 43 } }, "id": { "type": "Identifier", "start": 322, "end": 335, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 21 } }, "name": "sURLVariables" }, "init": { "type": "CallExpression", "start": 338, "end": 357, "loc": { "start": { "line": 11, "column": 24 }, "end": { "line": 11, "column": 43 } }, "callee": { "type": "MemberExpression", "start": 338, "end": 352, "loc": { "start": { "line": 11, "column": 24 }, "end": { "line": 11, "column": 38 } }, "object": { "type": "Identifier", "start": 338, "end": 346, "loc": { "start": { "line": 11, "column": 24 }, "end": { "line": 11, "column": 32 } }, "name": "sPageURL" }, "property": { "type": "Identifier", "start": 347, "end": 352, "loc": { "start": { "line": 11, "column": 33 }, "end": { "line": 11, "column": 38 } }, "name": "split" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 353, "end": 356, "loc": { "start": { "line": 11, "column": 39 }, "end": { "line": 11, "column": 42 } }, "value": "&", "rawValue": "&", "raw": "'&'" } ] } } ], "kind": "var" }, { "type": "ForStatement", "start": 363, "end": 565, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 17, "column": 5 } }, "init": { "type": "VariableDeclaration", "start": 368, "end": 377, "loc": { "start": { "line": 12, "column": 9 }, "end": { "line": 12, "column": 18 } }, "declarations": [ { "type": "VariableDeclarator", "start": 372, "end": 377, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 18 } }, "id": { "type": "Identifier", "start": 372, "end": 373, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 14 } }, "name": "i" }, "init": { "type": "Literal", "start": 376, "end": 377, "loc": { "start": { "line": 12, "column": 17 }, "end": { "line": 12, "column": 18 } }, "value": 0, "rawValue": 0, "raw": "0" } } ], "kind": "var" }, "test": { "type": "BinaryExpression", "start": 379, "end": 403, "loc": { "start": { "line": 12, "column": 20 }, "end": { "line": 12, "column": 44 } }, "left": { "type": "Identifier", "start": 379, "end": 380, "loc": { "start": { "line": 12, "column": 20 }, "end": { "line": 12, "column": 21 } }, "name": "i" }, "operator": "<", "right": { "type": "MemberExpression", "start": 383, "end": 403, "loc": { "start": { "line": 12, "column": 24 }, "end": { "line": 12, "column": 44 } }, "object": { "type": "Identifier", "start": 383, "end": 396, "loc": { "start": { "line": 12, "column": 24 }, "end": { "line": 12, "column": 37 } }, "name": "sURLVariables" }, "property": { "type": "Identifier", "start": 397, "end": 403, "loc": { "start": { "line": 12, "column": 38 }, "end": { "line": 12, "column": 44 } }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 405, "end": 408, "loc": { "start": { "line": 12, "column": 46 }, "end": { "line": 12, "column": 49 } }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "start": 405, "end": 406, "loc": { "start": { "line": 12, "column": 46 }, "end": { "line": 12, "column": 47 } }, "name": "i" } }, "body": { "type": "BlockStatement", "start": 410, "end": 565, "loc": { "start": { "line": 12, "column": 51 }, "end": { "line": 17, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 420, "end": 469, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 57 } }, "declarations": [ { "type": "VariableDeclarator", "start": 424, "end": 468, "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 56 } }, "id": { "type": "Identifier", "start": 424, "end": 438, "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 26 } }, "name": "sParameterName" }, "init": { "type": "CallExpression", "start": 441, "end": 468, "loc": { "start": { "line": 13, "column": 29 }, "end": { "line": 13, "column": 56 } }, "callee": { "type": "MemberExpression", "start": 441, "end": 463, "loc": { "start": { "line": 13, "column": 29 }, "end": { "line": 13, "column": 51 } }, "object": { "type": "MemberExpression", "start": 441, "end": 457, "loc": { "start": { "line": 13, "column": 29 }, "end": { "line": 13, "column": 45 } }, "object": { "type": "Identifier", "start": 441,