mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-05-15 21:06:44 +02:00
8384 lines
298 KiB
JSON
8384 lines
298 KiB
JSON
{
|
|
"type": "Program",
|
|
"body": [
|
|
{
|
|
"type": "ExportDefaultDeclaration",
|
|
"declaration": {
|
|
"type": "ObjectExpression",
|
|
"properties": [
|
|
{
|
|
"type": "Property",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "getText",
|
|
"range": [
|
|
186,
|
|
193
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 11
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "node",
|
|
"range": [
|
|
194,
|
|
198
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 16
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "s",
|
|
"range": [
|
|
214,
|
|
215
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "LogicalExpression",
|
|
"operator": "||",
|
|
"left": {
|
|
"type": "LogicalExpression",
|
|
"operator": "||",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "node",
|
|
"range": [
|
|
218,
|
|
222
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "textContent",
|
|
"range": [
|
|
223,
|
|
234
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
218,
|
|
234
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "node",
|
|
"range": [
|
|
238,
|
|
242
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "innerText",
|
|
"range": [
|
|
243,
|
|
252
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
238,
|
|
252
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
218,
|
|
252
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "node",
|
|
"range": [
|
|
273,
|
|
277
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "innerHTML",
|
|
"range": [
|
|
278,
|
|
287
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
273,
|
|
287
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "replace",
|
|
"range": [
|
|
288,
|
|
295
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
273,
|
|
295
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/<[^<>]+>/g",
|
|
"regex": {
|
|
"pattern": "<[^<>]+>",
|
|
"flags": "g"
|
|
},
|
|
"range": [
|
|
296,
|
|
307
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "",
|
|
"raw": "''",
|
|
"range": [
|
|
309,
|
|
311
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 54
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
273,
|
|
312
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
218,
|
|
312
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
214,
|
|
312
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 55
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
210,
|
|
313
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "s",
|
|
"range": [
|
|
323,
|
|
324
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "s",
|
|
"range": [
|
|
327,
|
|
328
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "replace",
|
|
"range": [
|
|
329,
|
|
336
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
327,
|
|
336
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^\\s+/",
|
|
"regex": {
|
|
"pattern": "^\\s+",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
337,
|
|
343
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "",
|
|
"raw": "''",
|
|
"range": [
|
|
345,
|
|
347
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 32
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
327,
|
|
348
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "replace",
|
|
"range": [
|
|
349,
|
|
356
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
327,
|
|
356
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/\\s+$/",
|
|
"regex": {
|
|
"pattern": "\\s+$",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
357,
|
|
363
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "",
|
|
"raw": "''",
|
|
"range": [
|
|
365,
|
|
367
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 52
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
327,
|
|
368
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
323,
|
|
368
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
323,
|
|
369
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "s",
|
|
"range": [
|
|
386,
|
|
387
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
379,
|
|
388
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 17
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
199,
|
|
395
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
193,
|
|
395
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"kind": "init",
|
|
"method": true,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"range": [
|
|
186,
|
|
395
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 5
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": "*\r\n * DOM utilities\r\n ",
|
|
"range": [
|
|
0,
|
|
26
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": "*\r\n * Returns text + text of children of given node\r\n * @param {NodeElement} node\r\n * @return {String}\r\n ",
|
|
"range": [
|
|
54,
|
|
180
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "Property",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "create",
|
|
"range": [
|
|
759,
|
|
765
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "tag",
|
|
"range": [
|
|
766,
|
|
769
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 14
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "LogicalExpression",
|
|
"operator": "||",
|
|
"left": {
|
|
"type": "UnaryExpression",
|
|
"operator": "!",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "tag",
|
|
"range": [
|
|
785,
|
|
788
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 27,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 27,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"prefix": true,
|
|
"range": [
|
|
784,
|
|
788
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 27,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 27,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "tag",
|
|
"range": [
|
|
792,
|
|
795
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 27,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 27,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "",
|
|
"raw": "''",
|
|
"range": [
|
|
798,
|
|
800
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 27,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 27,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
792,
|
|
800
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 27,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 27,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
784,
|
|
800
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 27,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 27,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": null,
|
|
"range": [
|
|
816,
|
|
823
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 19
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
801,
|
|
834
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 27,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 29,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
781,
|
|
834
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 27,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 29,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "el",
|
|
"range": [
|
|
850,
|
|
852
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 31,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "document",
|
|
"range": [
|
|
855,
|
|
863
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 31,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "createElement",
|
|
"range": [
|
|
864,
|
|
877
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 31,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
855,
|
|
877
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 31,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "tag",
|
|
"range": [
|
|
878,
|
|
881
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 31,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 43
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
855,
|
|
882
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 31,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
850,
|
|
882
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 31,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "args",
|
|
"range": [
|
|
897,
|
|
901
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "Identifier",
|
|
"name": "arguments",
|
|
"range": [
|
|
904,
|
|
913
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
897,
|
|
913
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 28
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
846,
|
|
914
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 31,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": ">",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "args",
|
|
"range": [
|
|
929,
|
|
933
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "length",
|
|
"range": [
|
|
934,
|
|
940
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
929,
|
|
940
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
943,
|
|
944
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
929,
|
|
944
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ForStatement",
|
|
"init": {
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "i",
|
|
"range": [
|
|
968,
|
|
969
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
970,
|
|
971
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
968,
|
|
971
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 23
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
964,
|
|
971
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "<",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "i",
|
|
"range": [
|
|
973,
|
|
974
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "args",
|
|
"range": [
|
|
975,
|
|
979
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "length",
|
|
"range": [
|
|
980,
|
|
986
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
975,
|
|
986
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
973,
|
|
986
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"update": {
|
|
"type": "UpdateExpression",
|
|
"operator": "++",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "i",
|
|
"range": [
|
|
988,
|
|
989
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"prefix": false,
|
|
"range": [
|
|
988,
|
|
991
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "argtype",
|
|
"range": [
|
|
1015,
|
|
1022
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "UnaryExpression",
|
|
"operator": "typeof",
|
|
"argument": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "args",
|
|
"range": [
|
|
1032,
|
|
1036
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "i",
|
|
"range": [
|
|
1037,
|
|
1038
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1032,
|
|
1039
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
"prefix": true,
|
|
"range": [
|
|
1025,
|
|
1039
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1015,
|
|
1039
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 44
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
1011,
|
|
1040
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "LogicalExpression",
|
|
"operator": "&&",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "argtype",
|
|
"range": [
|
|
1061,
|
|
1068
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "toLowerCase",
|
|
"range": [
|
|
1069,
|
|
1080
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1061,
|
|
1080
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
1061,
|
|
1082
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "object",
|
|
"raw": "'object'",
|
|
"range": [
|
|
1087,
|
|
1095
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1061,
|
|
1095
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "args",
|
|
"range": [
|
|
1099,
|
|
1103
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 57
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "i",
|
|
"range": [
|
|
1104,
|
|
1105
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 63
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1099,
|
|
1106
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 57
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 64
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "length",
|
|
"range": [
|
|
1107,
|
|
1113
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 65
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1099,
|
|
1113
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 57
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
1118,
|
|
1119
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 76
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 77
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1099,
|
|
1119
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 57
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 77
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1061,
|
|
1119
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 77
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "el",
|
|
"range": [
|
|
1143,
|
|
1145
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "setAttribute",
|
|
"range": [
|
|
1146,
|
|
1158
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1143,
|
|
1158
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "args",
|
|
"range": [
|
|
1159,
|
|
1163
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "i",
|
|
"range": [
|
|
1164,
|
|
1165
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1159,
|
|
1166
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
1167,
|
|
1168
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1159,
|
|
1169
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "args",
|
|
"range": [
|
|
1171,
|
|
1175
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "i",
|
|
"range": [
|
|
1176,
|
|
1177
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1171,
|
|
1178
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
1179,
|
|
1180
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 56
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 57
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1171,
|
|
1181
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 58
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1143,
|
|
1182
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1143,
|
|
1183
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 60
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1120,
|
|
1202
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 78
|
|
},
|
|
"end": {
|
|
"line": 39,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
1058,
|
|
1202
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 39,
|
|
"column": 17
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
992,
|
|
1217
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 40,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
960,
|
|
1217
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 40,
|
|
"column": 13
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
945,
|
|
1228
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
926,
|
|
1228
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "el",
|
|
"range": [
|
|
1245,
|
|
1247
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1238,
|
|
1248
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 18
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
770,
|
|
1255
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
765,
|
|
1255
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"kind": "init",
|
|
"method": true,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"range": [
|
|
759,
|
|
1255
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 5
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": "*\r\n * Creates an html element with given collection of attributes\r\n * @param {String} tag a string of the html tag to create\r\n * @param {Array} an undetermined number of arrays containing the with 2\r\n * items, the attribute name and its value ['id','myId']\r\n * @return {Object} created element\r\n ",
|
|
"range": [
|
|
404,
|
|
753
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "Property",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "text",
|
|
"range": [
|
|
1380,
|
|
1384
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 50,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 8
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "txt",
|
|
"range": [
|
|
1385,
|
|
1388
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 50,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 12
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "document",
|
|
"range": [
|
|
1407,
|
|
1415
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "createTextNode",
|
|
"range": [
|
|
1416,
|
|
1430
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1407,
|
|
1430
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "txt",
|
|
"range": [
|
|
1431,
|
|
1434
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 42
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1407,
|
|
1435
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1400,
|
|
1436
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 44
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1389,
|
|
1443
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 50,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
1384,
|
|
1443
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 50,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"kind": "init",
|
|
"method": true,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"range": [
|
|
1380,
|
|
1443
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 50,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 5
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": "*\r\n * Returns a text node with given text\r\n * @param {String} txt\r\n * @return {Object}\r\n ",
|
|
"range": [
|
|
1264,
|
|
1374
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 49,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "Property",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "hasClass",
|
|
"range": [
|
|
1452,
|
|
1460
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "ele",
|
|
"range": [
|
|
1461,
|
|
1464
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "cls",
|
|
"range": [
|
|
1466,
|
|
1469
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 21
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "UnaryExpression",
|
|
"operator": "!",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "ele",
|
|
"range": [
|
|
1485,
|
|
1488
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 55,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 55,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"prefix": true,
|
|
"range": [
|
|
1484,
|
|
1488
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 55,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 55,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": false,
|
|
"raw": "false",
|
|
"range": [
|
|
1498,
|
|
1503
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 55,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 55,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1491,
|
|
1504
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 55,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 55,
|
|
"column": 31
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1489,
|
|
1506
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 55,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 55,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
1481,
|
|
1506
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 55,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 55,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "supportsClassList",
|
|
"range": [
|
|
1521,
|
|
1538
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 57,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 57,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
1521,
|
|
1540
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 57,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 57,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "ele",
|
|
"range": [
|
|
1563,
|
|
1566
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "classList",
|
|
"range": [
|
|
1567,
|
|
1576
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1563,
|
|
1576
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "contains",
|
|
"range": [
|
|
1577,
|
|
1585
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1563,
|
|
1585
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "cls",
|
|
"range": [
|
|
1586,
|
|
1589
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 45
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1563,
|
|
1590
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1556,
|
|
1591
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 47
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1541,
|
|
1602
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 57,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 59,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
1518,
|
|
1602
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 57,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 59,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "ele",
|
|
"range": [
|
|
1619,
|
|
1622
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "className",
|
|
"range": [
|
|
1623,
|
|
1632
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1619,
|
|
1632
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "match",
|
|
"range": [
|
|
1633,
|
|
1638
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1619,
|
|
1638
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "NewExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "RegExp",
|
|
"range": [
|
|
1643,
|
|
1649
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "Literal",
|
|
"value": "(\\s|^)",
|
|
"raw": "'(\\\\s|^)'",
|
|
"range": [
|
|
1650,
|
|
1659
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"name": "cls",
|
|
"range": [
|
|
1661,
|
|
1664
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 57
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 60
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1650,
|
|
1664
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 60
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "(\\s|$)",
|
|
"raw": "'(\\\\s|$)'",
|
|
"range": [
|
|
1666,
|
|
1675
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1650,
|
|
1675
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 71
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1639,
|
|
1676
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 72
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1619,
|
|
1677
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 73
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1612,
|
|
1678
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 74
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1470,
|
|
1685
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
1460,
|
|
1685
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"kind": "init",
|
|
"method": true,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"range": [
|
|
1452,
|
|
1685
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Property",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "addClass",
|
|
"range": [
|
|
1694,
|
|
1702
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "ele",
|
|
"range": [
|
|
1703,
|
|
1706
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "cls",
|
|
"range": [
|
|
1708,
|
|
1711
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 21
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "UnaryExpression",
|
|
"operator": "!",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "ele",
|
|
"range": [
|
|
1727,
|
|
1730
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"prefix": true,
|
|
"range": [
|
|
1726,
|
|
1730
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": null,
|
|
"range": [
|
|
1733,
|
|
1740
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 25
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1731,
|
|
1742
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
1723,
|
|
1742
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "supportsClassList",
|
|
"range": [
|
|
1757,
|
|
1774
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
1757,
|
|
1776
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "ele",
|
|
"range": [
|
|
1792,
|
|
1795
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 67,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "classList",
|
|
"range": [
|
|
1796,
|
|
1805
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 67,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1792,
|
|
1805
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 67,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "add",
|
|
"range": [
|
|
1806,
|
|
1809
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 67,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1792,
|
|
1809
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 67,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "cls",
|
|
"range": [
|
|
1810,
|
|
1813
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 67,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 33
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1792,
|
|
1814
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 67,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1792,
|
|
1815
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 67,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": null,
|
|
"range": [
|
|
1829,
|
|
1836
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 19
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1777,
|
|
1847
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
1754,
|
|
1847
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "ele",
|
|
"range": [
|
|
1862,
|
|
1865
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 71,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "className",
|
|
"range": [
|
|
1866,
|
|
1875
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 71,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1862,
|
|
1875
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 71,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "",
|
|
"raw": "''",
|
|
"range": [
|
|
1880,
|
|
1882
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 71,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1862,
|
|
1882
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 71,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "ele",
|
|
"range": [
|
|
1898,
|
|
1901
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "className",
|
|
"range": [
|
|
1902,
|
|
1911
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1898,
|
|
1911
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"name": "cls",
|
|
"range": [
|
|
1914,
|
|
1917
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1898,
|
|
1917
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1898,
|
|
1918
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 32
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1883,
|
|
1929
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 73,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "UnaryExpression",
|
|
"operator": "!",
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"range": [
|
|
1948,
|
|
1952
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "hasClass",
|
|
"range": [
|
|
1953,
|
|
1961
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1948,
|
|
1961
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "ele",
|
|
"range": [
|
|
1962,
|
|
1965
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "cls",
|
|
"range": [
|
|
1967,
|
|
1970
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1948,
|
|
1971
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"prefix": true,
|
|
"range": [
|
|
1947,
|
|
1971
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "+=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "ele",
|
|
"range": [
|
|
1987,
|
|
1990
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 75,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "className",
|
|
"range": [
|
|
1991,
|
|
2000
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 75,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1987,
|
|
2000
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 75,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "Literal",
|
|
"value": " ",
|
|
"raw": "' '",
|
|
"range": [
|
|
2004,
|
|
2007
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 75,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"name": "cls",
|
|
"range": [
|
|
2010,
|
|
2013
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 75,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2004,
|
|
2013
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 75,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1987,
|
|
2013
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 75,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1987,
|
|
2014
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 75,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1972,
|
|
2025
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
1944,
|
|
2025
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1859,
|
|
2025
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 9
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1712,
|
|
2032
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
1702,
|
|
2032
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"kind": "init",
|
|
"method": true,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"range": [
|
|
1694,
|
|
2032
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Property",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "removeClass",
|
|
"range": [
|
|
2041,
|
|
2052
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "ele",
|
|
"range": [
|
|
2053,
|
|
2056
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "cls",
|
|
"range": [
|
|
2058,
|
|
2061
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 24
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "UnaryExpression",
|
|
"operator": "!",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "ele",
|
|
"range": [
|
|
2077,
|
|
2080
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"prefix": true,
|
|
"range": [
|
|
2076,
|
|
2080
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": null,
|
|
"range": [
|
|
2083,
|
|
2090
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 25
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2081,
|
|
2092
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
2073,
|
|
2092
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "supportsClassList",
|
|
"range": [
|
|
2107,
|
|
2124
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
2107,
|
|
2126
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "ele",
|
|
"range": [
|
|
2142,
|
|
2145
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "classList",
|
|
"range": [
|
|
2146,
|
|
2155
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2142,
|
|
2155
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "remove",
|
|
"range": [
|
|
2156,
|
|
2162
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2142,
|
|
2162
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "cls",
|
|
"range": [
|
|
2163,
|
|
2166
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 36
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2142,
|
|
2167
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2142,
|
|
2168
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": null,
|
|
"range": [
|
|
2182,
|
|
2189
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 19
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2127,
|
|
2200
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
2104,
|
|
2200
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "reg",
|
|
"range": [
|
|
2214,
|
|
2217
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "NewExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "RegExp",
|
|
"range": [
|
|
2224,
|
|
2230
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "Literal",
|
|
"value": "(\\s|^)",
|
|
"raw": "'(\\\\s|^)'",
|
|
"range": [
|
|
2231,
|
|
2240
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"name": "cls",
|
|
"range": [
|
|
2242,
|
|
2245
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2231,
|
|
2245
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "(\\s|$)",
|
|
"raw": "'(\\\\s|$)'",
|
|
"range": [
|
|
2247,
|
|
2256
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2231,
|
|
2256
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "g",
|
|
"raw": "'g'",
|
|
"range": [
|
|
2258,
|
|
2261
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 56
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 59
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2220,
|
|
2262
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 60
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2214,
|
|
2262
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 60
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
2210,
|
|
2263
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "ele",
|
|
"range": [
|
|
2273,
|
|
2276
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 11
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "className",
|
|
"range": [
|
|
2277,
|
|
2286
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2273,
|
|
2286
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "ele",
|
|
"range": [
|
|
2289,
|
|
2292
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "className",
|
|
"range": [
|
|
2293,
|
|
2302
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2289,
|
|
2302
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "replace",
|
|
"range": [
|
|
2303,
|
|
2310
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2289,
|
|
2310
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "reg",
|
|
"range": [
|
|
2311,
|
|
2314
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 49
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "",
|
|
"raw": "''",
|
|
"range": [
|
|
2316,
|
|
2318
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 53
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2289,
|
|
2319
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2273,
|
|
2319
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2273,
|
|
2320
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 55
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2062,
|
|
2327
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 88,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
2052,
|
|
2327
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 88,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"kind": "init",
|
|
"method": true,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"range": [
|
|
2041,
|
|
2327
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 88,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Property",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "createOpt",
|
|
"range": [
|
|
2595,
|
|
2604
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 97,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "text",
|
|
"range": [
|
|
2605,
|
|
2609
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 97,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "value",
|
|
"range": [
|
|
2611,
|
|
2616
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 97,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "isSel",
|
|
"range": [
|
|
2618,
|
|
2623
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 97,
|
|
"column": 32
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "isSelected",
|
|
"range": [
|
|
2639,
|
|
2649
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 98,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 98,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "ConditionalExpression",
|
|
"test": {
|
|
"type": "Identifier",
|
|
"name": "isSel",
|
|
"range": [
|
|
2652,
|
|
2657
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 98,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 98,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "Literal",
|
|
"value": true,
|
|
"raw": "true",
|
|
"range": [
|
|
2660,
|
|
2664
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 98,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 98,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "Literal",
|
|
"value": false,
|
|
"raw": "false",
|
|
"range": [
|
|
2667,
|
|
2672
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 98,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 98,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2652,
|
|
2672
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 98,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 98,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2639,
|
|
2672
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 98,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 98,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "opt",
|
|
"range": [
|
|
2687,
|
|
2690
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 99,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "ConditionalExpression",
|
|
"test": {
|
|
"type": "Identifier",
|
|
"name": "isSelected",
|
|
"range": [
|
|
2693,
|
|
2703
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 99,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"range": [
|
|
2723,
|
|
2727
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 100,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "create",
|
|
"range": [
|
|
2728,
|
|
2734
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 100,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2723,
|
|
2734
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 100,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": "option",
|
|
"raw": "'option'",
|
|
"range": [
|
|
2735,
|
|
2743
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 100,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ArrayExpression",
|
|
"elements": [
|
|
{
|
|
"type": "Literal",
|
|
"value": "value",
|
|
"raw": "'value'",
|
|
"range": [
|
|
2746,
|
|
2753
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 100,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "value",
|
|
"range": [
|
|
2754,
|
|
2759
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 100,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 52
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2745,
|
|
2760
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 100,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ArrayExpression",
|
|
"elements": [
|
|
{
|
|
"type": "Literal",
|
|
"value": "selected",
|
|
"raw": "'selected'",
|
|
"range": [
|
|
2763,
|
|
2773
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 100,
|
|
"column": 56
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 66
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "true",
|
|
"raw": "'true'",
|
|
"range": [
|
|
2774,
|
|
2780
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 100,
|
|
"column": 67
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 73
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2762,
|
|
2781
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 100,
|
|
"column": 55
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 74
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2723,
|
|
2782
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 100,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 75
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"range": [
|
|
2802,
|
|
2806
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "create",
|
|
"range": [
|
|
2807,
|
|
2813
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2802,
|
|
2813
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": "option",
|
|
"raw": "'option'",
|
|
"range": [
|
|
2814,
|
|
2822
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ArrayExpression",
|
|
"elements": [
|
|
{
|
|
"type": "Literal",
|
|
"value": "value",
|
|
"raw": "'value'",
|
|
"range": [
|
|
2825,
|
|
2832
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "value",
|
|
"range": [
|
|
2833,
|
|
2838
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 52
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2824,
|
|
2839
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 53
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2802,
|
|
2840
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2693,
|
|
2840
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2687,
|
|
2840
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 54
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
2635,
|
|
2841
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 98,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "opt",
|
|
"range": [
|
|
2851,
|
|
2854
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 11
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "appendChild",
|
|
"range": [
|
|
2855,
|
|
2866
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2851,
|
|
2866
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"range": [
|
|
2867,
|
|
2871
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "text",
|
|
"range": [
|
|
2872,
|
|
2876
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2867,
|
|
2876
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "text",
|
|
"range": [
|
|
2877,
|
|
2881
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 38
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2867,
|
|
2882
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2851,
|
|
2883
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2851,
|
|
2884
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "opt",
|
|
"range": [
|
|
2901,
|
|
2904
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 103,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 103,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2894,
|
|
2905
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 103,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 103,
|
|
"column": 19
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2624,
|
|
2912
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 104,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
2604,
|
|
2912
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 104,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"kind": "init",
|
|
"method": true,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"range": [
|
|
2595,
|
|
2912
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 104,
|
|
"column": 5
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": "*\r\n * Creates and returns an option element\r\n * @param {String} text option text\r\n * @param {String} value option value\r\n * @param {Boolean} isSel whether option is selected\r\n * @return {Object} option element\r\n ",
|
|
"range": [
|
|
2336,
|
|
2589
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "Property",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "createCheckItem",
|
|
"range": [
|
|
3198,
|
|
3213
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "chkIndex",
|
|
"range": [
|
|
3214,
|
|
3222
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "chkValue",
|
|
"range": [
|
|
3224,
|
|
3232
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "labelText",
|
|
"range": [
|
|
3234,
|
|
3243
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 49
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "li",
|
|
"range": [
|
|
3259,
|
|
3261
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"range": [
|
|
3264,
|
|
3268
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "create",
|
|
"range": [
|
|
3269,
|
|
3275
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3264,
|
|
3275
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": "li",
|
|
"raw": "'li'",
|
|
"range": [
|
|
3276,
|
|
3280
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 33
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3264,
|
|
3281
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3259,
|
|
3281
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "label",
|
|
"range": [
|
|
3296,
|
|
3301
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 115,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"range": [
|
|
3304,
|
|
3308
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 115,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "create",
|
|
"range": [
|
|
3309,
|
|
3315
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 115,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3304,
|
|
3315
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 115,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": "label",
|
|
"raw": "'label'",
|
|
"range": [
|
|
3316,
|
|
3323
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 115,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ArrayExpression",
|
|
"elements": [
|
|
{
|
|
"type": "Literal",
|
|
"value": "for",
|
|
"raw": "'for'",
|
|
"range": [
|
|
3326,
|
|
3331
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 115,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "chkIndex",
|
|
"range": [
|
|
3333,
|
|
3341
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 115,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 57
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3325,
|
|
3342
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 115,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 58
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3304,
|
|
3343
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 115,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3296,
|
|
3343
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 115,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "check",
|
|
"range": [
|
|
3358,
|
|
3363
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 116,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 116,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"range": [
|
|
3366,
|
|
3370
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 116,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 116,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "create",
|
|
"range": [
|
|
3371,
|
|
3377
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 116,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 116,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3366,
|
|
3377
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 116,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 116,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": "input",
|
|
"raw": "'input'",
|
|
"range": [
|
|
3378,
|
|
3385
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 116,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 116,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ArrayExpression",
|
|
"elements": [
|
|
{
|
|
"type": "Literal",
|
|
"value": "id",
|
|
"raw": "'id'",
|
|
"range": [
|
|
3405,
|
|
3409
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "chkIndex",
|
|
"range": [
|
|
3411,
|
|
3419
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 31
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3404,
|
|
3420
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ArrayExpression",
|
|
"elements": [
|
|
{
|
|
"type": "Literal",
|
|
"value": "name",
|
|
"raw": "'name'",
|
|
"range": [
|
|
3440,
|
|
3446
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "chkIndex",
|
|
"range": [
|
|
3448,
|
|
3456
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 33
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3439,
|
|
3457
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ArrayExpression",
|
|
"elements": [
|
|
{
|
|
"type": "Literal",
|
|
"value": "type",
|
|
"raw": "'type'",
|
|
"range": [
|
|
3477,
|
|
3483
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "checkbox",
|
|
"raw": "'checkbox'",
|
|
"range": [
|
|
3485,
|
|
3495
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 35
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3476,
|
|
3496
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ArrayExpression",
|
|
"elements": [
|
|
{
|
|
"type": "Literal",
|
|
"value": "value",
|
|
"raw": "'value'",
|
|
"range": [
|
|
3516,
|
|
3523
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "chkValue",
|
|
"range": [
|
|
3525,
|
|
3533
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 34
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3515,
|
|
3534
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 35
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3366,
|
|
3549
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 116,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 121,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3358,
|
|
3549
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 116,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 121,
|
|
"column": 13
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
3255,
|
|
3550
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 121,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "label",
|
|
"range": [
|
|
3560,
|
|
3565
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 122,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 122,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "appendChild",
|
|
"range": [
|
|
3566,
|
|
3577
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 122,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 122,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3560,
|
|
3577
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 122,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 122,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "check",
|
|
"range": [
|
|
3578,
|
|
3583
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 122,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 122,
|
|
"column": 31
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3560,
|
|
3584
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 122,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 122,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3560,
|
|
3585
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 122,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 122,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "label",
|
|
"range": [
|
|
3595,
|
|
3600
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 123,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 123,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "appendChild",
|
|
"range": [
|
|
3601,
|
|
3612
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 123,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 123,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3595,
|
|
3612
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 123,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 123,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"range": [
|
|
3613,
|
|
3617
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 123,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 123,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "text",
|
|
"range": [
|
|
3618,
|
|
3622
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 123,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 123,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3613,
|
|
3622
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 123,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 123,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "labelText",
|
|
"range": [
|
|
3623,
|
|
3632
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 123,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 123,
|
|
"column": 45
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3613,
|
|
3633
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 123,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 123,
|
|
"column": 46
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3595,
|
|
3634
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 123,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 123,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3595,
|
|
3635
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 123,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 123,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "li",
|
|
"range": [
|
|
3645,
|
|
3647
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 124,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 124,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "appendChild",
|
|
"range": [
|
|
3648,
|
|
3659
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 124,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 124,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3645,
|
|
3659
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 124,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 124,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "label",
|
|
"range": [
|
|
3660,
|
|
3665
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 124,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 124,
|
|
"column": 28
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3645,
|
|
3666
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 124,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 124,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3645,
|
|
3667
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 124,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 124,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "li",
|
|
"range": [
|
|
3677,
|
|
3679
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 125,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 125,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "label",
|
|
"range": [
|
|
3680,
|
|
3685
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 125,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 125,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3677,
|
|
3685
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 125,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 125,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"name": "label",
|
|
"range": [
|
|
3688,
|
|
3693
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 125,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 125,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3677,
|
|
3693
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 125,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 125,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3677,
|
|
3694
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 125,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 125,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "li",
|
|
"range": [
|
|
3704,
|
|
3706
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 126,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 126,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "check",
|
|
"range": [
|
|
3707,
|
|
3712
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 126,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 126,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3704,
|
|
3712
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 126,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 126,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"name": "check",
|
|
"range": [
|
|
3715,
|
|
3720
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 126,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 126,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3704,
|
|
3720
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 126,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 126,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3704,
|
|
3721
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 126,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 126,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "li",
|
|
"range": [
|
|
3738,
|
|
3740
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3731,
|
|
3741
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 18
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3244,
|
|
3748
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
3213,
|
|
3748
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"kind": "init",
|
|
"method": true,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"range": [
|
|
3198,
|
|
3748
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 5
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": "*\r\n * Creates and returns a checklist item\r\n * @param {Number} chkIndex index of check item\r\n * @param {String} chkValue check item value\r\n * @param {String} labelText check item label text\r\n * @return {Object} li DOM element\r\n ",
|
|
"range": [
|
|
2921,
|
|
3192
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "Property",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "id",
|
|
"range": [
|
|
3757,
|
|
3759
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 130,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 130,
|
|
"column": 6
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "_id",
|
|
"range": [
|
|
3760,
|
|
3763
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 130,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 130,
|
|
"column": 10
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "document",
|
|
"range": [
|
|
3782,
|
|
3790
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "getElementById",
|
|
"range": [
|
|
3791,
|
|
3805
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3782,
|
|
3805
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "_id",
|
|
"range": [
|
|
3806,
|
|
3809
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 42
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3782,
|
|
3810
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3775,
|
|
3811
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 44
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3764,
|
|
3818
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 130,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 132,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
3759,
|
|
3818
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 130,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 132,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"kind": "init",
|
|
"method": true,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"range": [
|
|
3757,
|
|
3818
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 130,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 132,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Property",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "tag",
|
|
"range": [
|
|
3827,
|
|
3830
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 134,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "o",
|
|
"range": [
|
|
3831,
|
|
3832
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 134,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "tagname",
|
|
"range": [
|
|
3834,
|
|
3841
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 134,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 18
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "o",
|
|
"range": [
|
|
3860,
|
|
3861
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 135,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "getElementsByTagName",
|
|
"range": [
|
|
3862,
|
|
3882
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 135,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3860,
|
|
3882
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 135,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "tagname",
|
|
"range": [
|
|
3883,
|
|
3890
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 135,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 45
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3860,
|
|
3891
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 135,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3853,
|
|
3892
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 135,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 47
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3842,
|
|
3899
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 134,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 136,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
3830,
|
|
3899
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 134,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 136,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"kind": "init",
|
|
"method": true,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"range": [
|
|
3827,
|
|
3899
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 134,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 136,
|
|
"column": 5
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
45,
|
|
3902
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 137,
|
|
"column": 1
|
|
}
|
|
},
|
|
"leadingComments": [],
|
|
"trailingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " HTML5 classList API",
|
|
"range": [
|
|
3907,
|
|
3929
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 139,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 139,
|
|
"column": 22
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"range": [
|
|
30,
|
|
3903
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 137,
|
|
"column": 2
|
|
}
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " HTML5 classList API",
|
|
"range": [
|
|
3907,
|
|
3929
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 139,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 139,
|
|
"column": 22
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "supportsClassList",
|
|
"range": [
|
|
3940,
|
|
3957
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 140,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 140,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "document",
|
|
"range": [
|
|
3973,
|
|
3981
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "documentElement",
|
|
"range": [
|
|
3982,
|
|
3997
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3973,
|
|
3997
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "classList",
|
|
"range": [
|
|
3998,
|
|
4007
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3973,
|
|
4007
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3966,
|
|
4008
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 46
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3959,
|
|
4011
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 140,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 1
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
3931,
|
|
4011
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 140,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 1
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " HTML5 classList API",
|
|
"range": [
|
|
3907,
|
|
3929
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 139,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 139,
|
|
"column": 22
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"sourceType": "module",
|
|
"range": [
|
|
30,
|
|
4011
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 1
|
|
}
|
|
},
|
|
"comments": [
|
|
{
|
|
"type": "Block",
|
|
"value": "*\r\n * DOM utilities\r\n ",
|
|
"range": [
|
|
0,
|
|
26
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": "*\r\n * Returns text + text of children of given node\r\n * @param {NodeElement} node\r\n * @return {String}\r\n ",
|
|
"range": [
|
|
54,
|
|
180
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": "*\r\n * Creates an html element with given collection of attributes\r\n * @param {String} tag a string of the html tag to create\r\n * @param {Array} an undetermined number of arrays containing the with 2\r\n * items, the attribute name and its value ['id','myId']\r\n * @return {Object} created element\r\n ",
|
|
"range": [
|
|
404,
|
|
753
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": "*\r\n * Returns a text node with given text\r\n * @param {String} txt\r\n * @return {Object}\r\n ",
|
|
"range": [
|
|
1264,
|
|
1374
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 49,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": "*\r\n * Creates and returns an option element\r\n * @param {String} text option text\r\n * @param {String} value option value\r\n * @param {Boolean} isSel whether option is selected\r\n * @return {Object} option element\r\n ",
|
|
"range": [
|
|
2336,
|
|
2589
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": "*\r\n * Creates and returns a checklist item\r\n * @param {Number} chkIndex index of check item\r\n * @param {String} chkValue check item value\r\n * @param {String} labelText check item label text\r\n * @return {Object} li DOM element\r\n ",
|
|
"range": [
|
|
2921,
|
|
3192
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": " HTML5 classList API",
|
|
"range": [
|
|
3907,
|
|
3929
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 139,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 139,
|
|
"column": 22
|
|
}
|
|
}
|
|
}
|
|
]
|
|
} |