dirtybomb
Version:
A dirty bomb model
1,593 lines (1,592 loc) • 406 kB
JSON
{
"type": "Program",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "ISOTOPES",
"range": [
405,
413
],
"loc": {
"start": {
"line": 28,
"column": 6
},
"end": {
"line": 28,
"column": 14
}
}
},
"init": {
"type": "ArrayExpression",
"elements": [
{
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "name",
"range": [
423,
427
],
"loc": {
"start": {
"line": 29,
"column": 5
},
"end": {
"line": 29,
"column": 9
}
}
},
"value": {
"type": "Literal",
"value": "Cobalt",
"raw": "\"Cobalt\"",
"range": [
429,
437
],
"loc": {
"start": {
"line": 29,
"column": 11
},
"end": {
"line": 29,
"column": 19
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
423,
437
],
"loc": {
"start": {
"line": 29,
"column": 5
},
"end": {
"line": 29,
"column": 19
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "element",
"range": [
439,
446
],
"loc": {
"start": {
"line": 29,
"column": 21
},
"end": {
"line": 29,
"column": 28
}
}
},
"value": {
"type": "Literal",
"value": "Co",
"raw": "\"Co\"",
"range": [
448,
452
],
"loc": {
"start": {
"line": 29,
"column": 30
},
"end": {
"line": 29,
"column": 34
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
439,
452
],
"loc": {
"start": {
"line": 29,
"column": 21
},
"end": {
"line": 29,
"column": 34
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "mass",
"range": [
454,
458
],
"loc": {
"start": {
"line": 29,
"column": 36
},
"end": {
"line": 29,
"column": 40
}
}
},
"value": {
"type": "Literal",
"value": 60,
"raw": "60",
"range": [
460,
462
],
"loc": {
"start": {
"line": 29,
"column": 42
},
"end": {
"line": 29,
"column": 44
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
454,
462
],
"loc": {
"start": {
"line": 29,
"column": 36
},
"end": {
"line": 29,
"column": 44
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "halfLife",
"range": [
464,
472
],
"loc": {
"start": {
"line": 29,
"column": 46
},
"end": {
"line": 29,
"column": 54
}
}
},
"value": {
"type": "Literal",
"value": 166349000,
"raw": "166349000",
"range": [
474,
483
],
"loc": {
"start": {
"line": 29,
"column": 56
},
"end": {
"line": 29,
"column": 65
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
464,
483
],
"loc": {
"start": {
"line": 29,
"column": 46
},
"end": {
"line": 29,
"column": 65
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "decayMode",
"range": [
485,
494
],
"loc": {
"start": {
"line": 29,
"column": 67
},
"end": {
"line": 29,
"column": 76
}
}
},
"value": {
"type": "Literal",
"value": "beta,gamma,gamma",
"raw": "\"beta,gamma,gamma\"",
"range": [
496,
514
],
"loc": {
"start": {
"line": 29,
"column": 78
},
"end": {
"line": 29,
"column": 96
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
485,
514
],
"loc": {
"start": {
"line": 29,
"column": 67
},
"end": {
"line": 29,
"column": 96
}
}
}
],
"range": [
422,
515
],
"loc": {
"start": {
"line": 29,
"column": 4
},
"end": {
"line": 29,
"column": 97
}
}
},
{
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "name",
"range": [
522,
526
],
"loc": {
"start": {
"line": 30,
"column": 5
},
"end": {
"line": 30,
"column": 9
}
}
},
"value": {
"type": "Literal",
"value": "Strontium",
"raw": "\"Strontium\"",
"range": [
528,
539
],
"loc": {
"start": {
"line": 30,
"column": 11
},
"end": {
"line": 30,
"column": 22
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
522,
539
],
"loc": {
"start": {
"line": 30,
"column": 5
},
"end": {
"line": 30,
"column": 22
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "element",
"range": [
541,
548
],
"loc": {
"start": {
"line": 30,
"column": 24
},
"end": {
"line": 30,
"column": 31
}
}
},
"value": {
"type": "Literal",
"value": "Sr",
"raw": "\"Sr\"",
"range": [
550,
554
],
"loc": {
"start": {
"line": 30,
"column": 33
},
"end": {
"line": 30,
"column": 37
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
541,
554
],
"loc": {
"start": {
"line": 30,
"column": 24
},
"end": {
"line": 30,
"column": 37
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "mass",
"range": [
556,
560
],
"loc": {
"start": {
"line": 30,
"column": 39
},
"end": {
"line": 30,
"column": 43
}
}
},
"value": {
"type": "Literal",
"value": 90,
"raw": "90",
"range": [
562,
564
],
"loc": {
"start": {
"line": 30,
"column": 45
},
"end": {
"line": 30,
"column": 47
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
556,
564
],
"loc": {
"start": {
"line": 30,
"column": 39
},
"end": {
"line": 30,
"column": 47
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "halfLife",
"range": [
566,
574
],
"loc": {
"start": {
"line": 30,
"column": 49
},
"end": {
"line": 30,
"column": 57
}
}
},
"value": {
"type": "Literal",
"value": 908839000,
"raw": "908839000",
"range": [
576,
585
],
"loc": {
"start": {
"line": 30,
"column": 59
},
"end": {
"line": 30,
"column": 68
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
566,
585
],
"loc": {
"start": {
"line": 30,
"column": 49
},
"end": {
"line": 30,
"column": 68
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "decayMode",
"range": [
587,
596
],
"loc": {
"start": {
"line": 30,
"column": 70
},
"end": {
"line": 30,
"column": 79
}
}
},
"value": {
"type": "Literal",
"value": "betaminus",
"raw": "\"betaminus\"",
"range": [
598,
609
],
"loc": {
"start": {
"line": 30,
"column": 81
},
"end": {
"line": 30,
"column": 92
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
587,
609
],
"loc": {
"start": {
"line": 30,
"column": 70
},
"end": {
"line": 30,
"column": 92
}
}
}
],
"range": [
521,
610
],
"loc": {
"start": {
"line": 30,
"column": 4
},
"end": {
"line": 30,
"column": 93
}
}
},
{
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "name",
"range": [
617,
621
],
"loc": {
"start": {
"line": 31,
"column": 5
},
"end": {
"line": 31,
"column": 9
}
}
},
"value": {
"type": "Literal",
"value": "Iodine",
"raw": "\"Iodine\"",
"range": [
623,
631
],
"loc": {
"start": {
"line": 31,
"column": 11
},
"end": {
"line": 31,
"column": 19
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
617,
631
],
"loc": {
"start": {
"line": 31,
"column": 5
},
"end": {
"line": 31,
"column": 19
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "element",
"range": [
633,
640
],
"loc": {
"start": {
"line": 31,
"column": 21
},
"end": {
"line": 31,
"column": 28
}
}
},
"value": {
"type": "Literal",
"value": "I",
"raw": "\"I\"",
"range": [
642,
645
],
"loc": {
"start": {
"line": 31,
"column": 30
},
"end": {
"line": 31,
"column": 33
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
633,
645
],
"loc": {
"start": {
"line": 31,
"column": 21
},
"end": {
"line": 31,
"column": 33
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "mass",
"range": [
647,
651
],
"loc": {
"start": {
"line": 31,
"column": 35
},
"end": {
"line": 31,
"column": 39
}
}
},
"value": {
"type": "Literal",
"value": 129,
"raw": "129",
"range": [
653,
656
],
"loc": {
"start": {
"line": 31,
"column": 41
},
"end": {
"line": 31,
"column": 44
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
647,
656
],
"loc": {
"start": {
"line": 31,
"column": 35
},
"end": {
"line": 31,
"column": 44
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "halfLife",
"range": [
658,
666
],
"loc": {
"start": {
"line": 31,
"column": 46
},
"end": {
"line": 31,
"column": 54
}
}
},
"value": {
"type": "Literal",
"value": 495444000000000,
"raw": "495444000000000",
"range": [
668,
683
],
"loc": {
"start": {
"line": 31,
"column": 56
},
"end": {
"line": 31,
"column": 71
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
658,
683
],
"loc": {
"start": {
"line": 31,
"column": 46
},
"end": {
"line": 31,
"column": 71
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "decayMode",
"range": [
685,
694
],
"loc": {
"start": {
"line": 31,
"column": 73
},
"end": {
"line": 31,
"column": 82
}
}
},
"value": {
"type": "Literal",
"value": "beta,gamma",
"raw": "\"beta,gamma\"",
"range": [
696,
708
],
"loc": {
"start": {
"line": 31,
"column": 84
},
"end": {
"line": 31,
"column": 96
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
685,
708
],
"loc": {
"start": {
"line": 31,
"column": 73
},
"end": {
"line": 31,
"column": 96
}
}
}
],
"range": [
616,
709
],
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 31,
"column": 97
}
}
},
{
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "name",
"range": [
716,
720
],
"loc": {
"start": {
"line": 32,
"column": 5
},
"end": {
"line": 32,
"column": 9
}
}
},
"value": {
"type": "Literal",
"value": "Caesium",
"raw": "\"Caesium\"",
"range": [
722,
731
],
"loc": {
"start": {
"line": 32,
"column": 11
},
"end": {
"line": 32,
"column": 20
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
716,
731
],
"loc": {
"start": {
"line": 32,
"column": 5
},
"end": {
"line": 32,
"column": 20
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "element",
"range": [
733,
740
],
"loc": {
"start": {
"line": 32,
"column": 22
},
"end": {
"line": 32,
"column": 29
}
}
},
"value": {
"type": "Literal",
"value": "Cs",
"raw": "\"Cs\"",
"range": [
742,
746
],
"loc": {
"start": {
"line": 32,
"column": 31
},
"end": {
"line": 32,
"column": 35
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
733,
746
],
"loc": {
"start": {
"line": 32,
"column": 22
},
"end": {
"line": 32,
"column": 35
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "mass",
"range": [
748,
752
],
"loc": {
"start": {
"line": 32,
"column": 37
},
"end": {
"line": 32,
"column": 41
}
}
},
"value": {
"type": "Literal",
"value": 135,
"raw": "135",
"range": [
754,
757
],
"loc": {
"start": {
"line": 32,
"column": 43
},
"end": {
"line": 32,
"column": 46
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
748,
757
],
"loc": {
"start": {
"line": 32,
"column": 37
},
"end": {
"line": 32,
"column": 46
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "halfLife",
"range": [
759,
767
],
"loc": {
"start": {
"line": 32,
"column": 48
},
"end": {
"line": 32,
"column": 56
}
}
},
"value": {
"type": "Literal",
"value": 72532800000000,
"raw": "7.25328e+13",
"range": [
769,
780
],
"loc": {
"start": {
"line": 32,
"column": 58
},
"end": {
"line": 32,
"column": 69
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
759,
780
],
"loc": {
"start": {
"line": 32,
"column": 48
},
"end": {
"line": 32,
"column": 69
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "decayMode",
"range": [
782,
791
],
"loc": {
"start": {
"line": 32,
"column": 71
},
"end": {
"line": 32,
"column": 80
}
}
},
"value": {
"type": "Literal",
"value": "beta",
"raw": "\"beta\"",
"range": [
793,
799
],
"loc": {
"start": {
"line": 32,
"column": 82
},
"end": {
"line": 32,
"column": 88
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
782,
799
],
"loc": {
"start": {
"line": 32,
"column": 71
},
"end": {
"line": 32,
"column": 88
}
}
}
],
"range": [
715,
800
],
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 32,
"column": 89
}
}
},
{
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "name",
"range": [
807,
811
],
"loc": {
"start": {
"line": 33,
"column": 5
},
"end": {
"line": 33,
"column": 9
}
}
},
"value": {
"type": "Literal",
"value": "Caesium",
"raw": "\"Caesium\"",
"range": [
813,
822
],
"loc": {
"start": {
"line": 33,
"column": 11
},
"end": {
"line": 33,
"column": 20
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
807,
822
],
"loc": {
"start": {
"line": 33,
"column": 5
},
"end": {
"line": 33,
"column": 20
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "element",
"range": [
824,
831
],
"loc": {
"start": {
"line": 33,
"column": 22
},
"end": {
"line": 33,
"column": 29
}
}
},
"value": {
"type": "Literal",
"value": "Cs",
"raw": "\"Cs\"",
"range": [
833,
837
],
"loc": {
"start": {
"line": 33,
"column": 31
},
"end": {
"line": 33,
"column": 35
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
824,
837
],
"loc": {
"start": {
"line": 33,
"column": 22
},
"end": {
"line": 33,
"column": 35
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "mass",
"range": [
839,
843
],
"loc": {
"start": {
"line": 33,
"column": 37
},
"end": {
"line": 33,
"column": 41
}
}
},
"value": {
"type": "Literal",
"value": 137,
"raw": "137",
"range": [
845,
848
],
"loc": {
"start": {
"line": 33,
"column": 43
},
"end": {
"line": 33,
"column": 46
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
839,
848
],
"loc": {
"start": {
"line": 33,
"column": 37
},
"end": {
"line": 33,
"column": 46
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "halfLife",
"range": [
850,
858
],
"loc": {
"start": {
"line": 33,
"column": 48
},
"end": {
"line": 33,
"column": 56
}
}
},
"value": {
"type": "Literal",
"value": 952072000,
"raw": "952072000",
"range": [
860,
869
],
"loc": {
"start": {
"line": 33,
"column": 58
},
"end": {
"line": 33,
"column": 67
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
850,
869
],
"loc": {
"start": {
"line": 33,
"column": 48
},
"end": {
"line": 33,
"column": 67
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "decayMode",
"range": [
871,
880
],
"loc": {
"start": {
"line": 33,
"column": 69
},
"end": {
"line": 33,
"column": 78
}
}
},
"value": {
"type": "Literal",
"value": "beta,gamma",
"raw": "\"beta,gamma\"",
"range": [
882,
894
],
"loc": {
"start": {
"line": 33,
"column": 80
},
"end": {
"line": 33,
"column": 92
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
871,
894
],
"loc": {
"start": {
"line": 33,
"column": 69
},
"end": {
"line": 33,
"column": 92
}
}
}
],
"range": [
806,
895
],
"loc": {
"start": {
"line": 33,
"column": 4
},
"end": {
"line": 33,
"column": 93
}
}
},
{
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "name",
"range": [
902,
906
],
"loc": {
"start": {
"line": 34,
"column": 5
},
"end": {