@dra2020/district-analytics 10.4.6 → 10.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +283941 -0
- package/dist/cli.js.map +1 -0
- package/dist/district-analytics.js +265 -223
- package/dist/district-analytics.js.map +1 -1
- package/package.json +16 -16
|
@@ -8,114 +8,41 @@
|
|
|
8
8
|
else
|
|
9
9
|
root["district-analytics"] = factory();
|
|
10
10
|
})(global, function() {
|
|
11
|
-
return /******/ (
|
|
12
|
-
/******/
|
|
13
|
-
/******/ var
|
|
14
|
-
/******/
|
|
15
|
-
/******/ // The require function
|
|
16
|
-
/******/ function __webpack_require__(moduleId) {
|
|
17
|
-
/******/
|
|
18
|
-
/******/ // Check if module is in cache
|
|
19
|
-
/******/ if(installedModules[moduleId]) {
|
|
20
|
-
/******/ return installedModules[moduleId].exports;
|
|
21
|
-
/******/ }
|
|
22
|
-
/******/ // Create a new module (and put it into the cache)
|
|
23
|
-
/******/ var module = installedModules[moduleId] = {
|
|
24
|
-
/******/ i: moduleId,
|
|
25
|
-
/******/ l: false,
|
|
26
|
-
/******/ exports: {}
|
|
27
|
-
/******/ };
|
|
28
|
-
/******/
|
|
29
|
-
/******/ // Execute the module function
|
|
30
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
31
|
-
/******/
|
|
32
|
-
/******/ // Flag the module as loaded
|
|
33
|
-
/******/ module.l = true;
|
|
34
|
-
/******/
|
|
35
|
-
/******/ // Return the exports of the module
|
|
36
|
-
/******/ return module.exports;
|
|
37
|
-
/******/ }
|
|
38
|
-
/******/
|
|
39
|
-
/******/
|
|
40
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
41
|
-
/******/ __webpack_require__.m = modules;
|
|
42
|
-
/******/
|
|
43
|
-
/******/ // expose the module cache
|
|
44
|
-
/******/ __webpack_require__.c = installedModules;
|
|
45
|
-
/******/
|
|
46
|
-
/******/ // define getter function for harmony exports
|
|
47
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
48
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
49
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
50
|
-
/******/ }
|
|
51
|
-
/******/ };
|
|
52
|
-
/******/
|
|
53
|
-
/******/ // define __esModule on exports
|
|
54
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
55
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
56
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
57
|
-
/******/ }
|
|
58
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
59
|
-
/******/ };
|
|
60
|
-
/******/
|
|
61
|
-
/******/ // create a fake namespace object
|
|
62
|
-
/******/ // mode & 1: value is a module id, require it
|
|
63
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
64
|
-
/******/ // mode & 4: return value when already ns object
|
|
65
|
-
/******/ // mode & 8|1: behave like require
|
|
66
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
67
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
68
|
-
/******/ if(mode & 8) return value;
|
|
69
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
70
|
-
/******/ var ns = Object.create(null);
|
|
71
|
-
/******/ __webpack_require__.r(ns);
|
|
72
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
73
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
74
|
-
/******/ return ns;
|
|
75
|
-
/******/ };
|
|
76
|
-
/******/
|
|
77
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
78
|
-
/******/ __webpack_require__.n = function(module) {
|
|
79
|
-
/******/ var getter = module && module.__esModule ?
|
|
80
|
-
/******/ function getDefault() { return module['default']; } :
|
|
81
|
-
/******/ function getModuleExports() { return module; };
|
|
82
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
83
|
-
/******/ return getter;
|
|
84
|
-
/******/ };
|
|
85
|
-
/******/
|
|
86
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
87
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
88
|
-
/******/
|
|
89
|
-
/******/ // __webpack_public_path__
|
|
90
|
-
/******/ __webpack_require__.p = "";
|
|
91
|
-
/******/
|
|
92
|
-
/******/
|
|
93
|
-
/******/ // Load entry module and return exports
|
|
94
|
-
/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts");
|
|
95
|
-
/******/ })
|
|
96
|
-
/************************************************************************/
|
|
97
|
-
/******/ ({
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ var __webpack_modules__ = ({
|
|
98
14
|
|
|
99
15
|
/***/ "./src/_api.ts":
|
|
100
16
|
/*!*********************!*\
|
|
101
17
|
!*** ./src/_api.ts ***!
|
|
102
18
|
\*********************/
|
|
103
|
-
|
|
104
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
19
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
105
20
|
|
|
106
|
-
"use strict";
|
|
107
21
|
|
|
108
22
|
//
|
|
109
23
|
// THE NODE PACKAGE API
|
|
110
24
|
//
|
|
25
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
26
|
+
if (k2 === undefined) k2 = k;
|
|
27
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
28
|
+
}) : (function(o, m, k, k2) {
|
|
29
|
+
if (k2 === undefined) k2 = k;
|
|
30
|
+
o[k2] = m[k];
|
|
31
|
+
}));
|
|
32
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
33
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
34
|
+
}) : function(o, v) {
|
|
35
|
+
o["default"] = v;
|
|
36
|
+
});
|
|
111
37
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
112
38
|
if (mod && mod.__esModule) return mod;
|
|
113
39
|
var result = {};
|
|
114
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
115
|
-
result
|
|
40
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
41
|
+
__setModuleDefault(result, mod);
|
|
116
42
|
return result;
|
|
117
43
|
};
|
|
118
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
45
|
+
exports.AnalyticsSession = void 0;
|
|
119
46
|
const Score = __importStar(__webpack_require__(/*! @dra2020/dra-score */ "@dra2020/dra-score"));
|
|
120
47
|
const preprocess_1 = __webpack_require__(/*! ./preprocess */ "./src/preprocess.ts");
|
|
121
48
|
const analyze_1 = __webpack_require__(/*! ./analyze */ "./src/analyze.ts");
|
|
@@ -263,22 +190,33 @@ exports.AnalyticsSession = AnalyticsSession;
|
|
|
263
190
|
/*!**********************!*\
|
|
264
191
|
!*** ./src/_data.ts ***!
|
|
265
192
|
\**********************/
|
|
266
|
-
|
|
267
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
193
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
268
194
|
|
|
269
|
-
"use strict";
|
|
270
195
|
|
|
271
196
|
//
|
|
272
197
|
// DATA ABSTRACTION LAYER
|
|
273
198
|
//
|
|
199
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
200
|
+
if (k2 === undefined) k2 = k;
|
|
201
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
202
|
+
}) : (function(o, m, k, k2) {
|
|
203
|
+
if (k2 === undefined) k2 = k;
|
|
204
|
+
o[k2] = m[k];
|
|
205
|
+
}));
|
|
206
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
207
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
208
|
+
}) : function(o, v) {
|
|
209
|
+
o["default"] = v;
|
|
210
|
+
});
|
|
274
211
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
275
212
|
if (mod && mod.__esModule) return mod;
|
|
276
213
|
var result = {};
|
|
277
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
278
|
-
result
|
|
214
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
215
|
+
__setModuleDefault(result, mod);
|
|
279
216
|
return result;
|
|
280
217
|
};
|
|
281
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
218
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
219
|
+
exports.Graph = exports.invertPlan = exports.Plan = exports.State = exports.Counties = exports.Features = exports.Districts = void 0;
|
|
282
220
|
const G = __importStar(__webpack_require__(/*! @dra2020/dra-graph */ "@dra2020/dra-graph"));
|
|
283
221
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
284
222
|
const S = __importStar(__webpack_require__(/*! ./settings */ "./src/settings.ts"));
|
|
@@ -773,10 +711,17 @@ class Features {
|
|
|
773
711
|
nFeatures() { return this._data.features.length; }
|
|
774
712
|
featureByIndex(i) { return this._data.features[i]; }
|
|
775
713
|
geoIDForFeature(f) {
|
|
776
|
-
//
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
714
|
+
// 12-02-2020 - Switched to using ids vs. geoids per Terry
|
|
715
|
+
if (f.properties && f.properties['id']) {
|
|
716
|
+
return f.properties['id'];
|
|
717
|
+
// GEOIDs will be one of these properties
|
|
718
|
+
// const value = f.properties['GEOID10'] || f.properties['GEOID20'] || f.properties['GEOID'];
|
|
719
|
+
// return value;
|
|
720
|
+
}
|
|
721
|
+
else {
|
|
722
|
+
console.log("This feature does not have an id property:", f);
|
|
723
|
+
throw "Feature with no id property.";
|
|
724
|
+
}
|
|
780
725
|
}
|
|
781
726
|
fieldForFeature(f, dt, fk) {
|
|
782
727
|
const dk = this._keys[dt];
|
|
@@ -1002,15 +947,14 @@ exports.Graph = Graph;
|
|
|
1002
947
|
/*!************************!*\
|
|
1003
948
|
!*** ./src/analyze.ts ***!
|
|
1004
949
|
\************************/
|
|
1005
|
-
|
|
1006
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
950
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1007
951
|
|
|
1008
|
-
"use strict";
|
|
1009
952
|
|
|
1010
953
|
//
|
|
1011
954
|
// ANALYZE A PLAN
|
|
1012
955
|
//
|
|
1013
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
956
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
957
|
+
exports.doDeriveSecondaryTests = exports.doAnalyzePlan = exports.doAnalyzeDistricts = void 0;
|
|
1014
958
|
const valid_1 = __webpack_require__(/*! ./valid */ "./src/valid.ts");
|
|
1015
959
|
const equal_1 = __webpack_require__(/*! ./equal */ "./src/equal.ts");
|
|
1016
960
|
const cohesive_1 = __webpack_require__(/*! ./cohesive */ "./src/cohesive.ts");
|
|
@@ -1058,22 +1002,33 @@ exports.doDeriveSecondaryTests = doDeriveSecondaryTests;
|
|
|
1058
1002
|
/*!*************************!*\
|
|
1059
1003
|
!*** ./src/cohesive.ts ***!
|
|
1060
1004
|
\*************************/
|
|
1061
|
-
|
|
1062
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1005
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1063
1006
|
|
|
1064
|
-
"use strict";
|
|
1065
1007
|
|
|
1066
1008
|
//
|
|
1067
1009
|
// SPLITTING of counties & districts
|
|
1068
1010
|
//
|
|
1011
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1012
|
+
if (k2 === undefined) k2 = k;
|
|
1013
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1014
|
+
}) : (function(o, m, k, k2) {
|
|
1015
|
+
if (k2 === undefined) k2 = k;
|
|
1016
|
+
o[k2] = m[k];
|
|
1017
|
+
}));
|
|
1018
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1019
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1020
|
+
}) : function(o, v) {
|
|
1021
|
+
o["default"] = v;
|
|
1022
|
+
});
|
|
1069
1023
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1070
1024
|
if (mod && mod.__esModule) return mod;
|
|
1071
1025
|
var result = {};
|
|
1072
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1073
|
-
result
|
|
1026
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1027
|
+
__setModuleDefault(result, mod);
|
|
1074
1028
|
return result;
|
|
1075
1029
|
};
|
|
1076
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1030
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1031
|
+
exports.doFindSplitVTDs = exports.doFindCountiesSplitUnexpectedly = void 0;
|
|
1077
1032
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
1078
1033
|
// NOTE - The active code is below the long multi-line section to be deleted.
|
|
1079
1034
|
// ANALYZE SIMPLE COUNTY & VTD SPLITTING
|
|
@@ -1229,22 +1184,33 @@ exports.doFindSplitVTDs = doFindSplitVTDs;
|
|
|
1229
1184
|
/*!************************!*\
|
|
1230
1185
|
!*** ./src/compact.ts ***!
|
|
1231
1186
|
\************************/
|
|
1232
|
-
|
|
1233
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1187
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1234
1188
|
|
|
1235
|
-
"use strict";
|
|
1236
1189
|
|
|
1237
1190
|
//
|
|
1238
1191
|
// COMPACT
|
|
1239
1192
|
//
|
|
1193
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1194
|
+
if (k2 === undefined) k2 = k;
|
|
1195
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1196
|
+
}) : (function(o, m, k, k2) {
|
|
1197
|
+
if (k2 === undefined) k2 = k;
|
|
1198
|
+
o[k2] = m[k];
|
|
1199
|
+
}));
|
|
1200
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1201
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1202
|
+
}) : function(o, v) {
|
|
1203
|
+
o["default"] = v;
|
|
1204
|
+
});
|
|
1240
1205
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1241
1206
|
if (mod && mod.__esModule) return mod;
|
|
1242
1207
|
var result = {};
|
|
1243
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1244
|
-
result
|
|
1208
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1209
|
+
__setModuleDefault(result, mod);
|
|
1245
1210
|
return result;
|
|
1246
1211
|
};
|
|
1247
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1212
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1213
|
+
exports.scoreKIWYSICompactness = exports.extractDistrictProperties = void 0;
|
|
1248
1214
|
const Poly = __importStar(__webpack_require__(/*! @dra2020/poly */ "@dra2020/poly"));
|
|
1249
1215
|
const Compactness = __importStar(__webpack_require__(/*! @dra2020/compactness */ "@dra2020/compactness"));
|
|
1250
1216
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
@@ -1341,15 +1307,14 @@ exports.scoreKIWYSICompactness = scoreKIWYSICompactness;
|
|
|
1341
1307
|
/*!**********************!*\
|
|
1342
1308
|
!*** ./src/equal.ts ***!
|
|
1343
1309
|
\**********************/
|
|
1344
|
-
|
|
1345
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1310
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
1346
1311
|
|
|
1347
|
-
"use strict";
|
|
1348
1312
|
|
|
1349
1313
|
//
|
|
1350
1314
|
// EQUAL POPULATION
|
|
1351
1315
|
//
|
|
1352
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1316
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1317
|
+
exports.doHasEqualPopulations = void 0;
|
|
1353
1318
|
// NOTE - This validity check is *derived* and depends on population deviation %
|
|
1354
1319
|
// being computed (above) and normalized in test log & scorecard generation.
|
|
1355
1320
|
function doHasEqualPopulations(s, bLog = false) {
|
|
@@ -1386,21 +1351,26 @@ exports.doHasEqualPopulations = doHasEqualPopulations;
|
|
|
1386
1351
|
/*!**********************!*\
|
|
1387
1352
|
!*** ./src/index.ts ***!
|
|
1388
1353
|
\**********************/
|
|
1389
|
-
|
|
1390
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1354
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1391
1355
|
|
|
1392
|
-
"use strict";
|
|
1393
1356
|
|
|
1394
1357
|
//
|
|
1395
1358
|
// THE DISTRICT-ANALYTICS NODE PACKAGE API
|
|
1396
1359
|
//
|
|
1397
|
-
function
|
|
1398
|
-
|
|
1399
|
-
}
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1360
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1361
|
+
if (k2 === undefined) k2 = k;
|
|
1362
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1363
|
+
}) : (function(o, m, k, k2) {
|
|
1364
|
+
if (k2 === undefined) k2 = k;
|
|
1365
|
+
o[k2] = m[k];
|
|
1366
|
+
}));
|
|
1367
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
1368
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
1369
|
+
};
|
|
1370
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1371
|
+
__exportStar(__webpack_require__(/*! ./_api */ "./src/_api.ts"), exports);
|
|
1372
|
+
__exportStar(__webpack_require__(/*! ./results */ "./src/results.ts"), exports);
|
|
1373
|
+
__exportStar(__webpack_require__(/*! ./types */ "./src/types.ts"), exports);
|
|
1404
1374
|
|
|
1405
1375
|
|
|
1406
1376
|
/***/ }),
|
|
@@ -1409,25 +1379,36 @@ __export(__webpack_require__(/*! ./types */ "./src/types.ts"));
|
|
|
1409
1379
|
/*!*************************!*\
|
|
1410
1380
|
!*** ./src/minority.ts ***!
|
|
1411
1381
|
\*************************/
|
|
1412
|
-
|
|
1413
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1382
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1414
1383
|
|
|
1415
|
-
"use strict";
|
|
1416
1384
|
|
|
1417
1385
|
//
|
|
1418
1386
|
// PROTECTS MINORITIES
|
|
1419
1387
|
//
|
|
1388
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1389
|
+
if (k2 === undefined) k2 = k;
|
|
1390
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1391
|
+
}) : (function(o, m, k, k2) {
|
|
1392
|
+
if (k2 === undefined) k2 = k;
|
|
1393
|
+
o[k2] = m[k];
|
|
1394
|
+
}));
|
|
1395
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1396
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1397
|
+
}) : function(o, v) {
|
|
1398
|
+
o["default"] = v;
|
|
1399
|
+
});
|
|
1420
1400
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1421
1401
|
if (mod && mod.__esModule) return mod;
|
|
1422
1402
|
var result = {};
|
|
1423
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1424
|
-
result
|
|
1403
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1404
|
+
__setModuleDefault(result, mod);
|
|
1425
1405
|
return result;
|
|
1426
1406
|
};
|
|
1427
1407
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
1428
1408
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
1429
1409
|
};
|
|
1430
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1410
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1411
|
+
exports.doAnalyzeRacialPolarization = exports.getVRASection5 = exports.getMajorityMinority = void 0;
|
|
1431
1412
|
const RPV = __importStar(__webpack_require__(/*! @dra2020/racial-voting */ "@dra2020/racial-voting"));
|
|
1432
1413
|
const majority_minority_json_1 = __importDefault(__webpack_require__(/*! ../static/majority-minority.json */ "./static/majority-minority.json"));
|
|
1433
1414
|
const vra5_preclearance_json_1 = __importDefault(__webpack_require__(/*! ../static/vra5-preclearance.json */ "./static/vra5-preclearance.json"));
|
|
@@ -1468,20 +1449,17 @@ exports.doAnalyzeRacialPolarization = doAnalyzeRacialPolarization;
|
|
|
1468
1449
|
/*!**************************!*\
|
|
1469
1450
|
!*** ./src/political.ts ***!
|
|
1470
1451
|
\**************************/
|
|
1471
|
-
|
|
1472
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1452
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
1473
1453
|
|
|
1474
|
-
"use strict";
|
|
1475
1454
|
|
|
1476
1455
|
//
|
|
1477
1456
|
// FAIR/PROPORTIONAL
|
|
1478
1457
|
//
|
|
1479
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1480
|
-
|
|
1481
|
-
const assert_1 = __webpack_require__(/*! assert */ "assert");
|
|
1458
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1459
|
+
exports.fptpWin = void 0;
|
|
1482
1460
|
function fptpWin(demPct) {
|
|
1483
1461
|
// Vote shares should be fractions in the range [0.0 – 1.0]
|
|
1484
|
-
|
|
1462
|
+
//assert((demPct <= 1.0) && (demPct >= 0.0));
|
|
1485
1463
|
return ((demPct > 0.5) ? 1 : 0);
|
|
1486
1464
|
}
|
|
1487
1465
|
exports.fptpWin = fptpWin;
|
|
@@ -1493,22 +1471,33 @@ exports.fptpWin = fptpWin;
|
|
|
1493
1471
|
/*!***************************!*\
|
|
1494
1472
|
!*** ./src/preprocess.ts ***!
|
|
1495
1473
|
\***************************/
|
|
1496
|
-
|
|
1497
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1474
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1498
1475
|
|
|
1499
|
-
"use strict";
|
|
1500
1476
|
|
|
1501
1477
|
//
|
|
1502
1478
|
// PREPROCESS DATA
|
|
1503
1479
|
//
|
|
1480
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1481
|
+
if (k2 === undefined) k2 = k;
|
|
1482
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1483
|
+
}) : (function(o, m, k, k2) {
|
|
1484
|
+
if (k2 === undefined) k2 = k;
|
|
1485
|
+
o[k2] = m[k];
|
|
1486
|
+
}));
|
|
1487
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1488
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1489
|
+
}) : function(o, v) {
|
|
1490
|
+
o["default"] = v;
|
|
1491
|
+
});
|
|
1504
1492
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1505
1493
|
if (mod && mod.__esModule) return mod;
|
|
1506
1494
|
var result = {};
|
|
1507
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1508
|
-
result
|
|
1495
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1496
|
+
__setModuleDefault(result, mod);
|
|
1509
1497
|
return result;
|
|
1510
1498
|
};
|
|
1511
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1499
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1500
|
+
exports.doPreprocessData = void 0;
|
|
1512
1501
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
1513
1502
|
// NOTE - Do preprocessing separately, so the constructor returns quickly.
|
|
1514
1503
|
function doPreprocessData(s, bLog = false) {
|
|
@@ -1664,22 +1653,33 @@ function doPreprocessCensus(s, bLog = false) {
|
|
|
1664
1653
|
/*!************************!*\
|
|
1665
1654
|
!*** ./src/results.ts ***!
|
|
1666
1655
|
\************************/
|
|
1667
|
-
|
|
1668
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1656
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1669
1657
|
|
|
1670
|
-
"use strict";
|
|
1671
1658
|
|
|
1672
1659
|
//
|
|
1673
1660
|
// TEMPLATES FOR UNFORMATTED ANALYTICS RESULTS
|
|
1674
1661
|
//
|
|
1662
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1663
|
+
if (k2 === undefined) k2 = k;
|
|
1664
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1665
|
+
}) : (function(o, m, k, k2) {
|
|
1666
|
+
if (k2 === undefined) k2 = k;
|
|
1667
|
+
o[k2] = m[k];
|
|
1668
|
+
}));
|
|
1669
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1670
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1671
|
+
}) : function(o, v) {
|
|
1672
|
+
o["default"] = v;
|
|
1673
|
+
});
|
|
1675
1674
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1676
1675
|
if (mod && mod.__esModule) return mod;
|
|
1677
1676
|
var result = {};
|
|
1678
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1679
|
-
result
|
|
1677
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1678
|
+
__setModuleDefault(result, mod);
|
|
1680
1679
|
return result;
|
|
1681
1680
|
};
|
|
1682
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1681
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1682
|
+
exports.doAnalyzePostProcessing = exports.prepareDistrictStatistics = exports.prepareRequirementsChecklist = void 0;
|
|
1683
1683
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
1684
1684
|
const S = __importStar(__webpack_require__(/*! ./settings */ "./src/settings.ts"));
|
|
1685
1685
|
const analyze_1 = __webpack_require__(/*! ./analyze */ "./src/analyze.ts");
|
|
@@ -1839,22 +1839,33 @@ exports.doAnalyzePostProcessing = doAnalyzePostProcessing;
|
|
|
1839
1839
|
/*!**********************!*\
|
|
1840
1840
|
!*** ./src/score.ts ***!
|
|
1841
1841
|
\**********************/
|
|
1842
|
-
|
|
1843
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1842
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1844
1843
|
|
|
1845
|
-
"use strict";
|
|
1846
1844
|
|
|
1847
1845
|
//
|
|
1848
1846
|
// SCORING
|
|
1849
1847
|
//
|
|
1848
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1849
|
+
if (k2 === undefined) k2 = k;
|
|
1850
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1851
|
+
}) : (function(o, m, k, k2) {
|
|
1852
|
+
if (k2 === undefined) k2 = k;
|
|
1853
|
+
o[k2] = m[k];
|
|
1854
|
+
}));
|
|
1855
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1856
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1857
|
+
}) : function(o, v) {
|
|
1858
|
+
o["default"] = v;
|
|
1859
|
+
});
|
|
1850
1860
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1851
1861
|
if (mod && mod.__esModule) return mod;
|
|
1852
1862
|
var result = {};
|
|
1853
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1854
|
-
result
|
|
1863
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1864
|
+
__setModuleDefault(result, mod);
|
|
1855
1865
|
return result;
|
|
1856
1866
|
};
|
|
1857
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1867
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1868
|
+
exports.scorePlan = exports.getStatewideDemographics = exports.profilePlan = void 0;
|
|
1858
1869
|
const Score = __importStar(__webpack_require__(/*! @dra2020/dra-score */ "@dra2020/dra-score"));
|
|
1859
1870
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
1860
1871
|
const M = __importStar(__webpack_require__(/*! ./minority */ "./src/minority.ts"));
|
|
@@ -2022,15 +2033,14 @@ exports.scorePlan = scorePlan;
|
|
|
2022
2033
|
/*!*************************!*\
|
|
2023
2034
|
!*** ./src/settings.ts ***!
|
|
2024
2035
|
\*************************/
|
|
2025
|
-
|
|
2026
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2036
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
2027
2037
|
|
|
2028
|
-
"use strict";
|
|
2029
2038
|
|
|
2030
2039
|
//
|
|
2031
2040
|
// GLOBAL CONSTANTS
|
|
2032
2041
|
//
|
|
2033
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2042
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2043
|
+
exports.SHAPES = exports.DISTRICT_SPLITTING_WEIGHT = exports.COUNTY_SPLITTING_WEIGHT = exports.EQUAL_TOLERANCE = exports.OUT_OF_STATE = exports.NUMBER_OF_ITEMS_TO_REPORT = exports.NOT_ASSIGNED = exports.NORMALIZED_RANGE = exports.PRECISION = void 0;
|
|
2034
2044
|
// Keep four decimal places for fractions [0–1], i.e.,
|
|
2035
2045
|
// keep two decimal places for %'s [0–100].
|
|
2036
2046
|
exports.PRECISION = 4;
|
|
@@ -2058,17 +2068,16 @@ exports.SHAPES = "2010 VTD shapes";
|
|
|
2058
2068
|
/*!**********************!*\
|
|
2059
2069
|
!*** ./src/types.ts ***!
|
|
2060
2070
|
\**********************/
|
|
2061
|
-
|
|
2062
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2071
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2063
2072
|
|
|
2064
|
-
"use strict";
|
|
2065
2073
|
|
|
2066
2074
|
//
|
|
2067
2075
|
// TYPE DEFINITIONS
|
|
2068
2076
|
//
|
|
2069
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2077
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2078
|
+
exports.estSeatProbability = void 0;
|
|
2070
2079
|
var dra_score_1 = __webpack_require__(/*! @dra2020/dra-score */ "@dra2020/dra-score");
|
|
2071
|
-
exports
|
|
2080
|
+
Object.defineProperty(exports, "estSeatProbability", ({ enumerable: true, get: function () { return dra_score_1.estSeatProbability; } }));
|
|
2072
2081
|
// END
|
|
2073
2082
|
|
|
2074
2083
|
|
|
@@ -2078,22 +2087,33 @@ exports.estSeatProbability = dra_score_1.estSeatProbability;
|
|
|
2078
2087
|
/*!**********************!*\
|
|
2079
2088
|
!*** ./src/utils.ts ***!
|
|
2080
2089
|
\**********************/
|
|
2081
|
-
|
|
2082
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2090
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2083
2091
|
|
|
2084
|
-
"use strict";
|
|
2085
2092
|
|
|
2086
2093
|
//
|
|
2087
2094
|
// UTILITIES
|
|
2088
2095
|
//
|
|
2096
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2097
|
+
if (k2 === undefined) k2 = k;
|
|
2098
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
2099
|
+
}) : (function(o, m, k, k2) {
|
|
2100
|
+
if (k2 === undefined) k2 = k;
|
|
2101
|
+
o[k2] = m[k];
|
|
2102
|
+
}));
|
|
2103
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
2104
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
2105
|
+
}) : function(o, v) {
|
|
2106
|
+
o["default"] = v;
|
|
2107
|
+
});
|
|
2089
2108
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
2090
2109
|
if (mod && mod.__esModule) return mod;
|
|
2091
2110
|
var result = {};
|
|
2092
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
2093
|
-
result
|
|
2111
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
2112
|
+
__setModuleDefault(result, mod);
|
|
2094
2113
|
return result;
|
|
2095
2114
|
};
|
|
2096
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2115
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2116
|
+
exports.depthof = exports.deepCopy = exports.shallowCopy = exports.countEnumValues = exports.objectContains = exports.arrayContains = exports.getSelectObjectKeys = exports.getNumericObjectKeys = exports.getObjectKeys = exports.isArrayEmpty = exports.isSetEmpty = exports.isObjectEmpty = exports.keyExists = exports.andArray = exports.initArray = exports.maxArray = exports.minArray = exports.avgArray = exports.sumArray = exports.trim = exports.isUninhabited = exports.isWaterOnly = exports.parseGeoID = exports.getDistrict = exports.isOutOfState = exports.isInState = void 0;
|
|
2097
2117
|
const DT = __importStar(__webpack_require__(/*! @dra2020/dra-types */ "@dra2020/dra-types"));
|
|
2098
2118
|
const S = __importStar(__webpack_require__(/*! ./settings */ "./src/settings.ts"));
|
|
2099
2119
|
// PLAN HELPERS
|
|
@@ -2312,7 +2332,7 @@ export function mapBooleanToTriState(bool: boolean): T.TriState
|
|
|
2312
2332
|
}
|
|
2313
2333
|
*/
|
|
2314
2334
|
var util_1 = __webpack_require__(/*! @dra2020/util */ "@dra2020/util");
|
|
2315
|
-
exports
|
|
2335
|
+
Object.defineProperty(exports, "depthof", ({ enumerable: true, get: function () { return util_1.depthof; } }));
|
|
2316
2336
|
|
|
2317
2337
|
|
|
2318
2338
|
/***/ }),
|
|
@@ -2321,22 +2341,33 @@ exports.depthof = util_1.depthof;
|
|
|
2321
2341
|
/*!**********************!*\
|
|
2322
2342
|
!*** ./src/valid.ts ***!
|
|
2323
2343
|
\**********************/
|
|
2324
|
-
|
|
2325
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2344
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2326
2345
|
|
|
2327
|
-
"use strict";
|
|
2328
2346
|
|
|
2329
2347
|
//
|
|
2330
2348
|
// MAP/PLAN VALIDATIONS
|
|
2331
2349
|
//
|
|
2350
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2351
|
+
if (k2 === undefined) k2 = k;
|
|
2352
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
2353
|
+
}) : (function(o, m, k, k2) {
|
|
2354
|
+
if (k2 === undefined) k2 = k;
|
|
2355
|
+
o[k2] = m[k];
|
|
2356
|
+
}));
|
|
2357
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
2358
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
2359
|
+
}) : function(o, v) {
|
|
2360
|
+
o["default"] = v;
|
|
2361
|
+
});
|
|
2332
2362
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
2333
2363
|
if (mod && mod.__esModule) return mod;
|
|
2334
2364
|
var result = {};
|
|
2335
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
2336
|
-
result
|
|
2365
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
2366
|
+
__setModuleDefault(result, mod);
|
|
2337
2367
|
return result;
|
|
2338
2368
|
};
|
|
2339
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2369
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2370
|
+
exports.doIsFreeOfHoles = exports.doIsContiguous = exports.doIsComplete = void 0;
|
|
2340
2371
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
2341
2372
|
const S = __importStar(__webpack_require__(/*! ./settings */ "./src/settings.ts"));
|
|
2342
2373
|
//
|
|
@@ -2502,8 +2533,7 @@ exports.doIsFreeOfHoles = doIsFreeOfHoles;
|
|
|
2502
2533
|
/*!***************************************!*\
|
|
2503
2534
|
!*** ./static/majority-minority.json ***!
|
|
2504
2535
|
\***************************************/
|
|
2505
|
-
|
|
2506
|
-
/***/ (function(module) {
|
|
2536
|
+
/***/ ((module) => {
|
|
2507
2537
|
|
|
2508
2538
|
module.exports = JSON.parse("{\"AL\":{\"Black\":[7],\"Hispanic\":[],\"Pacific\":[]},\"AK\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"AZ\":{\"Black\":[],\"Hispanic\":[2,4,7],\"Pacific\":[]},\"AR\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"CA\":{\"Black\":[13,37,43],\"Hispanic\":[17,18,20,21,28,31,32,34,35,38,39,43,45,47,51],\"Pacific\":[12,13,14,15,17,18,19,27,34,39,45,47,52]},\"CO\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"CT\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"DC\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"DE\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"FL\":{\"Black\":[5,20,24],\"Hispanic\":[18,21,25],\"Pacific\":[]},\"GA\":{\"Black\":[2,4,5,13],\"Hispanic\":[],\"Pacific\":[]},\"HI\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[2]},\"ID\":{\"Black\":[],\"Hispanic\":[1],\"Pacific\":[]},\"IL\":{\"Black\":[1,2,7],\"Hispanic\":[4],\"Pacific\":[]},\"IN\":{\"Black\":[7],\"Hispanic\":[],\"Pacific\":[]},\"IA\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"KS\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"KY\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"LA\":{\"Black\":[2],\"Hispanic\":[],\"Pacific\":[]},\"ME\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"MD\":{\"Black\":[4,7],\"Hispanic\":[],\"Pacific\":[]},\"MA\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"MI\":{\"Black\":[13,14],\"Hispanic\":[],\"Pacific\":[]},\"MN\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"MS\":{\"Black\":[2],\"Hispanic\":[],\"Pacific\":[]},\"MO\":{\"Black\":[1,5],\"Hispanic\":[],\"Pacific\":[]},\"MT\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"NE\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"NV\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"NH\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"NJ\":{\"Black\":[10,12],\"Hispanic\":[13],\"Pacific\":[6]},\"NM\":{\"Black\":[],\"Hispanic\":[2,13],\"Pacific\":[]},\"NY\":{\"Black\":[5,8,9,13],\"Hispanic\":[12,16],\"Pacific\":[6,7,10]},\"NC\":{\"Black\":[1,12],\"Hispanic\":[],\"Pacific\":[]},\"ND\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"OH\":{\"Black\":[3,11],\"Hispanic\":[],\"Pacific\":[]},\"OK\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"OR\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"PA\":{\"Black\":[2],\"Hispanic\":[],\"Pacific\":[]},\"PR\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"RI\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"SC\":{\"Black\":[6],\"Hispanic\":[],\"Pacific\":[]},\"SD\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"TN\":{\"Black\":[9],\"Hispanic\":[],\"Pacific\":[]},\"TX\":{\"Black\":[9,18,33],\"Hispanic\":[15,16,19,20,23,27,28,29,32],\"Pacific\":[]},\"UT\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"VT\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"VA\":{\"Black\":[3],\"Hispanic\":[],\"Pacific\":[]},\"WA\":{\"Black\":[],\"Hispanic\":[3],\"Pacific\":[9]},\"WV\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"WI\":{\"Black\":[4],\"Hispanic\":[],\"Pacific\":[]},\"WY\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]}}");
|
|
2509
2539
|
|
|
@@ -2513,8 +2543,7 @@ module.exports = JSON.parse("{\"AL\":{\"Black\":[7],\"Hispanic\":[],\"Pacific\":
|
|
|
2513
2543
|
/*!***************************************!*\
|
|
2514
2544
|
!*** ./static/vra5-preclearance.json ***!
|
|
2515
2545
|
\***************************************/
|
|
2516
|
-
|
|
2517
|
-
/***/ (function(module) {
|
|
2546
|
+
/***/ ((module) => {
|
|
2518
2547
|
|
|
2519
2548
|
module.exports = JSON.parse("{\"AL\":\"all\",\"AK\":\"all\",\"AZ\":\"all\",\"CA\":\"parts\",\"FL\":\"parts\",\"GA\":\"all\",\"LA\":\"all\",\"MI\":\"parts\",\"MS\":\"all\",\"NY\":\"parts\",\"NC\":\"parts\",\"SC\":\"all\",\"SD\":\"parts\",\"TX\":\"all\",\"VA\":\"all\"}");
|
|
2520
2549
|
|
|
@@ -2524,10 +2553,9 @@ module.exports = JSON.parse("{\"AL\":\"all\",\"AK\":\"all\",\"AZ\":\"all\",\"CA\
|
|
|
2524
2553
|
/*!***************************************!*\
|
|
2525
2554
|
!*** external "@dra2020/compactness" ***!
|
|
2526
2555
|
\***************************************/
|
|
2527
|
-
|
|
2528
|
-
/***/ (function(module, exports) {
|
|
2556
|
+
/***/ ((module) => {
|
|
2529
2557
|
|
|
2530
|
-
module.exports = require("@dra2020/compactness")
|
|
2558
|
+
module.exports = require("@dra2020/compactness");;
|
|
2531
2559
|
|
|
2532
2560
|
/***/ }),
|
|
2533
2561
|
|
|
@@ -2535,10 +2563,9 @@ module.exports = require("@dra2020/compactness");
|
|
|
2535
2563
|
/*!*************************************!*\
|
|
2536
2564
|
!*** external "@dra2020/dra-graph" ***!
|
|
2537
2565
|
\*************************************/
|
|
2538
|
-
|
|
2539
|
-
/***/ (function(module, exports) {
|
|
2566
|
+
/***/ ((module) => {
|
|
2540
2567
|
|
|
2541
|
-
module.exports = require("@dra2020/dra-graph")
|
|
2568
|
+
module.exports = require("@dra2020/dra-graph");;
|
|
2542
2569
|
|
|
2543
2570
|
/***/ }),
|
|
2544
2571
|
|
|
@@ -2546,10 +2573,9 @@ module.exports = require("@dra2020/dra-graph");
|
|
|
2546
2573
|
/*!*************************************!*\
|
|
2547
2574
|
!*** external "@dra2020/dra-score" ***!
|
|
2548
2575
|
\*************************************/
|
|
2549
|
-
|
|
2550
|
-
/***/ (function(module, exports) {
|
|
2576
|
+
/***/ ((module) => {
|
|
2551
2577
|
|
|
2552
|
-
module.exports = require("@dra2020/dra-score")
|
|
2578
|
+
module.exports = require("@dra2020/dra-score");;
|
|
2553
2579
|
|
|
2554
2580
|
/***/ }),
|
|
2555
2581
|
|
|
@@ -2557,10 +2583,9 @@ module.exports = require("@dra2020/dra-score");
|
|
|
2557
2583
|
/*!*************************************!*\
|
|
2558
2584
|
!*** external "@dra2020/dra-types" ***!
|
|
2559
2585
|
\*************************************/
|
|
2560
|
-
|
|
2561
|
-
/***/ (function(module, exports) {
|
|
2586
|
+
/***/ ((module) => {
|
|
2562
2587
|
|
|
2563
|
-
module.exports = require("@dra2020/dra-types")
|
|
2588
|
+
module.exports = require("@dra2020/dra-types");;
|
|
2564
2589
|
|
|
2565
2590
|
/***/ }),
|
|
2566
2591
|
|
|
@@ -2568,10 +2593,9 @@ module.exports = require("@dra2020/dra-types");
|
|
|
2568
2593
|
/*!********************************!*\
|
|
2569
2594
|
!*** external "@dra2020/poly" ***!
|
|
2570
2595
|
\********************************/
|
|
2571
|
-
|
|
2572
|
-
/***/ (function(module, exports) {
|
|
2596
|
+
/***/ ((module) => {
|
|
2573
2597
|
|
|
2574
|
-
module.exports = require("@dra2020/poly")
|
|
2598
|
+
module.exports = require("@dra2020/poly");;
|
|
2575
2599
|
|
|
2576
2600
|
/***/ }),
|
|
2577
2601
|
|
|
@@ -2579,10 +2603,9 @@ module.exports = require("@dra2020/poly");
|
|
|
2579
2603
|
/*!*****************************************!*\
|
|
2580
2604
|
!*** external "@dra2020/racial-voting" ***!
|
|
2581
2605
|
\*****************************************/
|
|
2582
|
-
|
|
2583
|
-
/***/ (function(module, exports) {
|
|
2606
|
+
/***/ ((module) => {
|
|
2584
2607
|
|
|
2585
|
-
module.exports = require("@dra2020/racial-voting")
|
|
2608
|
+
module.exports = require("@dra2020/racial-voting");;
|
|
2586
2609
|
|
|
2587
2610
|
/***/ }),
|
|
2588
2611
|
|
|
@@ -2590,24 +2613,43 @@ module.exports = require("@dra2020/racial-voting");
|
|
|
2590
2613
|
/*!********************************!*\
|
|
2591
2614
|
!*** external "@dra2020/util" ***!
|
|
2592
2615
|
\********************************/
|
|
2593
|
-
|
|
2594
|
-
/***/ (function(module, exports) {
|
|
2595
|
-
|
|
2596
|
-
module.exports = require("@dra2020/util");
|
|
2616
|
+
/***/ ((module) => {
|
|
2597
2617
|
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
/***/ "assert":
|
|
2601
|
-
/*!*************************!*\
|
|
2602
|
-
!*** external "assert" ***!
|
|
2603
|
-
\*************************/
|
|
2604
|
-
/*! no static exports found */
|
|
2605
|
-
/***/ (function(module, exports) {
|
|
2606
|
-
|
|
2607
|
-
module.exports = require("assert");
|
|
2618
|
+
module.exports = require("@dra2020/util");;
|
|
2608
2619
|
|
|
2609
2620
|
/***/ })
|
|
2610
2621
|
|
|
2611
|
-
/******/
|
|
2622
|
+
/******/ });
|
|
2623
|
+
/************************************************************************/
|
|
2624
|
+
/******/ // The module cache
|
|
2625
|
+
/******/ var __webpack_module_cache__ = {};
|
|
2626
|
+
/******/
|
|
2627
|
+
/******/ // The require function
|
|
2628
|
+
/******/ function __webpack_require__(moduleId) {
|
|
2629
|
+
/******/ // Check if module is in cache
|
|
2630
|
+
/******/ if(__webpack_module_cache__[moduleId]) {
|
|
2631
|
+
/******/ return __webpack_module_cache__[moduleId].exports;
|
|
2632
|
+
/******/ }
|
|
2633
|
+
/******/ // Create a new module (and put it into the cache)
|
|
2634
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
2635
|
+
/******/ // no module.id needed
|
|
2636
|
+
/******/ // no module.loaded needed
|
|
2637
|
+
/******/ exports: {}
|
|
2638
|
+
/******/ };
|
|
2639
|
+
/******/
|
|
2640
|
+
/******/ // Execute the module function
|
|
2641
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
2642
|
+
/******/
|
|
2643
|
+
/******/ // Return the exports of the module
|
|
2644
|
+
/******/ return module.exports;
|
|
2645
|
+
/******/ }
|
|
2646
|
+
/******/
|
|
2647
|
+
/************************************************************************/
|
|
2648
|
+
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
|
2649
|
+
/******/ // startup
|
|
2650
|
+
/******/ // Load entry module and return exports
|
|
2651
|
+
/******/ return __webpack_require__("./src/index.ts");
|
|
2652
|
+
/******/ })()
|
|
2653
|
+
;
|
|
2612
2654
|
});
|
|
2613
2655
|
//# sourceMappingURL=district-analytics.js.map
|