mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-05-15 12:57:03 +02:00
15123 lines
556 KiB
JSON
15123 lines
556 KiB
JSON
{
|
|
"type": "Program",
|
|
"body": [
|
|
{
|
|
"type": "ExportDefaultDeclaration",
|
|
"declaration": {
|
|
"type": "ObjectExpression",
|
|
"properties": [
|
|
{
|
|
"type": "Property",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "isValid",
|
|
"range": [
|
|
53,
|
|
60
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 11
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
61,
|
|
68
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
70,
|
|
76
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 27
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "UnaryExpression",
|
|
"operator": "!",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
92,
|
|
98
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"prefix": true,
|
|
"range": [
|
|
91,
|
|
98
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
115,
|
|
121
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "DMY",
|
|
"raw": "'DMY'",
|
|
"range": [
|
|
124,
|
|
129
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
115,
|
|
129
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
115,
|
|
130
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 27
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
100,
|
|
141
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 9,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
88,
|
|
141
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 9,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
151,
|
|
157
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
160,
|
|
166
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "toUpperCase",
|
|
"range": [
|
|
167,
|
|
178
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
160,
|
|
178
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
160,
|
|
180
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
151,
|
|
180
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
151,
|
|
181
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "!=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
194,
|
|
200
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "length",
|
|
"range": [
|
|
201,
|
|
207
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
194,
|
|
207
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 3,
|
|
"raw": "3",
|
|
"range": [
|
|
211,
|
|
212
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
194,
|
|
212
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
232,
|
|
238
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "DDMMMYYYY",
|
|
"raw": "'DDMMMYYYY'",
|
|
"range": [
|
|
241,
|
|
252
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
232,
|
|
252
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "d",
|
|
"range": [
|
|
276,
|
|
277
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"range": [
|
|
280,
|
|
284
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
285,
|
|
291
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
280,
|
|
291
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
292,
|
|
299
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
301,
|
|
307
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 51
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
280,
|
|
308
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
276,
|
|
308
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 52
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
272,
|
|
309
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
327,
|
|
334
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "d",
|
|
"range": [
|
|
337,
|
|
338
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "getDate",
|
|
"range": [
|
|
339,
|
|
346
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
337,
|
|
346
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
337,
|
|
348
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "/",
|
|
"raw": "'/'",
|
|
"range": [
|
|
350,
|
|
353
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
337,
|
|
353
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "d",
|
|
"range": [
|
|
356,
|
|
357
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "getMonth",
|
|
"range": [
|
|
358,
|
|
366
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
356,
|
|
366
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
356,
|
|
368
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 57
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
369,
|
|
370
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
356,
|
|
370
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
337,
|
|
371
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 60
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "/",
|
|
"raw": "'/'",
|
|
"range": [
|
|
373,
|
|
376
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 65
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
337,
|
|
376
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 65
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "d",
|
|
"range": [
|
|
399,
|
|
400
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "getFullYear",
|
|
"range": [
|
|
401,
|
|
412
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
399,
|
|
412
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
399,
|
|
414
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
337,
|
|
414
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
327,
|
|
414
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
327,
|
|
415
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
433,
|
|
439
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "DMY",
|
|
"raw": "'DMY'",
|
|
"range": [
|
|
442,
|
|
447
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
433,
|
|
447
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
433,
|
|
448
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 31
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
253,
|
|
463
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
229,
|
|
463
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 13
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
214,
|
|
474
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
191,
|
|
474
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "LogicalExpression",
|
|
"operator": "||",
|
|
"left": {
|
|
"type": "LogicalExpression",
|
|
"operator": "||",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
488,
|
|
494
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "indexOf",
|
|
"range": [
|
|
495,
|
|
502
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
488,
|
|
502
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": "M",
|
|
"raw": "'M'",
|
|
"range": [
|
|
503,
|
|
506
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 30
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
488,
|
|
507
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "UnaryExpression",
|
|
"operator": "-",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
513,
|
|
514
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"prefix": true,
|
|
"range": [
|
|
512,
|
|
514
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
488,
|
|
514
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
520,
|
|
526
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "indexOf",
|
|
"range": [
|
|
527,
|
|
534
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
520,
|
|
534
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": "D",
|
|
"raw": "'D'",
|
|
"range": [
|
|
535,
|
|
538
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 62
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
520,
|
|
539
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 63
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "UnaryExpression",
|
|
"operator": "-",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
545,
|
|
546
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 69
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 70
|
|
}
|
|
}
|
|
},
|
|
"prefix": true,
|
|
"range": [
|
|
544,
|
|
546
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 70
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
520,
|
|
546
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 70
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
487,
|
|
547
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
565,
|
|
571
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "indexOf",
|
|
"range": [
|
|
572,
|
|
579
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
565,
|
|
579
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": "Y",
|
|
"raw": "'Y'",
|
|
"range": [
|
|
580,
|
|
583
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 31
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
565,
|
|
584
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "UnaryExpression",
|
|
"operator": "-",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
590,
|
|
591
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"prefix": true,
|
|
"range": [
|
|
589,
|
|
591
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
565,
|
|
591
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
487,
|
|
592
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
608,
|
|
614
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 21,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 21,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "DMY",
|
|
"raw": "'DMY'",
|
|
"range": [
|
|
617,
|
|
622
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 21,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 21,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
608,
|
|
622
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 21,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 21,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
608,
|
|
623
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 21,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 21,
|
|
"column": 27
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
593,
|
|
634
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 22,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
484,
|
|
634
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 22,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "reg1",
|
|
"range": [
|
|
648,
|
|
652
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"range": [
|
|
648,
|
|
652
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "reg2",
|
|
"range": [
|
|
654,
|
|
658
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"range": [
|
|
654,
|
|
658
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 22
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
644,
|
|
659
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 23
|
|
}
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " If the year is first",
|
|
"range": [
|
|
669,
|
|
692
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 31
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "==",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
705,
|
|
711
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "substring",
|
|
"range": [
|
|
712,
|
|
721
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
705,
|
|
721
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
722,
|
|
723
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
725,
|
|
726
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 32
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
705,
|
|
727
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "Y",
|
|
"raw": "'Y'",
|
|
"range": [
|
|
731,
|
|
734
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
705,
|
|
734
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "reg1",
|
|
"range": [
|
|
753,
|
|
757
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^\\d{2}(\\-|\\/|\\.)\\d{1,2}\\1\\d{1,2}$/",
|
|
"regex": {
|
|
"pattern": "^\\d{2}(\\-|\\/|\\.)\\d{1,2}\\1\\d{1,2}$",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
760,
|
|
795
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
753,
|
|
795
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
753,
|
|
796
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 57
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "reg2",
|
|
"range": [
|
|
812,
|
|
816
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 27,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 27,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^\\d{4}(\\-|\\/|\\.)\\d{1,2}\\1\\d{1,2}$/",
|
|
"regex": {
|
|
"pattern": "^\\d{4}(\\-|\\/|\\.)\\d{1,2}\\1\\d{1,2}$",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
819,
|
|
854
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 27,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 27,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
812,
|
|
854
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 27,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 27,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
812,
|
|
855
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 27,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 27,
|
|
"column": 57
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
736,
|
|
866
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "==",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
875,
|
|
881
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "substring",
|
|
"range": [
|
|
882,
|
|
891
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
875,
|
|
891
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
892,
|
|
893
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
895,
|
|
896
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
875,
|
|
897
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "Y",
|
|
"raw": "'Y'",
|
|
"range": [
|
|
901,
|
|
904
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
875,
|
|
904
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "reg1",
|
|
"range": [
|
|
948,
|
|
952
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 29,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 29,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^\\d{1,2}(\\-|\\/|\\.)\\d{2}\\1\\d{1,2}$/",
|
|
"regex": {
|
|
"pattern": "^\\d{1,2}(\\-|\\/|\\.)\\d{2}\\1\\d{1,2}$",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
955,
|
|
990
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 29,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 29,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
948,
|
|
990
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 29,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 29,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
948,
|
|
991
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 29,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 29,
|
|
"column": 57
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " If the year is second",
|
|
"range": [
|
|
908,
|
|
932
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 75
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "reg2",
|
|
"range": [
|
|
1007,
|
|
1011
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 30,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 30,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^\\d{1,2}(\\-|\\/|\\.)\\d{4}\\1\\d{1,2}$/",
|
|
"regex": {
|
|
"pattern": "^\\d{1,2}(\\-|\\/|\\.)\\d{4}\\1\\d{1,2}$",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
1014,
|
|
1049
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 30,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 30,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1007,
|
|
1049
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 30,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 30,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1007,
|
|
1050
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 30,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 30,
|
|
"column": 57
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
906,
|
|
1061
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "reg1",
|
|
"range": [
|
|
1110,
|
|
1114
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^\\d{1,2}(\\-|\\/|\\.)\\d{1,2}\\1\\d{2}$/",
|
|
"regex": {
|
|
"pattern": "^\\d{1,2}(\\-|\\/|\\.)\\d{1,2}\\1\\d{2}$",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
1117,
|
|
1152
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1110,
|
|
1152
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1110,
|
|
1153
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 57
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " The year must be third",
|
|
"range": [
|
|
1069,
|
|
1094
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 31,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 42
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "reg2",
|
|
"range": [
|
|
1169,
|
|
1173
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^\\d{1,2}(\\-|\\/|\\.)\\d{1,2}\\1\\d{4}$/",
|
|
"regex": {
|
|
"pattern": "^\\d{1,2}(\\-|\\/|\\.)\\d{1,2}\\1\\d{4}$",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
1176,
|
|
1211
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1169,
|
|
1211
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1169,
|
|
1212
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 57
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1067,
|
|
1223
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 31,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
872,
|
|
1223
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
702,
|
|
1223
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 9
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " If the year is first",
|
|
"range": [
|
|
669,
|
|
692
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 31
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " If it doesn't conform to the right format (with either a 2 digit year",
|
|
"range": [
|
|
1233,
|
|
1305
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 80
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": " or 4 digit year), fail",
|
|
"range": [
|
|
1315,
|
|
1340
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 33
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "LogicalExpression",
|
|
"operator": "&&",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "reg1",
|
|
"range": [
|
|
1353,
|
|
1357
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "test",
|
|
"range": [
|
|
1358,
|
|
1362
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1353,
|
|
1362
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
1363,
|
|
1370
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 28
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1353,
|
|
1371
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": false,
|
|
"raw": "false",
|
|
"range": [
|
|
1376,
|
|
1381
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1353,
|
|
1381
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "reg2",
|
|
"range": [
|
|
1385,
|
|
1389
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "test",
|
|
"range": [
|
|
1390,
|
|
1394
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1385,
|
|
1394
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
1395,
|
|
1402
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 60
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1385,
|
|
1403
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": false,
|
|
"raw": "false",
|
|
"range": [
|
|
1408,
|
|
1413
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 66
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1385,
|
|
1413
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1353,
|
|
1413
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": false,
|
|
"raw": "false",
|
|
"range": [
|
|
1437,
|
|
1442
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1430,
|
|
1443
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 25
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1415,
|
|
1454
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 73
|
|
},
|
|
"end": {
|
|
"line": 39,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
1350,
|
|
1454
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 39,
|
|
"column": 9
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " If it doesn't conform to the right format (with either a 2 digit year",
|
|
"range": [
|
|
1233,
|
|
1305
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 80
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": " or 4 digit year), fail",
|
|
"range": [
|
|
1315,
|
|
1340
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 33
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " Split into 3 parts based on what the divider was",
|
|
"range": [
|
|
1464,
|
|
1515
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 40,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 40,
|
|
"column": 59
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
1529,
|
|
1534
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
1537,
|
|
1544
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "split",
|
|
"range": [
|
|
1545,
|
|
1550
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1537,
|
|
1550
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "RegExp",
|
|
"range": [
|
|
1551,
|
|
1557
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "$1",
|
|
"range": [
|
|
1558,
|
|
1560
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1551,
|
|
1560
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 43
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1537,
|
|
1561
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1529,
|
|
1561
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 44
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
1525,
|
|
1562
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 45
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " Split into 3 parts based on what the divider was",
|
|
"range": [
|
|
1464,
|
|
1515
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 40,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 40,
|
|
"column": 59
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "mm",
|
|
"range": [
|
|
1576,
|
|
1578
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"range": [
|
|
1576,
|
|
1578
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "dd",
|
|
"range": [
|
|
1580,
|
|
1582
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"range": [
|
|
1580,
|
|
1582
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
1584,
|
|
1586
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"range": [
|
|
1584,
|
|
1586
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 22
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
1572,
|
|
1587
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 23
|
|
}
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " Check to see if the 3 parts end up making a valid date",
|
|
"range": [
|
|
1597,
|
|
1654
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 65
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
1667,
|
|
1673
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "substring",
|
|
"range": [
|
|
1674,
|
|
1683
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1667,
|
|
1683
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
1684,
|
|
1685
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
1687,
|
|
1688
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 32
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1667,
|
|
1689
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "M",
|
|
"raw": "'M'",
|
|
"range": [
|
|
1694,
|
|
1697
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1667,
|
|
1697
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mm",
|
|
"range": [
|
|
1713,
|
|
1715
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 45,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
1718,
|
|
1723
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 45,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
1724,
|
|
1725
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 45,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1718,
|
|
1726
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 45,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1713,
|
|
1726
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 45,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1713,
|
|
1727
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 45,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1698,
|
|
1738
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 46,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
1747,
|
|
1753
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 46,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "substring",
|
|
"range": [
|
|
1754,
|
|
1763
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 46,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1747,
|
|
1763
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 46,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
1764,
|
|
1765
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 46,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
1767,
|
|
1768
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 46,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1747,
|
|
1769
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 46,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "M",
|
|
"raw": "'M'",
|
|
"range": [
|
|
1774,
|
|
1777
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 46,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1747,
|
|
1777
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 46,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mm",
|
|
"range": [
|
|
1793,
|
|
1795
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 47,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 47,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
1798,
|
|
1803
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 47,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 47,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
1804,
|
|
1805
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 47,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 47,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1798,
|
|
1806
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 47,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 47,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1793,
|
|
1806
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 47,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 47,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1793,
|
|
1807
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 47,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 47,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1778,
|
|
1818
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 48,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mm",
|
|
"range": [
|
|
1839,
|
|
1841
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 49,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 49,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
1844,
|
|
1849
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 49,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 49,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
1850,
|
|
1851
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 49,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 49,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1844,
|
|
1852
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 49,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 49,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1839,
|
|
1852
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 49,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 49,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1839,
|
|
1853
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 49,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 49,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1824,
|
|
1864
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 48,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1744,
|
|
1864
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1664,
|
|
1864
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 9
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " Check to see if the 3 parts end up making a valid date",
|
|
"range": [
|
|
1597,
|
|
1654
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 65
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
1877,
|
|
1883
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "substring",
|
|
"range": [
|
|
1884,
|
|
1893
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1877,
|
|
1893
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
1894,
|
|
1895
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
1897,
|
|
1898
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 32
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1877,
|
|
1899
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "D",
|
|
"raw": "'D'",
|
|
"range": [
|
|
1904,
|
|
1907
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1877,
|
|
1907
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "dd",
|
|
"range": [
|
|
1923,
|
|
1925
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
1928,
|
|
1933
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
1934,
|
|
1935
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1928,
|
|
1936
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1923,
|
|
1936
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1923,
|
|
1937
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1908,
|
|
1948
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
1957,
|
|
1963
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "substring",
|
|
"range": [
|
|
1964,
|
|
1973
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1957,
|
|
1973
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
1974,
|
|
1975
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
1977,
|
|
1978
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1957,
|
|
1979
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "D",
|
|
"raw": "'D'",
|
|
"range": [
|
|
1984,
|
|
1987
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1957,
|
|
1987
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "dd",
|
|
"range": [
|
|
2003,
|
|
2005
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
2008,
|
|
2013
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
2014,
|
|
2015
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2008,
|
|
2016
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2003,
|
|
2016
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2003,
|
|
2017
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1988,
|
|
2028
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 55,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "dd",
|
|
"range": [
|
|
2049,
|
|
2051
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 56,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 56,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
2054,
|
|
2059
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 56,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 56,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
2060,
|
|
2061
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 56,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 56,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2054,
|
|
2062
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 56,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 56,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2049,
|
|
2062
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 56,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 56,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2049,
|
|
2063
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 56,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 56,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2034,
|
|
2074
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 55,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 57,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1954,
|
|
2074
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 57,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1874,
|
|
2074
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 57,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
2087,
|
|
2093
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "substring",
|
|
"range": [
|
|
2094,
|
|
2103
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2087,
|
|
2103
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
2104,
|
|
2105
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
2107,
|
|
2108
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 32
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2087,
|
|
2109
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "Y",
|
|
"raw": "'Y'",
|
|
"range": [
|
|
2114,
|
|
2117
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2087,
|
|
2117
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
2133,
|
|
2135
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 59,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 59,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
2138,
|
|
2143
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 59,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 59,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
2144,
|
|
2145
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 59,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 59,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2138,
|
|
2146
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 59,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 59,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2133,
|
|
2146
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 59,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 59,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2133,
|
|
2147
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 59,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 59,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2118,
|
|
2158
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
2167,
|
|
2173
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "substring",
|
|
"range": [
|
|
2174,
|
|
2183
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2167,
|
|
2183
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
2184,
|
|
2185
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
2187,
|
|
2188
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2167,
|
|
2189
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "Y",
|
|
"raw": "'Y'",
|
|
"range": [
|
|
2194,
|
|
2197
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2167,
|
|
2197
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
2213,
|
|
2215
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
2218,
|
|
2223
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
2224,
|
|
2225
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2218,
|
|
2226
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2213,
|
|
2226
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2213,
|
|
2227
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2198,
|
|
2238
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 62,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
2259,
|
|
2261
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
2264,
|
|
2269
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
2270,
|
|
2271
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2264,
|
|
2272
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2259,
|
|
2272
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2259,
|
|
2273
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2244,
|
|
2284
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2164,
|
|
2284
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2084,
|
|
2284
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "<=",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "parseInt",
|
|
"range": [
|
|
2297,
|
|
2305
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
2306,
|
|
2308
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 10,
|
|
"raw": "10",
|
|
"range": [
|
|
2310,
|
|
2312
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2297,
|
|
2313
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 50,
|
|
"raw": "50",
|
|
"range": [
|
|
2317,
|
|
2319
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2297,
|
|
2319
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
2335,
|
|
2337
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "parseInt",
|
|
"range": [
|
|
2341,
|
|
2349
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
2350,
|
|
2352
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 10,
|
|
"raw": "10",
|
|
"range": [
|
|
2354,
|
|
2356
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 33
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2341,
|
|
2357
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 2000,
|
|
"raw": "2000",
|
|
"range": [
|
|
2360,
|
|
2364
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2341,
|
|
2364
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "toString",
|
|
"range": [
|
|
2366,
|
|
2374
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2340,
|
|
2374
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
2340,
|
|
2376
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2335,
|
|
2376
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2335,
|
|
2377
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 54
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2320,
|
|
2388
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
2294,
|
|
2388
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "<=",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "parseInt",
|
|
"range": [
|
|
2401,
|
|
2409
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
2410,
|
|
2412
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 10,
|
|
"raw": "10",
|
|
"range": [
|
|
2414,
|
|
2416
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2401,
|
|
2417
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 99,
|
|
"raw": "99",
|
|
"range": [
|
|
2421,
|
|
2423
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2401,
|
|
2423
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
2439,
|
|
2441
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "parseInt",
|
|
"range": [
|
|
2445,
|
|
2453
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
2454,
|
|
2456
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 10,
|
|
"raw": "10",
|
|
"range": [
|
|
2458,
|
|
2460
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 33
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2445,
|
|
2461
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1900,
|
|
"raw": "1900",
|
|
"range": [
|
|
2464,
|
|
2468
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2445,
|
|
2468
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "toString",
|
|
"range": [
|
|
2470,
|
|
2478
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2444,
|
|
2478
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
2444,
|
|
2480
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2439,
|
|
2480
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2439,
|
|
2481
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 54
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2424,
|
|
2492
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 70,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
2398,
|
|
2492
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 70,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "dt",
|
|
"range": [
|
|
2506,
|
|
2508
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 71,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "NewExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "Date",
|
|
"range": [
|
|
2515,
|
|
2519
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 71,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "parseInt",
|
|
"range": [
|
|
2534,
|
|
2542
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
2543,
|
|
2545
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 10,
|
|
"raw": "10",
|
|
"range": [
|
|
2547,
|
|
2549
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 27
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2534,
|
|
2550
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "BinaryExpression",
|
|
"operator": "-",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "parseInt",
|
|
"range": [
|
|
2552,
|
|
2560
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "mm",
|
|
"range": [
|
|
2561,
|
|
2563
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 10,
|
|
"raw": "10",
|
|
"range": [
|
|
2565,
|
|
2567
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 45
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2552,
|
|
2568
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
2569,
|
|
2570
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2552,
|
|
2570
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "parseInt",
|
|
"range": [
|
|
2572,
|
|
2580
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "dd",
|
|
"range": [
|
|
2581,
|
|
2583
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 10,
|
|
"raw": "10",
|
|
"range": [
|
|
2585,
|
|
2587
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 63
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 65
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2572,
|
|
2588
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 66
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
2603,
|
|
2604
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 73,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 73,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
2606,
|
|
2607
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 73,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 73,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
2609,
|
|
2610
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 73,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 73,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
2612,
|
|
2613
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 73,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 73,
|
|
"column": 22
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2511,
|
|
2614
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 73,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2506,
|
|
2614
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 73,
|
|
"column": 23
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
2502,
|
|
2615
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 73,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "!=",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "parseInt",
|
|
"range": [
|
|
2628,
|
|
2636
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "dd",
|
|
"range": [
|
|
2637,
|
|
2639
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 10,
|
|
"raw": "10",
|
|
"range": [
|
|
2641,
|
|
2643
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2628,
|
|
2644
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "dt",
|
|
"range": [
|
|
2648,
|
|
2650
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "getDate",
|
|
"range": [
|
|
2651,
|
|
2658
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2648,
|
|
2658
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
2648,
|
|
2660
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2628,
|
|
2660
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": false,
|
|
"raw": "false",
|
|
"range": [
|
|
2683,
|
|
2688
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 75,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2676,
|
|
2689
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 75,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 25
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2661,
|
|
2700
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
2625,
|
|
2700
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "!=",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": "-",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "parseInt",
|
|
"range": [
|
|
2713,
|
|
2721
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "mm",
|
|
"range": [
|
|
2722,
|
|
2724
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 10,
|
|
"raw": "10",
|
|
"range": [
|
|
2726,
|
|
2728
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2713,
|
|
2729
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
2730,
|
|
2731
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2713,
|
|
2731
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "dt",
|
|
"range": [
|
|
2735,
|
|
2737
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "getMonth",
|
|
"range": [
|
|
2738,
|
|
2746
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2735,
|
|
2746
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
2735,
|
|
2748
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2713,
|
|
2748
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": false,
|
|
"raw": "false",
|
|
"range": [
|
|
2771,
|
|
2776
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2764,
|
|
2777
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 25
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2749,
|
|
2788
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
2710,
|
|
2788
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": true,
|
|
"raw": "true",
|
|
"range": [
|
|
2805,
|
|
2809
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2798,
|
|
2810
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 20
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
77,
|
|
2817
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 81,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
60,
|
|
2817
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 81,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"kind": "init",
|
|
"method": true,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"range": [
|
|
53,
|
|
2817
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 81,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Property",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
2824,
|
|
2830
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
2831,
|
|
2838
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "formatStr",
|
|
"range": [
|
|
2840,
|
|
2849
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 29
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "UnaryExpression",
|
|
"operator": "!",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "formatStr",
|
|
"range": [
|
|
2866,
|
|
2875
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"prefix": true,
|
|
"range": [
|
|
2865,
|
|
2875
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "formatStr",
|
|
"range": [
|
|
2891,
|
|
2900
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "DMY",
|
|
"raw": "'DMY'",
|
|
"range": [
|
|
2903,
|
|
2908
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2891,
|
|
2908
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2891,
|
|
2909
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 30
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2876,
|
|
2920
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
2862,
|
|
2920
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "LogicalExpression",
|
|
"operator": "||",
|
|
"left": {
|
|
"type": "UnaryExpression",
|
|
"operator": "!",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
2934,
|
|
2941
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"prefix": true,
|
|
"range": [
|
|
2933,
|
|
2941
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
2945,
|
|
2952
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "",
|
|
"raw": "''",
|
|
"range": [
|
|
2957,
|
|
2959
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2945,
|
|
2959
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2933,
|
|
2959
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "NewExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "Date",
|
|
"range": [
|
|
2986,
|
|
2990
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": 1001,
|
|
"raw": "1001",
|
|
"range": [
|
|
2991,
|
|
2995
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
2997,
|
|
2998
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
3000,
|
|
3001
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 38
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2982,
|
|
3002
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2975,
|
|
3003
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 40
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2960,
|
|
3014
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 88,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
2930,
|
|
3014
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 88,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "oDate",
|
|
"range": [
|
|
3028,
|
|
3033
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"range": [
|
|
3028,
|
|
3033
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 17
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
3024,
|
|
3034
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3048,
|
|
3053
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"range": [
|
|
3048,
|
|
3053
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 17
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
3044,
|
|
3054
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "SwitchStatement",
|
|
"discriminant": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "formatStr",
|
|
"range": [
|
|
3073,
|
|
3082
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "toUpperCase",
|
|
"range": [
|
|
3083,
|
|
3094
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3073,
|
|
3094
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
3073,
|
|
3096
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"cases": [
|
|
{
|
|
"type": "SwitchCase",
|
|
"test": {
|
|
"type": "Literal",
|
|
"value": "DDMMMYYYY",
|
|
"raw": "'DDMMMYYYY'",
|
|
"range": [
|
|
3117,
|
|
3128
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 93,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 93,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
"consequent": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3147,
|
|
3152
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
3155,
|
|
3162
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "replace",
|
|
"range": [
|
|
3163,
|
|
3170
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3155,
|
|
3170
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/[- \\/.]/g",
|
|
"regex": {
|
|
"pattern": "[- \\/.]",
|
|
"flags": "g"
|
|
},
|
|
"range": [
|
|
3171,
|
|
3181
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": " ",
|
|
"raw": "' '",
|
|
"range": [
|
|
3182,
|
|
3185
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 54
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3155,
|
|
3186
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "split",
|
|
"range": [
|
|
3187,
|
|
3192
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 56
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3155,
|
|
3192
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": " ",
|
|
"raw": "' '",
|
|
"range": [
|
|
3193,
|
|
3196
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 65
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3155,
|
|
3197
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 66
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3147,
|
|
3197
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 66
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3147,
|
|
3198
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 67
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "oDate",
|
|
"range": [
|
|
3216,
|
|
3221
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "NewExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "Date",
|
|
"range": [
|
|
3228,
|
|
3232
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "y2kDate",
|
|
"range": [
|
|
3233,
|
|
3240
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3241,
|
|
3246
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
3247,
|
|
3248
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3241,
|
|
3249
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 49
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3233,
|
|
3250
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "BinaryExpression",
|
|
"operator": "-",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "mmm2mm",
|
|
"range": [
|
|
3251,
|
|
3257
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 57
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3258,
|
|
3263
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 63
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
3264,
|
|
3265
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 64
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 65
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3258,
|
|
3266
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 66
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3251,
|
|
3267
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 67
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
3268,
|
|
3269
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 69
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3251,
|
|
3269
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 69
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3270,
|
|
3275
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 70
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 75
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
3276,
|
|
3277
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 76
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 77
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3270,
|
|
3278
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 70
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 78
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3224,
|
|
3279
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 79
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3216,
|
|
3279
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 79
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3216,
|
|
3280
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 80
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "BreakStatement",
|
|
"label": null,
|
|
"range": [
|
|
3294,
|
|
3300
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 18
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3112,
|
|
3300
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 93,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "SwitchCase",
|
|
"test": {
|
|
"type": "Literal",
|
|
"value": "DMY",
|
|
"raw": "'DMY'",
|
|
"range": [
|
|
3319,
|
|
3324
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 97,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"consequent": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3386,
|
|
3391
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 99,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
3394,
|
|
3401
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 99,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "replace",
|
|
"range": [
|
|
3402,
|
|
3409
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 99,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3394,
|
|
3409
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 99,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^(0?[1-9]|[12][0-9]|3[01])([- \\/.])(0?[1-9]|1[012])([- \\/.])((\\d\\d)?\\d\\d)$/",
|
|
"regex": {
|
|
"pattern": "^(0?[1-9]|[12][0-9]|3[01])([- \\/.])(0?[1-9]|1[012])([- \\/.])((\\d\\d)?\\d\\d)$",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
3432,
|
|
3508
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 100,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 96
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "$1 $3 $5",
|
|
"raw": "'$1 $3 $5'",
|
|
"range": [
|
|
3509,
|
|
3519
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 100,
|
|
"column": 97
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 107
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3394,
|
|
3520
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 108
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "split",
|
|
"range": [
|
|
3521,
|
|
3526
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 100,
|
|
"column": 109
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 114
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3394,
|
|
3526
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 114
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": " ",
|
|
"raw": "' '",
|
|
"range": [
|
|
3527,
|
|
3530
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 100,
|
|
"column": 115
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 118
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3394,
|
|
3531
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 119
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3386,
|
|
3531
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 119
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3386,
|
|
3532
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 120
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:start ",
|
|
"range": [
|
|
3343,
|
|
3368
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 98,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 98,
|
|
"column": 41
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "oDate",
|
|
"range": [
|
|
3550,
|
|
3555
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "NewExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "Date",
|
|
"range": [
|
|
3562,
|
|
3566
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "y2kDate",
|
|
"range": [
|
|
3567,
|
|
3574
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3575,
|
|
3580
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
3581,
|
|
3582
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3575,
|
|
3583
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 49
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3567,
|
|
3584
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "BinaryExpression",
|
|
"operator": "-",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3585,
|
|
3590
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
3591,
|
|
3592
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 57
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3585,
|
|
3593
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
3594,
|
|
3595
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3585,
|
|
3595
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3596,
|
|
3601
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 67
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
3602,
|
|
3603
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 69
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3596,
|
|
3604
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 70
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3558,
|
|
3605
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3550,
|
|
3605
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3550,
|
|
3606
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 72
|
|
}
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
3624,
|
|
3647
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "BreakStatement",
|
|
"label": null,
|
|
"range": [
|
|
3661,
|
|
3667
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 103,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 103,
|
|
"column": 18
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
3624,
|
|
3647
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
3314,
|
|
3667
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 103,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "SwitchCase",
|
|
"test": {
|
|
"type": "Literal",
|
|
"value": "MDY",
|
|
"raw": "'MDY'",
|
|
"range": [
|
|
3686,
|
|
3691
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 104,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"consequent": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3753,
|
|
3758
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
3761,
|
|
3768
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "replace",
|
|
"range": [
|
|
3769,
|
|
3776
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3761,
|
|
3776
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^(0?[1-9]|1[012])([- \\/.])(0?[1-9]|[12][0-9]|3[01])([- \\/.])((\\d\\d)?\\d\\d)$/",
|
|
"regex": {
|
|
"pattern": "^(0?[1-9]|1[012])([- \\/.])(0?[1-9]|[12][0-9]|3[01])([- \\/.])((\\d\\d)?\\d\\d)$",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
3799,
|
|
3875
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 96
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "$1 $3 $5",
|
|
"raw": "'$1 $3 $5'",
|
|
"range": [
|
|
3876,
|
|
3886
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 97
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 107
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3761,
|
|
3887
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 108
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "split",
|
|
"range": [
|
|
3888,
|
|
3893
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 109
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 114
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3761,
|
|
3893
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 114
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": " ",
|
|
"raw": "' '",
|
|
"range": [
|
|
3894,
|
|
3897
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 115
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 118
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3761,
|
|
3898
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 119
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3753,
|
|
3898
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 119
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3753,
|
|
3899
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 120
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:start ",
|
|
"range": [
|
|
3710,
|
|
3735
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 41
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "oDate",
|
|
"range": [
|
|
3917,
|
|
3922
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "NewExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "Date",
|
|
"range": [
|
|
3929,
|
|
3933
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "y2kDate",
|
|
"range": [
|
|
3934,
|
|
3941
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3942,
|
|
3947
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
3948,
|
|
3949
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3942,
|
|
3950
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 49
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3934,
|
|
3951
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "BinaryExpression",
|
|
"operator": "-",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3952,
|
|
3957
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
3958,
|
|
3959
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 57
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3952,
|
|
3960
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
3961,
|
|
3962
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3952,
|
|
3962
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3963,
|
|
3968
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 67
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
3969,
|
|
3970
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 69
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3963,
|
|
3971
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 70
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3925,
|
|
3972
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3917,
|
|
3972
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3917,
|
|
3973
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 72
|
|
}
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
3991,
|
|
4014
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "BreakStatement",
|
|
"label": null,
|
|
"range": [
|
|
4028,
|
|
4034
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 18
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
3991,
|
|
4014
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
3681,
|
|
4034
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "SwitchCase",
|
|
"test": {
|
|
"type": "Literal",
|
|
"value": "YMD",
|
|
"raw": "'YMD'",
|
|
"range": [
|
|
4053,
|
|
4058
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"consequent": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
4120,
|
|
4125
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
4128,
|
|
4135
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "replace",
|
|
"range": [
|
|
4136,
|
|
4143
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4128,
|
|
4143
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^((\\d\\d)?\\d\\d)([- \\/.])(0?[1-9]|1[012])([- \\/.])(0?[1-9]|[12][0-9]|3[01])$/",
|
|
"regex": {
|
|
"pattern": "^((\\d\\d)?\\d\\d)([- \\/.])(0?[1-9]|1[012])([- \\/.])(0?[1-9]|[12][0-9]|3[01])$",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
4144,
|
|
4220
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 116
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "$1 $4 $6",
|
|
"raw": "'$1 $4 $6'",
|
|
"range": [
|
|
4221,
|
|
4231
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 117
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 127
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4128,
|
|
4232
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 128
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "split",
|
|
"range": [
|
|
4233,
|
|
4238
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 129
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 134
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4128,
|
|
4238
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 134
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": " ",
|
|
"raw": "' '",
|
|
"range": [
|
|
4239,
|
|
4242
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 135
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 138
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4128,
|
|
4243
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 139
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4120,
|
|
4243
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 139
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4120,
|
|
4244
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 140
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:start ",
|
|
"range": [
|
|
4077,
|
|
4102
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 41
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "oDate",
|
|
"range": [
|
|
4262,
|
|
4267
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "NewExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "Date",
|
|
"range": [
|
|
4274,
|
|
4278
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "y2kDate",
|
|
"range": [
|
|
4279,
|
|
4286
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
4287,
|
|
4292
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
4293,
|
|
4294
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4287,
|
|
4295
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 49
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4279,
|
|
4296
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "BinaryExpression",
|
|
"operator": "-",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
4297,
|
|
4302
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
4303,
|
|
4304
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 57
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4297,
|
|
4305
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
4306,
|
|
4307
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4297,
|
|
4307
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
4308,
|
|
4313
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 67
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
4314,
|
|
4315
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 69
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4308,
|
|
4316
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 70
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4270,
|
|
4317
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4262,
|
|
4317
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4262,
|
|
4318
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 72
|
|
}
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
4336,
|
|
4359
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 115,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "BreakStatement",
|
|
"label": null,
|
|
"range": [
|
|
4373,
|
|
4379
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 116,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 116,
|
|
"column": 18
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
4336,
|
|
4359
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 115,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
4048,
|
|
4379
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 116,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "SwitchCase",
|
|
"test": null,
|
|
"consequent": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
4494,
|
|
4499
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
4502,
|
|
4509
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "replace",
|
|
"range": [
|
|
4510,
|
|
4517
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4502,
|
|
4517
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^(0?[1-9]|[12][0-9]|3[01])([- \\/.])(0?[1-9]|1[012])([- \\/.])((\\d\\d)?\\d\\d)$/",
|
|
"regex": {
|
|
"pattern": "^(0?[1-9]|[12][0-9]|3[01])([- \\/.])(0?[1-9]|1[012])([- \\/.])((\\d\\d)?\\d\\d)$",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
4518,
|
|
4594
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 116
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "$1 $3 $5",
|
|
"raw": "'$1 $3 $5'",
|
|
"range": [
|
|
4595,
|
|
4605
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 117
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 127
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4502,
|
|
4606
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 128
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "split",
|
|
"range": [
|
|
4607,
|
|
4612
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 129
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 134
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4502,
|
|
4612
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 134
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": " ",
|
|
"raw": "' '",
|
|
"range": [
|
|
4613,
|
|
4616
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 135
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 138
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4502,
|
|
4617
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 139
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4494,
|
|
4617
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 139
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4494,
|
|
4618
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 140
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": "in case format is not correct",
|
|
"range": [
|
|
4402,
|
|
4433
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:start ",
|
|
"range": [
|
|
4451,
|
|
4476
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 41
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "oDate",
|
|
"range": [
|
|
4636,
|
|
4641
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "NewExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "Date",
|
|
"range": [
|
|
4648,
|
|
4652
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "y2kDate",
|
|
"range": [
|
|
4653,
|
|
4660
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
4661,
|
|
4666
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
4667,
|
|
4668
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4661,
|
|
4669
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 49
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4653,
|
|
4670
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "BinaryExpression",
|
|
"operator": "-",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
4671,
|
|
4676
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
4677,
|
|
4678
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 57
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4671,
|
|
4679
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
4680,
|
|
4681
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4671,
|
|
4681
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
4682,
|
|
4687
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 67
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
4688,
|
|
4689
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 69
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4682,
|
|
4690
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 70
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4644,
|
|
4691
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4636,
|
|
4691
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4636,
|
|
4692
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 72
|
|
}
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
4710,
|
|
4733
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 121,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 121,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "BreakStatement",
|
|
"label": null,
|
|
"range": [
|
|
4747,
|
|
4753
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 122,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 122,
|
|
"column": 18
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
4710,
|
|
4733
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 121,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 121,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
4393,
|
|
4753
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 122,
|
|
"column": 18
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3066,
|
|
4764
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 123,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "oDate",
|
|
"range": [
|
|
4781,
|
|
4786
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 124,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 124,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4774,
|
|
4787
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 124,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 124,
|
|
"column": 21
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2851,
|
|
4794
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 125,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
2830,
|
|
4794
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 125,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"kind": "init",
|
|
"method": true,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"range": [
|
|
2824,
|
|
4794
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 125,
|
|
"column": 5
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
46,
|
|
4797
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 126,
|
|
"column": 1
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": "*\r\n * Date utilities\r\n ",
|
|
"range": [
|
|
0,
|
|
27
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": []
|
|
},
|
|
"range": [
|
|
31,
|
|
4798
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 126,
|
|
"column": 2
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": "*\r\n * Date utilities\r\n ",
|
|
"range": [
|
|
0,
|
|
27
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "y2kDate",
|
|
"range": [
|
|
4811,
|
|
4818
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "yr",
|
|
"range": [
|
|
4819,
|
|
4821
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 19
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "yr",
|
|
"range": [
|
|
4832,
|
|
4834
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"name": "undefined",
|
|
"range": [
|
|
4839,
|
|
4848
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4832,
|
|
4848
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
4867,
|
|
4868
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 130,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 130,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4860,
|
|
4869
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 130,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 130,
|
|
"column": 17
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4849,
|
|
4876
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
4829,
|
|
4876
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": ">",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "yr",
|
|
"range": [
|
|
4885,
|
|
4887
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 132,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 132,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "length",
|
|
"range": [
|
|
4888,
|
|
4894
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 132,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 132,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4885,
|
|
4894
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 132,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 132,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
4895,
|
|
4896
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 132,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 132,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4885,
|
|
4896
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 132,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 132,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "yr",
|
|
"range": [
|
|
4915,
|
|
4917
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4908,
|
|
4918
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 18
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4897,
|
|
4925
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 132,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
4882,
|
|
4925
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 132,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "y",
|
|
"range": [
|
|
4935,
|
|
4936
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 135,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"range": [
|
|
4935,
|
|
4936
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 135,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 9
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
4931,
|
|
4937
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 135,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 10
|
|
}
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": ">50 belong to 1900",
|
|
"range": [
|
|
4943,
|
|
4963
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 136,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 136,
|
|
"column": 24
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "LogicalExpression",
|
|
"operator": "&&",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": "<=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "yr",
|
|
"range": [
|
|
4972,
|
|
4974
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 137,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 99,
|
|
"raw": "99",
|
|
"range": [
|
|
4978,
|
|
4980
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 137,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4972,
|
|
4980
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 137,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": ">",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "yr",
|
|
"range": [
|
|
4984,
|
|
4986
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 137,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 50,
|
|
"raw": "50",
|
|
"range": [
|
|
4987,
|
|
4989
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 137,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4984,
|
|
4989
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 137,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4972,
|
|
4989
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 137,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "y",
|
|
"range": [
|
|
5001,
|
|
5002
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 138,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 138,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "Literal",
|
|
"value": "19",
|
|
"raw": "'19'",
|
|
"range": [
|
|
5005,
|
|
5009
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 138,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 138,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"name": "yr",
|
|
"range": [
|
|
5012,
|
|
5014
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 138,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 138,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5005,
|
|
5014
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 138,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 138,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5001,
|
|
5014
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 138,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 138,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5001,
|
|
5015
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 138,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 138,
|
|
"column": 22
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4990,
|
|
5022
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 139,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
4969,
|
|
5022
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 139,
|
|
"column": 5
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": ">50 belong to 1900",
|
|
"range": [
|
|
4943,
|
|
4963
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 136,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 136,
|
|
"column": 24
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": "<50 belong to 2000",
|
|
"range": [
|
|
5028,
|
|
5048
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 140,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 140,
|
|
"column": 24
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "LogicalExpression",
|
|
"operator": "||",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": "<",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "yr",
|
|
"range": [
|
|
5057,
|
|
5059
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 50,
|
|
"raw": "50",
|
|
"range": [
|
|
5060,
|
|
5062
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5057,
|
|
5062
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "yr",
|
|
"range": [
|
|
5066,
|
|
5068
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "00",
|
|
"raw": "'00'",
|
|
"range": [
|
|
5073,
|
|
5077
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5066,
|
|
5077
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5057,
|
|
5077
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "y",
|
|
"range": [
|
|
5089,
|
|
5090
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "Literal",
|
|
"value": "20",
|
|
"raw": "'20'",
|
|
"range": [
|
|
5093,
|
|
5097
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"name": "yr",
|
|
"range": [
|
|
5100,
|
|
5102
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5093,
|
|
5102
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5089,
|
|
5102
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5089,
|
|
5103
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 22
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
5078,
|
|
5110
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
5054,
|
|
5110
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 5
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": "<50 belong to 2000",
|
|
"range": [
|
|
5028,
|
|
5048
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 140,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 140,
|
|
"column": 24
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "y",
|
|
"range": [
|
|
5123,
|
|
5124
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 144,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 144,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5116,
|
|
5125
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 144,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 144,
|
|
"column": 13
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4822,
|
|
5128
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 1
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
4802,
|
|
5128
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 1
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "mmm2mm",
|
|
"range": [
|
|
5141,
|
|
5147
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 147,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 147,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "mmm",
|
|
"range": [
|
|
5148,
|
|
5151
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 147,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 147,
|
|
"column": 19
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mmm",
|
|
"range": [
|
|
5162,
|
|
5165
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 148,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 148,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"name": "undefined",
|
|
"range": [
|
|
5170,
|
|
5179
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 148,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 148,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5162,
|
|
5179
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 148,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 148,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
5198,
|
|
5199
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 149,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 149,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5191,
|
|
5200
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 149,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 149,
|
|
"column": 17
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
5180,
|
|
5207
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 148,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 150,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
5159,
|
|
5207
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 148,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 150,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "mondigit",
|
|
"range": [
|
|
5217,
|
|
5225
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 151,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 151,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"range": [
|
|
5217,
|
|
5225
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 151,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 151,
|
|
"column": 16
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
5213,
|
|
5226
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 151,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 151,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "MONTH_NAMES",
|
|
"range": [
|
|
5236,
|
|
5247
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 152,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 152,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "ArrayExpression",
|
|
"elements": [
|
|
{
|
|
"type": "Literal",
|
|
"value": "january",
|
|
"raw": "'january'",
|
|
"range": [
|
|
5261,
|
|
5270
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 153,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 153,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "february",
|
|
"raw": "'february'",
|
|
"range": [
|
|
5271,
|
|
5281
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 153,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 153,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "march",
|
|
"raw": "'march'",
|
|
"range": [
|
|
5282,
|
|
5289
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 153,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 153,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "april",
|
|
"raw": "'april'",
|
|
"range": [
|
|
5290,
|
|
5297
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 153,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 153,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "may",
|
|
"raw": "'may'",
|
|
"range": [
|
|
5298,
|
|
5303
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 153,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 153,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "june",
|
|
"raw": "'june'",
|
|
"range": [
|
|
5304,
|
|
5310
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 153,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 153,
|
|
"column": 57
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "july",
|
|
"raw": "'july'",
|
|
"range": [
|
|
5311,
|
|
5317
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 153,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 153,
|
|
"column": 64
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "august",
|
|
"raw": "'august'",
|
|
"range": [
|
|
5328,
|
|
5336
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 154,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 154,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "september",
|
|
"raw": "'september'",
|
|
"range": [
|
|
5337,
|
|
5348
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 154,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 154,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "october",
|
|
"raw": "'october'",
|
|
"range": [
|
|
5349,
|
|
5358
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 154,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 154,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "november",
|
|
"raw": "'november'",
|
|
"range": [
|
|
5359,
|
|
5369
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 154,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 154,
|
|
"column": 49
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "december",
|
|
"raw": "'december'",
|
|
"range": [
|
|
5370,
|
|
5380
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 154,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 154,
|
|
"column": 60
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "jan",
|
|
"raw": "'jan'",
|
|
"range": [
|
|
5391,
|
|
5396
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "feb",
|
|
"raw": "'feb'",
|
|
"range": [
|
|
5397,
|
|
5402
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "mar",
|
|
"raw": "'mar'",
|
|
"range": [
|
|
5403,
|
|
5408
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "apr",
|
|
"raw": "'apr'",
|
|
"range": [
|
|
5409,
|
|
5414
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "may",
|
|
"raw": "'may'",
|
|
"range": [
|
|
5415,
|
|
5420
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "jun",
|
|
"raw": "'jun'",
|
|
"range": [
|
|
5421,
|
|
5426
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "jul",
|
|
"raw": "'jul'",
|
|
"range": [
|
|
5427,
|
|
5432
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 49
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "aug",
|
|
"raw": "'aug'",
|
|
"range": [
|
|
5433,
|
|
5438
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "sep",
|
|
"raw": "'sep'",
|
|
"range": [
|
|
5439,
|
|
5444
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 56
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "oct",
|
|
"raw": "'oct'",
|
|
"range": [
|
|
5445,
|
|
5450
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 67
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "nov",
|
|
"raw": "'nov'",
|
|
"range": [
|
|
5461,
|
|
5466
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "dec",
|
|
"raw": "'dec'",
|
|
"range": [
|
|
5467,
|
|
5472
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 19
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
5250,
|
|
5479
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 152,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 157,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5236,
|
|
5479
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 152,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 157,
|
|
"column": 5
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
5232,
|
|
5480
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 152,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 157,
|
|
"column": 6
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ForStatement",
|
|
"init": {
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "m_i",
|
|
"range": [
|
|
5494,
|
|
5497
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
5498,
|
|
5499
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5494,
|
|
5499
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 17
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
5490,
|
|
5499
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "<",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "m_i",
|
|
"range": [
|
|
5501,
|
|
5504
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "MONTH_NAMES",
|
|
"range": [
|
|
5507,
|
|
5518
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "length",
|
|
"range": [
|
|
5519,
|
|
5525
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5507,
|
|
5525
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5501,
|
|
5525
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
"update": {
|
|
"type": "UpdateExpression",
|
|
"operator": "++",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "m_i",
|
|
"range": [
|
|
5527,
|
|
5530
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"prefix": false,
|
|
"range": [
|
|
5527,
|
|
5532
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "month_name",
|
|
"range": [
|
|
5552,
|
|
5562
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "MONTH_NAMES",
|
|
"range": [
|
|
5565,
|
|
5576
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "m_i",
|
|
"range": [
|
|
5577,
|
|
5580
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5565,
|
|
5581
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5552,
|
|
5581
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 45
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
5548,
|
|
5582
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "mmm",
|
|
"range": [
|
|
5600,
|
|
5603
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 160,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 160,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "toLowerCase",
|
|
"range": [
|
|
5604,
|
|
5615
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 160,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 160,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5600,
|
|
5615
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 160,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 160,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
5600,
|
|
5617
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 160,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 160,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"name": "month_name",
|
|
"range": [
|
|
5622,
|
|
5632
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 160,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 160,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5600,
|
|
5632
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 160,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 160,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mondigit",
|
|
"range": [
|
|
5652,
|
|
5660
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "m_i",
|
|
"range": [
|
|
5663,
|
|
5666
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
5667,
|
|
5668
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5663,
|
|
5668
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5652,
|
|
5668
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5652,
|
|
5669
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "BreakStatement",
|
|
"label": null,
|
|
"range": [
|
|
5687,
|
|
5693
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 162,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 162,
|
|
"column": 22
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
5633,
|
|
5708
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 160,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 163,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
5596,
|
|
5708
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 160,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 163,
|
|
"column": 13
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
5533,
|
|
5715
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5486,
|
|
5715
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "LogicalExpression",
|
|
"operator": "||",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": ">",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mondigit",
|
|
"range": [
|
|
5724,
|
|
5732
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 11,
|
|
"raw": "11",
|
|
"range": [
|
|
5735,
|
|
5737
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5724,
|
|
5737
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "<",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mondigit",
|
|
"range": [
|
|
5741,
|
|
5749
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 23,
|
|
"raw": "23",
|
|
"range": [
|
|
5752,
|
|
5754
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5741,
|
|
5754
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5724,
|
|
5754
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mondigit",
|
|
"range": [
|
|
5766,
|
|
5774
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 166,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 166,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "-",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mondigit",
|
|
"range": [
|
|
5777,
|
|
5785
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 166,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 166,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 12,
|
|
"raw": "12",
|
|
"range": [
|
|
5788,
|
|
5790
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 166,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 166,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5777,
|
|
5790
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 166,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 166,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5766,
|
|
5790
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 166,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 166,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5766,
|
|
5791
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 166,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 166,
|
|
"column": 33
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
5755,
|
|
5798
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 167,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
5721,
|
|
5798
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 167,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "LogicalExpression",
|
|
"operator": "||",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": "<",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mondigit",
|
|
"range": [
|
|
5807,
|
|
5815
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
5818,
|
|
5819
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5807,
|
|
5819
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": ">",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mondigit",
|
|
"range": [
|
|
5823,
|
|
5831
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 12,
|
|
"raw": "12",
|
|
"range": [
|
|
5834,
|
|
5836
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5823,
|
|
5836
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5807,
|
|
5836
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
5855,
|
|
5856
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5848,
|
|
5857
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 17
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
5837,
|
|
5864
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
5804,
|
|
5864
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "mondigit",
|
|
"range": [
|
|
5877,
|
|
5885
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 171,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5870,
|
|
5886
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 171,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 20
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
5152,
|
|
5889
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 147,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 1
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
5132,
|
|
5889
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 147,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 1
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"sourceType": "module",
|
|
"range": [
|
|
31,
|
|
5889
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 1
|
|
}
|
|
},
|
|
"comments": [
|
|
{
|
|
"type": "Block",
|
|
"value": "*\r\n * Date utilities\r\n ",
|
|
"range": [
|
|
0,
|
|
27
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": " If the year is first",
|
|
"range": [
|
|
669,
|
|
692
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": " If the year is second",
|
|
"range": [
|
|
908,
|
|
932
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 75
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": " The year must be third",
|
|
"range": [
|
|
1069,
|
|
1094
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 31,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": " If it doesn't conform to the right format (with either a 2 digit year",
|
|
"range": [
|
|
1233,
|
|
1305
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 80
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": " or 4 digit year), fail",
|
|
"range": [
|
|
1315,
|
|
1340
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": " Split into 3 parts based on what the divider was",
|
|
"range": [
|
|
1464,
|
|
1515
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 40,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 40,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": " Check to see if the 3 parts end up making a valid date",
|
|
"range": [
|
|
1597,
|
|
1654
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 65
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:start ",
|
|
"range": [
|
|
3343,
|
|
3368
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 98,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 98,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
3624,
|
|
3647
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:start ",
|
|
"range": [
|
|
3710,
|
|
3735
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
3991,
|
|
4014
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:start ",
|
|
"range": [
|
|
4077,
|
|
4102
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
4336,
|
|
4359
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 115,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": "in case format is not correct",
|
|
"range": [
|
|
4402,
|
|
4433
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:start ",
|
|
"range": [
|
|
4451,
|
|
4476
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
4710,
|
|
4733
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 121,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 121,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": ">50 belong to 1900",
|
|
"range": [
|
|
4943,
|
|
4963
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 136,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 136,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": "<50 belong to 2000",
|
|
"range": [
|
|
5028,
|
|
5048
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 140,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 140,
|
|
"column": 24
|
|
}
|
|
}
|
|
}
|
|
]
|
|
} |